1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Sunday March 29, 2009 at 01:30:25 AM UTC
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Sun Mar 29 01:30:25 UTC 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 178 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 Dec_Intern_Asm fix
1792 tSCC zDec_Intern_AsmName[] =
1796 * File name selection pattern
1798 tSCC zDec_Intern_AsmList[] =
1801 * Machine/OS name selection pattern
1803 #define apzDec_Intern_AsmMachs (const char**)NULL
1804 #define DEC_INTERN_ASM_TEST_CT 0
1805 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1808 * Fix Command Arguments for Dec_Intern_Asm
1810 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
1811 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1813 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1817 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1819 * Description of Djgpp_Wchar_H fix
1821 tSCC zDjgpp_Wchar_HName[] =
1825 * File name selection pattern
1827 #define zDjgpp_Wchar_HList (char*)NULL
1829 * Machine/OS name selection pattern
1831 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1834 * content selection pattern - do fix if pattern found
1836 tSCC zDjgpp_Wchar_HSelect0[] =
1840 * content bypass pattern - skip fix if pattern found
1842 tSCC zDjgpp_Wchar_HBypass0[] =
1845 #define DJGPP_WCHAR_H_TEST_CT 2
1846 static tTestDesc aDjgpp_Wchar_HTests[] = {
1847 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1848 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1851 * Fix Command Arguments for Djgpp_Wchar_H
1853 static const char* apzDjgpp_Wchar_HPatch[] = {
1856 #include <sys/djtypes.h>",
1857 "#include <stddef.h>",
1860 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1862 * Description of Ecd_Cursor fix
1864 tSCC zEcd_CursorName[] =
1868 * File name selection pattern
1870 tSCC zEcd_CursorList[] =
1871 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
1873 * Machine/OS name selection pattern
1875 #define apzEcd_CursorMachs (const char**)NULL
1878 * content selection pattern - do fix if pattern found
1880 tSCC zEcd_CursorSelect0[] =
1883 #define ECD_CURSOR_TEST_CT 1
1884 static tTestDesc aEcd_CursorTests[] = {
1885 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1888 * Fix Command Arguments for Ecd_Cursor
1890 static const char* apzEcd_CursorPatch[] = {
1895 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1897 * Description of Freebsd_Gcc3_Breakage fix
1899 tSCC zFreebsd_Gcc3_BreakageName[] =
1900 "freebsd_gcc3_breakage";
1903 * File name selection pattern
1905 tSCC zFreebsd_Gcc3_BreakageList[] =
1908 * Machine/OS name selection pattern
1910 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1912 (const char*)NULL };
1915 * content selection pattern - do fix if pattern found
1917 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1918 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1921 * content bypass pattern - skip fix if pattern found
1923 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1924 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1926 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1927 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1928 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1929 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1932 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1934 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1936 "%0 || __GNUC__ >= 3",
1939 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1941 * Description of Freebsd_Gcc4_Breakage fix
1943 tSCC zFreebsd_Gcc4_BreakageName[] =
1944 "freebsd_gcc4_breakage";
1947 * File name selection pattern
1949 tSCC zFreebsd_Gcc4_BreakageList[] =
1952 * Machine/OS name selection pattern
1954 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
1956 (const char*)NULL };
1959 * content selection pattern - do fix if pattern found
1961 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
1962 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
1964 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
1965 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
1966 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1969 * Fix Command Arguments for Freebsd_Gcc4_Breakage
1971 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
1973 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
1976 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1978 * Description of Glibc_C99_Inline_1 fix
1980 tSCC zGlibc_C99_Inline_1Name[] =
1981 "glibc_c99_inline_1";
1984 * File name selection pattern
1986 tSCC zGlibc_C99_Inline_1List[] =
1987 "features.h\0*/features.h\0";
1989 * Machine/OS name selection pattern
1991 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
1994 * content selection pattern - do fix if pattern found
1996 tSCC zGlibc_C99_Inline_1Select0[] =
1997 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
1999 #define GLIBC_C99_INLINE_1_TEST_CT 1
2000 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2001 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2004 * Fix Command Arguments for Glibc_C99_Inline_1
2006 static const char* apzGlibc_C99_Inline_1Patch[] = {
2008 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2013 * Description of Glibc_C99_Inline_1a fix
2015 tSCC zGlibc_C99_Inline_1aName[] =
2016 "glibc_c99_inline_1a";
2019 * File name selection pattern
2021 tSCC zGlibc_C99_Inline_1aList[] =
2022 "features.h\0*/features.h\0";
2024 * Machine/OS name selection pattern
2026 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2029 * content selection pattern - do fix if pattern found
2031 tSCC zGlibc_C99_Inline_1aSelect0[] =
2032 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2033 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2035 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2036 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2037 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2040 * Fix Command Arguments for Glibc_C99_Inline_1a
2042 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2044 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2050 * Description of Glibc_C99_Inline_2 fix
2052 tSCC zGlibc_C99_Inline_2Name[] =
2053 "glibc_c99_inline_2";
2056 * File name selection pattern
2058 tSCC zGlibc_C99_Inline_2List[] =
2059 "sys/stat.h\0*/sys/stat.h\0";
2061 * Machine/OS name selection pattern
2063 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2066 * content selection pattern - do fix if pattern found
2068 tSCC zGlibc_C99_Inline_2Select0[] =
2069 "extern __inline__ int";
2071 #define GLIBC_C99_INLINE_2_TEST_CT 1
2072 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2073 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2076 * Fix Command Arguments for Glibc_C99_Inline_2
2078 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2079 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2082 __inline__ int \\1/",
2083 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2086 __inline__ int __REDIRECT\\1 (\\2/",
2087 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2095 * Description of Glibc_C99_Inline_3 fix
2097 tSCC zGlibc_C99_Inline_3Name[] =
2098 "glibc_c99_inline_3";
2101 * File name selection pattern
2103 tSCC zGlibc_C99_Inline_3List[] =
2104 "bits/string2.h\0*/bits/string2.h\0";
2106 * Machine/OS name selection pattern
2108 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2111 * content selection pattern - do fix if pattern found
2113 tSCC zGlibc_C99_Inline_3Select0[] =
2117 * content bypass pattern - skip fix if pattern found
2119 tSCC zGlibc_C99_Inline_3Bypass0[] =
2120 "__extern_inline|__GNU_STDC_INLINE__";
2122 #define GLIBC_C99_INLINE_3_TEST_CT 2
2123 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2124 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2125 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2128 * Fix Command Arguments for Glibc_C99_Inline_3
2130 static const char* apzGlibc_C99_Inline_3Patch[] = {
2132 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2133 "^# ifdef __cplusplus$",
2136 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2138 * Description of Glibc_C99_Inline_4 fix
2140 tSCC zGlibc_C99_Inline_4Name[] =
2141 "glibc_c99_inline_4";
2144 * File name selection pattern
2146 tSCC zGlibc_C99_Inline_4List[] =
2147 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2149 * Machine/OS name selection pattern
2151 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2154 * content selection pattern - do fix if pattern found
2156 tSCC zGlibc_C99_Inline_4Select0[] =
2157 "(^| )extern __inline";
2160 * content bypass pattern - skip fix if pattern found
2162 tSCC zGlibc_C99_Inline_4Bypass0[] =
2163 "__extern_inline|__gnu_inline__";
2165 #define GLIBC_C99_INLINE_4_TEST_CT 2
2166 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2167 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2168 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2171 * Fix Command Arguments for Glibc_C99_Inline_4
2173 static const char* apzGlibc_C99_Inline_4Patch[] = {
2175 "%0 __attribute__ ((__gnu_inline__))",
2178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2180 * Description of Glibc_Mutex_Init fix
2182 tSCC zGlibc_Mutex_InitName[] =
2186 * File name selection pattern
2188 tSCC zGlibc_Mutex_InitList[] =
2191 * Machine/OS name selection pattern
2193 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2196 * content selection pattern - do fix if pattern found
2198 tSCC zGlibc_Mutex_InitSelect0[] =
2199 "\\{ *\\{ *0, *\\} *\\}";
2201 #define GLIBC_MUTEX_INIT_TEST_CT 1
2202 static tTestDesc aGlibc_Mutex_InitTests[] = {
2203 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2206 * Fix Command Arguments for Glibc_Mutex_Init
2208 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2209 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2211 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2213 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2214 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2215 "-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/",
2216 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2217 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2222 * Description of Glibc_Tgmath fix
2224 tSCC zGlibc_TgmathName[] =
2228 * File name selection pattern
2230 tSCC zGlibc_TgmathList[] =
2233 * Machine/OS name selection pattern
2235 #define apzGlibc_TgmathMachs (const char**)NULL
2238 * content selection pattern - do fix if pattern found
2240 tSCC zGlibc_TgmathSelect0[] =
2241 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2244 * content bypass pattern - skip fix if pattern found
2246 tSCC zGlibc_TgmathBypass0[] =
2247 "__floating_type \\\\\n\
2248 .*__builtin_classify_type";
2250 #define GLIBC_TGMATH_TEST_CT 2
2251 static tTestDesc aGlibc_TgmathTests[] = {
2252 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
2253 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2256 * Fix Command Arguments for Glibc_Tgmath
2258 static const char* apzGlibc_TgmathPatch[] = {
2260 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
2263 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2265 * Description of Gnu_Types fix
2267 tSCC zGnu_TypesName[] =
2271 * File name selection pattern
2273 tSCC zGnu_TypesList[] =
2274 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2276 * Machine/OS name selection pattern
2278 tSCC* apzGnu_TypesMachs[] = {
2279 "*-*-solaris2.1[0-9]*",
2280 (const char*)NULL };
2283 * content selection pattern - do fix if pattern found
2285 tSCC zGnu_TypesSelect0[] =
2286 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2289 * content bypass pattern - skip fix if pattern found
2291 tSCC zGnu_TypesBypass0[] =
2292 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2294 #define GNU_TYPES_TEST_CT 2
2295 static tTestDesc aGnu_TypesTests[] = {
2296 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2297 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2300 * Fix Command Arguments for Gnu_Types
2302 static const char* apzGnu_TypesPatch[] = {
2306 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2308 * Description of Hp_Inline fix
2310 tSCC zHp_InlineName[] =
2314 * File name selection pattern
2316 tSCC zHp_InlineList[] =
2317 "sys/spinlock.h\0machine/machparam.h\0";
2319 * Machine/OS name selection pattern
2321 #define apzHp_InlineMachs (const char**)NULL
2324 * content selection pattern - do fix if pattern found
2326 tSCC zHp_InlineSelect0[] =
2327 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2329 #define HP_INLINE_TEST_CT 1
2330 static tTestDesc aHp_InlineTests[] = {
2331 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2334 * Fix Command Arguments for Hp_Inline
2336 static const char* apzHp_InlinePatch[] = {
2339 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2342 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2344 * Description of Hp_Sysfile fix
2346 tSCC zHp_SysfileName[] =
2350 * File name selection pattern
2352 tSCC zHp_SysfileList[] =
2355 * Machine/OS name selection pattern
2357 #define apzHp_SysfileMachs (const char**)NULL
2360 * content selection pattern - do fix if pattern found
2362 tSCC zHp_SysfileSelect0[] =
2365 #define HP_SYSFILE_TEST_CT 1
2366 static tTestDesc aHp_SysfileTests[] = {
2367 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2370 * Fix Command Arguments for Hp_Sysfile
2372 static const char* apzHp_SysfilePatch[] = {
2374 "(struct file *, ...)",
2378 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2380 * Description of Hppa_Hpux_Fp_Macros fix
2382 tSCC zHppa_Hpux_Fp_MacrosName[] =
2383 "hppa_hpux_fp_macros";
2386 * File name selection pattern
2388 tSCC zHppa_Hpux_Fp_MacrosList[] =
2391 * Machine/OS name selection pattern
2393 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2395 (const char*)NULL };
2398 * content selection pattern - do fix if pattern found
2400 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2401 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2402 #[ \t]*define[ \t]*FP_ZERO.*\n\
2403 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2404 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2405 #[ \t]*define[ \t]*FP_NAN.*\n";
2407 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2408 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2409 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2412 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2414 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2416 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2417 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
2418 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2420 #ifdef _INCLUDE_HPUX_SOURCE\n",
2423 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2425 * Description of Hpux10_Cpp_Pow_Inline fix
2427 tSCC zHpux10_Cpp_Pow_InlineName[] =
2428 "hpux10_cpp_pow_inline";
2431 * File name selection pattern
2433 tSCC zHpux10_Cpp_Pow_InlineList[] =
2434 "fixinc-test-limits.h\0math.h\0";
2436 * Machine/OS name selection pattern
2438 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2441 * content selection pattern - do fix if pattern found
2443 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2444 "^# +ifdef +__cplusplus\n\
2446 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2447 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2449 +extern +\"C\" +\\{\n\
2453 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2454 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2455 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2458 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2460 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2465 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2467 * Description of Hpux11_Cpp_Pow_Inline fix
2469 tSCC zHpux11_Cpp_Pow_InlineName[] =
2470 "hpux11_cpp_pow_inline";
2473 * File name selection pattern
2475 tSCC zHpux11_Cpp_Pow_InlineList[] =
2478 * Machine/OS name selection pattern
2480 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2483 * content selection pattern - do fix if pattern found
2485 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2486 " +inline double pow\\(double d,int expon\\) \\{\n\
2487 +return pow\\(d, \\(double\\)expon\\);\n\
2490 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2491 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2492 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2495 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2497 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2504 * Description of Hpux10_Ctype_Declarations1 fix
2506 tSCC zHpux10_Ctype_Declarations1Name[] =
2507 "hpux10_ctype_declarations1";
2510 * File name selection pattern
2512 tSCC zHpux10_Ctype_Declarations1List[] =
2515 * Machine/OS name selection pattern
2517 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2520 * content selection pattern - do fix if pattern found
2522 tSCC zHpux10_Ctype_Declarations1Select0[] =
2523 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2526 * content bypass pattern - skip fix if pattern found
2528 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2529 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2531 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2532 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2533 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2534 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2537 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2539 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2541 "#ifdef _PROTOTYPES\n\
2542 extern int __tolower(int);\n\
2543 extern int __toupper(int);\n\
2544 #else /* NOT _PROTOTYPES */\n\
2545 extern int __tolower();\n\
2546 extern int __toupper();\n\
2547 #endif /* _PROTOTYPES */\n\n\
2551 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2553 * Description of Hpux10_Ctype_Declarations2 fix
2555 tSCC zHpux10_Ctype_Declarations2Name[] =
2556 "hpux10_ctype_declarations2";
2559 * File name selection pattern
2561 tSCC zHpux10_Ctype_Declarations2List[] =
2564 * Machine/OS name selection pattern
2566 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2569 * content selection pattern - do fix if pattern found
2571 tSCC zHpux10_Ctype_Declarations2Select0[] =
2572 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2575 * content bypass pattern - skip fix if pattern found
2577 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2578 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2580 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2581 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2582 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2583 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2586 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2588 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2591 #ifdef _PROTOTYPES\n\
2592 extern int _isalnum(int);\n\
2593 extern int _isalpha(int);\n\
2594 extern int _iscntrl(int);\n\
2595 extern int _isdigit(int);\n\
2596 extern int _isgraph(int);\n\
2597 extern int _islower(int);\n\
2598 extern int _isprint(int);\n\
2599 extern int _ispunct(int);\n\
2600 extern int _isspace(int);\n\
2601 extern int _isupper(int);\n\
2602 extern int _isxdigit(int);\n\
2603 # else /* not _PROTOTYPES */\n\
2604 extern int _isalnum();\n\
2605 extern int _isalpha();\n\
2606 extern int _iscntrl();\n\
2607 extern int _isdigit();\n\
2608 extern int _isgraph();\n\
2609 extern int _islower();\n\
2610 extern int _isprint();\n\
2611 extern int _ispunct();\n\
2612 extern int _isspace();\n\
2613 extern int _isupper();\n\
2614 extern int _isxdigit();\n\
2615 #endif /* _PROTOTYPES */\n",
2618 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2620 * Description of Hpux10_Stdio_Declarations fix
2622 tSCC zHpux10_Stdio_DeclarationsName[] =
2623 "hpux10_stdio_declarations";
2626 * File name selection pattern
2628 tSCC zHpux10_Stdio_DeclarationsList[] =
2631 * Machine/OS name selection pattern
2633 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2636 * content selection pattern - do fix if pattern found
2638 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2639 "^#[ \t]*define _iob[ \t]*__iob";
2642 * content bypass pattern - skip fix if pattern found
2644 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2645 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2647 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2648 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2649 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2650 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2653 * Fix Command Arguments for Hpux10_Stdio_Declarations
2655 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2658 # if defined(__STDC__) || defined(__cplusplus)\n\
2659 extern int snprintf(char *, size_t, const char *, ...);\n\
2660 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2661 # else /* not __STDC__) || __cplusplus */\n\
2662 extern int snprintf();\n\
2663 extern int vsnprintf();\n\
2664 # endif /* __STDC__) || __cplusplus */\n",
2667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2669 * Description of Hpux11_Abs fix
2671 tSCC zHpux11_AbsName[] =
2675 * File name selection pattern
2677 tSCC zHpux11_AbsList[] =
2680 * Machine/OS name selection pattern
2682 tSCC* apzHpux11_AbsMachs[] = {
2684 (const char*)NULL };
2687 * content selection pattern - do fix if pattern found
2689 tSCC zHpux11_AbsSelect0[] =
2690 "ifndef _MATH_INCLUDED";
2692 #define HPUX11_ABS_TEST_CT 1
2693 static tTestDesc aHpux11_AbsTests[] = {
2694 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2697 * Fix Command Arguments for Hpux11_Abs
2699 static const char* apzHpux11_AbsPatch[] = {
2701 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2704 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2706 * Description of Hpux11_Fabsf fix
2708 tSCC zHpux11_FabsfName[] =
2712 * File name selection pattern
2714 tSCC zHpux11_FabsfList[] =
2717 * Machine/OS name selection pattern
2719 #define apzHpux11_FabsfMachs (const char**)NULL
2722 * content selection pattern - do fix if pattern found
2724 tSCC zHpux11_FabsfSelect0[] =
2725 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2728 * content bypass pattern - skip fix if pattern found
2730 tSCC zHpux11_FabsfBypass0[] =
2733 #define HPUX11_FABSF_TEST_CT 2
2734 static tTestDesc aHpux11_FabsfTests[] = {
2735 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2736 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2739 * Fix Command Arguments for Hpux11_Fabsf
2741 static const char* apzHpux11_FabsfPatch[] = {
2743 "#ifndef __cplusplus\n\
2748 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2750 * Description of Hpux11_Pthread_Const fix
2752 tSCC zHpux11_Pthread_ConstName[] =
2753 "hpux11_pthread_const";
2756 * File name selection pattern
2758 tSCC zHpux11_Pthread_ConstList[] =
2761 * Machine/OS name selection pattern
2763 tSCC* apzHpux11_Pthread_ConstMachs[] = {
2764 "*-hp-hpux11.[0-3]*",
2765 (const char*)NULL };
2768 * content selection pattern - do fix if pattern found
2770 tSCC zHpux11_Pthread_ConstSelect0[] =
2771 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
2773 #define HPUX11_PTHREAD_CONST_TEST_CT 1
2774 static tTestDesc aHpux11_Pthread_ConstTests[] = {
2775 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
2778 * Fix Command Arguments for Hpux11_Pthread_Const
2780 static const char* apzHpux11_Pthread_ConstPatch[] = {
2782 "#define __POINTER_SET\t\t((void *) 1L)",
2785 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2787 * Description of Hpux11_Size_T fix
2789 tSCC zHpux11_Size_TName[] =
2793 * File name selection pattern
2795 #define zHpux11_Size_TList (char*)NULL
2797 * Machine/OS name selection pattern
2799 tSCC* apzHpux11_Size_TMachs[] = {
2801 (const char*)NULL };
2804 * content selection pattern - do fix if pattern found
2806 tSCC zHpux11_Size_TSelect0[] =
2809 #define HPUX11_SIZE_T_TEST_CT 1
2810 static tTestDesc aHpux11_Size_TTests[] = {
2811 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2814 * Fix Command Arguments for Hpux11_Size_T
2816 static const char* apzHpux11_Size_TPatch[] = {
2821 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2823 * Description of Hpux11_Snprintf fix
2825 tSCC zHpux11_SnprintfName[] =
2829 * File name selection pattern
2831 tSCC zHpux11_SnprintfList[] =
2834 * Machine/OS name selection pattern
2836 #define apzHpux11_SnprintfMachs (const char**)NULL
2839 * content selection pattern - do fix if pattern found
2841 tSCC zHpux11_SnprintfSelect0[] =
2842 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2844 #define HPUX11_SNPRINTF_TEST_CT 1
2845 static tTestDesc aHpux11_SnprintfTests[] = {
2846 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2849 * Fix Command Arguments for Hpux11_Snprintf
2851 static const char* apzHpux11_SnprintfPatch[] = {
2856 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2858 * Description of Hpux11_Uint32_C fix
2860 tSCC zHpux11_Uint32_CName[] =
2864 * File name selection pattern
2866 tSCC zHpux11_Uint32_CList[] =
2869 * Machine/OS name selection pattern
2871 #define apzHpux11_Uint32_CMachs (const char**)NULL
2874 * content selection pattern - do fix if pattern found
2876 tSCC zHpux11_Uint32_CSelect0[] =
2877 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2879 #define HPUX11_UINT32_C_TEST_CT 1
2880 static tTestDesc aHpux11_Uint32_CTests[] = {
2881 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2884 * Fix Command Arguments for Hpux11_Uint32_C
2886 static const char* apzHpux11_Uint32_CPatch[] = {
2888 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2893 * Description of Hpux11_Vsnprintf fix
2895 tSCC zHpux11_VsnprintfName[] =
2899 * File name selection pattern
2901 tSCC zHpux11_VsnprintfList[] =
2904 * Machine/OS name selection pattern
2906 #define apzHpux11_VsnprintfMachs (const char**)NULL
2909 * content selection pattern - do fix if pattern found
2911 tSCC zHpux11_VsnprintfSelect0[] =
2912 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2914 #define HPUX11_VSNPRINTF_TEST_CT 1
2915 static tTestDesc aHpux11_VsnprintfTests[] = {
2916 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2919 * Fix Command Arguments for Hpux11_Vsnprintf
2921 static const char* apzHpux11_VsnprintfPatch[] = {
2926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2928 * Description of Hpux8_Bogus_Inlines fix
2930 tSCC zHpux8_Bogus_InlinesName[] =
2931 "hpux8_bogus_inlines";
2934 * File name selection pattern
2936 tSCC zHpux8_Bogus_InlinesList[] =
2939 * Machine/OS name selection pattern
2941 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2944 * content selection pattern - do fix if pattern found
2946 tSCC zHpux8_Bogus_InlinesSelect0[] =
2950 * content bypass pattern - skip fix if pattern found
2952 tSCC zHpux8_Bogus_InlinesBypass0[] =
2955 #define HPUX8_BOGUS_INLINES_TEST_CT 2
2956 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2957 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
2958 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2961 * Fix Command Arguments for Hpux8_Bogus_Inlines
2963 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
2964 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2965 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2966 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2967 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2970 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2972 * Description of Hpux_Ctype_Macros fix
2974 tSCC zHpux_Ctype_MacrosName[] =
2975 "hpux_ctype_macros";
2978 * File name selection pattern
2980 tSCC zHpux_Ctype_MacrosList[] =
2983 * Machine/OS name selection pattern
2985 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2988 * content selection pattern - do fix if pattern found
2990 tSCC zHpux_Ctype_MacrosSelect0[] =
2991 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2993 #define HPUX_CTYPE_MACROS_TEST_CT 1
2994 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2995 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
2998 * Fix Command Arguments for Hpux_Ctype_Macros
3000 static const char* apzHpux_Ctype_MacrosPatch[] = {
3005 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3007 * Description of Hpux_Htonl fix
3009 tSCC zHpux_HtonlName[] =
3013 * File name selection pattern
3015 tSCC zHpux_HtonlList[] =
3018 * Machine/OS name selection pattern
3020 #define apzHpux_HtonlMachs (const char**)NULL
3023 * content selection pattern - do fix if pattern found
3025 tSCC zHpux_HtonlSelect0[] =
3026 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3028 \\* Macros for number representation conversion\\.\n\
3032 #define HPUX_HTONL_TEST_CT 1
3033 static tTestDesc aHpux_HtonlTests[] = {
3034 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3037 * Fix Command Arguments for Hpux_Htonl
3039 static const char* apzHpux_HtonlPatch[] = {
3045 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3047 * Description of Hpux_Long_Double fix
3049 tSCC zHpux_Long_DoubleName[] =
3053 * File name selection pattern
3055 tSCC zHpux_Long_DoubleList[] =
3058 * Machine/OS name selection pattern
3060 #define apzHpux_Long_DoubleMachs (const char**)NULL
3063 * content selection pattern - do fix if pattern found
3065 tSCC zHpux_Long_DoubleSelect0[] =
3066 "extern[ \t]long_double[ \t]strtold";
3069 * content bypass pattern - skip fix if pattern found
3071 tSCC zHpux_Long_DoubleBypass0[] =
3074 #define HPUX_LONG_DOUBLE_TEST_CT 2
3075 static tTestDesc aHpux_Long_DoubleTests[] = {
3076 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3077 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3080 * Fix Command Arguments for Hpux_Long_Double
3082 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3083 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3084 "-e", "s/long_double/long double/g",
3087 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3089 * Description of Hpux_Systime fix
3091 tSCC zHpux_SystimeName[] =
3095 * File name selection pattern
3097 tSCC zHpux_SystimeList[] =
3100 * Machine/OS name selection pattern
3102 #define apzHpux_SystimeMachs (const char**)NULL
3105 * content selection pattern - do fix if pattern found
3107 tSCC zHpux_SystimeSelect0[] =
3108 "^extern struct sigevent;";
3110 #define HPUX_SYSTIME_TEST_CT 1
3111 static tTestDesc aHpux_SystimeTests[] = {
3112 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3115 * Fix Command Arguments for Hpux_Systime
3117 static const char* apzHpux_SystimePatch[] = {
3122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3124 * Description of Hpux_Spu_Info fix
3126 tSCC zHpux_Spu_InfoName[] =
3130 * File name selection pattern
3132 tSCC zHpux_Spu_InfoList[] =
3133 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3135 * Machine/OS name selection pattern
3137 tSCC* apzHpux_Spu_InfoMachs[] = {
3139 (const char*)NULL };
3142 * content selection pattern - do fix if pattern found
3144 tSCC zHpux_Spu_InfoSelect0[] =
3145 "^.*extern.*spu_info.*";
3147 #define HPUX_SPU_INFO_TEST_CT 1
3148 static tTestDesc aHpux_Spu_InfoTests[] = {
3149 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3152 * Fix Command Arguments for Hpux_Spu_Info
3154 static const char* apzHpux_Spu_InfoPatch[] = {
3161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3163 * Description of Hpux11_Extern_Sendfile fix
3165 tSCC zHpux11_Extern_SendfileName[] =
3166 "hpux11_extern_sendfile";
3169 * File name selection pattern
3171 tSCC zHpux11_Extern_SendfileList[] =
3174 * Machine/OS name selection pattern
3176 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3177 "*-hp-hpux11.[12]*",
3178 (const char*)NULL };
3181 * content selection pattern - do fix if pattern found
3183 tSCC zHpux11_Extern_SendfileSelect0[] =
3184 "^[ \t]*extern sbsize_t sendfile.*\n\
3187 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3188 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3189 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3192 * Fix Command Arguments for Hpux11_Extern_Sendfile
3194 static const char* apzHpux11_Extern_SendfilePatch[] = {
3196 "#ifndef _APP32_64BIT_OFF_T\n\
3200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3202 * Description of Hpux11_Extern_Sendpath fix
3204 tSCC zHpux11_Extern_SendpathName[] =
3205 "hpux11_extern_sendpath";
3208 * File name selection pattern
3210 tSCC zHpux11_Extern_SendpathList[] =
3213 * Machine/OS name selection pattern
3215 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3216 "*-hp-hpux11.[12]*",
3217 (const char*)NULL };
3220 * content selection pattern - do fix if pattern found
3222 tSCC zHpux11_Extern_SendpathSelect0[] =
3223 "^[ \t]*extern sbsize_t sendpath.*\n\
3226 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3227 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3228 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3231 * Fix Command Arguments for Hpux11_Extern_Sendpath
3233 static const char* apzHpux11_Extern_SendpathPatch[] = {
3235 "#ifndef _APP32_64BIT_OFF_T\n\
3239 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3241 * Description of Hpux_Extern_Errno fix
3243 tSCC zHpux_Extern_ErrnoName[] =
3244 "hpux_extern_errno";
3247 * File name selection pattern
3249 tSCC zHpux_Extern_ErrnoList[] =
3252 * Machine/OS name selection pattern
3254 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3256 "*-hp-hpux11.[0-2]*",
3257 (const char*)NULL };
3260 * content selection pattern - do fix if pattern found
3262 tSCC zHpux_Extern_ErrnoSelect0[] =
3263 "^[ \t]*extern int errno;$";
3265 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3266 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3267 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3270 * Fix Command Arguments for Hpux_Extern_Errno
3272 static const char* apzHpux_Extern_ErrnoPatch[] = {
3274 "#ifdef __cplusplus\n\
3278 #ifdef __cplusplus\n\
3283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3285 * Description of Hpux_Pthread_Initializers fix
3287 tSCC zHpux_Pthread_InitializersName[] =
3288 "hpux_pthread_initializers";
3291 * File name selection pattern
3293 tSCC zHpux_Pthread_InitializersList[] =
3296 * Machine/OS name selection pattern
3298 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3299 "*-hp-hpux11.[0-3]*",
3300 (const char*)NULL };
3301 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3302 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3305 * Fix Command Arguments for Hpux_Pthread_Initializers
3307 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3308 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3309 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3310 "-e", "/^[ \t]*0$/d",
3311 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3312 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3313 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3314 "-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\\\\@",
3315 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3316 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3317 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3318 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3319 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3320 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3323 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3325 * Description of Huge_Val_Hex fix
3327 tSCC zHuge_Val_HexName[] =
3331 * File name selection pattern
3333 tSCC zHuge_Val_HexList[] =
3334 "bits/huge_val.h\0";
3336 * Machine/OS name selection pattern
3338 #define apzHuge_Val_HexMachs (const char**)NULL
3341 * content selection pattern - do fix if pattern found
3343 tSCC zHuge_Val_HexSelect0[] =
3344 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3347 * content bypass pattern - skip fix if pattern found
3349 tSCC zHuge_Val_HexBypass0[] =
3350 "__builtin_huge_val";
3352 #define HUGE_VAL_HEX_TEST_CT 2
3353 static tTestDesc aHuge_Val_HexTests[] = {
3354 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3355 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3358 * Fix Command Arguments for Huge_Val_Hex
3360 static const char* apzHuge_Val_HexPatch[] = {
3362 "#define HUGE_VAL (__builtin_huge_val())\n",
3365 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3367 * Description of Huge_Valf_Hex fix
3369 tSCC zHuge_Valf_HexName[] =
3373 * File name selection pattern
3375 tSCC zHuge_Valf_HexList[] =
3376 "bits/huge_val.h\0";
3378 * Machine/OS name selection pattern
3380 #define apzHuge_Valf_HexMachs (const char**)NULL
3383 * content selection pattern - do fix if pattern found
3385 tSCC zHuge_Valf_HexSelect0[] =
3386 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3389 * content bypass pattern - skip fix if pattern found
3391 tSCC zHuge_Valf_HexBypass0[] =
3392 "__builtin_huge_valf";
3394 #define HUGE_VALF_HEX_TEST_CT 2
3395 static tTestDesc aHuge_Valf_HexTests[] = {
3396 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3397 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3400 * Fix Command Arguments for Huge_Valf_Hex
3402 static const char* apzHuge_Valf_HexPatch[] = {
3404 "#define HUGE_VALF (__builtin_huge_valf())\n",
3407 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3409 * Description of Huge_Vall_Hex fix
3411 tSCC zHuge_Vall_HexName[] =
3415 * File name selection pattern
3417 tSCC zHuge_Vall_HexList[] =
3418 "bits/huge_val.h\0";
3420 * Machine/OS name selection pattern
3422 #define apzHuge_Vall_HexMachs (const char**)NULL
3425 * content selection pattern - do fix if pattern found
3427 tSCC zHuge_Vall_HexSelect0[] =
3428 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3431 * content bypass pattern - skip fix if pattern found
3433 tSCC zHuge_Vall_HexBypass0[] =
3434 "__builtin_huge_vall";
3436 #define HUGE_VALL_HEX_TEST_CT 2
3437 static tTestDesc aHuge_Vall_HexTests[] = {
3438 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3439 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3442 * Fix Command Arguments for Huge_Vall_Hex
3444 static const char* apzHuge_Vall_HexPatch[] = {
3446 "#define HUGE_VALL (__builtin_huge_vall())\n",
3449 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3451 * Description of Int_Abort_Free_And_Exit fix
3453 tSCC zInt_Abort_Free_And_ExitName[] =
3454 "int_abort_free_and_exit";
3457 * File name selection pattern
3459 tSCC zInt_Abort_Free_And_ExitList[] =
3462 * Machine/OS name selection pattern
3464 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3467 * content selection pattern - do fix if pattern found
3469 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3470 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3473 * content bypass pattern - skip fix if pattern found
3475 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3476 "_CLASSIC_ANSI_TYPES";
3478 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3479 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3480 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3481 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3484 * Fix Command Arguments for Int_Abort_Free_And_Exit
3486 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3491 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3493 * Description of Io_Quotes_Def fix
3495 tSCC zIo_Quotes_DefName[] =
3499 * File name selection pattern
3501 #define zIo_Quotes_DefList (char*)NULL
3503 * Machine/OS name selection pattern
3505 #define apzIo_Quotes_DefMachs (const char**)NULL
3508 * content selection pattern - do fix if pattern found
3510 tSCC zIo_Quotes_DefSelect0[] =
3511 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3513 #define IO_QUOTES_DEF_TEST_CT 1
3514 static tTestDesc aIo_Quotes_DefTests[] = {
3515 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3518 * Fix Command Arguments for Io_Quotes_Def
3520 static const char* apzIo_Quotes_DefPatch[] = {
3525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3527 * Description of Io_Quotes_Use fix
3529 tSCC zIo_Quotes_UseName[] =
3533 * File name selection pattern
3535 #define zIo_Quotes_UseList (char*)NULL
3537 * Machine/OS name selection pattern
3539 #define apzIo_Quotes_UseMachs (const char**)NULL
3542 * content selection pattern - do fix if pattern found
3544 tSCC zIo_Quotes_UseSelect0[] =
3545 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3547 #define IO_QUOTES_USE_TEST_CT 1
3548 static tTestDesc aIo_Quotes_UseTests[] = {
3549 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3552 * Fix Command Arguments for Io_Quotes_Use
3554 static const char* apzIo_Quotes_UsePatch[] = {
3559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3561 * Description of Ip_Missing_Semi fix
3563 tSCC zIp_Missing_SemiName[] =
3567 * File name selection pattern
3569 tSCC zIp_Missing_SemiList[] =
3572 * Machine/OS name selection pattern
3574 #define apzIp_Missing_SemiMachs (const char**)NULL
3577 * content selection pattern - do fix if pattern found
3579 tSCC zIp_Missing_SemiSelect0[] =
3582 #define IP_MISSING_SEMI_TEST_CT 1
3583 static tTestDesc aIp_Missing_SemiTests[] = {
3584 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3587 * Fix Command Arguments for Ip_Missing_Semi
3589 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
3590 "-e", "/^struct/,/^};/s/}$/};/",
3593 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3595 * Description of Irix___Restrict fix
3597 tSCC zIrix___RestrictName[] =
3601 * File name selection pattern
3603 tSCC zIrix___RestrictList[] =
3604 "internal/sgimacros.h\0";
3606 * Machine/OS name selection pattern
3608 tSCC* apzIrix___RestrictMachs[] = {
3610 (const char*)NULL };
3613 * content selection pattern - do fix if pattern found
3615 tSCC zIrix___RestrictSelect0[] =
3617 )(#[ \t]*define __restrict restrict)";
3619 #define IRIX___RESTRICT_TEST_CT 1
3620 static tTestDesc aIrix___RestrictTests[] = {
3621 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3624 * Fix Command Arguments for Irix___Restrict
3626 static const char* apzIrix___RestrictPatch[] = {
3628 "%1# ifndef __cplusplus\n\
3633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3635 * Description of Irix___Generic1 fix
3637 tSCC zIrix___Generic1Name[] =
3641 * File name selection pattern
3643 tSCC zIrix___Generic1List[] =
3644 "internal/math_core.h\0";
3646 * Machine/OS name selection pattern
3648 tSCC* apzIrix___Generic1Machs[] = {
3650 (const char*)NULL };
3653 * content selection pattern - do fix if pattern found
3655 tSCC zIrix___Generic1Select0[] =
3656 "#define ([a-z]+)\\(x\\) *__generic.*";
3658 #define IRIX___GENERIC1_TEST_CT 1
3659 static tTestDesc aIrix___Generic1Tests[] = {
3660 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3663 * Fix Command Arguments for Irix___Generic1
3665 static const char* apzIrix___Generic1Patch[] = {
3667 "extern int %1(double);\n\
3668 extern int %1f(float);\n\
3669 extern int %1l(long double);\n\
3670 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3671 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3677 * Description of Irix___Generic2 fix
3679 tSCC zIrix___Generic2Name[] =
3683 * File name selection pattern
3685 tSCC zIrix___Generic2List[] =
3686 "internal/math_core.h\0";
3688 * Machine/OS name selection pattern
3690 tSCC* apzIrix___Generic2Machs[] = {
3692 (const char*)NULL };
3695 * content selection pattern - do fix if pattern found
3697 tSCC zIrix___Generic2Select0[] =
3698 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3700 #define IRIX___GENERIC2_TEST_CT 1
3701 static tTestDesc aIrix___Generic2Tests[] = {
3702 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3705 * Fix Command Arguments for Irix___Generic2
3707 static const char* apzIrix___Generic2Patch[] = {
3709 "#define %1(x,y) \\\n\
3710 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3711 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3715 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3717 * Description of Irix_Asm_Apostrophe fix
3719 tSCC zIrix_Asm_ApostropheName[] =
3720 "irix_asm_apostrophe";
3723 * File name selection pattern
3725 tSCC zIrix_Asm_ApostropheList[] =
3728 * Machine/OS name selection pattern
3730 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3733 * content selection pattern - do fix if pattern found
3735 tSCC zIrix_Asm_ApostropheSelect0[] =
3736 "^[ \t]*#.*[Ww]e're";
3738 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
3739 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3740 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3743 * Fix Command Arguments for Irix_Asm_Apostrophe
3745 static const char* apzIrix_Asm_ApostrophePatch[] = {
3748 "^([ \t]*#.*[Ww]e)'re",
3751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3753 * Description of Irix_Limits_Const fix
3755 tSCC zIrix_Limits_ConstName[] =
3756 "irix_limits_const";
3759 * File name selection pattern
3761 tSCC zIrix_Limits_ConstList[] =
3762 "fixinc-test-limits.h\0limits.h\0";
3764 * Machine/OS name selection pattern
3766 #define apzIrix_Limits_ConstMachs (const char**)NULL
3769 * content selection pattern - do fix if pattern found
3771 tSCC zIrix_Limits_ConstSelect0[] =
3774 #define IRIX_LIMITS_CONST_TEST_CT 1
3775 static tTestDesc aIrix_Limits_ConstTests[] = {
3776 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3779 * Fix Command Arguments for Irix_Limits_Const
3781 static const char* apzIrix_Limits_ConstPatch[] = {
3786 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3788 * Description of Irix_Socklen_T fix
3790 tSCC zIrix_Socklen_TName[] =
3794 * File name selection pattern
3796 tSCC zIrix_Socklen_TList[] =
3799 * Machine/OS name selection pattern
3801 tSCC* apzIrix_Socklen_TMachs[] = {
3803 (const char*)NULL };
3806 * content selection pattern - do fix if pattern found
3808 tSCC zIrix_Socklen_TSelect0[] =
3809 "(#define _SOCKLEN_T\n\
3810 )(typedef u_int32_t socklen_t;)";
3812 #define IRIX_SOCKLEN_T_TEST_CT 1
3813 static tTestDesc aIrix_Socklen_TTests[] = {
3814 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3817 * Fix Command Arguments for Irix_Socklen_T
3819 static const char* apzIrix_Socklen_TPatch[] = {
3821 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3822 typedef int socklen_t;\n\
3825 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
3828 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3830 * Description of Irix_Stdint_C99 fix
3832 tSCC zIrix_Stdint_C99Name[] =
3836 * File name selection pattern
3838 tSCC zIrix_Stdint_C99List[] =
3841 * Machine/OS name selection pattern
3843 tSCC* apzIrix_Stdint_C99Machs[] = {
3845 (const char*)NULL };
3848 * content selection pattern - do fix if pattern found
3850 tSCC zIrix_Stdint_C99Select0[] =
3852 )(#error This header file is to be used only for c99 mode compilations)";
3854 #define IRIX_STDINT_C99_TEST_CT 1
3855 static tTestDesc aIrix_Stdint_C99Tests[] = {
3856 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
3859 * Fix Command Arguments for Irix_Stdint_C99
3861 static const char* apzIrix_Stdint_C99Patch[] = {
3867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3869 * Description of Irix_Stdio_Va_List fix
3871 tSCC zIrix_Stdio_Va_ListName[] =
3872 "irix_stdio_va_list";
3875 * File name selection pattern
3877 tSCC zIrix_Stdio_Va_ListList[] =
3878 "stdio.h\0internal/stdio_core.h\0";
3880 * Machine/OS name selection pattern
3882 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
3885 * content selection pattern - do fix if pattern found
3887 tSCC zIrix_Stdio_Va_ListSelect0[] =
3888 "/\\* va_list \\*/ char \\*";
3890 #define IRIX_STDIO_VA_LIST_TEST_CT 1
3891 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
3892 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
3895 * Fix Command Arguments for Irix_Stdio_Va_List
3897 static const char* apzIrix_Stdio_Va_ListPatch[] = {
3902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3904 * Description of Irix_Wcsftime fix
3906 tSCC zIrix_WcsftimeName[] =
3910 * File name selection pattern
3912 tSCC zIrix_WcsftimeList[] =
3913 "internal/wchar_core.h\0";
3915 * Machine/OS name selection pattern
3917 tSCC* apzIrix_WcsftimeMachs[] = {
3919 (const char*)NULL };
3922 * content selection pattern - do fix if pattern found
3924 tSCC zIrix_WcsftimeSelect0[] =
3926 (extern size_t[ \t]+wcsftime.*const char *.*)";
3928 #define IRIX_WCSFTIME_TEST_CT 1
3929 static tTestDesc aIrix_WcsftimeTests[] = {
3930 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
3933 * Fix Command Arguments for Irix_Wcsftime
3935 static const char* apzIrix_WcsftimePatch[] = {
3937 "#if _NO_XOPEN5 && !defined(__c99)\n\
3941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3943 * Description of Isc_Fmod fix
3945 tSCC zIsc_FmodName[] =
3949 * File name selection pattern
3951 tSCC zIsc_FmodList[] =
3954 * Machine/OS name selection pattern
3956 #define apzIsc_FmodMachs (const char**)NULL
3959 * content selection pattern - do fix if pattern found
3961 tSCC zIsc_FmodSelect0[] =
3964 #define ISC_FMOD_TEST_CT 1
3965 static tTestDesc aIsc_FmodTests[] = {
3966 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
3969 * Fix Command Arguments for Isc_Fmod
3971 static const char* apzIsc_FmodPatch[] = {
3973 "fmod(double, double)",
3976 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3978 * Description of Isc_Omits_With_Stdc fix
3980 tSCC zIsc_Omits_With_StdcName[] =
3981 "isc_omits_with_stdc";
3984 * File name selection pattern
3986 tSCC zIsc_Omits_With_StdcList[] =
3987 "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
3989 * Machine/OS name selection pattern
3991 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
3994 * content selection pattern - do fix if pattern found
3996 tSCC zIsc_Omits_With_StdcSelect0[] =
3997 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
3999 #define ISC_OMITS_WITH_STDC_TEST_CT 1
4000 static tTestDesc aIsc_Omits_With_StdcTests[] = {
4001 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4004 * Fix Command Arguments for Isc_Omits_With_Stdc
4006 static const char* apzIsc_Omits_With_StdcPatch[] = {
4008 "!defined(_POSIX_SOURCE)",
4011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4013 * Description of Kandr_Concat fix
4015 tSCC zKandr_ConcatName[] =
4019 * File name selection pattern
4021 tSCC zKandr_ConcatList[] =
4022 "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";
4024 * Machine/OS name selection pattern
4026 #define apzKandr_ConcatMachs (const char**)NULL
4029 * content selection pattern - do fix if pattern found
4031 tSCC zKandr_ConcatSelect0[] =
4034 #define KANDR_CONCAT_TEST_CT 1
4035 static tTestDesc aKandr_ConcatTests[] = {
4036 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4039 * Fix Command Arguments for Kandr_Concat
4041 static const char* apzKandr_ConcatPatch[] = {
4046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4048 * Description of Linux_Ia64_Ucontext fix
4050 tSCC zLinux_Ia64_UcontextName[] =
4051 "linux_ia64_ucontext";
4054 * File name selection pattern
4056 tSCC zLinux_Ia64_UcontextList[] =
4059 * Machine/OS name selection pattern
4061 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4063 (const char*)NULL };
4066 * content selection pattern - do fix if pattern found
4068 tSCC zLinux_Ia64_UcontextSelect0[] =
4069 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4071 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4072 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4073 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4076 * Fix Command Arguments for Linux_Ia64_Ucontext
4078 static const char* apzLinux_Ia64_UcontextPatch[] = {
4080 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4085 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4087 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4088 "lynxos_no_warning_in_sys_time_h";
4091 * File name selection pattern
4093 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4096 * Machine/OS name selection pattern
4098 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4101 * content selection pattern - do fix if pattern found
4103 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4104 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4106 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4107 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4108 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4111 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4113 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4118 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4120 * Description of Lynxos_Missing_Putenv fix
4122 tSCC zLynxos_Missing_PutenvName[] =
4123 "lynxos_missing_putenv";
4126 * File name selection pattern
4128 tSCC zLynxos_Missing_PutenvList[] =
4131 * Machine/OS name selection pattern
4133 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4135 (const char*)NULL };
4138 * content selection pattern - do fix if pattern found
4140 tSCC zLynxos_Missing_PutenvSelect0[] =
4141 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4144 * content bypass pattern - skip fix if pattern found
4146 tSCC zLynxos_Missing_PutenvBypass0[] =
4149 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4150 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4151 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4152 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4155 * Fix Command Arguments for Lynxos_Missing_Putenv
4157 static const char* apzLynxos_Missing_PutenvPatch[] = {
4160 extern int putenv\t\t\t\t_AP((char *));",
4161 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4166 * Description of Machine_Ansi_H_Va_List fix
4168 tSCC zMachine_Ansi_H_Va_ListName[] =
4169 "machine_ansi_h_va_list";
4172 * File name selection pattern
4174 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4176 * Machine/OS name selection pattern
4178 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4181 * content selection pattern - do fix if pattern found
4183 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4184 "define[ \t]+_BSD_VA_LIST_[ \t]";
4187 * content bypass pattern - skip fix if pattern found
4189 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4190 "__builtin_va_list";
4192 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4193 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4194 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4195 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4198 * Fix Command Arguments for Machine_Ansi_H_Va_List
4200 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4202 "%1__builtin_va_list",
4203 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4208 * Description of Machine_Name fix
4210 tSCC zMachine_NameName[] =
4214 * File name selection pattern
4216 #define zMachine_NameList (char*)NULL
4218 * Machine/OS name selection pattern
4220 #define apzMachine_NameMachs (const char**)NULL
4223 * perform the C function call test
4225 tSCC zMachine_NameFTst0[] = "machine_name";
4227 #define MACHINE_NAME_TEST_CT 1
4228 static tTestDesc aMachine_NameTests[] = {
4229 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4232 * Fix Command Arguments for Machine_Name
4234 static const char* apzMachine_NamePatch[] = {
4238 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4240 * Description of Math_Exception fix
4242 tSCC zMath_ExceptionName[] =
4246 * File name selection pattern
4248 tSCC zMath_ExceptionList[] =
4251 * Machine/OS name selection pattern
4253 #define apzMath_ExceptionMachs (const char**)NULL
4256 * content selection pattern - do fix if pattern found
4258 tSCC zMath_ExceptionSelect0[] =
4262 * content bypass pattern - skip fix if pattern found
4264 tSCC zMath_ExceptionBypass0[] =
4265 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4267 #define MATH_EXCEPTION_TEST_CT 2
4268 static tTestDesc aMath_ExceptionTests[] = {
4269 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4270 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4273 * Fix Command Arguments for Math_Exception
4275 static const char* apzMath_ExceptionPatch[] = {
4277 "#ifdef __cplusplus\n\
4278 #define exception __math_exception\n\
4280 "#ifdef __cplusplus\n\
4285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4287 * Description of Math_Huge_Val_From_Dbl_Max fix
4289 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4290 "math_huge_val_from_dbl_max";
4293 * File name selection pattern
4295 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4298 * Machine/OS name selection pattern
4300 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4303 * content selection pattern - do fix if pattern found
4305 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4306 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4309 * content bypass pattern - skip fix if pattern found
4311 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4312 "define[ \t]+DBL_MAX";
4314 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4315 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4316 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4317 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4320 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4322 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4323 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4324 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4325 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4330 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4332 * Description of Nested_Auth_Des fix
4334 tSCC zNested_Auth_DesName[] =
4338 * File name selection pattern
4340 tSCC zNested_Auth_DesList[] =
4343 * Machine/OS name selection pattern
4345 #define apzNested_Auth_DesMachs (const char**)NULL
4348 * content selection pattern - do fix if pattern found
4350 tSCC zNested_Auth_DesSelect0[] =
4351 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4353 #define NESTED_AUTH_DES_TEST_CT 1
4354 static tTestDesc aNested_Auth_DesTests[] = {
4355 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4358 * Fix Command Arguments for Nested_Auth_Des
4360 static const char* apzNested_Auth_DesPatch[] = {
4365 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4367 * Description of Nested_Sys_Limits fix
4369 tSCC zNested_Sys_LimitsName[] =
4370 "nested_sys_limits";
4373 * File name selection pattern
4375 tSCC zNested_Sys_LimitsList[] =
4378 * Machine/OS name selection pattern
4380 #define apzNested_Sys_LimitsMachs (const char**)NULL
4383 * content selection pattern - do fix if pattern found
4385 tSCC zNested_Sys_LimitsSelect0[] =
4388 #define NESTED_SYS_LIMITS_TEST_CT 1
4389 static tTestDesc aNested_Sys_LimitsTests[] = {
4390 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4393 * Fix Command Arguments for Nested_Sys_Limits
4395 static const char* apzNested_Sys_LimitsPatch[] = { sed_cmd_z,
4396 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4397 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4402 * Description of Netbsd_C99_Inline_1 fix
4404 tSCC zNetbsd_C99_Inline_1Name[] =
4405 "netbsd_c99_inline_1";
4408 * File name selection pattern
4410 tSCC zNetbsd_C99_Inline_1List[] =
4413 * Machine/OS name selection pattern
4415 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4417 (const char*)NULL };
4420 * content selection pattern - do fix if pattern found
4422 tSCC zNetbsd_C99_Inline_1Select0[] =
4423 "extern __inline int";
4425 #define NETBSD_C99_INLINE_1_TEST_CT 1
4426 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4427 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4430 * Fix Command Arguments for Netbsd_C99_Inline_1
4432 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4435 #ifdef __GNUC_STDC_INLINE__\n\
4436 __attribute__((__gnu_inline__))\n\
4441 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4443 * Description of Netbsd_C99_Inline_2 fix
4445 tSCC zNetbsd_C99_Inline_2Name[] =
4446 "netbsd_c99_inline_2";
4449 * File name selection pattern
4451 tSCC zNetbsd_C99_Inline_2List[] =
4454 * Machine/OS name selection pattern
4456 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4458 (const char*)NULL };
4461 * content selection pattern - do fix if pattern found
4463 tSCC zNetbsd_C99_Inline_2Select0[] =
4464 "#define _SIGINLINE extern __inline";
4466 #define NETBSD_C99_INLINE_2_TEST_CT 1
4467 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4468 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4471 * Fix Command Arguments for Netbsd_C99_Inline_2
4473 static const char* apzNetbsd_C99_Inline_2Patch[] = {
4475 "#ifdef __GNUC_STDC_INLINE__\n\
4476 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4482 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4484 * Description of Netbsd_Extra_Semicolon fix
4486 tSCC zNetbsd_Extra_SemicolonName[] =
4487 "netbsd_extra_semicolon";
4490 * File name selection pattern
4492 tSCC zNetbsd_Extra_SemicolonList[] =
4495 * Machine/OS name selection pattern
4497 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4499 (const char*)NULL };
4502 * content selection pattern - do fix if pattern found
4504 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4505 "#define[ \t]*__END_DECLS[ \t]*};";
4507 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4508 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4509 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4512 * Fix Command Arguments for Netbsd_Extra_Semicolon
4514 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4516 "#define __END_DECLS }",
4519 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4521 * Description of Next_Math_Prefix fix
4523 tSCC zNext_Math_PrefixName[] =
4527 * File name selection pattern
4529 tSCC zNext_Math_PrefixList[] =
4532 * Machine/OS name selection pattern
4534 #define apzNext_Math_PrefixMachs (const char**)NULL
4537 * content selection pattern - do fix if pattern found
4539 tSCC zNext_Math_PrefixSelect0[] =
4540 "^extern[ \t]+double[ \t]+__const__[ \t]";
4542 #define NEXT_MATH_PREFIX_TEST_CT 1
4543 static tTestDesc aNext_Math_PrefixTests[] = {
4544 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4547 * Fix Command Arguments for Next_Math_Prefix
4549 static const char* apzNext_Math_PrefixPatch[] = {
4551 "extern double %1(",
4552 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4557 * Description of Next_Template fix
4559 tSCC zNext_TemplateName[] =
4563 * File name selection pattern
4565 tSCC zNext_TemplateList[] =
4568 * Machine/OS name selection pattern
4570 #define apzNext_TemplateMachs (const char**)NULL
4573 * content selection pattern - do fix if pattern found
4575 tSCC zNext_TemplateSelect0[] =
4578 #define NEXT_TEMPLATE_TEST_CT 1
4579 static tTestDesc aNext_TemplateTests[] = {
4580 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
4583 * Fix Command Arguments for Next_Template
4585 static const char* apzNext_TemplatePatch[] = {
4588 "\\(([^)]*)[ \t]template\\)",
4591 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4593 * Description of Next_Volitile fix
4595 tSCC zNext_VolitileName[] =
4599 * File name selection pattern
4601 tSCC zNext_VolitileList[] =
4604 * Machine/OS name selection pattern
4606 #define apzNext_VolitileMachs (const char**)NULL
4609 * content selection pattern - do fix if pattern found
4611 tSCC zNext_VolitileSelect0[] =
4612 "^extern[ \t]+volatile[ \t]+void[ \t]";
4614 #define NEXT_VOLITILE_TEST_CT 1
4615 static tTestDesc aNext_VolitileTests[] = {
4616 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
4619 * Fix Command Arguments for Next_Volitile
4621 static const char* apzNext_VolitilePatch[] = {
4624 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
4627 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4629 * Description of Next_Wait_Union fix
4631 tSCC zNext_Wait_UnionName[] =
4635 * File name selection pattern
4637 tSCC zNext_Wait_UnionList[] =
4640 * Machine/OS name selection pattern
4642 #define apzNext_Wait_UnionMachs (const char**)NULL
4645 * content selection pattern - do fix if pattern found
4647 tSCC zNext_Wait_UnionSelect0[] =
4648 "wait\\(union wait";
4650 #define NEXT_WAIT_UNION_TEST_CT 1
4651 static tTestDesc aNext_Wait_UnionTests[] = {
4652 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
4655 * Fix Command Arguments for Next_Wait_Union
4657 static const char* apzNext_Wait_UnionPatch[] = {
4662 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4664 * Description of Nodeent_Syntax fix
4666 tSCC zNodeent_SyntaxName[] =
4670 * File name selection pattern
4672 tSCC zNodeent_SyntaxList[] =
4673 "netdnet/dnetdb.h\0";
4675 * Machine/OS name selection pattern
4677 #define apzNodeent_SyntaxMachs (const char**)NULL
4680 * content selection pattern - do fix if pattern found
4682 tSCC zNodeent_SyntaxSelect0[] =
4683 "char[ \t]*\\*na_addr[ \t]*$";
4685 #define NODEENT_SYNTAX_TEST_CT 1
4686 static tTestDesc aNodeent_SyntaxTests[] = {
4687 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
4690 * Fix Command Arguments for Nodeent_Syntax
4692 static const char* apzNodeent_SyntaxPatch[] = {
4697 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4699 * Description of Openbsd_Null_Definition fix
4701 tSCC zOpenbsd_Null_DefinitionName[] =
4702 "openbsd_null_definition";
4705 * File name selection pattern
4707 tSCC zOpenbsd_Null_DefinitionList[] =
4708 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
4710 * Machine/OS name selection pattern
4712 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
4714 (const char*)NULL };
4717 * content selection pattern - do fix if pattern found
4719 tSCC zOpenbsd_Null_DefinitionSelect0[] =
4722 #define OPENBSD_NULL_DEFINITION_TEST_CT 1
4723 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
4724 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
4727 * Fix Command Arguments for Openbsd_Null_Definition
4729 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
4732 #ifdef __cplusplus\n\
4734 #define NULL\t__null\n\
4735 #else\t /* ! __GNUG__ */\n\
4737 #endif\t /* __GNUG__ */\n\
4738 #else\t /* ! __cplusplus */\n\
4739 #define NULL\t((void *)0)\n\
4740 #endif\t /* __cplusplus */\n\
4741 #endif\t /* !NULL */",
4742 "^#ifndef[ \t]*NULL\n\
4743 ^#ifdef[ \t]*__GNUG__\n\
4744 ^#define[ \t]*NULL[ \t]*__null\n\
4746 ^#define[ \t]*NULL[ \t]*0L\n\
4751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4753 * Description of Obstack_Lvalue_Cast fix
4755 tSCC zObstack_Lvalue_CastName[] =
4756 "obstack_lvalue_cast";
4759 * File name selection pattern
4761 tSCC zObstack_Lvalue_CastList[] =
4764 * Machine/OS name selection pattern
4766 #define apzObstack_Lvalue_CastMachs (const char**)NULL
4769 * content selection pattern - do fix if pattern found
4771 tSCC zObstack_Lvalue_CastSelect0[] =
4772 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
4774 #define OBSTACK_LVALUE_CAST_TEST_CT 1
4775 static tTestDesc aObstack_Lvalue_CastTests[] = {
4776 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
4779 * Fix Command Arguments for Obstack_Lvalue_Cast
4781 static const char* apzObstack_Lvalue_CastPatch[] = {
4783 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
4786 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4788 * Description of Openbsd_Va_Start fix
4790 tSCC zOpenbsd_Va_StartName[] =
4794 * File name selection pattern
4796 tSCC zOpenbsd_Va_StartList[] =
4799 * Machine/OS name selection pattern
4801 tSCC* apzOpenbsd_Va_StartMachs[] = {
4803 (const char*)NULL };
4806 * content selection pattern - do fix if pattern found
4808 tSCC zOpenbsd_Va_StartSelect0[] =
4809 "__builtin_stdarg_start";
4811 #define OPENBSD_VA_START_TEST_CT 1
4812 static tTestDesc aOpenbsd_Va_StartTests[] = {
4813 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
4816 * Fix Command Arguments for Openbsd_Va_Start
4818 static const char* apzOpenbsd_Va_StartPatch[] = {
4820 "__builtin_va_start",
4823 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4825 * Description of Osf_Namespace_A fix
4827 tSCC zOsf_Namespace_AName[] =
4831 * File name selection pattern
4833 tSCC zOsf_Namespace_AList[] =
4834 "reg_types.h\0sys/lc_core.h\0";
4836 * Machine/OS name selection pattern
4838 #define apzOsf_Namespace_AMachs (const char**)NULL
4841 * perform the 'test' shell command - do fix on success
4843 tSCC zOsf_Namespace_ATest0[] =
4845 tSCC zOsf_Namespace_ATest1[] =
4846 " -r sys/lc_core.h";
4847 tSCC zOsf_Namespace_ATest2[] =
4848 " -n \"`grep '} regex_t;' reg_types.h`\"";
4849 tSCC zOsf_Namespace_ATest3[] =
4850 " -z \"`grep __regex_t regex.h`\"";
4852 #define OSF_NAMESPACE_A_TEST_CT 4
4853 static tTestDesc aOsf_Namespace_ATests[] = {
4854 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
4855 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
4856 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
4857 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
4860 * Fix Command Arguments for Osf_Namespace_A
4862 static const char* apzOsf_Namespace_APatch[] = {
4865 "reg(ex|off|match)_t",
4868 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4870 * Description of Osf_Namespace_C fix
4872 tSCC zOsf_Namespace_CName[] =
4876 * File name selection pattern
4878 tSCC zOsf_Namespace_CList[] =
4881 * Machine/OS name selection pattern
4883 #define apzOsf_Namespace_CMachs (const char**)NULL
4886 * content selection pattern - do fix if pattern found
4888 tSCC zOsf_Namespace_CSelect0[] =
4889 "#include <reg_types.h>.*";
4892 * perform the 'test' shell command - do fix on success
4894 tSCC zOsf_Namespace_CTest0[] =
4896 tSCC zOsf_Namespace_CTest1[] =
4897 " -r sys/lc_core.h";
4898 tSCC zOsf_Namespace_CTest2[] =
4899 " -n \"`grep '} regex_t;' reg_types.h`\"";
4900 tSCC zOsf_Namespace_CTest3[] =
4901 " -z \"`grep __regex_t regex.h`\"";
4903 #define OSF_NAMESPACE_C_TEST_CT 5
4904 static tTestDesc aOsf_Namespace_CTests[] = {
4905 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
4906 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
4907 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
4908 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
4909 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
4912 * Fix Command Arguments for Osf_Namespace_C
4914 static const char* apzOsf_Namespace_CPatch[] = {
4917 typedef __regex_t\tregex_t;\n\
4918 typedef __regoff_t\tregoff_t;\n\
4919 typedef __regmatch_t\tregmatch_t;",
4922 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4924 * Description of Pthread_Incomplete_Struct_Argument fix
4926 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
4927 "pthread_incomplete_struct_argument";
4930 * File name selection pattern
4932 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
4935 * Machine/OS name selection pattern
4937 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
4940 * content selection pattern - do fix if pattern found
4942 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
4943 "struct __jmp_buf_tag";
4945 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
4946 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
4947 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
4950 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
4952 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
4955 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
4958 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4960 * Description of Read_Ret_Type fix
4962 tSCC zRead_Ret_TypeName[] =
4966 * File name selection pattern
4968 tSCC zRead_Ret_TypeList[] =
4971 * Machine/OS name selection pattern
4973 #define apzRead_Ret_TypeMachs (const char**)NULL
4976 * content selection pattern - do fix if pattern found
4978 tSCC zRead_Ret_TypeSelect0[] =
4979 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
4981 #define READ_RET_TYPE_TEST_CT 1
4982 static tTestDesc aRead_Ret_TypeTests[] = {
4983 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
4986 * Fix Command Arguments for Read_Ret_Type
4988 static const char* apzRead_Ret_TypePatch[] = {
4990 "extern unsigned int fread(), fwrite();\n\
4992 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
4995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4997 * Description of Rpc_Xdr_Lvalue_Cast_A fix
4999 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5000 "rpc_xdr_lvalue_cast_a";
5003 * File name selection pattern
5005 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5008 * Machine/OS name selection pattern
5010 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5013 * content selection pattern - do fix if pattern found
5015 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5016 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5019 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5020 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5021 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5024 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5026 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5028 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5031 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5033 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5035 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5036 "rpc_xdr_lvalue_cast_b";
5039 * File name selection pattern
5041 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5044 * Machine/OS name selection pattern
5046 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5049 * content selection pattern - do fix if pattern found
5051 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5052 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5055 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5056 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5057 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5060 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5062 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5064 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5067 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5069 * Description of Rs6000_Double fix
5071 tSCC zRs6000_DoubleName[] =
5075 * File name selection pattern
5077 tSCC zRs6000_DoubleList[] =
5080 * Machine/OS name selection pattern
5082 #define apzRs6000_DoubleMachs (const char**)NULL
5085 * content selection pattern - do fix if pattern found
5087 tSCC zRs6000_DoubleSelect0[] =
5088 "[^a-zA-Z_]class\\(";
5090 #define RS6000_DOUBLE_TEST_CT 1
5091 static tTestDesc aRs6000_DoubleTests[] = {
5092 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5095 * Fix Command Arguments for Rs6000_Double
5097 static const char* apzRs6000_DoublePatch[] = {
5099 "#ifndef __cplusplus\n\
5102 "^.*[^a-zA-Z_]class\\(.*",
5105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5107 * Description of Rs6000_Fchmod fix
5109 tSCC zRs6000_FchmodName[] =
5113 * File name selection pattern
5115 tSCC zRs6000_FchmodList[] =
5118 * Machine/OS name selection pattern
5120 #define apzRs6000_FchmodMachs (const char**)NULL
5123 * content selection pattern - do fix if pattern found
5125 tSCC zRs6000_FchmodSelect0[] =
5126 "fchmod\\(char \\*";
5128 #define RS6000_FCHMOD_TEST_CT 1
5129 static tTestDesc aRs6000_FchmodTests[] = {
5130 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5133 * Fix Command Arguments for Rs6000_Fchmod
5135 static const char* apzRs6000_FchmodPatch[] = {
5140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5142 * Description of Rs6000_Param fix
5144 tSCC zRs6000_ParamName[] =
5148 * File name selection pattern
5150 tSCC zRs6000_ParamList[] =
5151 "stdio.h\0unistd.h\0";
5153 * Machine/OS name selection pattern
5155 #define apzRs6000_ParamMachs (const char**)NULL
5158 * content selection pattern - do fix if pattern found
5160 tSCC zRs6000_ParamSelect0[] =
5161 "rename\\(const char \\*old, const char \\*new\\)";
5163 #define RS6000_PARAM_TEST_CT 1
5164 static tTestDesc aRs6000_ParamTests[] = {
5165 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
5168 * Fix Command Arguments for Rs6000_Param
5170 static const char* apzRs6000_ParamPatch[] = {
5172 "rename(const char *_old, const char *_new)",
5175 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5177 * Description of Sco_Math fix
5179 tSCC zSco_MathName[] =
5183 * File name selection pattern
5185 tSCC zSco_MathList[] =
5186 "math.h\0*/math.h\0";
5188 * Machine/OS name selection pattern
5190 #define apzSco_MathMachs (const char**)NULL
5193 * content selection pattern - do fix if pattern found
5195 tSCC zSco_MathSelect0[] =
5196 "inline double abs";
5199 * content bypass pattern - skip fix if pattern found
5201 tSCC zSco_MathBypass0[] =
5204 #define SCO_MATH_TEST_CT 2
5205 static tTestDesc aSco_MathTests[] = {
5206 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
5207 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
5210 * Fix Command Arguments for Sco_Math
5212 static const char* apzSco_MathPatch[] = { sed_cmd_z,
5213 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5214 #ifndef __GNUC__\n",
5215 "-e", "/.*__builtin_generic/a\\\n\
5217 #define __fp_class(a) \\\\\\\n\
5218 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5219 __fpclassifyl(a), \\\\\\\n\
5220 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5221 __fpclassifyf(a),__fpclassify(a)))\\\n\
5223 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5224 #ifndef __GNUC__\n",
5225 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5226 #endif /* ! __GNUC__ */",
5229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5231 * Description of Solaris_Math_1 fix
5233 tSCC zSolaris_Math_1Name[] =
5237 * File name selection pattern
5239 tSCC zSolaris_Math_1List[] =
5242 * Machine/OS name selection pattern
5244 #define apzSolaris_Math_1Machs (const char**)NULL
5247 * content selection pattern - do fix if pattern found
5249 tSCC zSolaris_Math_1Select0[] =
5250 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5253 * content bypass pattern - skip fix if pattern found
5255 tSCC zSolaris_Math_1Bypass0[] =
5258 #define SOLARIS_MATH_1_TEST_CT 2
5259 static tTestDesc aSolaris_Math_1Tests[] = {
5260 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5261 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5264 * Fix Command Arguments for Solaris_Math_1
5266 static const char* apzSolaris_Math_1Patch[] = {
5268 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5269 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5272 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5274 * Description of Solaris_Math_2 fix
5276 tSCC zSolaris_Math_2Name[] =
5280 * File name selection pattern
5282 tSCC zSolaris_Math_2List[] =
5285 * Machine/OS name selection pattern
5287 #define apzSolaris_Math_2Machs (const char**)NULL
5290 * content selection pattern - do fix if pattern found
5292 tSCC zSolaris_Math_2Select0[] =
5293 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5296 * content bypass pattern - skip fix if pattern found
5298 tSCC zSolaris_Math_2Bypass0[] =
5301 #define SOLARIS_MATH_2_TEST_CT 2
5302 static tTestDesc aSolaris_Math_2Tests[] = {
5303 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5304 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5307 * Fix Command Arguments for Solaris_Math_2
5309 static const char* apzSolaris_Math_2Patch[] = {
5311 "#define\tINFINITY\t(__builtin_inff())",
5312 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5315 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5317 * Description of Solaris_Math_3 fix
5319 tSCC zSolaris_Math_3Name[] =
5323 * File name selection pattern
5325 tSCC zSolaris_Math_3List[] =
5328 * Machine/OS name selection pattern
5330 #define apzSolaris_Math_3Machs (const char**)NULL
5333 * content selection pattern - do fix if pattern found
5335 tSCC zSolaris_Math_3Select0[] =
5336 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5339 * content bypass pattern - skip fix if pattern found
5341 tSCC zSolaris_Math_3Bypass0[] =
5344 #define SOLARIS_MATH_3_TEST_CT 2
5345 static tTestDesc aSolaris_Math_3Tests[] = {
5346 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5347 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5350 * Fix Command Arguments for Solaris_Math_3
5352 static const char* apzSolaris_Math_3Patch[] = {
5354 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5355 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5358 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5360 * Description of Solaris_Math_4 fix
5362 tSCC zSolaris_Math_4Name[] =
5366 * File name selection pattern
5368 tSCC zSolaris_Math_4List[] =
5371 * Machine/OS name selection pattern
5373 #define apzSolaris_Math_4Machs (const char**)NULL
5376 * content selection pattern - do fix if pattern found
5378 tSCC zSolaris_Math_4Select0[] =
5379 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5382 * content bypass pattern - skip fix if pattern found
5384 tSCC zSolaris_Math_4Bypass0[] =
5387 #define SOLARIS_MATH_4_TEST_CT 2
5388 static tTestDesc aSolaris_Math_4Tests[] = {
5389 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5390 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5393 * Fix Command Arguments for Solaris_Math_4
5395 static const char* apzSolaris_Math_4Patch[] = {
5397 "#define\tfpclassify(x) \\\n\
5398 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
5399 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5402 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5404 * Description of Solaris_Math_8 fix
5406 tSCC zSolaris_Math_8Name[] =
5410 * File name selection pattern
5412 tSCC zSolaris_Math_8List[] =
5415 * Machine/OS name selection pattern
5417 #define apzSolaris_Math_8Machs (const char**)NULL
5420 * content selection pattern - do fix if pattern found
5422 tSCC zSolaris_Math_8Select0[] =
5423 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5426 * content bypass pattern - skip fix if pattern found
5428 tSCC zSolaris_Math_8Bypass0[] =
5431 #define SOLARIS_MATH_8_TEST_CT 2
5432 static tTestDesc aSolaris_Math_8Tests[] = {
5433 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5434 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5437 * Fix Command Arguments for Solaris_Math_8
5439 static const char* apzSolaris_Math_8Patch[] = {
5441 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5442 \t\t\t ? __builtin_signbitf(x) \\\n\
5443 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
5444 \t\t\t ? __builtin_signbitl(x) \\\n\
5445 \t\t\t : __builtin_signbit(x))",
5446 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5449 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5451 * Description of Solaris_Math_9 fix
5453 tSCC zSolaris_Math_9Name[] =
5457 * File name selection pattern
5459 tSCC zSolaris_Math_9List[] =
5462 * Machine/OS name selection pattern
5464 #define apzSolaris_Math_9Machs (const char**)NULL
5467 * content selection pattern - do fix if pattern found
5469 tSCC zSolaris_Math_9Select0[] =
5470 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5473 * content bypass pattern - skip fix if pattern found
5475 tSCC zSolaris_Math_9Bypass0[] =
5478 #define SOLARIS_MATH_9_TEST_CT 2
5479 static tTestDesc aSolaris_Math_9Tests[] = {
5480 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
5481 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
5484 * Fix Command Arguments for Solaris_Math_9
5486 static const char* apzSolaris_Math_9Patch[] = {
5488 "#define\t%1(x, y)%2__builtin_%1(x, y)",
5489 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5492 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5494 * Description of Solaris_Math_10 fix
5496 tSCC zSolaris_Math_10Name[] =
5500 * File name selection pattern
5502 tSCC zSolaris_Math_10List[] =
5505 * Machine/OS name selection pattern
5507 #define apzSolaris_Math_10Machs (const char**)NULL
5510 * content selection pattern - do fix if pattern found
5512 tSCC zSolaris_Math_10Select0[] =
5513 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5515 #define SOLARIS_MATH_10_TEST_CT 1
5516 static tTestDesc aSolaris_Math_10Tests[] = {
5517 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
5520 * Fix Command Arguments for Solaris_Math_10
5522 static const char* apzSolaris_Math_10Patch[] = {
5524 "#define\tisinf(x) __builtin_isinf(x)",
5525 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
5526 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
5527 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
5528 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
5531 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5533 * Description of Solaris_Mutex_Init_2 fix
5535 tSCC zSolaris_Mutex_Init_2Name[] =
5536 "solaris_mutex_init_2";
5539 * File name selection pattern
5541 tSCC zSolaris_Mutex_Init_2List[] =
5544 * Machine/OS name selection pattern
5546 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
5547 "*-*-solaris2.[0-9]",
5548 "*-*-solaris2.[0-9][!0-9]*",
5549 (const char*)NULL };
5552 * content selection pattern - do fix if pattern found
5554 tSCC zSolaris_Mutex_Init_2Select0[] =
5555 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5557 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
5558 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
5559 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
5562 * Fix Command Arguments for Solaris_Mutex_Init_2
5564 static const char* apzSolaris_Mutex_Init_2Patch[] = {
5566 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5571 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
5572 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
5575 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5577 * Description of Solaris_Rwlock_Init_1 fix
5579 tSCC zSolaris_Rwlock_Init_1Name[] =
5580 "solaris_rwlock_init_1";
5583 * File name selection pattern
5585 tSCC zSolaris_Rwlock_Init_1List[] =
5588 * Machine/OS name selection pattern
5590 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
5592 (const char*)NULL };
5595 * content selection pattern - do fix if pattern found
5597 tSCC zSolaris_Rwlock_Init_1Select0[] =
5598 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5600 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
5601 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
5602 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
5605 * Fix Command Arguments for Solaris_Rwlock_Init_1
5607 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
5609 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5612 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
5614 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
5617 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5619 * Description of Solaris_Once_Init_1 fix
5621 tSCC zSolaris_Once_Init_1Name[] =
5622 "solaris_once_init_1";
5625 * File name selection pattern
5627 tSCC zSolaris_Once_Init_1List[] =
5630 * Machine/OS name selection pattern
5632 tSCC* apzSolaris_Once_Init_1Machs[] = {
5634 (const char*)NULL };
5637 * content selection pattern - do fix if pattern found
5639 tSCC zSolaris_Once_Init_1Select0[] =
5640 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5642 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
5643 static tTestDesc aSolaris_Once_Init_1Tests[] = {
5644 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
5647 * Fix Command Arguments for Solaris_Once_Init_1
5649 static const char* apzSolaris_Once_Init_1Patch[] = {
5652 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
5655 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5657 * Description of Solaris_Once_Init_2 fix
5659 tSCC zSolaris_Once_Init_2Name[] =
5660 "solaris_once_init_2";
5663 * File name selection pattern
5665 tSCC zSolaris_Once_Init_2List[] =
5668 * Machine/OS name selection pattern
5670 tSCC* apzSolaris_Once_Init_2Machs[] = {
5671 "*-*-solaris2.[0-9]",
5672 "*-*-solaris2.[0-9][!0-9]*",
5673 (const char*)NULL };
5676 * content selection pattern - do fix if pattern found
5678 tSCC zSolaris_Once_Init_2Select0[] =
5679 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5681 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
5682 static tTestDesc aSolaris_Once_Init_2Tests[] = {
5683 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
5686 * Fix Command Arguments for Solaris_Once_Init_2
5688 static const char* apzSolaris_Once_Init_2Patch[] = {
5690 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5693 %1{0}, {0}, {0}, {%3}%4\n\
5695 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
5698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5700 * Description of Solaris_Stdio_Tag fix
5702 tSCC zSolaris_Stdio_TagName[] =
5703 "solaris_stdio_tag";
5706 * File name selection pattern
5708 tSCC zSolaris_Stdio_TagList[] =
5711 * Machine/OS name selection pattern
5713 #define apzSolaris_Stdio_TagMachs (const char**)NULL
5716 * content selection pattern - do fix if pattern found
5718 tSCC zSolaris_Stdio_TagSelect0[] =
5719 "__cplusplus < 54321L";
5722 * content bypass pattern - skip fix if pattern found
5724 tSCC zSolaris_Stdio_TagBypass0[] =
5727 #define SOLARIS_STDIO_TAG_TEST_CT 2
5728 static tTestDesc aSolaris_Stdio_TagTests[] = {
5729 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
5730 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
5733 * Fix Command Arguments for Solaris_Stdio_Tag
5735 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
5736 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
5739 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5741 * Description of Statsswtch fix
5743 tSCC zStatsswtchName[] =
5747 * File name selection pattern
5749 tSCC zStatsswtchList[] =
5752 * Machine/OS name selection pattern
5754 #define apzStatsswtchMachs (const char**)NULL
5757 * content selection pattern - do fix if pattern found
5759 tSCC zStatsswtchSelect0[] =
5762 #define STATSSWTCH_TEST_CT 1
5763 static tTestDesc aStatsswtchTests[] = {
5764 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
5767 * Fix Command Arguments for Statsswtch
5769 static const char* apzStatsswtchPatch[] = {
5774 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5776 * Description of Stdio_Stdarg_H fix
5778 tSCC zStdio_Stdarg_HName[] =
5782 * File name selection pattern
5784 tSCC zStdio_Stdarg_HList[] =
5787 * Machine/OS name selection pattern
5789 tSCC* apzStdio_Stdarg_HMachs[] = {
5790 "*-*-solaris2.1[0-9]*",
5791 (const char*)NULL };
5794 * content bypass pattern - skip fix if pattern found
5796 tSCC zStdio_Stdarg_HBypass0[] =
5797 "include.*(stdarg.h|machine/ansi.h)";
5799 #define STDIO_STDARG_H_TEST_CT 1
5800 static tTestDesc aStdio_Stdarg_HTests[] = {
5801 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
5804 * Fix Command Arguments for Stdio_Stdarg_H
5806 static const char* apzStdio_Stdarg_HPatch[] = {
5808 "#define __need___va_list\n\
5809 #include <stdarg.h>\n",
5812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5814 * Description of Stdio_Va_List fix
5816 tSCC zStdio_Va_ListName[] =
5820 * File name selection pattern
5822 tSCC zStdio_Va_ListList[] =
5823 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
5825 * Machine/OS name selection pattern
5827 tSCC* apzStdio_Va_ListMachs[] = {
5828 "*-*-solaris2.1[0-9]*",
5829 (const char*)NULL };
5832 * content bypass pattern - skip fix if pattern found
5834 tSCC zStdio_Va_ListBypass0[] =
5835 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
5837 #define STDIO_VA_LIST_TEST_CT 1
5838 static tTestDesc aStdio_Va_ListTests[] = {
5839 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
5842 * Fix Command Arguments for Stdio_Va_List
5844 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
5845 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
5846 s@(va_list)&@(__gnuc_va_list)\\&@\n\
5847 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
5848 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
5849 s@ va_list@ __not_va_list__@\n\
5850 s@\\*va_list@*__not_va_list__@\n\
5851 s@ __va_list)@ __gnuc_va_list)@\n\
5852 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
5853 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
5854 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
5855 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
5856 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
5857 s@VA_LIST@DUMMY_VA_LIST@\n\
5858 s@_Va_LIST@_VA_LIST@",
5861 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5863 * Description of Stdio_Va_List_Clients fix
5865 tSCC zStdio_Va_List_ClientsName[] =
5866 "stdio_va_list_clients";
5869 * File name selection pattern
5871 tSCC zStdio_Va_List_ClientsList[] =
5872 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
5874 * Machine/OS name selection pattern
5876 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
5879 * content bypass pattern - skip fix if pattern found
5881 tSCC zStdio_Va_List_ClientsBypass0[] =
5882 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
5883 tSCC zStdio_Va_List_ClientsBypass1[] =
5884 "include <stdarg\\.h>|#ifdef va_start";
5886 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
5887 static tTestDesc aStdio_Va_List_ClientsTests[] = {
5888 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
5889 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
5892 * Fix Command Arguments for Stdio_Va_List_Clients
5894 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
5895 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
5896 s@(va_list)&@(__gnuc_va_list)\\&@\n\
5897 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
5898 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
5899 s@ va_list@ __not_va_list__@\n\
5900 s@\\*va_list@*__not_va_list__@\n\
5901 s@ __va_list)@ __gnuc_va_list)@\n\
5902 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
5903 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
5904 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
5905 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
5906 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
5907 s@VA_LIST@DUMMY_VA_LIST@\n\
5908 s@_Va_LIST@_VA_LIST@",
5911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5913 * Description of Strict_Ansi_Not fix
5915 tSCC zStrict_Ansi_NotName[] =
5919 * File name selection pattern
5921 #define zStrict_Ansi_NotList (char*)NULL
5923 * Machine/OS name selection pattern
5925 #define apzStrict_Ansi_NotMachs (const char**)NULL
5928 * content selection pattern - do fix if pattern found
5930 tSCC zStrict_Ansi_NotSelect0[] =
5931 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
5934 * content bypass pattern - skip fix if pattern found
5936 tSCC zStrict_Ansi_NotBypass0[] =
5937 "GNU and MIPS C compilers define __STDC__ differently";
5938 tSCC zStrict_Ansi_NotBypass1[] =
5939 "__SCO_VERSION__.*__STDC__ != 1";
5942 * perform the C function call test
5944 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
5946 #define STRICT_ANSI_NOT_TEST_CT 4
5947 static tTestDesc aStrict_Ansi_NotTests[] = {
5948 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
5949 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
5950 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
5951 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
5954 * Fix Command Arguments for Strict_Ansi_Not
5956 static const char* apzStrict_Ansi_NotPatch[] = {
5958 "%1 !defined(__STRICT_ANSI__)",
5961 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5963 * Description of Strict_Ansi_Not_Ctd fix
5965 tSCC zStrict_Ansi_Not_CtdName[] =
5966 "strict_ansi_not_ctd";
5969 * File name selection pattern
5971 tSCC zStrict_Ansi_Not_CtdList[] =
5972 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
5974 * Machine/OS name selection pattern
5976 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
5979 * content selection pattern - do fix if pattern found
5981 tSCC zStrict_Ansi_Not_CtdSelect0[] =
5982 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
5985 * perform the C function call test
5987 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
5989 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
5990 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
5991 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
5992 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
5995 * Fix Command Arguments for Strict_Ansi_Not_Ctd
5997 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
5999 "%1 !defined(__STRICT_ANSI__)",
6002 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6004 * Description of Strict_Ansi_Only fix
6006 tSCC zStrict_Ansi_OnlyName[] =
6010 * File name selection pattern
6012 #define zStrict_Ansi_OnlyList (char*)NULL
6014 * Machine/OS name selection pattern
6016 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6019 * content selection pattern - do fix if pattern found
6021 tSCC zStrict_Ansi_OnlySelect0[] =
6022 "^([ \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)";
6025 * perform the C function call test
6027 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6029 #define STRICT_ANSI_ONLY_TEST_CT 2
6030 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6031 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6032 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6035 * Fix Command Arguments for Strict_Ansi_Only
6037 static const char* apzStrict_Ansi_OnlyPatch[] = {
6039 "%1 defined(__STRICT_ANSI__)",
6042 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6044 * Description of Struct_File fix
6046 tSCC zStruct_FileName[] =
6050 * File name selection pattern
6052 tSCC zStruct_FileList[] =
6055 * Machine/OS name selection pattern
6057 #define apzStruct_FileMachs (const char**)NULL
6060 * content selection pattern - do fix if pattern found
6062 tSCC zStruct_FileSelect0[] =
6063 "^.*xdrstdio_create.*struct __file_s";
6065 #define STRUCT_FILE_TEST_CT 1
6066 static tTestDesc aStruct_FileTests[] = {
6067 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6070 * Fix Command Arguments for Struct_File
6072 static const char* apzStruct_FilePatch[] = {
6074 "struct __file_s;\n\
6078 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6080 * Description of Struct_Sockaddr fix
6082 tSCC zStruct_SockaddrName[] =
6086 * File name selection pattern
6088 tSCC zStruct_SockaddrList[] =
6091 * Machine/OS name selection pattern
6093 #define apzStruct_SockaddrMachs (const char**)NULL
6096 * content selection pattern - do fix if pattern found
6098 tSCC zStruct_SockaddrSelect0[] =
6099 "^.*authdes_create.*struct sockaddr[^_]";
6102 * content bypass pattern - skip fix if pattern found
6104 tSCC zStruct_SockaddrBypass0[] =
6106 tSCC zStruct_SockaddrBypass1[] =
6107 "struct sockaddr;\n";
6109 #define STRUCT_SOCKADDR_TEST_CT 3
6110 static tTestDesc aStruct_SockaddrTests[] = {
6111 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6112 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6113 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6116 * Fix Command Arguments for Struct_Sockaddr
6118 static const char* apzStruct_SockaddrPatch[] = {
6120 "struct sockaddr;\n\
6124 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6126 * Description of Sun_Auth_Proto fix
6128 tSCC zSun_Auth_ProtoName[] =
6132 * File name selection pattern
6134 tSCC zSun_Auth_ProtoList[] =
6135 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6137 * Machine/OS name selection pattern
6139 #define apzSun_Auth_ProtoMachs (const char**)NULL
6142 * content selection pattern - do fix if pattern found
6144 tSCC zSun_Auth_ProtoSelect0[] =
6145 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6148 * content bypass pattern - skip fix if pattern found
6150 tSCC zSun_Auth_ProtoBypass0[] =
6153 #define SUN_AUTH_PROTO_TEST_CT 2
6154 static tTestDesc aSun_Auth_ProtoTests[] = {
6155 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6156 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6159 * Fix Command Arguments for Sun_Auth_Proto
6161 static const char* apzSun_Auth_ProtoPatch[] = {
6163 "#ifdef __cplusplus\n\
6168 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6171 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6173 * Description of Sun_Bogus_Ifdef fix
6175 tSCC zSun_Bogus_IfdefName[] =
6179 * File name selection pattern
6181 tSCC zSun_Bogus_IfdefList[] =
6182 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
6184 * Machine/OS name selection pattern
6186 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6189 * content selection pattern - do fix if pattern found
6191 tSCC zSun_Bogus_IfdefSelect0[] =
6192 "#ifdef(.*\\|\\|.*)";
6194 #define SUN_BOGUS_IFDEF_TEST_CT 1
6195 static tTestDesc aSun_Bogus_IfdefTests[] = {
6196 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6199 * Fix Command Arguments for Sun_Bogus_Ifdef
6201 static const char* apzSun_Bogus_IfdefPatch[] = {
6206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6208 * Description of Sun_Catmacro fix
6210 tSCC zSun_CatmacroName[] =
6214 * File name selection pattern
6216 tSCC zSun_CatmacroList[] =
6217 "pixrect/memvar.h\0";
6219 * Machine/OS name selection pattern
6221 #define apzSun_CatmacroMachs (const char**)NULL
6224 * content selection pattern - do fix if pattern found
6226 tSCC zSun_CatmacroSelect0[] =
6227 "^#define[ \t]+CAT\\(a,b\\).*";
6229 #define SUN_CATMACRO_TEST_CT 1
6230 static tTestDesc aSun_CatmacroTests[] = {
6231 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
6234 * Fix Command Arguments for Sun_Catmacro
6236 static const char* apzSun_CatmacroPatch[] = {
6239 # define CAT(a,b) a##b\n\
6245 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6247 * Description of Sun_Malloc fix
6249 tSCC zSun_MallocName[] =
6253 * File name selection pattern
6255 tSCC zSun_MallocList[] =
6258 * Machine/OS name selection pattern
6260 #define apzSun_MallocMachs (const char**)NULL
6263 * content bypass pattern - skip fix if pattern found
6265 tSCC zSun_MallocBypass0[] =
6266 "_CLASSIC_ANSI_TYPES";
6268 #define SUN_MALLOC_TEST_CT 1
6269 static tTestDesc aSun_MallocTests[] = {
6270 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
6273 * Fix Command Arguments for Sun_Malloc
6275 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
6276 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6277 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6278 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6279 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6280 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6285 * Description of Sun_Rusers_Semi fix
6287 tSCC zSun_Rusers_SemiName[] =
6291 * File name selection pattern
6293 tSCC zSun_Rusers_SemiList[] =
6294 "rpcsvc/rusers.h\0";
6296 * Machine/OS name selection pattern
6298 #define apzSun_Rusers_SemiMachs (const char**)NULL
6301 * content selection pattern - do fix if pattern found
6303 tSCC zSun_Rusers_SemiSelect0[] =
6306 #define SUN_RUSERS_SEMI_TEST_CT 1
6307 static tTestDesc aSun_Rusers_SemiTests[] = {
6308 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6311 * Fix Command Arguments for Sun_Rusers_Semi
6313 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
6314 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6319 * Description of Sun_Signal fix
6321 tSCC zSun_SignalName[] =
6325 * File name selection pattern
6327 tSCC zSun_SignalList[] =
6328 "sys/signal.h\0signal.h\0";
6330 * Machine/OS name selection pattern
6332 #define apzSun_SignalMachs (const char**)NULL
6335 * content selection pattern - do fix if pattern found
6337 tSCC zSun_SignalSelect0[] =
6338 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6340 #define SUN_SIGNAL_TEST_CT 1
6341 static tTestDesc aSun_SignalTests[] = {
6342 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
6345 * Fix Command Arguments for Sun_Signal
6347 static const char* apzSun_SignalPatch[] = {
6349 "#ifdef __cplusplus\n\
6350 void\t(*signal(...))(...);\n\
6356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6358 * Description of Sunos_Strlen fix
6360 tSCC zSunos_StrlenName[] =
6364 * File name selection pattern
6366 tSCC zSunos_StrlenList[] =
6369 * Machine/OS name selection pattern
6371 #define apzSunos_StrlenMachs (const char**)NULL
6374 * content selection pattern - do fix if pattern found
6376 tSCC zSunos_StrlenSelect0[] =
6377 "int[ \t]*strlen\\(\\);(.*)";
6379 #define SUNOS_STRLEN_TEST_CT 1
6380 static tTestDesc aSunos_StrlenTests[] = {
6381 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
6384 * Fix Command Arguments for Sunos_Strlen
6386 static const char* apzSunos_StrlenPatch[] = {
6388 "__SIZE_TYPE__ strlen();%1",
6391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6393 * Description of Svr4_Disable_Opt fix
6395 tSCC zSvr4_Disable_OptName[] =
6399 * File name selection pattern
6401 tSCC zSvr4_Disable_OptList[] =
6404 * Machine/OS name selection pattern
6406 #define apzSvr4_Disable_OptMachs (const char**)NULL
6409 * content selection pattern - do fix if pattern found
6411 tSCC zSvr4_Disable_OptSelect0[] =
6412 "#define.*__std_hdr_";
6414 #define SVR4_DISABLE_OPT_TEST_CT 1
6415 static tTestDesc aSvr4_Disable_OptTests[] = {
6416 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
6419 * Fix Command Arguments for Svr4_Disable_Opt
6421 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
6422 "-e", "/#define.*__std_hdr_/d",
6425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6427 * Description of Svr4_Getcwd fix
6429 tSCC zSvr4_GetcwdName[] =
6433 * File name selection pattern
6435 tSCC zSvr4_GetcwdList[] =
6436 "stdlib.h\0unistd.h\0prototypes.h\0";
6438 * Machine/OS name selection pattern
6440 #define apzSvr4_GetcwdMachs (const char**)NULL
6443 * content selection pattern - do fix if pattern found
6445 tSCC zSvr4_GetcwdSelect0[] =
6446 "getcwd\\(char \\*, int\\)";
6448 #define SVR4_GETCWD_TEST_CT 1
6449 static tTestDesc aSvr4_GetcwdTests[] = {
6450 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
6453 * Fix Command Arguments for Svr4_Getcwd
6455 static const char* apzSvr4_GetcwdPatch[] = {
6457 "getcwd(char *, size_t)",
6460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6462 * Description of Svr4_Profil fix
6464 tSCC zSvr4_ProfilName[] =
6468 * File name selection pattern
6470 tSCC zSvr4_ProfilList[] =
6471 "stdlib.h\0unistd.h\0";
6473 * Machine/OS name selection pattern
6475 #define apzSvr4_ProfilMachs (const char**)NULL
6478 * content selection pattern - do fix if pattern found
6480 tSCC zSvr4_ProfilSelect0[] =
6481 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
6484 * content bypass pattern - skip fix if pattern found
6486 tSCC zSvr4_ProfilBypass0[] =
6489 #define SVR4_PROFIL_TEST_CT 2
6490 static tTestDesc aSvr4_ProfilTests[] = {
6491 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
6492 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
6495 * Fix Command Arguments for Svr4_Profil
6497 static const char* apzSvr4_ProfilPatch[] = {
6499 "profil(unsigned short *, size_t, int, unsigned int)",
6502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6504 * Description of Svr4_Sighandler_Type fix
6506 tSCC zSvr4_Sighandler_TypeName[] =
6507 "svr4_sighandler_type";
6510 * File name selection pattern
6512 tSCC zSvr4_Sighandler_TypeList[] =
6515 * Machine/OS name selection pattern
6517 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
6520 * content selection pattern - do fix if pattern found
6522 tSCC zSvr4_Sighandler_TypeSelect0[] =
6523 "void *\\(\\*\\)\\(\\)";
6525 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
6526 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
6527 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
6530 * Fix Command Arguments for Svr4_Sighandler_Type
6532 static const char* apzSvr4_Sighandler_TypePatch[] = {
6537 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6539 * Description of Svr4_Undeclared_Getrnge fix
6541 tSCC zSvr4_Undeclared_GetrngeName[] =
6542 "svr4_undeclared_getrnge";
6545 * File name selection pattern
6547 tSCC zSvr4_Undeclared_GetrngeList[] =
6550 * Machine/OS name selection pattern
6552 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
6555 * content selection pattern - do fix if pattern found
6557 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
6561 * content bypass pattern - skip fix if pattern found
6563 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
6564 "static void getrnge";
6566 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
6567 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
6568 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
6569 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
6572 * Fix Command Arguments for Svr4_Undeclared_Getrnge
6574 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
6577 static int getrnge ();",
6578 "^static int[ \t]+size;",
6581 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6583 * Description of Sysv68_String fix
6585 tSCC zSysv68_StringName[] =
6589 * File name selection pattern
6591 tSCC zSysv68_StringList[] =
6592 "testing.h\0string.h\0";
6594 * Machine/OS name selection pattern
6596 #define apzSysv68_StringMachs (const char**)NULL
6599 * content bypass pattern - skip fix if pattern found
6601 tSCC zSysv68_StringBypass0[] =
6602 "_CLASSIC_ANSI_TYPES";
6604 #define SYSV68_STRING_TEST_CT 1
6605 static tTestDesc aSysv68_StringTests[] = {
6606 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
6609 * Fix Command Arguments for Sysv68_String
6611 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
6612 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
6613 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
6614 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
6615 "-e", "/^extern char$/N",
6616 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
6617 "-e", "/^extern int$/N",
6618 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
6619 "-e", "/^\tstrncmp(),$/N",
6620 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
6621 extern unsigned int\\\n\
6625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6627 * Description of Sysz_Stdlib_For_Sun fix
6629 tSCC zSysz_Stdlib_For_SunName[] =
6630 "sysz_stdlib_for_sun";
6633 * File name selection pattern
6635 tSCC zSysz_Stdlib_For_SunList[] =
6638 * Machine/OS name selection pattern
6640 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
6643 * content selection pattern - do fix if pattern found
6645 tSCC zSysz_Stdlib_For_SunSelect0[] =
6646 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
6649 * content bypass pattern - skip fix if pattern found
6651 tSCC zSysz_Stdlib_For_SunBypass0[] =
6652 "_CLASSIC_ANSI_TYPES";
6654 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
6655 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
6656 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
6657 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
6660 * Fix Command Arguments for Sysz_Stdlib_For_Sun
6662 static const char* apzSysz_Stdlib_For_SunPatch[] = {
6667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6669 * Description of Thread_Keyword fix
6671 tSCC zThread_KeywordName[] =
6675 * File name selection pattern
6677 tSCC zThread_KeywordList[] =
6678 "pthread.h\0bits/sigthread.h\0";
6680 * Machine/OS name selection pattern
6682 #define apzThread_KeywordMachs (const char**)NULL
6685 * content selection pattern - do fix if pattern found
6687 tSCC zThread_KeywordSelect0[] =
6688 "([* ])__thread([,)])";
6690 #define THREAD_KEYWORD_TEST_CT 1
6691 static tTestDesc aThread_KeywordTests[] = {
6692 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
6695 * Fix Command Arguments for Thread_Keyword
6697 static const char* apzThread_KeywordPatch[] = {
6702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6704 * Description of Tinfo_Cplusplus fix
6706 tSCC zTinfo_CplusplusName[] =
6710 * File name selection pattern
6712 tSCC zTinfo_CplusplusList[] =
6715 * Machine/OS name selection pattern
6717 #define apzTinfo_CplusplusMachs (const char**)NULL
6720 * content selection pattern - do fix if pattern found
6722 tSCC zTinfo_CplusplusSelect0[] =
6725 #define TINFO_CPLUSPLUS_TEST_CT 1
6726 static tTestDesc aTinfo_CplusplusTests[] = {
6727 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
6730 * Fix Command Arguments for Tinfo_Cplusplus
6732 static const char* apzTinfo_CplusplusPatch[] = {
6737 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6739 * Description of Ultrix_Const fix
6741 tSCC zUltrix_ConstName[] =
6745 * File name selection pattern
6747 tSCC zUltrix_ConstList[] =
6750 * Machine/OS name selection pattern
6752 #define apzUltrix_ConstMachs (const char**)NULL
6755 * content selection pattern - do fix if pattern found
6757 tSCC zUltrix_ConstSelect0[] =
6758 "perror\\( char \\*";
6760 #define ULTRIX_CONST_TEST_CT 1
6761 static tTestDesc aUltrix_ConstTests[] = {
6762 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
6765 * Fix Command Arguments for Ultrix_Const
6767 static const char* apzUltrix_ConstPatch[] = {
6770 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
6773 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6775 * Description of Ultrix_Const2 fix
6777 tSCC zUltrix_Const2Name[] =
6781 * File name selection pattern
6783 tSCC zUltrix_Const2List[] =
6786 * Machine/OS name selection pattern
6788 #define apzUltrix_Const2Machs (const char**)NULL
6791 * content selection pattern - do fix if pattern found
6793 tSCC zUltrix_Const2Select0[] =
6794 "\\*fopen\\( char \\*";
6796 #define ULTRIX_CONST2_TEST_CT 1
6797 static tTestDesc aUltrix_Const2Tests[] = {
6798 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
6801 * Fix Command Arguments for Ultrix_Const2
6803 static const char* apzUltrix_Const2Patch[] = {
6805 "%1( const char *%3, const char *",
6806 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
6809 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6811 * Description of Va_I960_Macro fix
6813 tSCC zVa_I960_MacroName[] =
6817 * File name selection pattern
6819 tSCC zVa_I960_MacroList[] =
6820 "arch/i960/archI960.h\0";
6822 * Machine/OS name selection pattern
6824 #define apzVa_I960_MacroMachs (const char**)NULL
6827 * content selection pattern - do fix if pattern found
6829 tSCC zVa_I960_MacroSelect0[] =
6830 "__(vsiz|vali|vpad|alignof__)";
6832 #define VA_I960_MACRO_TEST_CT 1
6833 static tTestDesc aVa_I960_MacroTests[] = {
6834 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
6837 * Fix Command Arguments for Va_I960_Macro
6839 static const char* apzVa_I960_MacroPatch[] = {
6844 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6846 * Description of Void_Null fix
6848 tSCC zVoid_NullName[] =
6852 * File name selection pattern
6854 tSCC zVoid_NullList[] =
6855 "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";
6857 * Machine/OS name selection pattern
6859 #define apzVoid_NullMachs (const char**)NULL
6862 * content selection pattern - do fix if pattern found
6864 tSCC zVoid_NullSelect0[] =
6865 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
6868 * content bypass pattern - skip fix if pattern found
6870 tSCC zVoid_NullBypass0[] =
6873 #define VOID_NULL_TEST_CT 2
6874 static tTestDesc aVoid_NullTests[] = {
6875 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
6876 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
6879 * Fix Command Arguments for Void_Null
6881 static const char* apzVoid_NullPatch[] = {
6886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6888 * Description of Vxworks_Gcc_Problem fix
6890 tSCC zVxworks_Gcc_ProblemName[] =
6891 "vxworks_gcc_problem";
6894 * File name selection pattern
6896 tSCC zVxworks_Gcc_ProblemList[] =
6897 "types/vxTypesBase.h\0";
6899 * Machine/OS name selection pattern
6901 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
6904 * content selection pattern - do fix if pattern found
6906 tSCC zVxworks_Gcc_ProblemSelect0[] =
6907 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
6909 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
6910 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
6911 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
6914 * Fix Command Arguments for Vxworks_Gcc_Problem
6916 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
6917 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
6918 "-e", "/[ \t]size_t/i\\\n\
6919 #ifndef _GCC_SIZE_T\\\n\
6920 #define _GCC_SIZE_T\n",
6921 "-e", "/[ \t]size_t/a\\\n\
6923 "-e", "/[ \t]ptrdiff_t/i\\\n\
6924 #ifndef _GCC_PTRDIFF_T\\\n\
6925 #define _GCC_PTRDIFF_T\n",
6926 "-e", "/[ \t]ptrdiff_t/a\\\n\
6928 "-e", "/[ \t]wchar_t/i\\\n\
6929 #ifndef _GCC_WCHAR_T\\\n\
6930 #define _GCC_WCHAR_T\n",
6931 "-e", "/[ \t]wchar_t/a\\\n\
6935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6937 * Description of Vxworks_Needs_Vxtypes fix
6939 tSCC zVxworks_Needs_VxtypesName[] =
6940 "vxworks_needs_vxtypes";
6943 * File name selection pattern
6945 tSCC zVxworks_Needs_VxtypesList[] =
6948 * Machine/OS name selection pattern
6950 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
6953 * content selection pattern - do fix if pattern found
6955 tSCC zVxworks_Needs_VxtypesSelect0[] =
6956 "uint_t([ \t]+_clocks_per_sec)";
6958 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
6959 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
6960 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
6963 * Fix Command Arguments for Vxworks_Needs_Vxtypes
6965 static const char* apzVxworks_Needs_VxtypesPatch[] = {
6970 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6972 * Description of Vxworks_Needs_Vxworks fix
6974 tSCC zVxworks_Needs_VxworksName[] =
6975 "vxworks_needs_vxworks";
6978 * File name selection pattern
6980 tSCC zVxworks_Needs_VxworksList[] =
6983 * Machine/OS name selection pattern
6985 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
6988 * content selection pattern - do fix if pattern found
6990 tSCC zVxworks_Needs_VxworksSelect0[] =
6991 "#[ \t]define[ \t]+__INCstath";
6994 * perform the 'test' shell command - do fix on success
6996 tSCC zVxworks_Needs_VxworksTest0[] =
6997 " -r types/vxTypesOld.h";
6998 tSCC zVxworks_Needs_VxworksTest1[] =
6999 " -n \"`egrep '#include' $file`\"";
7000 tSCC zVxworks_Needs_VxworksTest2[] =
7001 " -n \"`egrep ULONG $file`\"";
7003 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
7004 static tTestDesc aVxworks_Needs_VxworksTests[] = {
7005 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
7006 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
7007 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
7008 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
7011 * Fix Command Arguments for Vxworks_Needs_Vxworks
7013 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
7014 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
7015 #include <types/vxTypesOld.h>\n",
7018 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7020 * Description of Vxworks_Time fix
7022 tSCC zVxworks_TimeName[] =
7026 * File name selection pattern
7028 tSCC zVxworks_TimeList[] =
7031 * Machine/OS name selection pattern
7033 #define apzVxworks_TimeMachs (const char**)NULL
7036 * content selection pattern - do fix if pattern found
7038 tSCC zVxworks_TimeSelect0[] =
7039 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
7042 * perform the 'test' shell command - do fix on success
7044 tSCC zVxworks_TimeTest0[] =
7047 #define VXWORKS_TIME_TEST_CT 2
7048 static tTestDesc aVxworks_TimeTests[] = {
7049 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
7050 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
7053 * Fix Command Arguments for Vxworks_Time
7055 static const char* apzVxworks_TimePatch[] = {
7057 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
7058 #ifdef __cplusplus\n\
7059 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
7061 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
7063 #define __gcc_VOIDFUNCPTR_defined\n\
7065 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
7068 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7070 * Description of X11_Class fix
7072 tSCC zX11_ClassName[] =
7076 * File name selection pattern
7078 tSCC zX11_ClassList[] =
7081 * Machine/OS name selection pattern
7083 #define apzX11_ClassMachs (const char**)NULL
7086 * content selection pattern - do fix if pattern found
7088 tSCC zX11_ClassSelect0[] =
7089 "^([ \t]*char \\*)class;(.*)";
7092 * content bypass pattern - skip fix if pattern found
7094 tSCC zX11_ClassBypass0[] =
7097 #define X11_CLASS_TEST_CT 2
7098 static tTestDesc aX11_ClassTests[] = {
7099 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
7100 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
7103 * Fix Command Arguments for X11_Class
7105 static const char* apzX11_ClassPatch[] = {
7107 "#ifdef __cplusplus\n\
7114 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7116 * Description of X11_Class_Usage fix
7118 tSCC zX11_Class_UsageName[] =
7122 * File name selection pattern
7124 tSCC zX11_Class_UsageList[] =
7125 "Xm/BaseClassI.h\0";
7127 * Machine/OS name selection pattern
7129 #define apzX11_Class_UsageMachs (const char**)NULL
7132 * content selection pattern - do fix if pattern found
7134 tSCC zX11_Class_UsageSelect0[] =
7138 * content bypass pattern - skip fix if pattern found
7140 tSCC zX11_Class_UsageBypass0[] =
7143 #define X11_CLASS_USAGE_TEST_CT 2
7144 static tTestDesc aX11_Class_UsageTests[] = {
7145 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
7146 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
7149 * Fix Command Arguments for X11_Class_Usage
7151 static const char* apzX11_Class_UsagePatch[] = {
7156 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7158 * Description of X11_New fix
7160 tSCC zX11_NewName[] =
7164 * File name selection pattern
7166 tSCC zX11_NewList[] =
7169 * Machine/OS name selection pattern
7171 #define apzX11_NewMachs (const char**)NULL
7174 * content bypass pattern - skip fix if pattern found
7176 tSCC zX11_NewBypass0[] =
7179 #define X11_NEW_TEST_CT 1
7180 static tTestDesc aX11_NewTests[] = {
7181 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
7184 * Fix Command Arguments for X11_New
7186 static const char* apzX11_NewPatch[] = { sed_cmd_z,
7187 "-e", "/Widget\told, new;/i\\\n\
7188 #ifdef __cplusplus\\\n\
7189 \tWidget\told, c_new;\\\n\
7191 "-e", "/Widget\told, new;/a\\\n\
7193 "-e", "s/Widget new,/Widget c_new,/g",
7196 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7198 * Description of X11_Sprintf fix
7200 tSCC zX11_SprintfName[] =
7204 * File name selection pattern
7206 tSCC zX11_SprintfList[] =
7207 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
7209 * Machine/OS name selection pattern
7211 #define apzX11_SprintfMachs (const char**)NULL
7214 * content selection pattern - do fix if pattern found
7216 tSCC zX11_SprintfSelect0[] =
7217 "^extern char \\*\tsprintf\\(\\);$";
7219 #define X11_SPRINTF_TEST_CT 1
7220 static tTestDesc aX11_SprintfTests[] = {
7221 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
7224 * Fix Command Arguments for X11_Sprintf
7226 static const char* apzX11_SprintfPatch[] = {
7228 "#ifndef __STDC__\n\
7230 #endif /* !defined __STDC__ */",
7234 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7238 #define REGEX_COUNT 223
7239 #define MACH_LIST_SIZE_LIMIT 181
7240 #define FIX_COUNT 178
7243 * Enumerate the fixes
7246 AAB_AIX_STDIO_FIXIDX,
7247 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
7248 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
7249 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
7250 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
7251 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
7252 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
7253 AAB_SUN_MEMCPY_FIXIDX,
7255 AIX_SYSMACHINE_FIXIDX,
7256 AIX_SYSWAIT_2_FIXIDX,
7257 AIX_VOLATILE_FIXIDX,
7258 ALPHA___ASSERT_FIXIDX,
7259 ALPHA___EXTERN_PREFIX_FIXIDX,
7260 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
7261 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
7262 ALPHA_ASSERT_FIXIDX,
7263 ALPHA_BAD_LVAL_FIXIDX,
7264 ALPHA_GETOPT_FIXIDX,
7265 ALPHA_IF_SEMICOLON_FIXIDX,
7266 ALPHA_PARENS_FIXIDX,
7267 ALPHA_PTHREAD_FIXIDX,
7268 ALPHA_PTHREAD_GCC_FIXIDX,
7269 ALPHA_PTHREAD_INIT_FIXIDX,
7272 AVOID_BOOL_DEFINE_FIXIDX,
7273 AVOID_BOOL_TYPE_FIXIDX,
7274 AVOID_WCHAR_T_TYPE_FIXIDX,
7275 BAD_STRUCT_TERM_FIXIDX,
7277 BROKEN_ASSERT_STDIO_FIXIDX,
7278 BROKEN_ASSERT_STDLIB_FIXIDX,
7281 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
7282 CTRL_QUOTES_DEF_FIXIDX,
7283 CTRL_QUOTES_USE_FIXIDX,
7285 DARWIN_EXTERNC_FIXIDX,
7286 DARWIN_GCC4_BREAKAGE_FIXIDX,
7287 DARWIN_PRIVATE_EXTERN_FIXIDX,
7288 DEC_INTERN_ASM_FIXIDX,
7289 DJGPP_WCHAR_H_FIXIDX,
7291 FREEBSD_GCC3_BREAKAGE_FIXIDX,
7292 FREEBSD_GCC4_BREAKAGE_FIXIDX,
7293 GLIBC_C99_INLINE_1_FIXIDX,
7294 GLIBC_C99_INLINE_1A_FIXIDX,
7295 GLIBC_C99_INLINE_2_FIXIDX,
7296 GLIBC_C99_INLINE_3_FIXIDX,
7297 GLIBC_C99_INLINE_4_FIXIDX,
7298 GLIBC_MUTEX_INIT_FIXIDX,
7299 GLIBC_TGMATH_FIXIDX,
7303 HPPA_HPUX_FP_MACROS_FIXIDX,
7304 HPUX10_CPP_POW_INLINE_FIXIDX,
7305 HPUX11_CPP_POW_INLINE_FIXIDX,
7306 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
7307 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
7308 HPUX10_STDIO_DECLARATIONS_FIXIDX,
7310 HPUX11_FABSF_FIXIDX,
7311 HPUX11_PTHREAD_CONST_FIXIDX,
7312 HPUX11_SIZE_T_FIXIDX,
7313 HPUX11_SNPRINTF_FIXIDX,
7314 HPUX11_UINT32_C_FIXIDX,
7315 HPUX11_VSNPRINTF_FIXIDX,
7316 HPUX8_BOGUS_INLINES_FIXIDX,
7317 HPUX_CTYPE_MACROS_FIXIDX,
7319 HPUX_LONG_DOUBLE_FIXIDX,
7320 HPUX_SYSTIME_FIXIDX,
7321 HPUX_SPU_INFO_FIXIDX,
7322 HPUX11_EXTERN_SENDFILE_FIXIDX,
7323 HPUX11_EXTERN_SENDPATH_FIXIDX,
7324 HPUX_EXTERN_ERRNO_FIXIDX,
7325 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
7326 HUGE_VAL_HEX_FIXIDX,
7327 HUGE_VALF_HEX_FIXIDX,
7328 HUGE_VALL_HEX_FIXIDX,
7329 INT_ABORT_FREE_AND_EXIT_FIXIDX,
7330 IO_QUOTES_DEF_FIXIDX,
7331 IO_QUOTES_USE_FIXIDX,
7332 IP_MISSING_SEMI_FIXIDX,
7333 IRIX___RESTRICT_FIXIDX,
7334 IRIX___GENERIC1_FIXIDX,
7335 IRIX___GENERIC2_FIXIDX,
7336 IRIX_ASM_APOSTROPHE_FIXIDX,
7337 IRIX_LIMITS_CONST_FIXIDX,
7338 IRIX_SOCKLEN_T_FIXIDX,
7339 IRIX_STDINT_C99_FIXIDX,
7340 IRIX_STDIO_VA_LIST_FIXIDX,
7341 IRIX_WCSFTIME_FIXIDX,
7343 ISC_OMITS_WITH_STDC_FIXIDX,
7344 KANDR_CONCAT_FIXIDX,
7345 LINUX_IA64_UCONTEXT_FIXIDX,
7346 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
7347 LYNXOS_MISSING_PUTENV_FIXIDX,
7348 MACHINE_ANSI_H_VA_LIST_FIXIDX,
7349 MACHINE_NAME_FIXIDX,
7350 MATH_EXCEPTION_FIXIDX,
7351 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
7352 NESTED_AUTH_DES_FIXIDX,
7353 NESTED_SYS_LIMITS_FIXIDX,
7354 NETBSD_C99_INLINE_1_FIXIDX,
7355 NETBSD_C99_INLINE_2_FIXIDX,
7356 NETBSD_EXTRA_SEMICOLON_FIXIDX,
7357 NEXT_MATH_PREFIX_FIXIDX,
7358 NEXT_TEMPLATE_FIXIDX,
7359 NEXT_VOLITILE_FIXIDX,
7360 NEXT_WAIT_UNION_FIXIDX,
7361 NODEENT_SYNTAX_FIXIDX,
7362 OPENBSD_NULL_DEFINITION_FIXIDX,
7363 OBSTACK_LVALUE_CAST_FIXIDX,
7364 OPENBSD_VA_START_FIXIDX,
7365 OSF_NAMESPACE_A_FIXIDX,
7366 OSF_NAMESPACE_C_FIXIDX,
7367 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
7368 READ_RET_TYPE_FIXIDX,
7369 RPC_XDR_LVALUE_CAST_A_FIXIDX,
7370 RPC_XDR_LVALUE_CAST_B_FIXIDX,
7371 RS6000_DOUBLE_FIXIDX,
7372 RS6000_FCHMOD_FIXIDX,
7373 RS6000_PARAM_FIXIDX,
7375 SOLARIS_MATH_1_FIXIDX,
7376 SOLARIS_MATH_2_FIXIDX,
7377 SOLARIS_MATH_3_FIXIDX,
7378 SOLARIS_MATH_4_FIXIDX,
7379 SOLARIS_MATH_8_FIXIDX,
7380 SOLARIS_MATH_9_FIXIDX,
7381 SOLARIS_MATH_10_FIXIDX,
7382 SOLARIS_MUTEX_INIT_2_FIXIDX,
7383 SOLARIS_RWLOCK_INIT_1_FIXIDX,
7384 SOLARIS_ONCE_INIT_1_FIXIDX,
7385 SOLARIS_ONCE_INIT_2_FIXIDX,
7386 SOLARIS_STDIO_TAG_FIXIDX,
7388 STDIO_STDARG_H_FIXIDX,
7389 STDIO_VA_LIST_FIXIDX,
7390 STDIO_VA_LIST_CLIENTS_FIXIDX,
7391 STRICT_ANSI_NOT_FIXIDX,
7392 STRICT_ANSI_NOT_CTD_FIXIDX,
7393 STRICT_ANSI_ONLY_FIXIDX,
7395 STRUCT_SOCKADDR_FIXIDX,
7396 SUN_AUTH_PROTO_FIXIDX,
7397 SUN_BOGUS_IFDEF_FIXIDX,
7398 SUN_CATMACRO_FIXIDX,
7400 SUN_RUSERS_SEMI_FIXIDX,
7402 SUNOS_STRLEN_FIXIDX,
7403 SVR4_DISABLE_OPT_FIXIDX,
7406 SVR4_SIGHANDLER_TYPE_FIXIDX,
7407 SVR4_UNDECLARED_GETRNGE_FIXIDX,
7408 SYSV68_STRING_FIXIDX,
7409 SYSZ_STDLIB_FOR_SUN_FIXIDX,
7410 THREAD_KEYWORD_FIXIDX,
7411 TINFO_CPLUSPLUS_FIXIDX,
7412 ULTRIX_CONST_FIXIDX,
7413 ULTRIX_CONST2_FIXIDX,
7414 VA_I960_MACRO_FIXIDX,
7416 VXWORKS_GCC_PROBLEM_FIXIDX,
7417 VXWORKS_NEEDS_VXTYPES_FIXIDX,
7418 VXWORKS_NEEDS_VXWORKS_FIXIDX,
7419 VXWORKS_TIME_FIXIDX,
7421 X11_CLASS_USAGE_FIXIDX,
7426 tFixDesc fixDescList[ FIX_COUNT ] = {
7427 { zAab_Aix_StdioName, zAab_Aix_StdioList,
7428 apzAab_Aix_StdioMachs,
7429 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7430 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
7432 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
7433 apzAab_Darwin7_9_Long_Double_FuncsMachs,
7434 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7435 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
7437 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
7438 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
7439 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7440 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
7442 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
7443 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
7444 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7445 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
7447 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
7448 apzAab_Fd_Zero_Gnu_Types_HMachs,
7449 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7450 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
7452 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
7453 apzAab_Fd_Zero_Selectbits_HMachs,
7454 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7455 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
7457 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
7458 apzAab_Solaris_Sys_Varargs_HMachs,
7459 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7460 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
7462 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
7463 apzAab_Sun_MemcpyMachs,
7464 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7465 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
7467 { zAix_PthreadName, zAix_PthreadList,
7468 apzAix_PthreadMachs,
7469 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7470 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
7472 { zAix_SysmachineName, zAix_SysmachineList,
7473 apzAix_SysmachineMachs,
7474 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7475 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
7477 { zAix_Syswait_2Name, zAix_Syswait_2List,
7478 apzAix_Syswait_2Machs,
7479 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7480 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
7482 { zAix_VolatileName, zAix_VolatileList,
7483 apzAix_VolatileMachs,
7484 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7485 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
7487 { zAlpha___AssertName, zAlpha___AssertList,
7488 apzAlpha___AssertMachs,
7489 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7490 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
7492 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
7493 apzAlpha___Extern_PrefixMachs,
7494 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7495 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
7497 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
7498 apzAlpha___Extern_Prefix_StandardsMachs,
7499 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7500 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
7502 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
7503 apzAlpha___Extern_Prefix_Sys_StatMachs,
7504 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7505 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
7507 { zAlpha_AssertName, zAlpha_AssertList,
7508 apzAlpha_AssertMachs,
7509 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7510 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
7512 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
7513 apzAlpha_Bad_LvalMachs,
7514 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
7515 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
7517 { zAlpha_GetoptName, zAlpha_GetoptList,
7518 apzAlpha_GetoptMachs,
7519 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7520 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
7522 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
7523 apzAlpha_If_SemicolonMachs,
7524 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7525 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
7527 { zAlpha_ParensName, zAlpha_ParensList,
7528 apzAlpha_ParensMachs,
7529 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7530 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
7532 { zAlpha_PthreadName, zAlpha_PthreadList,
7533 apzAlpha_PthreadMachs,
7534 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7535 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
7537 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
7538 apzAlpha_Pthread_GccMachs,
7539 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7540 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
7542 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
7543 apzAlpha_Pthread_InitMachs,
7544 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
7545 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
7547 { zAlpha_SbrkName, zAlpha_SbrkList,
7549 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7550 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
7552 { zAlpha_WcharName, zAlpha_WcharList,
7553 apzAlpha_WcharMachs,
7554 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
7555 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
7557 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
7558 apzAvoid_Bool_DefineMachs,
7559 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7560 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
7562 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
7563 apzAvoid_Bool_TypeMachs,
7564 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7565 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
7567 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
7568 apzAvoid_Wchar_T_TypeMachs,
7569 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7570 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
7572 { zBad_Struct_TermName, zBad_Struct_TermList,
7573 apzBad_Struct_TermMachs,
7574 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7575 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
7577 { zBadquoteName, zBadquoteList,
7579 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7580 aBadquoteTests, apzBadquotePatch, 0 },
7582 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
7583 apzBroken_Assert_StdioMachs,
7584 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7585 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
7587 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
7588 apzBroken_Assert_StdlibMachs,
7589 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7590 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
7592 { zBroken_CabsName, zBroken_CabsList,
7593 apzBroken_CabsMachs,
7594 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
7595 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
7597 { zBroken_NanName, zBroken_NanList,
7599 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7600 aBroken_NanTests, apzBroken_NanPatch, 0 },
7602 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
7603 apzBsd_Stdio_Attrs_ConflictMachs,
7604 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7605 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
7607 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
7608 apzCtrl_Quotes_DefMachs,
7609 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7610 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
7612 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
7613 apzCtrl_Quotes_UseMachs,
7614 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7615 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
7617 { zCxx_UnreadyName, zCxx_UnreadyList,
7618 apzCxx_UnreadyMachs,
7619 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7620 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
7622 { zDarwin_ExterncName, zDarwin_ExterncList,
7623 apzDarwin_ExterncMachs,
7624 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7625 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
7627 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
7628 apzDarwin_Gcc4_BreakageMachs,
7629 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7630 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
7632 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
7633 apzDarwin_Private_ExternMachs,
7634 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7635 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
7637 { zDec_Intern_AsmName, zDec_Intern_AsmList,
7638 apzDec_Intern_AsmMachs,
7639 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
7640 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
7642 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
7643 apzDjgpp_Wchar_HMachs,
7644 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7645 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
7647 { zEcd_CursorName, zEcd_CursorList,
7649 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7650 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
7652 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
7653 apzFreebsd_Gcc3_BreakageMachs,
7654 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7655 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
7657 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
7658 apzFreebsd_Gcc4_BreakageMachs,
7659 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7660 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
7662 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
7663 apzGlibc_C99_Inline_1Machs,
7664 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7665 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
7667 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
7668 apzGlibc_C99_Inline_1aMachs,
7669 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7670 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
7672 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
7673 apzGlibc_C99_Inline_2Machs,
7674 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
7675 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
7677 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
7678 apzGlibc_C99_Inline_3Machs,
7679 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7680 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
7682 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
7683 apzGlibc_C99_Inline_4Machs,
7684 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7685 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
7687 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
7688 apzGlibc_Mutex_InitMachs,
7689 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
7690 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
7692 { zGlibc_TgmathName, zGlibc_TgmathList,
7693 apzGlibc_TgmathMachs,
7694 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7695 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
7697 { zGnu_TypesName, zGnu_TypesList,
7699 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
7700 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
7702 { zHp_InlineName, zHp_InlineList,
7704 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7705 aHp_InlineTests, apzHp_InlinePatch, 0 },
7707 { zHp_SysfileName, zHp_SysfileList,
7709 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7710 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
7712 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
7713 apzHppa_Hpux_Fp_MacrosMachs,
7714 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7715 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
7717 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
7718 apzHpux10_Cpp_Pow_InlineMachs,
7719 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7720 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
7722 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
7723 apzHpux11_Cpp_Pow_InlineMachs,
7724 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7725 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
7727 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
7728 apzHpux10_Ctype_Declarations1Machs,
7729 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7730 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
7732 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
7733 apzHpux10_Ctype_Declarations2Machs,
7734 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7735 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
7737 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
7738 apzHpux10_Stdio_DeclarationsMachs,
7739 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7740 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
7742 { zHpux11_AbsName, zHpux11_AbsList,
7744 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7745 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
7747 { zHpux11_FabsfName, zHpux11_FabsfList,
7748 apzHpux11_FabsfMachs,
7749 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7750 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
7752 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
7753 apzHpux11_Pthread_ConstMachs,
7754 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7755 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
7757 { zHpux11_Size_TName, zHpux11_Size_TList,
7758 apzHpux11_Size_TMachs,
7759 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7760 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
7762 { zHpux11_SnprintfName, zHpux11_SnprintfList,
7763 apzHpux11_SnprintfMachs,
7764 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7765 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
7767 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
7768 apzHpux11_Uint32_CMachs,
7769 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7770 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
7772 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
7773 apzHpux11_VsnprintfMachs,
7774 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7775 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
7777 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
7778 apzHpux8_Bogus_InlinesMachs,
7779 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
7780 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
7782 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
7783 apzHpux_Ctype_MacrosMachs,
7784 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7785 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
7787 { zHpux_HtonlName, zHpux_HtonlList,
7789 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7790 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
7792 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
7793 apzHpux_Long_DoubleMachs,
7794 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
7795 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
7797 { zHpux_SystimeName, zHpux_SystimeList,
7798 apzHpux_SystimeMachs,
7799 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7800 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
7802 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
7803 apzHpux_Spu_InfoMachs,
7804 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7805 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
7807 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
7808 apzHpux11_Extern_SendfileMachs,
7809 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7810 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
7812 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
7813 apzHpux11_Extern_SendpathMachs,
7814 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7815 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
7817 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
7818 apzHpux_Extern_ErrnoMachs,
7819 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7820 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
7822 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
7823 apzHpux_Pthread_InitializersMachs,
7824 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
7825 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
7827 { zHuge_Val_HexName, zHuge_Val_HexList,
7828 apzHuge_Val_HexMachs,
7829 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7830 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
7832 { zHuge_Valf_HexName, zHuge_Valf_HexList,
7833 apzHuge_Valf_HexMachs,
7834 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7835 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
7837 { zHuge_Vall_HexName, zHuge_Vall_HexList,
7838 apzHuge_Vall_HexMachs,
7839 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7840 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
7842 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
7843 apzInt_Abort_Free_And_ExitMachs,
7844 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7845 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
7847 { zIo_Quotes_DefName, zIo_Quotes_DefList,
7848 apzIo_Quotes_DefMachs,
7849 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7850 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
7852 { zIo_Quotes_UseName, zIo_Quotes_UseList,
7853 apzIo_Quotes_UseMachs,
7854 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7855 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
7857 { zIp_Missing_SemiName, zIp_Missing_SemiList,
7858 apzIp_Missing_SemiMachs,
7859 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
7860 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
7862 { zIrix___RestrictName, zIrix___RestrictList,
7863 apzIrix___RestrictMachs,
7864 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7865 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
7867 { zIrix___Generic1Name, zIrix___Generic1List,
7868 apzIrix___Generic1Machs,
7869 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7870 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
7872 { zIrix___Generic2Name, zIrix___Generic2List,
7873 apzIrix___Generic2Machs,
7874 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7875 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
7877 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
7878 apzIrix_Asm_ApostropheMachs,
7879 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7880 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
7882 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
7883 apzIrix_Limits_ConstMachs,
7884 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7885 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
7887 { zIrix_Socklen_TName, zIrix_Socklen_TList,
7888 apzIrix_Socklen_TMachs,
7889 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7890 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
7892 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
7893 apzIrix_Stdint_C99Machs,
7894 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7895 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
7897 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
7898 apzIrix_Stdio_Va_ListMachs,
7899 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7900 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
7902 { zIrix_WcsftimeName, zIrix_WcsftimeList,
7903 apzIrix_WcsftimeMachs,
7904 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7905 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
7907 { zIsc_FmodName, zIsc_FmodList,
7909 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7910 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
7912 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
7913 apzIsc_Omits_With_StdcMachs,
7914 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7915 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
7917 { zKandr_ConcatName, zKandr_ConcatList,
7918 apzKandr_ConcatMachs,
7919 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7920 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
7922 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
7923 apzLinux_Ia64_UcontextMachs,
7924 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7925 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
7927 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
7928 apzLynxos_No_Warning_In_Sys_Time_HMachs,
7929 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7930 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
7932 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
7933 apzLynxos_Missing_PutenvMachs,
7934 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7935 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
7937 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
7938 apzMachine_Ansi_H_Va_ListMachs,
7939 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7940 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
7942 { zMachine_NameName, zMachine_NameList,
7943 apzMachine_NameMachs,
7944 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7945 aMachine_NameTests, apzMachine_NamePatch, 0 },
7947 { zMath_ExceptionName, zMath_ExceptionList,
7948 apzMath_ExceptionMachs,
7949 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7950 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
7952 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
7953 apzMath_Huge_Val_From_Dbl_MaxMachs,
7954 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
7955 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
7957 { zNested_Auth_DesName, zNested_Auth_DesList,
7958 apzNested_Auth_DesMachs,
7959 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7960 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
7962 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
7963 apzNested_Sys_LimitsMachs,
7964 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
7965 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
7967 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
7968 apzNetbsd_C99_Inline_1Machs,
7969 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7970 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
7972 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
7973 apzNetbsd_C99_Inline_2Machs,
7974 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7975 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
7977 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
7978 apzNetbsd_Extra_SemicolonMachs,
7979 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7980 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
7982 { zNext_Math_PrefixName, zNext_Math_PrefixList,
7983 apzNext_Math_PrefixMachs,
7984 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7985 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
7987 { zNext_TemplateName, zNext_TemplateList,
7988 apzNext_TemplateMachs,
7989 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7990 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
7992 { zNext_VolitileName, zNext_VolitileList,
7993 apzNext_VolitileMachs,
7994 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7995 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
7997 { zNext_Wait_UnionName, zNext_Wait_UnionList,
7998 apzNext_Wait_UnionMachs,
7999 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8000 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
8002 { zNodeent_SyntaxName, zNodeent_SyntaxList,
8003 apzNodeent_SyntaxMachs,
8004 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8005 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
8007 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
8008 apzOpenbsd_Null_DefinitionMachs,
8009 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8010 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
8012 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
8013 apzObstack_Lvalue_CastMachs,
8014 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8015 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
8017 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
8018 apzOpenbsd_Va_StartMachs,
8019 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8020 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
8022 { zOsf_Namespace_AName, zOsf_Namespace_AList,
8023 apzOsf_Namespace_AMachs,
8024 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8025 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
8027 { zOsf_Namespace_CName, zOsf_Namespace_CList,
8028 apzOsf_Namespace_CMachs,
8029 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8030 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
8032 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
8033 apzPthread_Incomplete_Struct_ArgumentMachs,
8034 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8035 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
8037 { zRead_Ret_TypeName, zRead_Ret_TypeList,
8038 apzRead_Ret_TypeMachs,
8039 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8040 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
8042 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
8043 apzRpc_Xdr_Lvalue_Cast_AMachs,
8044 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8045 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
8047 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
8048 apzRpc_Xdr_Lvalue_Cast_BMachs,
8049 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8050 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
8052 { zRs6000_DoubleName, zRs6000_DoubleList,
8053 apzRs6000_DoubleMachs,
8054 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8055 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
8057 { zRs6000_FchmodName, zRs6000_FchmodList,
8058 apzRs6000_FchmodMachs,
8059 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8060 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
8062 { zRs6000_ParamName, zRs6000_ParamList,
8063 apzRs6000_ParamMachs,
8064 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8065 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
8067 { zSco_MathName, zSco_MathList,
8069 SCO_MATH_TEST_CT, FD_MACH_ONLY,
8070 aSco_MathTests, apzSco_MathPatch, 0 },
8072 { zSolaris_Math_1Name, zSolaris_Math_1List,
8073 apzSolaris_Math_1Machs,
8074 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8075 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
8077 { zSolaris_Math_2Name, zSolaris_Math_2List,
8078 apzSolaris_Math_2Machs,
8079 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8080 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
8082 { zSolaris_Math_3Name, zSolaris_Math_3List,
8083 apzSolaris_Math_3Machs,
8084 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8085 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
8087 { zSolaris_Math_4Name, zSolaris_Math_4List,
8088 apzSolaris_Math_4Machs,
8089 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8090 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
8092 { zSolaris_Math_8Name, zSolaris_Math_8List,
8093 apzSolaris_Math_8Machs,
8094 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8095 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
8097 { zSolaris_Math_9Name, zSolaris_Math_9List,
8098 apzSolaris_Math_9Machs,
8099 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8100 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
8102 { zSolaris_Math_10Name, zSolaris_Math_10List,
8103 apzSolaris_Math_10Machs,
8104 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8105 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
8107 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
8108 apzSolaris_Mutex_Init_2Machs,
8109 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8110 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
8112 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
8113 apzSolaris_Rwlock_Init_1Machs,
8114 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8115 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
8117 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
8118 apzSolaris_Once_Init_1Machs,
8119 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8120 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
8122 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
8123 apzSolaris_Once_Init_2Machs,
8124 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8125 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
8127 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
8128 apzSolaris_Stdio_TagMachs,
8129 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
8130 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
8132 { zStatsswtchName, zStatsswtchList,
8134 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8135 aStatsswtchTests, apzStatsswtchPatch, 0 },
8137 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
8138 apzStdio_Stdarg_HMachs,
8139 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
8140 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
8142 { zStdio_Va_ListName, zStdio_Va_ListList,
8143 apzStdio_Va_ListMachs,
8144 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
8145 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
8147 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
8148 apzStdio_Va_List_ClientsMachs,
8149 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
8150 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
8152 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
8153 apzStrict_Ansi_NotMachs,
8154 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8155 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
8157 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
8158 apzStrict_Ansi_Not_CtdMachs,
8159 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8160 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
8162 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
8163 apzStrict_Ansi_OnlyMachs,
8164 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8165 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
8167 { zStruct_FileName, zStruct_FileList,
8168 apzStruct_FileMachs,
8169 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8170 aStruct_FileTests, apzStruct_FilePatch, 0 },
8172 { zStruct_SockaddrName, zStruct_SockaddrList,
8173 apzStruct_SockaddrMachs,
8174 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8175 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
8177 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
8178 apzSun_Auth_ProtoMachs,
8179 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8180 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
8182 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
8183 apzSun_Bogus_IfdefMachs,
8184 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8185 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
8187 { zSun_CatmacroName, zSun_CatmacroList,
8188 apzSun_CatmacroMachs,
8189 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8190 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
8192 { zSun_MallocName, zSun_MallocList,
8194 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
8195 aSun_MallocTests, apzSun_MallocPatch, 0 },
8197 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
8198 apzSun_Rusers_SemiMachs,
8199 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
8200 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
8202 { zSun_SignalName, zSun_SignalList,
8204 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8205 aSun_SignalTests, apzSun_SignalPatch, 0 },
8207 { zSunos_StrlenName, zSunos_StrlenList,
8208 apzSunos_StrlenMachs,
8209 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8210 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
8212 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
8213 apzSvr4_Disable_OptMachs,
8214 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
8215 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
8217 { zSvr4_GetcwdName, zSvr4_GetcwdList,
8218 apzSvr4_GetcwdMachs,
8219 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8220 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
8222 { zSvr4_ProfilName, zSvr4_ProfilList,
8223 apzSvr4_ProfilMachs,
8224 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8225 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
8227 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
8228 apzSvr4_Sighandler_TypeMachs,
8229 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8230 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
8232 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
8233 apzSvr4_Undeclared_GetrngeMachs,
8234 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8235 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
8237 { zSysv68_StringName, zSysv68_StringList,
8238 apzSysv68_StringMachs,
8239 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
8240 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
8242 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
8243 apzSysz_Stdlib_For_SunMachs,
8244 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8245 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
8247 { zThread_KeywordName, zThread_KeywordList,
8248 apzThread_KeywordMachs,
8249 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8250 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
8252 { zTinfo_CplusplusName, zTinfo_CplusplusList,
8253 apzTinfo_CplusplusMachs,
8254 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8255 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
8257 { zUltrix_ConstName, zUltrix_ConstList,
8258 apzUltrix_ConstMachs,
8259 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8260 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
8262 { zUltrix_Const2Name, zUltrix_Const2List,
8263 apzUltrix_Const2Machs,
8264 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8265 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
8267 { zVa_I960_MacroName, zVa_I960_MacroList,
8268 apzVa_I960_MacroMachs,
8269 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8270 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
8272 { zVoid_NullName, zVoid_NullList,
8274 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8275 aVoid_NullTests, apzVoid_NullPatch, 0 },
8277 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
8278 apzVxworks_Gcc_ProblemMachs,
8279 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
8280 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
8282 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
8283 apzVxworks_Needs_VxtypesMachs,
8284 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8285 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
8287 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
8288 apzVxworks_Needs_VxworksMachs,
8289 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
8290 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
8292 { zVxworks_TimeName, zVxworks_TimeList,
8293 apzVxworks_TimeMachs,
8294 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8295 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
8297 { zX11_ClassName, zX11_ClassList,
8299 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8300 aX11_ClassTests, apzX11_ClassPatch, 0 },
8302 { zX11_Class_UsageName, zX11_Class_UsageList,
8303 apzX11_Class_UsageMachs,
8304 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8305 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
8307 { zX11_NewName, zX11_NewList,
8309 X11_NEW_TEST_CT, FD_MACH_ONLY,
8310 aX11_NewTests, apzX11_NewPatch, 0 },
8312 { zX11_SprintfName, zX11_SprintfList,
8313 apzX11_SprintfMachs,
8314 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8315 aX11_SprintfTests, apzX11_SprintfPatch, 0 }