1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Wednesday December 31, 2008 at 02:49:07 PM CET
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Wed Dec 31 14:49:07 CET 2008
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 fix
562 tSCC zAix_SyswaitName[] =
566 * File name selection pattern
568 tSCC zAix_SyswaitList[] =
571 * Machine/OS name selection pattern
573 #define apzAix_SyswaitMachs (const char**)NULL
576 * content selection pattern - do fix if pattern found
578 tSCC zAix_SyswaitSelect0[] =
579 "^extern pid_t wait3\\(\\);\n";
580 tSCC zAix_SyswaitSelect1[] =
583 #define AIX_SYSWAIT_TEST_CT 2
584 static tTestDesc aAix_SyswaitTests[] = {
585 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
586 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
589 * Fix Command Arguments for Aix_Syswait
591 static const char* apzAix_SyswaitPatch[] = {
597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
599 * Description of Aix_Syswait_2 fix
601 tSCC zAix_Syswait_2Name[] =
605 * File name selection pattern
607 tSCC zAix_Syswait_2List[] =
610 * Machine/OS name selection pattern
612 #define apzAix_Syswait_2Machs (const char**)NULL
615 * content selection pattern - do fix if pattern found
617 tSCC zAix_Syswait_2Select0[] =
618 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
620 #define AIX_SYSWAIT_2_TEST_CT 1
621 static tTestDesc aAix_Syswait_2Tests[] = {
622 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
625 * Fix Command Arguments for Aix_Syswait_2
627 static const char* apzAix_Syswait_2Patch[] = {
632 /* * * * * * * * * * * * * * * * * * * * * * * * * *
634 * Description of Aix_Volatile fix
636 tSCC zAix_VolatileName[] =
640 * File name selection pattern
642 tSCC zAix_VolatileList[] =
645 * Machine/OS name selection pattern
647 #define apzAix_VolatileMachs (const char**)NULL
650 * content selection pattern - do fix if pattern found
652 tSCC zAix_VolatileSelect0[] =
653 "typedef volatile int sig_atomic_t";
655 #define AIX_VOLATILE_TEST_CT 1
656 static tTestDesc aAix_VolatileTests[] = {
657 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
660 * Fix Command Arguments for Aix_Volatile
662 static const char* apzAix_VolatilePatch[] = {
664 "typedef int sig_atomic_t",
667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
669 * Description of Alpha___Assert fix
671 tSCC zAlpha___AssertName[] =
675 * File name selection pattern
677 tSCC zAlpha___AssertList[] =
680 * Machine/OS name selection pattern
682 #define apzAlpha___AssertMachs (const char**)NULL
685 * content selection pattern - do fix if pattern found
687 tSCC zAlpha___AssertSelect0[] =
688 "__assert\\(char \\*, char \\*, int\\)";
690 #define ALPHA___ASSERT_TEST_CT 1
691 static tTestDesc aAlpha___AssertTests[] = {
692 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
695 * Fix Command Arguments for Alpha___Assert
697 static const char* apzAlpha___AssertPatch[] = {
699 "__assert(const char *, const char *, int)",
702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
704 * Description of Alpha___Extern_Prefix fix
706 tSCC zAlpha___Extern_PrefixName[] =
707 "alpha___extern_prefix";
710 * File name selection pattern
712 #define zAlpha___Extern_PrefixList (char*)NULL
714 * Machine/OS name selection pattern
716 tSCC* apzAlpha___Extern_PrefixMachs[] = {
721 * content selection pattern - do fix if pattern found
723 tSCC zAlpha___Extern_PrefixSelect0[] =
724 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
725 (#[ \t]*pragma[ \t]*extern_prefix.*)";
727 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
728 static tTestDesc aAlpha___Extern_PrefixTests[] = {
729 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
732 * Fix Command Arguments for Alpha___Extern_Prefix
734 static const char* apzAlpha___Extern_PrefixPatch[] = {
736 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
742 * Description of Alpha___Extern_Prefix_Standards fix
744 tSCC zAlpha___Extern_Prefix_StandardsName[] =
745 "alpha___extern_prefix_standards";
748 * File name selection pattern
750 tSCC zAlpha___Extern_Prefix_StandardsList[] =
753 * Machine/OS name selection pattern
755 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
760 * content selection pattern - do fix if pattern found
762 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
763 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
765 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
766 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
767 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
770 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
772 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
774 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
779 * Description of Alpha___Extern_Prefix_Sys_Stat fix
781 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
782 "alpha___extern_prefix_sys_stat";
785 * File name selection pattern
787 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
788 "sys/stat.h\0sys/mount.h\0";
790 * Machine/OS name selection pattern
792 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
797 * content selection pattern - do fix if pattern found
799 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
800 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
802 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
803 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
804 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
807 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
809 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
811 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
814 /* * * * * * * * * * * * * * * * * * * * * * * * * *
816 * Description of Alpha_Assert fix
818 tSCC zAlpha_AssertName[] =
822 * File name selection pattern
824 tSCC zAlpha_AssertList[] =
827 * Machine/OS name selection pattern
829 #define apzAlpha_AssertMachs (const char**)NULL
832 * content selection pattern - do fix if pattern found
834 tSCC zAlpha_AssertSelect0[] =
835 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
837 #define ALPHA_ASSERT_TEST_CT 1
838 static tTestDesc aAlpha_AssertTests[] = {
839 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
842 * Fix Command Arguments for Alpha_Assert
844 static const char* apzAlpha_AssertPatch[] = {
849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
851 * Description of Alpha_Bad_Lval fix
853 tSCC zAlpha_Bad_LvalName[] =
857 * File name selection pattern
859 #define zAlpha_Bad_LvalList (char*)NULL
861 * Machine/OS name selection pattern
863 tSCC* apzAlpha_Bad_LvalMachs[] = {
868 * content selection pattern - do fix if pattern found
870 tSCC zAlpha_Bad_LvalSelect0[] =
871 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
873 #define ALPHA_BAD_LVAL_TEST_CT 1
874 static tTestDesc aAlpha_Bad_LvalTests[] = {
875 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
878 * Fix Command Arguments for Alpha_Bad_Lval
880 static const char* apzAlpha_Bad_LvalPatch[] = { sed_cmd_z,
881 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
884 /* * * * * * * * * * * * * * * * * * * * * * * * * *
886 * Description of Alpha_Getopt fix
888 tSCC zAlpha_GetoptName[] =
892 * File name selection pattern
894 tSCC zAlpha_GetoptList[] =
895 "stdio.h\0stdlib.h\0";
897 * Machine/OS name selection pattern
899 #define apzAlpha_GetoptMachs (const char**)NULL
902 * content selection pattern - do fix if pattern found
904 tSCC zAlpha_GetoptSelect0[] =
905 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
907 #define ALPHA_GETOPT_TEST_CT 1
908 static tTestDesc aAlpha_GetoptTests[] = {
909 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
912 * Fix Command Arguments for Alpha_Getopt
914 static const char* apzAlpha_GetoptPatch[] = {
916 "getopt(int, char *const[], const char *)",
919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
921 * Description of Alpha_Parens fix
923 tSCC zAlpha_ParensName[] =
927 * File name selection pattern
929 tSCC zAlpha_ParensList[] =
932 * Machine/OS name selection pattern
934 #define apzAlpha_ParensMachs (const char**)NULL
937 * content selection pattern - do fix if pattern found
939 tSCC zAlpha_ParensSelect0[] =
940 "#ifndef\\(__mips64\\)";
942 #define ALPHA_PARENS_TEST_CT 1
943 static tTestDesc aAlpha_ParensTests[] = {
944 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
947 * Fix Command Arguments for Alpha_Parens
949 static const char* apzAlpha_ParensPatch[] = {
954 /* * * * * * * * * * * * * * * * * * * * * * * * * *
956 * Description of Alpha_Pthread fix
958 tSCC zAlpha_PthreadName[] =
962 * File name selection pattern
964 tSCC zAlpha_PthreadList[] =
967 * Machine/OS name selection pattern
969 tSCC* apzAlpha_PthreadMachs[] = {
974 * content selection pattern - do fix if pattern found
976 tSCC zAlpha_PthreadSelect0[] =
977 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
978 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
980 #define ALPHA_PTHREAD_TEST_CT 1
981 static tTestDesc aAlpha_PthreadTests[] = {
982 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
985 * Fix Command Arguments for Alpha_Pthread
987 static const char* apzAlpha_PthreadPatch[] = {
989 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
995 * Description of Alpha_Pthread_Gcc fix
997 tSCC zAlpha_Pthread_GccName[] =
1001 * File name selection pattern
1003 tSCC zAlpha_Pthread_GccList[] =
1006 * Machine/OS name selection pattern
1008 tSCC* apzAlpha_Pthread_GccMachs[] = {
1010 (const char*)NULL };
1013 * content selection pattern - do fix if pattern found
1015 tSCC zAlpha_Pthread_GccSelect0[] =
1017 # error <pthread.h>: unrecognized compiler.";
1019 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1020 static tTestDesc aAlpha_Pthread_GccTests[] = {
1021 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1024 * Fix Command Arguments for Alpha_Pthread_Gcc
1026 static const char* apzAlpha_Pthread_GccPatch[] = {
1028 "#elif defined (__GNUC__)\n\
1029 # define _PTHREAD_ENV_GCC\n\
1033 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1035 * Description of Alpha_Pthread_Init fix
1037 tSCC zAlpha_Pthread_InitName[] =
1038 "alpha_pthread_init";
1041 * File name selection pattern
1043 tSCC zAlpha_Pthread_InitList[] =
1046 * Machine/OS name selection pattern
1048 tSCC* apzAlpha_Pthread_InitMachs[] = {
1050 (const char*)NULL };
1053 * content selection pattern - do fix if pattern found
1055 tSCC zAlpha_Pthread_InitSelect0[] =
1056 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1058 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1059 static tTestDesc aAlpha_Pthread_InitTests[] = {
1060 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1063 * Fix Command Arguments for Alpha_Pthread_Init
1065 static const char* apzAlpha_Pthread_InitPatch[] = { sed_cmd_z,
1066 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1067 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1068 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1069 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1070 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1071 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1074 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1076 * Description of Alpha_Sbrk fix
1078 tSCC zAlpha_SbrkName[] =
1082 * File name selection pattern
1084 tSCC zAlpha_SbrkList[] =
1087 * Machine/OS name selection pattern
1089 #define apzAlpha_SbrkMachs (const char**)NULL
1092 * content selection pattern - do fix if pattern found
1094 tSCC zAlpha_SbrkSelect0[] =
1095 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1097 #define ALPHA_SBRK_TEST_CT 1
1098 static tTestDesc aAlpha_SbrkTests[] = {
1099 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1102 * Fix Command Arguments for Alpha_Sbrk
1104 static const char* apzAlpha_SbrkPatch[] = {
1109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1111 * Description of Alpha_Wchar fix
1113 tSCC zAlpha_WcharName[] =
1117 * File name selection pattern
1119 tSCC zAlpha_WcharList[] =
1122 * Machine/OS name selection pattern
1124 tSCC* apzAlpha_WcharMachs[] = {
1126 (const char*)NULL };
1129 * content selection pattern - do fix if pattern found
1131 tSCC zAlpha_WcharSelect0[] =
1132 "#define wcstok wcstok_r";
1134 #define ALPHA_WCHAR_TEST_CT 1
1135 static tTestDesc aAlpha_WcharTests[] = {
1136 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1139 * Fix Command Arguments for Alpha_Wchar
1141 static const char* apzAlpha_WcharPatch[] = { sed_cmd_z,
1142 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1143 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1148 * Description of Avoid_Bool_Define fix
1150 tSCC zAvoid_Bool_DefineName[] =
1151 "avoid_bool_define";
1154 * File name selection pattern
1156 tSCC zAvoid_Bool_DefineList[] =
1157 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1159 * Machine/OS name selection pattern
1161 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1164 * content selection pattern - do fix if pattern found
1166 tSCC zAvoid_Bool_DefineSelect0[] =
1167 "#[ \t]*define[ \t]+bool[ \t]";
1170 * content bypass pattern - skip fix if pattern found
1172 tSCC zAvoid_Bool_DefineBypass0[] =
1175 #define AVOID_BOOL_DEFINE_TEST_CT 2
1176 static tTestDesc aAvoid_Bool_DefineTests[] = {
1177 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1178 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1181 * Fix Command Arguments for Avoid_Bool_Define
1183 static const char* apzAvoid_Bool_DefinePatch[] = {
1185 "#ifndef __cplusplus\n\
1188 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1191 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1193 * Description of Avoid_Bool_Type fix
1195 tSCC zAvoid_Bool_TypeName[] =
1199 * File name selection pattern
1201 tSCC zAvoid_Bool_TypeList[] =
1202 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1204 * Machine/OS name selection pattern
1206 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1209 * content selection pattern - do fix if pattern found
1211 tSCC zAvoid_Bool_TypeSelect0[] =
1212 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1215 * content bypass pattern - skip fix if pattern found
1217 tSCC zAvoid_Bool_TypeBypass0[] =
1220 #define AVOID_BOOL_TYPE_TEST_CT 2
1221 static tTestDesc aAvoid_Bool_TypeTests[] = {
1222 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1223 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1226 * Fix Command Arguments for Avoid_Bool_Type
1228 static const char* apzAvoid_Bool_TypePatch[] = {
1230 "#ifndef __cplusplus\n\
1235 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1237 * Description of Avoid_Wchar_T_Type fix
1239 tSCC zAvoid_Wchar_T_TypeName[] =
1240 "avoid_wchar_t_type";
1243 * File name selection pattern
1245 #define zAvoid_Wchar_T_TypeList (char*)NULL
1247 * Machine/OS name selection pattern
1249 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1252 * content selection pattern - do fix if pattern found
1254 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1255 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1258 * content bypass pattern - skip fix if pattern found
1260 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1262 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1264 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1265 "XFree86: xc/lib/X11/Xlib\\.h";
1267 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1268 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1269 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1270 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1271 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1272 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1275 * Fix Command Arguments for Avoid_Wchar_T_Type
1277 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1279 "#ifndef __cplusplus\n\
1284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1286 * Description of Bad_Struct_Term fix
1288 tSCC zBad_Struct_TermName[] =
1292 * File name selection pattern
1294 tSCC zBad_Struct_TermList[] =
1297 * Machine/OS name selection pattern
1299 #define apzBad_Struct_TermMachs (const char**)NULL
1302 * content selection pattern - do fix if pattern found
1304 tSCC zBad_Struct_TermSelect0[] =
1305 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1307 #define BAD_STRUCT_TERM_TEST_CT 1
1308 static tTestDesc aBad_Struct_TermTests[] = {
1309 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1312 * Fix Command Arguments for Bad_Struct_Term
1314 static const char* apzBad_Struct_TermPatch[] = {
1319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1321 * Description of Badquote fix
1323 tSCC zBadquoteName[] =
1327 * File name selection pattern
1329 tSCC zBadquoteList[] =
1330 "sundev/vuid_event.h\0";
1332 * Machine/OS name selection pattern
1334 #define apzBadquoteMachs (const char**)NULL
1337 * content selection pattern - do fix if pattern found
1339 tSCC zBadquoteSelect0[] =
1342 #define BADQUOTE_TEST_CT 1
1343 static tTestDesc aBadquoteTests[] = {
1344 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1347 * Fix Command Arguments for Badquote
1349 static const char* apzBadquotePatch[] = {
1354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1356 * Description of Broken_Assert_Stdio fix
1358 tSCC zBroken_Assert_StdioName[] =
1359 "broken_assert_stdio";
1362 * File name selection pattern
1364 tSCC zBroken_Assert_StdioList[] =
1367 * Machine/OS name selection pattern
1369 #define apzBroken_Assert_StdioMachs (const char**)NULL
1372 * content selection pattern - do fix if pattern found
1374 tSCC zBroken_Assert_StdioSelect0[] =
1378 * content bypass pattern - skip fix if pattern found
1380 tSCC zBroken_Assert_StdioBypass0[] =
1381 "include.*stdio\\.h";
1383 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1384 static tTestDesc aBroken_Assert_StdioTests[] = {
1385 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1386 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1389 * Fix Command Arguments for Broken_Assert_Stdio
1391 static const char* apzBroken_Assert_StdioPatch[] = {
1393 "#include <stdio.h>\n",
1396 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1398 * Description of Broken_Assert_Stdlib fix
1400 tSCC zBroken_Assert_StdlibName[] =
1401 "broken_assert_stdlib";
1404 * File name selection pattern
1406 tSCC zBroken_Assert_StdlibList[] =
1409 * Machine/OS name selection pattern
1411 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1414 * content selection pattern - do fix if pattern found
1416 tSCC zBroken_Assert_StdlibSelect0[] =
1417 "exit *\\(|abort *\\(";
1420 * content bypass pattern - skip fix if pattern found
1422 tSCC zBroken_Assert_StdlibBypass0[] =
1423 "include.*stdlib\\.h";
1425 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1426 static tTestDesc aBroken_Assert_StdlibTests[] = {
1427 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1428 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1431 * Fix Command Arguments for Broken_Assert_Stdlib
1433 static const char* apzBroken_Assert_StdlibPatch[] = {
1435 "#ifdef __cplusplus\n\
1436 #include <stdlib.h>\n\
1440 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1442 * Description of Broken_Cabs fix
1444 tSCC zBroken_CabsName[] =
1448 * File name selection pattern
1450 tSCC zBroken_CabsList[] =
1451 "math.h\0architecture/*/math.h\0";
1453 * Machine/OS name selection pattern
1455 #define apzBroken_CabsMachs (const char**)NULL
1458 * content selection pattern - do fix if pattern found
1460 tSCC zBroken_CabsSelect0[] =
1461 "^extern[ \t]+double[ \t]+cabs";
1463 #define BROKEN_CABS_TEST_CT 1
1464 static tTestDesc aBroken_CabsTests[] = {
1465 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1468 * Fix Command Arguments for Broken_Cabs
1470 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1471 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1472 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1475 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1477 * Description of Broken_Nan fix
1479 tSCC zBroken_NanName[] =
1483 * File name selection pattern
1485 tSCC zBroken_NanList[] =
1486 "architecture/ppc/math.h\0architecture/*/math.h\0";
1488 * Machine/OS name selection pattern
1490 #define apzBroken_NanMachs (const char**)NULL
1493 * content selection pattern - do fix if pattern found
1495 tSCC zBroken_NanSelect0[] =
1496 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1499 * content bypass pattern - skip fix if pattern found
1501 tSCC zBroken_NanBypass0[] =
1504 #define BROKEN_NAN_TEST_CT 2
1505 static tTestDesc aBroken_NanTests[] = {
1506 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1507 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1510 * Fix Command Arguments for Broken_Nan
1512 static const char* apzBroken_NanPatch[] = {
1517 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1519 * Description of Bsd_Stdio_Attrs_Conflict fix
1521 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1522 "bsd_stdio_attrs_conflict";
1525 * File name selection pattern
1527 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1530 * Machine/OS name selection pattern
1532 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1535 (const char*)NULL };
1538 * content selection pattern - do fix if pattern found
1540 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1541 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1543 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1544 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1545 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1548 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1550 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1552 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1553 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1554 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1557 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1559 * Description of Ctrl_Quotes_Def fix
1561 tSCC zCtrl_Quotes_DefName[] =
1565 * File name selection pattern
1567 #define zCtrl_Quotes_DefList (char*)NULL
1569 * Machine/OS name selection pattern
1571 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1574 * content selection pattern - do fix if pattern found
1576 tSCC zCtrl_Quotes_DefSelect0[] =
1577 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1579 #define CTRL_QUOTES_DEF_TEST_CT 1
1580 static tTestDesc aCtrl_Quotes_DefTests[] = {
1581 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1584 * Fix Command Arguments for Ctrl_Quotes_Def
1586 static const char* apzCtrl_Quotes_DefPatch[] = {
1591 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1593 * Description of Ctrl_Quotes_Use fix
1595 tSCC zCtrl_Quotes_UseName[] =
1599 * File name selection pattern
1601 #define zCtrl_Quotes_UseList (char*)NULL
1603 * Machine/OS name selection pattern
1605 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1608 * content selection pattern - do fix if pattern found
1610 tSCC zCtrl_Quotes_UseSelect0[] =
1611 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1613 #define CTRL_QUOTES_USE_TEST_CT 1
1614 static tTestDesc aCtrl_Quotes_UseTests[] = {
1615 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1618 * Fix Command Arguments for Ctrl_Quotes_Use
1620 static const char* apzCtrl_Quotes_UsePatch[] = {
1625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1627 * Description of Cxx_Unready fix
1629 tSCC zCxx_UnreadyName[] =
1633 * File name selection pattern
1635 tSCC zCxx_UnreadyList[] =
1636 "sys/mman.h\0rpc/types.h\0";
1638 * Machine/OS name selection pattern
1640 #define apzCxx_UnreadyMachs (const char**)NULL
1643 * content selection pattern - do fix if pattern found
1645 tSCC zCxx_UnreadySelect0[] =
1649 * content bypass pattern - skip fix if pattern found
1651 tSCC zCxx_UnreadyBypass0[] =
1652 "\"C\"|__BEGIN_DECLS";
1654 #define CXX_UNREADY_TEST_CT 2
1655 static tTestDesc aCxx_UnreadyTests[] = {
1656 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1657 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1660 * Fix Command Arguments for Cxx_Unready
1662 static const char* apzCxx_UnreadyPatch[] = {
1664 "#ifdef __cplusplus\n\
1667 "#ifdef __cplusplus\n\
1672 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1674 * Description of Darwin_Externc fix
1676 tSCC zDarwin_ExterncName[] =
1680 * File name selection pattern
1682 tSCC zDarwin_ExterncList[] =
1683 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1685 * Machine/OS name selection pattern
1687 tSCC* apzDarwin_ExterncMachs[] = {
1689 (const char*)NULL };
1692 * content bypass pattern - skip fix if pattern found
1694 tSCC zDarwin_ExterncBypass0[] =
1696 tSCC zDarwin_ExterncBypass1[] =
1699 #define DARWIN_EXTERNC_TEST_CT 2
1700 static tTestDesc aDarwin_ExterncTests[] = {
1701 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1702 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1705 * Fix Command Arguments for Darwin_Externc
1707 static const char* apzDarwin_ExterncPatch[] = {
1709 "#ifdef __cplusplus\n\
1712 "#ifdef __cplusplus\n\
1717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1719 * Description of Darwin_Gcc4_Breakage fix
1721 tSCC zDarwin_Gcc4_BreakageName[] =
1722 "darwin_gcc4_breakage";
1725 * File name selection pattern
1727 tSCC zDarwin_Gcc4_BreakageList[] =
1728 "AvailabilityMacros.h\0";
1730 * Machine/OS name selection pattern
1732 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1734 (const char*)NULL };
1737 * content selection pattern - do fix if pattern found
1739 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1740 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1742 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1743 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1744 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1747 * Fix Command Arguments for Darwin_Gcc4_Breakage
1749 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1751 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1754 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1756 * Description of Darwin_Private_Extern fix
1758 tSCC zDarwin_Private_ExternName[] =
1759 "darwin_private_extern";
1762 * File name selection pattern
1764 tSCC zDarwin_Private_ExternList[] =
1767 * Machine/OS name selection pattern
1769 tSCC* apzDarwin_Private_ExternMachs[] = {
1771 (const char*)NULL };
1774 * content selection pattern - do fix if pattern found
1776 tSCC zDarwin_Private_ExternSelect0[] =
1777 "__private_extern__ [a-z_]+ _dyld_";
1779 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1780 static tTestDesc aDarwin_Private_ExternTests[] = {
1781 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1784 * Fix Command Arguments for Darwin_Private_Extern
1786 static const char* apzDarwin_Private_ExternPatch[] = {
1789 "__private_extern__",
1792 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1794 * Description of Dec_Intern_Asm fix
1796 tSCC zDec_Intern_AsmName[] =
1800 * File name selection pattern
1802 tSCC zDec_Intern_AsmList[] =
1805 * Machine/OS name selection pattern
1807 #define apzDec_Intern_AsmMachs (const char**)NULL
1808 #define DEC_INTERN_ASM_TEST_CT 0
1809 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1812 * Fix Command Arguments for Dec_Intern_Asm
1814 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
1815 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1817 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1821 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1823 * Description of Djgpp_Wchar_H fix
1825 tSCC zDjgpp_Wchar_HName[] =
1829 * File name selection pattern
1831 #define zDjgpp_Wchar_HList (char*)NULL
1833 * Machine/OS name selection pattern
1835 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1838 * content selection pattern - do fix if pattern found
1840 tSCC zDjgpp_Wchar_HSelect0[] =
1844 * content bypass pattern - skip fix if pattern found
1846 tSCC zDjgpp_Wchar_HBypass0[] =
1849 #define DJGPP_WCHAR_H_TEST_CT 2
1850 static tTestDesc aDjgpp_Wchar_HTests[] = {
1851 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1852 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1855 * Fix Command Arguments for Djgpp_Wchar_H
1857 static const char* apzDjgpp_Wchar_HPatch[] = {
1860 #include <sys/djtypes.h>",
1861 "#include <stddef.h>",
1864 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1866 * Description of Ecd_Cursor fix
1868 tSCC zEcd_CursorName[] =
1872 * File name selection pattern
1874 tSCC zEcd_CursorList[] =
1875 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
1877 * Machine/OS name selection pattern
1879 #define apzEcd_CursorMachs (const char**)NULL
1882 * content selection pattern - do fix if pattern found
1884 tSCC zEcd_CursorSelect0[] =
1887 #define ECD_CURSOR_TEST_CT 1
1888 static tTestDesc aEcd_CursorTests[] = {
1889 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1892 * Fix Command Arguments for Ecd_Cursor
1894 static const char* apzEcd_CursorPatch[] = {
1899 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1901 * Description of Exception_Structure fix
1903 tSCC zException_StructureName[] =
1904 "exception_structure";
1907 * File name selection pattern
1909 tSCC zException_StructureList[] =
1912 * Machine/OS name selection pattern
1914 #define apzException_StructureMachs (const char**)NULL
1917 * content selection pattern - do fix if pattern found
1919 tSCC zException_StructureSelect0[] =
1923 * content bypass pattern - skip fix if pattern found
1925 tSCC zException_StructureBypass0[] =
1926 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
1928 #define EXCEPTION_STRUCTURE_TEST_CT 2
1929 static tTestDesc aException_StructureTests[] = {
1930 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
1931 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
1934 * Fix Command Arguments for Exception_Structure
1936 static const char* apzException_StructurePatch[] = {
1938 "struct exception;\n",
1941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1943 * Description of Freebsd_Gcc3_Breakage fix
1945 tSCC zFreebsd_Gcc3_BreakageName[] =
1946 "freebsd_gcc3_breakage";
1949 * File name selection pattern
1951 tSCC zFreebsd_Gcc3_BreakageList[] =
1954 * Machine/OS name selection pattern
1956 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1958 (const char*)NULL };
1961 * content selection pattern - do fix if pattern found
1963 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1964 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1967 * content bypass pattern - skip fix if pattern found
1969 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1970 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1972 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1973 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1974 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1975 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1978 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1980 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1982 "%0 || __GNUC__ >= 3",
1985 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1987 * Description of Freebsd_Gcc4_Breakage fix
1989 tSCC zFreebsd_Gcc4_BreakageName[] =
1990 "freebsd_gcc4_breakage";
1993 * File name selection pattern
1995 tSCC zFreebsd_Gcc4_BreakageList[] =
1998 * Machine/OS name selection pattern
2000 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2002 (const char*)NULL };
2005 * content selection pattern - do fix if pattern found
2007 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2008 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2010 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2011 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2012 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2015 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2017 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2019 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2022 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2024 * Description of Glibc_C99_Inline_1 fix
2026 tSCC zGlibc_C99_Inline_1Name[] =
2027 "glibc_c99_inline_1";
2030 * File name selection pattern
2032 tSCC zGlibc_C99_Inline_1List[] =
2033 "features.h\0*/features.h\0";
2035 * Machine/OS name selection pattern
2037 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2040 * content selection pattern - do fix if pattern found
2042 tSCC zGlibc_C99_Inline_1Select0[] =
2043 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2045 #define GLIBC_C99_INLINE_1_TEST_CT 1
2046 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2047 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2050 * Fix Command Arguments for Glibc_C99_Inline_1
2052 static const char* apzGlibc_C99_Inline_1Patch[] = {
2054 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2059 * Description of Glibc_C99_Inline_1a fix
2061 tSCC zGlibc_C99_Inline_1aName[] =
2062 "glibc_c99_inline_1a";
2065 * File name selection pattern
2067 tSCC zGlibc_C99_Inline_1aList[] =
2068 "features.h\0*/features.h\0";
2070 * Machine/OS name selection pattern
2072 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2075 * content selection pattern - do fix if pattern found
2077 tSCC zGlibc_C99_Inline_1aSelect0[] =
2078 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2079 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2081 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2082 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2083 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2086 * Fix Command Arguments for Glibc_C99_Inline_1a
2088 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2090 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2094 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2096 * Description of Glibc_C99_Inline_2 fix
2098 tSCC zGlibc_C99_Inline_2Name[] =
2099 "glibc_c99_inline_2";
2102 * File name selection pattern
2104 tSCC zGlibc_C99_Inline_2List[] =
2105 "sys/stat.h\0*/sys/stat.h\0";
2107 * Machine/OS name selection pattern
2109 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2112 * content selection pattern - do fix if pattern found
2114 tSCC zGlibc_C99_Inline_2Select0[] =
2115 "extern __inline__ int";
2117 #define GLIBC_C99_INLINE_2_TEST_CT 1
2118 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2119 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2122 * Fix Command Arguments for Glibc_C99_Inline_2
2124 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2125 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2128 __inline__ int \\1/",
2129 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2132 __inline__ int __REDIRECT\\1 (\\2/",
2133 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2139 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2141 * Description of Glibc_C99_Inline_3 fix
2143 tSCC zGlibc_C99_Inline_3Name[] =
2144 "glibc_c99_inline_3";
2147 * File name selection pattern
2149 tSCC zGlibc_C99_Inline_3List[] =
2150 "bits/string2.h\0*/bits/string2.h\0";
2152 * Machine/OS name selection pattern
2154 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2157 * content selection pattern - do fix if pattern found
2159 tSCC zGlibc_C99_Inline_3Select0[] =
2163 * content bypass pattern - skip fix if pattern found
2165 tSCC zGlibc_C99_Inline_3Bypass0[] =
2166 "__extern_inline|__GNU_STDC_INLINE__";
2168 #define GLIBC_C99_INLINE_3_TEST_CT 2
2169 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2170 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2171 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2174 * Fix Command Arguments for Glibc_C99_Inline_3
2176 static const char* apzGlibc_C99_Inline_3Patch[] = {
2178 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2179 "^# ifdef __cplusplus$",
2182 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2184 * Description of Glibc_C99_Inline_4 fix
2186 tSCC zGlibc_C99_Inline_4Name[] =
2187 "glibc_c99_inline_4";
2190 * File name selection pattern
2192 tSCC zGlibc_C99_Inline_4List[] =
2193 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2195 * Machine/OS name selection pattern
2197 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2200 * content selection pattern - do fix if pattern found
2202 tSCC zGlibc_C99_Inline_4Select0[] =
2203 "(^| )extern __inline";
2206 * content bypass pattern - skip fix if pattern found
2208 tSCC zGlibc_C99_Inline_4Bypass0[] =
2209 "__extern_inline|__gnu_inline__";
2211 #define GLIBC_C99_INLINE_4_TEST_CT 2
2212 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2213 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2214 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2217 * Fix Command Arguments for Glibc_C99_Inline_4
2219 static const char* apzGlibc_C99_Inline_4Patch[] = {
2221 "%0 __attribute__ ((__gnu_inline__))",
2224 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2226 * Description of Glibc_Mutex_Init fix
2228 tSCC zGlibc_Mutex_InitName[] =
2232 * File name selection pattern
2234 tSCC zGlibc_Mutex_InitList[] =
2237 * Machine/OS name selection pattern
2239 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2242 * content selection pattern - do fix if pattern found
2244 tSCC zGlibc_Mutex_InitSelect0[] =
2245 "\\{ *\\{ *0, *\\} *\\}";
2247 #define GLIBC_MUTEX_INIT_TEST_CT 1
2248 static tTestDesc aGlibc_Mutex_InitTests[] = {
2249 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2252 * Fix Command Arguments for Glibc_Mutex_Init
2254 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2255 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2257 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2259 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2260 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2261 "-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/",
2262 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2263 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2268 * Description of Gnu_Types fix
2270 tSCC zGnu_TypesName[] =
2274 * File name selection pattern
2276 tSCC zGnu_TypesList[] =
2277 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2279 * Machine/OS name selection pattern
2281 tSCC* apzGnu_TypesMachs[] = {
2282 "*-*-solaris2.1[0-9]*",
2283 (const char*)NULL };
2286 * content selection pattern - do fix if pattern found
2288 tSCC zGnu_TypesSelect0[] =
2289 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2292 * content bypass pattern - skip fix if pattern found
2294 tSCC zGnu_TypesBypass0[] =
2295 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2297 #define GNU_TYPES_TEST_CT 2
2298 static tTestDesc aGnu_TypesTests[] = {
2299 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2300 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2303 * Fix Command Arguments for Gnu_Types
2305 static const char* apzGnu_TypesPatch[] = {
2309 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2311 * Description of Hp_Inline fix
2313 tSCC zHp_InlineName[] =
2317 * File name selection pattern
2319 tSCC zHp_InlineList[] =
2320 "sys/spinlock.h\0machine/machparam.h\0";
2322 * Machine/OS name selection pattern
2324 #define apzHp_InlineMachs (const char**)NULL
2327 * content selection pattern - do fix if pattern found
2329 tSCC zHp_InlineSelect0[] =
2330 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2332 #define HP_INLINE_TEST_CT 1
2333 static tTestDesc aHp_InlineTests[] = {
2334 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2337 * Fix Command Arguments for Hp_Inline
2339 static const char* apzHp_InlinePatch[] = {
2342 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2345 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2347 * Description of Hp_Sysfile fix
2349 tSCC zHp_SysfileName[] =
2353 * File name selection pattern
2355 tSCC zHp_SysfileList[] =
2358 * Machine/OS name selection pattern
2360 #define apzHp_SysfileMachs (const char**)NULL
2363 * content selection pattern - do fix if pattern found
2365 tSCC zHp_SysfileSelect0[] =
2368 #define HP_SYSFILE_TEST_CT 1
2369 static tTestDesc aHp_SysfileTests[] = {
2370 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2373 * Fix Command Arguments for Hp_Sysfile
2375 static const char* apzHp_SysfilePatch[] = {
2377 "(struct file *, ...)",
2381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2383 * Description of Hppa_Hpux_Fp_Macros fix
2385 tSCC zHppa_Hpux_Fp_MacrosName[] =
2386 "hppa_hpux_fp_macros";
2389 * File name selection pattern
2391 tSCC zHppa_Hpux_Fp_MacrosList[] =
2394 * Machine/OS name selection pattern
2396 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2398 (const char*)NULL };
2401 * content selection pattern - do fix if pattern found
2403 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2404 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2405 #[ \t]*define[ \t]*FP_ZERO.*\n\
2406 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2407 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2408 #[ \t]*define[ \t]*FP_NAN.*\n";
2410 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2411 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2412 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2415 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2417 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2419 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2420 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
2421 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2423 #ifdef _INCLUDE_HPUX_SOURCE\n",
2426 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2428 * Description of Hpux10_Cpp_Pow_Inline fix
2430 tSCC zHpux10_Cpp_Pow_InlineName[] =
2431 "hpux10_cpp_pow_inline";
2434 * File name selection pattern
2436 tSCC zHpux10_Cpp_Pow_InlineList[] =
2437 "fixinc-test-limits.h\0math.h\0";
2439 * Machine/OS name selection pattern
2441 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2444 * content selection pattern - do fix if pattern found
2446 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2447 "^# +ifdef +__cplusplus\n\
2449 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2450 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2452 +extern +\"C\" +\\{\n\
2456 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2457 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2458 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2461 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2463 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2468 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2470 * Description of Hpux11_Cpp_Pow_Inline fix
2472 tSCC zHpux11_Cpp_Pow_InlineName[] =
2473 "hpux11_cpp_pow_inline";
2476 * File name selection pattern
2478 tSCC zHpux11_Cpp_Pow_InlineList[] =
2481 * Machine/OS name selection pattern
2483 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2486 * content selection pattern - do fix if pattern found
2488 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2489 " +inline double pow\\(double d,int expon\\) \\{\n\
2490 +return pow\\(d, \\(double\\)expon\\);\n\
2493 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2494 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2495 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2498 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2500 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2505 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2507 * Description of Hpux10_Ctype_Declarations1 fix
2509 tSCC zHpux10_Ctype_Declarations1Name[] =
2510 "hpux10_ctype_declarations1";
2513 * File name selection pattern
2515 tSCC zHpux10_Ctype_Declarations1List[] =
2518 * Machine/OS name selection pattern
2520 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2523 * content selection pattern - do fix if pattern found
2525 tSCC zHpux10_Ctype_Declarations1Select0[] =
2526 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2529 * content bypass pattern - skip fix if pattern found
2531 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2532 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2534 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2535 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2536 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2537 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2540 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2542 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2544 "#ifdef _PROTOTYPES\n\
2545 extern int __tolower(int);\n\
2546 extern int __toupper(int);\n\
2547 #else /* NOT _PROTOTYPES */\n\
2548 extern int __tolower();\n\
2549 extern int __toupper();\n\
2550 #endif /* _PROTOTYPES */\n\n\
2554 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2556 * Description of Hpux10_Ctype_Declarations2 fix
2558 tSCC zHpux10_Ctype_Declarations2Name[] =
2559 "hpux10_ctype_declarations2";
2562 * File name selection pattern
2564 tSCC zHpux10_Ctype_Declarations2List[] =
2567 * Machine/OS name selection pattern
2569 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2572 * content selection pattern - do fix if pattern found
2574 tSCC zHpux10_Ctype_Declarations2Select0[] =
2575 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2578 * content bypass pattern - skip fix if pattern found
2580 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2581 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2583 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2584 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2585 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2586 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2589 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2591 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2594 #ifdef _PROTOTYPES\n\
2595 extern int _isalnum(int);\n\
2596 extern int _isalpha(int);\n\
2597 extern int _iscntrl(int);\n\
2598 extern int _isdigit(int);\n\
2599 extern int _isgraph(int);\n\
2600 extern int _islower(int);\n\
2601 extern int _isprint(int);\n\
2602 extern int _ispunct(int);\n\
2603 extern int _isspace(int);\n\
2604 extern int _isupper(int);\n\
2605 extern int _isxdigit(int);\n\
2606 # else /* not _PROTOTYPES */\n\
2607 extern int _isalnum();\n\
2608 extern int _isalpha();\n\
2609 extern int _iscntrl();\n\
2610 extern int _isdigit();\n\
2611 extern int _isgraph();\n\
2612 extern int _islower();\n\
2613 extern int _isprint();\n\
2614 extern int _ispunct();\n\
2615 extern int _isspace();\n\
2616 extern int _isupper();\n\
2617 extern int _isxdigit();\n\
2618 #endif /* _PROTOTYPES */\n",
2621 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2623 * Description of Hpux10_Stdio_Declarations fix
2625 tSCC zHpux10_Stdio_DeclarationsName[] =
2626 "hpux10_stdio_declarations";
2629 * File name selection pattern
2631 tSCC zHpux10_Stdio_DeclarationsList[] =
2634 * Machine/OS name selection pattern
2636 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2639 * content selection pattern - do fix if pattern found
2641 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2642 "^#[ \t]*define _iob[ \t]*__iob";
2645 * content bypass pattern - skip fix if pattern found
2647 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2648 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2650 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2651 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2652 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2653 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2656 * Fix Command Arguments for Hpux10_Stdio_Declarations
2658 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2661 # if defined(__STDC__) || defined(__cplusplus)\n\
2662 extern int snprintf(char *, size_t, const char *, ...);\n\
2663 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2664 # else /* not __STDC__) || __cplusplus */\n\
2665 extern int snprintf();\n\
2666 extern int vsnprintf();\n\
2667 # endif /* __STDC__) || __cplusplus */\n",
2670 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2672 * Description of Hpux11_Abs fix
2674 tSCC zHpux11_AbsName[] =
2678 * File name selection pattern
2680 tSCC zHpux11_AbsList[] =
2683 * Machine/OS name selection pattern
2685 tSCC* apzHpux11_AbsMachs[] = {
2687 (const char*)NULL };
2690 * content selection pattern - do fix if pattern found
2692 tSCC zHpux11_AbsSelect0[] =
2693 "ifndef _MATH_INCLUDED";
2695 #define HPUX11_ABS_TEST_CT 1
2696 static tTestDesc aHpux11_AbsTests[] = {
2697 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2700 * Fix Command Arguments for Hpux11_Abs
2702 static const char* apzHpux11_AbsPatch[] = {
2704 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2707 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2709 * Description of Hpux11_Fabsf fix
2711 tSCC zHpux11_FabsfName[] =
2715 * File name selection pattern
2717 tSCC zHpux11_FabsfList[] =
2720 * Machine/OS name selection pattern
2722 #define apzHpux11_FabsfMachs (const char**)NULL
2725 * content selection pattern - do fix if pattern found
2727 tSCC zHpux11_FabsfSelect0[] =
2728 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2731 * content bypass pattern - skip fix if pattern found
2733 tSCC zHpux11_FabsfBypass0[] =
2736 #define HPUX11_FABSF_TEST_CT 2
2737 static tTestDesc aHpux11_FabsfTests[] = {
2738 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2739 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2742 * Fix Command Arguments for Hpux11_Fabsf
2744 static const char* apzHpux11_FabsfPatch[] = {
2746 "#ifndef __cplusplus\n\
2751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2753 * Description of Hpux11_Pthread_Const fix
2755 tSCC zHpux11_Pthread_ConstName[] =
2756 "hpux11_pthread_const";
2759 * File name selection pattern
2761 tSCC zHpux11_Pthread_ConstList[] =
2764 * Machine/OS name selection pattern
2766 tSCC* apzHpux11_Pthread_ConstMachs[] = {
2767 "*-hp-hpux11.[0-3]*",
2768 (const char*)NULL };
2771 * content selection pattern - do fix if pattern found
2773 tSCC zHpux11_Pthread_ConstSelect0[] =
2774 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
2776 #define HPUX11_PTHREAD_CONST_TEST_CT 1
2777 static tTestDesc aHpux11_Pthread_ConstTests[] = {
2778 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
2781 * Fix Command Arguments for Hpux11_Pthread_Const
2783 static const char* apzHpux11_Pthread_ConstPatch[] = {
2785 "#define __POINTER_SET\t\t((void *) 1L)",
2788 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2790 * Description of Hpux11_Size_T fix
2792 tSCC zHpux11_Size_TName[] =
2796 * File name selection pattern
2798 #define zHpux11_Size_TList (char*)NULL
2800 * Machine/OS name selection pattern
2802 tSCC* apzHpux11_Size_TMachs[] = {
2804 (const char*)NULL };
2807 * content selection pattern - do fix if pattern found
2809 tSCC zHpux11_Size_TSelect0[] =
2812 #define HPUX11_SIZE_T_TEST_CT 1
2813 static tTestDesc aHpux11_Size_TTests[] = {
2814 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2817 * Fix Command Arguments for Hpux11_Size_T
2819 static const char* apzHpux11_Size_TPatch[] = {
2824 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2826 * Description of Hpux11_Snprintf fix
2828 tSCC zHpux11_SnprintfName[] =
2832 * File name selection pattern
2834 tSCC zHpux11_SnprintfList[] =
2837 * Machine/OS name selection pattern
2839 #define apzHpux11_SnprintfMachs (const char**)NULL
2842 * content selection pattern - do fix if pattern found
2844 tSCC zHpux11_SnprintfSelect0[] =
2845 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2847 #define HPUX11_SNPRINTF_TEST_CT 1
2848 static tTestDesc aHpux11_SnprintfTests[] = {
2849 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2852 * Fix Command Arguments for Hpux11_Snprintf
2854 static const char* apzHpux11_SnprintfPatch[] = {
2859 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2861 * Description of Hpux11_Uint32_C fix
2863 tSCC zHpux11_Uint32_CName[] =
2867 * File name selection pattern
2869 tSCC zHpux11_Uint32_CList[] =
2872 * Machine/OS name selection pattern
2874 #define apzHpux11_Uint32_CMachs (const char**)NULL
2877 * content selection pattern - do fix if pattern found
2879 tSCC zHpux11_Uint32_CSelect0[] =
2880 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2882 #define HPUX11_UINT32_C_TEST_CT 1
2883 static tTestDesc aHpux11_Uint32_CTests[] = {
2884 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2887 * Fix Command Arguments for Hpux11_Uint32_C
2889 static const char* apzHpux11_Uint32_CPatch[] = {
2891 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2896 * Description of Hpux11_Vsnprintf fix
2898 tSCC zHpux11_VsnprintfName[] =
2902 * File name selection pattern
2904 tSCC zHpux11_VsnprintfList[] =
2907 * Machine/OS name selection pattern
2909 #define apzHpux11_VsnprintfMachs (const char**)NULL
2912 * content selection pattern - do fix if pattern found
2914 tSCC zHpux11_VsnprintfSelect0[] =
2915 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2917 #define HPUX11_VSNPRINTF_TEST_CT 1
2918 static tTestDesc aHpux11_VsnprintfTests[] = {
2919 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2922 * Fix Command Arguments for Hpux11_Vsnprintf
2924 static const char* apzHpux11_VsnprintfPatch[] = {
2929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2931 * Description of Hpux8_Bogus_Inlines fix
2933 tSCC zHpux8_Bogus_InlinesName[] =
2934 "hpux8_bogus_inlines";
2937 * File name selection pattern
2939 tSCC zHpux8_Bogus_InlinesList[] =
2942 * Machine/OS name selection pattern
2944 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2947 * content selection pattern - do fix if pattern found
2949 tSCC zHpux8_Bogus_InlinesSelect0[] =
2953 * content bypass pattern - skip fix if pattern found
2955 tSCC zHpux8_Bogus_InlinesBypass0[] =
2958 #define HPUX8_BOGUS_INLINES_TEST_CT 2
2959 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2960 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
2961 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2964 * Fix Command Arguments for Hpux8_Bogus_Inlines
2966 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
2967 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2968 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2969 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2970 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2973 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2975 * Description of Hpux_Ctype_Macros fix
2977 tSCC zHpux_Ctype_MacrosName[] =
2978 "hpux_ctype_macros";
2981 * File name selection pattern
2983 tSCC zHpux_Ctype_MacrosList[] =
2986 * Machine/OS name selection pattern
2988 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2991 * content selection pattern - do fix if pattern found
2993 tSCC zHpux_Ctype_MacrosSelect0[] =
2994 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2996 #define HPUX_CTYPE_MACROS_TEST_CT 1
2997 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2998 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3001 * Fix Command Arguments for Hpux_Ctype_Macros
3003 static const char* apzHpux_Ctype_MacrosPatch[] = {
3008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3010 * Description of Hpux_Htonl fix
3012 tSCC zHpux_HtonlName[] =
3016 * File name selection pattern
3018 tSCC zHpux_HtonlList[] =
3021 * Machine/OS name selection pattern
3023 #define apzHpux_HtonlMachs (const char**)NULL
3026 * content selection pattern - do fix if pattern found
3028 tSCC zHpux_HtonlSelect0[] =
3029 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3031 \\* Macros for number representation conversion\\.\n\
3035 #define HPUX_HTONL_TEST_CT 1
3036 static tTestDesc aHpux_HtonlTests[] = {
3037 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3040 * Fix Command Arguments for Hpux_Htonl
3042 static const char* apzHpux_HtonlPatch[] = {
3048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3050 * Description of Hpux_Long_Double fix
3052 tSCC zHpux_Long_DoubleName[] =
3056 * File name selection pattern
3058 tSCC zHpux_Long_DoubleList[] =
3061 * Machine/OS name selection pattern
3063 #define apzHpux_Long_DoubleMachs (const char**)NULL
3066 * content selection pattern - do fix if pattern found
3068 tSCC zHpux_Long_DoubleSelect0[] =
3069 "extern[ \t]long_double[ \t]strtold";
3072 * content bypass pattern - skip fix if pattern found
3074 tSCC zHpux_Long_DoubleBypass0[] =
3077 #define HPUX_LONG_DOUBLE_TEST_CT 2
3078 static tTestDesc aHpux_Long_DoubleTests[] = {
3079 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3080 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3083 * Fix Command Arguments for Hpux_Long_Double
3085 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3086 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3087 "-e", "s/long_double/long double/g",
3090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3092 * Description of Hpux_Systime fix
3094 tSCC zHpux_SystimeName[] =
3098 * File name selection pattern
3100 tSCC zHpux_SystimeList[] =
3103 * Machine/OS name selection pattern
3105 #define apzHpux_SystimeMachs (const char**)NULL
3108 * content selection pattern - do fix if pattern found
3110 tSCC zHpux_SystimeSelect0[] =
3111 "^extern struct sigevent;";
3113 #define HPUX_SYSTIME_TEST_CT 1
3114 static tTestDesc aHpux_SystimeTests[] = {
3115 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3118 * Fix Command Arguments for Hpux_Systime
3120 static const char* apzHpux_SystimePatch[] = {
3125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3127 * Description of Hpux_Spu_Info fix
3129 tSCC zHpux_Spu_InfoName[] =
3133 * File name selection pattern
3135 tSCC zHpux_Spu_InfoList[] =
3136 "*/sys/getppdp.h\0";
3138 * Machine/OS name selection pattern
3140 tSCC* apzHpux_Spu_InfoMachs[] = {
3142 (const char*)NULL };
3145 * content selection pattern - do fix if pattern found
3147 tSCC zHpux_Spu_InfoSelect0[] =
3148 "^.*extern.*spu_info.*";
3150 #define HPUX_SPU_INFO_TEST_CT 1
3151 static tTestDesc aHpux_Spu_InfoTests[] = {
3152 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3155 * Fix Command Arguments for Hpux_Spu_Info
3157 static const char* apzHpux_Spu_InfoPatch[] = {
3164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3166 * Description of Hpux11_Extern_Sendfile fix
3168 tSCC zHpux11_Extern_SendfileName[] =
3169 "hpux11_extern_sendfile";
3172 * File name selection pattern
3174 tSCC zHpux11_Extern_SendfileList[] =
3177 * Machine/OS name selection pattern
3179 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3180 "*-hp-hpux11.[12]*",
3181 (const char*)NULL };
3184 * content selection pattern - do fix if pattern found
3186 tSCC zHpux11_Extern_SendfileSelect0[] =
3187 "^[ \t]*extern sbsize_t sendfile.*\n\
3190 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3191 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3192 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3195 * Fix Command Arguments for Hpux11_Extern_Sendfile
3197 static const char* apzHpux11_Extern_SendfilePatch[] = {
3199 "#ifndef _APP32_64BIT_OFF_T\n\
3203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3205 * Description of Hpux11_Extern_Sendpath fix
3207 tSCC zHpux11_Extern_SendpathName[] =
3208 "hpux11_extern_sendpath";
3211 * File name selection pattern
3213 tSCC zHpux11_Extern_SendpathList[] =
3216 * Machine/OS name selection pattern
3218 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3219 "*-hp-hpux11.[12]*",
3220 (const char*)NULL };
3223 * content selection pattern - do fix if pattern found
3225 tSCC zHpux11_Extern_SendpathSelect0[] =
3226 "^[ \t]*extern sbsize_t sendpath.*\n\
3229 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3230 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3231 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3234 * Fix Command Arguments for Hpux11_Extern_Sendpath
3236 static const char* apzHpux11_Extern_SendpathPatch[] = {
3238 "#ifndef _APP32_64BIT_OFF_T\n\
3242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3244 * Description of Hpux_Extern_Errno fix
3246 tSCC zHpux_Extern_ErrnoName[] =
3247 "hpux_extern_errno";
3250 * File name selection pattern
3252 tSCC zHpux_Extern_ErrnoList[] =
3255 * Machine/OS name selection pattern
3257 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3259 "*-hp-hpux11.[0-2]*",
3260 (const char*)NULL };
3263 * content selection pattern - do fix if pattern found
3265 tSCC zHpux_Extern_ErrnoSelect0[] =
3266 "^[ \t]*extern int errno;$";
3268 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3269 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3270 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3273 * Fix Command Arguments for Hpux_Extern_Errno
3275 static const char* apzHpux_Extern_ErrnoPatch[] = {
3277 "#ifdef __cplusplus\n\
3281 #ifdef __cplusplus\n\
3286 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3288 * Description of Hpux_Pthread_Initializers fix
3290 tSCC zHpux_Pthread_InitializersName[] =
3291 "hpux_pthread_initializers";
3294 * File name selection pattern
3296 tSCC zHpux_Pthread_InitializersList[] =
3299 * Machine/OS name selection pattern
3301 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3302 "*-hp-hpux11.[0-3]*",
3303 (const char*)NULL };
3304 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3305 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3308 * Fix Command Arguments for Hpux_Pthread_Initializers
3310 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3311 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3312 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3313 "-e", "/^[ \t]*0$/d",
3314 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3315 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3316 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3317 "-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\\\\@",
3318 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3319 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3320 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3321 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3322 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3323 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3326 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3328 * Description of Huge_Val_Hex fix
3330 tSCC zHuge_Val_HexName[] =
3334 * File name selection pattern
3336 tSCC zHuge_Val_HexList[] =
3337 "bits/huge_val.h\0";
3339 * Machine/OS name selection pattern
3341 #define apzHuge_Val_HexMachs (const char**)NULL
3344 * content selection pattern - do fix if pattern found
3346 tSCC zHuge_Val_HexSelect0[] =
3347 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3350 * content bypass pattern - skip fix if pattern found
3352 tSCC zHuge_Val_HexBypass0[] =
3353 "__builtin_huge_val";
3355 #define HUGE_VAL_HEX_TEST_CT 2
3356 static tTestDesc aHuge_Val_HexTests[] = {
3357 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3358 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3361 * Fix Command Arguments for Huge_Val_Hex
3363 static const char* apzHuge_Val_HexPatch[] = {
3365 "#define HUGE_VAL (__builtin_huge_val())\n",
3368 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3370 * Description of Huge_Valf_Hex fix
3372 tSCC zHuge_Valf_HexName[] =
3376 * File name selection pattern
3378 tSCC zHuge_Valf_HexList[] =
3379 "bits/huge_val.h\0";
3381 * Machine/OS name selection pattern
3383 #define apzHuge_Valf_HexMachs (const char**)NULL
3386 * content selection pattern - do fix if pattern found
3388 tSCC zHuge_Valf_HexSelect0[] =
3389 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3392 * content bypass pattern - skip fix if pattern found
3394 tSCC zHuge_Valf_HexBypass0[] =
3395 "__builtin_huge_valf";
3397 #define HUGE_VALF_HEX_TEST_CT 2
3398 static tTestDesc aHuge_Valf_HexTests[] = {
3399 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3400 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3403 * Fix Command Arguments for Huge_Valf_Hex
3405 static const char* apzHuge_Valf_HexPatch[] = {
3407 "#define HUGE_VALF (__builtin_huge_valf())\n",
3410 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3412 * Description of Huge_Vall_Hex fix
3414 tSCC zHuge_Vall_HexName[] =
3418 * File name selection pattern
3420 tSCC zHuge_Vall_HexList[] =
3421 "bits/huge_val.h\0";
3423 * Machine/OS name selection pattern
3425 #define apzHuge_Vall_HexMachs (const char**)NULL
3428 * content selection pattern - do fix if pattern found
3430 tSCC zHuge_Vall_HexSelect0[] =
3431 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3434 * content bypass pattern - skip fix if pattern found
3436 tSCC zHuge_Vall_HexBypass0[] =
3437 "__builtin_huge_vall";
3439 #define HUGE_VALL_HEX_TEST_CT 2
3440 static tTestDesc aHuge_Vall_HexTests[] = {
3441 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3442 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3445 * Fix Command Arguments for Huge_Vall_Hex
3447 static const char* apzHuge_Vall_HexPatch[] = {
3449 "#define HUGE_VALL (__builtin_huge_vall())\n",
3452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3454 * Description of Int_Abort_Free_And_Exit fix
3456 tSCC zInt_Abort_Free_And_ExitName[] =
3457 "int_abort_free_and_exit";
3460 * File name selection pattern
3462 tSCC zInt_Abort_Free_And_ExitList[] =
3465 * Machine/OS name selection pattern
3467 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3470 * content selection pattern - do fix if pattern found
3472 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3473 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3476 * content bypass pattern - skip fix if pattern found
3478 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3479 "_CLASSIC_ANSI_TYPES";
3481 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3482 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3483 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3484 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3487 * Fix Command Arguments for Int_Abort_Free_And_Exit
3489 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3494 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3496 * Description of Io_Quotes_Def fix
3498 tSCC zIo_Quotes_DefName[] =
3502 * File name selection pattern
3504 #define zIo_Quotes_DefList (char*)NULL
3506 * Machine/OS name selection pattern
3508 #define apzIo_Quotes_DefMachs (const char**)NULL
3511 * content selection pattern - do fix if pattern found
3513 tSCC zIo_Quotes_DefSelect0[] =
3514 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3516 #define IO_QUOTES_DEF_TEST_CT 1
3517 static tTestDesc aIo_Quotes_DefTests[] = {
3518 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3521 * Fix Command Arguments for Io_Quotes_Def
3523 static const char* apzIo_Quotes_DefPatch[] = {
3528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3530 * Description of Io_Quotes_Use fix
3532 tSCC zIo_Quotes_UseName[] =
3536 * File name selection pattern
3538 #define zIo_Quotes_UseList (char*)NULL
3540 * Machine/OS name selection pattern
3542 #define apzIo_Quotes_UseMachs (const char**)NULL
3545 * content selection pattern - do fix if pattern found
3547 tSCC zIo_Quotes_UseSelect0[] =
3548 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3550 #define IO_QUOTES_USE_TEST_CT 1
3551 static tTestDesc aIo_Quotes_UseTests[] = {
3552 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3555 * Fix Command Arguments for Io_Quotes_Use
3557 static const char* apzIo_Quotes_UsePatch[] = {
3562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3564 * Description of Ip_Missing_Semi fix
3566 tSCC zIp_Missing_SemiName[] =
3570 * File name selection pattern
3572 tSCC zIp_Missing_SemiList[] =
3575 * Machine/OS name selection pattern
3577 #define apzIp_Missing_SemiMachs (const char**)NULL
3580 * content selection pattern - do fix if pattern found
3582 tSCC zIp_Missing_SemiSelect0[] =
3585 #define IP_MISSING_SEMI_TEST_CT 1
3586 static tTestDesc aIp_Missing_SemiTests[] = {
3587 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3590 * Fix Command Arguments for Ip_Missing_Semi
3592 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
3593 "-e", "/^struct/,/^};/s/}$/};/",
3596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3598 * Description of Irix___Restrict fix
3600 tSCC zIrix___RestrictName[] =
3604 * File name selection pattern
3606 tSCC zIrix___RestrictList[] =
3607 "internal/sgimacros.h\0";
3609 * Machine/OS name selection pattern
3611 tSCC* apzIrix___RestrictMachs[] = {
3613 (const char*)NULL };
3616 * content selection pattern - do fix if pattern found
3618 tSCC zIrix___RestrictSelect0[] =
3620 )(#[ \t]*define __restrict restrict)";
3622 #define IRIX___RESTRICT_TEST_CT 1
3623 static tTestDesc aIrix___RestrictTests[] = {
3624 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3627 * Fix Command Arguments for Irix___Restrict
3629 static const char* apzIrix___RestrictPatch[] = {
3631 "%1# ifndef __cplusplus\n\
3636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3638 * Description of Irix___Generic1 fix
3640 tSCC zIrix___Generic1Name[] =
3644 * File name selection pattern
3646 tSCC zIrix___Generic1List[] =
3647 "internal/math_core.h\0";
3649 * Machine/OS name selection pattern
3651 tSCC* apzIrix___Generic1Machs[] = {
3653 (const char*)NULL };
3656 * content selection pattern - do fix if pattern found
3658 tSCC zIrix___Generic1Select0[] =
3659 "#define ([a-z]+)\\(x\\) *__generic.*";
3661 #define IRIX___GENERIC1_TEST_CT 1
3662 static tTestDesc aIrix___Generic1Tests[] = {
3663 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3666 * Fix Command Arguments for Irix___Generic1
3668 static const char* apzIrix___Generic1Patch[] = {
3670 "extern int %1(double);\n\
3671 extern int %1f(float);\n\
3672 extern int %1l(long double);\n\
3673 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3674 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3680 * Description of Irix___Generic2 fix
3682 tSCC zIrix___Generic2Name[] =
3686 * File name selection pattern
3688 tSCC zIrix___Generic2List[] =
3689 "internal/math_core.h\0";
3691 * Machine/OS name selection pattern
3693 tSCC* apzIrix___Generic2Machs[] = {
3695 (const char*)NULL };
3698 * content selection pattern - do fix if pattern found
3700 tSCC zIrix___Generic2Select0[] =
3701 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3703 #define IRIX___GENERIC2_TEST_CT 1
3704 static tTestDesc aIrix___Generic2Tests[] = {
3705 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3708 * Fix Command Arguments for Irix___Generic2
3710 static const char* apzIrix___Generic2Patch[] = {
3712 "#define %1(x,y) \\\n\
3713 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3714 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3720 * Description of Irix_Asm_Apostrophe fix
3722 tSCC zIrix_Asm_ApostropheName[] =
3723 "irix_asm_apostrophe";
3726 * File name selection pattern
3728 tSCC zIrix_Asm_ApostropheList[] =
3731 * Machine/OS name selection pattern
3733 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3736 * content selection pattern - do fix if pattern found
3738 tSCC zIrix_Asm_ApostropheSelect0[] =
3739 "^[ \t]*#.*[Ww]e're";
3741 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
3742 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3743 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3746 * Fix Command Arguments for Irix_Asm_Apostrophe
3748 static const char* apzIrix_Asm_ApostrophePatch[] = {
3751 "^([ \t]*#.*[Ww]e)'re",
3754 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3756 * Description of Irix_Limits_Const fix
3758 tSCC zIrix_Limits_ConstName[] =
3759 "irix_limits_const";
3762 * File name selection pattern
3764 tSCC zIrix_Limits_ConstList[] =
3765 "fixinc-test-limits.h\0limits.h\0";
3767 * Machine/OS name selection pattern
3769 #define apzIrix_Limits_ConstMachs (const char**)NULL
3772 * content selection pattern - do fix if pattern found
3774 tSCC zIrix_Limits_ConstSelect0[] =
3777 #define IRIX_LIMITS_CONST_TEST_CT 1
3778 static tTestDesc aIrix_Limits_ConstTests[] = {
3779 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3782 * Fix Command Arguments for Irix_Limits_Const
3784 static const char* apzIrix_Limits_ConstPatch[] = {
3789 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3791 * Description of Irix_Socklen_T fix
3793 tSCC zIrix_Socklen_TName[] =
3797 * File name selection pattern
3799 tSCC zIrix_Socklen_TList[] =
3802 * Machine/OS name selection pattern
3804 tSCC* apzIrix_Socklen_TMachs[] = {
3806 (const char*)NULL };
3809 * content selection pattern - do fix if pattern found
3811 tSCC zIrix_Socklen_TSelect0[] =
3812 "(#define _SOCKLEN_T\n\
3813 )(typedef u_int32_t socklen_t;)";
3815 #define IRIX_SOCKLEN_T_TEST_CT 1
3816 static tTestDesc aIrix_Socklen_TTests[] = {
3817 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3820 * Fix Command Arguments for Irix_Socklen_T
3822 static const char* apzIrix_Socklen_TPatch[] = {
3824 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3825 typedef int socklen_t;\n\
3828 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
3831 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3833 * Description of Irix_Stdint_C99 fix
3835 tSCC zIrix_Stdint_C99Name[] =
3839 * File name selection pattern
3841 tSCC zIrix_Stdint_C99List[] =
3844 * Machine/OS name selection pattern
3846 tSCC* apzIrix_Stdint_C99Machs[] = {
3848 (const char*)NULL };
3851 * content selection pattern - do fix if pattern found
3853 tSCC zIrix_Stdint_C99Select0[] =
3855 )(#error This header file is to be used only for c99 mode compilations)";
3857 #define IRIX_STDINT_C99_TEST_CT 1
3858 static tTestDesc aIrix_Stdint_C99Tests[] = {
3859 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
3862 * Fix Command Arguments for Irix_Stdint_C99
3864 static const char* apzIrix_Stdint_C99Patch[] = {
3870 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3872 * Description of Irix_Stdio_Va_List fix
3874 tSCC zIrix_Stdio_Va_ListName[] =
3875 "irix_stdio_va_list";
3878 * File name selection pattern
3880 tSCC zIrix_Stdio_Va_ListList[] =
3881 "stdio.h\0internal/stdio_core.h\0";
3883 * Machine/OS name selection pattern
3885 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
3888 * content selection pattern - do fix if pattern found
3890 tSCC zIrix_Stdio_Va_ListSelect0[] =
3891 "/\\* va_list \\*/ char \\*";
3893 #define IRIX_STDIO_VA_LIST_TEST_CT 1
3894 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
3895 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
3898 * Fix Command Arguments for Irix_Stdio_Va_List
3900 static const char* apzIrix_Stdio_Va_ListPatch[] = {
3905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3907 * Description of Irix_Wcsftime fix
3909 tSCC zIrix_WcsftimeName[] =
3913 * File name selection pattern
3915 tSCC zIrix_WcsftimeList[] =
3916 "internal/wchar_core.h\0";
3918 * Machine/OS name selection pattern
3920 tSCC* apzIrix_WcsftimeMachs[] = {
3922 (const char*)NULL };
3925 * content selection pattern - do fix if pattern found
3927 tSCC zIrix_WcsftimeSelect0[] =
3929 (extern size_t[ \t]+wcsftime.*const char *.*)";
3931 #define IRIX_WCSFTIME_TEST_CT 1
3932 static tTestDesc aIrix_WcsftimeTests[] = {
3933 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
3936 * Fix Command Arguments for Irix_Wcsftime
3938 static const char* apzIrix_WcsftimePatch[] = {
3940 "#if _NO_XOPEN5 && !defined(__c99)\n\
3944 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3946 * Description of Isc_Fmod fix
3948 tSCC zIsc_FmodName[] =
3952 * File name selection pattern
3954 tSCC zIsc_FmodList[] =
3957 * Machine/OS name selection pattern
3959 #define apzIsc_FmodMachs (const char**)NULL
3962 * content selection pattern - do fix if pattern found
3964 tSCC zIsc_FmodSelect0[] =
3967 #define ISC_FMOD_TEST_CT 1
3968 static tTestDesc aIsc_FmodTests[] = {
3969 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
3972 * Fix Command Arguments for Isc_Fmod
3974 static const char* apzIsc_FmodPatch[] = {
3976 "fmod(double, double)",
3979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3981 * Description of Isc_Omits_With_Stdc fix
3983 tSCC zIsc_Omits_With_StdcName[] =
3984 "isc_omits_with_stdc";
3987 * File name selection pattern
3989 tSCC zIsc_Omits_With_StdcList[] =
3990 "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
3992 * Machine/OS name selection pattern
3994 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
3997 * content selection pattern - do fix if pattern found
3999 tSCC zIsc_Omits_With_StdcSelect0[] =
4000 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
4002 #define ISC_OMITS_WITH_STDC_TEST_CT 1
4003 static tTestDesc aIsc_Omits_With_StdcTests[] = {
4004 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4007 * Fix Command Arguments for Isc_Omits_With_Stdc
4009 static const char* apzIsc_Omits_With_StdcPatch[] = {
4011 "!defined(_POSIX_SOURCE)",
4014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4016 * Description of Kandr_Concat fix
4018 tSCC zKandr_ConcatName[] =
4022 * File name selection pattern
4024 tSCC zKandr_ConcatList[] =
4025 "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";
4027 * Machine/OS name selection pattern
4029 #define apzKandr_ConcatMachs (const char**)NULL
4032 * content selection pattern - do fix if pattern found
4034 tSCC zKandr_ConcatSelect0[] =
4037 #define KANDR_CONCAT_TEST_CT 1
4038 static tTestDesc aKandr_ConcatTests[] = {
4039 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4042 * Fix Command Arguments for Kandr_Concat
4044 static const char* apzKandr_ConcatPatch[] = {
4049 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4051 * Description of Linux_Ia64_Ucontext fix
4053 tSCC zLinux_Ia64_UcontextName[] =
4054 "linux_ia64_ucontext";
4057 * File name selection pattern
4059 tSCC zLinux_Ia64_UcontextList[] =
4062 * Machine/OS name selection pattern
4064 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4066 (const char*)NULL };
4069 * content selection pattern - do fix if pattern found
4071 tSCC zLinux_Ia64_UcontextSelect0[] =
4072 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4074 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4075 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4076 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4079 * Fix Command Arguments for Linux_Ia64_Ucontext
4081 static const char* apzLinux_Ia64_UcontextPatch[] = {
4083 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4088 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4090 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4091 "lynxos_no_warning_in_sys_time_h";
4094 * File name selection pattern
4096 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4099 * Machine/OS name selection pattern
4101 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4104 * content selection pattern - do fix if pattern found
4106 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4107 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4109 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4110 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4111 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4114 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4116 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4121 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4123 * Description of Lynxos_Missing_Putenv fix
4125 tSCC zLynxos_Missing_PutenvName[] =
4126 "lynxos_missing_putenv";
4129 * File name selection pattern
4131 tSCC zLynxos_Missing_PutenvList[] =
4134 * Machine/OS name selection pattern
4136 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4138 (const char*)NULL };
4141 * content selection pattern - do fix if pattern found
4143 tSCC zLynxos_Missing_PutenvSelect0[] =
4144 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4147 * content bypass pattern - skip fix if pattern found
4149 tSCC zLynxos_Missing_PutenvBypass0[] =
4152 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4153 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4154 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4155 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4158 * Fix Command Arguments for Lynxos_Missing_Putenv
4160 static const char* apzLynxos_Missing_PutenvPatch[] = {
4163 extern int putenv\t\t\t\t_AP((char *));",
4164 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4167 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4169 * Description of Machine_Ansi_H_Va_List fix
4171 tSCC zMachine_Ansi_H_Va_ListName[] =
4172 "machine_ansi_h_va_list";
4175 * File name selection pattern
4177 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4179 * Machine/OS name selection pattern
4181 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4184 * content selection pattern - do fix if pattern found
4186 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4187 "define[ \t]+_BSD_VA_LIST_[ \t]";
4190 * content bypass pattern - skip fix if pattern found
4192 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4193 "__builtin_va_list";
4195 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4196 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4197 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4198 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4201 * Fix Command Arguments for Machine_Ansi_H_Va_List
4203 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4205 "%1__builtin_va_list",
4206 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4209 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4211 * Description of Machine_Name fix
4213 tSCC zMachine_NameName[] =
4217 * File name selection pattern
4219 #define zMachine_NameList (char*)NULL
4221 * Machine/OS name selection pattern
4223 #define apzMachine_NameMachs (const char**)NULL
4226 * perform the C function call test
4228 tSCC zMachine_NameFTst0[] = "machine_name";
4230 #define MACHINE_NAME_TEST_CT 1
4231 static tTestDesc aMachine_NameTests[] = {
4232 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4235 * Fix Command Arguments for Machine_Name
4237 static const char* apzMachine_NamePatch[] = {
4241 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4243 * Description of Math_Exception fix
4245 tSCC zMath_ExceptionName[] =
4249 * File name selection pattern
4251 tSCC zMath_ExceptionList[] =
4254 * Machine/OS name selection pattern
4256 #define apzMath_ExceptionMachs (const char**)NULL
4259 * content selection pattern - do fix if pattern found
4261 tSCC zMath_ExceptionSelect0[] =
4265 * content bypass pattern - skip fix if pattern found
4267 tSCC zMath_ExceptionBypass0[] =
4268 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4270 #define MATH_EXCEPTION_TEST_CT 2
4271 static tTestDesc aMath_ExceptionTests[] = {
4272 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4273 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4276 * Fix Command Arguments for Math_Exception
4278 static const char* apzMath_ExceptionPatch[] = {
4280 "#ifdef __cplusplus\n\
4281 #define exception __math_exception\n\
4283 "#ifdef __cplusplus\n\
4288 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4290 * Description of Math_Huge_Val_From_Dbl_Max fix
4292 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4293 "math_huge_val_from_dbl_max";
4296 * File name selection pattern
4298 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4301 * Machine/OS name selection pattern
4303 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4306 * content selection pattern - do fix if pattern found
4308 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4309 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4312 * content bypass pattern - skip fix if pattern found
4314 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4315 "define[ \t]+DBL_MAX";
4317 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4318 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4319 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4320 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4323 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4325 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4326 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4327 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4328 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4333 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4335 * Description of Nested_Auth_Des fix
4337 tSCC zNested_Auth_DesName[] =
4341 * File name selection pattern
4343 tSCC zNested_Auth_DesList[] =
4346 * Machine/OS name selection pattern
4348 #define apzNested_Auth_DesMachs (const char**)NULL
4351 * content selection pattern - do fix if pattern found
4353 tSCC zNested_Auth_DesSelect0[] =
4354 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4356 #define NESTED_AUTH_DES_TEST_CT 1
4357 static tTestDesc aNested_Auth_DesTests[] = {
4358 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4361 * Fix Command Arguments for Nested_Auth_Des
4363 static const char* apzNested_Auth_DesPatch[] = {
4368 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4370 * Description of Nested_Sys_Limits fix
4372 tSCC zNested_Sys_LimitsName[] =
4373 "nested_sys_limits";
4376 * File name selection pattern
4378 tSCC zNested_Sys_LimitsList[] =
4381 * Machine/OS name selection pattern
4383 #define apzNested_Sys_LimitsMachs (const char**)NULL
4386 * content selection pattern - do fix if pattern found
4388 tSCC zNested_Sys_LimitsSelect0[] =
4391 #define NESTED_SYS_LIMITS_TEST_CT 1
4392 static tTestDesc aNested_Sys_LimitsTests[] = {
4393 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4396 * Fix Command Arguments for Nested_Sys_Limits
4398 static const char* apzNested_Sys_LimitsPatch[] = { sed_cmd_z,
4399 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4400 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4403 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4405 * Description of Netbsd_C99_Inline_1 fix
4407 tSCC zNetbsd_C99_Inline_1Name[] =
4408 "netbsd_c99_inline_1";
4411 * File name selection pattern
4413 tSCC zNetbsd_C99_Inline_1List[] =
4416 * Machine/OS name selection pattern
4418 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4420 (const char*)NULL };
4423 * content selection pattern - do fix if pattern found
4425 tSCC zNetbsd_C99_Inline_1Select0[] =
4426 "extern __inline int";
4428 #define NETBSD_C99_INLINE_1_TEST_CT 1
4429 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4430 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4433 * Fix Command Arguments for Netbsd_C99_Inline_1
4435 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4438 #ifdef __GNUC_STDC_INLINE__\n\
4439 __attribute__((__gnu_inline__))\n\
4444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4446 * Description of Netbsd_C99_Inline_2 fix
4448 tSCC zNetbsd_C99_Inline_2Name[] =
4449 "netbsd_c99_inline_2";
4452 * File name selection pattern
4454 tSCC zNetbsd_C99_Inline_2List[] =
4457 * Machine/OS name selection pattern
4459 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4461 (const char*)NULL };
4464 * content selection pattern - do fix if pattern found
4466 tSCC zNetbsd_C99_Inline_2Select0[] =
4467 "#define _SIGINLINE extern __inline";
4469 #define NETBSD_C99_INLINE_2_TEST_CT 1
4470 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4471 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4474 * Fix Command Arguments for Netbsd_C99_Inline_2
4476 static const char* apzNetbsd_C99_Inline_2Patch[] = {
4478 "#ifdef __GNUC_STDC_INLINE__\n\
4479 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4485 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4487 * Description of Netbsd_Extra_Semicolon fix
4489 tSCC zNetbsd_Extra_SemicolonName[] =
4490 "netbsd_extra_semicolon";
4493 * File name selection pattern
4495 tSCC zNetbsd_Extra_SemicolonList[] =
4498 * Machine/OS name selection pattern
4500 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4502 (const char*)NULL };
4505 * content selection pattern - do fix if pattern found
4507 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4508 "#define[ \t]*__END_DECLS[ \t]*};";
4510 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4511 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4512 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4515 * Fix Command Arguments for Netbsd_Extra_Semicolon
4517 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4519 "#define __END_DECLS }",
4522 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4524 * Description of Next_Math_Prefix fix
4526 tSCC zNext_Math_PrefixName[] =
4530 * File name selection pattern
4532 tSCC zNext_Math_PrefixList[] =
4535 * Machine/OS name selection pattern
4537 #define apzNext_Math_PrefixMachs (const char**)NULL
4540 * content selection pattern - do fix if pattern found
4542 tSCC zNext_Math_PrefixSelect0[] =
4543 "^extern[ \t]+double[ \t]+__const__[ \t]";
4545 #define NEXT_MATH_PREFIX_TEST_CT 1
4546 static tTestDesc aNext_Math_PrefixTests[] = {
4547 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4550 * Fix Command Arguments for Next_Math_Prefix
4552 static const char* apzNext_Math_PrefixPatch[] = {
4554 "extern double %1(",
4555 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4558 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4560 * Description of Next_Template fix
4562 tSCC zNext_TemplateName[] =
4566 * File name selection pattern
4568 tSCC zNext_TemplateList[] =
4571 * Machine/OS name selection pattern
4573 #define apzNext_TemplateMachs (const char**)NULL
4576 * content selection pattern - do fix if pattern found
4578 tSCC zNext_TemplateSelect0[] =
4581 #define NEXT_TEMPLATE_TEST_CT 1
4582 static tTestDesc aNext_TemplateTests[] = {
4583 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
4586 * Fix Command Arguments for Next_Template
4588 static const char* apzNext_TemplatePatch[] = {
4591 "\\(([^)]*)[ \t]template\\)",
4594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4596 * Description of Next_Volitile fix
4598 tSCC zNext_VolitileName[] =
4602 * File name selection pattern
4604 tSCC zNext_VolitileList[] =
4607 * Machine/OS name selection pattern
4609 #define apzNext_VolitileMachs (const char**)NULL
4612 * content selection pattern - do fix if pattern found
4614 tSCC zNext_VolitileSelect0[] =
4615 "^extern[ \t]+volatile[ \t]+void[ \t]";
4617 #define NEXT_VOLITILE_TEST_CT 1
4618 static tTestDesc aNext_VolitileTests[] = {
4619 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
4622 * Fix Command Arguments for Next_Volitile
4624 static const char* apzNext_VolitilePatch[] = {
4627 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
4630 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4632 * Description of Next_Wait_Union fix
4634 tSCC zNext_Wait_UnionName[] =
4638 * File name selection pattern
4640 tSCC zNext_Wait_UnionList[] =
4643 * Machine/OS name selection pattern
4645 #define apzNext_Wait_UnionMachs (const char**)NULL
4648 * content selection pattern - do fix if pattern found
4650 tSCC zNext_Wait_UnionSelect0[] =
4651 "wait\\(union wait";
4653 #define NEXT_WAIT_UNION_TEST_CT 1
4654 static tTestDesc aNext_Wait_UnionTests[] = {
4655 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
4658 * Fix Command Arguments for Next_Wait_Union
4660 static const char* apzNext_Wait_UnionPatch[] = {
4665 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4667 * Description of Nodeent_Syntax fix
4669 tSCC zNodeent_SyntaxName[] =
4673 * File name selection pattern
4675 tSCC zNodeent_SyntaxList[] =
4676 "netdnet/dnetdb.h\0";
4678 * Machine/OS name selection pattern
4680 #define apzNodeent_SyntaxMachs (const char**)NULL
4683 * content selection pattern - do fix if pattern found
4685 tSCC zNodeent_SyntaxSelect0[] =
4686 "char[ \t]*\\*na_addr[ \t]*$";
4688 #define NODEENT_SYNTAX_TEST_CT 1
4689 static tTestDesc aNodeent_SyntaxTests[] = {
4690 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
4693 * Fix Command Arguments for Nodeent_Syntax
4695 static const char* apzNodeent_SyntaxPatch[] = {
4700 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4702 * Description of Obstack_Lvalue_Cast fix
4704 tSCC zObstack_Lvalue_CastName[] =
4705 "obstack_lvalue_cast";
4708 * File name selection pattern
4710 tSCC zObstack_Lvalue_CastList[] =
4713 * Machine/OS name selection pattern
4715 #define apzObstack_Lvalue_CastMachs (const char**)NULL
4718 * content selection pattern - do fix if pattern found
4720 tSCC zObstack_Lvalue_CastSelect0[] =
4721 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
4723 #define OBSTACK_LVALUE_CAST_TEST_CT 1
4724 static tTestDesc aObstack_Lvalue_CastTests[] = {
4725 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
4728 * Fix Command Arguments for Obstack_Lvalue_Cast
4730 static const char* apzObstack_Lvalue_CastPatch[] = {
4732 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
4735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4737 * Description of Openbsd_Va_Start fix
4739 tSCC zOpenbsd_Va_StartName[] =
4743 * File name selection pattern
4745 tSCC zOpenbsd_Va_StartList[] =
4748 * Machine/OS name selection pattern
4750 tSCC* apzOpenbsd_Va_StartMachs[] = {
4752 (const char*)NULL };
4755 * content selection pattern - do fix if pattern found
4757 tSCC zOpenbsd_Va_StartSelect0[] =
4758 "__builtin_stdarg_start";
4760 #define OPENBSD_VA_START_TEST_CT 1
4761 static tTestDesc aOpenbsd_Va_StartTests[] = {
4762 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
4765 * Fix Command Arguments for Openbsd_Va_Start
4767 static const char* apzOpenbsd_Va_StartPatch[] = {
4769 "__builtin_va_start",
4772 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4774 * Description of Osf_Namespace_A fix
4776 tSCC zOsf_Namespace_AName[] =
4780 * File name selection pattern
4782 tSCC zOsf_Namespace_AList[] =
4783 "reg_types.h\0sys/lc_core.h\0";
4785 * Machine/OS name selection pattern
4787 #define apzOsf_Namespace_AMachs (const char**)NULL
4790 * perform the 'test' shell command - do fix on success
4792 tSCC zOsf_Namespace_ATest0[] =
4794 tSCC zOsf_Namespace_ATest1[] =
4795 " -r sys/lc_core.h";
4796 tSCC zOsf_Namespace_ATest2[] =
4797 " -n \"`grep '} regex_t;' reg_types.h`\"";
4798 tSCC zOsf_Namespace_ATest3[] =
4799 " -z \"`grep __regex_t regex.h`\"";
4801 #define OSF_NAMESPACE_A_TEST_CT 4
4802 static tTestDesc aOsf_Namespace_ATests[] = {
4803 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
4804 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
4805 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
4806 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
4809 * Fix Command Arguments for Osf_Namespace_A
4811 static const char* apzOsf_Namespace_APatch[] = {
4814 "reg(ex|off|match)_t",
4817 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4819 * Description of Osf_Namespace_C fix
4821 tSCC zOsf_Namespace_CName[] =
4825 * File name selection pattern
4827 tSCC zOsf_Namespace_CList[] =
4830 * Machine/OS name selection pattern
4832 #define apzOsf_Namespace_CMachs (const char**)NULL
4835 * content selection pattern - do fix if pattern found
4837 tSCC zOsf_Namespace_CSelect0[] =
4838 "#include <reg_types.h>.*";
4841 * perform the 'test' shell command - do fix on success
4843 tSCC zOsf_Namespace_CTest0[] =
4845 tSCC zOsf_Namespace_CTest1[] =
4846 " -r sys/lc_core.h";
4847 tSCC zOsf_Namespace_CTest2[] =
4848 " -n \"`grep '} regex_t;' reg_types.h`\"";
4849 tSCC zOsf_Namespace_CTest3[] =
4850 " -z \"`grep __regex_t regex.h`\"";
4852 #define OSF_NAMESPACE_C_TEST_CT 5
4853 static tTestDesc aOsf_Namespace_CTests[] = {
4854 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
4855 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
4856 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
4857 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
4858 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
4861 * Fix Command Arguments for Osf_Namespace_C
4863 static const char* apzOsf_Namespace_CPatch[] = {
4866 typedef __regex_t\tregex_t;\n\
4867 typedef __regoff_t\tregoff_t;\n\
4868 typedef __regmatch_t\tregmatch_t;",
4871 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4873 * Description of Pthread_Page_Size fix
4875 tSCC zPthread_Page_SizeName[] =
4876 "pthread_page_size";
4879 * File name selection pattern
4881 tSCC zPthread_Page_SizeList[] =
4884 * Machine/OS name selection pattern
4886 #define apzPthread_Page_SizeMachs (const char**)NULL
4889 * content selection pattern - do fix if pattern found
4891 tSCC zPthread_Page_SizeSelect0[] =
4894 #define PTHREAD_PAGE_SIZE_TEST_CT 1
4895 static tTestDesc aPthread_Page_SizeTests[] = {
4896 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
4899 * Fix Command Arguments for Pthread_Page_Size
4901 static const char* apzPthread_Page_SizePatch[] = {
4906 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4908 * Description of Pthread_Incomplete_Struct_Argument fix
4910 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
4911 "pthread_incomplete_struct_argument";
4914 * File name selection pattern
4916 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
4919 * Machine/OS name selection pattern
4921 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
4924 * content selection pattern - do fix if pattern found
4926 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
4927 "struct __jmp_buf_tag";
4929 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
4930 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
4931 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
4934 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
4936 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
4939 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
4942 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4944 * Description of Read_Ret_Type fix
4946 tSCC zRead_Ret_TypeName[] =
4950 * File name selection pattern
4952 tSCC zRead_Ret_TypeList[] =
4955 * Machine/OS name selection pattern
4957 #define apzRead_Ret_TypeMachs (const char**)NULL
4960 * content selection pattern - do fix if pattern found
4962 tSCC zRead_Ret_TypeSelect0[] =
4963 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
4965 #define READ_RET_TYPE_TEST_CT 1
4966 static tTestDesc aRead_Ret_TypeTests[] = {
4967 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
4970 * Fix Command Arguments for Read_Ret_Type
4972 static const char* apzRead_Ret_TypePatch[] = {
4974 "extern unsigned int fread(), fwrite();\n\
4976 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
4979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4981 * Description of Rpc_Xdr_Lvalue_Cast_A fix
4983 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
4984 "rpc_xdr_lvalue_cast_a";
4987 * File name selection pattern
4989 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
4992 * Machine/OS name selection pattern
4994 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
4997 * content selection pattern - do fix if pattern found
4999 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5000 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5003 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5004 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5005 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5008 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5010 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5012 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5015 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5017 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5019 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5020 "rpc_xdr_lvalue_cast_b";
5023 * File name selection pattern
5025 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5028 * Machine/OS name selection pattern
5030 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5033 * content selection pattern - do fix if pattern found
5035 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5036 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5039 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5040 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5041 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5044 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5046 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5048 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5051 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5053 * Description of Rs6000_Double fix
5055 tSCC zRs6000_DoubleName[] =
5059 * File name selection pattern
5061 tSCC zRs6000_DoubleList[] =
5064 * Machine/OS name selection pattern
5066 #define apzRs6000_DoubleMachs (const char**)NULL
5069 * content selection pattern - do fix if pattern found
5071 tSCC zRs6000_DoubleSelect0[] =
5072 "[^a-zA-Z_]class\\(";
5074 #define RS6000_DOUBLE_TEST_CT 1
5075 static tTestDesc aRs6000_DoubleTests[] = {
5076 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5079 * Fix Command Arguments for Rs6000_Double
5081 static const char* apzRs6000_DoublePatch[] = {
5083 "#ifndef __cplusplus\n\
5086 "^.*[^a-zA-Z_]class\\(.*",
5089 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5091 * Description of Rs6000_Fchmod fix
5093 tSCC zRs6000_FchmodName[] =
5097 * File name selection pattern
5099 tSCC zRs6000_FchmodList[] =
5102 * Machine/OS name selection pattern
5104 #define apzRs6000_FchmodMachs (const char**)NULL
5107 * content selection pattern - do fix if pattern found
5109 tSCC zRs6000_FchmodSelect0[] =
5110 "fchmod\\(char \\*";
5112 #define RS6000_FCHMOD_TEST_CT 1
5113 static tTestDesc aRs6000_FchmodTests[] = {
5114 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5117 * Fix Command Arguments for Rs6000_Fchmod
5119 static const char* apzRs6000_FchmodPatch[] = {
5124 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5126 * Description of Rs6000_Param fix
5128 tSCC zRs6000_ParamName[] =
5132 * File name selection pattern
5134 tSCC zRs6000_ParamList[] =
5135 "stdio.h\0unistd.h\0";
5137 * Machine/OS name selection pattern
5139 #define apzRs6000_ParamMachs (const char**)NULL
5142 * content selection pattern - do fix if pattern found
5144 tSCC zRs6000_ParamSelect0[] =
5145 "rename\\(const char \\*old, const char \\*new\\)";
5147 #define RS6000_PARAM_TEST_CT 1
5148 static tTestDesc aRs6000_ParamTests[] = {
5149 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
5152 * Fix Command Arguments for Rs6000_Param
5154 static const char* apzRs6000_ParamPatch[] = {
5156 "rename(const char *_old, const char *_new)",
5159 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5161 * Description of Sco_Math fix
5163 tSCC zSco_MathName[] =
5167 * File name selection pattern
5169 tSCC zSco_MathList[] =
5170 "math.h\0*/math.h\0";
5172 * Machine/OS name selection pattern
5174 #define apzSco_MathMachs (const char**)NULL
5177 * content selection pattern - do fix if pattern found
5179 tSCC zSco_MathSelect0[] =
5180 "inline double abs";
5183 * content bypass pattern - skip fix if pattern found
5185 tSCC zSco_MathBypass0[] =
5188 #define SCO_MATH_TEST_CT 2
5189 static tTestDesc aSco_MathTests[] = {
5190 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
5191 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
5194 * Fix Command Arguments for Sco_Math
5196 static const char* apzSco_MathPatch[] = { sed_cmd_z,
5197 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5198 #ifndef __GNUC__\n",
5199 "-e", "/.*__builtin_generic/a\\\n\
5201 #define __fp_class(a) \\\\\\\n\
5202 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5203 __fpclassifyl(a), \\\\\\\n\
5204 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5205 __fpclassifyf(a),__fpclassify(a)))\\\n\
5207 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5208 #ifndef __GNUC__\n",
5209 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5210 #endif /* ! __GNUC__ */",
5213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5215 * Description of Solaris_Math_1 fix
5217 tSCC zSolaris_Math_1Name[] =
5221 * File name selection pattern
5223 tSCC zSolaris_Math_1List[] =
5226 * Machine/OS name selection pattern
5228 #define apzSolaris_Math_1Machs (const char**)NULL
5231 * content selection pattern - do fix if pattern found
5233 tSCC zSolaris_Math_1Select0[] =
5234 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5237 * content bypass pattern - skip fix if pattern found
5239 tSCC zSolaris_Math_1Bypass0[] =
5242 #define SOLARIS_MATH_1_TEST_CT 2
5243 static tTestDesc aSolaris_Math_1Tests[] = {
5244 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5245 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5248 * Fix Command Arguments for Solaris_Math_1
5250 static const char* apzSolaris_Math_1Patch[] = {
5252 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5253 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5256 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5258 * Description of Solaris_Math_2 fix
5260 tSCC zSolaris_Math_2Name[] =
5264 * File name selection pattern
5266 tSCC zSolaris_Math_2List[] =
5269 * Machine/OS name selection pattern
5271 #define apzSolaris_Math_2Machs (const char**)NULL
5274 * content selection pattern - do fix if pattern found
5276 tSCC zSolaris_Math_2Select0[] =
5277 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5280 * content bypass pattern - skip fix if pattern found
5282 tSCC zSolaris_Math_2Bypass0[] =
5285 #define SOLARIS_MATH_2_TEST_CT 2
5286 static tTestDesc aSolaris_Math_2Tests[] = {
5287 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5288 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5291 * Fix Command Arguments for Solaris_Math_2
5293 static const char* apzSolaris_Math_2Patch[] = {
5295 "#define\tINFINITY\t(__builtin_inff())",
5296 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5299 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5301 * Description of Solaris_Math_3 fix
5303 tSCC zSolaris_Math_3Name[] =
5307 * File name selection pattern
5309 tSCC zSolaris_Math_3List[] =
5312 * Machine/OS name selection pattern
5314 #define apzSolaris_Math_3Machs (const char**)NULL
5317 * content selection pattern - do fix if pattern found
5319 tSCC zSolaris_Math_3Select0[] =
5320 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5323 * content bypass pattern - skip fix if pattern found
5325 tSCC zSolaris_Math_3Bypass0[] =
5328 #define SOLARIS_MATH_3_TEST_CT 2
5329 static tTestDesc aSolaris_Math_3Tests[] = {
5330 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5331 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5334 * Fix Command Arguments for Solaris_Math_3
5336 static const char* apzSolaris_Math_3Patch[] = {
5338 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5339 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5342 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5344 * Description of Solaris_Math_4 fix
5346 tSCC zSolaris_Math_4Name[] =
5350 * File name selection pattern
5352 tSCC zSolaris_Math_4List[] =
5355 * Machine/OS name selection pattern
5357 #define apzSolaris_Math_4Machs (const char**)NULL
5360 * content selection pattern - do fix if pattern found
5362 tSCC zSolaris_Math_4Select0[] =
5363 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5366 * content bypass pattern - skip fix if pattern found
5368 tSCC zSolaris_Math_4Bypass0[] =
5371 #define SOLARIS_MATH_4_TEST_CT 2
5372 static tTestDesc aSolaris_Math_4Tests[] = {
5373 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5374 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5377 * Fix Command Arguments for Solaris_Math_4
5379 static const char* apzSolaris_Math_4Patch[] = {
5381 "#define\tfpclassify(x) \\\n\
5382 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
5383 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5386 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5388 * Description of Solaris_Math_8 fix
5390 tSCC zSolaris_Math_8Name[] =
5394 * File name selection pattern
5396 tSCC zSolaris_Math_8List[] =
5399 * Machine/OS name selection pattern
5401 #define apzSolaris_Math_8Machs (const char**)NULL
5404 * content selection pattern - do fix if pattern found
5406 tSCC zSolaris_Math_8Select0[] =
5407 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5410 * content bypass pattern - skip fix if pattern found
5412 tSCC zSolaris_Math_8Bypass0[] =
5415 #define SOLARIS_MATH_8_TEST_CT 2
5416 static tTestDesc aSolaris_Math_8Tests[] = {
5417 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5418 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5421 * Fix Command Arguments for Solaris_Math_8
5423 static const char* apzSolaris_Math_8Patch[] = {
5425 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5426 \t\t\t ? __builtin_signbitf(x) \\\n\
5427 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
5428 \t\t\t ? __builtin_signbitl(x) \\\n\
5429 \t\t\t : __builtin_signbit(x))",
5430 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5433 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5435 * Description of Solaris_Math_9 fix
5437 tSCC zSolaris_Math_9Name[] =
5441 * File name selection pattern
5443 tSCC zSolaris_Math_9List[] =
5446 * Machine/OS name selection pattern
5448 #define apzSolaris_Math_9Machs (const char**)NULL
5451 * content selection pattern - do fix if pattern found
5453 tSCC zSolaris_Math_9Select0[] =
5454 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5457 * content bypass pattern - skip fix if pattern found
5459 tSCC zSolaris_Math_9Bypass0[] =
5462 #define SOLARIS_MATH_9_TEST_CT 2
5463 static tTestDesc aSolaris_Math_9Tests[] = {
5464 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
5465 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
5468 * Fix Command Arguments for Solaris_Math_9
5470 static const char* apzSolaris_Math_9Patch[] = {
5472 "#define\t%1(x, y)%2__builtin_%1(x, y)",
5473 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5476 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5478 * Description of Solaris_Math_10 fix
5480 tSCC zSolaris_Math_10Name[] =
5484 * File name selection pattern
5486 tSCC zSolaris_Math_10List[] =
5489 * Machine/OS name selection pattern
5491 #define apzSolaris_Math_10Machs (const char**)NULL
5494 * content selection pattern - do fix if pattern found
5496 tSCC zSolaris_Math_10Select0[] =
5497 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5499 #define SOLARIS_MATH_10_TEST_CT 1
5500 static tTestDesc aSolaris_Math_10Tests[] = {
5501 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
5504 * Fix Command Arguments for Solaris_Math_10
5506 static const char* apzSolaris_Math_10Patch[] = {
5508 "#define\tisinf(x) __builtin_isinf(x)",
5509 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
5510 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
5511 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
5512 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
5515 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5517 * Description of Solaris_Mutex_Init_2 fix
5519 tSCC zSolaris_Mutex_Init_2Name[] =
5520 "solaris_mutex_init_2";
5523 * File name selection pattern
5525 tSCC zSolaris_Mutex_Init_2List[] =
5528 * Machine/OS name selection pattern
5530 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
5531 "*-*-solaris2.[0-9]",
5532 "*-*-solaris2.[0-9][!0-9]*",
5533 (const char*)NULL };
5536 * content selection pattern - do fix if pattern found
5538 tSCC zSolaris_Mutex_Init_2Select0[] =
5539 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5541 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
5542 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
5543 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
5546 * Fix Command Arguments for Solaris_Mutex_Init_2
5548 static const char* apzSolaris_Mutex_Init_2Patch[] = {
5550 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5555 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
5556 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
5559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5561 * Description of Solaris_Rwlock_Init_1 fix
5563 tSCC zSolaris_Rwlock_Init_1Name[] =
5564 "solaris_rwlock_init_1";
5567 * File name selection pattern
5569 tSCC zSolaris_Rwlock_Init_1List[] =
5572 * Machine/OS name selection pattern
5574 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
5576 (const char*)NULL };
5579 * content selection pattern - do fix if pattern found
5581 tSCC zSolaris_Rwlock_Init_1Select0[] =
5582 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5584 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
5585 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
5586 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
5589 * Fix Command Arguments for Solaris_Rwlock_Init_1
5591 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
5593 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5596 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
5598 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
5601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5603 * Description of Solaris_Once_Init_1 fix
5605 tSCC zSolaris_Once_Init_1Name[] =
5606 "solaris_once_init_1";
5609 * File name selection pattern
5611 tSCC zSolaris_Once_Init_1List[] =
5614 * Machine/OS name selection pattern
5616 tSCC* apzSolaris_Once_Init_1Machs[] = {
5618 (const char*)NULL };
5621 * content selection pattern - do fix if pattern found
5623 tSCC zSolaris_Once_Init_1Select0[] =
5624 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5626 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
5627 static tTestDesc aSolaris_Once_Init_1Tests[] = {
5628 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
5631 * Fix Command Arguments for Solaris_Once_Init_1
5633 static const char* apzSolaris_Once_Init_1Patch[] = {
5636 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
5639 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5641 * Description of Solaris_Once_Init_2 fix
5643 tSCC zSolaris_Once_Init_2Name[] =
5644 "solaris_once_init_2";
5647 * File name selection pattern
5649 tSCC zSolaris_Once_Init_2List[] =
5652 * Machine/OS name selection pattern
5654 tSCC* apzSolaris_Once_Init_2Machs[] = {
5655 "*-*-solaris2.[0-9]",
5656 "*-*-solaris2.[0-9][!0-9]*",
5657 (const char*)NULL };
5660 * content selection pattern - do fix if pattern found
5662 tSCC zSolaris_Once_Init_2Select0[] =
5663 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5665 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
5666 static tTestDesc aSolaris_Once_Init_2Tests[] = {
5667 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
5670 * Fix Command Arguments for Solaris_Once_Init_2
5672 static const char* apzSolaris_Once_Init_2Patch[] = {
5674 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5677 %1{0}, {0}, {0}, {%3}%4\n\
5679 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
5682 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5684 * Description of Solaris_Stdio_Tag fix
5686 tSCC zSolaris_Stdio_TagName[] =
5687 "solaris_stdio_tag";
5690 * File name selection pattern
5692 tSCC zSolaris_Stdio_TagList[] =
5695 * Machine/OS name selection pattern
5697 #define apzSolaris_Stdio_TagMachs (const char**)NULL
5700 * content selection pattern - do fix if pattern found
5702 tSCC zSolaris_Stdio_TagSelect0[] =
5703 "__cplusplus < 54321L";
5706 * content bypass pattern - skip fix if pattern found
5708 tSCC zSolaris_Stdio_TagBypass0[] =
5711 #define SOLARIS_STDIO_TAG_TEST_CT 2
5712 static tTestDesc aSolaris_Stdio_TagTests[] = {
5713 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
5714 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
5717 * Fix Command Arguments for Solaris_Stdio_Tag
5719 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
5720 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
5723 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5725 * Description of Statsswtch fix
5727 tSCC zStatsswtchName[] =
5731 * File name selection pattern
5733 tSCC zStatsswtchList[] =
5736 * Machine/OS name selection pattern
5738 #define apzStatsswtchMachs (const char**)NULL
5741 * content selection pattern - do fix if pattern found
5743 tSCC zStatsswtchSelect0[] =
5746 #define STATSSWTCH_TEST_CT 1
5747 static tTestDesc aStatsswtchTests[] = {
5748 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
5751 * Fix Command Arguments for Statsswtch
5753 static const char* apzStatsswtchPatch[] = {
5758 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5760 * Description of Stdio_Stdarg_H fix
5762 tSCC zStdio_Stdarg_HName[] =
5766 * File name selection pattern
5768 tSCC zStdio_Stdarg_HList[] =
5771 * Machine/OS name selection pattern
5773 tSCC* apzStdio_Stdarg_HMachs[] = {
5774 "*-*-solaris2.1[0-9]*",
5775 (const char*)NULL };
5778 * content bypass pattern - skip fix if pattern found
5780 tSCC zStdio_Stdarg_HBypass0[] =
5781 "include.*(stdarg.h|machine/ansi.h)";
5783 #define STDIO_STDARG_H_TEST_CT 1
5784 static tTestDesc aStdio_Stdarg_HTests[] = {
5785 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
5788 * Fix Command Arguments for Stdio_Stdarg_H
5790 static const char* apzStdio_Stdarg_HPatch[] = {
5792 "#define __need___va_list\n\
5793 #include <stdarg.h>\n",
5796 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5798 * Description of Stdio_Va_List fix
5800 tSCC zStdio_Va_ListName[] =
5804 * File name selection pattern
5806 tSCC zStdio_Va_ListList[] =
5807 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
5809 * Machine/OS name selection pattern
5811 tSCC* apzStdio_Va_ListMachs[] = {
5812 "*-*-solaris2.1[0-9]*",
5813 (const char*)NULL };
5816 * content bypass pattern - skip fix if pattern found
5818 tSCC zStdio_Va_ListBypass0[] =
5819 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
5821 #define STDIO_VA_LIST_TEST_CT 1
5822 static tTestDesc aStdio_Va_ListTests[] = {
5823 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
5826 * Fix Command Arguments for Stdio_Va_List
5828 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
5829 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
5830 s@(va_list)&@(__gnuc_va_list)\\&@\n\
5831 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
5832 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
5833 s@ va_list@ __not_va_list__@\n\
5834 s@\\*va_list@*__not_va_list__@\n\
5835 s@ __va_list)@ __gnuc_va_list)@\n\
5836 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
5837 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
5838 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
5839 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
5840 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
5841 s@VA_LIST@DUMMY_VA_LIST@\n\
5842 s@_Va_LIST@_VA_LIST@",
5845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5847 * Description of Stdio_Va_List_Clients fix
5849 tSCC zStdio_Va_List_ClientsName[] =
5850 "stdio_va_list_clients";
5853 * File name selection pattern
5855 tSCC zStdio_Va_List_ClientsList[] =
5856 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
5858 * Machine/OS name selection pattern
5860 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
5863 * content bypass pattern - skip fix if pattern found
5865 tSCC zStdio_Va_List_ClientsBypass0[] =
5866 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
5867 tSCC zStdio_Va_List_ClientsBypass1[] =
5868 "include <stdarg\\.h>|#ifdef va_start";
5870 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
5871 static tTestDesc aStdio_Va_List_ClientsTests[] = {
5872 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
5873 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
5876 * Fix Command Arguments for Stdio_Va_List_Clients
5878 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
5879 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
5880 s@(va_list)&@(__gnuc_va_list)\\&@\n\
5881 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
5882 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
5883 s@ va_list@ __not_va_list__@\n\
5884 s@\\*va_list@*__not_va_list__@\n\
5885 s@ __va_list)@ __gnuc_va_list)@\n\
5886 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
5887 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
5888 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
5889 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
5890 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
5891 s@VA_LIST@DUMMY_VA_LIST@\n\
5892 s@_Va_LIST@_VA_LIST@",
5895 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5897 * Description of Strict_Ansi_Not fix
5899 tSCC zStrict_Ansi_NotName[] =
5903 * File name selection pattern
5905 #define zStrict_Ansi_NotList (char*)NULL
5907 * Machine/OS name selection pattern
5909 #define apzStrict_Ansi_NotMachs (const char**)NULL
5912 * content selection pattern - do fix if pattern found
5914 tSCC zStrict_Ansi_NotSelect0[] =
5915 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
5918 * content bypass pattern - skip fix if pattern found
5920 tSCC zStrict_Ansi_NotBypass0[] =
5921 "GNU and MIPS C compilers define __STDC__ differently";
5922 tSCC zStrict_Ansi_NotBypass1[] =
5923 "__SCO_VERSION__.*__STDC__ != 1";
5926 * perform the C function call test
5928 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
5930 #define STRICT_ANSI_NOT_TEST_CT 4
5931 static tTestDesc aStrict_Ansi_NotTests[] = {
5932 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
5933 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
5934 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
5935 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
5938 * Fix Command Arguments for Strict_Ansi_Not
5940 static const char* apzStrict_Ansi_NotPatch[] = {
5942 "%1 !defined(__STRICT_ANSI__)",
5945 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5947 * Description of Strict_Ansi_Not_Ctd fix
5949 tSCC zStrict_Ansi_Not_CtdName[] =
5950 "strict_ansi_not_ctd";
5953 * File name selection pattern
5955 tSCC zStrict_Ansi_Not_CtdList[] =
5956 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
5958 * Machine/OS name selection pattern
5960 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
5963 * content selection pattern - do fix if pattern found
5965 tSCC zStrict_Ansi_Not_CtdSelect0[] =
5966 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
5969 * perform the C function call test
5971 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
5973 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
5974 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
5975 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
5976 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
5979 * Fix Command Arguments for Strict_Ansi_Not_Ctd
5981 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
5983 "%1 !defined(__STRICT_ANSI__)",
5986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5988 * Description of Strict_Ansi_Only fix
5990 tSCC zStrict_Ansi_OnlyName[] =
5994 * File name selection pattern
5996 #define zStrict_Ansi_OnlyList (char*)NULL
5998 * Machine/OS name selection pattern
6000 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6003 * content selection pattern - do fix if pattern found
6005 tSCC zStrict_Ansi_OnlySelect0[] =
6006 "^([ \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)";
6009 * perform the C function call test
6011 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6013 #define STRICT_ANSI_ONLY_TEST_CT 2
6014 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6015 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6016 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6019 * Fix Command Arguments for Strict_Ansi_Only
6021 static const char* apzStrict_Ansi_OnlyPatch[] = {
6023 "%1 defined(__STRICT_ANSI__)",
6026 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6028 * Description of Struct_File fix
6030 tSCC zStruct_FileName[] =
6034 * File name selection pattern
6036 tSCC zStruct_FileList[] =
6039 * Machine/OS name selection pattern
6041 #define apzStruct_FileMachs (const char**)NULL
6044 * content selection pattern - do fix if pattern found
6046 tSCC zStruct_FileSelect0[] =
6047 "^.*xdrstdio_create.*struct __file_s";
6049 #define STRUCT_FILE_TEST_CT 1
6050 static tTestDesc aStruct_FileTests[] = {
6051 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6054 * Fix Command Arguments for Struct_File
6056 static const char* apzStruct_FilePatch[] = {
6058 "struct __file_s;\n\
6062 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6064 * Description of Struct_Sockaddr fix
6066 tSCC zStruct_SockaddrName[] =
6070 * File name selection pattern
6072 tSCC zStruct_SockaddrList[] =
6075 * Machine/OS name selection pattern
6077 #define apzStruct_SockaddrMachs (const char**)NULL
6080 * content selection pattern - do fix if pattern found
6082 tSCC zStruct_SockaddrSelect0[] =
6083 "^.*authdes_create.*struct sockaddr[^_]";
6086 * content bypass pattern - skip fix if pattern found
6088 tSCC zStruct_SockaddrBypass0[] =
6090 tSCC zStruct_SockaddrBypass1[] =
6091 "struct sockaddr;\n";
6093 #define STRUCT_SOCKADDR_TEST_CT 3
6094 static tTestDesc aStruct_SockaddrTests[] = {
6095 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6096 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6097 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6100 * Fix Command Arguments for Struct_Sockaddr
6102 static const char* apzStruct_SockaddrPatch[] = {
6104 "struct sockaddr;\n\
6108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6110 * Description of Sun_Auth_Proto fix
6112 tSCC zSun_Auth_ProtoName[] =
6116 * File name selection pattern
6118 tSCC zSun_Auth_ProtoList[] =
6119 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6121 * Machine/OS name selection pattern
6123 #define apzSun_Auth_ProtoMachs (const char**)NULL
6126 * content selection pattern - do fix if pattern found
6128 tSCC zSun_Auth_ProtoSelect0[] =
6129 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6132 * content bypass pattern - skip fix if pattern found
6134 tSCC zSun_Auth_ProtoBypass0[] =
6137 #define SUN_AUTH_PROTO_TEST_CT 2
6138 static tTestDesc aSun_Auth_ProtoTests[] = {
6139 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6140 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6143 * Fix Command Arguments for Sun_Auth_Proto
6145 static const char* apzSun_Auth_ProtoPatch[] = {
6147 "#ifdef __cplusplus\n\
6152 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6155 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6157 * Description of Sun_Bogus_Ifdef fix
6159 tSCC zSun_Bogus_IfdefName[] =
6163 * File name selection pattern
6165 tSCC zSun_Bogus_IfdefList[] =
6166 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
6168 * Machine/OS name selection pattern
6170 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6173 * content selection pattern - do fix if pattern found
6175 tSCC zSun_Bogus_IfdefSelect0[] =
6176 "#ifdef(.*\\|\\|.*)";
6178 #define SUN_BOGUS_IFDEF_TEST_CT 1
6179 static tTestDesc aSun_Bogus_IfdefTests[] = {
6180 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6183 * Fix Command Arguments for Sun_Bogus_Ifdef
6185 static const char* apzSun_Bogus_IfdefPatch[] = {
6190 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6192 * Description of Sun_Catmacro fix
6194 tSCC zSun_CatmacroName[] =
6198 * File name selection pattern
6200 tSCC zSun_CatmacroList[] =
6201 "pixrect/memvar.h\0";
6203 * Machine/OS name selection pattern
6205 #define apzSun_CatmacroMachs (const char**)NULL
6208 * content selection pattern - do fix if pattern found
6210 tSCC zSun_CatmacroSelect0[] =
6211 "^#define[ \t]+CAT\\(a,b\\).*";
6213 #define SUN_CATMACRO_TEST_CT 1
6214 static tTestDesc aSun_CatmacroTests[] = {
6215 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
6218 * Fix Command Arguments for Sun_Catmacro
6220 static const char* apzSun_CatmacroPatch[] = {
6223 # define CAT(a,b) a##b\n\
6229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6231 * Description of Sun_Malloc fix
6233 tSCC zSun_MallocName[] =
6237 * File name selection pattern
6239 tSCC zSun_MallocList[] =
6242 * Machine/OS name selection pattern
6244 #define apzSun_MallocMachs (const char**)NULL
6247 * content bypass pattern - skip fix if pattern found
6249 tSCC zSun_MallocBypass0[] =
6250 "_CLASSIC_ANSI_TYPES";
6252 #define SUN_MALLOC_TEST_CT 1
6253 static tTestDesc aSun_MallocTests[] = {
6254 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
6257 * Fix Command Arguments for Sun_Malloc
6259 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
6260 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6261 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6262 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6263 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6264 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6267 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6269 * Description of Sun_Rusers_Semi fix
6271 tSCC zSun_Rusers_SemiName[] =
6275 * File name selection pattern
6277 tSCC zSun_Rusers_SemiList[] =
6278 "rpcsvc/rusers.h\0";
6280 * Machine/OS name selection pattern
6282 #define apzSun_Rusers_SemiMachs (const char**)NULL
6285 * content selection pattern - do fix if pattern found
6287 tSCC zSun_Rusers_SemiSelect0[] =
6290 #define SUN_RUSERS_SEMI_TEST_CT 1
6291 static tTestDesc aSun_Rusers_SemiTests[] = {
6292 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6295 * Fix Command Arguments for Sun_Rusers_Semi
6297 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
6298 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6303 * Description of Sun_Signal fix
6305 tSCC zSun_SignalName[] =
6309 * File name selection pattern
6311 tSCC zSun_SignalList[] =
6312 "sys/signal.h\0signal.h\0";
6314 * Machine/OS name selection pattern
6316 #define apzSun_SignalMachs (const char**)NULL
6319 * content selection pattern - do fix if pattern found
6321 tSCC zSun_SignalSelect0[] =
6322 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6324 #define SUN_SIGNAL_TEST_CT 1
6325 static tTestDesc aSun_SignalTests[] = {
6326 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
6329 * Fix Command Arguments for Sun_Signal
6331 static const char* apzSun_SignalPatch[] = {
6333 "#ifdef __cplusplus\n\
6334 void\t(*signal(...))(...);\n\
6340 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6342 * Description of Sunos_Strlen fix
6344 tSCC zSunos_StrlenName[] =
6348 * File name selection pattern
6350 tSCC zSunos_StrlenList[] =
6353 * Machine/OS name selection pattern
6355 #define apzSunos_StrlenMachs (const char**)NULL
6358 * content selection pattern - do fix if pattern found
6360 tSCC zSunos_StrlenSelect0[] =
6361 "int[ \t]*strlen\\(\\);(.*)";
6363 #define SUNOS_STRLEN_TEST_CT 1
6364 static tTestDesc aSunos_StrlenTests[] = {
6365 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
6368 * Fix Command Arguments for Sunos_Strlen
6370 static const char* apzSunos_StrlenPatch[] = {
6372 "__SIZE_TYPE__ strlen();%1",
6375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6377 * Description of Svr4_Disable_Opt fix
6379 tSCC zSvr4_Disable_OptName[] =
6383 * File name selection pattern
6385 tSCC zSvr4_Disable_OptList[] =
6388 * Machine/OS name selection pattern
6390 #define apzSvr4_Disable_OptMachs (const char**)NULL
6393 * content selection pattern - do fix if pattern found
6395 tSCC zSvr4_Disable_OptSelect0[] =
6396 "#define.*__std_hdr_";
6398 #define SVR4_DISABLE_OPT_TEST_CT 1
6399 static tTestDesc aSvr4_Disable_OptTests[] = {
6400 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
6403 * Fix Command Arguments for Svr4_Disable_Opt
6405 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
6406 "-e", "/#define.*__std_hdr_/d",
6409 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6411 * Description of Svr4_Getcwd fix
6413 tSCC zSvr4_GetcwdName[] =
6417 * File name selection pattern
6419 tSCC zSvr4_GetcwdList[] =
6420 "stdlib.h\0unistd.h\0prototypes.h\0";
6422 * Machine/OS name selection pattern
6424 #define apzSvr4_GetcwdMachs (const char**)NULL
6427 * content selection pattern - do fix if pattern found
6429 tSCC zSvr4_GetcwdSelect0[] =
6430 "getcwd\\(char \\*, int\\)";
6432 #define SVR4_GETCWD_TEST_CT 1
6433 static tTestDesc aSvr4_GetcwdTests[] = {
6434 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
6437 * Fix Command Arguments for Svr4_Getcwd
6439 static const char* apzSvr4_GetcwdPatch[] = {
6441 "getcwd(char *, size_t)",
6444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6446 * Description of Svr4_Profil fix
6448 tSCC zSvr4_ProfilName[] =
6452 * File name selection pattern
6454 tSCC zSvr4_ProfilList[] =
6455 "stdlib.h\0unistd.h\0";
6457 * Machine/OS name selection pattern
6459 #define apzSvr4_ProfilMachs (const char**)NULL
6462 * content selection pattern - do fix if pattern found
6464 tSCC zSvr4_ProfilSelect0[] =
6465 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
6468 * content bypass pattern - skip fix if pattern found
6470 tSCC zSvr4_ProfilBypass0[] =
6473 #define SVR4_PROFIL_TEST_CT 2
6474 static tTestDesc aSvr4_ProfilTests[] = {
6475 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
6476 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
6479 * Fix Command Arguments for Svr4_Profil
6481 static const char* apzSvr4_ProfilPatch[] = {
6483 "profil(unsigned short *, size_t, int, unsigned int)",
6486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6488 * Description of Svr4_Sighandler_Type fix
6490 tSCC zSvr4_Sighandler_TypeName[] =
6491 "svr4_sighandler_type";
6494 * File name selection pattern
6496 tSCC zSvr4_Sighandler_TypeList[] =
6499 * Machine/OS name selection pattern
6501 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
6504 * content selection pattern - do fix if pattern found
6506 tSCC zSvr4_Sighandler_TypeSelect0[] =
6507 "void *\\(\\*\\)\\(\\)";
6509 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
6510 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
6511 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
6514 * Fix Command Arguments for Svr4_Sighandler_Type
6516 static const char* apzSvr4_Sighandler_TypePatch[] = {
6521 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6523 * Description of Svr4_Undeclared_Getrnge fix
6525 tSCC zSvr4_Undeclared_GetrngeName[] =
6526 "svr4_undeclared_getrnge";
6529 * File name selection pattern
6531 tSCC zSvr4_Undeclared_GetrngeList[] =
6534 * Machine/OS name selection pattern
6536 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
6539 * content selection pattern - do fix if pattern found
6541 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
6545 * content bypass pattern - skip fix if pattern found
6547 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
6548 "static void getrnge";
6550 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
6551 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
6552 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
6553 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
6556 * Fix Command Arguments for Svr4_Undeclared_Getrnge
6558 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
6561 static int getrnge ();",
6562 "^static int[ \t]+size;",
6565 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6567 * Description of Sysv68_String fix
6569 tSCC zSysv68_StringName[] =
6573 * File name selection pattern
6575 tSCC zSysv68_StringList[] =
6576 "testing.h\0string.h\0";
6578 * Machine/OS name selection pattern
6580 #define apzSysv68_StringMachs (const char**)NULL
6583 * content bypass pattern - skip fix if pattern found
6585 tSCC zSysv68_StringBypass0[] =
6586 "_CLASSIC_ANSI_TYPES";
6588 #define SYSV68_STRING_TEST_CT 1
6589 static tTestDesc aSysv68_StringTests[] = {
6590 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
6593 * Fix Command Arguments for Sysv68_String
6595 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
6596 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
6597 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
6598 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
6599 "-e", "/^extern char$/N",
6600 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
6601 "-e", "/^extern int$/N",
6602 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
6603 "-e", "/^\tstrncmp(),$/N",
6604 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
6605 extern unsigned int\\\n\
6609 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6611 * Description of Sysz_Stdlib_For_Sun fix
6613 tSCC zSysz_Stdlib_For_SunName[] =
6614 "sysz_stdlib_for_sun";
6617 * File name selection pattern
6619 tSCC zSysz_Stdlib_For_SunList[] =
6622 * Machine/OS name selection pattern
6624 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
6627 * content selection pattern - do fix if pattern found
6629 tSCC zSysz_Stdlib_For_SunSelect0[] =
6630 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
6633 * content bypass pattern - skip fix if pattern found
6635 tSCC zSysz_Stdlib_For_SunBypass0[] =
6636 "_CLASSIC_ANSI_TYPES";
6638 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
6639 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
6640 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
6641 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
6644 * Fix Command Arguments for Sysz_Stdlib_For_Sun
6646 static const char* apzSysz_Stdlib_For_SunPatch[] = {
6651 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6653 * Description of Thread_Keyword fix
6655 tSCC zThread_KeywordName[] =
6659 * File name selection pattern
6661 tSCC zThread_KeywordList[] =
6662 "pthread.h\0bits/sigthread.h\0";
6664 * Machine/OS name selection pattern
6666 #define apzThread_KeywordMachs (const char**)NULL
6669 * content selection pattern - do fix if pattern found
6671 tSCC zThread_KeywordSelect0[] =
6672 "([* ])__thread([,)])";
6674 #define THREAD_KEYWORD_TEST_CT 1
6675 static tTestDesc aThread_KeywordTests[] = {
6676 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
6679 * Fix Command Arguments for Thread_Keyword
6681 static const char* apzThread_KeywordPatch[] = {
6686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6688 * Description of Tinfo_Cplusplus fix
6690 tSCC zTinfo_CplusplusName[] =
6694 * File name selection pattern
6696 tSCC zTinfo_CplusplusList[] =
6699 * Machine/OS name selection pattern
6701 #define apzTinfo_CplusplusMachs (const char**)NULL
6704 * content selection pattern - do fix if pattern found
6706 tSCC zTinfo_CplusplusSelect0[] =
6709 #define TINFO_CPLUSPLUS_TEST_CT 1
6710 static tTestDesc aTinfo_CplusplusTests[] = {
6711 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
6714 * Fix Command Arguments for Tinfo_Cplusplus
6716 static const char* apzTinfo_CplusplusPatch[] = {
6721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6723 * Description of Ultrix_Const fix
6725 tSCC zUltrix_ConstName[] =
6729 * File name selection pattern
6731 tSCC zUltrix_ConstList[] =
6734 * Machine/OS name selection pattern
6736 #define apzUltrix_ConstMachs (const char**)NULL
6739 * content selection pattern - do fix if pattern found
6741 tSCC zUltrix_ConstSelect0[] =
6742 "perror\\( char \\*";
6744 #define ULTRIX_CONST_TEST_CT 1
6745 static tTestDesc aUltrix_ConstTests[] = {
6746 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
6749 * Fix Command Arguments for Ultrix_Const
6751 static const char* apzUltrix_ConstPatch[] = {
6754 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
6757 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6759 * Description of Ultrix_Const2 fix
6761 tSCC zUltrix_Const2Name[] =
6765 * File name selection pattern
6767 tSCC zUltrix_Const2List[] =
6770 * Machine/OS name selection pattern
6772 #define apzUltrix_Const2Machs (const char**)NULL
6775 * content selection pattern - do fix if pattern found
6777 tSCC zUltrix_Const2Select0[] =
6778 "\\*fopen\\( char \\*";
6780 #define ULTRIX_CONST2_TEST_CT 1
6781 static tTestDesc aUltrix_Const2Tests[] = {
6782 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
6785 * Fix Command Arguments for Ultrix_Const2
6787 static const char* apzUltrix_Const2Patch[] = {
6789 "%1( const char *%3, const char *",
6790 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
6793 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6795 * Description of Va_I960_Macro fix
6797 tSCC zVa_I960_MacroName[] =
6801 * File name selection pattern
6803 tSCC zVa_I960_MacroList[] =
6804 "arch/i960/archI960.h\0";
6806 * Machine/OS name selection pattern
6808 #define apzVa_I960_MacroMachs (const char**)NULL
6811 * content selection pattern - do fix if pattern found
6813 tSCC zVa_I960_MacroSelect0[] =
6814 "__(vsiz|vali|vpad|alignof__)";
6816 #define VA_I960_MACRO_TEST_CT 1
6817 static tTestDesc aVa_I960_MacroTests[] = {
6818 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
6821 * Fix Command Arguments for Va_I960_Macro
6823 static const char* apzVa_I960_MacroPatch[] = {
6828 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6830 * Description of Void_Null fix
6832 tSCC zVoid_NullName[] =
6836 * File name selection pattern
6838 tSCC zVoid_NullList[] =
6839 "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";
6841 * Machine/OS name selection pattern
6843 #define apzVoid_NullMachs (const char**)NULL
6846 * content selection pattern - do fix if pattern found
6848 tSCC zVoid_NullSelect0[] =
6849 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
6852 * content bypass pattern - skip fix if pattern found
6854 tSCC zVoid_NullBypass0[] =
6857 #define VOID_NULL_TEST_CT 2
6858 static tTestDesc aVoid_NullTests[] = {
6859 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
6860 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
6863 * Fix Command Arguments for Void_Null
6865 static const char* apzVoid_NullPatch[] = {
6870 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6872 * Description of Vxworks_Gcc_Problem fix
6874 tSCC zVxworks_Gcc_ProblemName[] =
6875 "vxworks_gcc_problem";
6878 * File name selection pattern
6880 tSCC zVxworks_Gcc_ProblemList[] =
6881 "types/vxTypesBase.h\0";
6883 * Machine/OS name selection pattern
6885 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
6888 * content selection pattern - do fix if pattern found
6890 tSCC zVxworks_Gcc_ProblemSelect0[] =
6891 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
6893 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
6894 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
6895 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
6898 * Fix Command Arguments for Vxworks_Gcc_Problem
6900 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
6901 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
6902 "-e", "/[ \t]size_t/i\\\n\
6903 #ifndef _GCC_SIZE_T\\\n\
6904 #define _GCC_SIZE_T\n",
6905 "-e", "/[ \t]size_t/a\\\n\
6907 "-e", "/[ \t]ptrdiff_t/i\\\n\
6908 #ifndef _GCC_PTRDIFF_T\\\n\
6909 #define _GCC_PTRDIFF_T\n",
6910 "-e", "/[ \t]ptrdiff_t/a\\\n\
6912 "-e", "/[ \t]wchar_t/i\\\n\
6913 #ifndef _GCC_WCHAR_T\\\n\
6914 #define _GCC_WCHAR_T\n",
6915 "-e", "/[ \t]wchar_t/a\\\n\
6919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6921 * Description of Vxworks_Needs_Vxtypes fix
6923 tSCC zVxworks_Needs_VxtypesName[] =
6924 "vxworks_needs_vxtypes";
6927 * File name selection pattern
6929 tSCC zVxworks_Needs_VxtypesList[] =
6932 * Machine/OS name selection pattern
6934 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
6937 * content selection pattern - do fix if pattern found
6939 tSCC zVxworks_Needs_VxtypesSelect0[] =
6940 "uint_t([ \t]+_clocks_per_sec)";
6942 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
6943 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
6944 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
6947 * Fix Command Arguments for Vxworks_Needs_Vxtypes
6949 static const char* apzVxworks_Needs_VxtypesPatch[] = {
6954 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6956 * Description of Vxworks_Needs_Vxworks fix
6958 tSCC zVxworks_Needs_VxworksName[] =
6959 "vxworks_needs_vxworks";
6962 * File name selection pattern
6964 tSCC zVxworks_Needs_VxworksList[] =
6967 * Machine/OS name selection pattern
6969 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
6972 * content selection pattern - do fix if pattern found
6974 tSCC zVxworks_Needs_VxworksSelect0[] =
6975 "#[ \t]define[ \t]+__INCstath";
6978 * perform the 'test' shell command - do fix on success
6980 tSCC zVxworks_Needs_VxworksTest0[] =
6981 " -r types/vxTypesOld.h";
6982 tSCC zVxworks_Needs_VxworksTest1[] =
6983 " -n \"`egrep '#include' $file`\"";
6984 tSCC zVxworks_Needs_VxworksTest2[] =
6985 " -n \"`egrep ULONG $file`\"";
6987 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
6988 static tTestDesc aVxworks_Needs_VxworksTests[] = {
6989 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
6990 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
6991 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
6992 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
6995 * Fix Command Arguments for Vxworks_Needs_Vxworks
6997 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
6998 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
6999 #include <types/vxTypesOld.h>\n",
7002 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7004 * Description of Vxworks_Time fix
7006 tSCC zVxworks_TimeName[] =
7010 * File name selection pattern
7012 tSCC zVxworks_TimeList[] =
7015 * Machine/OS name selection pattern
7017 #define apzVxworks_TimeMachs (const char**)NULL
7020 * content selection pattern - do fix if pattern found
7022 tSCC zVxworks_TimeSelect0[] =
7023 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
7026 * perform the 'test' shell command - do fix on success
7028 tSCC zVxworks_TimeTest0[] =
7031 #define VXWORKS_TIME_TEST_CT 2
7032 static tTestDesc aVxworks_TimeTests[] = {
7033 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
7034 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
7037 * Fix Command Arguments for Vxworks_Time
7039 static const char* apzVxworks_TimePatch[] = {
7041 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
7042 #ifdef __cplusplus\n\
7043 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
7045 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
7047 #define __gcc_VOIDFUNCPTR_defined\n\
7049 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
7052 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7054 * Description of X11_Class fix
7056 tSCC zX11_ClassName[] =
7060 * File name selection pattern
7062 tSCC zX11_ClassList[] =
7065 * Machine/OS name selection pattern
7067 #define apzX11_ClassMachs (const char**)NULL
7070 * content selection pattern - do fix if pattern found
7072 tSCC zX11_ClassSelect0[] =
7073 "^([ \t]*char \\*)class;(.*)";
7076 * content bypass pattern - skip fix if pattern found
7078 tSCC zX11_ClassBypass0[] =
7081 #define X11_CLASS_TEST_CT 2
7082 static tTestDesc aX11_ClassTests[] = {
7083 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
7084 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
7087 * Fix Command Arguments for X11_Class
7089 static const char* apzX11_ClassPatch[] = {
7091 "#ifdef __cplusplus\n\
7098 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7100 * Description of X11_Class_Usage fix
7102 tSCC zX11_Class_UsageName[] =
7106 * File name selection pattern
7108 tSCC zX11_Class_UsageList[] =
7109 "Xm/BaseClassI.h\0";
7111 * Machine/OS name selection pattern
7113 #define apzX11_Class_UsageMachs (const char**)NULL
7116 * content selection pattern - do fix if pattern found
7118 tSCC zX11_Class_UsageSelect0[] =
7122 * content bypass pattern - skip fix if pattern found
7124 tSCC zX11_Class_UsageBypass0[] =
7127 #define X11_CLASS_USAGE_TEST_CT 2
7128 static tTestDesc aX11_Class_UsageTests[] = {
7129 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
7130 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
7133 * Fix Command Arguments for X11_Class_Usage
7135 static const char* apzX11_Class_UsagePatch[] = {
7140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7142 * Description of X11_New fix
7144 tSCC zX11_NewName[] =
7148 * File name selection pattern
7150 tSCC zX11_NewList[] =
7153 * Machine/OS name selection pattern
7155 #define apzX11_NewMachs (const char**)NULL
7158 * content bypass pattern - skip fix if pattern found
7160 tSCC zX11_NewBypass0[] =
7163 #define X11_NEW_TEST_CT 1
7164 static tTestDesc aX11_NewTests[] = {
7165 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
7168 * Fix Command Arguments for X11_New
7170 static const char* apzX11_NewPatch[] = { sed_cmd_z,
7171 "-e", "/Widget\told, new;/i\\\n\
7172 #ifdef __cplusplus\\\n\
7173 \tWidget\told, c_new;\\\n\
7175 "-e", "/Widget\told, new;/a\\\n\
7177 "-e", "s/Widget new,/Widget c_new,/g",
7180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7182 * Description of X11_Sprintf fix
7184 tSCC zX11_SprintfName[] =
7188 * File name selection pattern
7190 tSCC zX11_SprintfList[] =
7191 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
7193 * Machine/OS name selection pattern
7195 #define apzX11_SprintfMachs (const char**)NULL
7198 * content selection pattern - do fix if pattern found
7200 tSCC zX11_SprintfSelect0[] =
7201 "^extern char \\*\tsprintf\\(\\);$";
7203 #define X11_SPRINTF_TEST_CT 1
7204 static tTestDesc aX11_SprintfTests[] = {
7205 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
7208 * Fix Command Arguments for X11_Sprintf
7210 static const char* apzX11_SprintfPatch[] = {
7212 "#ifndef __STDC__\n\
7214 #endif /* !defined __STDC__ */",
7218 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7222 #define REGEX_COUNT 224
7223 #define MACH_LIST_SIZE_LIMIT 181
7224 #define FIX_COUNT 178
7227 * Enumerate the fixes
7230 AAB_AIX_STDIO_FIXIDX,
7231 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
7232 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
7233 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
7234 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
7235 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
7236 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
7237 AAB_SUN_MEMCPY_FIXIDX,
7239 AIX_SYSMACHINE_FIXIDX,
7241 AIX_SYSWAIT_2_FIXIDX,
7242 AIX_VOLATILE_FIXIDX,
7243 ALPHA___ASSERT_FIXIDX,
7244 ALPHA___EXTERN_PREFIX_FIXIDX,
7245 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
7246 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
7247 ALPHA_ASSERT_FIXIDX,
7248 ALPHA_BAD_LVAL_FIXIDX,
7249 ALPHA_GETOPT_FIXIDX,
7250 ALPHA_PARENS_FIXIDX,
7251 ALPHA_PTHREAD_FIXIDX,
7252 ALPHA_PTHREAD_GCC_FIXIDX,
7253 ALPHA_PTHREAD_INIT_FIXIDX,
7256 AVOID_BOOL_DEFINE_FIXIDX,
7257 AVOID_BOOL_TYPE_FIXIDX,
7258 AVOID_WCHAR_T_TYPE_FIXIDX,
7259 BAD_STRUCT_TERM_FIXIDX,
7261 BROKEN_ASSERT_STDIO_FIXIDX,
7262 BROKEN_ASSERT_STDLIB_FIXIDX,
7265 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
7266 CTRL_QUOTES_DEF_FIXIDX,
7267 CTRL_QUOTES_USE_FIXIDX,
7269 DARWIN_EXTERNC_FIXIDX,
7270 DARWIN_GCC4_BREAKAGE_FIXIDX,
7271 DARWIN_PRIVATE_EXTERN_FIXIDX,
7272 DEC_INTERN_ASM_FIXIDX,
7273 DJGPP_WCHAR_H_FIXIDX,
7275 EXCEPTION_STRUCTURE_FIXIDX,
7276 FREEBSD_GCC3_BREAKAGE_FIXIDX,
7277 FREEBSD_GCC4_BREAKAGE_FIXIDX,
7278 GLIBC_C99_INLINE_1_FIXIDX,
7279 GLIBC_C99_INLINE_1A_FIXIDX,
7280 GLIBC_C99_INLINE_2_FIXIDX,
7281 GLIBC_C99_INLINE_3_FIXIDX,
7282 GLIBC_C99_INLINE_4_FIXIDX,
7283 GLIBC_MUTEX_INIT_FIXIDX,
7287 HPPA_HPUX_FP_MACROS_FIXIDX,
7288 HPUX10_CPP_POW_INLINE_FIXIDX,
7289 HPUX11_CPP_POW_INLINE_FIXIDX,
7290 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
7291 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
7292 HPUX10_STDIO_DECLARATIONS_FIXIDX,
7294 HPUX11_FABSF_FIXIDX,
7295 HPUX11_PTHREAD_CONST_FIXIDX,
7296 HPUX11_SIZE_T_FIXIDX,
7297 HPUX11_SNPRINTF_FIXIDX,
7298 HPUX11_UINT32_C_FIXIDX,
7299 HPUX11_VSNPRINTF_FIXIDX,
7300 HPUX8_BOGUS_INLINES_FIXIDX,
7301 HPUX_CTYPE_MACROS_FIXIDX,
7303 HPUX_LONG_DOUBLE_FIXIDX,
7304 HPUX_SYSTIME_FIXIDX,
7305 HPUX_SPU_INFO_FIXIDX,
7306 HPUX11_EXTERN_SENDFILE_FIXIDX,
7307 HPUX11_EXTERN_SENDPATH_FIXIDX,
7308 HPUX_EXTERN_ERRNO_FIXIDX,
7309 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
7310 HUGE_VAL_HEX_FIXIDX,
7311 HUGE_VALF_HEX_FIXIDX,
7312 HUGE_VALL_HEX_FIXIDX,
7313 INT_ABORT_FREE_AND_EXIT_FIXIDX,
7314 IO_QUOTES_DEF_FIXIDX,
7315 IO_QUOTES_USE_FIXIDX,
7316 IP_MISSING_SEMI_FIXIDX,
7317 IRIX___RESTRICT_FIXIDX,
7318 IRIX___GENERIC1_FIXIDX,
7319 IRIX___GENERIC2_FIXIDX,
7320 IRIX_ASM_APOSTROPHE_FIXIDX,
7321 IRIX_LIMITS_CONST_FIXIDX,
7322 IRIX_SOCKLEN_T_FIXIDX,
7323 IRIX_STDINT_C99_FIXIDX,
7324 IRIX_STDIO_VA_LIST_FIXIDX,
7325 IRIX_WCSFTIME_FIXIDX,
7327 ISC_OMITS_WITH_STDC_FIXIDX,
7328 KANDR_CONCAT_FIXIDX,
7329 LINUX_IA64_UCONTEXT_FIXIDX,
7330 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
7331 LYNXOS_MISSING_PUTENV_FIXIDX,
7332 MACHINE_ANSI_H_VA_LIST_FIXIDX,
7333 MACHINE_NAME_FIXIDX,
7334 MATH_EXCEPTION_FIXIDX,
7335 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
7336 NESTED_AUTH_DES_FIXIDX,
7337 NESTED_SYS_LIMITS_FIXIDX,
7338 NETBSD_C99_INLINE_1_FIXIDX,
7339 NETBSD_C99_INLINE_2_FIXIDX,
7340 NETBSD_EXTRA_SEMICOLON_FIXIDX,
7341 NEXT_MATH_PREFIX_FIXIDX,
7342 NEXT_TEMPLATE_FIXIDX,
7343 NEXT_VOLITILE_FIXIDX,
7344 NEXT_WAIT_UNION_FIXIDX,
7345 NODEENT_SYNTAX_FIXIDX,
7346 OBSTACK_LVALUE_CAST_FIXIDX,
7347 OPENBSD_VA_START_FIXIDX,
7348 OSF_NAMESPACE_A_FIXIDX,
7349 OSF_NAMESPACE_C_FIXIDX,
7350 PTHREAD_PAGE_SIZE_FIXIDX,
7351 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
7352 READ_RET_TYPE_FIXIDX,
7353 RPC_XDR_LVALUE_CAST_A_FIXIDX,
7354 RPC_XDR_LVALUE_CAST_B_FIXIDX,
7355 RS6000_DOUBLE_FIXIDX,
7356 RS6000_FCHMOD_FIXIDX,
7357 RS6000_PARAM_FIXIDX,
7359 SOLARIS_MATH_1_FIXIDX,
7360 SOLARIS_MATH_2_FIXIDX,
7361 SOLARIS_MATH_3_FIXIDX,
7362 SOLARIS_MATH_4_FIXIDX,
7363 SOLARIS_MATH_8_FIXIDX,
7364 SOLARIS_MATH_9_FIXIDX,
7365 SOLARIS_MATH_10_FIXIDX,
7366 SOLARIS_MUTEX_INIT_2_FIXIDX,
7367 SOLARIS_RWLOCK_INIT_1_FIXIDX,
7368 SOLARIS_ONCE_INIT_1_FIXIDX,
7369 SOLARIS_ONCE_INIT_2_FIXIDX,
7370 SOLARIS_STDIO_TAG_FIXIDX,
7372 STDIO_STDARG_H_FIXIDX,
7373 STDIO_VA_LIST_FIXIDX,
7374 STDIO_VA_LIST_CLIENTS_FIXIDX,
7375 STRICT_ANSI_NOT_FIXIDX,
7376 STRICT_ANSI_NOT_CTD_FIXIDX,
7377 STRICT_ANSI_ONLY_FIXIDX,
7379 STRUCT_SOCKADDR_FIXIDX,
7380 SUN_AUTH_PROTO_FIXIDX,
7381 SUN_BOGUS_IFDEF_FIXIDX,
7382 SUN_CATMACRO_FIXIDX,
7384 SUN_RUSERS_SEMI_FIXIDX,
7386 SUNOS_STRLEN_FIXIDX,
7387 SVR4_DISABLE_OPT_FIXIDX,
7390 SVR4_SIGHANDLER_TYPE_FIXIDX,
7391 SVR4_UNDECLARED_GETRNGE_FIXIDX,
7392 SYSV68_STRING_FIXIDX,
7393 SYSZ_STDLIB_FOR_SUN_FIXIDX,
7394 THREAD_KEYWORD_FIXIDX,
7395 TINFO_CPLUSPLUS_FIXIDX,
7396 ULTRIX_CONST_FIXIDX,
7397 ULTRIX_CONST2_FIXIDX,
7398 VA_I960_MACRO_FIXIDX,
7400 VXWORKS_GCC_PROBLEM_FIXIDX,
7401 VXWORKS_NEEDS_VXTYPES_FIXIDX,
7402 VXWORKS_NEEDS_VXWORKS_FIXIDX,
7403 VXWORKS_TIME_FIXIDX,
7405 X11_CLASS_USAGE_FIXIDX,
7410 tFixDesc fixDescList[ FIX_COUNT ] = {
7411 { zAab_Aix_StdioName, zAab_Aix_StdioList,
7412 apzAab_Aix_StdioMachs,
7413 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7414 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
7416 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
7417 apzAab_Darwin7_9_Long_Double_FuncsMachs,
7418 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7419 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
7421 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
7422 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
7423 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7424 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
7426 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
7427 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
7428 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7429 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
7431 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
7432 apzAab_Fd_Zero_Gnu_Types_HMachs,
7433 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7434 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
7436 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
7437 apzAab_Fd_Zero_Selectbits_HMachs,
7438 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7439 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
7441 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
7442 apzAab_Solaris_Sys_Varargs_HMachs,
7443 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7444 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
7446 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
7447 apzAab_Sun_MemcpyMachs,
7448 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7449 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
7451 { zAix_PthreadName, zAix_PthreadList,
7452 apzAix_PthreadMachs,
7453 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7454 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
7456 { zAix_SysmachineName, zAix_SysmachineList,
7457 apzAix_SysmachineMachs,
7458 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7459 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
7461 { zAix_SyswaitName, zAix_SyswaitList,
7462 apzAix_SyswaitMachs,
7463 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7464 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
7466 { zAix_Syswait_2Name, zAix_Syswait_2List,
7467 apzAix_Syswait_2Machs,
7468 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7469 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
7471 { zAix_VolatileName, zAix_VolatileList,
7472 apzAix_VolatileMachs,
7473 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7474 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
7476 { zAlpha___AssertName, zAlpha___AssertList,
7477 apzAlpha___AssertMachs,
7478 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7479 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
7481 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
7482 apzAlpha___Extern_PrefixMachs,
7483 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7484 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
7486 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
7487 apzAlpha___Extern_Prefix_StandardsMachs,
7488 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7489 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
7491 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
7492 apzAlpha___Extern_Prefix_Sys_StatMachs,
7493 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7494 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
7496 { zAlpha_AssertName, zAlpha_AssertList,
7497 apzAlpha_AssertMachs,
7498 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7499 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
7501 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
7502 apzAlpha_Bad_LvalMachs,
7503 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
7504 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
7506 { zAlpha_GetoptName, zAlpha_GetoptList,
7507 apzAlpha_GetoptMachs,
7508 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7509 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
7511 { zAlpha_ParensName, zAlpha_ParensList,
7512 apzAlpha_ParensMachs,
7513 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7514 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
7516 { zAlpha_PthreadName, zAlpha_PthreadList,
7517 apzAlpha_PthreadMachs,
7518 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7519 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
7521 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
7522 apzAlpha_Pthread_GccMachs,
7523 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7524 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
7526 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
7527 apzAlpha_Pthread_InitMachs,
7528 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
7529 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
7531 { zAlpha_SbrkName, zAlpha_SbrkList,
7533 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7534 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
7536 { zAlpha_WcharName, zAlpha_WcharList,
7537 apzAlpha_WcharMachs,
7538 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
7539 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
7541 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
7542 apzAvoid_Bool_DefineMachs,
7543 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7544 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
7546 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
7547 apzAvoid_Bool_TypeMachs,
7548 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7549 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
7551 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
7552 apzAvoid_Wchar_T_TypeMachs,
7553 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7554 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
7556 { zBad_Struct_TermName, zBad_Struct_TermList,
7557 apzBad_Struct_TermMachs,
7558 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7559 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
7561 { zBadquoteName, zBadquoteList,
7563 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7564 aBadquoteTests, apzBadquotePatch, 0 },
7566 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
7567 apzBroken_Assert_StdioMachs,
7568 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7569 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
7571 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
7572 apzBroken_Assert_StdlibMachs,
7573 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7574 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
7576 { zBroken_CabsName, zBroken_CabsList,
7577 apzBroken_CabsMachs,
7578 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
7579 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
7581 { zBroken_NanName, zBroken_NanList,
7583 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7584 aBroken_NanTests, apzBroken_NanPatch, 0 },
7586 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
7587 apzBsd_Stdio_Attrs_ConflictMachs,
7588 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7589 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
7591 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
7592 apzCtrl_Quotes_DefMachs,
7593 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7594 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
7596 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
7597 apzCtrl_Quotes_UseMachs,
7598 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7599 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
7601 { zCxx_UnreadyName, zCxx_UnreadyList,
7602 apzCxx_UnreadyMachs,
7603 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7604 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
7606 { zDarwin_ExterncName, zDarwin_ExterncList,
7607 apzDarwin_ExterncMachs,
7608 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7609 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
7611 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
7612 apzDarwin_Gcc4_BreakageMachs,
7613 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7614 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
7616 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
7617 apzDarwin_Private_ExternMachs,
7618 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7619 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
7621 { zDec_Intern_AsmName, zDec_Intern_AsmList,
7622 apzDec_Intern_AsmMachs,
7623 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
7624 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
7626 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
7627 apzDjgpp_Wchar_HMachs,
7628 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7629 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
7631 { zEcd_CursorName, zEcd_CursorList,
7633 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7634 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
7636 { zException_StructureName, zException_StructureList,
7637 apzException_StructureMachs,
7638 EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7639 aException_StructureTests, apzException_StructurePatch, 0 },
7641 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
7642 apzFreebsd_Gcc3_BreakageMachs,
7643 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7644 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
7646 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
7647 apzFreebsd_Gcc4_BreakageMachs,
7648 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7649 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
7651 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
7652 apzGlibc_C99_Inline_1Machs,
7653 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7654 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
7656 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
7657 apzGlibc_C99_Inline_1aMachs,
7658 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7659 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
7661 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
7662 apzGlibc_C99_Inline_2Machs,
7663 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
7664 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
7666 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
7667 apzGlibc_C99_Inline_3Machs,
7668 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7669 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
7671 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
7672 apzGlibc_C99_Inline_4Machs,
7673 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7674 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
7676 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
7677 apzGlibc_Mutex_InitMachs,
7678 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
7679 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
7681 { zGnu_TypesName, zGnu_TypesList,
7683 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
7684 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
7686 { zHp_InlineName, zHp_InlineList,
7688 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7689 aHp_InlineTests, apzHp_InlinePatch, 0 },
7691 { zHp_SysfileName, zHp_SysfileList,
7693 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7694 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
7696 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
7697 apzHppa_Hpux_Fp_MacrosMachs,
7698 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7699 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
7701 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
7702 apzHpux10_Cpp_Pow_InlineMachs,
7703 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7704 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
7706 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
7707 apzHpux11_Cpp_Pow_InlineMachs,
7708 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7709 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
7711 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
7712 apzHpux10_Ctype_Declarations1Machs,
7713 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7714 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
7716 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
7717 apzHpux10_Ctype_Declarations2Machs,
7718 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7719 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
7721 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
7722 apzHpux10_Stdio_DeclarationsMachs,
7723 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7724 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
7726 { zHpux11_AbsName, zHpux11_AbsList,
7728 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7729 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
7731 { zHpux11_FabsfName, zHpux11_FabsfList,
7732 apzHpux11_FabsfMachs,
7733 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7734 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
7736 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
7737 apzHpux11_Pthread_ConstMachs,
7738 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7739 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
7741 { zHpux11_Size_TName, zHpux11_Size_TList,
7742 apzHpux11_Size_TMachs,
7743 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7744 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
7746 { zHpux11_SnprintfName, zHpux11_SnprintfList,
7747 apzHpux11_SnprintfMachs,
7748 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7749 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
7751 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
7752 apzHpux11_Uint32_CMachs,
7753 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7754 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
7756 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
7757 apzHpux11_VsnprintfMachs,
7758 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7759 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
7761 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
7762 apzHpux8_Bogus_InlinesMachs,
7763 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
7764 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
7766 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
7767 apzHpux_Ctype_MacrosMachs,
7768 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7769 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
7771 { zHpux_HtonlName, zHpux_HtonlList,
7773 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7774 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
7776 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
7777 apzHpux_Long_DoubleMachs,
7778 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
7779 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
7781 { zHpux_SystimeName, zHpux_SystimeList,
7782 apzHpux_SystimeMachs,
7783 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7784 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
7786 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
7787 apzHpux_Spu_InfoMachs,
7788 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7789 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
7791 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
7792 apzHpux11_Extern_SendfileMachs,
7793 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7794 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
7796 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
7797 apzHpux11_Extern_SendpathMachs,
7798 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7799 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
7801 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
7802 apzHpux_Extern_ErrnoMachs,
7803 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7804 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
7806 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
7807 apzHpux_Pthread_InitializersMachs,
7808 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
7809 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
7811 { zHuge_Val_HexName, zHuge_Val_HexList,
7812 apzHuge_Val_HexMachs,
7813 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7814 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
7816 { zHuge_Valf_HexName, zHuge_Valf_HexList,
7817 apzHuge_Valf_HexMachs,
7818 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7819 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
7821 { zHuge_Vall_HexName, zHuge_Vall_HexList,
7822 apzHuge_Vall_HexMachs,
7823 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7824 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
7826 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
7827 apzInt_Abort_Free_And_ExitMachs,
7828 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7829 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
7831 { zIo_Quotes_DefName, zIo_Quotes_DefList,
7832 apzIo_Quotes_DefMachs,
7833 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7834 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
7836 { zIo_Quotes_UseName, zIo_Quotes_UseList,
7837 apzIo_Quotes_UseMachs,
7838 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7839 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
7841 { zIp_Missing_SemiName, zIp_Missing_SemiList,
7842 apzIp_Missing_SemiMachs,
7843 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
7844 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
7846 { zIrix___RestrictName, zIrix___RestrictList,
7847 apzIrix___RestrictMachs,
7848 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7849 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
7851 { zIrix___Generic1Name, zIrix___Generic1List,
7852 apzIrix___Generic1Machs,
7853 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7854 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
7856 { zIrix___Generic2Name, zIrix___Generic2List,
7857 apzIrix___Generic2Machs,
7858 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7859 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
7861 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
7862 apzIrix_Asm_ApostropheMachs,
7863 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7864 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
7866 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
7867 apzIrix_Limits_ConstMachs,
7868 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7869 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
7871 { zIrix_Socklen_TName, zIrix_Socklen_TList,
7872 apzIrix_Socklen_TMachs,
7873 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7874 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
7876 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
7877 apzIrix_Stdint_C99Machs,
7878 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7879 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
7881 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
7882 apzIrix_Stdio_Va_ListMachs,
7883 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7884 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
7886 { zIrix_WcsftimeName, zIrix_WcsftimeList,
7887 apzIrix_WcsftimeMachs,
7888 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7889 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
7891 { zIsc_FmodName, zIsc_FmodList,
7893 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7894 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
7896 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
7897 apzIsc_Omits_With_StdcMachs,
7898 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7899 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
7901 { zKandr_ConcatName, zKandr_ConcatList,
7902 apzKandr_ConcatMachs,
7903 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7904 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
7906 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
7907 apzLinux_Ia64_UcontextMachs,
7908 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7909 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
7911 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
7912 apzLynxos_No_Warning_In_Sys_Time_HMachs,
7913 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7914 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
7916 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
7917 apzLynxos_Missing_PutenvMachs,
7918 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7919 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
7921 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
7922 apzMachine_Ansi_H_Va_ListMachs,
7923 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7924 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
7926 { zMachine_NameName, zMachine_NameList,
7927 apzMachine_NameMachs,
7928 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7929 aMachine_NameTests, apzMachine_NamePatch, 0 },
7931 { zMath_ExceptionName, zMath_ExceptionList,
7932 apzMath_ExceptionMachs,
7933 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7934 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
7936 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
7937 apzMath_Huge_Val_From_Dbl_MaxMachs,
7938 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
7939 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
7941 { zNested_Auth_DesName, zNested_Auth_DesList,
7942 apzNested_Auth_DesMachs,
7943 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7944 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
7946 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
7947 apzNested_Sys_LimitsMachs,
7948 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
7949 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
7951 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
7952 apzNetbsd_C99_Inline_1Machs,
7953 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7954 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
7956 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
7957 apzNetbsd_C99_Inline_2Machs,
7958 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7959 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
7961 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
7962 apzNetbsd_Extra_SemicolonMachs,
7963 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7964 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
7966 { zNext_Math_PrefixName, zNext_Math_PrefixList,
7967 apzNext_Math_PrefixMachs,
7968 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7969 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
7971 { zNext_TemplateName, zNext_TemplateList,
7972 apzNext_TemplateMachs,
7973 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7974 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
7976 { zNext_VolitileName, zNext_VolitileList,
7977 apzNext_VolitileMachs,
7978 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7979 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
7981 { zNext_Wait_UnionName, zNext_Wait_UnionList,
7982 apzNext_Wait_UnionMachs,
7983 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7984 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
7986 { zNodeent_SyntaxName, zNodeent_SyntaxList,
7987 apzNodeent_SyntaxMachs,
7988 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7989 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
7991 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
7992 apzObstack_Lvalue_CastMachs,
7993 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7994 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
7996 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
7997 apzOpenbsd_Va_StartMachs,
7998 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7999 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
8001 { zOsf_Namespace_AName, zOsf_Namespace_AList,
8002 apzOsf_Namespace_AMachs,
8003 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8004 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
8006 { zOsf_Namespace_CName, zOsf_Namespace_CList,
8007 apzOsf_Namespace_CMachs,
8008 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8009 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
8011 { zPthread_Page_SizeName, zPthread_Page_SizeList,
8012 apzPthread_Page_SizeMachs,
8013 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8014 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
8016 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
8017 apzPthread_Incomplete_Struct_ArgumentMachs,
8018 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8019 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
8021 { zRead_Ret_TypeName, zRead_Ret_TypeList,
8022 apzRead_Ret_TypeMachs,
8023 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8024 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
8026 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
8027 apzRpc_Xdr_Lvalue_Cast_AMachs,
8028 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8029 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
8031 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
8032 apzRpc_Xdr_Lvalue_Cast_BMachs,
8033 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8034 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
8036 { zRs6000_DoubleName, zRs6000_DoubleList,
8037 apzRs6000_DoubleMachs,
8038 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8039 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
8041 { zRs6000_FchmodName, zRs6000_FchmodList,
8042 apzRs6000_FchmodMachs,
8043 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8044 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
8046 { zRs6000_ParamName, zRs6000_ParamList,
8047 apzRs6000_ParamMachs,
8048 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8049 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
8051 { zSco_MathName, zSco_MathList,
8053 SCO_MATH_TEST_CT, FD_MACH_ONLY,
8054 aSco_MathTests, apzSco_MathPatch, 0 },
8056 { zSolaris_Math_1Name, zSolaris_Math_1List,
8057 apzSolaris_Math_1Machs,
8058 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8059 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
8061 { zSolaris_Math_2Name, zSolaris_Math_2List,
8062 apzSolaris_Math_2Machs,
8063 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8064 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
8066 { zSolaris_Math_3Name, zSolaris_Math_3List,
8067 apzSolaris_Math_3Machs,
8068 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8069 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
8071 { zSolaris_Math_4Name, zSolaris_Math_4List,
8072 apzSolaris_Math_4Machs,
8073 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8074 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
8076 { zSolaris_Math_8Name, zSolaris_Math_8List,
8077 apzSolaris_Math_8Machs,
8078 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8079 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
8081 { zSolaris_Math_9Name, zSolaris_Math_9List,
8082 apzSolaris_Math_9Machs,
8083 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8084 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
8086 { zSolaris_Math_10Name, zSolaris_Math_10List,
8087 apzSolaris_Math_10Machs,
8088 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8089 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
8091 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
8092 apzSolaris_Mutex_Init_2Machs,
8093 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8094 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
8096 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
8097 apzSolaris_Rwlock_Init_1Machs,
8098 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8099 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
8101 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
8102 apzSolaris_Once_Init_1Machs,
8103 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8104 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
8106 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
8107 apzSolaris_Once_Init_2Machs,
8108 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8109 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
8111 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
8112 apzSolaris_Stdio_TagMachs,
8113 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
8114 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
8116 { zStatsswtchName, zStatsswtchList,
8118 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8119 aStatsswtchTests, apzStatsswtchPatch, 0 },
8121 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
8122 apzStdio_Stdarg_HMachs,
8123 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
8124 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
8126 { zStdio_Va_ListName, zStdio_Va_ListList,
8127 apzStdio_Va_ListMachs,
8128 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
8129 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
8131 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
8132 apzStdio_Va_List_ClientsMachs,
8133 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
8134 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
8136 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
8137 apzStrict_Ansi_NotMachs,
8138 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8139 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
8141 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
8142 apzStrict_Ansi_Not_CtdMachs,
8143 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8144 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
8146 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
8147 apzStrict_Ansi_OnlyMachs,
8148 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8149 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
8151 { zStruct_FileName, zStruct_FileList,
8152 apzStruct_FileMachs,
8153 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8154 aStruct_FileTests, apzStruct_FilePatch, 0 },
8156 { zStruct_SockaddrName, zStruct_SockaddrList,
8157 apzStruct_SockaddrMachs,
8158 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8159 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
8161 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
8162 apzSun_Auth_ProtoMachs,
8163 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8164 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
8166 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
8167 apzSun_Bogus_IfdefMachs,
8168 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8169 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
8171 { zSun_CatmacroName, zSun_CatmacroList,
8172 apzSun_CatmacroMachs,
8173 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8174 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
8176 { zSun_MallocName, zSun_MallocList,
8178 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
8179 aSun_MallocTests, apzSun_MallocPatch, 0 },
8181 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
8182 apzSun_Rusers_SemiMachs,
8183 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
8184 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
8186 { zSun_SignalName, zSun_SignalList,
8188 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8189 aSun_SignalTests, apzSun_SignalPatch, 0 },
8191 { zSunos_StrlenName, zSunos_StrlenList,
8192 apzSunos_StrlenMachs,
8193 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8194 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
8196 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
8197 apzSvr4_Disable_OptMachs,
8198 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
8199 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
8201 { zSvr4_GetcwdName, zSvr4_GetcwdList,
8202 apzSvr4_GetcwdMachs,
8203 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8204 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
8206 { zSvr4_ProfilName, zSvr4_ProfilList,
8207 apzSvr4_ProfilMachs,
8208 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8209 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
8211 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
8212 apzSvr4_Sighandler_TypeMachs,
8213 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8214 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
8216 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
8217 apzSvr4_Undeclared_GetrngeMachs,
8218 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8219 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
8221 { zSysv68_StringName, zSysv68_StringList,
8222 apzSysv68_StringMachs,
8223 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
8224 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
8226 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
8227 apzSysz_Stdlib_For_SunMachs,
8228 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8229 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
8231 { zThread_KeywordName, zThread_KeywordList,
8232 apzThread_KeywordMachs,
8233 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8234 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
8236 { zTinfo_CplusplusName, zTinfo_CplusplusList,
8237 apzTinfo_CplusplusMachs,
8238 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8239 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
8241 { zUltrix_ConstName, zUltrix_ConstList,
8242 apzUltrix_ConstMachs,
8243 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8244 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
8246 { zUltrix_Const2Name, zUltrix_Const2List,
8247 apzUltrix_Const2Machs,
8248 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8249 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
8251 { zVa_I960_MacroName, zVa_I960_MacroList,
8252 apzVa_I960_MacroMachs,
8253 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8254 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
8256 { zVoid_NullName, zVoid_NullList,
8258 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8259 aVoid_NullTests, apzVoid_NullPatch, 0 },
8261 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
8262 apzVxworks_Gcc_ProblemMachs,
8263 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
8264 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
8266 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
8267 apzVxworks_Needs_VxtypesMachs,
8268 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8269 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
8271 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
8272 apzVxworks_Needs_VxworksMachs,
8273 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
8274 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
8276 { zVxworks_TimeName, zVxworks_TimeList,
8277 apzVxworks_TimeMachs,
8278 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8279 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
8281 { zX11_ClassName, zX11_ClassList,
8283 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8284 aX11_ClassTests, apzX11_ClassPatch, 0 },
8286 { zX11_Class_UsageName, zX11_Class_UsageList,
8287 apzX11_Class_UsageMachs,
8288 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8289 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
8291 { zX11_NewName, zX11_NewList,
8293 X11_NEW_TEST_CT, FD_MACH_ONLY,
8294 aX11_NewTests, apzX11_NewPatch, 0 },
8296 { zX11_SprintfName, zX11_SprintfList,
8297 apzX11_SprintfMachs,
8298 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8299 aX11_SprintfTests, apzX11_SprintfPatch, 0 }