1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Saturday July 4, 2009 at 10:06:21 AM CEST
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Sat Jul 4 10:06:21 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 199 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 Darwin_Stdint_5 fix
1970 tSCC zDarwin_Stdint_5Name[] =
1974 * File name selection pattern
1976 tSCC zDarwin_Stdint_5List[] =
1979 * Machine/OS name selection pattern
1981 tSCC* apzDarwin_Stdint_5Machs[] = {
1983 (const char*)NULL };
1986 * content selection pattern - do fix if pattern found
1988 tSCC zDarwin_Stdint_5Select0[] =
1989 "#define INTMAX_MIN[ \t]+INT64_MIN\n\
1990 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
1991 #define UINTMAX_MAX[ \t]+UINT64_MAX";
1993 #define DARWIN_STDINT_5_TEST_CT 1
1994 static tTestDesc aDarwin_Stdint_5Tests[] = {
1995 { TT_EGREP, zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
1998 * Fix Command Arguments for Darwin_Stdint_5
2000 static const char* apzDarwin_Stdint_5Patch[] = {
2002 "#if __WORDSIZE == 64\n\
2003 #define INTMAX_MIN (-9223372036854775807L - 1)\n\
2004 #define INTMAX_MAX 9223372036854775807L\n\
2005 #define UINTMAX_MAX 18446744073709551615UL\n\
2007 #define INTMAX_MIN (-9223372036854775807LL - 1)\n\
2008 #define INTMAX_MAX 9223372036854775807LL\n\
2009 #define UINTMAX_MAX 18446744073709551615ULL\n\
2013 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2015 * Description of Darwin_Stdint_6 fix
2017 tSCC zDarwin_Stdint_6Name[] =
2021 * File name selection pattern
2023 tSCC zDarwin_Stdint_6List[] =
2026 * Machine/OS name selection pattern
2028 tSCC* apzDarwin_Stdint_6Machs[] = {
2030 (const char*)NULL };
2033 * content selection pattern - do fix if pattern found
2035 tSCC zDarwin_Stdint_6Select0[] =
2036 "#if __WORDSIZE == 64\n\
2037 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2038 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2040 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2041 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2044 #define DARWIN_STDINT_6_TEST_CT 1
2045 static tTestDesc aDarwin_Stdint_6Tests[] = {
2046 { TT_EGREP, zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2049 * Fix Command Arguments for Darwin_Stdint_6
2051 static const char* apzDarwin_Stdint_6Patch[] = {
2053 "#if __WORDSIZE == 64\n\
2054 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2055 #define PTRDIFF_MAX 9223372036854775807L\n\
2057 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2058 #define PTRDIFF_MAX 2147483647\n\
2062 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2064 * Description of Darwin_Stdint_7 fix
2066 tSCC zDarwin_Stdint_7Name[] =
2070 * File name selection pattern
2072 tSCC zDarwin_Stdint_7List[] =
2075 * Machine/OS name selection pattern
2077 tSCC* apzDarwin_Stdint_7Machs[] = {
2079 (const char*)NULL };
2082 * content selection pattern - do fix if pattern found
2084 tSCC zDarwin_Stdint_7Select0[] =
2085 "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2086 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2088 #define DARWIN_STDINT_7_TEST_CT 1
2089 static tTestDesc aDarwin_Stdint_7Tests[] = {
2090 { TT_EGREP, zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2093 * Fix Command Arguments for Darwin_Stdint_7
2095 static const char* apzDarwin_Stdint_7Patch[] = {
2097 "#if __WORDSIZE == 64\n\
2098 #define INTMAX_C(v) (v ## L)\n\
2099 #define UINTMAX_C(v) (v ## UL)\n\
2101 #define INTMAX_C(v) (v ## LL)\n\
2102 #define UINTMAX_C(v) (v ## ULL)\n\
2106 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2108 * Description of Dec_Intern_Asm fix
2110 tSCC zDec_Intern_AsmName[] =
2114 * File name selection pattern
2116 tSCC zDec_Intern_AsmList[] =
2119 * Machine/OS name selection pattern
2121 #define apzDec_Intern_AsmMachs (const char**)NULL
2122 #define DEC_INTERN_ASM_TEST_CT 0
2123 #define aDec_Intern_AsmTests (tTestDesc*)NULL
2126 * Fix Command Arguments for Dec_Intern_Asm
2128 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2129 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2131 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2135 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2137 * Description of Djgpp_Wchar_H fix
2139 tSCC zDjgpp_Wchar_HName[] =
2143 * File name selection pattern
2145 #define zDjgpp_Wchar_HList (char*)NULL
2147 * Machine/OS name selection pattern
2149 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2152 * content selection pattern - do fix if pattern found
2154 tSCC zDjgpp_Wchar_HSelect0[] =
2158 * content bypass pattern - skip fix if pattern found
2160 tSCC zDjgpp_Wchar_HBypass0[] =
2163 #define DJGPP_WCHAR_H_TEST_CT 2
2164 static tTestDesc aDjgpp_Wchar_HTests[] = {
2165 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2166 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2169 * Fix Command Arguments for Djgpp_Wchar_H
2171 static const char* apzDjgpp_Wchar_HPatch[] = {
2174 #include <sys/djtypes.h>",
2175 "#include <stddef.h>",
2178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2180 * Description of Ecd_Cursor fix
2182 tSCC zEcd_CursorName[] =
2186 * File name selection pattern
2188 tSCC zEcd_CursorList[] =
2189 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2191 * Machine/OS name selection pattern
2193 #define apzEcd_CursorMachs (const char**)NULL
2196 * content selection pattern - do fix if pattern found
2198 tSCC zEcd_CursorSelect0[] =
2201 #define ECD_CURSOR_TEST_CT 1
2202 static tTestDesc aEcd_CursorTests[] = {
2203 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2206 * Fix Command Arguments for Ecd_Cursor
2208 static const char* apzEcd_CursorPatch[] = {
2213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2215 * Description of Freebsd_Gcc3_Breakage fix
2217 tSCC zFreebsd_Gcc3_BreakageName[] =
2218 "freebsd_gcc3_breakage";
2221 * File name selection pattern
2223 tSCC zFreebsd_Gcc3_BreakageList[] =
2226 * Machine/OS name selection pattern
2228 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2230 (const char*)NULL };
2233 * content selection pattern - do fix if pattern found
2235 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2236 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2239 * content bypass pattern - skip fix if pattern found
2241 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2242 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2244 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2245 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2246 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2247 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2250 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2252 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2254 "%0 || __GNUC__ >= 3",
2257 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2259 * Description of Freebsd_Gcc4_Breakage fix
2261 tSCC zFreebsd_Gcc4_BreakageName[] =
2262 "freebsd_gcc4_breakage";
2265 * File name selection pattern
2267 tSCC zFreebsd_Gcc4_BreakageList[] =
2270 * Machine/OS name selection pattern
2272 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2274 (const char*)NULL };
2277 * content selection pattern - do fix if pattern found
2279 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2280 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2282 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2283 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2284 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2287 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2289 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2291 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2296 * Description of Glibc_C99_Inline_1 fix
2298 tSCC zGlibc_C99_Inline_1Name[] =
2299 "glibc_c99_inline_1";
2302 * File name selection pattern
2304 tSCC zGlibc_C99_Inline_1List[] =
2305 "features.h\0*/features.h\0";
2307 * Machine/OS name selection pattern
2309 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2312 * content selection pattern - do fix if pattern found
2314 tSCC zGlibc_C99_Inline_1Select0[] =
2315 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2317 #define GLIBC_C99_INLINE_1_TEST_CT 1
2318 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2319 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2322 * Fix Command Arguments for Glibc_C99_Inline_1
2324 static const char* apzGlibc_C99_Inline_1Patch[] = {
2326 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2331 * Description of Glibc_C99_Inline_1a fix
2333 tSCC zGlibc_C99_Inline_1aName[] =
2334 "glibc_c99_inline_1a";
2337 * File name selection pattern
2339 tSCC zGlibc_C99_Inline_1aList[] =
2340 "features.h\0*/features.h\0";
2342 * Machine/OS name selection pattern
2344 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2347 * content selection pattern - do fix if pattern found
2349 tSCC zGlibc_C99_Inline_1aSelect0[] =
2350 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2351 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2353 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2354 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2355 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2358 * Fix Command Arguments for Glibc_C99_Inline_1a
2360 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2362 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2368 * Description of Glibc_C99_Inline_2 fix
2370 tSCC zGlibc_C99_Inline_2Name[] =
2371 "glibc_c99_inline_2";
2374 * File name selection pattern
2376 tSCC zGlibc_C99_Inline_2List[] =
2377 "sys/stat.h\0*/sys/stat.h\0";
2379 * Machine/OS name selection pattern
2381 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2384 * content selection pattern - do fix if pattern found
2386 tSCC zGlibc_C99_Inline_2Select0[] =
2387 "extern __inline__ int";
2389 #define GLIBC_C99_INLINE_2_TEST_CT 1
2390 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2391 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2394 * Fix Command Arguments for Glibc_C99_Inline_2
2396 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2397 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2400 __inline__ int \\1/",
2401 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2404 __inline__ int __REDIRECT\\1 (\\2/",
2405 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2413 * Description of Glibc_C99_Inline_3 fix
2415 tSCC zGlibc_C99_Inline_3Name[] =
2416 "glibc_c99_inline_3";
2419 * File name selection pattern
2421 tSCC zGlibc_C99_Inline_3List[] =
2422 "bits/string2.h\0*/bits/string2.h\0";
2424 * Machine/OS name selection pattern
2426 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2429 * content selection pattern - do fix if pattern found
2431 tSCC zGlibc_C99_Inline_3Select0[] =
2435 * content bypass pattern - skip fix if pattern found
2437 tSCC zGlibc_C99_Inline_3Bypass0[] =
2438 "__extern_inline|__GNU_STDC_INLINE__";
2440 #define GLIBC_C99_INLINE_3_TEST_CT 2
2441 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2442 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2443 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2446 * Fix Command Arguments for Glibc_C99_Inline_3
2448 static const char* apzGlibc_C99_Inline_3Patch[] = {
2450 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2451 "^# ifdef __cplusplus$",
2454 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2456 * Description of Glibc_C99_Inline_4 fix
2458 tSCC zGlibc_C99_Inline_4Name[] =
2459 "glibc_c99_inline_4";
2462 * File name selection pattern
2464 tSCC zGlibc_C99_Inline_4List[] =
2465 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2467 * Machine/OS name selection pattern
2469 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2472 * content selection pattern - do fix if pattern found
2474 tSCC zGlibc_C99_Inline_4Select0[] =
2475 "(^| )extern __inline";
2478 * content bypass pattern - skip fix if pattern found
2480 tSCC zGlibc_C99_Inline_4Bypass0[] =
2481 "__extern_inline|__gnu_inline__";
2483 #define GLIBC_C99_INLINE_4_TEST_CT 2
2484 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2485 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2486 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2489 * Fix Command Arguments for Glibc_C99_Inline_4
2491 static const char* apzGlibc_C99_Inline_4Patch[] = {
2493 "%0 __attribute__ ((__gnu_inline__))",
2496 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2498 * Description of Glibc_Mutex_Init fix
2500 tSCC zGlibc_Mutex_InitName[] =
2504 * File name selection pattern
2506 tSCC zGlibc_Mutex_InitList[] =
2509 * Machine/OS name selection pattern
2511 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2514 * content selection pattern - do fix if pattern found
2516 tSCC zGlibc_Mutex_InitSelect0[] =
2517 "\\{ *\\{ *0, *\\} *\\}";
2519 #define GLIBC_MUTEX_INIT_TEST_CT 1
2520 static tTestDesc aGlibc_Mutex_InitTests[] = {
2521 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2524 * Fix Command Arguments for Glibc_Mutex_Init
2526 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2527 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2529 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2531 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2532 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2533 "-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/",
2534 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2535 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2538 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2540 * Description of Glibc_Stdint fix
2542 tSCC zGlibc_StdintName[] =
2546 * File name selection pattern
2548 tSCC zGlibc_StdintList[] =
2551 * Machine/OS name selection pattern
2553 #define apzGlibc_StdintMachs (const char**)NULL
2556 * content selection pattern - do fix if pattern found
2558 tSCC zGlibc_StdintSelect0[] =
2561 #define GLIBC_STDINT_TEST_CT 1
2562 static tTestDesc aGlibc_StdintTests[] = {
2563 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
2566 * Fix Command Arguments for Glibc_Stdint
2568 static const char* apzGlibc_StdintPatch[] = {
2570 "# define UINT8_C(c)\tc\n\
2571 # define UINT16_C(c)\tc",
2572 "# define UINT8_C\\(c\\)\tc ## U\n\
2573 # define UINT16_C\\(c\\)\tc ## U",
2576 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2578 * Description of Glibc_Tgmath fix
2580 tSCC zGlibc_TgmathName[] =
2584 * File name selection pattern
2586 tSCC zGlibc_TgmathList[] =
2589 * Machine/OS name selection pattern
2591 #define apzGlibc_TgmathMachs (const char**)NULL
2594 * content selection pattern - do fix if pattern found
2596 tSCC zGlibc_TgmathSelect0[] =
2597 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2600 * content bypass pattern - skip fix if pattern found
2602 tSCC zGlibc_TgmathBypass0[] =
2603 "__floating_type\\(type\\) \\\\\n\
2604 .*__builtin_classify_type";
2606 #define GLIBC_TGMATH_TEST_CT 2
2607 static tTestDesc aGlibc_TgmathTests[] = {
2608 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
2609 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2612 * Fix Command Arguments for Glibc_Tgmath
2614 static const char* apzGlibc_TgmathPatch[] = {
2616 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
2619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2621 * Description of Gnu_Types fix
2623 tSCC zGnu_TypesName[] =
2627 * File name selection pattern
2629 tSCC zGnu_TypesList[] =
2630 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2632 * Machine/OS name selection pattern
2634 tSCC* apzGnu_TypesMachs[] = {
2635 "*-*-solaris2.1[0-9]*",
2636 (const char*)NULL };
2639 * content selection pattern - do fix if pattern found
2641 tSCC zGnu_TypesSelect0[] =
2642 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2645 * content bypass pattern - skip fix if pattern found
2647 tSCC zGnu_TypesBypass0[] =
2648 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2650 #define GNU_TYPES_TEST_CT 2
2651 static tTestDesc aGnu_TypesTests[] = {
2652 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2653 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2656 * Fix Command Arguments for Gnu_Types
2658 static const char* apzGnu_TypesPatch[] = {
2662 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2664 * Description of Hp_Inline fix
2666 tSCC zHp_InlineName[] =
2670 * File name selection pattern
2672 tSCC zHp_InlineList[] =
2673 "sys/spinlock.h\0machine/machparam.h\0";
2675 * Machine/OS name selection pattern
2677 #define apzHp_InlineMachs (const char**)NULL
2680 * content selection pattern - do fix if pattern found
2682 tSCC zHp_InlineSelect0[] =
2683 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2685 #define HP_INLINE_TEST_CT 1
2686 static tTestDesc aHp_InlineTests[] = {
2687 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2690 * Fix Command Arguments for Hp_Inline
2692 static const char* apzHp_InlinePatch[] = {
2695 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2700 * Description of Hp_Sysfile fix
2702 tSCC zHp_SysfileName[] =
2706 * File name selection pattern
2708 tSCC zHp_SysfileList[] =
2711 * Machine/OS name selection pattern
2713 #define apzHp_SysfileMachs (const char**)NULL
2716 * content selection pattern - do fix if pattern found
2718 tSCC zHp_SysfileSelect0[] =
2721 #define HP_SYSFILE_TEST_CT 1
2722 static tTestDesc aHp_SysfileTests[] = {
2723 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2726 * Fix Command Arguments for Hp_Sysfile
2728 static const char* apzHp_SysfilePatch[] = {
2730 "(struct file *, ...)",
2734 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2736 * Description of Hppa_Hpux_Fp_Macros fix
2738 tSCC zHppa_Hpux_Fp_MacrosName[] =
2739 "hppa_hpux_fp_macros";
2742 * File name selection pattern
2744 tSCC zHppa_Hpux_Fp_MacrosList[] =
2747 * Machine/OS name selection pattern
2749 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2751 (const char*)NULL };
2754 * content selection pattern - do fix if pattern found
2756 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2757 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2758 #[ \t]*define[ \t]*FP_ZERO.*\n\
2759 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2760 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2761 #[ \t]*define[ \t]*FP_NAN.*\n";
2763 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2764 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2765 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2768 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2770 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2772 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2773 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
2774 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2776 #ifdef _INCLUDE_HPUX_SOURCE\n",
2779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2781 * Description of Hpux10_Cpp_Pow_Inline fix
2783 tSCC zHpux10_Cpp_Pow_InlineName[] =
2784 "hpux10_cpp_pow_inline";
2787 * File name selection pattern
2789 tSCC zHpux10_Cpp_Pow_InlineList[] =
2790 "fixinc-test-limits.h\0math.h\0";
2792 * Machine/OS name selection pattern
2794 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2797 * content selection pattern - do fix if pattern found
2799 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2800 "^# +ifdef +__cplusplus\n\
2802 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2803 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2805 +extern +\"C\" +\\{\n\
2809 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2810 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2811 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2814 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2816 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2821 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2823 * Description of Hpux11_Cpp_Pow_Inline fix
2825 tSCC zHpux11_Cpp_Pow_InlineName[] =
2826 "hpux11_cpp_pow_inline";
2829 * File name selection pattern
2831 tSCC zHpux11_Cpp_Pow_InlineList[] =
2834 * Machine/OS name selection pattern
2836 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2839 * content selection pattern - do fix if pattern found
2841 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2842 " +inline double pow\\(double d,int expon\\) \\{\n\
2843 +return pow\\(d, \\(double\\)expon\\);\n\
2846 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2847 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2848 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2851 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2853 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2858 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2860 * Description of Hpux10_Ctype_Declarations1 fix
2862 tSCC zHpux10_Ctype_Declarations1Name[] =
2863 "hpux10_ctype_declarations1";
2866 * File name selection pattern
2868 tSCC zHpux10_Ctype_Declarations1List[] =
2871 * Machine/OS name selection pattern
2873 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2876 * content selection pattern - do fix if pattern found
2878 tSCC zHpux10_Ctype_Declarations1Select0[] =
2879 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2882 * content bypass pattern - skip fix if pattern found
2884 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2885 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2887 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2888 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2889 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2890 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2893 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2895 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2897 "#ifdef _PROTOTYPES\n\
2898 extern int __tolower(int);\n\
2899 extern int __toupper(int);\n\
2900 #else /* NOT _PROTOTYPES */\n\
2901 extern int __tolower();\n\
2902 extern int __toupper();\n\
2903 #endif /* _PROTOTYPES */\n\n\
2907 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2909 * Description of Hpux10_Ctype_Declarations2 fix
2911 tSCC zHpux10_Ctype_Declarations2Name[] =
2912 "hpux10_ctype_declarations2";
2915 * File name selection pattern
2917 tSCC zHpux10_Ctype_Declarations2List[] =
2920 * Machine/OS name selection pattern
2922 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2925 * content selection pattern - do fix if pattern found
2927 tSCC zHpux10_Ctype_Declarations2Select0[] =
2928 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2931 * content bypass pattern - skip fix if pattern found
2933 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2934 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2936 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2937 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2938 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2939 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2942 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2944 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2947 #ifdef _PROTOTYPES\n\
2948 extern int _isalnum(int);\n\
2949 extern int _isalpha(int);\n\
2950 extern int _iscntrl(int);\n\
2951 extern int _isdigit(int);\n\
2952 extern int _isgraph(int);\n\
2953 extern int _islower(int);\n\
2954 extern int _isprint(int);\n\
2955 extern int _ispunct(int);\n\
2956 extern int _isspace(int);\n\
2957 extern int _isupper(int);\n\
2958 extern int _isxdigit(int);\n\
2959 # else /* not _PROTOTYPES */\n\
2960 extern int _isalnum();\n\
2961 extern int _isalpha();\n\
2962 extern int _iscntrl();\n\
2963 extern int _isdigit();\n\
2964 extern int _isgraph();\n\
2965 extern int _islower();\n\
2966 extern int _isprint();\n\
2967 extern int _ispunct();\n\
2968 extern int _isspace();\n\
2969 extern int _isupper();\n\
2970 extern int _isxdigit();\n\
2971 #endif /* _PROTOTYPES */\n",
2974 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2976 * Description of Hpux10_Stdio_Declarations fix
2978 tSCC zHpux10_Stdio_DeclarationsName[] =
2979 "hpux10_stdio_declarations";
2982 * File name selection pattern
2984 tSCC zHpux10_Stdio_DeclarationsList[] =
2987 * Machine/OS name selection pattern
2989 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2992 * content selection pattern - do fix if pattern found
2994 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2995 "^#[ \t]*define _iob[ \t]*__iob";
2998 * content bypass pattern - skip fix if pattern found
3000 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3001 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3003 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
3004 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3005 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3006 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3009 * Fix Command Arguments for Hpux10_Stdio_Declarations
3011 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3014 # if defined(__STDC__) || defined(__cplusplus)\n\
3015 extern int snprintf(char *, size_t, const char *, ...);\n\
3016 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3017 # else /* not __STDC__) || __cplusplus */\n\
3018 extern int snprintf();\n\
3019 extern int vsnprintf();\n\
3020 # endif /* __STDC__) || __cplusplus */\n",
3023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3025 * Description of Hpux11_Abs fix
3027 tSCC zHpux11_AbsName[] =
3031 * File name selection pattern
3033 tSCC zHpux11_AbsList[] =
3036 * Machine/OS name selection pattern
3038 tSCC* apzHpux11_AbsMachs[] = {
3040 (const char*)NULL };
3043 * content selection pattern - do fix if pattern found
3045 tSCC zHpux11_AbsSelect0[] =
3046 "ifndef _MATH_INCLUDED";
3048 #define HPUX11_ABS_TEST_CT 1
3049 static tTestDesc aHpux11_AbsTests[] = {
3050 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
3053 * Fix Command Arguments for Hpux11_Abs
3055 static const char* apzHpux11_AbsPatch[] = {
3057 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3060 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3062 * Description of Hpux11_Fabsf fix
3064 tSCC zHpux11_FabsfName[] =
3068 * File name selection pattern
3070 tSCC zHpux11_FabsfList[] =
3073 * Machine/OS name selection pattern
3075 #define apzHpux11_FabsfMachs (const char**)NULL
3078 * content selection pattern - do fix if pattern found
3080 tSCC zHpux11_FabsfSelect0[] =
3081 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3084 * content bypass pattern - skip fix if pattern found
3086 tSCC zHpux11_FabsfBypass0[] =
3089 #define HPUX11_FABSF_TEST_CT 2
3090 static tTestDesc aHpux11_FabsfTests[] = {
3091 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
3092 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3095 * Fix Command Arguments for Hpux11_Fabsf
3097 static const char* apzHpux11_FabsfPatch[] = {
3099 "#ifndef __cplusplus\n\
3104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3106 * Description of Hpux11_Pthread_Const fix
3108 tSCC zHpux11_Pthread_ConstName[] =
3109 "hpux11_pthread_const";
3112 * File name selection pattern
3114 tSCC zHpux11_Pthread_ConstList[] =
3117 * Machine/OS name selection pattern
3119 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3120 "*-hp-hpux11.[0-3]*",
3121 (const char*)NULL };
3124 * content selection pattern - do fix if pattern found
3126 tSCC zHpux11_Pthread_ConstSelect0[] =
3127 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3129 #define HPUX11_PTHREAD_CONST_TEST_CT 1
3130 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3131 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3134 * Fix Command Arguments for Hpux11_Pthread_Const
3136 static const char* apzHpux11_Pthread_ConstPatch[] = {
3138 "#define __POINTER_SET\t\t((void *) 1L)",
3141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3143 * Description of Hpux11_Size_T fix
3145 tSCC zHpux11_Size_TName[] =
3149 * File name selection pattern
3151 #define zHpux11_Size_TList (char*)NULL
3153 * Machine/OS name selection pattern
3155 tSCC* apzHpux11_Size_TMachs[] = {
3157 (const char*)NULL };
3160 * content selection pattern - do fix if pattern found
3162 tSCC zHpux11_Size_TSelect0[] =
3165 #define HPUX11_SIZE_T_TEST_CT 1
3166 static tTestDesc aHpux11_Size_TTests[] = {
3167 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3170 * Fix Command Arguments for Hpux11_Size_T
3172 static const char* apzHpux11_Size_TPatch[] = {
3177 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3179 * Description of Hpux11_Snprintf fix
3181 tSCC zHpux11_SnprintfName[] =
3185 * File name selection pattern
3187 tSCC zHpux11_SnprintfList[] =
3190 * Machine/OS name selection pattern
3192 #define apzHpux11_SnprintfMachs (const char**)NULL
3195 * content selection pattern - do fix if pattern found
3197 tSCC zHpux11_SnprintfSelect0[] =
3198 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3200 #define HPUX11_SNPRINTF_TEST_CT 1
3201 static tTestDesc aHpux11_SnprintfTests[] = {
3202 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3205 * Fix Command Arguments for Hpux11_Snprintf
3207 static const char* apzHpux11_SnprintfPatch[] = {
3212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3214 * Description of Hpux11_Vsnprintf fix
3216 tSCC zHpux11_VsnprintfName[] =
3220 * File name selection pattern
3222 tSCC zHpux11_VsnprintfList[] =
3225 * Machine/OS name selection pattern
3227 #define apzHpux11_VsnprintfMachs (const char**)NULL
3230 * content selection pattern - do fix if pattern found
3232 tSCC zHpux11_VsnprintfSelect0[] =
3233 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3235 #define HPUX11_VSNPRINTF_TEST_CT 1
3236 static tTestDesc aHpux11_VsnprintfTests[] = {
3237 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3240 * Fix Command Arguments for Hpux11_Vsnprintf
3242 static const char* apzHpux11_VsnprintfPatch[] = {
3247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3249 * Description of Hpux8_Bogus_Inlines fix
3251 tSCC zHpux8_Bogus_InlinesName[] =
3252 "hpux8_bogus_inlines";
3255 * File name selection pattern
3257 tSCC zHpux8_Bogus_InlinesList[] =
3260 * Machine/OS name selection pattern
3262 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3265 * content selection pattern - do fix if pattern found
3267 tSCC zHpux8_Bogus_InlinesSelect0[] =
3271 * content bypass pattern - skip fix if pattern found
3273 tSCC zHpux8_Bogus_InlinesBypass0[] =
3276 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3277 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3278 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3279 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3282 * Fix Command Arguments for Hpux8_Bogus_Inlines
3284 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3285 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3286 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3287 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3288 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3291 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3293 * Description of Hpux_Ctype_Macros fix
3295 tSCC zHpux_Ctype_MacrosName[] =
3296 "hpux_ctype_macros";
3299 * File name selection pattern
3301 tSCC zHpux_Ctype_MacrosList[] =
3304 * Machine/OS name selection pattern
3306 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3309 * content selection pattern - do fix if pattern found
3311 tSCC zHpux_Ctype_MacrosSelect0[] =
3312 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3314 #define HPUX_CTYPE_MACROS_TEST_CT 1
3315 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3316 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3319 * Fix Command Arguments for Hpux_Ctype_Macros
3321 static const char* apzHpux_Ctype_MacrosPatch[] = {
3326 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3328 * Description of Hpux_Htonl fix
3330 tSCC zHpux_HtonlName[] =
3334 * File name selection pattern
3336 tSCC zHpux_HtonlList[] =
3339 * Machine/OS name selection pattern
3341 #define apzHpux_HtonlMachs (const char**)NULL
3344 * content selection pattern - do fix if pattern found
3346 tSCC zHpux_HtonlSelect0[] =
3347 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3349 \\* Macros for number representation conversion\\.\n\
3353 #define HPUX_HTONL_TEST_CT 1
3354 static tTestDesc aHpux_HtonlTests[] = {
3355 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3358 * Fix Command Arguments for Hpux_Htonl
3360 static const char* apzHpux_HtonlPatch[] = {
3366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3368 * Description of Hpux_Long_Double fix
3370 tSCC zHpux_Long_DoubleName[] =
3374 * File name selection pattern
3376 tSCC zHpux_Long_DoubleList[] =
3379 * Machine/OS name selection pattern
3381 tSCC* apzHpux_Long_DoubleMachs[] = {
3383 "*-*-hpux11.[012]*",
3384 (const char*)NULL };
3387 * content selection pattern - do fix if pattern found
3389 tSCC zHpux_Long_DoubleSelect0[] =
3390 "extern[ \t]long_double[ \t]strtold";
3393 * content bypass pattern - skip fix if pattern found
3395 tSCC zHpux_Long_DoubleBypass0[] =
3398 #define HPUX_LONG_DOUBLE_TEST_CT 2
3399 static tTestDesc aHpux_Long_DoubleTests[] = {
3400 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3401 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3404 * Fix Command Arguments for Hpux_Long_Double
3406 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3407 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3408 "-e", "s/long_double/long double/g",
3411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3413 * Description of Hpux_Long_Double_2 fix
3415 tSCC zHpux_Long_Double_2Name[] =
3416 "hpux_long_double_2";
3419 * File name selection pattern
3421 tSCC zHpux_Long_Double_2List[] =
3424 * Machine/OS name selection pattern
3426 tSCC* apzHpux_Long_Double_2Machs[] = {
3427 "hppa*-*-hpux11.3*",
3428 (const char*)NULL };
3431 * content selection pattern - do fix if pattern found
3433 tSCC zHpux_Long_Double_2Select0[] =
3434 "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
3436 #define HPUX_LONG_DOUBLE_2_TEST_CT 1
3437 static tTestDesc aHpux_Long_Double_2Tests[] = {
3438 { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
3441 * Fix Command Arguments for Hpux_Long_Double_2
3443 static const char* apzHpux_Long_Double_2Patch[] = {
3445 "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
3448 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3450 * Description of Hpux_Systime fix
3452 tSCC zHpux_SystimeName[] =
3456 * File name selection pattern
3458 tSCC zHpux_SystimeList[] =
3461 * Machine/OS name selection pattern
3463 #define apzHpux_SystimeMachs (const char**)NULL
3466 * content selection pattern - do fix if pattern found
3468 tSCC zHpux_SystimeSelect0[] =
3469 "^extern struct sigevent;";
3471 #define HPUX_SYSTIME_TEST_CT 1
3472 static tTestDesc aHpux_SystimeTests[] = {
3473 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3476 * Fix Command Arguments for Hpux_Systime
3478 static const char* apzHpux_SystimePatch[] = {
3483 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3485 * Description of Hpux_Spu_Info fix
3487 tSCC zHpux_Spu_InfoName[] =
3491 * File name selection pattern
3493 tSCC zHpux_Spu_InfoList[] =
3494 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3496 * Machine/OS name selection pattern
3498 tSCC* apzHpux_Spu_InfoMachs[] = {
3500 (const char*)NULL };
3503 * content selection pattern - do fix if pattern found
3505 tSCC zHpux_Spu_InfoSelect0[] =
3506 "^.*extern.*spu_info.*";
3508 #define HPUX_SPU_INFO_TEST_CT 1
3509 static tTestDesc aHpux_Spu_InfoTests[] = {
3510 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3513 * Fix Command Arguments for Hpux_Spu_Info
3515 static const char* apzHpux_Spu_InfoPatch[] = {
3522 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3524 * Description of Hpux11_Extern_Sendfile fix
3526 tSCC zHpux11_Extern_SendfileName[] =
3527 "hpux11_extern_sendfile";
3530 * File name selection pattern
3532 tSCC zHpux11_Extern_SendfileList[] =
3535 * Machine/OS name selection pattern
3537 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3538 "*-hp-hpux11.[12]*",
3539 (const char*)NULL };
3542 * content selection pattern - do fix if pattern found
3544 tSCC zHpux11_Extern_SendfileSelect0[] =
3545 "^[ \t]*extern sbsize_t sendfile.*\n\
3548 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3549 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3550 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3553 * Fix Command Arguments for Hpux11_Extern_Sendfile
3555 static const char* apzHpux11_Extern_SendfilePatch[] = {
3557 "#ifndef _APP32_64BIT_OFF_T\n\
3561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3563 * Description of Hpux11_Extern_Sendpath fix
3565 tSCC zHpux11_Extern_SendpathName[] =
3566 "hpux11_extern_sendpath";
3569 * File name selection pattern
3571 tSCC zHpux11_Extern_SendpathList[] =
3574 * Machine/OS name selection pattern
3576 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3577 "*-hp-hpux11.[12]*",
3578 (const char*)NULL };
3581 * content selection pattern - do fix if pattern found
3583 tSCC zHpux11_Extern_SendpathSelect0[] =
3584 "^[ \t]*extern sbsize_t sendpath.*\n\
3587 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3588 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3589 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3592 * Fix Command Arguments for Hpux11_Extern_Sendpath
3594 static const char* apzHpux11_Extern_SendpathPatch[] = {
3596 "#ifndef _APP32_64BIT_OFF_T\n\
3600 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3602 * Description of Hpux_Extern_Errno fix
3604 tSCC zHpux_Extern_ErrnoName[] =
3605 "hpux_extern_errno";
3608 * File name selection pattern
3610 tSCC zHpux_Extern_ErrnoList[] =
3613 * Machine/OS name selection pattern
3615 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3617 "*-hp-hpux11.[0-2]*",
3618 (const char*)NULL };
3621 * content selection pattern - do fix if pattern found
3623 tSCC zHpux_Extern_ErrnoSelect0[] =
3624 "^[ \t]*extern int errno;$";
3626 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3627 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3628 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3631 * Fix Command Arguments for Hpux_Extern_Errno
3633 static const char* apzHpux_Extern_ErrnoPatch[] = {
3635 "#ifdef __cplusplus\n\
3639 #ifdef __cplusplus\n\
3644 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3646 * Description of Hpux_Pthread_Initializers fix
3648 tSCC zHpux_Pthread_InitializersName[] =
3649 "hpux_pthread_initializers";
3652 * File name selection pattern
3654 tSCC zHpux_Pthread_InitializersList[] =
3657 * Machine/OS name selection pattern
3659 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3660 "*-hp-hpux11.[0-3]*",
3661 (const char*)NULL };
3662 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3663 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3666 * Fix Command Arguments for Hpux_Pthread_Initializers
3668 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3669 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3670 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3671 "-e", "/^[ \t]*0$/d",
3672 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3673 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3674 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3675 "-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\\\\@",
3676 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3677 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3678 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3679 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3680 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3681 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3684 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3686 * Description of Hpux_C99_Intptr fix
3688 tSCC zHpux_C99_IntptrName[] =
3692 * File name selection pattern
3694 tSCC zHpux_C99_IntptrList[] =
3697 * Machine/OS name selection pattern
3699 tSCC* apzHpux_C99_IntptrMachs[] = {
3701 (const char*)NULL };
3702 #define HPUX_C99_INTPTR_TEST_CT 0
3703 #define aHpux_C99_IntptrTests (tTestDesc*)NULL
3706 * Fix Command Arguments for Hpux_C99_Intptr
3708 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
3709 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
3710 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
3711 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
3712 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
3713 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
3714 "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
3717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3719 * Description of Hpux_C99_Inttypes fix
3721 tSCC zHpux_C99_InttypesName[] =
3722 "hpux_c99_inttypes";
3725 * File name selection pattern
3727 tSCC zHpux_C99_InttypesList[] =
3728 "inttypes.h\0stdint.h\0";
3730 * Machine/OS name selection pattern
3732 tSCC* apzHpux_C99_InttypesMachs[] = {
3733 "*-hp-hpux11.[23]*",
3734 (const char*)NULL };
3735 #define HPUX_C99_INTTYPES_TEST_CT 0
3736 #define aHpux_C99_InttypesTests (tTestDesc*)NULL
3739 * Fix Command Arguments for Hpux_C99_Inttypes
3741 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
3742 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
3743 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
3744 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
3745 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
3748 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3750 * Description of Hpux_C99_Inttypes2 fix
3752 tSCC zHpux_C99_Inttypes2Name[] =
3753 "hpux_c99_inttypes2";
3756 * File name selection pattern
3758 tSCC zHpux_C99_Inttypes2List[] =
3761 * Machine/OS name selection pattern
3763 tSCC* apzHpux_C99_Inttypes2Machs[] = {
3765 (const char*)NULL };
3766 #define HPUX_C99_INTTYPES2_TEST_CT 0
3767 #define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL
3770 * Fix Command Arguments for Hpux_C99_Inttypes2
3772 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
3773 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
3774 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
3775 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
3776 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
3779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3781 * Description of Hpux_Stdint_Least fix
3783 tSCC zHpux_Stdint_LeastName[] =
3784 "hpux_stdint_least";
3787 * File name selection pattern
3789 tSCC zHpux_Stdint_LeastList[] =
3792 * Machine/OS name selection pattern
3794 tSCC* apzHpux_Stdint_LeastMachs[] = {
3796 (const char*)NULL };
3799 * content selection pattern - do fix if pattern found
3801 tSCC zHpux_Stdint_LeastSelect0[] =
3802 "^[ \t]*#[ \t]*define[ \t]*UINT_LEAST64_MAX[ \t]*ULLONG_MAX";
3804 #define HPUX_STDINT_LEAST_TEST_CT 1
3805 static tTestDesc aHpux_Stdint_LeastTests[] = {
3806 { TT_EGREP, zHpux_Stdint_LeastSelect0, (regex_t*)NULL }, };
3809 * Fix Command Arguments for Hpux_Stdint_Least
3811 static const char* apzHpux_Stdint_LeastPatch[] = {
3814 # define\tUINT_LEAST64_MAX\tULONG_MAX\n\
3820 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3822 * Description of Hpux_Stdint_Fast fix
3824 tSCC zHpux_Stdint_FastName[] =
3828 * File name selection pattern
3830 tSCC zHpux_Stdint_FastList[] =
3833 * Machine/OS name selection pattern
3835 tSCC* apzHpux_Stdint_FastMachs[] = {
3837 (const char*)NULL };
3840 * content selection pattern - do fix if pattern found
3842 tSCC zHpux_Stdint_FastSelect0[] =
3843 "^[ \t]*#[ \t]*define[ \t]*UINT_FAST64_MAX[ \t]*ULLONG_MAX";
3845 #define HPUX_STDINT_FAST_TEST_CT 1
3846 static tTestDesc aHpux_Stdint_FastTests[] = {
3847 { TT_EGREP, zHpux_Stdint_FastSelect0, (regex_t*)NULL }, };
3850 * Fix Command Arguments for Hpux_Stdint_Fast
3852 static const char* apzHpux_Stdint_FastPatch[] = {
3855 # define\tUINT_FAST64_MAX\t\tULONG_MAX\n\
3861 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3863 * Description of Hpux_Inttype_Int_Least8_T fix
3865 tSCC zHpux_Inttype_Int_Least8_TName[] =
3866 "hpux_inttype_int_least8_t";
3869 * File name selection pattern
3871 tSCC zHpux_Inttype_Int_Least8_TList[] =
3872 "sys/_inttypes.h\0";
3874 * Machine/OS name selection pattern
3876 tSCC* apzHpux_Inttype_Int_Least8_TMachs[] = {
3878 (const char*)NULL };
3881 * content selection pattern - do fix if pattern found
3883 tSCC zHpux_Inttype_Int_Least8_TSelect0[] =
3884 "^[ \t]*typedef[ \t]*char[ \t]*int_least8_t.*";
3886 #define HPUX_INTTYPE_INT_LEAST8_T_TEST_CT 1
3887 static tTestDesc aHpux_Inttype_Int_Least8_TTests[] = {
3888 { TT_EGREP, zHpux_Inttype_Int_Least8_TSelect0, (regex_t*)NULL }, };
3891 * Fix Command Arguments for Hpux_Inttype_Int_Least8_T
3893 static const char* apzHpux_Inttype_Int_Least8_TPatch[] = {
3895 "typedef signed char int_least8_t;",
3898 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3900 * Description of Hpux_Inttype_Int8_T fix
3902 tSCC zHpux_Inttype_Int8_TName[] =
3903 "hpux_inttype_int8_t";
3906 * File name selection pattern
3908 tSCC zHpux_Inttype_Int8_TList[] =
3909 "sys/_inttypes.h\0";
3911 * Machine/OS name selection pattern
3913 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
3915 (const char*)NULL };
3918 * content selection pattern - do fix if pattern found
3920 tSCC zHpux_Inttype_Int8_TSelect0[] =
3921 "^[ \t]*typedef[ \t]*char[ \t]*int8_t.*";
3923 #define HPUX_INTTYPE_INT8_T_TEST_CT 1
3924 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
3925 { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
3928 * Fix Command Arguments for Hpux_Inttype_Int8_T
3930 static const char* apzHpux_Inttype_Int8_TPatch[] = {
3932 "typedef signed char int8_t;",
3935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3937 * Description of Huge_Val_Hex fix
3939 tSCC zHuge_Val_HexName[] =
3943 * File name selection pattern
3945 tSCC zHuge_Val_HexList[] =
3946 "bits/huge_val.h\0";
3948 * Machine/OS name selection pattern
3950 #define apzHuge_Val_HexMachs (const char**)NULL
3953 * content selection pattern - do fix if pattern found
3955 tSCC zHuge_Val_HexSelect0[] =
3956 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3959 * content bypass pattern - skip fix if pattern found
3961 tSCC zHuge_Val_HexBypass0[] =
3962 "__builtin_huge_val";
3964 #define HUGE_VAL_HEX_TEST_CT 2
3965 static tTestDesc aHuge_Val_HexTests[] = {
3966 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3967 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3970 * Fix Command Arguments for Huge_Val_Hex
3972 static const char* apzHuge_Val_HexPatch[] = {
3974 "#define HUGE_VAL (__builtin_huge_val())\n",
3977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3979 * Description of Huge_Valf_Hex fix
3981 tSCC zHuge_Valf_HexName[] =
3985 * File name selection pattern
3987 tSCC zHuge_Valf_HexList[] =
3988 "bits/huge_val.h\0";
3990 * Machine/OS name selection pattern
3992 #define apzHuge_Valf_HexMachs (const char**)NULL
3995 * content selection pattern - do fix if pattern found
3997 tSCC zHuge_Valf_HexSelect0[] =
3998 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4001 * content bypass pattern - skip fix if pattern found
4003 tSCC zHuge_Valf_HexBypass0[] =
4004 "__builtin_huge_valf";
4006 #define HUGE_VALF_HEX_TEST_CT 2
4007 static tTestDesc aHuge_Valf_HexTests[] = {
4008 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
4009 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4012 * Fix Command Arguments for Huge_Valf_Hex
4014 static const char* apzHuge_Valf_HexPatch[] = {
4016 "#define HUGE_VALF (__builtin_huge_valf())\n",
4019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4021 * Description of Huge_Vall_Hex fix
4023 tSCC zHuge_Vall_HexName[] =
4027 * File name selection pattern
4029 tSCC zHuge_Vall_HexList[] =
4030 "bits/huge_val.h\0";
4032 * Machine/OS name selection pattern
4034 #define apzHuge_Vall_HexMachs (const char**)NULL
4037 * content selection pattern - do fix if pattern found
4039 tSCC zHuge_Vall_HexSelect0[] =
4040 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4043 * content bypass pattern - skip fix if pattern found
4045 tSCC zHuge_Vall_HexBypass0[] =
4046 "__builtin_huge_vall";
4048 #define HUGE_VALL_HEX_TEST_CT 2
4049 static tTestDesc aHuge_Vall_HexTests[] = {
4050 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
4051 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4054 * Fix Command Arguments for Huge_Vall_Hex
4056 static const char* apzHuge_Vall_HexPatch[] = {
4058 "#define HUGE_VALL (__builtin_huge_vall())\n",
4061 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4063 * Description of Int_Abort_Free_And_Exit fix
4065 tSCC zInt_Abort_Free_And_ExitName[] =
4066 "int_abort_free_and_exit";
4069 * File name selection pattern
4071 tSCC zInt_Abort_Free_And_ExitList[] =
4074 * Machine/OS name selection pattern
4076 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4079 * content selection pattern - do fix if pattern found
4081 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4082 "int[ \t]+(abort|free|exit)[ \t]*\\(";
4085 * content bypass pattern - skip fix if pattern found
4087 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4088 "_CLASSIC_ANSI_TYPES";
4090 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
4091 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4092 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4093 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4096 * Fix Command Arguments for Int_Abort_Free_And_Exit
4098 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4103 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4105 * Description of Io_Quotes_Def fix
4107 tSCC zIo_Quotes_DefName[] =
4111 * File name selection pattern
4113 #define zIo_Quotes_DefList (char*)NULL
4115 * Machine/OS name selection pattern
4117 #define apzIo_Quotes_DefMachs (const char**)NULL
4120 * content selection pattern - do fix if pattern found
4122 tSCC zIo_Quotes_DefSelect0[] =
4123 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4125 #define IO_QUOTES_DEF_TEST_CT 1
4126 static tTestDesc aIo_Quotes_DefTests[] = {
4127 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4130 * Fix Command Arguments for Io_Quotes_Def
4132 static const char* apzIo_Quotes_DefPatch[] = {
4137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4139 * Description of Io_Quotes_Use fix
4141 tSCC zIo_Quotes_UseName[] =
4145 * File name selection pattern
4147 #define zIo_Quotes_UseList (char*)NULL
4149 * Machine/OS name selection pattern
4151 #define apzIo_Quotes_UseMachs (const char**)NULL
4154 * content selection pattern - do fix if pattern found
4156 tSCC zIo_Quotes_UseSelect0[] =
4157 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4159 #define IO_QUOTES_USE_TEST_CT 1
4160 static tTestDesc aIo_Quotes_UseTests[] = {
4161 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4164 * Fix Command Arguments for Io_Quotes_Use
4166 static const char* apzIo_Quotes_UsePatch[] = {
4171 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4173 * Description of Ip_Missing_Semi fix
4175 tSCC zIp_Missing_SemiName[] =
4179 * File name selection pattern
4181 tSCC zIp_Missing_SemiList[] =
4184 * Machine/OS name selection pattern
4186 #define apzIp_Missing_SemiMachs (const char**)NULL
4189 * content selection pattern - do fix if pattern found
4191 tSCC zIp_Missing_SemiSelect0[] =
4194 #define IP_MISSING_SEMI_TEST_CT 1
4195 static tTestDesc aIp_Missing_SemiTests[] = {
4196 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4199 * Fix Command Arguments for Ip_Missing_Semi
4201 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4202 "-e", "/^struct/,/^};/s/}$/};/",
4205 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4207 * Description of Irix___Restrict fix
4209 tSCC zIrix___RestrictName[] =
4213 * File name selection pattern
4215 tSCC zIrix___RestrictList[] =
4216 "internal/sgimacros.h\0";
4218 * Machine/OS name selection pattern
4220 tSCC* apzIrix___RestrictMachs[] = {
4222 (const char*)NULL };
4225 * content selection pattern - do fix if pattern found
4227 tSCC zIrix___RestrictSelect0[] =
4229 )(#[ \t]*define __restrict restrict)";
4231 #define IRIX___RESTRICT_TEST_CT 1
4232 static tTestDesc aIrix___RestrictTests[] = {
4233 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
4236 * Fix Command Arguments for Irix___Restrict
4238 static const char* apzIrix___RestrictPatch[] = {
4240 "%1# ifndef __cplusplus\n\
4245 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4247 * Description of Irix___Generic1 fix
4249 tSCC zIrix___Generic1Name[] =
4253 * File name selection pattern
4255 tSCC zIrix___Generic1List[] =
4256 "internal/math_core.h\0";
4258 * Machine/OS name selection pattern
4260 tSCC* apzIrix___Generic1Machs[] = {
4262 (const char*)NULL };
4265 * content selection pattern - do fix if pattern found
4267 tSCC zIrix___Generic1Select0[] =
4268 "#define ([a-z]+)\\(x\\) *__generic.*";
4270 #define IRIX___GENERIC1_TEST_CT 1
4271 static tTestDesc aIrix___Generic1Tests[] = {
4272 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
4275 * Fix Command Arguments for Irix___Generic1
4277 static const char* apzIrix___Generic1Patch[] = {
4279 "extern int %1(double);\n\
4280 extern int %1f(float);\n\
4281 extern int %1l(long double);\n\
4282 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
4283 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
4287 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4289 * Description of Irix___Generic2 fix
4291 tSCC zIrix___Generic2Name[] =
4295 * File name selection pattern
4297 tSCC zIrix___Generic2List[] =
4298 "internal/math_core.h\0";
4300 * Machine/OS name selection pattern
4302 tSCC* apzIrix___Generic2Machs[] = {
4304 (const char*)NULL };
4307 * content selection pattern - do fix if pattern found
4309 tSCC zIrix___Generic2Select0[] =
4310 "#define ([a-z]+)\\(x,y\\) *__generic.*";
4312 #define IRIX___GENERIC2_TEST_CT 1
4313 static tTestDesc aIrix___Generic2Tests[] = {
4314 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
4317 * Fix Command Arguments for Irix___Generic2
4319 static const char* apzIrix___Generic2Patch[] = {
4321 "#define %1(x,y) \\\n\
4322 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
4323 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
4327 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4329 * Description of Irix_Asm_Apostrophe fix
4331 tSCC zIrix_Asm_ApostropheName[] =
4332 "irix_asm_apostrophe";
4335 * File name selection pattern
4337 tSCC zIrix_Asm_ApostropheList[] =
4340 * Machine/OS name selection pattern
4342 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
4345 * content selection pattern - do fix if pattern found
4347 tSCC zIrix_Asm_ApostropheSelect0[] =
4348 "^[ \t]*#.*[Ww]e're";
4350 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
4351 static tTestDesc aIrix_Asm_ApostropheTests[] = {
4352 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
4355 * Fix Command Arguments for Irix_Asm_Apostrophe
4357 static const char* apzIrix_Asm_ApostrophePatch[] = {
4360 "^([ \t]*#.*[Ww]e)'re",
4363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4365 * Description of Irix_Limits_Const fix
4367 tSCC zIrix_Limits_ConstName[] =
4368 "irix_limits_const";
4371 * File name selection pattern
4373 tSCC zIrix_Limits_ConstList[] =
4374 "fixinc-test-limits.h\0limits.h\0";
4376 * Machine/OS name selection pattern
4378 #define apzIrix_Limits_ConstMachs (const char**)NULL
4381 * content selection pattern - do fix if pattern found
4383 tSCC zIrix_Limits_ConstSelect0[] =
4386 #define IRIX_LIMITS_CONST_TEST_CT 1
4387 static tTestDesc aIrix_Limits_ConstTests[] = {
4388 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4391 * Fix Command Arguments for Irix_Limits_Const
4393 static const char* apzIrix_Limits_ConstPatch[] = {
4398 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4400 * Description of Irix_Socklen_T fix
4402 tSCC zIrix_Socklen_TName[] =
4406 * File name selection pattern
4408 tSCC zIrix_Socklen_TList[] =
4411 * Machine/OS name selection pattern
4413 tSCC* apzIrix_Socklen_TMachs[] = {
4415 (const char*)NULL };
4418 * content selection pattern - do fix if pattern found
4420 tSCC zIrix_Socklen_TSelect0[] =
4421 "(#define _SOCKLEN_T\n\
4422 )(typedef u_int32_t socklen_t;)";
4424 #define IRIX_SOCKLEN_T_TEST_CT 1
4425 static tTestDesc aIrix_Socklen_TTests[] = {
4426 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4429 * Fix Command Arguments for Irix_Socklen_T
4431 static const char* apzIrix_Socklen_TPatch[] = {
4433 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4434 typedef int socklen_t;\n\
4437 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4440 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4442 * Description of Irix_Stdint_C99 fix
4444 tSCC zIrix_Stdint_C99Name[] =
4448 * File name selection pattern
4450 tSCC zIrix_Stdint_C99List[] =
4453 * Machine/OS name selection pattern
4455 tSCC* apzIrix_Stdint_C99Machs[] = {
4457 (const char*)NULL };
4460 * content selection pattern - do fix if pattern found
4462 tSCC zIrix_Stdint_C99Select0[] =
4464 )(#error This header file is to be used only for c99 mode compilations)";
4466 #define IRIX_STDINT_C99_TEST_CT 1
4467 static tTestDesc aIrix_Stdint_C99Tests[] = {
4468 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
4471 * Fix Command Arguments for Irix_Stdint_C99
4473 static const char* apzIrix_Stdint_C99Patch[] = {
4479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4481 * Description of Irix_Stdio_Va_List fix
4483 tSCC zIrix_Stdio_Va_ListName[] =
4484 "irix_stdio_va_list";
4487 * File name selection pattern
4489 tSCC zIrix_Stdio_Va_ListList[] =
4490 "stdio.h\0internal/stdio_core.h\0";
4492 * Machine/OS name selection pattern
4494 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4497 * content selection pattern - do fix if pattern found
4499 tSCC zIrix_Stdio_Va_ListSelect0[] =
4500 "/\\* va_list \\*/ char \\*";
4502 #define IRIX_STDIO_VA_LIST_TEST_CT 1
4503 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4504 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4507 * Fix Command Arguments for Irix_Stdio_Va_List
4509 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4514 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4516 * Description of Irix_Wcsftime fix
4518 tSCC zIrix_WcsftimeName[] =
4522 * File name selection pattern
4524 tSCC zIrix_WcsftimeList[] =
4525 "internal/wchar_core.h\0";
4527 * Machine/OS name selection pattern
4529 tSCC* apzIrix_WcsftimeMachs[] = {
4531 (const char*)NULL };
4534 * content selection pattern - do fix if pattern found
4536 tSCC zIrix_WcsftimeSelect0[] =
4538 (extern size_t[ \t]+wcsftime.*const char *.*)";
4540 #define IRIX_WCSFTIME_TEST_CT 1
4541 static tTestDesc aIrix_WcsftimeTests[] = {
4542 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4545 * Fix Command Arguments for Irix_Wcsftime
4547 static const char* apzIrix_WcsftimePatch[] = {
4549 "#if _NO_XOPEN5 && !defined(__c99)\n\
4553 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4555 * Description of Isc_Fmod fix
4557 tSCC zIsc_FmodName[] =
4561 * File name selection pattern
4563 tSCC zIsc_FmodList[] =
4566 * Machine/OS name selection pattern
4568 #define apzIsc_FmodMachs (const char**)NULL
4571 * content selection pattern - do fix if pattern found
4573 tSCC zIsc_FmodSelect0[] =
4576 #define ISC_FMOD_TEST_CT 1
4577 static tTestDesc aIsc_FmodTests[] = {
4578 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
4581 * Fix Command Arguments for Isc_Fmod
4583 static const char* apzIsc_FmodPatch[] = {
4585 "fmod(double, double)",
4588 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4590 * Description of Isc_Omits_With_Stdc fix
4592 tSCC zIsc_Omits_With_StdcName[] =
4593 "isc_omits_with_stdc";
4596 * File name selection pattern
4598 tSCC zIsc_Omits_With_StdcList[] =
4599 "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
4601 * Machine/OS name selection pattern
4603 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
4606 * content selection pattern - do fix if pattern found
4608 tSCC zIsc_Omits_With_StdcSelect0[] =
4609 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
4611 #define ISC_OMITS_WITH_STDC_TEST_CT 1
4612 static tTestDesc aIsc_Omits_With_StdcTests[] = {
4613 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4616 * Fix Command Arguments for Isc_Omits_With_Stdc
4618 static const char* apzIsc_Omits_With_StdcPatch[] = {
4620 "!defined(_POSIX_SOURCE)",
4623 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4625 * Description of Kandr_Concat fix
4627 tSCC zKandr_ConcatName[] =
4631 * File name selection pattern
4633 tSCC zKandr_ConcatList[] =
4634 "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";
4636 * Machine/OS name selection pattern
4638 #define apzKandr_ConcatMachs (const char**)NULL
4641 * content selection pattern - do fix if pattern found
4643 tSCC zKandr_ConcatSelect0[] =
4646 #define KANDR_CONCAT_TEST_CT 1
4647 static tTestDesc aKandr_ConcatTests[] = {
4648 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4651 * Fix Command Arguments for Kandr_Concat
4653 static const char* apzKandr_ConcatPatch[] = {
4658 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4660 * Description of Linux_Ia64_Ucontext fix
4662 tSCC zLinux_Ia64_UcontextName[] =
4663 "linux_ia64_ucontext";
4666 * File name selection pattern
4668 tSCC zLinux_Ia64_UcontextList[] =
4671 * Machine/OS name selection pattern
4673 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4675 (const char*)NULL };
4678 * content selection pattern - do fix if pattern found
4680 tSCC zLinux_Ia64_UcontextSelect0[] =
4681 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4683 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4684 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4685 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4688 * Fix Command Arguments for Linux_Ia64_Ucontext
4690 static const char* apzLinux_Ia64_UcontextPatch[] = {
4692 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4695 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4697 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4699 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4700 "lynxos_no_warning_in_sys_time_h";
4703 * File name selection pattern
4705 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4708 * Machine/OS name selection pattern
4710 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4713 * content selection pattern - do fix if pattern found
4715 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4716 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4718 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4719 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4720 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4723 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4725 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4730 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4732 * Description of Lynxos_Missing_Putenv fix
4734 tSCC zLynxos_Missing_PutenvName[] =
4735 "lynxos_missing_putenv";
4738 * File name selection pattern
4740 tSCC zLynxos_Missing_PutenvList[] =
4743 * Machine/OS name selection pattern
4745 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4747 (const char*)NULL };
4750 * content selection pattern - do fix if pattern found
4752 tSCC zLynxos_Missing_PutenvSelect0[] =
4753 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4756 * content bypass pattern - skip fix if pattern found
4758 tSCC zLynxos_Missing_PutenvBypass0[] =
4761 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4762 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4763 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4764 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4767 * Fix Command Arguments for Lynxos_Missing_Putenv
4769 static const char* apzLynxos_Missing_PutenvPatch[] = {
4772 extern int putenv\t\t\t\t_AP((char *));",
4773 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4778 * Description of Machine_Ansi_H_Va_List fix
4780 tSCC zMachine_Ansi_H_Va_ListName[] =
4781 "machine_ansi_h_va_list";
4784 * File name selection pattern
4786 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4788 * Machine/OS name selection pattern
4790 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4793 * content selection pattern - do fix if pattern found
4795 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4796 "define[ \t]+_BSD_VA_LIST_[ \t]";
4799 * content bypass pattern - skip fix if pattern found
4801 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4802 "__builtin_va_list";
4804 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4805 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4806 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4807 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4810 * Fix Command Arguments for Machine_Ansi_H_Va_List
4812 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4814 "%1__builtin_va_list",
4815 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4818 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4820 * Description of Machine_Name fix
4822 tSCC zMachine_NameName[] =
4826 * File name selection pattern
4828 #define zMachine_NameList (char*)NULL
4830 * Machine/OS name selection pattern
4832 #define apzMachine_NameMachs (const char**)NULL
4835 * perform the C function call test
4837 tSCC zMachine_NameFTst0[] = "machine_name";
4839 #define MACHINE_NAME_TEST_CT 1
4840 static tTestDesc aMachine_NameTests[] = {
4841 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4844 * Fix Command Arguments for Machine_Name
4846 static const char* apzMachine_NamePatch[] = {
4850 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4852 * Description of Math_Exception fix
4854 tSCC zMath_ExceptionName[] =
4858 * File name selection pattern
4860 tSCC zMath_ExceptionList[] =
4863 * Machine/OS name selection pattern
4865 #define apzMath_ExceptionMachs (const char**)NULL
4868 * content selection pattern - do fix if pattern found
4870 tSCC zMath_ExceptionSelect0[] =
4874 * content bypass pattern - skip fix if pattern found
4876 tSCC zMath_ExceptionBypass0[] =
4877 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4879 #define MATH_EXCEPTION_TEST_CT 2
4880 static tTestDesc aMath_ExceptionTests[] = {
4881 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4882 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4885 * Fix Command Arguments for Math_Exception
4887 static const char* apzMath_ExceptionPatch[] = {
4889 "#ifdef __cplusplus\n\
4890 #define exception __math_exception\n\
4892 "#ifdef __cplusplus\n\
4897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4899 * Description of Math_Huge_Val_From_Dbl_Max fix
4901 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4902 "math_huge_val_from_dbl_max";
4905 * File name selection pattern
4907 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4910 * Machine/OS name selection pattern
4912 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4915 * content selection pattern - do fix if pattern found
4917 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4918 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4921 * content bypass pattern - skip fix if pattern found
4923 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4924 "define[ \t]+DBL_MAX";
4926 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4927 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4928 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4929 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4932 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4934 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4935 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4936 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4937 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4942 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4944 * Description of Nested_Auth_Des fix
4946 tSCC zNested_Auth_DesName[] =
4950 * File name selection pattern
4952 tSCC zNested_Auth_DesList[] =
4955 * Machine/OS name selection pattern
4957 #define apzNested_Auth_DesMachs (const char**)NULL
4960 * content selection pattern - do fix if pattern found
4962 tSCC zNested_Auth_DesSelect0[] =
4963 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4965 #define NESTED_AUTH_DES_TEST_CT 1
4966 static tTestDesc aNested_Auth_DesTests[] = {
4967 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4970 * Fix Command Arguments for Nested_Auth_Des
4972 static const char* apzNested_Auth_DesPatch[] = {
4977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4979 * Description of Nested_Sys_Limits fix
4981 tSCC zNested_Sys_LimitsName[] =
4982 "nested_sys_limits";
4985 * File name selection pattern
4987 tSCC zNested_Sys_LimitsList[] =
4990 * Machine/OS name selection pattern
4992 #define apzNested_Sys_LimitsMachs (const char**)NULL
4995 * content selection pattern - do fix if pattern found
4997 tSCC zNested_Sys_LimitsSelect0[] =
5000 #define NESTED_SYS_LIMITS_TEST_CT 1
5001 static tTestDesc aNested_Sys_LimitsTests[] = {
5002 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
5005 * Fix Command Arguments for Nested_Sys_Limits
5007 static const char* apzNested_Sys_LimitsPatch[] = { sed_cmd_z,
5008 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
5009 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
5012 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5014 * Description of Netbsd_C99_Inline_1 fix
5016 tSCC zNetbsd_C99_Inline_1Name[] =
5017 "netbsd_c99_inline_1";
5020 * File name selection pattern
5022 tSCC zNetbsd_C99_Inline_1List[] =
5025 * Machine/OS name selection pattern
5027 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
5029 (const char*)NULL };
5032 * content selection pattern - do fix if pattern found
5034 tSCC zNetbsd_C99_Inline_1Select0[] =
5035 "extern __inline int";
5037 #define NETBSD_C99_INLINE_1_TEST_CT 1
5038 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
5039 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
5042 * Fix Command Arguments for Netbsd_C99_Inline_1
5044 static const char* apzNetbsd_C99_Inline_1Patch[] = {
5047 #ifdef __GNUC_STDC_INLINE__\n\
5048 __attribute__((__gnu_inline__))\n\
5053 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5055 * Description of Netbsd_C99_Inline_2 fix
5057 tSCC zNetbsd_C99_Inline_2Name[] =
5058 "netbsd_c99_inline_2";
5061 * File name selection pattern
5063 tSCC zNetbsd_C99_Inline_2List[] =
5066 * Machine/OS name selection pattern
5068 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
5070 (const char*)NULL };
5073 * content selection pattern - do fix if pattern found
5075 tSCC zNetbsd_C99_Inline_2Select0[] =
5076 "#define _SIGINLINE extern __inline";
5078 #define NETBSD_C99_INLINE_2_TEST_CT 1
5079 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
5080 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
5083 * Fix Command Arguments for Netbsd_C99_Inline_2
5085 static const char* apzNetbsd_C99_Inline_2Patch[] = {
5087 "#ifdef __GNUC_STDC_INLINE__\n\
5088 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
5094 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5096 * Description of Netbsd_Extra_Semicolon fix
5098 tSCC zNetbsd_Extra_SemicolonName[] =
5099 "netbsd_extra_semicolon";
5102 * File name selection pattern
5104 tSCC zNetbsd_Extra_SemicolonList[] =
5107 * Machine/OS name selection pattern
5109 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
5111 (const char*)NULL };
5114 * content selection pattern - do fix if pattern found
5116 tSCC zNetbsd_Extra_SemicolonSelect0[] =
5117 "#define[ \t]*__END_DECLS[ \t]*};";
5119 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
5120 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
5121 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
5124 * Fix Command Arguments for Netbsd_Extra_Semicolon
5126 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
5128 "#define __END_DECLS }",
5131 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5133 * Description of Newlib_Stdint_1 fix
5135 tSCC zNewlib_Stdint_1Name[] =
5139 * File name selection pattern
5141 tSCC zNewlib_Stdint_1List[] =
5144 * Machine/OS name selection pattern
5146 #define apzNewlib_Stdint_1Machs (const char**)NULL
5149 * content selection pattern - do fix if pattern found
5151 tSCC zNewlib_Stdint_1Select0[] =
5152 "@todo - Add support for wint_t types";
5154 #define NEWLIB_STDINT_1_TEST_CT 1
5155 static tTestDesc aNewlib_Stdint_1Tests[] = {
5156 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5159 * Fix Command Arguments for Newlib_Stdint_1
5161 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5162 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5163 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5164 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5165 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5166 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5167 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5168 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5169 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5170 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5171 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5172 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5173 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5174 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5175 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5180 * Description of Newlib_Stdint_2 fix
5182 tSCC zNewlib_Stdint_2Name[] =
5186 * File name selection pattern
5188 tSCC zNewlib_Stdint_2List[] =
5191 * Machine/OS name selection pattern
5193 #define apzNewlib_Stdint_2Machs (const char**)NULL
5196 * content selection pattern - do fix if pattern found
5198 tSCC zNewlib_Stdint_2Select0[] =
5199 "@todo - Add support for wint_t types";
5201 #define NEWLIB_STDINT_2_TEST_CT 1
5202 static tTestDesc aNewlib_Stdint_2Tests[] = {
5203 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5206 * Fix Command Arguments for Newlib_Stdint_2
5208 static const char* apzNewlib_Stdint_2Patch[] = {
5210 "#define INTMAX_MAX __INTMAX_MAX__\n\
5211 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5212 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5213 #define WCHAR_MAX __WCHAR_MAX__\n\
5214 #define WCHAR_MIN __WCHAR_MIN__\n\
5215 #define WINT_MAX __WINT_MAX__\n\
5216 #define WINT_MIN __WINT_MIN__\n\n\
5218 "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5221 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5223 * Description of Next_Math_Prefix fix
5225 tSCC zNext_Math_PrefixName[] =
5229 * File name selection pattern
5231 tSCC zNext_Math_PrefixList[] =
5234 * Machine/OS name selection pattern
5236 #define apzNext_Math_PrefixMachs (const char**)NULL
5239 * content selection pattern - do fix if pattern found
5241 tSCC zNext_Math_PrefixSelect0[] =
5242 "^extern[ \t]+double[ \t]+__const__[ \t]";
5244 #define NEXT_MATH_PREFIX_TEST_CT 1
5245 static tTestDesc aNext_Math_PrefixTests[] = {
5246 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5249 * Fix Command Arguments for Next_Math_Prefix
5251 static const char* apzNext_Math_PrefixPatch[] = {
5253 "extern double %1(",
5254 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5257 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5259 * Description of Next_Template fix
5261 tSCC zNext_TemplateName[] =
5265 * File name selection pattern
5267 tSCC zNext_TemplateList[] =
5270 * Machine/OS name selection pattern
5272 #define apzNext_TemplateMachs (const char**)NULL
5275 * content selection pattern - do fix if pattern found
5277 tSCC zNext_TemplateSelect0[] =
5280 #define NEXT_TEMPLATE_TEST_CT 1
5281 static tTestDesc aNext_TemplateTests[] = {
5282 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
5285 * Fix Command Arguments for Next_Template
5287 static const char* apzNext_TemplatePatch[] = {
5290 "\\(([^)]*)[ \t]template\\)",
5293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5295 * Description of Next_Volitile fix
5297 tSCC zNext_VolitileName[] =
5301 * File name selection pattern
5303 tSCC zNext_VolitileList[] =
5306 * Machine/OS name selection pattern
5308 #define apzNext_VolitileMachs (const char**)NULL
5311 * content selection pattern - do fix if pattern found
5313 tSCC zNext_VolitileSelect0[] =
5314 "^extern[ \t]+volatile[ \t]+void[ \t]";
5316 #define NEXT_VOLITILE_TEST_CT 1
5317 static tTestDesc aNext_VolitileTests[] = {
5318 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
5321 * Fix Command Arguments for Next_Volitile
5323 static const char* apzNext_VolitilePatch[] = {
5326 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5331 * Description of Next_Wait_Union fix
5333 tSCC zNext_Wait_UnionName[] =
5337 * File name selection pattern
5339 tSCC zNext_Wait_UnionList[] =
5342 * Machine/OS name selection pattern
5344 #define apzNext_Wait_UnionMachs (const char**)NULL
5347 * content selection pattern - do fix if pattern found
5349 tSCC zNext_Wait_UnionSelect0[] =
5350 "wait\\(union wait";
5352 #define NEXT_WAIT_UNION_TEST_CT 1
5353 static tTestDesc aNext_Wait_UnionTests[] = {
5354 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5357 * Fix Command Arguments for Next_Wait_Union
5359 static const char* apzNext_Wait_UnionPatch[] = {
5364 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5366 * Description of Nodeent_Syntax fix
5368 tSCC zNodeent_SyntaxName[] =
5372 * File name selection pattern
5374 tSCC zNodeent_SyntaxList[] =
5375 "netdnet/dnetdb.h\0";
5377 * Machine/OS name selection pattern
5379 #define apzNodeent_SyntaxMachs (const char**)NULL
5382 * content selection pattern - do fix if pattern found
5384 tSCC zNodeent_SyntaxSelect0[] =
5385 "char[ \t]*\\*na_addr[ \t]*$";
5387 #define NODEENT_SYNTAX_TEST_CT 1
5388 static tTestDesc aNodeent_SyntaxTests[] = {
5389 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5392 * Fix Command Arguments for Nodeent_Syntax
5394 static const char* apzNodeent_SyntaxPatch[] = {
5399 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5401 * Description of Openbsd_Null_Definition fix
5403 tSCC zOpenbsd_Null_DefinitionName[] =
5404 "openbsd_null_definition";
5407 * File name selection pattern
5409 tSCC zOpenbsd_Null_DefinitionList[] =
5410 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5412 * Machine/OS name selection pattern
5414 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5416 (const char*)NULL };
5419 * content selection pattern - do fix if pattern found
5421 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5424 #define OPENBSD_NULL_DEFINITION_TEST_CT 1
5425 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5426 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5429 * Fix Command Arguments for Openbsd_Null_Definition
5431 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5434 #ifdef __cplusplus\n\
5436 #define NULL\t__null\n\
5437 #else\t /* ! __GNUG__ */\n\
5439 #endif\t /* __GNUG__ */\n\
5440 #else\t /* ! __cplusplus */\n\
5441 #define NULL\t((void *)0)\n\
5442 #endif\t /* __cplusplus */\n\
5443 #endif\t /* !NULL */",
5444 "^#ifndef[ \t]*NULL\n\
5445 ^#ifdef[ \t]*__GNUG__\n\
5446 ^#define[ \t]*NULL[ \t]*__null\n\
5448 ^#define[ \t]*NULL[ \t]*0L\n\
5453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5455 * Description of Obstack_Lvalue_Cast fix
5457 tSCC zObstack_Lvalue_CastName[] =
5458 "obstack_lvalue_cast";
5461 * File name selection pattern
5463 tSCC zObstack_Lvalue_CastList[] =
5466 * Machine/OS name selection pattern
5468 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5471 * content selection pattern - do fix if pattern found
5473 tSCC zObstack_Lvalue_CastSelect0[] =
5474 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5476 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5477 static tTestDesc aObstack_Lvalue_CastTests[] = {
5478 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5481 * Fix Command Arguments for Obstack_Lvalue_Cast
5483 static const char* apzObstack_Lvalue_CastPatch[] = {
5485 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5488 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5490 * Description of Openbsd_Va_Start fix
5492 tSCC zOpenbsd_Va_StartName[] =
5496 * File name selection pattern
5498 tSCC zOpenbsd_Va_StartList[] =
5501 * Machine/OS name selection pattern
5503 tSCC* apzOpenbsd_Va_StartMachs[] = {
5505 (const char*)NULL };
5508 * content selection pattern - do fix if pattern found
5510 tSCC zOpenbsd_Va_StartSelect0[] =
5511 "__builtin_stdarg_start";
5513 #define OPENBSD_VA_START_TEST_CT 1
5514 static tTestDesc aOpenbsd_Va_StartTests[] = {
5515 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5518 * Fix Command Arguments for Openbsd_Va_Start
5520 static const char* apzOpenbsd_Va_StartPatch[] = {
5522 "__builtin_va_start",
5525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5527 * Description of Osf_Namespace_A fix
5529 tSCC zOsf_Namespace_AName[] =
5533 * File name selection pattern
5535 tSCC zOsf_Namespace_AList[] =
5536 "reg_types.h\0sys/lc_core.h\0";
5538 * Machine/OS name selection pattern
5540 #define apzOsf_Namespace_AMachs (const char**)NULL
5543 * perform the 'test' shell command - do fix on success
5545 tSCC zOsf_Namespace_ATest0[] =
5547 tSCC zOsf_Namespace_ATest1[] =
5548 " -r sys/lc_core.h";
5549 tSCC zOsf_Namespace_ATest2[] =
5550 " -n \"`grep '} regex_t;' reg_types.h`\"";
5551 tSCC zOsf_Namespace_ATest3[] =
5552 " -z \"`grep __regex_t regex.h`\"";
5554 #define OSF_NAMESPACE_A_TEST_CT 4
5555 static tTestDesc aOsf_Namespace_ATests[] = {
5556 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5557 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5558 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5559 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5562 * Fix Command Arguments for Osf_Namespace_A
5564 static const char* apzOsf_Namespace_APatch[] = {
5567 "reg(ex|off|match)_t",
5570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5572 * Description of Osf_Namespace_C fix
5574 tSCC zOsf_Namespace_CName[] =
5578 * File name selection pattern
5580 tSCC zOsf_Namespace_CList[] =
5583 * Machine/OS name selection pattern
5585 #define apzOsf_Namespace_CMachs (const char**)NULL
5588 * content selection pattern - do fix if pattern found
5590 tSCC zOsf_Namespace_CSelect0[] =
5591 "#include <reg_types.h>.*";
5594 * perform the 'test' shell command - do fix on success
5596 tSCC zOsf_Namespace_CTest0[] =
5598 tSCC zOsf_Namespace_CTest1[] =
5599 " -r sys/lc_core.h";
5600 tSCC zOsf_Namespace_CTest2[] =
5601 " -n \"`grep '} regex_t;' reg_types.h`\"";
5602 tSCC zOsf_Namespace_CTest3[] =
5603 " -z \"`grep __regex_t regex.h`\"";
5605 #define OSF_NAMESPACE_C_TEST_CT 5
5606 static tTestDesc aOsf_Namespace_CTests[] = {
5607 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5608 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5609 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5610 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5611 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5614 * Fix Command Arguments for Osf_Namespace_C
5616 static const char* apzOsf_Namespace_CPatch[] = {
5619 typedef __regex_t\tregex_t;\n\
5620 typedef __regoff_t\tregoff_t;\n\
5621 typedef __regmatch_t\tregmatch_t;",
5624 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5626 * Description of Pthread_Incomplete_Struct_Argument fix
5628 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5629 "pthread_incomplete_struct_argument";
5632 * File name selection pattern
5634 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5637 * Machine/OS name selection pattern
5639 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5642 * content selection pattern - do fix if pattern found
5644 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5645 "struct __jmp_buf_tag";
5647 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5648 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5649 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5652 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5654 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5657 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5662 * Description of Read_Ret_Type fix
5664 tSCC zRead_Ret_TypeName[] =
5668 * File name selection pattern
5670 tSCC zRead_Ret_TypeList[] =
5673 * Machine/OS name selection pattern
5675 #define apzRead_Ret_TypeMachs (const char**)NULL
5678 * content selection pattern - do fix if pattern found
5680 tSCC zRead_Ret_TypeSelect0[] =
5681 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5683 #define READ_RET_TYPE_TEST_CT 1
5684 static tTestDesc aRead_Ret_TypeTests[] = {
5685 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5688 * Fix Command Arguments for Read_Ret_Type
5690 static const char* apzRead_Ret_TypePatch[] = {
5692 "extern unsigned int fread(), fwrite();\n\
5694 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5697 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5699 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5701 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5702 "rpc_xdr_lvalue_cast_a";
5705 * File name selection pattern
5707 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5710 * Machine/OS name selection pattern
5712 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5715 * content selection pattern - do fix if pattern found
5717 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5718 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5721 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5722 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5723 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5726 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5728 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5730 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5733 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5735 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5737 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5738 "rpc_xdr_lvalue_cast_b";
5741 * File name selection pattern
5743 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5746 * Machine/OS name selection pattern
5748 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5751 * content selection pattern - do fix if pattern found
5753 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5754 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5757 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5758 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5759 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5762 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5764 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5766 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5771 * Description of Rs6000_Double fix
5773 tSCC zRs6000_DoubleName[] =
5777 * File name selection pattern
5779 tSCC zRs6000_DoubleList[] =
5782 * Machine/OS name selection pattern
5784 #define apzRs6000_DoubleMachs (const char**)NULL
5787 * content selection pattern - do fix if pattern found
5789 tSCC zRs6000_DoubleSelect0[] =
5790 "[^a-zA-Z_]class\\(";
5792 #define RS6000_DOUBLE_TEST_CT 1
5793 static tTestDesc aRs6000_DoubleTests[] = {
5794 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5797 * Fix Command Arguments for Rs6000_Double
5799 static const char* apzRs6000_DoublePatch[] = {
5801 "#ifndef __cplusplus\n\
5804 "^.*[^a-zA-Z_]class\\(.*",
5807 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5809 * Description of Rs6000_Fchmod fix
5811 tSCC zRs6000_FchmodName[] =
5815 * File name selection pattern
5817 tSCC zRs6000_FchmodList[] =
5820 * Machine/OS name selection pattern
5822 #define apzRs6000_FchmodMachs (const char**)NULL
5825 * content selection pattern - do fix if pattern found
5827 tSCC zRs6000_FchmodSelect0[] =
5828 "fchmod\\(char \\*";
5830 #define RS6000_FCHMOD_TEST_CT 1
5831 static tTestDesc aRs6000_FchmodTests[] = {
5832 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5835 * Fix Command Arguments for Rs6000_Fchmod
5837 static const char* apzRs6000_FchmodPatch[] = {
5842 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5844 * Description of Rs6000_Param fix
5846 tSCC zRs6000_ParamName[] =
5850 * File name selection pattern
5852 tSCC zRs6000_ParamList[] =
5853 "stdio.h\0unistd.h\0";
5855 * Machine/OS name selection pattern
5857 #define apzRs6000_ParamMachs (const char**)NULL
5860 * content selection pattern - do fix if pattern found
5862 tSCC zRs6000_ParamSelect0[] =
5863 "rename\\(const char \\*old, const char \\*new\\)";
5865 #define RS6000_PARAM_TEST_CT 1
5866 static tTestDesc aRs6000_ParamTests[] = {
5867 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
5870 * Fix Command Arguments for Rs6000_Param
5872 static const char* apzRs6000_ParamPatch[] = {
5874 "rename(const char *_old, const char *_new)",
5877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5879 * Description of Sco_Math fix
5881 tSCC zSco_MathName[] =
5885 * File name selection pattern
5887 tSCC zSco_MathList[] =
5888 "math.h\0*/math.h\0";
5890 * Machine/OS name selection pattern
5892 #define apzSco_MathMachs (const char**)NULL
5895 * content selection pattern - do fix if pattern found
5897 tSCC zSco_MathSelect0[] =
5898 "inline double abs";
5901 * content bypass pattern - skip fix if pattern found
5903 tSCC zSco_MathBypass0[] =
5906 #define SCO_MATH_TEST_CT 2
5907 static tTestDesc aSco_MathTests[] = {
5908 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
5909 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
5912 * Fix Command Arguments for Sco_Math
5914 static const char* apzSco_MathPatch[] = { sed_cmd_z,
5915 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5916 #ifndef __GNUC__\n",
5917 "-e", "/.*__builtin_generic/a\\\n\
5919 #define __fp_class(a) \\\\\\\n\
5920 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5921 __fpclassifyl(a), \\\\\\\n\
5922 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5923 __fpclassifyf(a),__fpclassify(a)))\\\n\
5925 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5926 #ifndef __GNUC__\n",
5927 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5928 #endif /* ! __GNUC__ */",
5931 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5933 * Description of Solaris_Math_1 fix
5935 tSCC zSolaris_Math_1Name[] =
5939 * File name selection pattern
5941 tSCC zSolaris_Math_1List[] =
5944 * Machine/OS name selection pattern
5946 #define apzSolaris_Math_1Machs (const char**)NULL
5949 * content selection pattern - do fix if pattern found
5951 tSCC zSolaris_Math_1Select0[] =
5952 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5955 * content bypass pattern - skip fix if pattern found
5957 tSCC zSolaris_Math_1Bypass0[] =
5960 #define SOLARIS_MATH_1_TEST_CT 2
5961 static tTestDesc aSolaris_Math_1Tests[] = {
5962 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5963 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5966 * Fix Command Arguments for Solaris_Math_1
5968 static const char* apzSolaris_Math_1Patch[] = {
5970 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5971 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5974 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5976 * Description of Solaris_Math_2 fix
5978 tSCC zSolaris_Math_2Name[] =
5982 * File name selection pattern
5984 tSCC zSolaris_Math_2List[] =
5987 * Machine/OS name selection pattern
5989 #define apzSolaris_Math_2Machs (const char**)NULL
5992 * content selection pattern - do fix if pattern found
5994 tSCC zSolaris_Math_2Select0[] =
5995 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5998 * content bypass pattern - skip fix if pattern found
6000 tSCC zSolaris_Math_2Bypass0[] =
6003 #define SOLARIS_MATH_2_TEST_CT 2
6004 static tTestDesc aSolaris_Math_2Tests[] = {
6005 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
6006 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
6009 * Fix Command Arguments for Solaris_Math_2
6011 static const char* apzSolaris_Math_2Patch[] = {
6013 "#define\tINFINITY\t(__builtin_inff())",
6014 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
6017 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6019 * Description of Solaris_Math_3 fix
6021 tSCC zSolaris_Math_3Name[] =
6025 * File name selection pattern
6027 tSCC zSolaris_Math_3List[] =
6030 * Machine/OS name selection pattern
6032 #define apzSolaris_Math_3Machs (const char**)NULL
6035 * content selection pattern - do fix if pattern found
6037 tSCC zSolaris_Math_3Select0[] =
6038 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6041 * content bypass pattern - skip fix if pattern found
6043 tSCC zSolaris_Math_3Bypass0[] =
6046 #define SOLARIS_MATH_3_TEST_CT 2
6047 static tTestDesc aSolaris_Math_3Tests[] = {
6048 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
6049 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
6052 * Fix Command Arguments for Solaris_Math_3
6054 static const char* apzSolaris_Math_3Patch[] = {
6056 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6057 "^#define[ \t]+NAN[ \t]+__builtin_nan",
6060 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6062 * Description of Solaris_Math_4 fix
6064 tSCC zSolaris_Math_4Name[] =
6068 * File name selection pattern
6070 tSCC zSolaris_Math_4List[] =
6073 * Machine/OS name selection pattern
6075 #define apzSolaris_Math_4Machs (const char**)NULL
6078 * content selection pattern - do fix if pattern found
6080 tSCC zSolaris_Math_4Select0[] =
6081 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6084 * content bypass pattern - skip fix if pattern found
6086 tSCC zSolaris_Math_4Bypass0[] =
6089 #define SOLARIS_MATH_4_TEST_CT 2
6090 static tTestDesc aSolaris_Math_4Tests[] = {
6091 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
6092 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
6095 * Fix Command Arguments for Solaris_Math_4
6097 static const char* apzSolaris_Math_4Patch[] = {
6099 "#define\tfpclassify(x) \\\n\
6100 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6101 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6106 * Description of Solaris_Math_8 fix
6108 tSCC zSolaris_Math_8Name[] =
6112 * File name selection pattern
6114 tSCC zSolaris_Math_8List[] =
6117 * Machine/OS name selection pattern
6119 #define apzSolaris_Math_8Machs (const char**)NULL
6122 * content selection pattern - do fix if pattern found
6124 tSCC zSolaris_Math_8Select0[] =
6125 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6128 * content bypass pattern - skip fix if pattern found
6130 tSCC zSolaris_Math_8Bypass0[] =
6133 #define SOLARIS_MATH_8_TEST_CT 2
6134 static tTestDesc aSolaris_Math_8Tests[] = {
6135 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
6136 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
6139 * Fix Command Arguments for Solaris_Math_8
6141 static const char* apzSolaris_Math_8Patch[] = {
6143 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6144 \t\t\t ? __builtin_signbitf(x) \\\n\
6145 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
6146 \t\t\t ? __builtin_signbitl(x) \\\n\
6147 \t\t\t : __builtin_signbit(x))",
6148 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6151 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6153 * Description of Solaris_Math_9 fix
6155 tSCC zSolaris_Math_9Name[] =
6159 * File name selection pattern
6161 tSCC zSolaris_Math_9List[] =
6164 * Machine/OS name selection pattern
6166 #define apzSolaris_Math_9Machs (const char**)NULL
6169 * content selection pattern - do fix if pattern found
6171 tSCC zSolaris_Math_9Select0[] =
6172 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6175 * content bypass pattern - skip fix if pattern found
6177 tSCC zSolaris_Math_9Bypass0[] =
6180 #define SOLARIS_MATH_9_TEST_CT 2
6181 static tTestDesc aSolaris_Math_9Tests[] = {
6182 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
6183 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
6186 * Fix Command Arguments for Solaris_Math_9
6188 static const char* apzSolaris_Math_9Patch[] = {
6190 "#define\t%1(x, y)%2__builtin_%1(x, y)",
6191 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6196 * Description of Solaris_Math_10 fix
6198 tSCC zSolaris_Math_10Name[] =
6202 * File name selection pattern
6204 tSCC zSolaris_Math_10List[] =
6207 * Machine/OS name selection pattern
6209 #define apzSolaris_Math_10Machs (const char**)NULL
6212 * content selection pattern - do fix if pattern found
6214 tSCC zSolaris_Math_10Select0[] =
6215 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6217 #define SOLARIS_MATH_10_TEST_CT 1
6218 static tTestDesc aSolaris_Math_10Tests[] = {
6219 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
6222 * Fix Command Arguments for Solaris_Math_10
6224 static const char* apzSolaris_Math_10Patch[] = {
6226 "#define\tisinf(x) __builtin_isinf(x)",
6227 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6228 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6229 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6230 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6233 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6235 * Description of Solaris_Mutex_Init_2 fix
6237 tSCC zSolaris_Mutex_Init_2Name[] =
6238 "solaris_mutex_init_2";
6241 * File name selection pattern
6243 tSCC zSolaris_Mutex_Init_2List[] =
6246 * Machine/OS name selection pattern
6248 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6249 "*-*-solaris2.[0-9]",
6250 "*-*-solaris2.[0-9][!0-9]*",
6251 (const char*)NULL };
6254 * content selection pattern - do fix if pattern found
6256 tSCC zSolaris_Mutex_Init_2Select0[] =
6257 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6259 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
6260 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6261 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6264 * Fix Command Arguments for Solaris_Mutex_Init_2
6266 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6268 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6273 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6274 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6277 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6279 * Description of Solaris_Rwlock_Init_1 fix
6281 tSCC zSolaris_Rwlock_Init_1Name[] =
6282 "solaris_rwlock_init_1";
6285 * File name selection pattern
6287 tSCC zSolaris_Rwlock_Init_1List[] =
6290 * Machine/OS name selection pattern
6292 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6294 (const char*)NULL };
6297 * content selection pattern - do fix if pattern found
6299 tSCC zSolaris_Rwlock_Init_1Select0[] =
6300 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6302 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
6303 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6304 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6307 * Fix Command Arguments for Solaris_Rwlock_Init_1
6309 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6311 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6314 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6316 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6321 * Description of Solaris_Once_Init_1 fix
6323 tSCC zSolaris_Once_Init_1Name[] =
6324 "solaris_once_init_1";
6327 * File name selection pattern
6329 tSCC zSolaris_Once_Init_1List[] =
6332 * Machine/OS name selection pattern
6334 tSCC* apzSolaris_Once_Init_1Machs[] = {
6336 (const char*)NULL };
6339 * content selection pattern - do fix if pattern found
6341 tSCC zSolaris_Once_Init_1Select0[] =
6342 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6344 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6345 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6346 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6349 * Fix Command Arguments for Solaris_Once_Init_1
6351 static const char* apzSolaris_Once_Init_1Patch[] = {
6354 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6359 * Description of Solaris_Once_Init_2 fix
6361 tSCC zSolaris_Once_Init_2Name[] =
6362 "solaris_once_init_2";
6365 * File name selection pattern
6367 tSCC zSolaris_Once_Init_2List[] =
6370 * Machine/OS name selection pattern
6372 tSCC* apzSolaris_Once_Init_2Machs[] = {
6373 "*-*-solaris2.[0-9]",
6374 "*-*-solaris2.[0-9][!0-9]*",
6375 (const char*)NULL };
6378 * content selection pattern - do fix if pattern found
6380 tSCC zSolaris_Once_Init_2Select0[] =
6381 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6383 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
6384 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6385 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6388 * Fix Command Arguments for Solaris_Once_Init_2
6390 static const char* apzSolaris_Once_Init_2Patch[] = {
6392 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6395 %1{0}, {0}, {0}, {%3}%4\n\
6397 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6402 * Description of Solaris_Int_Const fix
6404 tSCC zSolaris_Int_ConstName[] =
6405 "solaris_int_const";
6408 * File name selection pattern
6410 tSCC zSolaris_Int_ConstList[] =
6411 "sys/int_const.h\0";
6413 * Machine/OS name selection pattern
6415 #define apzSolaris_Int_ConstMachs (const char**)NULL
6418 * content selection pattern - do fix if pattern found
6420 tSCC zSolaris_Int_ConstSelect0[] =
6421 "@\\(#\\)int_const.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6423 #define SOLARIS_INT_CONST_TEST_CT 1
6424 static tTestDesc aSolaris_Int_ConstTests[] = {
6425 { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6428 * Fix Command Arguments for Solaris_Int_Const
6430 static const char* apzSolaris_Int_ConstPatch[] = {
6432 "#define\tUINT8_C(c)\t(c)\n\
6434 #define\tUINT16_C(c)\t(c)",
6435 "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6437 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*",
6440 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6442 * Description of Solaris_Int_Limits_1 fix
6444 tSCC zSolaris_Int_Limits_1Name[] =
6445 "solaris_int_limits_1";
6448 * File name selection pattern
6450 tSCC zSolaris_Int_Limits_1List[] =
6451 "sys/int_limits.h\0";
6453 * Machine/OS name selection pattern
6455 #define apzSolaris_Int_Limits_1Machs (const char**)NULL
6458 * content selection pattern - do fix if pattern found
6460 tSCC zSolaris_Int_Limits_1Select0[] =
6461 "@\\(#\\)int_limits.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6463 #define SOLARIS_INT_LIMITS_1_TEST_CT 1
6464 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6465 { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6468 * Fix Command Arguments for Solaris_Int_Limits_1
6470 static const char* apzSolaris_Int_Limits_1Patch[] = {
6472 "#define\tUINT8_MAX\t(255)\n\
6473 #define\tUINT16_MAX\t(65535)",
6474 "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6475 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)",
6478 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6480 * Description of Solaris_Int_Limits_2 fix
6482 tSCC zSolaris_Int_Limits_2Name[] =
6483 "solaris_int_limits_2";
6486 * File name selection pattern
6488 tSCC zSolaris_Int_Limits_2List[] =
6489 "sys/int_limits.h\0";
6491 * Machine/OS name selection pattern
6493 #define apzSolaris_Int_Limits_2Machs (const char**)NULL
6496 * content selection pattern - do fix if pattern found
6498 tSCC zSolaris_Int_Limits_2Select0[] =
6499 "@\\(#\\)int_limits.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6501 #define SOLARIS_INT_LIMITS_2_TEST_CT 1
6502 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6503 { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6506 * Fix Command Arguments for Solaris_Int_Limits_2
6508 static const char* apzSolaris_Int_Limits_2Patch[] = {
6510 "#define\t%1_FAST16_%2 %132_%2",
6511 "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*",
6514 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6516 * Description of Solaris_Int_Types fix
6518 tSCC zSolaris_Int_TypesName[] =
6519 "solaris_int_types";
6522 * File name selection pattern
6524 tSCC zSolaris_Int_TypesList[] =
6525 "sys/int_types.h\0";
6527 * Machine/OS name selection pattern
6529 #define apzSolaris_Int_TypesMachs (const char**)NULL
6532 * content selection pattern - do fix if pattern found
6534 tSCC zSolaris_Int_TypesSelect0[] =
6535 "__STDC__ - 0 == 0";
6538 * content bypass pattern - skip fix if pattern found
6540 tSCC zSolaris_Int_TypesBypass0[] =
6543 #define SOLARIS_INT_TYPES_TEST_CT 2
6544 static tTestDesc aSolaris_Int_TypesTests[] = {
6545 { TT_NEGREP, zSolaris_Int_TypesBypass0, (regex_t*)NULL },
6546 { TT_EGREP, zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
6549 * Fix Command Arguments for Solaris_Int_Types
6551 static const char* apzSolaris_Int_TypesPatch[] = {
6553 "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
6556 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6558 * Description of Solaris_Stdio_Tag fix
6560 tSCC zSolaris_Stdio_TagName[] =
6561 "solaris_stdio_tag";
6564 * File name selection pattern
6566 tSCC zSolaris_Stdio_TagList[] =
6569 * Machine/OS name selection pattern
6571 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6574 * content selection pattern - do fix if pattern found
6576 tSCC zSolaris_Stdio_TagSelect0[] =
6577 "__cplusplus < 54321L";
6580 * content bypass pattern - skip fix if pattern found
6582 tSCC zSolaris_Stdio_TagBypass0[] =
6585 #define SOLARIS_STDIO_TAG_TEST_CT 2
6586 static tTestDesc aSolaris_Stdio_TagTests[] = {
6587 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6588 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6591 * Fix Command Arguments for Solaris_Stdio_Tag
6593 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
6594 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6599 * Description of Statsswtch fix
6601 tSCC zStatsswtchName[] =
6605 * File name selection pattern
6607 tSCC zStatsswtchList[] =
6610 * Machine/OS name selection pattern
6612 #define apzStatsswtchMachs (const char**)NULL
6615 * content selection pattern - do fix if pattern found
6617 tSCC zStatsswtchSelect0[] =
6620 #define STATSSWTCH_TEST_CT 1
6621 static tTestDesc aStatsswtchTests[] = {
6622 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
6625 * Fix Command Arguments for Statsswtch
6627 static const char* apzStatsswtchPatch[] = {
6632 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6634 * Description of Stdio_Stdarg_H fix
6636 tSCC zStdio_Stdarg_HName[] =
6640 * File name selection pattern
6642 tSCC zStdio_Stdarg_HList[] =
6645 * Machine/OS name selection pattern
6647 tSCC* apzStdio_Stdarg_HMachs[] = {
6648 "*-*-solaris2.1[0-9]*",
6649 (const char*)NULL };
6652 * content bypass pattern - skip fix if pattern found
6654 tSCC zStdio_Stdarg_HBypass0[] =
6655 "include.*(stdarg.h|machine/ansi.h)";
6657 #define STDIO_STDARG_H_TEST_CT 1
6658 static tTestDesc aStdio_Stdarg_HTests[] = {
6659 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6662 * Fix Command Arguments for Stdio_Stdarg_H
6664 static const char* apzStdio_Stdarg_HPatch[] = {
6666 "#define __need___va_list\n\
6667 #include <stdarg.h>\n",
6670 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6672 * Description of Stdio_Va_List fix
6674 tSCC zStdio_Va_ListName[] =
6678 * File name selection pattern
6680 tSCC zStdio_Va_ListList[] =
6681 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
6683 * Machine/OS name selection pattern
6685 tSCC* apzStdio_Va_ListMachs[] = {
6686 "*-*-solaris2.1[0-9]*",
6687 (const char*)NULL };
6690 * content bypass pattern - skip fix if pattern found
6692 tSCC zStdio_Va_ListBypass0[] =
6693 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6695 #define STDIO_VA_LIST_TEST_CT 1
6696 static tTestDesc aStdio_Va_ListTests[] = {
6697 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6700 * Fix Command Arguments for Stdio_Va_List
6702 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
6703 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6704 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6705 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6706 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6707 s@ va_list@ __not_va_list__@\n\
6708 s@\\*va_list@*__not_va_list__@\n\
6709 s@ __va_list)@ __gnuc_va_list)@\n\
6710 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6711 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6712 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6713 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6714 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6715 s@VA_LIST@DUMMY_VA_LIST@\n\
6716 s@_Va_LIST@_VA_LIST@",
6719 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6721 * Description of Stdio_Va_List_Clients fix
6723 tSCC zStdio_Va_List_ClientsName[] =
6724 "stdio_va_list_clients";
6727 * File name selection pattern
6729 tSCC zStdio_Va_List_ClientsList[] =
6730 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
6732 * Machine/OS name selection pattern
6734 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6737 * content bypass pattern - skip fix if pattern found
6739 tSCC zStdio_Va_List_ClientsBypass0[] =
6740 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6741 tSCC zStdio_Va_List_ClientsBypass1[] =
6742 "include <stdarg\\.h>|#ifdef va_start";
6744 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
6745 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6746 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6747 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6750 * Fix Command Arguments for Stdio_Va_List_Clients
6752 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
6753 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6754 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6755 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6756 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6757 s@ va_list@ __not_va_list__@\n\
6758 s@\\*va_list@*__not_va_list__@\n\
6759 s@ __va_list)@ __gnuc_va_list)@\n\
6760 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6761 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6762 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6763 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6764 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6765 s@VA_LIST@DUMMY_VA_LIST@\n\
6766 s@_Va_LIST@_VA_LIST@",
6769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6771 * Description of Strict_Ansi_Not fix
6773 tSCC zStrict_Ansi_NotName[] =
6777 * File name selection pattern
6779 #define zStrict_Ansi_NotList (char*)NULL
6781 * Machine/OS name selection pattern
6783 #define apzStrict_Ansi_NotMachs (const char**)NULL
6786 * content selection pattern - do fix if pattern found
6788 tSCC zStrict_Ansi_NotSelect0[] =
6789 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6792 * content bypass pattern - skip fix if pattern found
6794 tSCC zStrict_Ansi_NotBypass0[] =
6795 "GNU and MIPS C compilers define __STDC__ differently";
6796 tSCC zStrict_Ansi_NotBypass1[] =
6797 "__SCO_VERSION__.*__STDC__ != 1";
6800 * perform the C function call test
6802 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6804 #define STRICT_ANSI_NOT_TEST_CT 4
6805 static tTestDesc aStrict_Ansi_NotTests[] = {
6806 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
6807 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6808 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6809 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6812 * Fix Command Arguments for Strict_Ansi_Not
6814 static const char* apzStrict_Ansi_NotPatch[] = {
6816 "%1 !defined(__STRICT_ANSI__)",
6819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6821 * Description of Strict_Ansi_Not_Ctd fix
6823 tSCC zStrict_Ansi_Not_CtdName[] =
6824 "strict_ansi_not_ctd";
6827 * File name selection pattern
6829 tSCC zStrict_Ansi_Not_CtdList[] =
6830 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6832 * Machine/OS name selection pattern
6834 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6837 * content selection pattern - do fix if pattern found
6839 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6840 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6843 * perform the C function call test
6845 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6847 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
6848 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6849 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6850 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6853 * Fix Command Arguments for Strict_Ansi_Not_Ctd
6855 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6857 "%1 !defined(__STRICT_ANSI__)",
6860 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6862 * Description of Strict_Ansi_Only fix
6864 tSCC zStrict_Ansi_OnlyName[] =
6868 * File name selection pattern
6870 #define zStrict_Ansi_OnlyList (char*)NULL
6872 * Machine/OS name selection pattern
6874 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6877 * content selection pattern - do fix if pattern found
6879 tSCC zStrict_Ansi_OnlySelect0[] =
6880 "^([ \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)";
6883 * perform the C function call test
6885 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6887 #define STRICT_ANSI_ONLY_TEST_CT 2
6888 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6889 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6890 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6893 * Fix Command Arguments for Strict_Ansi_Only
6895 static const char* apzStrict_Ansi_OnlyPatch[] = {
6897 "%1 defined(__STRICT_ANSI__)",
6900 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6902 * Description of Struct_File fix
6904 tSCC zStruct_FileName[] =
6908 * File name selection pattern
6910 tSCC zStruct_FileList[] =
6913 * Machine/OS name selection pattern
6915 #define apzStruct_FileMachs (const char**)NULL
6918 * content selection pattern - do fix if pattern found
6920 tSCC zStruct_FileSelect0[] =
6921 "^.*xdrstdio_create.*struct __file_s";
6923 #define STRUCT_FILE_TEST_CT 1
6924 static tTestDesc aStruct_FileTests[] = {
6925 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6928 * Fix Command Arguments for Struct_File
6930 static const char* apzStruct_FilePatch[] = {
6932 "struct __file_s;\n\
6936 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6938 * Description of Struct_Sockaddr fix
6940 tSCC zStruct_SockaddrName[] =
6944 * File name selection pattern
6946 tSCC zStruct_SockaddrList[] =
6949 * Machine/OS name selection pattern
6951 #define apzStruct_SockaddrMachs (const char**)NULL
6954 * content selection pattern - do fix if pattern found
6956 tSCC zStruct_SockaddrSelect0[] =
6957 "^.*authdes_create.*struct sockaddr[^_]";
6960 * content bypass pattern - skip fix if pattern found
6962 tSCC zStruct_SockaddrBypass0[] =
6964 tSCC zStruct_SockaddrBypass1[] =
6965 "struct sockaddr;\n";
6967 #define STRUCT_SOCKADDR_TEST_CT 3
6968 static tTestDesc aStruct_SockaddrTests[] = {
6969 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6970 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6971 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6974 * Fix Command Arguments for Struct_Sockaddr
6976 static const char* apzStruct_SockaddrPatch[] = {
6978 "struct sockaddr;\n\
6982 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6984 * Description of Sun_Auth_Proto fix
6986 tSCC zSun_Auth_ProtoName[] =
6990 * File name selection pattern
6992 tSCC zSun_Auth_ProtoList[] =
6993 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6995 * Machine/OS name selection pattern
6997 #define apzSun_Auth_ProtoMachs (const char**)NULL
7000 * content selection pattern - do fix if pattern found
7002 tSCC zSun_Auth_ProtoSelect0[] =
7003 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7006 * content bypass pattern - skip fix if pattern found
7008 tSCC zSun_Auth_ProtoBypass0[] =
7011 #define SUN_AUTH_PROTO_TEST_CT 2
7012 static tTestDesc aSun_Auth_ProtoTests[] = {
7013 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7014 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7017 * Fix Command Arguments for Sun_Auth_Proto
7019 static const char* apzSun_Auth_ProtoPatch[] = {
7021 "#ifdef __cplusplus\n\
7026 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7031 * Description of Sun_Bogus_Ifdef fix
7033 tSCC zSun_Bogus_IfdefName[] =
7037 * File name selection pattern
7039 tSCC zSun_Bogus_IfdefList[] =
7040 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7042 * Machine/OS name selection pattern
7044 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7047 * content selection pattern - do fix if pattern found
7049 tSCC zSun_Bogus_IfdefSelect0[] =
7050 "#ifdef(.*\\|\\|.*)";
7052 #define SUN_BOGUS_IFDEF_TEST_CT 1
7053 static tTestDesc aSun_Bogus_IfdefTests[] = {
7054 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7057 * Fix Command Arguments for Sun_Bogus_Ifdef
7059 static const char* apzSun_Bogus_IfdefPatch[] = {
7064 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7066 * Description of Sun_Catmacro fix
7068 tSCC zSun_CatmacroName[] =
7072 * File name selection pattern
7074 tSCC zSun_CatmacroList[] =
7075 "pixrect/memvar.h\0";
7077 * Machine/OS name selection pattern
7079 #define apzSun_CatmacroMachs (const char**)NULL
7082 * content selection pattern - do fix if pattern found
7084 tSCC zSun_CatmacroSelect0[] =
7085 "^#define[ \t]+CAT\\(a,b\\).*";
7087 #define SUN_CATMACRO_TEST_CT 1
7088 static tTestDesc aSun_CatmacroTests[] = {
7089 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
7092 * Fix Command Arguments for Sun_Catmacro
7094 static const char* apzSun_CatmacroPatch[] = {
7097 # define CAT(a,b) a##b\n\
7103 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7105 * Description of Sun_Malloc fix
7107 tSCC zSun_MallocName[] =
7111 * File name selection pattern
7113 tSCC zSun_MallocList[] =
7116 * Machine/OS name selection pattern
7118 #define apzSun_MallocMachs (const char**)NULL
7121 * content bypass pattern - skip fix if pattern found
7123 tSCC zSun_MallocBypass0[] =
7124 "_CLASSIC_ANSI_TYPES";
7126 #define SUN_MALLOC_TEST_CT 1
7127 static tTestDesc aSun_MallocTests[] = {
7128 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
7131 * Fix Command Arguments for Sun_Malloc
7133 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7134 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7135 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7136 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7137 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7138 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7143 * Description of Sun_Rusers_Semi fix
7145 tSCC zSun_Rusers_SemiName[] =
7149 * File name selection pattern
7151 tSCC zSun_Rusers_SemiList[] =
7152 "rpcsvc/rusers.h\0";
7154 * Machine/OS name selection pattern
7156 #define apzSun_Rusers_SemiMachs (const char**)NULL
7159 * content selection pattern - do fix if pattern found
7161 tSCC zSun_Rusers_SemiSelect0[] =
7164 #define SUN_RUSERS_SEMI_TEST_CT 1
7165 static tTestDesc aSun_Rusers_SemiTests[] = {
7166 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7169 * Fix Command Arguments for Sun_Rusers_Semi
7171 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7172 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7175 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7177 * Description of Sun_Signal fix
7179 tSCC zSun_SignalName[] =
7183 * File name selection pattern
7185 tSCC zSun_SignalList[] =
7186 "sys/signal.h\0signal.h\0";
7188 * Machine/OS name selection pattern
7190 #define apzSun_SignalMachs (const char**)NULL
7193 * content selection pattern - do fix if pattern found
7195 tSCC zSun_SignalSelect0[] =
7196 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7198 #define SUN_SIGNAL_TEST_CT 1
7199 static tTestDesc aSun_SignalTests[] = {
7200 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
7203 * Fix Command Arguments for Sun_Signal
7205 static const char* apzSun_SignalPatch[] = {
7207 "#ifdef __cplusplus\n\
7208 void\t(*signal(...))(...);\n\
7214 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7216 * Description of Sunos_Strlen fix
7218 tSCC zSunos_StrlenName[] =
7222 * File name selection pattern
7224 tSCC zSunos_StrlenList[] =
7227 * Machine/OS name selection pattern
7229 #define apzSunos_StrlenMachs (const char**)NULL
7232 * content selection pattern - do fix if pattern found
7234 tSCC zSunos_StrlenSelect0[] =
7235 "int[ \t]*strlen\\(\\);(.*)";
7237 #define SUNOS_STRLEN_TEST_CT 1
7238 static tTestDesc aSunos_StrlenTests[] = {
7239 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
7242 * Fix Command Arguments for Sunos_Strlen
7244 static const char* apzSunos_StrlenPatch[] = {
7246 "__SIZE_TYPE__ strlen();%1",
7249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7251 * Description of Svr4_Disable_Opt fix
7253 tSCC zSvr4_Disable_OptName[] =
7257 * File name selection pattern
7259 tSCC zSvr4_Disable_OptList[] =
7262 * Machine/OS name selection pattern
7264 #define apzSvr4_Disable_OptMachs (const char**)NULL
7267 * content selection pattern - do fix if pattern found
7269 tSCC zSvr4_Disable_OptSelect0[] =
7270 "#define.*__std_hdr_";
7272 #define SVR4_DISABLE_OPT_TEST_CT 1
7273 static tTestDesc aSvr4_Disable_OptTests[] = {
7274 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7277 * Fix Command Arguments for Svr4_Disable_Opt
7279 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7280 "-e", "/#define.*__std_hdr_/d",
7283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7285 * Description of Svr4_Getcwd fix
7287 tSCC zSvr4_GetcwdName[] =
7291 * File name selection pattern
7293 tSCC zSvr4_GetcwdList[] =
7294 "stdlib.h\0unistd.h\0prototypes.h\0";
7296 * Machine/OS name selection pattern
7298 #define apzSvr4_GetcwdMachs (const char**)NULL
7301 * content selection pattern - do fix if pattern found
7303 tSCC zSvr4_GetcwdSelect0[] =
7304 "getcwd\\(char \\*, int\\)";
7306 #define SVR4_GETCWD_TEST_CT 1
7307 static tTestDesc aSvr4_GetcwdTests[] = {
7308 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7311 * Fix Command Arguments for Svr4_Getcwd
7313 static const char* apzSvr4_GetcwdPatch[] = {
7315 "getcwd(char *, size_t)",
7318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7320 * Description of Svr4_Profil fix
7322 tSCC zSvr4_ProfilName[] =
7326 * File name selection pattern
7328 tSCC zSvr4_ProfilList[] =
7329 "stdlib.h\0unistd.h\0";
7331 * Machine/OS name selection pattern
7333 #define apzSvr4_ProfilMachs (const char**)NULL
7336 * content selection pattern - do fix if pattern found
7338 tSCC zSvr4_ProfilSelect0[] =
7339 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7342 * content bypass pattern - skip fix if pattern found
7344 tSCC zSvr4_ProfilBypass0[] =
7347 #define SVR4_PROFIL_TEST_CT 2
7348 static tTestDesc aSvr4_ProfilTests[] = {
7349 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
7350 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7353 * Fix Command Arguments for Svr4_Profil
7355 static const char* apzSvr4_ProfilPatch[] = {
7357 "profil(unsigned short *, size_t, int, unsigned int)",
7360 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7362 * Description of Svr4_Sighandler_Type fix
7364 tSCC zSvr4_Sighandler_TypeName[] =
7365 "svr4_sighandler_type";
7368 * File name selection pattern
7370 tSCC zSvr4_Sighandler_TypeList[] =
7373 * Machine/OS name selection pattern
7375 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7378 * content selection pattern - do fix if pattern found
7380 tSCC zSvr4_Sighandler_TypeSelect0[] =
7381 "void *\\(\\*\\)\\(\\)";
7383 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7384 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7385 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7388 * Fix Command Arguments for Svr4_Sighandler_Type
7390 static const char* apzSvr4_Sighandler_TypePatch[] = {
7395 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7397 * Description of Svr4_Undeclared_Getrnge fix
7399 tSCC zSvr4_Undeclared_GetrngeName[] =
7400 "svr4_undeclared_getrnge";
7403 * File name selection pattern
7405 tSCC zSvr4_Undeclared_GetrngeList[] =
7408 * Machine/OS name selection pattern
7410 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7413 * content selection pattern - do fix if pattern found
7415 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7419 * content bypass pattern - skip fix if pattern found
7421 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7422 "static void getrnge";
7424 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
7425 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7426 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7427 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7430 * Fix Command Arguments for Svr4_Undeclared_Getrnge
7432 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7435 static int getrnge ();",
7436 "^static int[ \t]+size;",
7439 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7441 * Description of Sysv68_String fix
7443 tSCC zSysv68_StringName[] =
7447 * File name selection pattern
7449 tSCC zSysv68_StringList[] =
7450 "testing.h\0string.h\0";
7452 * Machine/OS name selection pattern
7454 #define apzSysv68_StringMachs (const char**)NULL
7457 * content bypass pattern - skip fix if pattern found
7459 tSCC zSysv68_StringBypass0[] =
7460 "_CLASSIC_ANSI_TYPES";
7462 #define SYSV68_STRING_TEST_CT 1
7463 static tTestDesc aSysv68_StringTests[] = {
7464 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
7467 * Fix Command Arguments for Sysv68_String
7469 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
7470 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7471 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7472 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7473 "-e", "/^extern char$/N",
7474 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7475 "-e", "/^extern int$/N",
7476 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7477 "-e", "/^\tstrncmp(),$/N",
7478 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7479 extern unsigned int\\\n\
7483 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7485 * Description of Sysz_Stdlib_For_Sun fix
7487 tSCC zSysz_Stdlib_For_SunName[] =
7488 "sysz_stdlib_for_sun";
7491 * File name selection pattern
7493 tSCC zSysz_Stdlib_For_SunList[] =
7496 * Machine/OS name selection pattern
7498 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7501 * content selection pattern - do fix if pattern found
7503 tSCC zSysz_Stdlib_For_SunSelect0[] =
7504 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7507 * content bypass pattern - skip fix if pattern found
7509 tSCC zSysz_Stdlib_For_SunBypass0[] =
7510 "_CLASSIC_ANSI_TYPES";
7512 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
7513 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7514 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7515 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7518 * Fix Command Arguments for Sysz_Stdlib_For_Sun
7520 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7527 * Description of Thread_Keyword fix
7529 tSCC zThread_KeywordName[] =
7533 * File name selection pattern
7535 tSCC zThread_KeywordList[] =
7536 "pthread.h\0bits/sigthread.h\0";
7538 * Machine/OS name selection pattern
7540 #define apzThread_KeywordMachs (const char**)NULL
7543 * content selection pattern - do fix if pattern found
7545 tSCC zThread_KeywordSelect0[] =
7546 "([* ])__thread([,)])";
7548 #define THREAD_KEYWORD_TEST_CT 1
7549 static tTestDesc aThread_KeywordTests[] = {
7550 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
7553 * Fix Command Arguments for Thread_Keyword
7555 static const char* apzThread_KeywordPatch[] = {
7560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7562 * Description of Tinfo_Cplusplus fix
7564 tSCC zTinfo_CplusplusName[] =
7568 * File name selection pattern
7570 tSCC zTinfo_CplusplusList[] =
7573 * Machine/OS name selection pattern
7575 #define apzTinfo_CplusplusMachs (const char**)NULL
7578 * content selection pattern - do fix if pattern found
7580 tSCC zTinfo_CplusplusSelect0[] =
7583 #define TINFO_CPLUSPLUS_TEST_CT 1
7584 static tTestDesc aTinfo_CplusplusTests[] = {
7585 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7588 * Fix Command Arguments for Tinfo_Cplusplus
7590 static const char* apzTinfo_CplusplusPatch[] = {
7595 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7597 * Description of Ultrix_Const fix
7599 tSCC zUltrix_ConstName[] =
7603 * File name selection pattern
7605 tSCC zUltrix_ConstList[] =
7608 * Machine/OS name selection pattern
7610 #define apzUltrix_ConstMachs (const char**)NULL
7613 * content selection pattern - do fix if pattern found
7615 tSCC zUltrix_ConstSelect0[] =
7616 "perror\\( char \\*";
7618 #define ULTRIX_CONST_TEST_CT 1
7619 static tTestDesc aUltrix_ConstTests[] = {
7620 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
7623 * Fix Command Arguments for Ultrix_Const
7625 static const char* apzUltrix_ConstPatch[] = {
7628 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7633 * Description of Ultrix_Const2 fix
7635 tSCC zUltrix_Const2Name[] =
7639 * File name selection pattern
7641 tSCC zUltrix_Const2List[] =
7644 * Machine/OS name selection pattern
7646 #define apzUltrix_Const2Machs (const char**)NULL
7649 * content selection pattern - do fix if pattern found
7651 tSCC zUltrix_Const2Select0[] =
7652 "\\*fopen\\( char \\*";
7654 #define ULTRIX_CONST2_TEST_CT 1
7655 static tTestDesc aUltrix_Const2Tests[] = {
7656 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
7659 * Fix Command Arguments for Ultrix_Const2
7661 static const char* apzUltrix_Const2Patch[] = {
7663 "%1( const char *%3, const char *",
7664 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7669 * Description of Va_I960_Macro fix
7671 tSCC zVa_I960_MacroName[] =
7675 * File name selection pattern
7677 tSCC zVa_I960_MacroList[] =
7678 "arch/i960/archI960.h\0";
7680 * Machine/OS name selection pattern
7682 #define apzVa_I960_MacroMachs (const char**)NULL
7685 * content selection pattern - do fix if pattern found
7687 tSCC zVa_I960_MacroSelect0[] =
7688 "__(vsiz|vali|vpad|alignof__)";
7690 #define VA_I960_MACRO_TEST_CT 1
7691 static tTestDesc aVa_I960_MacroTests[] = {
7692 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
7695 * Fix Command Arguments for Va_I960_Macro
7697 static const char* apzVa_I960_MacroPatch[] = {
7702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7704 * Description of Void_Null fix
7706 tSCC zVoid_NullName[] =
7710 * File name selection pattern
7712 tSCC zVoid_NullList[] =
7713 "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";
7715 * Machine/OS name selection pattern
7717 #define apzVoid_NullMachs (const char**)NULL
7720 * content selection pattern - do fix if pattern found
7722 tSCC zVoid_NullSelect0[] =
7723 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
7726 * content bypass pattern - skip fix if pattern found
7728 tSCC zVoid_NullBypass0[] =
7731 #define VOID_NULL_TEST_CT 2
7732 static tTestDesc aVoid_NullTests[] = {
7733 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
7734 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
7737 * Fix Command Arguments for Void_Null
7739 static const char* apzVoid_NullPatch[] = {
7744 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7746 * Description of Vxworks_Gcc_Problem fix
7748 tSCC zVxworks_Gcc_ProblemName[] =
7749 "vxworks_gcc_problem";
7752 * File name selection pattern
7754 tSCC zVxworks_Gcc_ProblemList[] =
7755 "types/vxTypesBase.h\0";
7757 * Machine/OS name selection pattern
7759 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
7762 * content selection pattern - do fix if pattern found
7764 tSCC zVxworks_Gcc_ProblemSelect0[] =
7765 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
7767 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
7768 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
7769 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
7772 * Fix Command Arguments for Vxworks_Gcc_Problem
7774 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
7775 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
7776 "-e", "/[ \t]size_t/i\\\n\
7777 #ifndef _GCC_SIZE_T\\\n\
7778 #define _GCC_SIZE_T\n",
7779 "-e", "/[ \t]size_t/a\\\n\
7781 "-e", "/[ \t]ptrdiff_t/i\\\n\
7782 #ifndef _GCC_PTRDIFF_T\\\n\
7783 #define _GCC_PTRDIFF_T\n",
7784 "-e", "/[ \t]ptrdiff_t/a\\\n\
7786 "-e", "/[ \t]wchar_t/i\\\n\
7787 #ifndef _GCC_WCHAR_T\\\n\
7788 #define _GCC_WCHAR_T\n",
7789 "-e", "/[ \t]wchar_t/a\\\n\
7793 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7795 * Description of Vxworks_Needs_Vxtypes fix
7797 tSCC zVxworks_Needs_VxtypesName[] =
7798 "vxworks_needs_vxtypes";
7801 * File name selection pattern
7803 tSCC zVxworks_Needs_VxtypesList[] =
7806 * Machine/OS name selection pattern
7808 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
7811 * content selection pattern - do fix if pattern found
7813 tSCC zVxworks_Needs_VxtypesSelect0[] =
7814 "uint_t([ \t]+_clocks_per_sec)";
7816 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
7817 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
7818 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
7821 * Fix Command Arguments for Vxworks_Needs_Vxtypes
7823 static const char* apzVxworks_Needs_VxtypesPatch[] = {
7828 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7830 * Description of Vxworks_Needs_Vxworks fix
7832 tSCC zVxworks_Needs_VxworksName[] =
7833 "vxworks_needs_vxworks";
7836 * File name selection pattern
7838 tSCC zVxworks_Needs_VxworksList[] =
7841 * Machine/OS name selection pattern
7843 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
7846 * content selection pattern - do fix if pattern found
7848 tSCC zVxworks_Needs_VxworksSelect0[] =
7849 "#[ \t]define[ \t]+__INCstath";
7852 * perform the 'test' shell command - do fix on success
7854 tSCC zVxworks_Needs_VxworksTest0[] =
7855 " -r types/vxTypesOld.h";
7856 tSCC zVxworks_Needs_VxworksTest1[] =
7857 " -n \"`egrep '#include' $file`\"";
7858 tSCC zVxworks_Needs_VxworksTest2[] =
7859 " -n \"`egrep ULONG $file`\"";
7861 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
7862 static tTestDesc aVxworks_Needs_VxworksTests[] = {
7863 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
7864 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
7865 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
7866 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
7869 * Fix Command Arguments for Vxworks_Needs_Vxworks
7871 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
7872 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
7873 #include <types/vxTypesOld.h>\n",
7876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7878 * Description of Vxworks_Time fix
7880 tSCC zVxworks_TimeName[] =
7884 * File name selection pattern
7886 tSCC zVxworks_TimeList[] =
7889 * Machine/OS name selection pattern
7891 #define apzVxworks_TimeMachs (const char**)NULL
7894 * content selection pattern - do fix if pattern found
7896 tSCC zVxworks_TimeSelect0[] =
7897 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
7900 * perform the 'test' shell command - do fix on success
7902 tSCC zVxworks_TimeTest0[] =
7905 #define VXWORKS_TIME_TEST_CT 2
7906 static tTestDesc aVxworks_TimeTests[] = {
7907 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
7908 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
7911 * Fix Command Arguments for Vxworks_Time
7913 static const char* apzVxworks_TimePatch[] = {
7915 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
7916 #ifdef __cplusplus\n\
7917 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
7919 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
7921 #define __gcc_VOIDFUNCPTR_defined\n\
7923 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
7926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7928 * Description of X11_Class fix
7930 tSCC zX11_ClassName[] =
7934 * File name selection pattern
7936 tSCC zX11_ClassList[] =
7939 * Machine/OS name selection pattern
7941 #define apzX11_ClassMachs (const char**)NULL
7944 * content selection pattern - do fix if pattern found
7946 tSCC zX11_ClassSelect0[] =
7947 "^([ \t]*char \\*)class;(.*)";
7950 * content bypass pattern - skip fix if pattern found
7952 tSCC zX11_ClassBypass0[] =
7955 #define X11_CLASS_TEST_CT 2
7956 static tTestDesc aX11_ClassTests[] = {
7957 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
7958 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
7961 * Fix Command Arguments for X11_Class
7963 static const char* apzX11_ClassPatch[] = {
7965 "#ifdef __cplusplus\n\
7972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7974 * Description of X11_Class_Usage fix
7976 tSCC zX11_Class_UsageName[] =
7980 * File name selection pattern
7982 tSCC zX11_Class_UsageList[] =
7983 "Xm/BaseClassI.h\0";
7985 * Machine/OS name selection pattern
7987 #define apzX11_Class_UsageMachs (const char**)NULL
7990 * content selection pattern - do fix if pattern found
7992 tSCC zX11_Class_UsageSelect0[] =
7996 * content bypass pattern - skip fix if pattern found
7998 tSCC zX11_Class_UsageBypass0[] =
8001 #define X11_CLASS_USAGE_TEST_CT 2
8002 static tTestDesc aX11_Class_UsageTests[] = {
8003 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8004 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8007 * Fix Command Arguments for X11_Class_Usage
8009 static const char* apzX11_Class_UsagePatch[] = {
8014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8016 * Description of X11_New fix
8018 tSCC zX11_NewName[] =
8022 * File name selection pattern
8024 tSCC zX11_NewList[] =
8027 * Machine/OS name selection pattern
8029 #define apzX11_NewMachs (const char**)NULL
8032 * content bypass pattern - skip fix if pattern found
8034 tSCC zX11_NewBypass0[] =
8037 #define X11_NEW_TEST_CT 1
8038 static tTestDesc aX11_NewTests[] = {
8039 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
8042 * Fix Command Arguments for X11_New
8044 static const char* apzX11_NewPatch[] = { sed_cmd_z,
8045 "-e", "/Widget\told, new;/i\\\n\
8046 #ifdef __cplusplus\\\n\
8047 \tWidget\told, c_new;\\\n\
8049 "-e", "/Widget\told, new;/a\\\n\
8051 "-e", "s/Widget new,/Widget c_new,/g",
8054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8056 * Description of X11_Sprintf fix
8058 tSCC zX11_SprintfName[] =
8062 * File name selection pattern
8064 tSCC zX11_SprintfList[] =
8065 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8067 * Machine/OS name selection pattern
8069 #define apzX11_SprintfMachs (const char**)NULL
8072 * content selection pattern - do fix if pattern found
8074 tSCC zX11_SprintfSelect0[] =
8075 "^extern char \\*\tsprintf\\(\\);$";
8077 #define X11_SPRINTF_TEST_CT 1
8078 static tTestDesc aX11_SprintfTests[] = {
8079 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
8082 * Fix Command Arguments for X11_Sprintf
8084 static const char* apzX11_SprintfPatch[] = {
8086 "#ifndef __STDC__\n\
8088 #endif /* !defined __STDC__ */",
8092 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8096 #define REGEX_COUNT 242
8097 #define MACH_LIST_SIZE_LIMIT 181
8098 #define FIX_COUNT 199
8101 * Enumerate the fixes
8104 AAB_AIX_STDIO_FIXIDX,
8105 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8106 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8107 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8108 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8109 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8110 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8111 AAB_SUN_MEMCPY_FIXIDX,
8113 AIX_SYSMACHINE_FIXIDX,
8114 AIX_SYSWAIT_2_FIXIDX,
8115 AIX_VOLATILE_FIXIDX,
8116 ALPHA___ASSERT_FIXIDX,
8117 ALPHA___EXTERN_PREFIX_FIXIDX,
8118 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8119 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8120 ALPHA_ASSERT_FIXIDX,
8121 ALPHA_BAD_LVAL_FIXIDX,
8122 ALPHA_GETOPT_FIXIDX,
8123 ALPHA_IF_SEMICOLON_FIXIDX,
8124 ALPHA_PARENS_FIXIDX,
8125 ALPHA_PTHREAD_FIXIDX,
8126 ALPHA_PTHREAD_GCC_FIXIDX,
8127 ALPHA_PTHREAD_INIT_FIXIDX,
8130 AVOID_BOOL_DEFINE_FIXIDX,
8131 AVOID_BOOL_TYPE_FIXIDX,
8132 AVOID_WCHAR_T_TYPE_FIXIDX,
8133 BAD_STRUCT_TERM_FIXIDX,
8135 BROKEN_ASSERT_STDIO_FIXIDX,
8136 BROKEN_ASSERT_STDLIB_FIXIDX,
8139 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8140 CTRL_QUOTES_DEF_FIXIDX,
8141 CTRL_QUOTES_USE_FIXIDX,
8143 DARWIN_EXTERNC_FIXIDX,
8144 DARWIN_GCC4_BREAKAGE_FIXIDX,
8145 DARWIN_PRIVATE_EXTERN_FIXIDX,
8146 DARWIN_STDINT_1_FIXIDX,
8147 DARWIN_STDINT_2_FIXIDX,
8148 DARWIN_STDINT_3_FIXIDX,
8149 DARWIN_STDINT_4_FIXIDX,
8150 DARWIN_STDINT_5_FIXIDX,
8151 DARWIN_STDINT_6_FIXIDX,
8152 DARWIN_STDINT_7_FIXIDX,
8153 DEC_INTERN_ASM_FIXIDX,
8154 DJGPP_WCHAR_H_FIXIDX,
8156 FREEBSD_GCC3_BREAKAGE_FIXIDX,
8157 FREEBSD_GCC4_BREAKAGE_FIXIDX,
8158 GLIBC_C99_INLINE_1_FIXIDX,
8159 GLIBC_C99_INLINE_1A_FIXIDX,
8160 GLIBC_C99_INLINE_2_FIXIDX,
8161 GLIBC_C99_INLINE_3_FIXIDX,
8162 GLIBC_C99_INLINE_4_FIXIDX,
8163 GLIBC_MUTEX_INIT_FIXIDX,
8164 GLIBC_STDINT_FIXIDX,
8165 GLIBC_TGMATH_FIXIDX,
8169 HPPA_HPUX_FP_MACROS_FIXIDX,
8170 HPUX10_CPP_POW_INLINE_FIXIDX,
8171 HPUX11_CPP_POW_INLINE_FIXIDX,
8172 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8173 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8174 HPUX10_STDIO_DECLARATIONS_FIXIDX,
8176 HPUX11_FABSF_FIXIDX,
8177 HPUX11_PTHREAD_CONST_FIXIDX,
8178 HPUX11_SIZE_T_FIXIDX,
8179 HPUX11_SNPRINTF_FIXIDX,
8180 HPUX11_VSNPRINTF_FIXIDX,
8181 HPUX8_BOGUS_INLINES_FIXIDX,
8182 HPUX_CTYPE_MACROS_FIXIDX,
8184 HPUX_LONG_DOUBLE_FIXIDX,
8185 HPUX_LONG_DOUBLE_2_FIXIDX,
8186 HPUX_SYSTIME_FIXIDX,
8187 HPUX_SPU_INFO_FIXIDX,
8188 HPUX11_EXTERN_SENDFILE_FIXIDX,
8189 HPUX11_EXTERN_SENDPATH_FIXIDX,
8190 HPUX_EXTERN_ERRNO_FIXIDX,
8191 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8192 HPUX_C99_INTPTR_FIXIDX,
8193 HPUX_C99_INTTYPES_FIXIDX,
8194 HPUX_C99_INTTYPES2_FIXIDX,
8195 HPUX_STDINT_LEAST_FIXIDX,
8196 HPUX_STDINT_FAST_FIXIDX,
8197 HPUX_INTTYPE_INT_LEAST8_T_FIXIDX,
8198 HPUX_INTTYPE_INT8_T_FIXIDX,
8199 HUGE_VAL_HEX_FIXIDX,
8200 HUGE_VALF_HEX_FIXIDX,
8201 HUGE_VALL_HEX_FIXIDX,
8202 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8203 IO_QUOTES_DEF_FIXIDX,
8204 IO_QUOTES_USE_FIXIDX,
8205 IP_MISSING_SEMI_FIXIDX,
8206 IRIX___RESTRICT_FIXIDX,
8207 IRIX___GENERIC1_FIXIDX,
8208 IRIX___GENERIC2_FIXIDX,
8209 IRIX_ASM_APOSTROPHE_FIXIDX,
8210 IRIX_LIMITS_CONST_FIXIDX,
8211 IRIX_SOCKLEN_T_FIXIDX,
8212 IRIX_STDINT_C99_FIXIDX,
8213 IRIX_STDIO_VA_LIST_FIXIDX,
8214 IRIX_WCSFTIME_FIXIDX,
8216 ISC_OMITS_WITH_STDC_FIXIDX,
8217 KANDR_CONCAT_FIXIDX,
8218 LINUX_IA64_UCONTEXT_FIXIDX,
8219 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8220 LYNXOS_MISSING_PUTENV_FIXIDX,
8221 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8222 MACHINE_NAME_FIXIDX,
8223 MATH_EXCEPTION_FIXIDX,
8224 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8225 NESTED_AUTH_DES_FIXIDX,
8226 NESTED_SYS_LIMITS_FIXIDX,
8227 NETBSD_C99_INLINE_1_FIXIDX,
8228 NETBSD_C99_INLINE_2_FIXIDX,
8229 NETBSD_EXTRA_SEMICOLON_FIXIDX,
8230 NEWLIB_STDINT_1_FIXIDX,
8231 NEWLIB_STDINT_2_FIXIDX,
8232 NEXT_MATH_PREFIX_FIXIDX,
8233 NEXT_TEMPLATE_FIXIDX,
8234 NEXT_VOLITILE_FIXIDX,
8235 NEXT_WAIT_UNION_FIXIDX,
8236 NODEENT_SYNTAX_FIXIDX,
8237 OPENBSD_NULL_DEFINITION_FIXIDX,
8238 OBSTACK_LVALUE_CAST_FIXIDX,
8239 OPENBSD_VA_START_FIXIDX,
8240 OSF_NAMESPACE_A_FIXIDX,
8241 OSF_NAMESPACE_C_FIXIDX,
8242 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8243 READ_RET_TYPE_FIXIDX,
8244 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8245 RPC_XDR_LVALUE_CAST_B_FIXIDX,
8246 RS6000_DOUBLE_FIXIDX,
8247 RS6000_FCHMOD_FIXIDX,
8248 RS6000_PARAM_FIXIDX,
8250 SOLARIS_MATH_1_FIXIDX,
8251 SOLARIS_MATH_2_FIXIDX,
8252 SOLARIS_MATH_3_FIXIDX,
8253 SOLARIS_MATH_4_FIXIDX,
8254 SOLARIS_MATH_8_FIXIDX,
8255 SOLARIS_MATH_9_FIXIDX,
8256 SOLARIS_MATH_10_FIXIDX,
8257 SOLARIS_MUTEX_INIT_2_FIXIDX,
8258 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8259 SOLARIS_ONCE_INIT_1_FIXIDX,
8260 SOLARIS_ONCE_INIT_2_FIXIDX,
8261 SOLARIS_INT_CONST_FIXIDX,
8262 SOLARIS_INT_LIMITS_1_FIXIDX,
8263 SOLARIS_INT_LIMITS_2_FIXIDX,
8264 SOLARIS_INT_TYPES_FIXIDX,
8265 SOLARIS_STDIO_TAG_FIXIDX,
8267 STDIO_STDARG_H_FIXIDX,
8268 STDIO_VA_LIST_FIXIDX,
8269 STDIO_VA_LIST_CLIENTS_FIXIDX,
8270 STRICT_ANSI_NOT_FIXIDX,
8271 STRICT_ANSI_NOT_CTD_FIXIDX,
8272 STRICT_ANSI_ONLY_FIXIDX,
8274 STRUCT_SOCKADDR_FIXIDX,
8275 SUN_AUTH_PROTO_FIXIDX,
8276 SUN_BOGUS_IFDEF_FIXIDX,
8277 SUN_CATMACRO_FIXIDX,
8279 SUN_RUSERS_SEMI_FIXIDX,
8281 SUNOS_STRLEN_FIXIDX,
8282 SVR4_DISABLE_OPT_FIXIDX,
8285 SVR4_SIGHANDLER_TYPE_FIXIDX,
8286 SVR4_UNDECLARED_GETRNGE_FIXIDX,
8287 SYSV68_STRING_FIXIDX,
8288 SYSZ_STDLIB_FOR_SUN_FIXIDX,
8289 THREAD_KEYWORD_FIXIDX,
8290 TINFO_CPLUSPLUS_FIXIDX,
8291 ULTRIX_CONST_FIXIDX,
8292 ULTRIX_CONST2_FIXIDX,
8293 VA_I960_MACRO_FIXIDX,
8295 VXWORKS_GCC_PROBLEM_FIXIDX,
8296 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8297 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8298 VXWORKS_TIME_FIXIDX,
8300 X11_CLASS_USAGE_FIXIDX,
8305 tFixDesc fixDescList[ FIX_COUNT ] = {
8306 { zAab_Aix_StdioName, zAab_Aix_StdioList,
8307 apzAab_Aix_StdioMachs,
8308 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8309 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
8311 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8312 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8313 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8314 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8316 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8317 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8318 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8319 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8321 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
8322 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8323 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8324 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8326 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
8327 apzAab_Fd_Zero_Gnu_Types_HMachs,
8328 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8329 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8331 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
8332 apzAab_Fd_Zero_Selectbits_HMachs,
8333 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8334 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8336 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8337 apzAab_Solaris_Sys_Varargs_HMachs,
8338 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8339 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8341 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8342 apzAab_Sun_MemcpyMachs,
8343 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8344 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8346 { zAix_PthreadName, zAix_PthreadList,
8347 apzAix_PthreadMachs,
8348 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8349 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
8351 { zAix_SysmachineName, zAix_SysmachineList,
8352 apzAix_SysmachineMachs,
8353 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8354 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
8356 { zAix_Syswait_2Name, zAix_Syswait_2List,
8357 apzAix_Syswait_2Machs,
8358 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8359 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8361 { zAix_VolatileName, zAix_VolatileList,
8362 apzAix_VolatileMachs,
8363 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8364 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
8366 { zAlpha___AssertName, zAlpha___AssertList,
8367 apzAlpha___AssertMachs,
8368 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8369 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8371 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
8372 apzAlpha___Extern_PrefixMachs,
8373 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8374 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
8376 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
8377 apzAlpha___Extern_Prefix_StandardsMachs,
8378 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8379 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8381 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
8382 apzAlpha___Extern_Prefix_Sys_StatMachs,
8383 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8384 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8386 { zAlpha_AssertName, zAlpha_AssertList,
8387 apzAlpha_AssertMachs,
8388 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8389 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
8391 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
8392 apzAlpha_Bad_LvalMachs,
8393 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8394 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
8396 { zAlpha_GetoptName, zAlpha_GetoptList,
8397 apzAlpha_GetoptMachs,
8398 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8399 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
8401 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
8402 apzAlpha_If_SemicolonMachs,
8403 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8404 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
8406 { zAlpha_ParensName, zAlpha_ParensList,
8407 apzAlpha_ParensMachs,
8408 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8409 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
8411 { zAlpha_PthreadName, zAlpha_PthreadList,
8412 apzAlpha_PthreadMachs,
8413 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8414 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
8416 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
8417 apzAlpha_Pthread_GccMachs,
8418 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8419 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
8421 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
8422 apzAlpha_Pthread_InitMachs,
8423 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8424 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
8426 { zAlpha_SbrkName, zAlpha_SbrkList,
8428 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8429 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
8431 { zAlpha_WcharName, zAlpha_WcharList,
8432 apzAlpha_WcharMachs,
8433 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
8434 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
8436 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
8437 apzAvoid_Bool_DefineMachs,
8438 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8439 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
8441 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
8442 apzAvoid_Bool_TypeMachs,
8443 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8444 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
8446 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
8447 apzAvoid_Wchar_T_TypeMachs,
8448 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8449 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
8451 { zBad_Struct_TermName, zBad_Struct_TermList,
8452 apzBad_Struct_TermMachs,
8453 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8454 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
8456 { zBadquoteName, zBadquoteList,
8458 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8459 aBadquoteTests, apzBadquotePatch, 0 },
8461 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
8462 apzBroken_Assert_StdioMachs,
8463 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8464 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
8466 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
8467 apzBroken_Assert_StdlibMachs,
8468 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8469 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
8471 { zBroken_CabsName, zBroken_CabsList,
8472 apzBroken_CabsMachs,
8473 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
8474 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
8476 { zBroken_NanName, zBroken_NanList,
8478 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8479 aBroken_NanTests, apzBroken_NanPatch, 0 },
8481 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
8482 apzBsd_Stdio_Attrs_ConflictMachs,
8483 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8484 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
8486 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
8487 apzCtrl_Quotes_DefMachs,
8488 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8489 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
8491 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
8492 apzCtrl_Quotes_UseMachs,
8493 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8494 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
8496 { zCxx_UnreadyName, zCxx_UnreadyList,
8497 apzCxx_UnreadyMachs,
8498 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8499 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
8501 { zDarwin_ExterncName, zDarwin_ExterncList,
8502 apzDarwin_ExterncMachs,
8503 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8504 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
8506 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
8507 apzDarwin_Gcc4_BreakageMachs,
8508 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8509 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
8511 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
8512 apzDarwin_Private_ExternMachs,
8513 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8514 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
8516 { zDarwin_Stdint_1Name, zDarwin_Stdint_1List,
8517 apzDarwin_Stdint_1Machs,
8518 DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8519 aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 },
8521 { zDarwin_Stdint_2Name, zDarwin_Stdint_2List,
8522 apzDarwin_Stdint_2Machs,
8523 DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8524 aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 },
8526 { zDarwin_Stdint_3Name, zDarwin_Stdint_3List,
8527 apzDarwin_Stdint_3Machs,
8528 DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8529 aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 },
8531 { zDarwin_Stdint_4Name, zDarwin_Stdint_4List,
8532 apzDarwin_Stdint_4Machs,
8533 DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8534 aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 },
8536 { zDarwin_Stdint_5Name, zDarwin_Stdint_5List,
8537 apzDarwin_Stdint_5Machs,
8538 DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8539 aDarwin_Stdint_5Tests, apzDarwin_Stdint_5Patch, 0 },
8541 { zDarwin_Stdint_6Name, zDarwin_Stdint_6List,
8542 apzDarwin_Stdint_6Machs,
8543 DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8544 aDarwin_Stdint_6Tests, apzDarwin_Stdint_6Patch, 0 },
8546 { zDarwin_Stdint_7Name, zDarwin_Stdint_7List,
8547 apzDarwin_Stdint_7Machs,
8548 DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8549 aDarwin_Stdint_7Tests, apzDarwin_Stdint_7Patch, 0 },
8551 { zDec_Intern_AsmName, zDec_Intern_AsmList,
8552 apzDec_Intern_AsmMachs,
8553 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
8554 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
8556 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
8557 apzDjgpp_Wchar_HMachs,
8558 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8559 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
8561 { zEcd_CursorName, zEcd_CursorList,
8563 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8564 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
8566 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
8567 apzFreebsd_Gcc3_BreakageMachs,
8568 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8569 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
8571 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
8572 apzFreebsd_Gcc4_BreakageMachs,
8573 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8574 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
8576 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
8577 apzGlibc_C99_Inline_1Machs,
8578 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8579 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
8581 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
8582 apzGlibc_C99_Inline_1aMachs,
8583 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8584 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
8586 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
8587 apzGlibc_C99_Inline_2Machs,
8588 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
8589 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
8591 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
8592 apzGlibc_C99_Inline_3Machs,
8593 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8594 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
8596 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
8597 apzGlibc_C99_Inline_4Machs,
8598 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8599 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
8601 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
8602 apzGlibc_Mutex_InitMachs,
8603 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
8604 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
8606 { zGlibc_StdintName, zGlibc_StdintList,
8607 apzGlibc_StdintMachs,
8608 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8609 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 },
8611 { zGlibc_TgmathName, zGlibc_TgmathList,
8612 apzGlibc_TgmathMachs,
8613 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8614 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
8616 { zGnu_TypesName, zGnu_TypesList,
8618 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
8619 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
8621 { zHp_InlineName, zHp_InlineList,
8623 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8624 aHp_InlineTests, apzHp_InlinePatch, 0 },
8626 { zHp_SysfileName, zHp_SysfileList,
8628 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8629 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
8631 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
8632 apzHppa_Hpux_Fp_MacrosMachs,
8633 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8634 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
8636 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
8637 apzHpux10_Cpp_Pow_InlineMachs,
8638 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8639 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
8641 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
8642 apzHpux11_Cpp_Pow_InlineMachs,
8643 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8644 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
8646 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
8647 apzHpux10_Ctype_Declarations1Machs,
8648 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8649 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
8651 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
8652 apzHpux10_Ctype_Declarations2Machs,
8653 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8654 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
8656 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
8657 apzHpux10_Stdio_DeclarationsMachs,
8658 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8659 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
8661 { zHpux11_AbsName, zHpux11_AbsList,
8663 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8664 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
8666 { zHpux11_FabsfName, zHpux11_FabsfList,
8667 apzHpux11_FabsfMachs,
8668 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8669 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
8671 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
8672 apzHpux11_Pthread_ConstMachs,
8673 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8674 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
8676 { zHpux11_Size_TName, zHpux11_Size_TList,
8677 apzHpux11_Size_TMachs,
8678 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8679 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
8681 { zHpux11_SnprintfName, zHpux11_SnprintfList,
8682 apzHpux11_SnprintfMachs,
8683 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8684 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
8686 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
8687 apzHpux11_VsnprintfMachs,
8688 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8689 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
8691 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
8692 apzHpux8_Bogus_InlinesMachs,
8693 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
8694 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
8696 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
8697 apzHpux_Ctype_MacrosMachs,
8698 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8699 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
8701 { zHpux_HtonlName, zHpux_HtonlList,
8703 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8704 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
8706 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
8707 apzHpux_Long_DoubleMachs,
8708 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
8709 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
8711 { zHpux_Long_Double_2Name, zHpux_Long_Double_2List,
8712 apzHpux_Long_Double_2Machs,
8713 HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8714 aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 },
8716 { zHpux_SystimeName, zHpux_SystimeList,
8717 apzHpux_SystimeMachs,
8718 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8719 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
8721 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
8722 apzHpux_Spu_InfoMachs,
8723 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8724 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
8726 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
8727 apzHpux11_Extern_SendfileMachs,
8728 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8729 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
8731 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
8732 apzHpux11_Extern_SendpathMachs,
8733 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8734 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
8736 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
8737 apzHpux_Extern_ErrnoMachs,
8738 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8739 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
8741 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
8742 apzHpux_Pthread_InitializersMachs,
8743 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
8744 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
8746 { zHpux_C99_IntptrName, zHpux_C99_IntptrList,
8747 apzHpux_C99_IntptrMachs,
8748 HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
8749 aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 },
8751 { zHpux_C99_InttypesName, zHpux_C99_InttypesList,
8752 apzHpux_C99_InttypesMachs,
8753 HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
8754 aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 },
8756 { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List,
8757 apzHpux_C99_Inttypes2Machs,
8758 HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
8759 aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 },
8761 { zHpux_Stdint_LeastName, zHpux_Stdint_LeastList,
8762 apzHpux_Stdint_LeastMachs,
8763 HPUX_STDINT_LEAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8764 aHpux_Stdint_LeastTests, apzHpux_Stdint_LeastPatch, 0 },
8766 { zHpux_Stdint_FastName, zHpux_Stdint_FastList,
8767 apzHpux_Stdint_FastMachs,
8768 HPUX_STDINT_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8769 aHpux_Stdint_FastTests, apzHpux_Stdint_FastPatch, 0 },
8771 { zHpux_Inttype_Int_Least8_TName, zHpux_Inttype_Int_Least8_TList,
8772 apzHpux_Inttype_Int_Least8_TMachs,
8773 HPUX_INTTYPE_INT_LEAST8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8774 aHpux_Inttype_Int_Least8_TTests, apzHpux_Inttype_Int_Least8_TPatch, 0 },
8776 { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList,
8777 apzHpux_Inttype_Int8_TMachs,
8778 HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8779 aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 },
8781 { zHuge_Val_HexName, zHuge_Val_HexList,
8782 apzHuge_Val_HexMachs,
8783 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8784 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
8786 { zHuge_Valf_HexName, zHuge_Valf_HexList,
8787 apzHuge_Valf_HexMachs,
8788 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8789 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
8791 { zHuge_Vall_HexName, zHuge_Vall_HexList,
8792 apzHuge_Vall_HexMachs,
8793 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8794 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
8796 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
8797 apzInt_Abort_Free_And_ExitMachs,
8798 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8799 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
8801 { zIo_Quotes_DefName, zIo_Quotes_DefList,
8802 apzIo_Quotes_DefMachs,
8803 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8804 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
8806 { zIo_Quotes_UseName, zIo_Quotes_UseList,
8807 apzIo_Quotes_UseMachs,
8808 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8809 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
8811 { zIp_Missing_SemiName, zIp_Missing_SemiList,
8812 apzIp_Missing_SemiMachs,
8813 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
8814 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
8816 { zIrix___RestrictName, zIrix___RestrictList,
8817 apzIrix___RestrictMachs,
8818 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8819 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
8821 { zIrix___Generic1Name, zIrix___Generic1List,
8822 apzIrix___Generic1Machs,
8823 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8824 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
8826 { zIrix___Generic2Name, zIrix___Generic2List,
8827 apzIrix___Generic2Machs,
8828 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8829 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
8831 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
8832 apzIrix_Asm_ApostropheMachs,
8833 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8834 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
8836 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
8837 apzIrix_Limits_ConstMachs,
8838 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8839 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
8841 { zIrix_Socklen_TName, zIrix_Socklen_TList,
8842 apzIrix_Socklen_TMachs,
8843 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8844 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
8846 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
8847 apzIrix_Stdint_C99Machs,
8848 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8849 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
8851 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
8852 apzIrix_Stdio_Va_ListMachs,
8853 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8854 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
8856 { zIrix_WcsftimeName, zIrix_WcsftimeList,
8857 apzIrix_WcsftimeMachs,
8858 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8859 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
8861 { zIsc_FmodName, zIsc_FmodList,
8863 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8864 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
8866 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
8867 apzIsc_Omits_With_StdcMachs,
8868 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8869 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
8871 { zKandr_ConcatName, zKandr_ConcatList,
8872 apzKandr_ConcatMachs,
8873 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8874 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
8876 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
8877 apzLinux_Ia64_UcontextMachs,
8878 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8879 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
8881 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
8882 apzLynxos_No_Warning_In_Sys_Time_HMachs,
8883 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8884 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
8886 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
8887 apzLynxos_Missing_PutenvMachs,
8888 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8889 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
8891 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
8892 apzMachine_Ansi_H_Va_ListMachs,
8893 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8894 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
8896 { zMachine_NameName, zMachine_NameList,
8897 apzMachine_NameMachs,
8898 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8899 aMachine_NameTests, apzMachine_NamePatch, 0 },
8901 { zMath_ExceptionName, zMath_ExceptionList,
8902 apzMath_ExceptionMachs,
8903 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8904 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
8906 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
8907 apzMath_Huge_Val_From_Dbl_MaxMachs,
8908 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
8909 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
8911 { zNested_Auth_DesName, zNested_Auth_DesList,
8912 apzNested_Auth_DesMachs,
8913 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8914 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
8916 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
8917 apzNested_Sys_LimitsMachs,
8918 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
8919 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
8921 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
8922 apzNetbsd_C99_Inline_1Machs,
8923 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8924 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
8926 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
8927 apzNetbsd_C99_Inline_2Machs,
8928 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8929 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
8931 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
8932 apzNetbsd_Extra_SemicolonMachs,
8933 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8934 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
8936 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List,
8937 apzNewlib_Stdint_1Machs,
8938 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
8939 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 },
8941 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List,
8942 apzNewlib_Stdint_2Machs,
8943 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8944 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 },
8946 { zNext_Math_PrefixName, zNext_Math_PrefixList,
8947 apzNext_Math_PrefixMachs,
8948 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8949 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
8951 { zNext_TemplateName, zNext_TemplateList,
8952 apzNext_TemplateMachs,
8953 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8954 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
8956 { zNext_VolitileName, zNext_VolitileList,
8957 apzNext_VolitileMachs,
8958 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8959 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
8961 { zNext_Wait_UnionName, zNext_Wait_UnionList,
8962 apzNext_Wait_UnionMachs,
8963 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8964 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
8966 { zNodeent_SyntaxName, zNodeent_SyntaxList,
8967 apzNodeent_SyntaxMachs,
8968 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8969 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
8971 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
8972 apzOpenbsd_Null_DefinitionMachs,
8973 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8974 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
8976 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
8977 apzObstack_Lvalue_CastMachs,
8978 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8979 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
8981 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
8982 apzOpenbsd_Va_StartMachs,
8983 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8984 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
8986 { zOsf_Namespace_AName, zOsf_Namespace_AList,
8987 apzOsf_Namespace_AMachs,
8988 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8989 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
8991 { zOsf_Namespace_CName, zOsf_Namespace_CList,
8992 apzOsf_Namespace_CMachs,
8993 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8994 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
8996 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
8997 apzPthread_Incomplete_Struct_ArgumentMachs,
8998 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8999 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9001 { zRead_Ret_TypeName, zRead_Ret_TypeList,
9002 apzRead_Ret_TypeMachs,
9003 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9004 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
9006 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
9007 apzRpc_Xdr_Lvalue_Cast_AMachs,
9008 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9009 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9011 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
9012 apzRpc_Xdr_Lvalue_Cast_BMachs,
9013 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9014 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9016 { zRs6000_DoubleName, zRs6000_DoubleList,
9017 apzRs6000_DoubleMachs,
9018 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9019 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
9021 { zRs6000_FchmodName, zRs6000_FchmodList,
9022 apzRs6000_FchmodMachs,
9023 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9024 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
9026 { zRs6000_ParamName, zRs6000_ParamList,
9027 apzRs6000_ParamMachs,
9028 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9029 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
9031 { zSco_MathName, zSco_MathList,
9033 SCO_MATH_TEST_CT, FD_MACH_ONLY,
9034 aSco_MathTests, apzSco_MathPatch, 0 },
9036 { zSolaris_Math_1Name, zSolaris_Math_1List,
9037 apzSolaris_Math_1Machs,
9038 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9039 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
9041 { zSolaris_Math_2Name, zSolaris_Math_2List,
9042 apzSolaris_Math_2Machs,
9043 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9044 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
9046 { zSolaris_Math_3Name, zSolaris_Math_3List,
9047 apzSolaris_Math_3Machs,
9048 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9049 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
9051 { zSolaris_Math_4Name, zSolaris_Math_4List,
9052 apzSolaris_Math_4Machs,
9053 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9054 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
9056 { zSolaris_Math_8Name, zSolaris_Math_8List,
9057 apzSolaris_Math_8Machs,
9058 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9059 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
9061 { zSolaris_Math_9Name, zSolaris_Math_9List,
9062 apzSolaris_Math_9Machs,
9063 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9064 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
9066 { zSolaris_Math_10Name, zSolaris_Math_10List,
9067 apzSolaris_Math_10Machs,
9068 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9069 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
9071 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
9072 apzSolaris_Mutex_Init_2Machs,
9073 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9074 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
9076 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
9077 apzSolaris_Rwlock_Init_1Machs,
9078 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9079 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
9081 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
9082 apzSolaris_Once_Init_1Machs,
9083 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9084 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
9086 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
9087 apzSolaris_Once_Init_2Machs,
9088 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9089 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
9091 { zSolaris_Int_ConstName, zSolaris_Int_ConstList,
9092 apzSolaris_Int_ConstMachs,
9093 SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9094 aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 },
9096 { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List,
9097 apzSolaris_Int_Limits_1Machs,
9098 SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9099 aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 },
9101 { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List,
9102 apzSolaris_Int_Limits_2Machs,
9103 SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9104 aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 },
9106 { zSolaris_Int_TypesName, zSolaris_Int_TypesList,
9107 apzSolaris_Int_TypesMachs,
9108 SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9109 aSolaris_Int_TypesTests, apzSolaris_Int_TypesPatch, 0 },
9111 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
9112 apzSolaris_Stdio_TagMachs,
9113 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9114 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
9116 { zStatsswtchName, zStatsswtchList,
9118 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9119 aStatsswtchTests, apzStatsswtchPatch, 0 },
9121 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
9122 apzStdio_Stdarg_HMachs,
9123 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9124 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
9126 { zStdio_Va_ListName, zStdio_Va_ListList,
9127 apzStdio_Va_ListMachs,
9128 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9129 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
9131 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
9132 apzStdio_Va_List_ClientsMachs,
9133 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9134 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
9136 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
9137 apzStrict_Ansi_NotMachs,
9138 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9139 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
9141 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
9142 apzStrict_Ansi_Not_CtdMachs,
9143 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9144 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
9146 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
9147 apzStrict_Ansi_OnlyMachs,
9148 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9149 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
9151 { zStruct_FileName, zStruct_FileList,
9152 apzStruct_FileMachs,
9153 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9154 aStruct_FileTests, apzStruct_FilePatch, 0 },
9156 { zStruct_SockaddrName, zStruct_SockaddrList,
9157 apzStruct_SockaddrMachs,
9158 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9159 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
9161 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
9162 apzSun_Auth_ProtoMachs,
9163 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9164 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
9166 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
9167 apzSun_Bogus_IfdefMachs,
9168 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9169 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
9171 { zSun_CatmacroName, zSun_CatmacroList,
9172 apzSun_CatmacroMachs,
9173 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9174 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
9176 { zSun_MallocName, zSun_MallocList,
9178 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9179 aSun_MallocTests, apzSun_MallocPatch, 0 },
9181 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
9182 apzSun_Rusers_SemiMachs,
9183 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9184 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
9186 { zSun_SignalName, zSun_SignalList,
9188 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9189 aSun_SignalTests, apzSun_SignalPatch, 0 },
9191 { zSunos_StrlenName, zSunos_StrlenList,
9192 apzSunos_StrlenMachs,
9193 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9194 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
9196 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
9197 apzSvr4_Disable_OptMachs,
9198 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9199 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
9201 { zSvr4_GetcwdName, zSvr4_GetcwdList,
9202 apzSvr4_GetcwdMachs,
9203 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9204 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
9206 { zSvr4_ProfilName, zSvr4_ProfilList,
9207 apzSvr4_ProfilMachs,
9208 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9209 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
9211 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9212 apzSvr4_Sighandler_TypeMachs,
9213 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9214 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9216 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9217 apzSvr4_Undeclared_GetrngeMachs,
9218 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9219 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9221 { zSysv68_StringName, zSysv68_StringList,
9222 apzSysv68_StringMachs,
9223 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9224 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
9226 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
9227 apzSysz_Stdlib_For_SunMachs,
9228 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9229 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
9231 { zThread_KeywordName, zThread_KeywordList,
9232 apzThread_KeywordMachs,
9233 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9234 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9236 { zTinfo_CplusplusName, zTinfo_CplusplusList,
9237 apzTinfo_CplusplusMachs,
9238 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9239 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
9241 { zUltrix_ConstName, zUltrix_ConstList,
9242 apzUltrix_ConstMachs,
9243 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9244 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
9246 { zUltrix_Const2Name, zUltrix_Const2List,
9247 apzUltrix_Const2Machs,
9248 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9249 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
9251 { zVa_I960_MacroName, zVa_I960_MacroList,
9252 apzVa_I960_MacroMachs,
9253 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9254 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
9256 { zVoid_NullName, zVoid_NullList,
9258 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9259 aVoid_NullTests, apzVoid_NullPatch, 0 },
9261 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
9262 apzVxworks_Gcc_ProblemMachs,
9263 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9264 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
9266 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
9267 apzVxworks_Needs_VxtypesMachs,
9268 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9269 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
9271 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
9272 apzVxworks_Needs_VxworksMachs,
9273 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9274 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
9276 { zVxworks_TimeName, zVxworks_TimeList,
9277 apzVxworks_TimeMachs,
9278 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9279 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
9281 { zX11_ClassName, zX11_ClassList,
9283 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9284 aX11_ClassTests, apzX11_ClassPatch, 0 },
9286 { zX11_Class_UsageName, zX11_Class_UsageList,
9287 apzX11_Class_UsageMachs,
9288 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9289 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
9291 { zX11_NewName, zX11_NewList,
9293 X11_NEW_TEST_CT, FD_MACH_ONLY,
9294 aX11_NewTests, apzX11_NewPatch, 0 },
9296 { zX11_SprintfName, zX11_SprintfList,
9297 apzX11_SprintfMachs,
9298 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9299 aX11_SprintfTests, apzX11_SprintfPatch, 0 }