1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Monday June 8, 2009 at 08:37:38 PM CEST
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Mon Jun 8 20:37:38 CEST 2009
11 * You must regenerate it. Use the ./genfixes script.
14 * This is part of the fixincl program used to install modified versions of
15 * certain ANSI-incompatible system header files which are fixed to work
16 * correctly with ANSI C and placed in a directory that GNU C will search.
18 * This file contains 195 fixup descriptions.
20 * See README for more information.
22 * inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
24 * The Free Software Foundation, Inc.
26 * inclhack is free software: you can redistribute it and/or modify it
27 * under the terms of the GNU General Public License as published by the
28 * Free Software Foundation, either version 3 of the License, or
29 * (at your option) any later version.
31 * inclhack is distributed in the hope that it will be useful, but
32 * WITHOUT ANY WARRANTY; without even the implied warranty of
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34 * See the GNU General Public License for more details.
36 * You should have received a copy of the GNU General Public License along
37 * with this program. If not, see <http://www.gnu.org/licenses/>.
40 #define SED_PROGRAM "/usr/bin/sed"
42 static char const sed_cmd_z[] = SED_PROGRAM;
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
46 * Description of Aab_Aix_Stdio fix
48 tSCC zAab_Aix_StdioName[] =
52 * File name selection pattern
54 tSCC zAab_Aix_StdioList[] =
57 * Machine/OS name selection pattern
59 tSCC* apzAab_Aix_StdioMachs[] = {
64 * content selection pattern - do fix if pattern found
66 tSCC zAab_Aix_StdioSelect0[] =
67 "define fopen fopen64";
69 #define AAB_AIX_STDIO_TEST_CT 1
70 static tTestDesc aAab_Aix_StdioTests[] = {
71 { TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
74 * Fix Command Arguments for Aab_Aix_Stdio
76 static const char* apzAab_Aix_StdioPatch[] = {
80 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
81 #define __need__aix_stdio_h_fix\n\
82 #ifdef __need__aix_stdio_h_fix\n\
89 /* Alias the symbols using asm */\n\
91 extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
92 extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
93 extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
94 extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
95 extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
96 extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
104 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
106 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
107 "AAB_darwin7_9_long_double_funcs";
110 * File name selection pattern
112 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
113 "architecture/ppc/math.h\0";
115 * Machine/OS name selection pattern
117 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
122 * content bypass pattern - skip fix if pattern found
124 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
127 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
128 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
129 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
132 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
134 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
135 "/* This file prototypes the long double functions available on Mac OS\n\
138 # undef __APPLE_CC__\n\
139 # define __APPLE_CC__ 1345\n\
140 # include_next <architecture/ppc/math.h>\n\
141 # undef __APPLE_CC__\n\
142 # define __APPLE_CC__ 1\n\
143 # ifndef __LIBMLDBL_COMPAT\n\
144 # ifdef __LONG_DOUBLE_128__\n\
145 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
147 # define __LIBMLDBL_COMPAT(sym)\n\
148 # endif /* __LONG_DOUBLE_128__ */\n\
149 # endif /* __LIBMLDBL_COMPAT */\n\
150 # ifdef __cplusplus\n\
153 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
154 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
155 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
156 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
157 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
158 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
159 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
160 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
161 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
162 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
163 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
164 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
165 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
166 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
167 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
168 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
169 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
170 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
171 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
172 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
173 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
174 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
175 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
176 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
177 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
178 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
179 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
180 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
181 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
182 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
183 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
184 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
185 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
186 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
187 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
188 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
189 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
190 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
191 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
192 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
193 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
194 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
195 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
196 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
197 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
198 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
199 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
200 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
201 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
202 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
203 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
204 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
205 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
206 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
207 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
208 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
209 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
210 # ifdef __cplusplus\n\
213 #endif /* __MATH__ */",
216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
218 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
220 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
221 "AAB_darwin7_9_long_double_funcs_2";
224 * File name selection pattern
226 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
229 * Machine/OS name selection pattern
231 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
236 * content selection pattern - do fix if pattern found
238 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
239 "#include[ \\t]+\\\"";
241 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
242 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
243 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
246 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
248 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
251 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
256 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
258 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
259 "AAB_fd_zero_asm_posix_types_h";
262 * File name selection pattern
264 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
265 "asm/posix_types.h\0";
267 * Machine/OS name selection pattern
269 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
270 "i[34567]86-*-linux*",
274 * content bypass pattern - skip fix if pattern found
276 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
278 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
280 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
283 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3
284 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
285 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
286 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
287 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
290 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
292 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
293 "/* This file fixes a bug in the __FD_ZERO macro\n\
294 for older versions of the Linux kernel. */\n\
295 #ifndef _POSIX_TYPES_H_WRAPPER\n\
296 #include <features.h>\n\
297 #include_next <asm/posix_types.h>\n\n\
298 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
300 #define __FD_ZERO(fdsetp) \\\n\
302 int __d0, __d1; \\\n\
303 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
304 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
305 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
306 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
309 #define _POSIX_TYPES_H_WRAPPER\n\
310 #endif /* _POSIX_TYPES_H_WRAPPER */",
313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
315 * Description of Aab_Fd_Zero_Gnu_Types_H fix
317 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
318 "AAB_fd_zero_gnu_types_h";
321 * File name selection pattern
323 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
326 * Machine/OS name selection pattern
328 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
329 "i[34567]86-*-linux*",
331 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
332 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
335 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
337 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
338 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
339 #ifndef _TYPES_H_WRAPPER\n\
340 #include <features.h>\n\
341 #include_next <gnu/types.h>\n\n\
342 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
344 # define __FD_ZERO(fdsetp) \\\n\
346 int __d0, __d1; \\\n\
347 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
348 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
349 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
350 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
353 #define _TYPES_H_WRAPPER\n\
354 #endif /* _TYPES_H_WRAPPER */",
357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
359 * Description of Aab_Fd_Zero_Selectbits_H fix
361 tSCC zAab_Fd_Zero_Selectbits_HName[] =
362 "AAB_fd_zero_selectbits_h";
365 * File name selection pattern
367 tSCC zAab_Fd_Zero_Selectbits_HList[] =
370 * Machine/OS name selection pattern
372 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
373 "i[34567]86-*-linux*",
375 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
376 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
379 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
381 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
382 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
383 #ifndef _SELECTBITS_H_WRAPPER\n\
384 #include <features.h>\n\
385 #include_next <selectbits.h>\n\n\
386 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
387 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
388 && __GLIBC_MINOR__ == 0\n\
390 #define __FD_ZERO(fdsetp) \\\\\n\
392 int __d0, __d1; \\\\\n\
393 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
394 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
395 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
396 / sizeof (__fd_mask)), \\\\\n\
397 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
398 : \"memory\"); \\\\\n\
401 #define _SELECTBITS_H_WRAPPER\n\
402 #endif /* _SELECTBITS_H_WRAPPER */",
405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
407 * Description of Aab_Solaris_Sys_Varargs_H fix
409 tSCC zAab_Solaris_Sys_Varargs_HName[] =
410 "AAB_solaris_sys_varargs_h";
413 * File name selection pattern
415 tSCC zAab_Solaris_Sys_Varargs_HList[] =
418 * Machine/OS name selection pattern
420 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
423 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
424 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
427 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
429 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
431 #include <stdarg.h>\n\
433 #include <varargs.h>\n\
437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
439 * Description of Aab_Sun_Memcpy fix
441 tSCC zAab_Sun_MemcpyName[] =
445 * File name selection pattern
447 tSCC zAab_Sun_MemcpyList[] =
450 * Machine/OS name selection pattern
452 #define apzAab_Sun_MemcpyMachs (const char**)NULL
455 * content selection pattern - do fix if pattern found
457 tSCC zAab_Sun_MemcpySelect0[] =
458 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
460 #define AAB_SUN_MEMCPY_TEST_CT 1
461 static tTestDesc aAab_Sun_MemcpyTests[] = {
462 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
465 * Fix Command Arguments for Aab_Sun_Memcpy
467 static const char* apzAab_Sun_MemcpyPatch[] = {
468 "/* This file was generated by fixincludes */\n\
469 #ifndef __memory_h__\n\
470 #define __memory_h__\n\n\
472 extern void *memccpy();\n\
473 extern void *memchr();\n\
474 extern void *memcpy();\n\
475 extern void *memset();\n\
477 extern char *memccpy();\n\
478 extern char *memchr();\n\
479 extern char *memcpy();\n\
480 extern char *memset();\n\
481 #endif /* __STDC__ */\n\n\
482 extern int memcmp();\n\n\
483 #endif /* __memory_h__ */",
486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
488 * Description of Aix_Pthread fix
490 tSCC zAix_PthreadName[] =
494 * File name selection pattern
496 tSCC zAix_PthreadList[] =
499 * Machine/OS name selection pattern
501 #define apzAix_PthreadMachs (const char**)NULL
504 * content selection pattern - do fix if pattern found
506 tSCC zAix_PthreadSelect0[] =
507 "(#define [A-Za-z_0-9]+)(\\\\\n\
511 #define AIX_PTHREAD_TEST_CT 1
512 static tTestDesc aAix_PthreadTests[] = {
513 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
516 * Fix Command Arguments for Aix_Pthread
518 static const char* apzAix_PthreadPatch[] = {
523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
525 * Description of Aix_Sysmachine fix
527 tSCC zAix_SysmachineName[] =
531 * File name selection pattern
533 tSCC zAix_SysmachineList[] =
536 * Machine/OS name selection pattern
538 #define apzAix_SysmachineMachs (const char**)NULL
541 * content selection pattern - do fix if pattern found
543 tSCC zAix_SysmachineSelect0[] =
546 #define AIX_SYSMACHINE_TEST_CT 1
547 static tTestDesc aAix_SysmachineTests[] = {
548 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
551 * Fix Command Arguments for Aix_Sysmachine
553 static const char* apzAix_SysmachinePatch[] = {
558 /* * * * * * * * * * * * * * * * * * * * * * * * * *
560 * Description of Aix_Syswait_2 fix
562 tSCC zAix_Syswait_2Name[] =
566 * File name selection pattern
568 tSCC zAix_Syswait_2List[] =
571 * Machine/OS name selection pattern
573 #define apzAix_Syswait_2Machs (const char**)NULL
576 * content selection pattern - do fix if pattern found
578 tSCC zAix_Syswait_2Select0[] =
579 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
581 #define AIX_SYSWAIT_2_TEST_CT 1
582 static tTestDesc aAix_Syswait_2Tests[] = {
583 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
586 * Fix Command Arguments for Aix_Syswait_2
588 static const char* apzAix_Syswait_2Patch[] = {
593 /* * * * * * * * * * * * * * * * * * * * * * * * * *
595 * Description of Aix_Volatile fix
597 tSCC zAix_VolatileName[] =
601 * File name selection pattern
603 tSCC zAix_VolatileList[] =
606 * Machine/OS name selection pattern
608 #define apzAix_VolatileMachs (const char**)NULL
611 * content selection pattern - do fix if pattern found
613 tSCC zAix_VolatileSelect0[] =
614 "typedef volatile int sig_atomic_t";
616 #define AIX_VOLATILE_TEST_CT 1
617 static tTestDesc aAix_VolatileTests[] = {
618 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
621 * Fix Command Arguments for Aix_Volatile
623 static const char* apzAix_VolatilePatch[] = {
625 "typedef int sig_atomic_t",
628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
630 * Description of Alpha___Assert fix
632 tSCC zAlpha___AssertName[] =
636 * File name selection pattern
638 tSCC zAlpha___AssertList[] =
641 * Machine/OS name selection pattern
643 #define apzAlpha___AssertMachs (const char**)NULL
646 * content selection pattern - do fix if pattern found
648 tSCC zAlpha___AssertSelect0[] =
649 "__assert\\(char \\*, char \\*, int\\)";
651 #define ALPHA___ASSERT_TEST_CT 1
652 static tTestDesc aAlpha___AssertTests[] = {
653 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
656 * Fix Command Arguments for Alpha___Assert
658 static const char* apzAlpha___AssertPatch[] = {
660 "__assert(const char *, const char *, int)",
663 /* * * * * * * * * * * * * * * * * * * * * * * * * *
665 * Description of Alpha___Extern_Prefix fix
667 tSCC zAlpha___Extern_PrefixName[] =
668 "alpha___extern_prefix";
671 * File name selection pattern
673 #define zAlpha___Extern_PrefixList (char*)NULL
675 * Machine/OS name selection pattern
677 tSCC* apzAlpha___Extern_PrefixMachs[] = {
682 * content selection pattern - do fix if pattern found
684 tSCC zAlpha___Extern_PrefixSelect0[] =
685 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
686 (#[ \t]*pragma[ \t]*extern_prefix.*)";
688 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
689 static tTestDesc aAlpha___Extern_PrefixTests[] = {
690 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
693 * Fix Command Arguments for Alpha___Extern_Prefix
695 static const char* apzAlpha___Extern_PrefixPatch[] = {
697 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
701 /* * * * * * * * * * * * * * * * * * * * * * * * * *
703 * Description of Alpha___Extern_Prefix_Standards fix
705 tSCC zAlpha___Extern_Prefix_StandardsName[] =
706 "alpha___extern_prefix_standards";
709 * File name selection pattern
711 tSCC zAlpha___Extern_Prefix_StandardsList[] =
714 * Machine/OS name selection pattern
716 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
721 * content selection pattern - do fix if pattern found
723 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
724 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
726 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
727 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
728 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
731 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
733 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
735 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
740 * Description of Alpha___Extern_Prefix_Sys_Stat fix
742 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
743 "alpha___extern_prefix_sys_stat";
746 * File name selection pattern
748 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
749 "sys/stat.h\0sys/mount.h\0";
751 * Machine/OS name selection pattern
753 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
758 * content selection pattern - do fix if pattern found
760 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
761 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
763 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
764 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
765 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
768 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
770 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
772 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
775 /* * * * * * * * * * * * * * * * * * * * * * * * * *
777 * Description of Alpha_Assert fix
779 tSCC zAlpha_AssertName[] =
783 * File name selection pattern
785 tSCC zAlpha_AssertList[] =
788 * Machine/OS name selection pattern
790 #define apzAlpha_AssertMachs (const char**)NULL
793 * content selection pattern - do fix if pattern found
795 tSCC zAlpha_AssertSelect0[] =
796 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
798 #define ALPHA_ASSERT_TEST_CT 1
799 static tTestDesc aAlpha_AssertTests[] = {
800 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
803 * Fix Command Arguments for Alpha_Assert
805 static const char* apzAlpha_AssertPatch[] = {
810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
812 * Description of Alpha_Bad_Lval fix
814 tSCC zAlpha_Bad_LvalName[] =
818 * File name selection pattern
820 #define zAlpha_Bad_LvalList (char*)NULL
822 * Machine/OS name selection pattern
824 tSCC* apzAlpha_Bad_LvalMachs[] = {
829 * content selection pattern - do fix if pattern found
831 tSCC zAlpha_Bad_LvalSelect0[] =
832 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
834 #define ALPHA_BAD_LVAL_TEST_CT 1
835 static tTestDesc aAlpha_Bad_LvalTests[] = {
836 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
839 * Fix Command Arguments for Alpha_Bad_Lval
841 static const char* apzAlpha_Bad_LvalPatch[] = { sed_cmd_z,
842 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
847 * Description of Alpha_Getopt fix
849 tSCC zAlpha_GetoptName[] =
853 * File name selection pattern
855 tSCC zAlpha_GetoptList[] =
856 "stdio.h\0stdlib.h\0";
858 * Machine/OS name selection pattern
860 #define apzAlpha_GetoptMachs (const char**)NULL
863 * content selection pattern - do fix if pattern found
865 tSCC zAlpha_GetoptSelect0[] =
866 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
868 #define ALPHA_GETOPT_TEST_CT 1
869 static tTestDesc aAlpha_GetoptTests[] = {
870 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
873 * Fix Command Arguments for Alpha_Getopt
875 static const char* apzAlpha_GetoptPatch[] = {
877 "getopt(int, char *const[], const char *)",
880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
882 * Description of Alpha_If_Semicolon fix
884 tSCC zAlpha_If_SemicolonName[] =
885 "alpha_if_semicolon";
888 * File name selection pattern
890 tSCC zAlpha_If_SemicolonList[] =
893 * Machine/OS name selection pattern
895 #define apzAlpha_If_SemicolonMachs (const char**)NULL
898 * content selection pattern - do fix if pattern found
900 tSCC zAlpha_If_SemicolonSelect0[] =
901 "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
903 #define ALPHA_IF_SEMICOLON_TEST_CT 1
904 static tTestDesc aAlpha_If_SemicolonTests[] = {
905 { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
908 * Fix Command Arguments for Alpha_If_Semicolon
910 static const char* apzAlpha_If_SemicolonPatch[] = {
912 "struct sockaddr vmif_paddr;\t/*",
915 /* * * * * * * * * * * * * * * * * * * * * * * * * *
917 * Description of Alpha_Parens fix
919 tSCC zAlpha_ParensName[] =
923 * File name selection pattern
925 tSCC zAlpha_ParensList[] =
928 * Machine/OS name selection pattern
930 #define apzAlpha_ParensMachs (const char**)NULL
933 * content selection pattern - do fix if pattern found
935 tSCC zAlpha_ParensSelect0[] =
936 "#ifndef\\(__mips64\\)";
938 #define ALPHA_PARENS_TEST_CT 1
939 static tTestDesc aAlpha_ParensTests[] = {
940 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
943 * Fix Command Arguments for Alpha_Parens
945 static const char* apzAlpha_ParensPatch[] = {
950 /* * * * * * * * * * * * * * * * * * * * * * * * * *
952 * Description of Alpha_Pthread fix
954 tSCC zAlpha_PthreadName[] =
958 * File name selection pattern
960 tSCC zAlpha_PthreadList[] =
963 * Machine/OS name selection pattern
965 tSCC* apzAlpha_PthreadMachs[] = {
970 * content selection pattern - do fix if pattern found
972 tSCC zAlpha_PthreadSelect0[] =
973 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
974 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
976 #define ALPHA_PTHREAD_TEST_CT 1
977 static tTestDesc aAlpha_PthreadTests[] = {
978 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
981 * Fix Command Arguments for Alpha_Pthread
983 static const char* apzAlpha_PthreadPatch[] = {
985 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
991 * Description of Alpha_Pthread_Gcc fix
993 tSCC zAlpha_Pthread_GccName[] =
997 * File name selection pattern
999 tSCC zAlpha_Pthread_GccList[] =
1002 * Machine/OS name selection pattern
1004 tSCC* apzAlpha_Pthread_GccMachs[] = {
1006 (const char*)NULL };
1009 * content selection pattern - do fix if pattern found
1011 tSCC zAlpha_Pthread_GccSelect0[] =
1013 # error <pthread.h>: unrecognized compiler.";
1015 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1016 static tTestDesc aAlpha_Pthread_GccTests[] = {
1017 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1020 * Fix Command Arguments for Alpha_Pthread_Gcc
1022 static const char* apzAlpha_Pthread_GccPatch[] = {
1024 "#elif defined (__GNUC__)\n\
1025 # define _PTHREAD_ENV_GCC\n\
1029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1031 * Description of Alpha_Pthread_Init fix
1033 tSCC zAlpha_Pthread_InitName[] =
1034 "alpha_pthread_init";
1037 * File name selection pattern
1039 tSCC zAlpha_Pthread_InitList[] =
1042 * Machine/OS name selection pattern
1044 tSCC* apzAlpha_Pthread_InitMachs[] = {
1046 (const char*)NULL };
1049 * content selection pattern - do fix if pattern found
1051 tSCC zAlpha_Pthread_InitSelect0[] =
1052 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1054 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1055 static tTestDesc aAlpha_Pthread_InitTests[] = {
1056 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1059 * Fix Command Arguments for Alpha_Pthread_Init
1061 static const char* apzAlpha_Pthread_InitPatch[] = { sed_cmd_z,
1062 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1063 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1064 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1065 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1066 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1067 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1070 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1072 * Description of Alpha_Sbrk fix
1074 tSCC zAlpha_SbrkName[] =
1078 * File name selection pattern
1080 tSCC zAlpha_SbrkList[] =
1083 * Machine/OS name selection pattern
1085 #define apzAlpha_SbrkMachs (const char**)NULL
1088 * content selection pattern - do fix if pattern found
1090 tSCC zAlpha_SbrkSelect0[] =
1091 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1093 #define ALPHA_SBRK_TEST_CT 1
1094 static tTestDesc aAlpha_SbrkTests[] = {
1095 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1098 * Fix Command Arguments for Alpha_Sbrk
1100 static const char* apzAlpha_SbrkPatch[] = {
1105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1107 * Description of Alpha_Wchar fix
1109 tSCC zAlpha_WcharName[] =
1113 * File name selection pattern
1115 tSCC zAlpha_WcharList[] =
1118 * Machine/OS name selection pattern
1120 tSCC* apzAlpha_WcharMachs[] = {
1122 (const char*)NULL };
1125 * content selection pattern - do fix if pattern found
1127 tSCC zAlpha_WcharSelect0[] =
1128 "#define wcstok wcstok_r";
1130 #define ALPHA_WCHAR_TEST_CT 1
1131 static tTestDesc aAlpha_WcharTests[] = {
1132 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1135 * Fix Command Arguments for Alpha_Wchar
1137 static const char* apzAlpha_WcharPatch[] = { sed_cmd_z,
1138 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1139 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1142 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1144 * Description of Avoid_Bool_Define fix
1146 tSCC zAvoid_Bool_DefineName[] =
1147 "avoid_bool_define";
1150 * File name selection pattern
1152 tSCC zAvoid_Bool_DefineList[] =
1153 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1155 * Machine/OS name selection pattern
1157 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1160 * content selection pattern - do fix if pattern found
1162 tSCC zAvoid_Bool_DefineSelect0[] =
1163 "#[ \t]*define[ \t]+bool[ \t]";
1166 * content bypass pattern - skip fix if pattern found
1168 tSCC zAvoid_Bool_DefineBypass0[] =
1171 #define AVOID_BOOL_DEFINE_TEST_CT 2
1172 static tTestDesc aAvoid_Bool_DefineTests[] = {
1173 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1174 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1177 * Fix Command Arguments for Avoid_Bool_Define
1179 static const char* apzAvoid_Bool_DefinePatch[] = {
1181 "#ifndef __cplusplus\n\
1184 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1187 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1189 * Description of Avoid_Bool_Type fix
1191 tSCC zAvoid_Bool_TypeName[] =
1195 * File name selection pattern
1197 tSCC zAvoid_Bool_TypeList[] =
1198 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1200 * Machine/OS name selection pattern
1202 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1205 * content selection pattern - do fix if pattern found
1207 tSCC zAvoid_Bool_TypeSelect0[] =
1208 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1211 * content bypass pattern - skip fix if pattern found
1213 tSCC zAvoid_Bool_TypeBypass0[] =
1216 #define AVOID_BOOL_TYPE_TEST_CT 2
1217 static tTestDesc aAvoid_Bool_TypeTests[] = {
1218 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1219 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1222 * Fix Command Arguments for Avoid_Bool_Type
1224 static const char* apzAvoid_Bool_TypePatch[] = {
1226 "#ifndef __cplusplus\n\
1231 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1233 * Description of Avoid_Wchar_T_Type fix
1235 tSCC zAvoid_Wchar_T_TypeName[] =
1236 "avoid_wchar_t_type";
1239 * File name selection pattern
1241 #define zAvoid_Wchar_T_TypeList (char*)NULL
1243 * Machine/OS name selection pattern
1245 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1248 * content selection pattern - do fix if pattern found
1250 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1251 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1254 * content bypass pattern - skip fix if pattern found
1256 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1258 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1260 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1261 "XFree86: xc/lib/X11/Xlib\\.h";
1263 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1264 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1265 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1266 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1267 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1268 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1271 * Fix Command Arguments for Avoid_Wchar_T_Type
1273 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1275 "#ifndef __cplusplus\n\
1280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1282 * Description of Bad_Struct_Term fix
1284 tSCC zBad_Struct_TermName[] =
1288 * File name selection pattern
1290 tSCC zBad_Struct_TermList[] =
1293 * Machine/OS name selection pattern
1295 #define apzBad_Struct_TermMachs (const char**)NULL
1298 * content selection pattern - do fix if pattern found
1300 tSCC zBad_Struct_TermSelect0[] =
1301 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1303 #define BAD_STRUCT_TERM_TEST_CT 1
1304 static tTestDesc aBad_Struct_TermTests[] = {
1305 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1308 * Fix Command Arguments for Bad_Struct_Term
1310 static const char* apzBad_Struct_TermPatch[] = {
1315 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1317 * Description of Badquote fix
1319 tSCC zBadquoteName[] =
1323 * File name selection pattern
1325 tSCC zBadquoteList[] =
1326 "sundev/vuid_event.h\0";
1328 * Machine/OS name selection pattern
1330 #define apzBadquoteMachs (const char**)NULL
1333 * content selection pattern - do fix if pattern found
1335 tSCC zBadquoteSelect0[] =
1338 #define BADQUOTE_TEST_CT 1
1339 static tTestDesc aBadquoteTests[] = {
1340 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1343 * Fix Command Arguments for Badquote
1345 static const char* apzBadquotePatch[] = {
1350 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1352 * Description of Broken_Assert_Stdio fix
1354 tSCC zBroken_Assert_StdioName[] =
1355 "broken_assert_stdio";
1358 * File name selection pattern
1360 tSCC zBroken_Assert_StdioList[] =
1363 * Machine/OS name selection pattern
1365 #define apzBroken_Assert_StdioMachs (const char**)NULL
1368 * content selection pattern - do fix if pattern found
1370 tSCC zBroken_Assert_StdioSelect0[] =
1374 * content bypass pattern - skip fix if pattern found
1376 tSCC zBroken_Assert_StdioBypass0[] =
1377 "include.*stdio\\.h";
1379 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1380 static tTestDesc aBroken_Assert_StdioTests[] = {
1381 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1382 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1385 * Fix Command Arguments for Broken_Assert_Stdio
1387 static const char* apzBroken_Assert_StdioPatch[] = {
1389 "#include <stdio.h>\n",
1392 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1394 * Description of Broken_Assert_Stdlib fix
1396 tSCC zBroken_Assert_StdlibName[] =
1397 "broken_assert_stdlib";
1400 * File name selection pattern
1402 tSCC zBroken_Assert_StdlibList[] =
1405 * Machine/OS name selection pattern
1407 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1410 * content selection pattern - do fix if pattern found
1412 tSCC zBroken_Assert_StdlibSelect0[] =
1413 "exit *\\(|abort *\\(";
1416 * content bypass pattern - skip fix if pattern found
1418 tSCC zBroken_Assert_StdlibBypass0[] =
1419 "include.*stdlib\\.h";
1421 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1422 static tTestDesc aBroken_Assert_StdlibTests[] = {
1423 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1424 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1427 * Fix Command Arguments for Broken_Assert_Stdlib
1429 static const char* apzBroken_Assert_StdlibPatch[] = {
1431 "#ifdef __cplusplus\n\
1432 #include <stdlib.h>\n\
1436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1438 * Description of Broken_Cabs fix
1440 tSCC zBroken_CabsName[] =
1444 * File name selection pattern
1446 tSCC zBroken_CabsList[] =
1447 "math.h\0architecture/*/math.h\0";
1449 * Machine/OS name selection pattern
1451 #define apzBroken_CabsMachs (const char**)NULL
1454 * content selection pattern - do fix if pattern found
1456 tSCC zBroken_CabsSelect0[] =
1457 "^extern[ \t]+double[ \t]+cabs";
1459 #define BROKEN_CABS_TEST_CT 1
1460 static tTestDesc aBroken_CabsTests[] = {
1461 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1464 * Fix Command Arguments for Broken_Cabs
1466 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1467 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1468 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1471 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1473 * Description of Broken_Nan fix
1475 tSCC zBroken_NanName[] =
1479 * File name selection pattern
1481 tSCC zBroken_NanList[] =
1482 "architecture/ppc/math.h\0architecture/*/math.h\0";
1484 * Machine/OS name selection pattern
1486 #define apzBroken_NanMachs (const char**)NULL
1489 * content selection pattern - do fix if pattern found
1491 tSCC zBroken_NanSelect0[] =
1492 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1495 * content bypass pattern - skip fix if pattern found
1497 tSCC zBroken_NanBypass0[] =
1500 #define BROKEN_NAN_TEST_CT 2
1501 static tTestDesc aBroken_NanTests[] = {
1502 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1503 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1506 * Fix Command Arguments for Broken_Nan
1508 static const char* apzBroken_NanPatch[] = {
1513 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1515 * Description of Bsd_Stdio_Attrs_Conflict fix
1517 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1518 "bsd_stdio_attrs_conflict";
1521 * File name selection pattern
1523 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1526 * Machine/OS name selection pattern
1528 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1531 (const char*)NULL };
1534 * content selection pattern - do fix if pattern found
1536 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1537 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1539 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1540 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1541 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1544 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1546 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1548 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1549 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1550 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1553 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1555 * Description of Ctrl_Quotes_Def fix
1557 tSCC zCtrl_Quotes_DefName[] =
1561 * File name selection pattern
1563 #define zCtrl_Quotes_DefList (char*)NULL
1565 * Machine/OS name selection pattern
1567 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1570 * content selection pattern - do fix if pattern found
1572 tSCC zCtrl_Quotes_DefSelect0[] =
1573 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1575 #define CTRL_QUOTES_DEF_TEST_CT 1
1576 static tTestDesc aCtrl_Quotes_DefTests[] = {
1577 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1580 * Fix Command Arguments for Ctrl_Quotes_Def
1582 static const char* apzCtrl_Quotes_DefPatch[] = {
1587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1589 * Description of Ctrl_Quotes_Use fix
1591 tSCC zCtrl_Quotes_UseName[] =
1595 * File name selection pattern
1597 #define zCtrl_Quotes_UseList (char*)NULL
1599 * Machine/OS name selection pattern
1601 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1604 * content selection pattern - do fix if pattern found
1606 tSCC zCtrl_Quotes_UseSelect0[] =
1607 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1609 #define CTRL_QUOTES_USE_TEST_CT 1
1610 static tTestDesc aCtrl_Quotes_UseTests[] = {
1611 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1614 * Fix Command Arguments for Ctrl_Quotes_Use
1616 static const char* apzCtrl_Quotes_UsePatch[] = {
1621 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1623 * Description of Cxx_Unready fix
1625 tSCC zCxx_UnreadyName[] =
1629 * File name selection pattern
1631 tSCC zCxx_UnreadyList[] =
1632 "sys/mman.h\0rpc/types.h\0";
1634 * Machine/OS name selection pattern
1636 #define apzCxx_UnreadyMachs (const char**)NULL
1639 * content selection pattern - do fix if pattern found
1641 tSCC zCxx_UnreadySelect0[] =
1645 * content bypass pattern - skip fix if pattern found
1647 tSCC zCxx_UnreadyBypass0[] =
1648 "\"C\"|__BEGIN_DECLS";
1650 #define CXX_UNREADY_TEST_CT 2
1651 static tTestDesc aCxx_UnreadyTests[] = {
1652 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1653 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1656 * Fix Command Arguments for Cxx_Unready
1658 static const char* apzCxx_UnreadyPatch[] = {
1660 "#ifdef __cplusplus\n\
1663 "#ifdef __cplusplus\n\
1668 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1670 * Description of Darwin_Externc fix
1672 tSCC zDarwin_ExterncName[] =
1676 * File name selection pattern
1678 tSCC zDarwin_ExterncList[] =
1679 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1681 * Machine/OS name selection pattern
1683 tSCC* apzDarwin_ExterncMachs[] = {
1685 (const char*)NULL };
1688 * content bypass pattern - skip fix if pattern found
1690 tSCC zDarwin_ExterncBypass0[] =
1692 tSCC zDarwin_ExterncBypass1[] =
1695 #define DARWIN_EXTERNC_TEST_CT 2
1696 static tTestDesc aDarwin_ExterncTests[] = {
1697 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1698 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1701 * Fix Command Arguments for Darwin_Externc
1703 static const char* apzDarwin_ExterncPatch[] = {
1705 "#ifdef __cplusplus\n\
1708 "#ifdef __cplusplus\n\
1713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1715 * Description of Darwin_Gcc4_Breakage fix
1717 tSCC zDarwin_Gcc4_BreakageName[] =
1718 "darwin_gcc4_breakage";
1721 * File name selection pattern
1723 tSCC zDarwin_Gcc4_BreakageList[] =
1724 "AvailabilityMacros.h\0";
1726 * Machine/OS name selection pattern
1728 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1730 (const char*)NULL };
1733 * content selection pattern - do fix if pattern found
1735 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1736 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1738 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1739 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1740 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1743 * Fix Command Arguments for Darwin_Gcc4_Breakage
1745 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1747 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1750 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1752 * Description of Darwin_Private_Extern fix
1754 tSCC zDarwin_Private_ExternName[] =
1755 "darwin_private_extern";
1758 * File name selection pattern
1760 tSCC zDarwin_Private_ExternList[] =
1763 * Machine/OS name selection pattern
1765 tSCC* apzDarwin_Private_ExternMachs[] = {
1767 (const char*)NULL };
1770 * content selection pattern - do fix if pattern found
1772 tSCC zDarwin_Private_ExternSelect0[] =
1773 "__private_extern__ [a-z_]+ _dyld_";
1775 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1776 static tTestDesc aDarwin_Private_ExternTests[] = {
1777 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1780 * Fix Command Arguments for Darwin_Private_Extern
1782 static const char* apzDarwin_Private_ExternPatch[] = {
1785 "__private_extern__",
1788 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1790 * Description of Darwin_Stdint_1 fix
1792 tSCC zDarwin_Stdint_1Name[] =
1796 * File name selection pattern
1798 tSCC zDarwin_Stdint_1List[] =
1801 * Machine/OS name selection pattern
1803 tSCC* apzDarwin_Stdint_1Machs[] = {
1805 (const char*)NULL };
1808 * content selection pattern - do fix if pattern found
1810 tSCC zDarwin_Stdint_1Select0[] =
1811 "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
1812 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
1814 #define DARWIN_STDINT_1_TEST_CT 1
1815 static tTestDesc aDarwin_Stdint_1Tests[] = {
1816 { TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
1819 * Fix Command Arguments for Darwin_Stdint_1
1821 static const char* apzDarwin_Stdint_1Patch[] = {
1823 "#define UINT8_C(v)\tv\n\
1824 #define UINT16_C(v)\tv",
1827 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1829 * Description of Darwin_Stdint_2 fix
1831 tSCC zDarwin_Stdint_2Name[] =
1835 * File name selection pattern
1837 tSCC zDarwin_Stdint_2List[] =
1840 * Machine/OS name selection pattern
1842 tSCC* apzDarwin_Stdint_2Machs[] = {
1844 (const char*)NULL };
1847 * content selection pattern - do fix if pattern found
1849 tSCC zDarwin_Stdint_2Select0[] =
1850 "#if __WORDSIZE == 64\n\
1851 #define INTPTR_MIN[ \t]+INT64_MIN\n\
1852 #define INTPTR_MAX[ \t]+INT64_MAX\n\
1854 #define INTPTR_MIN[ \t]+INT32_MIN\n\
1855 #define INTPTR_MAX[ \t]+INT32_MAX\n\
1858 #define DARWIN_STDINT_2_TEST_CT 1
1859 static tTestDesc aDarwin_Stdint_2Tests[] = {
1860 { TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
1863 * Fix Command Arguments for Darwin_Stdint_2
1865 static const char* apzDarwin_Stdint_2Patch[] = {
1867 "#if __WORDSIZE == 64\n\
1868 #define INTPTR_MAX 9223372036854775807L\n\
1869 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
1871 #define INTPTR_MAX 2147483647L\n\
1872 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
1876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1878 * Description of Darwin_Stdint_3 fix
1880 tSCC zDarwin_Stdint_3Name[] =
1884 * File name selection pattern
1886 tSCC zDarwin_Stdint_3List[] =
1889 * Machine/OS name selection pattern
1891 tSCC* apzDarwin_Stdint_3Machs[] = {
1893 (const char*)NULL };
1896 * content selection pattern - do fix if pattern found
1898 tSCC zDarwin_Stdint_3Select0[] =
1899 "#if __WORDSIZE == 64\n\
1900 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
1902 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
1905 #define DARWIN_STDINT_3_TEST_CT 1
1906 static tTestDesc aDarwin_Stdint_3Tests[] = {
1907 { TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
1910 * Fix Command Arguments for Darwin_Stdint_3
1912 static const char* apzDarwin_Stdint_3Patch[] = {
1914 "#if __WORDSIZE == 64\n\
1915 #define UINTPTR_MAX 18446744073709551615UL\n\
1917 #define UINTPTR_MAX 4294967295UL\n\
1921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1923 * Description of Darwin_Stdint_4 fix
1925 tSCC zDarwin_Stdint_4Name[] =
1929 * File name selection pattern
1931 tSCC zDarwin_Stdint_4List[] =
1934 * Machine/OS name selection pattern
1936 tSCC* apzDarwin_Stdint_4Machs[] = {
1938 (const char*)NULL };
1941 * content selection pattern - do fix if pattern found
1943 tSCC zDarwin_Stdint_4Select0[] =
1944 "#if __WORDSIZE == 64\n\
1945 #define SIZE_MAX[ \t]+UINT64_MAX\n\
1947 #define SIZE_MAX[ \t]+UINT32_MAX\n\
1950 #define DARWIN_STDINT_4_TEST_CT 1
1951 static tTestDesc aDarwin_Stdint_4Tests[] = {
1952 { TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
1955 * Fix Command Arguments for Darwin_Stdint_4
1957 static const char* apzDarwin_Stdint_4Patch[] = {
1959 "#if __WORDSIZE == 64\n\
1960 #define SIZE_MAX 18446744073709551615UL\n\
1962 #define SIZE_MAX 4294967295UL\n\
1966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1968 * Description of Dec_Intern_Asm fix
1970 tSCC zDec_Intern_AsmName[] =
1974 * File name selection pattern
1976 tSCC zDec_Intern_AsmList[] =
1979 * Machine/OS name selection pattern
1981 #define apzDec_Intern_AsmMachs (const char**)NULL
1982 #define DEC_INTERN_ASM_TEST_CT 0
1983 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1986 * Fix Command Arguments for Dec_Intern_Asm
1988 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
1989 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1991 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1997 * Description of Djgpp_Wchar_H fix
1999 tSCC zDjgpp_Wchar_HName[] =
2003 * File name selection pattern
2005 #define zDjgpp_Wchar_HList (char*)NULL
2007 * Machine/OS name selection pattern
2009 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2012 * content selection pattern - do fix if pattern found
2014 tSCC zDjgpp_Wchar_HSelect0[] =
2018 * content bypass pattern - skip fix if pattern found
2020 tSCC zDjgpp_Wchar_HBypass0[] =
2023 #define DJGPP_WCHAR_H_TEST_CT 2
2024 static tTestDesc aDjgpp_Wchar_HTests[] = {
2025 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2026 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2029 * Fix Command Arguments for Djgpp_Wchar_H
2031 static const char* apzDjgpp_Wchar_HPatch[] = {
2034 #include <sys/djtypes.h>",
2035 "#include <stddef.h>",
2038 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2040 * Description of Ecd_Cursor fix
2042 tSCC zEcd_CursorName[] =
2046 * File name selection pattern
2048 tSCC zEcd_CursorList[] =
2049 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2051 * Machine/OS name selection pattern
2053 #define apzEcd_CursorMachs (const char**)NULL
2056 * content selection pattern - do fix if pattern found
2058 tSCC zEcd_CursorSelect0[] =
2061 #define ECD_CURSOR_TEST_CT 1
2062 static tTestDesc aEcd_CursorTests[] = {
2063 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2066 * Fix Command Arguments for Ecd_Cursor
2068 static const char* apzEcd_CursorPatch[] = {
2073 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2075 * Description of Freebsd_Gcc3_Breakage fix
2077 tSCC zFreebsd_Gcc3_BreakageName[] =
2078 "freebsd_gcc3_breakage";
2081 * File name selection pattern
2083 tSCC zFreebsd_Gcc3_BreakageList[] =
2086 * Machine/OS name selection pattern
2088 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2090 (const char*)NULL };
2093 * content selection pattern - do fix if pattern found
2095 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2096 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2099 * content bypass pattern - skip fix if pattern found
2101 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2102 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2104 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2105 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2106 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2107 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2110 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2112 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2114 "%0 || __GNUC__ >= 3",
2117 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2119 * Description of Freebsd_Gcc4_Breakage fix
2121 tSCC zFreebsd_Gcc4_BreakageName[] =
2122 "freebsd_gcc4_breakage";
2125 * File name selection pattern
2127 tSCC zFreebsd_Gcc4_BreakageList[] =
2130 * Machine/OS name selection pattern
2132 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2134 (const char*)NULL };
2137 * content selection pattern - do fix if pattern found
2139 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2140 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2142 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2143 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2144 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2147 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2149 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2151 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2154 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2156 * Description of Glibc_C99_Inline_1 fix
2158 tSCC zGlibc_C99_Inline_1Name[] =
2159 "glibc_c99_inline_1";
2162 * File name selection pattern
2164 tSCC zGlibc_C99_Inline_1List[] =
2165 "features.h\0*/features.h\0";
2167 * Machine/OS name selection pattern
2169 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2172 * content selection pattern - do fix if pattern found
2174 tSCC zGlibc_C99_Inline_1Select0[] =
2175 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2177 #define GLIBC_C99_INLINE_1_TEST_CT 1
2178 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2179 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2182 * Fix Command Arguments for Glibc_C99_Inline_1
2184 static const char* apzGlibc_C99_Inline_1Patch[] = {
2186 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2189 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2191 * Description of Glibc_C99_Inline_1a fix
2193 tSCC zGlibc_C99_Inline_1aName[] =
2194 "glibc_c99_inline_1a";
2197 * File name selection pattern
2199 tSCC zGlibc_C99_Inline_1aList[] =
2200 "features.h\0*/features.h\0";
2202 * Machine/OS name selection pattern
2204 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2207 * content selection pattern - do fix if pattern found
2209 tSCC zGlibc_C99_Inline_1aSelect0[] =
2210 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2211 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2213 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2214 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2215 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2218 * Fix Command Arguments for Glibc_C99_Inline_1a
2220 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2222 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2226 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2228 * Description of Glibc_C99_Inline_2 fix
2230 tSCC zGlibc_C99_Inline_2Name[] =
2231 "glibc_c99_inline_2";
2234 * File name selection pattern
2236 tSCC zGlibc_C99_Inline_2List[] =
2237 "sys/stat.h\0*/sys/stat.h\0";
2239 * Machine/OS name selection pattern
2241 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2244 * content selection pattern - do fix if pattern found
2246 tSCC zGlibc_C99_Inline_2Select0[] =
2247 "extern __inline__ int";
2249 #define GLIBC_C99_INLINE_2_TEST_CT 1
2250 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2251 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2254 * Fix Command Arguments for Glibc_C99_Inline_2
2256 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2257 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2260 __inline__ int \\1/",
2261 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2264 __inline__ int __REDIRECT\\1 (\\2/",
2265 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2273 * Description of Glibc_C99_Inline_3 fix
2275 tSCC zGlibc_C99_Inline_3Name[] =
2276 "glibc_c99_inline_3";
2279 * File name selection pattern
2281 tSCC zGlibc_C99_Inline_3List[] =
2282 "bits/string2.h\0*/bits/string2.h\0";
2284 * Machine/OS name selection pattern
2286 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2289 * content selection pattern - do fix if pattern found
2291 tSCC zGlibc_C99_Inline_3Select0[] =
2295 * content bypass pattern - skip fix if pattern found
2297 tSCC zGlibc_C99_Inline_3Bypass0[] =
2298 "__extern_inline|__GNU_STDC_INLINE__";
2300 #define GLIBC_C99_INLINE_3_TEST_CT 2
2301 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2302 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2303 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2306 * Fix Command Arguments for Glibc_C99_Inline_3
2308 static const char* apzGlibc_C99_Inline_3Patch[] = {
2310 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2311 "^# ifdef __cplusplus$",
2314 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2316 * Description of Glibc_C99_Inline_4 fix
2318 tSCC zGlibc_C99_Inline_4Name[] =
2319 "glibc_c99_inline_4";
2322 * File name selection pattern
2324 tSCC zGlibc_C99_Inline_4List[] =
2325 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2327 * Machine/OS name selection pattern
2329 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2332 * content selection pattern - do fix if pattern found
2334 tSCC zGlibc_C99_Inline_4Select0[] =
2335 "(^| )extern __inline";
2338 * content bypass pattern - skip fix if pattern found
2340 tSCC zGlibc_C99_Inline_4Bypass0[] =
2341 "__extern_inline|__gnu_inline__";
2343 #define GLIBC_C99_INLINE_4_TEST_CT 2
2344 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2345 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2346 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2349 * Fix Command Arguments for Glibc_C99_Inline_4
2351 static const char* apzGlibc_C99_Inline_4Patch[] = {
2353 "%0 __attribute__ ((__gnu_inline__))",
2356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2358 * Description of Glibc_Mutex_Init fix
2360 tSCC zGlibc_Mutex_InitName[] =
2364 * File name selection pattern
2366 tSCC zGlibc_Mutex_InitList[] =
2369 * Machine/OS name selection pattern
2371 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2374 * content selection pattern - do fix if pattern found
2376 tSCC zGlibc_Mutex_InitSelect0[] =
2377 "\\{ *\\{ *0, *\\} *\\}";
2379 #define GLIBC_MUTEX_INIT_TEST_CT 1
2380 static tTestDesc aGlibc_Mutex_InitTests[] = {
2381 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2384 * Fix Command Arguments for Glibc_Mutex_Init
2386 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2387 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2389 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2391 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2392 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2393 "-e", "/define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# else\\n# \\1\\n { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# endif/",
2394 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2395 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2398 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2400 * Description of Glibc_Stdint fix
2402 tSCC zGlibc_StdintName[] =
2406 * File name selection pattern
2408 tSCC zGlibc_StdintList[] =
2411 * Machine/OS name selection pattern
2413 #define apzGlibc_StdintMachs (const char**)NULL
2416 * content selection pattern - do fix if pattern found
2418 tSCC zGlibc_StdintSelect0[] =
2421 #define GLIBC_STDINT_TEST_CT 1
2422 static tTestDesc aGlibc_StdintTests[] = {
2423 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
2426 * Fix Command Arguments for Glibc_Stdint
2428 static const char* apzGlibc_StdintPatch[] = {
2430 "# define UINT8_C(c)\tc\n\
2431 # define UINT16_C(c)\tc",
2432 "# define UINT8_C\\(c\\)\tc ## U\n\
2433 # define UINT16_C\\(c\\)\tc ## U",
2436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2438 * Description of Glibc_Tgmath fix
2440 tSCC zGlibc_TgmathName[] =
2444 * File name selection pattern
2446 tSCC zGlibc_TgmathList[] =
2449 * Machine/OS name selection pattern
2451 #define apzGlibc_TgmathMachs (const char**)NULL
2454 * content selection pattern - do fix if pattern found
2456 tSCC zGlibc_TgmathSelect0[] =
2457 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2460 * content bypass pattern - skip fix if pattern found
2462 tSCC zGlibc_TgmathBypass0[] =
2463 "__floating_type\\(type\\) \\\\\n\
2464 .*__builtin_classify_type";
2466 #define GLIBC_TGMATH_TEST_CT 2
2467 static tTestDesc aGlibc_TgmathTests[] = {
2468 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
2469 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2472 * Fix Command Arguments for Glibc_Tgmath
2474 static const char* apzGlibc_TgmathPatch[] = {
2476 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
2479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2481 * Description of Gnu_Types fix
2483 tSCC zGnu_TypesName[] =
2487 * File name selection pattern
2489 tSCC zGnu_TypesList[] =
2490 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2492 * Machine/OS name selection pattern
2494 tSCC* apzGnu_TypesMachs[] = {
2495 "*-*-solaris2.1[0-9]*",
2496 (const char*)NULL };
2499 * content selection pattern - do fix if pattern found
2501 tSCC zGnu_TypesSelect0[] =
2502 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2505 * content bypass pattern - skip fix if pattern found
2507 tSCC zGnu_TypesBypass0[] =
2508 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2510 #define GNU_TYPES_TEST_CT 2
2511 static tTestDesc aGnu_TypesTests[] = {
2512 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2513 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2516 * Fix Command Arguments for Gnu_Types
2518 static const char* apzGnu_TypesPatch[] = {
2522 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2524 * Description of Hp_Inline fix
2526 tSCC zHp_InlineName[] =
2530 * File name selection pattern
2532 tSCC zHp_InlineList[] =
2533 "sys/spinlock.h\0machine/machparam.h\0";
2535 * Machine/OS name selection pattern
2537 #define apzHp_InlineMachs (const char**)NULL
2540 * content selection pattern - do fix if pattern found
2542 tSCC zHp_InlineSelect0[] =
2543 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2545 #define HP_INLINE_TEST_CT 1
2546 static tTestDesc aHp_InlineTests[] = {
2547 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2550 * Fix Command Arguments for Hp_Inline
2552 static const char* apzHp_InlinePatch[] = {
2555 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2558 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2560 * Description of Hp_Sysfile fix
2562 tSCC zHp_SysfileName[] =
2566 * File name selection pattern
2568 tSCC zHp_SysfileList[] =
2571 * Machine/OS name selection pattern
2573 #define apzHp_SysfileMachs (const char**)NULL
2576 * content selection pattern - do fix if pattern found
2578 tSCC zHp_SysfileSelect0[] =
2581 #define HP_SYSFILE_TEST_CT 1
2582 static tTestDesc aHp_SysfileTests[] = {
2583 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2586 * Fix Command Arguments for Hp_Sysfile
2588 static const char* apzHp_SysfilePatch[] = {
2590 "(struct file *, ...)",
2594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2596 * Description of Hppa_Hpux_Fp_Macros fix
2598 tSCC zHppa_Hpux_Fp_MacrosName[] =
2599 "hppa_hpux_fp_macros";
2602 * File name selection pattern
2604 tSCC zHppa_Hpux_Fp_MacrosList[] =
2607 * Machine/OS name selection pattern
2609 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2611 (const char*)NULL };
2614 * content selection pattern - do fix if pattern found
2616 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2617 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2618 #[ \t]*define[ \t]*FP_ZERO.*\n\
2619 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2620 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2621 #[ \t]*define[ \t]*FP_NAN.*\n";
2623 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2624 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2625 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2628 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2630 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2632 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2633 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
2634 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2636 #ifdef _INCLUDE_HPUX_SOURCE\n",
2639 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2641 * Description of Hpux10_Cpp_Pow_Inline fix
2643 tSCC zHpux10_Cpp_Pow_InlineName[] =
2644 "hpux10_cpp_pow_inline";
2647 * File name selection pattern
2649 tSCC zHpux10_Cpp_Pow_InlineList[] =
2650 "fixinc-test-limits.h\0math.h\0";
2652 * Machine/OS name selection pattern
2654 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2657 * content selection pattern - do fix if pattern found
2659 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2660 "^# +ifdef +__cplusplus\n\
2662 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2663 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2665 +extern +\"C\" +\\{\n\
2669 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2670 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2671 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2674 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2676 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2681 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2683 * Description of Hpux11_Cpp_Pow_Inline fix
2685 tSCC zHpux11_Cpp_Pow_InlineName[] =
2686 "hpux11_cpp_pow_inline";
2689 * File name selection pattern
2691 tSCC zHpux11_Cpp_Pow_InlineList[] =
2694 * Machine/OS name selection pattern
2696 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2699 * content selection pattern - do fix if pattern found
2701 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2702 " +inline double pow\\(double d,int expon\\) \\{\n\
2703 +return pow\\(d, \\(double\\)expon\\);\n\
2706 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2707 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2708 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2711 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2713 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2720 * Description of Hpux10_Ctype_Declarations1 fix
2722 tSCC zHpux10_Ctype_Declarations1Name[] =
2723 "hpux10_ctype_declarations1";
2726 * File name selection pattern
2728 tSCC zHpux10_Ctype_Declarations1List[] =
2731 * Machine/OS name selection pattern
2733 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2736 * content selection pattern - do fix if pattern found
2738 tSCC zHpux10_Ctype_Declarations1Select0[] =
2739 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2742 * content bypass pattern - skip fix if pattern found
2744 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2745 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2747 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2748 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2749 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2750 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2753 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2755 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2757 "#ifdef _PROTOTYPES\n\
2758 extern int __tolower(int);\n\
2759 extern int __toupper(int);\n\
2760 #else /* NOT _PROTOTYPES */\n\
2761 extern int __tolower();\n\
2762 extern int __toupper();\n\
2763 #endif /* _PROTOTYPES */\n\n\
2767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2769 * Description of Hpux10_Ctype_Declarations2 fix
2771 tSCC zHpux10_Ctype_Declarations2Name[] =
2772 "hpux10_ctype_declarations2";
2775 * File name selection pattern
2777 tSCC zHpux10_Ctype_Declarations2List[] =
2780 * Machine/OS name selection pattern
2782 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2785 * content selection pattern - do fix if pattern found
2787 tSCC zHpux10_Ctype_Declarations2Select0[] =
2788 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2791 * content bypass pattern - skip fix if pattern found
2793 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2794 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2796 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2797 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2798 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2799 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2802 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2804 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2807 #ifdef _PROTOTYPES\n\
2808 extern int _isalnum(int);\n\
2809 extern int _isalpha(int);\n\
2810 extern int _iscntrl(int);\n\
2811 extern int _isdigit(int);\n\
2812 extern int _isgraph(int);\n\
2813 extern int _islower(int);\n\
2814 extern int _isprint(int);\n\
2815 extern int _ispunct(int);\n\
2816 extern int _isspace(int);\n\
2817 extern int _isupper(int);\n\
2818 extern int _isxdigit(int);\n\
2819 # else /* not _PROTOTYPES */\n\
2820 extern int _isalnum();\n\
2821 extern int _isalpha();\n\
2822 extern int _iscntrl();\n\
2823 extern int _isdigit();\n\
2824 extern int _isgraph();\n\
2825 extern int _islower();\n\
2826 extern int _isprint();\n\
2827 extern int _ispunct();\n\
2828 extern int _isspace();\n\
2829 extern int _isupper();\n\
2830 extern int _isxdigit();\n\
2831 #endif /* _PROTOTYPES */\n",
2834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2836 * Description of Hpux10_Stdio_Declarations fix
2838 tSCC zHpux10_Stdio_DeclarationsName[] =
2839 "hpux10_stdio_declarations";
2842 * File name selection pattern
2844 tSCC zHpux10_Stdio_DeclarationsList[] =
2847 * Machine/OS name selection pattern
2849 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2852 * content selection pattern - do fix if pattern found
2854 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2855 "^#[ \t]*define _iob[ \t]*__iob";
2858 * content bypass pattern - skip fix if pattern found
2860 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2861 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2863 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2864 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2865 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2866 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2869 * Fix Command Arguments for Hpux10_Stdio_Declarations
2871 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2874 # if defined(__STDC__) || defined(__cplusplus)\n\
2875 extern int snprintf(char *, size_t, const char *, ...);\n\
2876 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2877 # else /* not __STDC__) || __cplusplus */\n\
2878 extern int snprintf();\n\
2879 extern int vsnprintf();\n\
2880 # endif /* __STDC__) || __cplusplus */\n",
2883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2885 * Description of Hpux11_Abs fix
2887 tSCC zHpux11_AbsName[] =
2891 * File name selection pattern
2893 tSCC zHpux11_AbsList[] =
2896 * Machine/OS name selection pattern
2898 tSCC* apzHpux11_AbsMachs[] = {
2900 (const char*)NULL };
2903 * content selection pattern - do fix if pattern found
2905 tSCC zHpux11_AbsSelect0[] =
2906 "ifndef _MATH_INCLUDED";
2908 #define HPUX11_ABS_TEST_CT 1
2909 static tTestDesc aHpux11_AbsTests[] = {
2910 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2913 * Fix Command Arguments for Hpux11_Abs
2915 static const char* apzHpux11_AbsPatch[] = {
2917 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2920 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2922 * Description of Hpux11_Fabsf fix
2924 tSCC zHpux11_FabsfName[] =
2928 * File name selection pattern
2930 tSCC zHpux11_FabsfList[] =
2933 * Machine/OS name selection pattern
2935 #define apzHpux11_FabsfMachs (const char**)NULL
2938 * content selection pattern - do fix if pattern found
2940 tSCC zHpux11_FabsfSelect0[] =
2941 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2944 * content bypass pattern - skip fix if pattern found
2946 tSCC zHpux11_FabsfBypass0[] =
2949 #define HPUX11_FABSF_TEST_CT 2
2950 static tTestDesc aHpux11_FabsfTests[] = {
2951 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2952 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2955 * Fix Command Arguments for Hpux11_Fabsf
2957 static const char* apzHpux11_FabsfPatch[] = {
2959 "#ifndef __cplusplus\n\
2964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2966 * Description of Hpux11_Pthread_Const fix
2968 tSCC zHpux11_Pthread_ConstName[] =
2969 "hpux11_pthread_const";
2972 * File name selection pattern
2974 tSCC zHpux11_Pthread_ConstList[] =
2977 * Machine/OS name selection pattern
2979 tSCC* apzHpux11_Pthread_ConstMachs[] = {
2980 "*-hp-hpux11.[0-3]*",
2981 (const char*)NULL };
2984 * content selection pattern - do fix if pattern found
2986 tSCC zHpux11_Pthread_ConstSelect0[] =
2987 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
2989 #define HPUX11_PTHREAD_CONST_TEST_CT 1
2990 static tTestDesc aHpux11_Pthread_ConstTests[] = {
2991 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
2994 * Fix Command Arguments for Hpux11_Pthread_Const
2996 static const char* apzHpux11_Pthread_ConstPatch[] = {
2998 "#define __POINTER_SET\t\t((void *) 1L)",
3001 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3003 * Description of Hpux11_Size_T fix
3005 tSCC zHpux11_Size_TName[] =
3009 * File name selection pattern
3011 #define zHpux11_Size_TList (char*)NULL
3013 * Machine/OS name selection pattern
3015 tSCC* apzHpux11_Size_TMachs[] = {
3017 (const char*)NULL };
3020 * content selection pattern - do fix if pattern found
3022 tSCC zHpux11_Size_TSelect0[] =
3025 #define HPUX11_SIZE_T_TEST_CT 1
3026 static tTestDesc aHpux11_Size_TTests[] = {
3027 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3030 * Fix Command Arguments for Hpux11_Size_T
3032 static const char* apzHpux11_Size_TPatch[] = {
3037 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3039 * Description of Hpux11_Snprintf fix
3041 tSCC zHpux11_SnprintfName[] =
3045 * File name selection pattern
3047 tSCC zHpux11_SnprintfList[] =
3050 * Machine/OS name selection pattern
3052 #define apzHpux11_SnprintfMachs (const char**)NULL
3055 * content selection pattern - do fix if pattern found
3057 tSCC zHpux11_SnprintfSelect0[] =
3058 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3060 #define HPUX11_SNPRINTF_TEST_CT 1
3061 static tTestDesc aHpux11_SnprintfTests[] = {
3062 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3065 * Fix Command Arguments for Hpux11_Snprintf
3067 static const char* apzHpux11_SnprintfPatch[] = {
3072 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3074 * Description of Hpux11_Vsnprintf fix
3076 tSCC zHpux11_VsnprintfName[] =
3080 * File name selection pattern
3082 tSCC zHpux11_VsnprintfList[] =
3085 * Machine/OS name selection pattern
3087 #define apzHpux11_VsnprintfMachs (const char**)NULL
3090 * content selection pattern - do fix if pattern found
3092 tSCC zHpux11_VsnprintfSelect0[] =
3093 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3095 #define HPUX11_VSNPRINTF_TEST_CT 1
3096 static tTestDesc aHpux11_VsnprintfTests[] = {
3097 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3100 * Fix Command Arguments for Hpux11_Vsnprintf
3102 static const char* apzHpux11_VsnprintfPatch[] = {
3107 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3109 * Description of Hpux8_Bogus_Inlines fix
3111 tSCC zHpux8_Bogus_InlinesName[] =
3112 "hpux8_bogus_inlines";
3115 * File name selection pattern
3117 tSCC zHpux8_Bogus_InlinesList[] =
3120 * Machine/OS name selection pattern
3122 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3125 * content selection pattern - do fix if pattern found
3127 tSCC zHpux8_Bogus_InlinesSelect0[] =
3131 * content bypass pattern - skip fix if pattern found
3133 tSCC zHpux8_Bogus_InlinesBypass0[] =
3136 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3137 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3138 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3139 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3142 * Fix Command Arguments for Hpux8_Bogus_Inlines
3144 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3145 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3146 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3147 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3148 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3151 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3153 * Description of Hpux_Ctype_Macros fix
3155 tSCC zHpux_Ctype_MacrosName[] =
3156 "hpux_ctype_macros";
3159 * File name selection pattern
3161 tSCC zHpux_Ctype_MacrosList[] =
3164 * Machine/OS name selection pattern
3166 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3169 * content selection pattern - do fix if pattern found
3171 tSCC zHpux_Ctype_MacrosSelect0[] =
3172 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3174 #define HPUX_CTYPE_MACROS_TEST_CT 1
3175 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3176 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3179 * Fix Command Arguments for Hpux_Ctype_Macros
3181 static const char* apzHpux_Ctype_MacrosPatch[] = {
3186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3188 * Description of Hpux_Htonl fix
3190 tSCC zHpux_HtonlName[] =
3194 * File name selection pattern
3196 tSCC zHpux_HtonlList[] =
3199 * Machine/OS name selection pattern
3201 #define apzHpux_HtonlMachs (const char**)NULL
3204 * content selection pattern - do fix if pattern found
3206 tSCC zHpux_HtonlSelect0[] =
3207 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3209 \\* Macros for number representation conversion\\.\n\
3213 #define HPUX_HTONL_TEST_CT 1
3214 static tTestDesc aHpux_HtonlTests[] = {
3215 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3218 * Fix Command Arguments for Hpux_Htonl
3220 static const char* apzHpux_HtonlPatch[] = {
3226 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3228 * Description of Hpux_Long_Double fix
3230 tSCC zHpux_Long_DoubleName[] =
3234 * File name selection pattern
3236 tSCC zHpux_Long_DoubleList[] =
3239 * Machine/OS name selection pattern
3241 tSCC* apzHpux_Long_DoubleMachs[] = {
3243 "*-*-hpux11.[012]*",
3244 (const char*)NULL };
3247 * content selection pattern - do fix if pattern found
3249 tSCC zHpux_Long_DoubleSelect0[] =
3250 "extern[ \t]long_double[ \t]strtold";
3253 * content bypass pattern - skip fix if pattern found
3255 tSCC zHpux_Long_DoubleBypass0[] =
3258 #define HPUX_LONG_DOUBLE_TEST_CT 2
3259 static tTestDesc aHpux_Long_DoubleTests[] = {
3260 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3261 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3264 * Fix Command Arguments for Hpux_Long_Double
3266 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3267 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3268 "-e", "s/long_double/long double/g",
3271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3273 * Description of Hpux_Long_Double_2 fix
3275 tSCC zHpux_Long_Double_2Name[] =
3276 "hpux_long_double_2";
3279 * File name selection pattern
3281 tSCC zHpux_Long_Double_2List[] =
3284 * Machine/OS name selection pattern
3286 tSCC* apzHpux_Long_Double_2Machs[] = {
3287 "hppa*-*-hpux11.3*",
3288 (const char*)NULL };
3291 * content selection pattern - do fix if pattern found
3293 tSCC zHpux_Long_Double_2Select0[] =
3294 "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
3296 #define HPUX_LONG_DOUBLE_2_TEST_CT 1
3297 static tTestDesc aHpux_Long_Double_2Tests[] = {
3298 { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
3301 * Fix Command Arguments for Hpux_Long_Double_2
3303 static const char* apzHpux_Long_Double_2Patch[] = {
3305 "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
3308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3310 * Description of Hpux_Systime fix
3312 tSCC zHpux_SystimeName[] =
3316 * File name selection pattern
3318 tSCC zHpux_SystimeList[] =
3321 * Machine/OS name selection pattern
3323 #define apzHpux_SystimeMachs (const char**)NULL
3326 * content selection pattern - do fix if pattern found
3328 tSCC zHpux_SystimeSelect0[] =
3329 "^extern struct sigevent;";
3331 #define HPUX_SYSTIME_TEST_CT 1
3332 static tTestDesc aHpux_SystimeTests[] = {
3333 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3336 * Fix Command Arguments for Hpux_Systime
3338 static const char* apzHpux_SystimePatch[] = {
3343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3345 * Description of Hpux_Spu_Info fix
3347 tSCC zHpux_Spu_InfoName[] =
3351 * File name selection pattern
3353 tSCC zHpux_Spu_InfoList[] =
3354 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3356 * Machine/OS name selection pattern
3358 tSCC* apzHpux_Spu_InfoMachs[] = {
3360 (const char*)NULL };
3363 * content selection pattern - do fix if pattern found
3365 tSCC zHpux_Spu_InfoSelect0[] =
3366 "^.*extern.*spu_info.*";
3368 #define HPUX_SPU_INFO_TEST_CT 1
3369 static tTestDesc aHpux_Spu_InfoTests[] = {
3370 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3373 * Fix Command Arguments for Hpux_Spu_Info
3375 static const char* apzHpux_Spu_InfoPatch[] = {
3382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3384 * Description of Hpux11_Extern_Sendfile fix
3386 tSCC zHpux11_Extern_SendfileName[] =
3387 "hpux11_extern_sendfile";
3390 * File name selection pattern
3392 tSCC zHpux11_Extern_SendfileList[] =
3395 * Machine/OS name selection pattern
3397 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3398 "*-hp-hpux11.[12]*",
3399 (const char*)NULL };
3402 * content selection pattern - do fix if pattern found
3404 tSCC zHpux11_Extern_SendfileSelect0[] =
3405 "^[ \t]*extern sbsize_t sendfile.*\n\
3408 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3409 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3410 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3413 * Fix Command Arguments for Hpux11_Extern_Sendfile
3415 static const char* apzHpux11_Extern_SendfilePatch[] = {
3417 "#ifndef _APP32_64BIT_OFF_T\n\
3421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3423 * Description of Hpux11_Extern_Sendpath fix
3425 tSCC zHpux11_Extern_SendpathName[] =
3426 "hpux11_extern_sendpath";
3429 * File name selection pattern
3431 tSCC zHpux11_Extern_SendpathList[] =
3434 * Machine/OS name selection pattern
3436 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3437 "*-hp-hpux11.[12]*",
3438 (const char*)NULL };
3441 * content selection pattern - do fix if pattern found
3443 tSCC zHpux11_Extern_SendpathSelect0[] =
3444 "^[ \t]*extern sbsize_t sendpath.*\n\
3447 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3448 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3449 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3452 * Fix Command Arguments for Hpux11_Extern_Sendpath
3454 static const char* apzHpux11_Extern_SendpathPatch[] = {
3456 "#ifndef _APP32_64BIT_OFF_T\n\
3460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3462 * Description of Hpux_Extern_Errno fix
3464 tSCC zHpux_Extern_ErrnoName[] =
3465 "hpux_extern_errno";
3468 * File name selection pattern
3470 tSCC zHpux_Extern_ErrnoList[] =
3473 * Machine/OS name selection pattern
3475 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3477 "*-hp-hpux11.[0-2]*",
3478 (const char*)NULL };
3481 * content selection pattern - do fix if pattern found
3483 tSCC zHpux_Extern_ErrnoSelect0[] =
3484 "^[ \t]*extern int errno;$";
3486 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3487 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3488 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3491 * Fix Command Arguments for Hpux_Extern_Errno
3493 static const char* apzHpux_Extern_ErrnoPatch[] = {
3495 "#ifdef __cplusplus\n\
3499 #ifdef __cplusplus\n\
3504 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3506 * Description of Hpux_Pthread_Initializers fix
3508 tSCC zHpux_Pthread_InitializersName[] =
3509 "hpux_pthread_initializers";
3512 * File name selection pattern
3514 tSCC zHpux_Pthread_InitializersList[] =
3517 * Machine/OS name selection pattern
3519 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3520 "*-hp-hpux11.[0-3]*",
3521 (const char*)NULL };
3522 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3523 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3526 * Fix Command Arguments for Hpux_Pthread_Initializers
3528 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3529 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3530 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3531 "-e", "/^[ \t]*0$/d",
3532 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3533 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3534 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3535 "-e", "s@^[ \t]*__LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@\t{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3536 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3537 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3538 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3539 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3540 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3541 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3544 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3546 * Description of Hpux_C99_Intptr fix
3548 tSCC zHpux_C99_IntptrName[] =
3552 * File name selection pattern
3554 tSCC zHpux_C99_IntptrList[] =
3557 * Machine/OS name selection pattern
3559 tSCC* apzHpux_C99_IntptrMachs[] = {
3561 (const char*)NULL };
3562 #define HPUX_C99_INTPTR_TEST_CT 0
3563 #define aHpux_C99_IntptrTests (tTestDesc*)NULL
3566 * Fix Command Arguments for Hpux_C99_Intptr
3568 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
3569 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
3570 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
3571 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
3572 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
3573 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
3574 "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
3577 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3579 * Description of Hpux_C99_Inttypes fix
3581 tSCC zHpux_C99_InttypesName[] =
3582 "hpux_c99_inttypes";
3585 * File name selection pattern
3587 tSCC zHpux_C99_InttypesList[] =
3588 "inttypes.h\0stdint.h\0";
3590 * Machine/OS name selection pattern
3592 tSCC* apzHpux_C99_InttypesMachs[] = {
3593 "*-hp-hpux11.[23]*",
3594 (const char*)NULL };
3595 #define HPUX_C99_INTTYPES_TEST_CT 0
3596 #define aHpux_C99_InttypesTests (tTestDesc*)NULL
3599 * Fix Command Arguments for Hpux_C99_Inttypes
3601 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
3602 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
3603 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
3604 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
3605 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
3608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3610 * Description of Hpux_C99_Inttypes2 fix
3612 tSCC zHpux_C99_Inttypes2Name[] =
3613 "hpux_c99_inttypes2";
3616 * File name selection pattern
3618 tSCC zHpux_C99_Inttypes2List[] =
3621 * Machine/OS name selection pattern
3623 tSCC* apzHpux_C99_Inttypes2Machs[] = {
3625 (const char*)NULL };
3626 #define HPUX_C99_INTTYPES2_TEST_CT 0
3627 #define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL
3630 * Fix Command Arguments for Hpux_C99_Inttypes2
3632 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
3633 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
3634 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
3635 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
3636 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
3639 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3641 * Description of Hpux_Stdint_Least fix
3643 tSCC zHpux_Stdint_LeastName[] =
3644 "hpux_stdint_least";
3647 * File name selection pattern
3649 tSCC zHpux_Stdint_LeastList[] =
3652 * Machine/OS name selection pattern
3654 tSCC* apzHpux_Stdint_LeastMachs[] = {
3656 (const char*)NULL };
3659 * content selection pattern - do fix if pattern found
3661 tSCC zHpux_Stdint_LeastSelect0[] =
3662 "^[ \t]*#[ \t]*define[ \t]*UINT_LEAST64_MAX[ \t]*ULLONG_MAX";
3664 #define HPUX_STDINT_LEAST_TEST_CT 1
3665 static tTestDesc aHpux_Stdint_LeastTests[] = {
3666 { TT_EGREP, zHpux_Stdint_LeastSelect0, (regex_t*)NULL }, };
3669 * Fix Command Arguments for Hpux_Stdint_Least
3671 static const char* apzHpux_Stdint_LeastPatch[] = {
3674 # define\tUINT_LEAST64_MAX\tULONG_MAX\n\
3680 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3682 * Description of Hpux_Stdint_Fast fix
3684 tSCC zHpux_Stdint_FastName[] =
3688 * File name selection pattern
3690 tSCC zHpux_Stdint_FastList[] =
3693 * Machine/OS name selection pattern
3695 tSCC* apzHpux_Stdint_FastMachs[] = {
3697 (const char*)NULL };
3700 * content selection pattern - do fix if pattern found
3702 tSCC zHpux_Stdint_FastSelect0[] =
3703 "^[ \t]*#[ \t]*define[ \t]*UINT_FAST64_MAX[ \t]*ULLONG_MAX";
3705 #define HPUX_STDINT_FAST_TEST_CT 1
3706 static tTestDesc aHpux_Stdint_FastTests[] = {
3707 { TT_EGREP, zHpux_Stdint_FastSelect0, (regex_t*)NULL }, };
3710 * Fix Command Arguments for Hpux_Stdint_Fast
3712 static const char* apzHpux_Stdint_FastPatch[] = {
3715 # define\tUINT_FAST64_MAX\t\tULONG_MAX\n\
3721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3723 * Description of Hpux_Inttype_Int_Least8_T fix
3725 tSCC zHpux_Inttype_Int_Least8_TName[] =
3726 "hpux_inttype_int_least8_t";
3729 * File name selection pattern
3731 tSCC zHpux_Inttype_Int_Least8_TList[] =
3732 "sys/_inttypes.h\0";
3734 * Machine/OS name selection pattern
3736 tSCC* apzHpux_Inttype_Int_Least8_TMachs[] = {
3738 (const char*)NULL };
3741 * content selection pattern - do fix if pattern found
3743 tSCC zHpux_Inttype_Int_Least8_TSelect0[] =
3744 "^[ \t]*typedef[ \t]*char[ \t]*int_least8_t.*";
3746 #define HPUX_INTTYPE_INT_LEAST8_T_TEST_CT 1
3747 static tTestDesc aHpux_Inttype_Int_Least8_TTests[] = {
3748 { TT_EGREP, zHpux_Inttype_Int_Least8_TSelect0, (regex_t*)NULL }, };
3751 * Fix Command Arguments for Hpux_Inttype_Int_Least8_T
3753 static const char* apzHpux_Inttype_Int_Least8_TPatch[] = {
3755 "typedef signed char int_least8_t;",
3758 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3760 * Description of Hpux_Inttype_Int8_T fix
3762 tSCC zHpux_Inttype_Int8_TName[] =
3763 "hpux_inttype_int8_t";
3766 * File name selection pattern
3768 tSCC zHpux_Inttype_Int8_TList[] =
3769 "sys/_inttypes.h\0";
3771 * Machine/OS name selection pattern
3773 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
3775 (const char*)NULL };
3778 * content selection pattern - do fix if pattern found
3780 tSCC zHpux_Inttype_Int8_TSelect0[] =
3781 "^[ \t]*typedef[ \t]*char[ \t]*int8_t.*";
3783 #define HPUX_INTTYPE_INT8_T_TEST_CT 1
3784 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
3785 { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
3788 * Fix Command Arguments for Hpux_Inttype_Int8_T
3790 static const char* apzHpux_Inttype_Int8_TPatch[] = {
3792 "typedef signed char int8_t;",
3795 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3797 * Description of Huge_Val_Hex fix
3799 tSCC zHuge_Val_HexName[] =
3803 * File name selection pattern
3805 tSCC zHuge_Val_HexList[] =
3806 "bits/huge_val.h\0";
3808 * Machine/OS name selection pattern
3810 #define apzHuge_Val_HexMachs (const char**)NULL
3813 * content selection pattern - do fix if pattern found
3815 tSCC zHuge_Val_HexSelect0[] =
3816 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3819 * content bypass pattern - skip fix if pattern found
3821 tSCC zHuge_Val_HexBypass0[] =
3822 "__builtin_huge_val";
3824 #define HUGE_VAL_HEX_TEST_CT 2
3825 static tTestDesc aHuge_Val_HexTests[] = {
3826 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3827 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3830 * Fix Command Arguments for Huge_Val_Hex
3832 static const char* apzHuge_Val_HexPatch[] = {
3834 "#define HUGE_VAL (__builtin_huge_val())\n",
3837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3839 * Description of Huge_Valf_Hex fix
3841 tSCC zHuge_Valf_HexName[] =
3845 * File name selection pattern
3847 tSCC zHuge_Valf_HexList[] =
3848 "bits/huge_val.h\0";
3850 * Machine/OS name selection pattern
3852 #define apzHuge_Valf_HexMachs (const char**)NULL
3855 * content selection pattern - do fix if pattern found
3857 tSCC zHuge_Valf_HexSelect0[] =
3858 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3861 * content bypass pattern - skip fix if pattern found
3863 tSCC zHuge_Valf_HexBypass0[] =
3864 "__builtin_huge_valf";
3866 #define HUGE_VALF_HEX_TEST_CT 2
3867 static tTestDesc aHuge_Valf_HexTests[] = {
3868 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3869 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3872 * Fix Command Arguments for Huge_Valf_Hex
3874 static const char* apzHuge_Valf_HexPatch[] = {
3876 "#define HUGE_VALF (__builtin_huge_valf())\n",
3879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3881 * Description of Huge_Vall_Hex fix
3883 tSCC zHuge_Vall_HexName[] =
3887 * File name selection pattern
3889 tSCC zHuge_Vall_HexList[] =
3890 "bits/huge_val.h\0";
3892 * Machine/OS name selection pattern
3894 #define apzHuge_Vall_HexMachs (const char**)NULL
3897 * content selection pattern - do fix if pattern found
3899 tSCC zHuge_Vall_HexSelect0[] =
3900 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3903 * content bypass pattern - skip fix if pattern found
3905 tSCC zHuge_Vall_HexBypass0[] =
3906 "__builtin_huge_vall";
3908 #define HUGE_VALL_HEX_TEST_CT 2
3909 static tTestDesc aHuge_Vall_HexTests[] = {
3910 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3911 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3914 * Fix Command Arguments for Huge_Vall_Hex
3916 static const char* apzHuge_Vall_HexPatch[] = {
3918 "#define HUGE_VALL (__builtin_huge_vall())\n",
3921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3923 * Description of Int_Abort_Free_And_Exit fix
3925 tSCC zInt_Abort_Free_And_ExitName[] =
3926 "int_abort_free_and_exit";
3929 * File name selection pattern
3931 tSCC zInt_Abort_Free_And_ExitList[] =
3934 * Machine/OS name selection pattern
3936 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3939 * content selection pattern - do fix if pattern found
3941 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3942 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3945 * content bypass pattern - skip fix if pattern found
3947 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3948 "_CLASSIC_ANSI_TYPES";
3950 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3951 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3952 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3953 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3956 * Fix Command Arguments for Int_Abort_Free_And_Exit
3958 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3963 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3965 * Description of Io_Quotes_Def fix
3967 tSCC zIo_Quotes_DefName[] =
3971 * File name selection pattern
3973 #define zIo_Quotes_DefList (char*)NULL
3975 * Machine/OS name selection pattern
3977 #define apzIo_Quotes_DefMachs (const char**)NULL
3980 * content selection pattern - do fix if pattern found
3982 tSCC zIo_Quotes_DefSelect0[] =
3983 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3985 #define IO_QUOTES_DEF_TEST_CT 1
3986 static tTestDesc aIo_Quotes_DefTests[] = {
3987 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3990 * Fix Command Arguments for Io_Quotes_Def
3992 static const char* apzIo_Quotes_DefPatch[] = {
3997 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3999 * Description of Io_Quotes_Use fix
4001 tSCC zIo_Quotes_UseName[] =
4005 * File name selection pattern
4007 #define zIo_Quotes_UseList (char*)NULL
4009 * Machine/OS name selection pattern
4011 #define apzIo_Quotes_UseMachs (const char**)NULL
4014 * content selection pattern - do fix if pattern found
4016 tSCC zIo_Quotes_UseSelect0[] =
4017 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4019 #define IO_QUOTES_USE_TEST_CT 1
4020 static tTestDesc aIo_Quotes_UseTests[] = {
4021 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4024 * Fix Command Arguments for Io_Quotes_Use
4026 static const char* apzIo_Quotes_UsePatch[] = {
4031 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4033 * Description of Ip_Missing_Semi fix
4035 tSCC zIp_Missing_SemiName[] =
4039 * File name selection pattern
4041 tSCC zIp_Missing_SemiList[] =
4044 * Machine/OS name selection pattern
4046 #define apzIp_Missing_SemiMachs (const char**)NULL
4049 * content selection pattern - do fix if pattern found
4051 tSCC zIp_Missing_SemiSelect0[] =
4054 #define IP_MISSING_SEMI_TEST_CT 1
4055 static tTestDesc aIp_Missing_SemiTests[] = {
4056 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4059 * Fix Command Arguments for Ip_Missing_Semi
4061 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4062 "-e", "/^struct/,/^};/s/}$/};/",
4065 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4067 * Description of Irix___Restrict fix
4069 tSCC zIrix___RestrictName[] =
4073 * File name selection pattern
4075 tSCC zIrix___RestrictList[] =
4076 "internal/sgimacros.h\0";
4078 * Machine/OS name selection pattern
4080 tSCC* apzIrix___RestrictMachs[] = {
4082 (const char*)NULL };
4085 * content selection pattern - do fix if pattern found
4087 tSCC zIrix___RestrictSelect0[] =
4089 )(#[ \t]*define __restrict restrict)";
4091 #define IRIX___RESTRICT_TEST_CT 1
4092 static tTestDesc aIrix___RestrictTests[] = {
4093 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
4096 * Fix Command Arguments for Irix___Restrict
4098 static const char* apzIrix___RestrictPatch[] = {
4100 "%1# ifndef __cplusplus\n\
4105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4107 * Description of Irix___Generic1 fix
4109 tSCC zIrix___Generic1Name[] =
4113 * File name selection pattern
4115 tSCC zIrix___Generic1List[] =
4116 "internal/math_core.h\0";
4118 * Machine/OS name selection pattern
4120 tSCC* apzIrix___Generic1Machs[] = {
4122 (const char*)NULL };
4125 * content selection pattern - do fix if pattern found
4127 tSCC zIrix___Generic1Select0[] =
4128 "#define ([a-z]+)\\(x\\) *__generic.*";
4130 #define IRIX___GENERIC1_TEST_CT 1
4131 static tTestDesc aIrix___Generic1Tests[] = {
4132 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
4135 * Fix Command Arguments for Irix___Generic1
4137 static const char* apzIrix___Generic1Patch[] = {
4139 "extern int %1(double);\n\
4140 extern int %1f(float);\n\
4141 extern int %1l(long double);\n\
4142 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
4143 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
4147 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4149 * Description of Irix___Generic2 fix
4151 tSCC zIrix___Generic2Name[] =
4155 * File name selection pattern
4157 tSCC zIrix___Generic2List[] =
4158 "internal/math_core.h\0";
4160 * Machine/OS name selection pattern
4162 tSCC* apzIrix___Generic2Machs[] = {
4164 (const char*)NULL };
4167 * content selection pattern - do fix if pattern found
4169 tSCC zIrix___Generic2Select0[] =
4170 "#define ([a-z]+)\\(x,y\\) *__generic.*";
4172 #define IRIX___GENERIC2_TEST_CT 1
4173 static tTestDesc aIrix___Generic2Tests[] = {
4174 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
4177 * Fix Command Arguments for Irix___Generic2
4179 static const char* apzIrix___Generic2Patch[] = {
4181 "#define %1(x,y) \\\n\
4182 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
4183 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
4187 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4189 * Description of Irix_Asm_Apostrophe fix
4191 tSCC zIrix_Asm_ApostropheName[] =
4192 "irix_asm_apostrophe";
4195 * File name selection pattern
4197 tSCC zIrix_Asm_ApostropheList[] =
4200 * Machine/OS name selection pattern
4202 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
4205 * content selection pattern - do fix if pattern found
4207 tSCC zIrix_Asm_ApostropheSelect0[] =
4208 "^[ \t]*#.*[Ww]e're";
4210 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
4211 static tTestDesc aIrix_Asm_ApostropheTests[] = {
4212 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
4215 * Fix Command Arguments for Irix_Asm_Apostrophe
4217 static const char* apzIrix_Asm_ApostrophePatch[] = {
4220 "^([ \t]*#.*[Ww]e)'re",
4223 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4225 * Description of Irix_Limits_Const fix
4227 tSCC zIrix_Limits_ConstName[] =
4228 "irix_limits_const";
4231 * File name selection pattern
4233 tSCC zIrix_Limits_ConstList[] =
4234 "fixinc-test-limits.h\0limits.h\0";
4236 * Machine/OS name selection pattern
4238 #define apzIrix_Limits_ConstMachs (const char**)NULL
4241 * content selection pattern - do fix if pattern found
4243 tSCC zIrix_Limits_ConstSelect0[] =
4246 #define IRIX_LIMITS_CONST_TEST_CT 1
4247 static tTestDesc aIrix_Limits_ConstTests[] = {
4248 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4251 * Fix Command Arguments for Irix_Limits_Const
4253 static const char* apzIrix_Limits_ConstPatch[] = {
4258 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4260 * Description of Irix_Socklen_T fix
4262 tSCC zIrix_Socklen_TName[] =
4266 * File name selection pattern
4268 tSCC zIrix_Socklen_TList[] =
4271 * Machine/OS name selection pattern
4273 tSCC* apzIrix_Socklen_TMachs[] = {
4275 (const char*)NULL };
4278 * content selection pattern - do fix if pattern found
4280 tSCC zIrix_Socklen_TSelect0[] =
4281 "(#define _SOCKLEN_T\n\
4282 )(typedef u_int32_t socklen_t;)";
4284 #define IRIX_SOCKLEN_T_TEST_CT 1
4285 static tTestDesc aIrix_Socklen_TTests[] = {
4286 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4289 * Fix Command Arguments for Irix_Socklen_T
4291 static const char* apzIrix_Socklen_TPatch[] = {
4293 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4294 typedef int socklen_t;\n\
4297 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4302 * Description of Irix_Stdint_C99 fix
4304 tSCC zIrix_Stdint_C99Name[] =
4308 * File name selection pattern
4310 tSCC zIrix_Stdint_C99List[] =
4313 * Machine/OS name selection pattern
4315 tSCC* apzIrix_Stdint_C99Machs[] = {
4317 (const char*)NULL };
4320 * content selection pattern - do fix if pattern found
4322 tSCC zIrix_Stdint_C99Select0[] =
4324 )(#error This header file is to be used only for c99 mode compilations)";
4326 #define IRIX_STDINT_C99_TEST_CT 1
4327 static tTestDesc aIrix_Stdint_C99Tests[] = {
4328 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
4331 * Fix Command Arguments for Irix_Stdint_C99
4333 static const char* apzIrix_Stdint_C99Patch[] = {
4339 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4341 * Description of Irix_Stdio_Va_List fix
4343 tSCC zIrix_Stdio_Va_ListName[] =
4344 "irix_stdio_va_list";
4347 * File name selection pattern
4349 tSCC zIrix_Stdio_Va_ListList[] =
4350 "stdio.h\0internal/stdio_core.h\0";
4352 * Machine/OS name selection pattern
4354 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4357 * content selection pattern - do fix if pattern found
4359 tSCC zIrix_Stdio_Va_ListSelect0[] =
4360 "/\\* va_list \\*/ char \\*";
4362 #define IRIX_STDIO_VA_LIST_TEST_CT 1
4363 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4364 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4367 * Fix Command Arguments for Irix_Stdio_Va_List
4369 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4374 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4376 * Description of Irix_Wcsftime fix
4378 tSCC zIrix_WcsftimeName[] =
4382 * File name selection pattern
4384 tSCC zIrix_WcsftimeList[] =
4385 "internal/wchar_core.h\0";
4387 * Machine/OS name selection pattern
4389 tSCC* apzIrix_WcsftimeMachs[] = {
4391 (const char*)NULL };
4394 * content selection pattern - do fix if pattern found
4396 tSCC zIrix_WcsftimeSelect0[] =
4398 (extern size_t[ \t]+wcsftime.*const char *.*)";
4400 #define IRIX_WCSFTIME_TEST_CT 1
4401 static tTestDesc aIrix_WcsftimeTests[] = {
4402 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4405 * Fix Command Arguments for Irix_Wcsftime
4407 static const char* apzIrix_WcsftimePatch[] = {
4409 "#if _NO_XOPEN5 && !defined(__c99)\n\
4413 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4415 * Description of Isc_Fmod fix
4417 tSCC zIsc_FmodName[] =
4421 * File name selection pattern
4423 tSCC zIsc_FmodList[] =
4426 * Machine/OS name selection pattern
4428 #define apzIsc_FmodMachs (const char**)NULL
4431 * content selection pattern - do fix if pattern found
4433 tSCC zIsc_FmodSelect0[] =
4436 #define ISC_FMOD_TEST_CT 1
4437 static tTestDesc aIsc_FmodTests[] = {
4438 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
4441 * Fix Command Arguments for Isc_Fmod
4443 static const char* apzIsc_FmodPatch[] = {
4445 "fmod(double, double)",
4448 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4450 * Description of Isc_Omits_With_Stdc fix
4452 tSCC zIsc_Omits_With_StdcName[] =
4453 "isc_omits_with_stdc";
4456 * File name selection pattern
4458 tSCC zIsc_Omits_With_StdcList[] =
4459 "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
4461 * Machine/OS name selection pattern
4463 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
4466 * content selection pattern - do fix if pattern found
4468 tSCC zIsc_Omits_With_StdcSelect0[] =
4469 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
4471 #define ISC_OMITS_WITH_STDC_TEST_CT 1
4472 static tTestDesc aIsc_Omits_With_StdcTests[] = {
4473 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4476 * Fix Command Arguments for Isc_Omits_With_Stdc
4478 static const char* apzIsc_Omits_With_StdcPatch[] = {
4480 "!defined(_POSIX_SOURCE)",
4483 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4485 * Description of Kandr_Concat fix
4487 tSCC zKandr_ConcatName[] =
4491 * File name selection pattern
4493 tSCC zKandr_ConcatList[] =
4494 "sparc/asm_linkage.h\0sun*/asm_linkage.h\0arm/as_support.h\0arm/mc_type.h\0arm/xcb.h\0dev/chardefmac.h\0dev/ps_irq.h\0dev/screen.h\0dev/scsi.h\0sys/tty.h\0Xm.acorn/XmP.h\0bsd43/bsd43_.h\0";
4496 * Machine/OS name selection pattern
4498 #define apzKandr_ConcatMachs (const char**)NULL
4501 * content selection pattern - do fix if pattern found
4503 tSCC zKandr_ConcatSelect0[] =
4506 #define KANDR_CONCAT_TEST_CT 1
4507 static tTestDesc aKandr_ConcatTests[] = {
4508 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4511 * Fix Command Arguments for Kandr_Concat
4513 static const char* apzKandr_ConcatPatch[] = {
4518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4520 * Description of Linux_Ia64_Ucontext fix
4522 tSCC zLinux_Ia64_UcontextName[] =
4523 "linux_ia64_ucontext";
4526 * File name selection pattern
4528 tSCC zLinux_Ia64_UcontextList[] =
4531 * Machine/OS name selection pattern
4533 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4535 (const char*)NULL };
4538 * content selection pattern - do fix if pattern found
4540 tSCC zLinux_Ia64_UcontextSelect0[] =
4541 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4543 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4544 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4545 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4548 * Fix Command Arguments for Linux_Ia64_Ucontext
4550 static const char* apzLinux_Ia64_UcontextPatch[] = {
4552 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4557 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4559 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4560 "lynxos_no_warning_in_sys_time_h";
4563 * File name selection pattern
4565 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4568 * Machine/OS name selection pattern
4570 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4573 * content selection pattern - do fix if pattern found
4575 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4576 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4578 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4579 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4580 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4583 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4585 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4592 * Description of Lynxos_Missing_Putenv fix
4594 tSCC zLynxos_Missing_PutenvName[] =
4595 "lynxos_missing_putenv";
4598 * File name selection pattern
4600 tSCC zLynxos_Missing_PutenvList[] =
4603 * Machine/OS name selection pattern
4605 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4607 (const char*)NULL };
4610 * content selection pattern - do fix if pattern found
4612 tSCC zLynxos_Missing_PutenvSelect0[] =
4613 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4616 * content bypass pattern - skip fix if pattern found
4618 tSCC zLynxos_Missing_PutenvBypass0[] =
4621 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4622 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4623 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4624 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4627 * Fix Command Arguments for Lynxos_Missing_Putenv
4629 static const char* apzLynxos_Missing_PutenvPatch[] = {
4632 extern int putenv\t\t\t\t_AP((char *));",
4633 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4638 * Description of Machine_Ansi_H_Va_List fix
4640 tSCC zMachine_Ansi_H_Va_ListName[] =
4641 "machine_ansi_h_va_list";
4644 * File name selection pattern
4646 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4648 * Machine/OS name selection pattern
4650 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4653 * content selection pattern - do fix if pattern found
4655 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4656 "define[ \t]+_BSD_VA_LIST_[ \t]";
4659 * content bypass pattern - skip fix if pattern found
4661 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4662 "__builtin_va_list";
4664 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4665 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4666 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4667 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4670 * Fix Command Arguments for Machine_Ansi_H_Va_List
4672 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4674 "%1__builtin_va_list",
4675 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4680 * Description of Machine_Name fix
4682 tSCC zMachine_NameName[] =
4686 * File name selection pattern
4688 #define zMachine_NameList (char*)NULL
4690 * Machine/OS name selection pattern
4692 #define apzMachine_NameMachs (const char**)NULL
4695 * perform the C function call test
4697 tSCC zMachine_NameFTst0[] = "machine_name";
4699 #define MACHINE_NAME_TEST_CT 1
4700 static tTestDesc aMachine_NameTests[] = {
4701 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4704 * Fix Command Arguments for Machine_Name
4706 static const char* apzMachine_NamePatch[] = {
4710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4712 * Description of Math_Exception fix
4714 tSCC zMath_ExceptionName[] =
4718 * File name selection pattern
4720 tSCC zMath_ExceptionList[] =
4723 * Machine/OS name selection pattern
4725 #define apzMath_ExceptionMachs (const char**)NULL
4728 * content selection pattern - do fix if pattern found
4730 tSCC zMath_ExceptionSelect0[] =
4734 * content bypass pattern - skip fix if pattern found
4736 tSCC zMath_ExceptionBypass0[] =
4737 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4739 #define MATH_EXCEPTION_TEST_CT 2
4740 static tTestDesc aMath_ExceptionTests[] = {
4741 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4742 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4745 * Fix Command Arguments for Math_Exception
4747 static const char* apzMath_ExceptionPatch[] = {
4749 "#ifdef __cplusplus\n\
4750 #define exception __math_exception\n\
4752 "#ifdef __cplusplus\n\
4757 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4759 * Description of Math_Huge_Val_From_Dbl_Max fix
4761 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4762 "math_huge_val_from_dbl_max";
4765 * File name selection pattern
4767 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4770 * Machine/OS name selection pattern
4772 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4775 * content selection pattern - do fix if pattern found
4777 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4778 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4781 * content bypass pattern - skip fix if pattern found
4783 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4784 "define[ \t]+DBL_MAX";
4786 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4787 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4788 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4789 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4792 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4794 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4795 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4796 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4797 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4804 * Description of Nested_Auth_Des fix
4806 tSCC zNested_Auth_DesName[] =
4810 * File name selection pattern
4812 tSCC zNested_Auth_DesList[] =
4815 * Machine/OS name selection pattern
4817 #define apzNested_Auth_DesMachs (const char**)NULL
4820 * content selection pattern - do fix if pattern found
4822 tSCC zNested_Auth_DesSelect0[] =
4823 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4825 #define NESTED_AUTH_DES_TEST_CT 1
4826 static tTestDesc aNested_Auth_DesTests[] = {
4827 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4830 * Fix Command Arguments for Nested_Auth_Des
4832 static const char* apzNested_Auth_DesPatch[] = {
4837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4839 * Description of Nested_Sys_Limits fix
4841 tSCC zNested_Sys_LimitsName[] =
4842 "nested_sys_limits";
4845 * File name selection pattern
4847 tSCC zNested_Sys_LimitsList[] =
4850 * Machine/OS name selection pattern
4852 #define apzNested_Sys_LimitsMachs (const char**)NULL
4855 * content selection pattern - do fix if pattern found
4857 tSCC zNested_Sys_LimitsSelect0[] =
4860 #define NESTED_SYS_LIMITS_TEST_CT 1
4861 static tTestDesc aNested_Sys_LimitsTests[] = {
4862 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4865 * Fix Command Arguments for Nested_Sys_Limits
4867 static const char* apzNested_Sys_LimitsPatch[] = { sed_cmd_z,
4868 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4869 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4872 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4874 * Description of Netbsd_C99_Inline_1 fix
4876 tSCC zNetbsd_C99_Inline_1Name[] =
4877 "netbsd_c99_inline_1";
4880 * File name selection pattern
4882 tSCC zNetbsd_C99_Inline_1List[] =
4885 * Machine/OS name selection pattern
4887 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4889 (const char*)NULL };
4892 * content selection pattern - do fix if pattern found
4894 tSCC zNetbsd_C99_Inline_1Select0[] =
4895 "extern __inline int";
4897 #define NETBSD_C99_INLINE_1_TEST_CT 1
4898 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4899 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4902 * Fix Command Arguments for Netbsd_C99_Inline_1
4904 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4907 #ifdef __GNUC_STDC_INLINE__\n\
4908 __attribute__((__gnu_inline__))\n\
4913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4915 * Description of Netbsd_C99_Inline_2 fix
4917 tSCC zNetbsd_C99_Inline_2Name[] =
4918 "netbsd_c99_inline_2";
4921 * File name selection pattern
4923 tSCC zNetbsd_C99_Inline_2List[] =
4926 * Machine/OS name selection pattern
4928 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4930 (const char*)NULL };
4933 * content selection pattern - do fix if pattern found
4935 tSCC zNetbsd_C99_Inline_2Select0[] =
4936 "#define _SIGINLINE extern __inline";
4938 #define NETBSD_C99_INLINE_2_TEST_CT 1
4939 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4940 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4943 * Fix Command Arguments for Netbsd_C99_Inline_2
4945 static const char* apzNetbsd_C99_Inline_2Patch[] = {
4947 "#ifdef __GNUC_STDC_INLINE__\n\
4948 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4954 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4956 * Description of Netbsd_Extra_Semicolon fix
4958 tSCC zNetbsd_Extra_SemicolonName[] =
4959 "netbsd_extra_semicolon";
4962 * File name selection pattern
4964 tSCC zNetbsd_Extra_SemicolonList[] =
4967 * Machine/OS name selection pattern
4969 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4971 (const char*)NULL };
4974 * content selection pattern - do fix if pattern found
4976 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4977 "#define[ \t]*__END_DECLS[ \t]*};";
4979 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4980 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4981 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4984 * Fix Command Arguments for Netbsd_Extra_Semicolon
4986 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4988 "#define __END_DECLS }",
4991 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4993 * Description of Newlib_Stdint_1 fix
4995 tSCC zNewlib_Stdint_1Name[] =
4999 * File name selection pattern
5001 tSCC zNewlib_Stdint_1List[] =
5004 * Machine/OS name selection pattern
5006 #define apzNewlib_Stdint_1Machs (const char**)NULL
5009 * content selection pattern - do fix if pattern found
5011 tSCC zNewlib_Stdint_1Select0[] =
5012 "@todo - Add support for wint_t types";
5014 #define NEWLIB_STDINT_1_TEST_CT 1
5015 static tTestDesc aNewlib_Stdint_1Tests[] = {
5016 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5019 * Fix Command Arguments for Newlib_Stdint_1
5021 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5022 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5023 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5024 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5025 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5026 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5027 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5028 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5029 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5030 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5031 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5032 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5033 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5034 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5035 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5038 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5040 * Description of Newlib_Stdint_2 fix
5042 tSCC zNewlib_Stdint_2Name[] =
5046 * File name selection pattern
5048 tSCC zNewlib_Stdint_2List[] =
5051 * Machine/OS name selection pattern
5053 #define apzNewlib_Stdint_2Machs (const char**)NULL
5056 * content selection pattern - do fix if pattern found
5058 tSCC zNewlib_Stdint_2Select0[] =
5059 "@todo - Add support for wint_t types";
5061 #define NEWLIB_STDINT_2_TEST_CT 1
5062 static tTestDesc aNewlib_Stdint_2Tests[] = {
5063 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5066 * Fix Command Arguments for Newlib_Stdint_2
5068 static const char* apzNewlib_Stdint_2Patch[] = {
5070 "#define INTMAX_MAX __INTMAX_MAX__\n\
5071 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5072 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5073 #define WCHAR_MAX __WCHAR_MAX__\n\
5074 #define WCHAR_MIN __WCHAR_MIN__\n\
5075 #define WINT_MAX __WINT_MAX__\n\
5076 #define WINT_MIN __WINT_MIN__\n\n\
5078 "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5081 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5083 * Description of Next_Math_Prefix fix
5085 tSCC zNext_Math_PrefixName[] =
5089 * File name selection pattern
5091 tSCC zNext_Math_PrefixList[] =
5094 * Machine/OS name selection pattern
5096 #define apzNext_Math_PrefixMachs (const char**)NULL
5099 * content selection pattern - do fix if pattern found
5101 tSCC zNext_Math_PrefixSelect0[] =
5102 "^extern[ \t]+double[ \t]+__const__[ \t]";
5104 #define NEXT_MATH_PREFIX_TEST_CT 1
5105 static tTestDesc aNext_Math_PrefixTests[] = {
5106 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5109 * Fix Command Arguments for Next_Math_Prefix
5111 static const char* apzNext_Math_PrefixPatch[] = {
5113 "extern double %1(",
5114 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5117 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5119 * Description of Next_Template fix
5121 tSCC zNext_TemplateName[] =
5125 * File name selection pattern
5127 tSCC zNext_TemplateList[] =
5130 * Machine/OS name selection pattern
5132 #define apzNext_TemplateMachs (const char**)NULL
5135 * content selection pattern - do fix if pattern found
5137 tSCC zNext_TemplateSelect0[] =
5140 #define NEXT_TEMPLATE_TEST_CT 1
5141 static tTestDesc aNext_TemplateTests[] = {
5142 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
5145 * Fix Command Arguments for Next_Template
5147 static const char* apzNext_TemplatePatch[] = {
5150 "\\(([^)]*)[ \t]template\\)",
5153 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5155 * Description of Next_Volitile fix
5157 tSCC zNext_VolitileName[] =
5161 * File name selection pattern
5163 tSCC zNext_VolitileList[] =
5166 * Machine/OS name selection pattern
5168 #define apzNext_VolitileMachs (const char**)NULL
5171 * content selection pattern - do fix if pattern found
5173 tSCC zNext_VolitileSelect0[] =
5174 "^extern[ \t]+volatile[ \t]+void[ \t]";
5176 #define NEXT_VOLITILE_TEST_CT 1
5177 static tTestDesc aNext_VolitileTests[] = {
5178 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
5181 * Fix Command Arguments for Next_Volitile
5183 static const char* apzNext_VolitilePatch[] = {
5186 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5189 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5191 * Description of Next_Wait_Union fix
5193 tSCC zNext_Wait_UnionName[] =
5197 * File name selection pattern
5199 tSCC zNext_Wait_UnionList[] =
5202 * Machine/OS name selection pattern
5204 #define apzNext_Wait_UnionMachs (const char**)NULL
5207 * content selection pattern - do fix if pattern found
5209 tSCC zNext_Wait_UnionSelect0[] =
5210 "wait\\(union wait";
5212 #define NEXT_WAIT_UNION_TEST_CT 1
5213 static tTestDesc aNext_Wait_UnionTests[] = {
5214 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5217 * Fix Command Arguments for Next_Wait_Union
5219 static const char* apzNext_Wait_UnionPatch[] = {
5224 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5226 * Description of Nodeent_Syntax fix
5228 tSCC zNodeent_SyntaxName[] =
5232 * File name selection pattern
5234 tSCC zNodeent_SyntaxList[] =
5235 "netdnet/dnetdb.h\0";
5237 * Machine/OS name selection pattern
5239 #define apzNodeent_SyntaxMachs (const char**)NULL
5242 * content selection pattern - do fix if pattern found
5244 tSCC zNodeent_SyntaxSelect0[] =
5245 "char[ \t]*\\*na_addr[ \t]*$";
5247 #define NODEENT_SYNTAX_TEST_CT 1
5248 static tTestDesc aNodeent_SyntaxTests[] = {
5249 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5252 * Fix Command Arguments for Nodeent_Syntax
5254 static const char* apzNodeent_SyntaxPatch[] = {
5259 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5261 * Description of Openbsd_Null_Definition fix
5263 tSCC zOpenbsd_Null_DefinitionName[] =
5264 "openbsd_null_definition";
5267 * File name selection pattern
5269 tSCC zOpenbsd_Null_DefinitionList[] =
5270 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5272 * Machine/OS name selection pattern
5274 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5276 (const char*)NULL };
5279 * content selection pattern - do fix if pattern found
5281 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5284 #define OPENBSD_NULL_DEFINITION_TEST_CT 1
5285 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5286 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5289 * Fix Command Arguments for Openbsd_Null_Definition
5291 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5294 #ifdef __cplusplus\n\
5296 #define NULL\t__null\n\
5297 #else\t /* ! __GNUG__ */\n\
5299 #endif\t /* __GNUG__ */\n\
5300 #else\t /* ! __cplusplus */\n\
5301 #define NULL\t((void *)0)\n\
5302 #endif\t /* __cplusplus */\n\
5303 #endif\t /* !NULL */",
5304 "^#ifndef[ \t]*NULL\n\
5305 ^#ifdef[ \t]*__GNUG__\n\
5306 ^#define[ \t]*NULL[ \t]*__null\n\
5308 ^#define[ \t]*NULL[ \t]*0L\n\
5313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5315 * Description of Obstack_Lvalue_Cast fix
5317 tSCC zObstack_Lvalue_CastName[] =
5318 "obstack_lvalue_cast";
5321 * File name selection pattern
5323 tSCC zObstack_Lvalue_CastList[] =
5326 * Machine/OS name selection pattern
5328 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5331 * content selection pattern - do fix if pattern found
5333 tSCC zObstack_Lvalue_CastSelect0[] =
5334 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5336 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5337 static tTestDesc aObstack_Lvalue_CastTests[] = {
5338 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5341 * Fix Command Arguments for Obstack_Lvalue_Cast
5343 static const char* apzObstack_Lvalue_CastPatch[] = {
5345 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5350 * Description of Openbsd_Va_Start fix
5352 tSCC zOpenbsd_Va_StartName[] =
5356 * File name selection pattern
5358 tSCC zOpenbsd_Va_StartList[] =
5361 * Machine/OS name selection pattern
5363 tSCC* apzOpenbsd_Va_StartMachs[] = {
5365 (const char*)NULL };
5368 * content selection pattern - do fix if pattern found
5370 tSCC zOpenbsd_Va_StartSelect0[] =
5371 "__builtin_stdarg_start";
5373 #define OPENBSD_VA_START_TEST_CT 1
5374 static tTestDesc aOpenbsd_Va_StartTests[] = {
5375 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5378 * Fix Command Arguments for Openbsd_Va_Start
5380 static const char* apzOpenbsd_Va_StartPatch[] = {
5382 "__builtin_va_start",
5385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5387 * Description of Osf_Namespace_A fix
5389 tSCC zOsf_Namespace_AName[] =
5393 * File name selection pattern
5395 tSCC zOsf_Namespace_AList[] =
5396 "reg_types.h\0sys/lc_core.h\0";
5398 * Machine/OS name selection pattern
5400 #define apzOsf_Namespace_AMachs (const char**)NULL
5403 * perform the 'test' shell command - do fix on success
5405 tSCC zOsf_Namespace_ATest0[] =
5407 tSCC zOsf_Namespace_ATest1[] =
5408 " -r sys/lc_core.h";
5409 tSCC zOsf_Namespace_ATest2[] =
5410 " -n \"`grep '} regex_t;' reg_types.h`\"";
5411 tSCC zOsf_Namespace_ATest3[] =
5412 " -z \"`grep __regex_t regex.h`\"";
5414 #define OSF_NAMESPACE_A_TEST_CT 4
5415 static tTestDesc aOsf_Namespace_ATests[] = {
5416 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5417 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5418 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5419 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5422 * Fix Command Arguments for Osf_Namespace_A
5424 static const char* apzOsf_Namespace_APatch[] = {
5427 "reg(ex|off|match)_t",
5430 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5432 * Description of Osf_Namespace_C fix
5434 tSCC zOsf_Namespace_CName[] =
5438 * File name selection pattern
5440 tSCC zOsf_Namespace_CList[] =
5443 * Machine/OS name selection pattern
5445 #define apzOsf_Namespace_CMachs (const char**)NULL
5448 * content selection pattern - do fix if pattern found
5450 tSCC zOsf_Namespace_CSelect0[] =
5451 "#include <reg_types.h>.*";
5454 * perform the 'test' shell command - do fix on success
5456 tSCC zOsf_Namespace_CTest0[] =
5458 tSCC zOsf_Namespace_CTest1[] =
5459 " -r sys/lc_core.h";
5460 tSCC zOsf_Namespace_CTest2[] =
5461 " -n \"`grep '} regex_t;' reg_types.h`\"";
5462 tSCC zOsf_Namespace_CTest3[] =
5463 " -z \"`grep __regex_t regex.h`\"";
5465 #define OSF_NAMESPACE_C_TEST_CT 5
5466 static tTestDesc aOsf_Namespace_CTests[] = {
5467 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5468 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5469 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5470 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5471 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5474 * Fix Command Arguments for Osf_Namespace_C
5476 static const char* apzOsf_Namespace_CPatch[] = {
5479 typedef __regex_t\tregex_t;\n\
5480 typedef __regoff_t\tregoff_t;\n\
5481 typedef __regmatch_t\tregmatch_t;",
5484 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5486 * Description of Pthread_Incomplete_Struct_Argument fix
5488 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5489 "pthread_incomplete_struct_argument";
5492 * File name selection pattern
5494 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5497 * Machine/OS name selection pattern
5499 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5502 * content selection pattern - do fix if pattern found
5504 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5505 "struct __jmp_buf_tag";
5507 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5508 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5509 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5512 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5514 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5517 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5520 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5522 * Description of Read_Ret_Type fix
5524 tSCC zRead_Ret_TypeName[] =
5528 * File name selection pattern
5530 tSCC zRead_Ret_TypeList[] =
5533 * Machine/OS name selection pattern
5535 #define apzRead_Ret_TypeMachs (const char**)NULL
5538 * content selection pattern - do fix if pattern found
5540 tSCC zRead_Ret_TypeSelect0[] =
5541 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5543 #define READ_RET_TYPE_TEST_CT 1
5544 static tTestDesc aRead_Ret_TypeTests[] = {
5545 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5548 * Fix Command Arguments for Read_Ret_Type
5550 static const char* apzRead_Ret_TypePatch[] = {
5552 "extern unsigned int fread(), fwrite();\n\
5554 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5557 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5559 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5561 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5562 "rpc_xdr_lvalue_cast_a";
5565 * File name selection pattern
5567 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5570 * Machine/OS name selection pattern
5572 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5575 * content selection pattern - do fix if pattern found
5577 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5578 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5581 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5582 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5583 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5586 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5588 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5590 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5593 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5595 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5597 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5598 "rpc_xdr_lvalue_cast_b";
5601 * File name selection pattern
5603 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5606 * Machine/OS name selection pattern
5608 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5611 * content selection pattern - do fix if pattern found
5613 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5614 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5617 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5618 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5619 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5622 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5624 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5626 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5631 * Description of Rs6000_Double fix
5633 tSCC zRs6000_DoubleName[] =
5637 * File name selection pattern
5639 tSCC zRs6000_DoubleList[] =
5642 * Machine/OS name selection pattern
5644 #define apzRs6000_DoubleMachs (const char**)NULL
5647 * content selection pattern - do fix if pattern found
5649 tSCC zRs6000_DoubleSelect0[] =
5650 "[^a-zA-Z_]class\\(";
5652 #define RS6000_DOUBLE_TEST_CT 1
5653 static tTestDesc aRs6000_DoubleTests[] = {
5654 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5657 * Fix Command Arguments for Rs6000_Double
5659 static const char* apzRs6000_DoublePatch[] = {
5661 "#ifndef __cplusplus\n\
5664 "^.*[^a-zA-Z_]class\\(.*",
5667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5669 * Description of Rs6000_Fchmod fix
5671 tSCC zRs6000_FchmodName[] =
5675 * File name selection pattern
5677 tSCC zRs6000_FchmodList[] =
5680 * Machine/OS name selection pattern
5682 #define apzRs6000_FchmodMachs (const char**)NULL
5685 * content selection pattern - do fix if pattern found
5687 tSCC zRs6000_FchmodSelect0[] =
5688 "fchmod\\(char \\*";
5690 #define RS6000_FCHMOD_TEST_CT 1
5691 static tTestDesc aRs6000_FchmodTests[] = {
5692 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5695 * Fix Command Arguments for Rs6000_Fchmod
5697 static const char* apzRs6000_FchmodPatch[] = {
5702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5704 * Description of Rs6000_Param fix
5706 tSCC zRs6000_ParamName[] =
5710 * File name selection pattern
5712 tSCC zRs6000_ParamList[] =
5713 "stdio.h\0unistd.h\0";
5715 * Machine/OS name selection pattern
5717 #define apzRs6000_ParamMachs (const char**)NULL
5720 * content selection pattern - do fix if pattern found
5722 tSCC zRs6000_ParamSelect0[] =
5723 "rename\\(const char \\*old, const char \\*new\\)";
5725 #define RS6000_PARAM_TEST_CT 1
5726 static tTestDesc aRs6000_ParamTests[] = {
5727 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
5730 * Fix Command Arguments for Rs6000_Param
5732 static const char* apzRs6000_ParamPatch[] = {
5734 "rename(const char *_old, const char *_new)",
5737 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5739 * Description of Sco_Math fix
5741 tSCC zSco_MathName[] =
5745 * File name selection pattern
5747 tSCC zSco_MathList[] =
5748 "math.h\0*/math.h\0";
5750 * Machine/OS name selection pattern
5752 #define apzSco_MathMachs (const char**)NULL
5755 * content selection pattern - do fix if pattern found
5757 tSCC zSco_MathSelect0[] =
5758 "inline double abs";
5761 * content bypass pattern - skip fix if pattern found
5763 tSCC zSco_MathBypass0[] =
5766 #define SCO_MATH_TEST_CT 2
5767 static tTestDesc aSco_MathTests[] = {
5768 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
5769 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
5772 * Fix Command Arguments for Sco_Math
5774 static const char* apzSco_MathPatch[] = { sed_cmd_z,
5775 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5776 #ifndef __GNUC__\n",
5777 "-e", "/.*__builtin_generic/a\\\n\
5779 #define __fp_class(a) \\\\\\\n\
5780 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5781 __fpclassifyl(a), \\\\\\\n\
5782 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5783 __fpclassifyf(a),__fpclassify(a)))\\\n\
5785 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5786 #ifndef __GNUC__\n",
5787 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5788 #endif /* ! __GNUC__ */",
5791 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5793 * Description of Solaris_Math_1 fix
5795 tSCC zSolaris_Math_1Name[] =
5799 * File name selection pattern
5801 tSCC zSolaris_Math_1List[] =
5804 * Machine/OS name selection pattern
5806 #define apzSolaris_Math_1Machs (const char**)NULL
5809 * content selection pattern - do fix if pattern found
5811 tSCC zSolaris_Math_1Select0[] =
5812 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5815 * content bypass pattern - skip fix if pattern found
5817 tSCC zSolaris_Math_1Bypass0[] =
5820 #define SOLARIS_MATH_1_TEST_CT 2
5821 static tTestDesc aSolaris_Math_1Tests[] = {
5822 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5823 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5826 * Fix Command Arguments for Solaris_Math_1
5828 static const char* apzSolaris_Math_1Patch[] = {
5830 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5831 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5836 * Description of Solaris_Math_2 fix
5838 tSCC zSolaris_Math_2Name[] =
5842 * File name selection pattern
5844 tSCC zSolaris_Math_2List[] =
5847 * Machine/OS name selection pattern
5849 #define apzSolaris_Math_2Machs (const char**)NULL
5852 * content selection pattern - do fix if pattern found
5854 tSCC zSolaris_Math_2Select0[] =
5855 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5858 * content bypass pattern - skip fix if pattern found
5860 tSCC zSolaris_Math_2Bypass0[] =
5863 #define SOLARIS_MATH_2_TEST_CT 2
5864 static tTestDesc aSolaris_Math_2Tests[] = {
5865 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5866 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5869 * Fix Command Arguments for Solaris_Math_2
5871 static const char* apzSolaris_Math_2Patch[] = {
5873 "#define\tINFINITY\t(__builtin_inff())",
5874 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5879 * Description of Solaris_Math_3 fix
5881 tSCC zSolaris_Math_3Name[] =
5885 * File name selection pattern
5887 tSCC zSolaris_Math_3List[] =
5890 * Machine/OS name selection pattern
5892 #define apzSolaris_Math_3Machs (const char**)NULL
5895 * content selection pattern - do fix if pattern found
5897 tSCC zSolaris_Math_3Select0[] =
5898 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5901 * content bypass pattern - skip fix if pattern found
5903 tSCC zSolaris_Math_3Bypass0[] =
5906 #define SOLARIS_MATH_3_TEST_CT 2
5907 static tTestDesc aSolaris_Math_3Tests[] = {
5908 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5909 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5912 * Fix Command Arguments for Solaris_Math_3
5914 static const char* apzSolaris_Math_3Patch[] = {
5916 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5917 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5920 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5922 * Description of Solaris_Math_4 fix
5924 tSCC zSolaris_Math_4Name[] =
5928 * File name selection pattern
5930 tSCC zSolaris_Math_4List[] =
5933 * Machine/OS name selection pattern
5935 #define apzSolaris_Math_4Machs (const char**)NULL
5938 * content selection pattern - do fix if pattern found
5940 tSCC zSolaris_Math_4Select0[] =
5941 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5944 * content bypass pattern - skip fix if pattern found
5946 tSCC zSolaris_Math_4Bypass0[] =
5949 #define SOLARIS_MATH_4_TEST_CT 2
5950 static tTestDesc aSolaris_Math_4Tests[] = {
5951 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5952 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5955 * Fix Command Arguments for Solaris_Math_4
5957 static const char* apzSolaris_Math_4Patch[] = {
5959 "#define\tfpclassify(x) \\\n\
5960 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
5961 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5966 * Description of Solaris_Math_8 fix
5968 tSCC zSolaris_Math_8Name[] =
5972 * File name selection pattern
5974 tSCC zSolaris_Math_8List[] =
5977 * Machine/OS name selection pattern
5979 #define apzSolaris_Math_8Machs (const char**)NULL
5982 * content selection pattern - do fix if pattern found
5984 tSCC zSolaris_Math_8Select0[] =
5985 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5988 * content bypass pattern - skip fix if pattern found
5990 tSCC zSolaris_Math_8Bypass0[] =
5993 #define SOLARIS_MATH_8_TEST_CT 2
5994 static tTestDesc aSolaris_Math_8Tests[] = {
5995 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5996 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5999 * Fix Command Arguments for Solaris_Math_8
6001 static const char* apzSolaris_Math_8Patch[] = {
6003 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6004 \t\t\t ? __builtin_signbitf(x) \\\n\
6005 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
6006 \t\t\t ? __builtin_signbitl(x) \\\n\
6007 \t\t\t : __builtin_signbit(x))",
6008 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6013 * Description of Solaris_Math_9 fix
6015 tSCC zSolaris_Math_9Name[] =
6019 * File name selection pattern
6021 tSCC zSolaris_Math_9List[] =
6024 * Machine/OS name selection pattern
6026 #define apzSolaris_Math_9Machs (const char**)NULL
6029 * content selection pattern - do fix if pattern found
6031 tSCC zSolaris_Math_9Select0[] =
6032 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6035 * content bypass pattern - skip fix if pattern found
6037 tSCC zSolaris_Math_9Bypass0[] =
6040 #define SOLARIS_MATH_9_TEST_CT 2
6041 static tTestDesc aSolaris_Math_9Tests[] = {
6042 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
6043 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
6046 * Fix Command Arguments for Solaris_Math_9
6048 static const char* apzSolaris_Math_9Patch[] = {
6050 "#define\t%1(x, y)%2__builtin_%1(x, y)",
6051 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6056 * Description of Solaris_Math_10 fix
6058 tSCC zSolaris_Math_10Name[] =
6062 * File name selection pattern
6064 tSCC zSolaris_Math_10List[] =
6067 * Machine/OS name selection pattern
6069 #define apzSolaris_Math_10Machs (const char**)NULL
6072 * content selection pattern - do fix if pattern found
6074 tSCC zSolaris_Math_10Select0[] =
6075 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6077 #define SOLARIS_MATH_10_TEST_CT 1
6078 static tTestDesc aSolaris_Math_10Tests[] = {
6079 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
6082 * Fix Command Arguments for Solaris_Math_10
6084 static const char* apzSolaris_Math_10Patch[] = {
6086 "#define\tisinf(x) __builtin_isinf(x)",
6087 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6088 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6089 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6090 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6095 * Description of Solaris_Mutex_Init_2 fix
6097 tSCC zSolaris_Mutex_Init_2Name[] =
6098 "solaris_mutex_init_2";
6101 * File name selection pattern
6103 tSCC zSolaris_Mutex_Init_2List[] =
6106 * Machine/OS name selection pattern
6108 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6109 "*-*-solaris2.[0-9]",
6110 "*-*-solaris2.[0-9][!0-9]*",
6111 (const char*)NULL };
6114 * content selection pattern - do fix if pattern found
6116 tSCC zSolaris_Mutex_Init_2Select0[] =
6117 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6119 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
6120 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6121 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6124 * Fix Command Arguments for Solaris_Mutex_Init_2
6126 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6128 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6133 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6134 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6139 * Description of Solaris_Rwlock_Init_1 fix
6141 tSCC zSolaris_Rwlock_Init_1Name[] =
6142 "solaris_rwlock_init_1";
6145 * File name selection pattern
6147 tSCC zSolaris_Rwlock_Init_1List[] =
6150 * Machine/OS name selection pattern
6152 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6154 (const char*)NULL };
6157 * content selection pattern - do fix if pattern found
6159 tSCC zSolaris_Rwlock_Init_1Select0[] =
6160 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6162 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
6163 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6164 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6167 * Fix Command Arguments for Solaris_Rwlock_Init_1
6169 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6171 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6174 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6176 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6181 * Description of Solaris_Once_Init_1 fix
6183 tSCC zSolaris_Once_Init_1Name[] =
6184 "solaris_once_init_1";
6187 * File name selection pattern
6189 tSCC zSolaris_Once_Init_1List[] =
6192 * Machine/OS name selection pattern
6194 tSCC* apzSolaris_Once_Init_1Machs[] = {
6196 (const char*)NULL };
6199 * content selection pattern - do fix if pattern found
6201 tSCC zSolaris_Once_Init_1Select0[] =
6202 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6204 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6205 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6206 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6209 * Fix Command Arguments for Solaris_Once_Init_1
6211 static const char* apzSolaris_Once_Init_1Patch[] = {
6214 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6219 * Description of Solaris_Once_Init_2 fix
6221 tSCC zSolaris_Once_Init_2Name[] =
6222 "solaris_once_init_2";
6225 * File name selection pattern
6227 tSCC zSolaris_Once_Init_2List[] =
6230 * Machine/OS name selection pattern
6232 tSCC* apzSolaris_Once_Init_2Machs[] = {
6233 "*-*-solaris2.[0-9]",
6234 "*-*-solaris2.[0-9][!0-9]*",
6235 (const char*)NULL };
6238 * content selection pattern - do fix if pattern found
6240 tSCC zSolaris_Once_Init_2Select0[] =
6241 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6243 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
6244 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6245 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6248 * Fix Command Arguments for Solaris_Once_Init_2
6250 static const char* apzSolaris_Once_Init_2Patch[] = {
6252 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6255 %1{0}, {0}, {0}, {%3}%4\n\
6257 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6260 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6262 * Description of Solaris_Int_Const fix
6264 tSCC zSolaris_Int_ConstName[] =
6265 "solaris_int_const";
6268 * File name selection pattern
6270 tSCC zSolaris_Int_ConstList[] =
6271 "sys/int_const.h\0";
6273 * Machine/OS name selection pattern
6275 #define apzSolaris_Int_ConstMachs (const char**)NULL
6278 * content selection pattern - do fix if pattern found
6280 tSCC zSolaris_Int_ConstSelect0[] =
6281 "@\\(#\\)int_const.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6283 #define SOLARIS_INT_CONST_TEST_CT 1
6284 static tTestDesc aSolaris_Int_ConstTests[] = {
6285 { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6288 * Fix Command Arguments for Solaris_Int_Const
6290 static const char* apzSolaris_Int_ConstPatch[] = {
6292 "#define\tUINT8_C(c)\t(c)\n\
6294 #define\tUINT16_C(c)\t(c)",
6295 "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6297 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*",
6300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6302 * Description of Solaris_Int_Limits_1 fix
6304 tSCC zSolaris_Int_Limits_1Name[] =
6305 "solaris_int_limits_1";
6308 * File name selection pattern
6310 tSCC zSolaris_Int_Limits_1List[] =
6311 "sys/int_limits.h\0";
6313 * Machine/OS name selection pattern
6315 #define apzSolaris_Int_Limits_1Machs (const char**)NULL
6318 * content selection pattern - do fix if pattern found
6320 tSCC zSolaris_Int_Limits_1Select0[] =
6321 "@\\(#\\)int_limits.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6323 #define SOLARIS_INT_LIMITS_1_TEST_CT 1
6324 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6325 { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6328 * Fix Command Arguments for Solaris_Int_Limits_1
6330 static const char* apzSolaris_Int_Limits_1Patch[] = {
6332 "#define\tUINT8_MAX\t(255)\n\
6333 #define\tUINT16_MAX\t(65535)",
6334 "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6335 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)",
6338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6340 * Description of Solaris_Int_Limits_2 fix
6342 tSCC zSolaris_Int_Limits_2Name[] =
6343 "solaris_int_limits_2";
6346 * File name selection pattern
6348 tSCC zSolaris_Int_Limits_2List[] =
6349 "sys/int_limits.h\0";
6351 * Machine/OS name selection pattern
6353 #define apzSolaris_Int_Limits_2Machs (const char**)NULL
6356 * content selection pattern - do fix if pattern found
6358 tSCC zSolaris_Int_Limits_2Select0[] =
6359 "@\\(#\\)int_limits.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6361 #define SOLARIS_INT_LIMITS_2_TEST_CT 1
6362 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6363 { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6366 * Fix Command Arguments for Solaris_Int_Limits_2
6368 static const char* apzSolaris_Int_Limits_2Patch[] = {
6370 "#define\t%1_FAST16_%2 %132_%2",
6371 "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*",
6374 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6376 * Description of Solaris_Stdio_Tag fix
6378 tSCC zSolaris_Stdio_TagName[] =
6379 "solaris_stdio_tag";
6382 * File name selection pattern
6384 tSCC zSolaris_Stdio_TagList[] =
6387 * Machine/OS name selection pattern
6389 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6392 * content selection pattern - do fix if pattern found
6394 tSCC zSolaris_Stdio_TagSelect0[] =
6395 "__cplusplus < 54321L";
6398 * content bypass pattern - skip fix if pattern found
6400 tSCC zSolaris_Stdio_TagBypass0[] =
6403 #define SOLARIS_STDIO_TAG_TEST_CT 2
6404 static tTestDesc aSolaris_Stdio_TagTests[] = {
6405 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6406 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6409 * Fix Command Arguments for Solaris_Stdio_Tag
6411 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
6412 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6415 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6417 * Description of Statsswtch fix
6419 tSCC zStatsswtchName[] =
6423 * File name selection pattern
6425 tSCC zStatsswtchList[] =
6428 * Machine/OS name selection pattern
6430 #define apzStatsswtchMachs (const char**)NULL
6433 * content selection pattern - do fix if pattern found
6435 tSCC zStatsswtchSelect0[] =
6438 #define STATSSWTCH_TEST_CT 1
6439 static tTestDesc aStatsswtchTests[] = {
6440 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
6443 * Fix Command Arguments for Statsswtch
6445 static const char* apzStatsswtchPatch[] = {
6450 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6452 * Description of Stdio_Stdarg_H fix
6454 tSCC zStdio_Stdarg_HName[] =
6458 * File name selection pattern
6460 tSCC zStdio_Stdarg_HList[] =
6463 * Machine/OS name selection pattern
6465 tSCC* apzStdio_Stdarg_HMachs[] = {
6466 "*-*-solaris2.1[0-9]*",
6467 (const char*)NULL };
6470 * content bypass pattern - skip fix if pattern found
6472 tSCC zStdio_Stdarg_HBypass0[] =
6473 "include.*(stdarg.h|machine/ansi.h)";
6475 #define STDIO_STDARG_H_TEST_CT 1
6476 static tTestDesc aStdio_Stdarg_HTests[] = {
6477 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6480 * Fix Command Arguments for Stdio_Stdarg_H
6482 static const char* apzStdio_Stdarg_HPatch[] = {
6484 "#define __need___va_list\n\
6485 #include <stdarg.h>\n",
6488 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6490 * Description of Stdio_Va_List fix
6492 tSCC zStdio_Va_ListName[] =
6496 * File name selection pattern
6498 tSCC zStdio_Va_ListList[] =
6499 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
6501 * Machine/OS name selection pattern
6503 tSCC* apzStdio_Va_ListMachs[] = {
6504 "*-*-solaris2.1[0-9]*",
6505 (const char*)NULL };
6508 * content bypass pattern - skip fix if pattern found
6510 tSCC zStdio_Va_ListBypass0[] =
6511 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6513 #define STDIO_VA_LIST_TEST_CT 1
6514 static tTestDesc aStdio_Va_ListTests[] = {
6515 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6518 * Fix Command Arguments for Stdio_Va_List
6520 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
6521 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6522 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6523 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6524 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6525 s@ va_list@ __not_va_list__@\n\
6526 s@\\*va_list@*__not_va_list__@\n\
6527 s@ __va_list)@ __gnuc_va_list)@\n\
6528 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6529 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6530 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6531 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6532 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6533 s@VA_LIST@DUMMY_VA_LIST@\n\
6534 s@_Va_LIST@_VA_LIST@",
6537 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6539 * Description of Stdio_Va_List_Clients fix
6541 tSCC zStdio_Va_List_ClientsName[] =
6542 "stdio_va_list_clients";
6545 * File name selection pattern
6547 tSCC zStdio_Va_List_ClientsList[] =
6548 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
6550 * Machine/OS name selection pattern
6552 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6555 * content bypass pattern - skip fix if pattern found
6557 tSCC zStdio_Va_List_ClientsBypass0[] =
6558 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6559 tSCC zStdio_Va_List_ClientsBypass1[] =
6560 "include <stdarg\\.h>|#ifdef va_start";
6562 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
6563 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6564 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6565 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6568 * Fix Command Arguments for Stdio_Va_List_Clients
6570 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
6571 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6572 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6573 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6574 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6575 s@ va_list@ __not_va_list__@\n\
6576 s@\\*va_list@*__not_va_list__@\n\
6577 s@ __va_list)@ __gnuc_va_list)@\n\
6578 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6579 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6580 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6581 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6582 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6583 s@VA_LIST@DUMMY_VA_LIST@\n\
6584 s@_Va_LIST@_VA_LIST@",
6587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6589 * Description of Strict_Ansi_Not fix
6591 tSCC zStrict_Ansi_NotName[] =
6595 * File name selection pattern
6597 #define zStrict_Ansi_NotList (char*)NULL
6599 * Machine/OS name selection pattern
6601 #define apzStrict_Ansi_NotMachs (const char**)NULL
6604 * content selection pattern - do fix if pattern found
6606 tSCC zStrict_Ansi_NotSelect0[] =
6607 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6610 * content bypass pattern - skip fix if pattern found
6612 tSCC zStrict_Ansi_NotBypass0[] =
6613 "GNU and MIPS C compilers define __STDC__ differently";
6614 tSCC zStrict_Ansi_NotBypass1[] =
6615 "__SCO_VERSION__.*__STDC__ != 1";
6618 * perform the C function call test
6620 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6622 #define STRICT_ANSI_NOT_TEST_CT 4
6623 static tTestDesc aStrict_Ansi_NotTests[] = {
6624 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
6625 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6626 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6627 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6630 * Fix Command Arguments for Strict_Ansi_Not
6632 static const char* apzStrict_Ansi_NotPatch[] = {
6634 "%1 !defined(__STRICT_ANSI__)",
6637 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6639 * Description of Strict_Ansi_Not_Ctd fix
6641 tSCC zStrict_Ansi_Not_CtdName[] =
6642 "strict_ansi_not_ctd";
6645 * File name selection pattern
6647 tSCC zStrict_Ansi_Not_CtdList[] =
6648 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6650 * Machine/OS name selection pattern
6652 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6655 * content selection pattern - do fix if pattern found
6657 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6658 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6661 * perform the C function call test
6663 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6665 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
6666 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6667 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6668 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6671 * Fix Command Arguments for Strict_Ansi_Not_Ctd
6673 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6675 "%1 !defined(__STRICT_ANSI__)",
6678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6680 * Description of Strict_Ansi_Only fix
6682 tSCC zStrict_Ansi_OnlyName[] =
6686 * File name selection pattern
6688 #define zStrict_Ansi_OnlyList (char*)NULL
6690 * Machine/OS name selection pattern
6692 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6695 * content selection pattern - do fix if pattern found
6697 tSCC zStrict_Ansi_OnlySelect0[] =
6698 "^([ \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)";
6701 * perform the C function call test
6703 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6705 #define STRICT_ANSI_ONLY_TEST_CT 2
6706 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6707 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6708 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6711 * Fix Command Arguments for Strict_Ansi_Only
6713 static const char* apzStrict_Ansi_OnlyPatch[] = {
6715 "%1 defined(__STRICT_ANSI__)",
6718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6720 * Description of Struct_File fix
6722 tSCC zStruct_FileName[] =
6726 * File name selection pattern
6728 tSCC zStruct_FileList[] =
6731 * Machine/OS name selection pattern
6733 #define apzStruct_FileMachs (const char**)NULL
6736 * content selection pattern - do fix if pattern found
6738 tSCC zStruct_FileSelect0[] =
6739 "^.*xdrstdio_create.*struct __file_s";
6741 #define STRUCT_FILE_TEST_CT 1
6742 static tTestDesc aStruct_FileTests[] = {
6743 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6746 * Fix Command Arguments for Struct_File
6748 static const char* apzStruct_FilePatch[] = {
6750 "struct __file_s;\n\
6754 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6756 * Description of Struct_Sockaddr fix
6758 tSCC zStruct_SockaddrName[] =
6762 * File name selection pattern
6764 tSCC zStruct_SockaddrList[] =
6767 * Machine/OS name selection pattern
6769 #define apzStruct_SockaddrMachs (const char**)NULL
6772 * content selection pattern - do fix if pattern found
6774 tSCC zStruct_SockaddrSelect0[] =
6775 "^.*authdes_create.*struct sockaddr[^_]";
6778 * content bypass pattern - skip fix if pattern found
6780 tSCC zStruct_SockaddrBypass0[] =
6782 tSCC zStruct_SockaddrBypass1[] =
6783 "struct sockaddr;\n";
6785 #define STRUCT_SOCKADDR_TEST_CT 3
6786 static tTestDesc aStruct_SockaddrTests[] = {
6787 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6788 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6789 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6792 * Fix Command Arguments for Struct_Sockaddr
6794 static const char* apzStruct_SockaddrPatch[] = {
6796 "struct sockaddr;\n\
6800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6802 * Description of Sun_Auth_Proto fix
6804 tSCC zSun_Auth_ProtoName[] =
6808 * File name selection pattern
6810 tSCC zSun_Auth_ProtoList[] =
6811 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6813 * Machine/OS name selection pattern
6815 #define apzSun_Auth_ProtoMachs (const char**)NULL
6818 * content selection pattern - do fix if pattern found
6820 tSCC zSun_Auth_ProtoSelect0[] =
6821 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6824 * content bypass pattern - skip fix if pattern found
6826 tSCC zSun_Auth_ProtoBypass0[] =
6829 #define SUN_AUTH_PROTO_TEST_CT 2
6830 static tTestDesc aSun_Auth_ProtoTests[] = {
6831 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6832 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6835 * Fix Command Arguments for Sun_Auth_Proto
6837 static const char* apzSun_Auth_ProtoPatch[] = {
6839 "#ifdef __cplusplus\n\
6844 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6849 * Description of Sun_Bogus_Ifdef fix
6851 tSCC zSun_Bogus_IfdefName[] =
6855 * File name selection pattern
6857 tSCC zSun_Bogus_IfdefList[] =
6858 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
6860 * Machine/OS name selection pattern
6862 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6865 * content selection pattern - do fix if pattern found
6867 tSCC zSun_Bogus_IfdefSelect0[] =
6868 "#ifdef(.*\\|\\|.*)";
6870 #define SUN_BOGUS_IFDEF_TEST_CT 1
6871 static tTestDesc aSun_Bogus_IfdefTests[] = {
6872 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6875 * Fix Command Arguments for Sun_Bogus_Ifdef
6877 static const char* apzSun_Bogus_IfdefPatch[] = {
6882 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6884 * Description of Sun_Catmacro fix
6886 tSCC zSun_CatmacroName[] =
6890 * File name selection pattern
6892 tSCC zSun_CatmacroList[] =
6893 "pixrect/memvar.h\0";
6895 * Machine/OS name selection pattern
6897 #define apzSun_CatmacroMachs (const char**)NULL
6900 * content selection pattern - do fix if pattern found
6902 tSCC zSun_CatmacroSelect0[] =
6903 "^#define[ \t]+CAT\\(a,b\\).*";
6905 #define SUN_CATMACRO_TEST_CT 1
6906 static tTestDesc aSun_CatmacroTests[] = {
6907 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
6910 * Fix Command Arguments for Sun_Catmacro
6912 static const char* apzSun_CatmacroPatch[] = {
6915 # define CAT(a,b) a##b\n\
6921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6923 * Description of Sun_Malloc fix
6925 tSCC zSun_MallocName[] =
6929 * File name selection pattern
6931 tSCC zSun_MallocList[] =
6934 * Machine/OS name selection pattern
6936 #define apzSun_MallocMachs (const char**)NULL
6939 * content bypass pattern - skip fix if pattern found
6941 tSCC zSun_MallocBypass0[] =
6942 "_CLASSIC_ANSI_TYPES";
6944 #define SUN_MALLOC_TEST_CT 1
6945 static tTestDesc aSun_MallocTests[] = {
6946 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
6949 * Fix Command Arguments for Sun_Malloc
6951 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
6952 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6953 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6954 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6955 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6956 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6959 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6961 * Description of Sun_Rusers_Semi fix
6963 tSCC zSun_Rusers_SemiName[] =
6967 * File name selection pattern
6969 tSCC zSun_Rusers_SemiList[] =
6970 "rpcsvc/rusers.h\0";
6972 * Machine/OS name selection pattern
6974 #define apzSun_Rusers_SemiMachs (const char**)NULL
6977 * content selection pattern - do fix if pattern found
6979 tSCC zSun_Rusers_SemiSelect0[] =
6982 #define SUN_RUSERS_SEMI_TEST_CT 1
6983 static tTestDesc aSun_Rusers_SemiTests[] = {
6984 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6987 * Fix Command Arguments for Sun_Rusers_Semi
6989 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
6990 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6995 * Description of Sun_Signal fix
6997 tSCC zSun_SignalName[] =
7001 * File name selection pattern
7003 tSCC zSun_SignalList[] =
7004 "sys/signal.h\0signal.h\0";
7006 * Machine/OS name selection pattern
7008 #define apzSun_SignalMachs (const char**)NULL
7011 * content selection pattern - do fix if pattern found
7013 tSCC zSun_SignalSelect0[] =
7014 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7016 #define SUN_SIGNAL_TEST_CT 1
7017 static tTestDesc aSun_SignalTests[] = {
7018 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
7021 * Fix Command Arguments for Sun_Signal
7023 static const char* apzSun_SignalPatch[] = {
7025 "#ifdef __cplusplus\n\
7026 void\t(*signal(...))(...);\n\
7032 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7034 * Description of Sunos_Strlen fix
7036 tSCC zSunos_StrlenName[] =
7040 * File name selection pattern
7042 tSCC zSunos_StrlenList[] =
7045 * Machine/OS name selection pattern
7047 #define apzSunos_StrlenMachs (const char**)NULL
7050 * content selection pattern - do fix if pattern found
7052 tSCC zSunos_StrlenSelect0[] =
7053 "int[ \t]*strlen\\(\\);(.*)";
7055 #define SUNOS_STRLEN_TEST_CT 1
7056 static tTestDesc aSunos_StrlenTests[] = {
7057 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
7060 * Fix Command Arguments for Sunos_Strlen
7062 static const char* apzSunos_StrlenPatch[] = {
7064 "__SIZE_TYPE__ strlen();%1",
7067 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7069 * Description of Svr4_Disable_Opt fix
7071 tSCC zSvr4_Disable_OptName[] =
7075 * File name selection pattern
7077 tSCC zSvr4_Disable_OptList[] =
7080 * Machine/OS name selection pattern
7082 #define apzSvr4_Disable_OptMachs (const char**)NULL
7085 * content selection pattern - do fix if pattern found
7087 tSCC zSvr4_Disable_OptSelect0[] =
7088 "#define.*__std_hdr_";
7090 #define SVR4_DISABLE_OPT_TEST_CT 1
7091 static tTestDesc aSvr4_Disable_OptTests[] = {
7092 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7095 * Fix Command Arguments for Svr4_Disable_Opt
7097 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7098 "-e", "/#define.*__std_hdr_/d",
7101 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7103 * Description of Svr4_Getcwd fix
7105 tSCC zSvr4_GetcwdName[] =
7109 * File name selection pattern
7111 tSCC zSvr4_GetcwdList[] =
7112 "stdlib.h\0unistd.h\0prototypes.h\0";
7114 * Machine/OS name selection pattern
7116 #define apzSvr4_GetcwdMachs (const char**)NULL
7119 * content selection pattern - do fix if pattern found
7121 tSCC zSvr4_GetcwdSelect0[] =
7122 "getcwd\\(char \\*, int\\)";
7124 #define SVR4_GETCWD_TEST_CT 1
7125 static tTestDesc aSvr4_GetcwdTests[] = {
7126 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7129 * Fix Command Arguments for Svr4_Getcwd
7131 static const char* apzSvr4_GetcwdPatch[] = {
7133 "getcwd(char *, size_t)",
7136 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7138 * Description of Svr4_Profil fix
7140 tSCC zSvr4_ProfilName[] =
7144 * File name selection pattern
7146 tSCC zSvr4_ProfilList[] =
7147 "stdlib.h\0unistd.h\0";
7149 * Machine/OS name selection pattern
7151 #define apzSvr4_ProfilMachs (const char**)NULL
7154 * content selection pattern - do fix if pattern found
7156 tSCC zSvr4_ProfilSelect0[] =
7157 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7160 * content bypass pattern - skip fix if pattern found
7162 tSCC zSvr4_ProfilBypass0[] =
7165 #define SVR4_PROFIL_TEST_CT 2
7166 static tTestDesc aSvr4_ProfilTests[] = {
7167 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
7168 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7171 * Fix Command Arguments for Svr4_Profil
7173 static const char* apzSvr4_ProfilPatch[] = {
7175 "profil(unsigned short *, size_t, int, unsigned int)",
7178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7180 * Description of Svr4_Sighandler_Type fix
7182 tSCC zSvr4_Sighandler_TypeName[] =
7183 "svr4_sighandler_type";
7186 * File name selection pattern
7188 tSCC zSvr4_Sighandler_TypeList[] =
7191 * Machine/OS name selection pattern
7193 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7196 * content selection pattern - do fix if pattern found
7198 tSCC zSvr4_Sighandler_TypeSelect0[] =
7199 "void *\\(\\*\\)\\(\\)";
7201 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7202 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7203 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7206 * Fix Command Arguments for Svr4_Sighandler_Type
7208 static const char* apzSvr4_Sighandler_TypePatch[] = {
7213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7215 * Description of Svr4_Undeclared_Getrnge fix
7217 tSCC zSvr4_Undeclared_GetrngeName[] =
7218 "svr4_undeclared_getrnge";
7221 * File name selection pattern
7223 tSCC zSvr4_Undeclared_GetrngeList[] =
7226 * Machine/OS name selection pattern
7228 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7231 * content selection pattern - do fix if pattern found
7233 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7237 * content bypass pattern - skip fix if pattern found
7239 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7240 "static void getrnge";
7242 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
7243 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7244 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7245 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7248 * Fix Command Arguments for Svr4_Undeclared_Getrnge
7250 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7253 static int getrnge ();",
7254 "^static int[ \t]+size;",
7257 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7259 * Description of Sysv68_String fix
7261 tSCC zSysv68_StringName[] =
7265 * File name selection pattern
7267 tSCC zSysv68_StringList[] =
7268 "testing.h\0string.h\0";
7270 * Machine/OS name selection pattern
7272 #define apzSysv68_StringMachs (const char**)NULL
7275 * content bypass pattern - skip fix if pattern found
7277 tSCC zSysv68_StringBypass0[] =
7278 "_CLASSIC_ANSI_TYPES";
7280 #define SYSV68_STRING_TEST_CT 1
7281 static tTestDesc aSysv68_StringTests[] = {
7282 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
7285 * Fix Command Arguments for Sysv68_String
7287 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
7288 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7289 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7290 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7291 "-e", "/^extern char$/N",
7292 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7293 "-e", "/^extern int$/N",
7294 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7295 "-e", "/^\tstrncmp(),$/N",
7296 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7297 extern unsigned int\\\n\
7301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7303 * Description of Sysz_Stdlib_For_Sun fix
7305 tSCC zSysz_Stdlib_For_SunName[] =
7306 "sysz_stdlib_for_sun";
7309 * File name selection pattern
7311 tSCC zSysz_Stdlib_For_SunList[] =
7314 * Machine/OS name selection pattern
7316 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7319 * content selection pattern - do fix if pattern found
7321 tSCC zSysz_Stdlib_For_SunSelect0[] =
7322 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7325 * content bypass pattern - skip fix if pattern found
7327 tSCC zSysz_Stdlib_For_SunBypass0[] =
7328 "_CLASSIC_ANSI_TYPES";
7330 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
7331 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7332 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7333 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7336 * Fix Command Arguments for Sysz_Stdlib_For_Sun
7338 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7345 * Description of Thread_Keyword fix
7347 tSCC zThread_KeywordName[] =
7351 * File name selection pattern
7353 tSCC zThread_KeywordList[] =
7354 "pthread.h\0bits/sigthread.h\0";
7356 * Machine/OS name selection pattern
7358 #define apzThread_KeywordMachs (const char**)NULL
7361 * content selection pattern - do fix if pattern found
7363 tSCC zThread_KeywordSelect0[] =
7364 "([* ])__thread([,)])";
7366 #define THREAD_KEYWORD_TEST_CT 1
7367 static tTestDesc aThread_KeywordTests[] = {
7368 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
7371 * Fix Command Arguments for Thread_Keyword
7373 static const char* apzThread_KeywordPatch[] = {
7378 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7380 * Description of Tinfo_Cplusplus fix
7382 tSCC zTinfo_CplusplusName[] =
7386 * File name selection pattern
7388 tSCC zTinfo_CplusplusList[] =
7391 * Machine/OS name selection pattern
7393 #define apzTinfo_CplusplusMachs (const char**)NULL
7396 * content selection pattern - do fix if pattern found
7398 tSCC zTinfo_CplusplusSelect0[] =
7401 #define TINFO_CPLUSPLUS_TEST_CT 1
7402 static tTestDesc aTinfo_CplusplusTests[] = {
7403 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7406 * Fix Command Arguments for Tinfo_Cplusplus
7408 static const char* apzTinfo_CplusplusPatch[] = {
7413 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7415 * Description of Ultrix_Const fix
7417 tSCC zUltrix_ConstName[] =
7421 * File name selection pattern
7423 tSCC zUltrix_ConstList[] =
7426 * Machine/OS name selection pattern
7428 #define apzUltrix_ConstMachs (const char**)NULL
7431 * content selection pattern - do fix if pattern found
7433 tSCC zUltrix_ConstSelect0[] =
7434 "perror\\( char \\*";
7436 #define ULTRIX_CONST_TEST_CT 1
7437 static tTestDesc aUltrix_ConstTests[] = {
7438 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
7441 * Fix Command Arguments for Ultrix_Const
7443 static const char* apzUltrix_ConstPatch[] = {
7446 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7449 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7451 * Description of Ultrix_Const2 fix
7453 tSCC zUltrix_Const2Name[] =
7457 * File name selection pattern
7459 tSCC zUltrix_Const2List[] =
7462 * Machine/OS name selection pattern
7464 #define apzUltrix_Const2Machs (const char**)NULL
7467 * content selection pattern - do fix if pattern found
7469 tSCC zUltrix_Const2Select0[] =
7470 "\\*fopen\\( char \\*";
7472 #define ULTRIX_CONST2_TEST_CT 1
7473 static tTestDesc aUltrix_Const2Tests[] = {
7474 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
7477 * Fix Command Arguments for Ultrix_Const2
7479 static const char* apzUltrix_Const2Patch[] = {
7481 "%1( const char *%3, const char *",
7482 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7485 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7487 * Description of Va_I960_Macro fix
7489 tSCC zVa_I960_MacroName[] =
7493 * File name selection pattern
7495 tSCC zVa_I960_MacroList[] =
7496 "arch/i960/archI960.h\0";
7498 * Machine/OS name selection pattern
7500 #define apzVa_I960_MacroMachs (const char**)NULL
7503 * content selection pattern - do fix if pattern found
7505 tSCC zVa_I960_MacroSelect0[] =
7506 "__(vsiz|vali|vpad|alignof__)";
7508 #define VA_I960_MACRO_TEST_CT 1
7509 static tTestDesc aVa_I960_MacroTests[] = {
7510 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
7513 * Fix Command Arguments for Va_I960_Macro
7515 static const char* apzVa_I960_MacroPatch[] = {
7520 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7522 * Description of Void_Null fix
7524 tSCC zVoid_NullName[] =
7528 * File name selection pattern
7530 tSCC zVoid_NullList[] =
7531 "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";
7533 * Machine/OS name selection pattern
7535 #define apzVoid_NullMachs (const char**)NULL
7538 * content selection pattern - do fix if pattern found
7540 tSCC zVoid_NullSelect0[] =
7541 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
7544 * content bypass pattern - skip fix if pattern found
7546 tSCC zVoid_NullBypass0[] =
7549 #define VOID_NULL_TEST_CT 2
7550 static tTestDesc aVoid_NullTests[] = {
7551 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
7552 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
7555 * Fix Command Arguments for Void_Null
7557 static const char* apzVoid_NullPatch[] = {
7562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7564 * Description of Vxworks_Gcc_Problem fix
7566 tSCC zVxworks_Gcc_ProblemName[] =
7567 "vxworks_gcc_problem";
7570 * File name selection pattern
7572 tSCC zVxworks_Gcc_ProblemList[] =
7573 "types/vxTypesBase.h\0";
7575 * Machine/OS name selection pattern
7577 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
7580 * content selection pattern - do fix if pattern found
7582 tSCC zVxworks_Gcc_ProblemSelect0[] =
7583 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
7585 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
7586 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
7587 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
7590 * Fix Command Arguments for Vxworks_Gcc_Problem
7592 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
7593 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
7594 "-e", "/[ \t]size_t/i\\\n\
7595 #ifndef _GCC_SIZE_T\\\n\
7596 #define _GCC_SIZE_T\n",
7597 "-e", "/[ \t]size_t/a\\\n\
7599 "-e", "/[ \t]ptrdiff_t/i\\\n\
7600 #ifndef _GCC_PTRDIFF_T\\\n\
7601 #define _GCC_PTRDIFF_T\n",
7602 "-e", "/[ \t]ptrdiff_t/a\\\n\
7604 "-e", "/[ \t]wchar_t/i\\\n\
7605 #ifndef _GCC_WCHAR_T\\\n\
7606 #define _GCC_WCHAR_T\n",
7607 "-e", "/[ \t]wchar_t/a\\\n\
7611 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7613 * Description of Vxworks_Needs_Vxtypes fix
7615 tSCC zVxworks_Needs_VxtypesName[] =
7616 "vxworks_needs_vxtypes";
7619 * File name selection pattern
7621 tSCC zVxworks_Needs_VxtypesList[] =
7624 * Machine/OS name selection pattern
7626 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
7629 * content selection pattern - do fix if pattern found
7631 tSCC zVxworks_Needs_VxtypesSelect0[] =
7632 "uint_t([ \t]+_clocks_per_sec)";
7634 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
7635 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
7636 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
7639 * Fix Command Arguments for Vxworks_Needs_Vxtypes
7641 static const char* apzVxworks_Needs_VxtypesPatch[] = {
7646 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7648 * Description of Vxworks_Needs_Vxworks fix
7650 tSCC zVxworks_Needs_VxworksName[] =
7651 "vxworks_needs_vxworks";
7654 * File name selection pattern
7656 tSCC zVxworks_Needs_VxworksList[] =
7659 * Machine/OS name selection pattern
7661 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
7664 * content selection pattern - do fix if pattern found
7666 tSCC zVxworks_Needs_VxworksSelect0[] =
7667 "#[ \t]define[ \t]+__INCstath";
7670 * perform the 'test' shell command - do fix on success
7672 tSCC zVxworks_Needs_VxworksTest0[] =
7673 " -r types/vxTypesOld.h";
7674 tSCC zVxworks_Needs_VxworksTest1[] =
7675 " -n \"`egrep '#include' $file`\"";
7676 tSCC zVxworks_Needs_VxworksTest2[] =
7677 " -n \"`egrep ULONG $file`\"";
7679 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
7680 static tTestDesc aVxworks_Needs_VxworksTests[] = {
7681 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
7682 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
7683 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
7684 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
7687 * Fix Command Arguments for Vxworks_Needs_Vxworks
7689 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
7690 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
7691 #include <types/vxTypesOld.h>\n",
7694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7696 * Description of Vxworks_Time fix
7698 tSCC zVxworks_TimeName[] =
7702 * File name selection pattern
7704 tSCC zVxworks_TimeList[] =
7707 * Machine/OS name selection pattern
7709 #define apzVxworks_TimeMachs (const char**)NULL
7712 * content selection pattern - do fix if pattern found
7714 tSCC zVxworks_TimeSelect0[] =
7715 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
7718 * perform the 'test' shell command - do fix on success
7720 tSCC zVxworks_TimeTest0[] =
7723 #define VXWORKS_TIME_TEST_CT 2
7724 static tTestDesc aVxworks_TimeTests[] = {
7725 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
7726 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
7729 * Fix Command Arguments for Vxworks_Time
7731 static const char* apzVxworks_TimePatch[] = {
7733 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
7734 #ifdef __cplusplus\n\
7735 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
7737 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
7739 #define __gcc_VOIDFUNCPTR_defined\n\
7741 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
7744 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7746 * Description of X11_Class fix
7748 tSCC zX11_ClassName[] =
7752 * File name selection pattern
7754 tSCC zX11_ClassList[] =
7757 * Machine/OS name selection pattern
7759 #define apzX11_ClassMachs (const char**)NULL
7762 * content selection pattern - do fix if pattern found
7764 tSCC zX11_ClassSelect0[] =
7765 "^([ \t]*char \\*)class;(.*)";
7768 * content bypass pattern - skip fix if pattern found
7770 tSCC zX11_ClassBypass0[] =
7773 #define X11_CLASS_TEST_CT 2
7774 static tTestDesc aX11_ClassTests[] = {
7775 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
7776 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
7779 * Fix Command Arguments for X11_Class
7781 static const char* apzX11_ClassPatch[] = {
7783 "#ifdef __cplusplus\n\
7790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7792 * Description of X11_Class_Usage fix
7794 tSCC zX11_Class_UsageName[] =
7798 * File name selection pattern
7800 tSCC zX11_Class_UsageList[] =
7801 "Xm/BaseClassI.h\0";
7803 * Machine/OS name selection pattern
7805 #define apzX11_Class_UsageMachs (const char**)NULL
7808 * content selection pattern - do fix if pattern found
7810 tSCC zX11_Class_UsageSelect0[] =
7814 * content bypass pattern - skip fix if pattern found
7816 tSCC zX11_Class_UsageBypass0[] =
7819 #define X11_CLASS_USAGE_TEST_CT 2
7820 static tTestDesc aX11_Class_UsageTests[] = {
7821 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
7822 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
7825 * Fix Command Arguments for X11_Class_Usage
7827 static const char* apzX11_Class_UsagePatch[] = {
7832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7834 * Description of X11_New fix
7836 tSCC zX11_NewName[] =
7840 * File name selection pattern
7842 tSCC zX11_NewList[] =
7845 * Machine/OS name selection pattern
7847 #define apzX11_NewMachs (const char**)NULL
7850 * content bypass pattern - skip fix if pattern found
7852 tSCC zX11_NewBypass0[] =
7855 #define X11_NEW_TEST_CT 1
7856 static tTestDesc aX11_NewTests[] = {
7857 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
7860 * Fix Command Arguments for X11_New
7862 static const char* apzX11_NewPatch[] = { sed_cmd_z,
7863 "-e", "/Widget\told, new;/i\\\n\
7864 #ifdef __cplusplus\\\n\
7865 \tWidget\told, c_new;\\\n\
7867 "-e", "/Widget\told, new;/a\\\n\
7869 "-e", "s/Widget new,/Widget c_new,/g",
7872 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7874 * Description of X11_Sprintf fix
7876 tSCC zX11_SprintfName[] =
7880 * File name selection pattern
7882 tSCC zX11_SprintfList[] =
7883 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
7885 * Machine/OS name selection pattern
7887 #define apzX11_SprintfMachs (const char**)NULL
7890 * content selection pattern - do fix if pattern found
7892 tSCC zX11_SprintfSelect0[] =
7893 "^extern char \\*\tsprintf\\(\\);$";
7895 #define X11_SPRINTF_TEST_CT 1
7896 static tTestDesc aX11_SprintfTests[] = {
7897 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
7900 * Fix Command Arguments for X11_Sprintf
7902 static const char* apzX11_SprintfPatch[] = {
7904 "#ifndef __STDC__\n\
7906 #endif /* !defined __STDC__ */",
7910 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7914 #define REGEX_COUNT 237
7915 #define MACH_LIST_SIZE_LIMIT 181
7916 #define FIX_COUNT 195
7919 * Enumerate the fixes
7922 AAB_AIX_STDIO_FIXIDX,
7923 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
7924 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
7925 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
7926 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
7927 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
7928 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
7929 AAB_SUN_MEMCPY_FIXIDX,
7931 AIX_SYSMACHINE_FIXIDX,
7932 AIX_SYSWAIT_2_FIXIDX,
7933 AIX_VOLATILE_FIXIDX,
7934 ALPHA___ASSERT_FIXIDX,
7935 ALPHA___EXTERN_PREFIX_FIXIDX,
7936 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
7937 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
7938 ALPHA_ASSERT_FIXIDX,
7939 ALPHA_BAD_LVAL_FIXIDX,
7940 ALPHA_GETOPT_FIXIDX,
7941 ALPHA_IF_SEMICOLON_FIXIDX,
7942 ALPHA_PARENS_FIXIDX,
7943 ALPHA_PTHREAD_FIXIDX,
7944 ALPHA_PTHREAD_GCC_FIXIDX,
7945 ALPHA_PTHREAD_INIT_FIXIDX,
7948 AVOID_BOOL_DEFINE_FIXIDX,
7949 AVOID_BOOL_TYPE_FIXIDX,
7950 AVOID_WCHAR_T_TYPE_FIXIDX,
7951 BAD_STRUCT_TERM_FIXIDX,
7953 BROKEN_ASSERT_STDIO_FIXIDX,
7954 BROKEN_ASSERT_STDLIB_FIXIDX,
7957 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
7958 CTRL_QUOTES_DEF_FIXIDX,
7959 CTRL_QUOTES_USE_FIXIDX,
7961 DARWIN_EXTERNC_FIXIDX,
7962 DARWIN_GCC4_BREAKAGE_FIXIDX,
7963 DARWIN_PRIVATE_EXTERN_FIXIDX,
7964 DARWIN_STDINT_1_FIXIDX,
7965 DARWIN_STDINT_2_FIXIDX,
7966 DARWIN_STDINT_3_FIXIDX,
7967 DARWIN_STDINT_4_FIXIDX,
7968 DEC_INTERN_ASM_FIXIDX,
7969 DJGPP_WCHAR_H_FIXIDX,
7971 FREEBSD_GCC3_BREAKAGE_FIXIDX,
7972 FREEBSD_GCC4_BREAKAGE_FIXIDX,
7973 GLIBC_C99_INLINE_1_FIXIDX,
7974 GLIBC_C99_INLINE_1A_FIXIDX,
7975 GLIBC_C99_INLINE_2_FIXIDX,
7976 GLIBC_C99_INLINE_3_FIXIDX,
7977 GLIBC_C99_INLINE_4_FIXIDX,
7978 GLIBC_MUTEX_INIT_FIXIDX,
7979 GLIBC_STDINT_FIXIDX,
7980 GLIBC_TGMATH_FIXIDX,
7984 HPPA_HPUX_FP_MACROS_FIXIDX,
7985 HPUX10_CPP_POW_INLINE_FIXIDX,
7986 HPUX11_CPP_POW_INLINE_FIXIDX,
7987 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
7988 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
7989 HPUX10_STDIO_DECLARATIONS_FIXIDX,
7991 HPUX11_FABSF_FIXIDX,
7992 HPUX11_PTHREAD_CONST_FIXIDX,
7993 HPUX11_SIZE_T_FIXIDX,
7994 HPUX11_SNPRINTF_FIXIDX,
7995 HPUX11_VSNPRINTF_FIXIDX,
7996 HPUX8_BOGUS_INLINES_FIXIDX,
7997 HPUX_CTYPE_MACROS_FIXIDX,
7999 HPUX_LONG_DOUBLE_FIXIDX,
8000 HPUX_LONG_DOUBLE_2_FIXIDX,
8001 HPUX_SYSTIME_FIXIDX,
8002 HPUX_SPU_INFO_FIXIDX,
8003 HPUX11_EXTERN_SENDFILE_FIXIDX,
8004 HPUX11_EXTERN_SENDPATH_FIXIDX,
8005 HPUX_EXTERN_ERRNO_FIXIDX,
8006 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8007 HPUX_C99_INTPTR_FIXIDX,
8008 HPUX_C99_INTTYPES_FIXIDX,
8009 HPUX_C99_INTTYPES2_FIXIDX,
8010 HPUX_STDINT_LEAST_FIXIDX,
8011 HPUX_STDINT_FAST_FIXIDX,
8012 HPUX_INTTYPE_INT_LEAST8_T_FIXIDX,
8013 HPUX_INTTYPE_INT8_T_FIXIDX,
8014 HUGE_VAL_HEX_FIXIDX,
8015 HUGE_VALF_HEX_FIXIDX,
8016 HUGE_VALL_HEX_FIXIDX,
8017 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8018 IO_QUOTES_DEF_FIXIDX,
8019 IO_QUOTES_USE_FIXIDX,
8020 IP_MISSING_SEMI_FIXIDX,
8021 IRIX___RESTRICT_FIXIDX,
8022 IRIX___GENERIC1_FIXIDX,
8023 IRIX___GENERIC2_FIXIDX,
8024 IRIX_ASM_APOSTROPHE_FIXIDX,
8025 IRIX_LIMITS_CONST_FIXIDX,
8026 IRIX_SOCKLEN_T_FIXIDX,
8027 IRIX_STDINT_C99_FIXIDX,
8028 IRIX_STDIO_VA_LIST_FIXIDX,
8029 IRIX_WCSFTIME_FIXIDX,
8031 ISC_OMITS_WITH_STDC_FIXIDX,
8032 KANDR_CONCAT_FIXIDX,
8033 LINUX_IA64_UCONTEXT_FIXIDX,
8034 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8035 LYNXOS_MISSING_PUTENV_FIXIDX,
8036 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8037 MACHINE_NAME_FIXIDX,
8038 MATH_EXCEPTION_FIXIDX,
8039 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8040 NESTED_AUTH_DES_FIXIDX,
8041 NESTED_SYS_LIMITS_FIXIDX,
8042 NETBSD_C99_INLINE_1_FIXIDX,
8043 NETBSD_C99_INLINE_2_FIXIDX,
8044 NETBSD_EXTRA_SEMICOLON_FIXIDX,
8045 NEWLIB_STDINT_1_FIXIDX,
8046 NEWLIB_STDINT_2_FIXIDX,
8047 NEXT_MATH_PREFIX_FIXIDX,
8048 NEXT_TEMPLATE_FIXIDX,
8049 NEXT_VOLITILE_FIXIDX,
8050 NEXT_WAIT_UNION_FIXIDX,
8051 NODEENT_SYNTAX_FIXIDX,
8052 OPENBSD_NULL_DEFINITION_FIXIDX,
8053 OBSTACK_LVALUE_CAST_FIXIDX,
8054 OPENBSD_VA_START_FIXIDX,
8055 OSF_NAMESPACE_A_FIXIDX,
8056 OSF_NAMESPACE_C_FIXIDX,
8057 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8058 READ_RET_TYPE_FIXIDX,
8059 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8060 RPC_XDR_LVALUE_CAST_B_FIXIDX,
8061 RS6000_DOUBLE_FIXIDX,
8062 RS6000_FCHMOD_FIXIDX,
8063 RS6000_PARAM_FIXIDX,
8065 SOLARIS_MATH_1_FIXIDX,
8066 SOLARIS_MATH_2_FIXIDX,
8067 SOLARIS_MATH_3_FIXIDX,
8068 SOLARIS_MATH_4_FIXIDX,
8069 SOLARIS_MATH_8_FIXIDX,
8070 SOLARIS_MATH_9_FIXIDX,
8071 SOLARIS_MATH_10_FIXIDX,
8072 SOLARIS_MUTEX_INIT_2_FIXIDX,
8073 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8074 SOLARIS_ONCE_INIT_1_FIXIDX,
8075 SOLARIS_ONCE_INIT_2_FIXIDX,
8076 SOLARIS_INT_CONST_FIXIDX,
8077 SOLARIS_INT_LIMITS_1_FIXIDX,
8078 SOLARIS_INT_LIMITS_2_FIXIDX,
8079 SOLARIS_STDIO_TAG_FIXIDX,
8081 STDIO_STDARG_H_FIXIDX,
8082 STDIO_VA_LIST_FIXIDX,
8083 STDIO_VA_LIST_CLIENTS_FIXIDX,
8084 STRICT_ANSI_NOT_FIXIDX,
8085 STRICT_ANSI_NOT_CTD_FIXIDX,
8086 STRICT_ANSI_ONLY_FIXIDX,
8088 STRUCT_SOCKADDR_FIXIDX,
8089 SUN_AUTH_PROTO_FIXIDX,
8090 SUN_BOGUS_IFDEF_FIXIDX,
8091 SUN_CATMACRO_FIXIDX,
8093 SUN_RUSERS_SEMI_FIXIDX,
8095 SUNOS_STRLEN_FIXIDX,
8096 SVR4_DISABLE_OPT_FIXIDX,
8099 SVR4_SIGHANDLER_TYPE_FIXIDX,
8100 SVR4_UNDECLARED_GETRNGE_FIXIDX,
8101 SYSV68_STRING_FIXIDX,
8102 SYSZ_STDLIB_FOR_SUN_FIXIDX,
8103 THREAD_KEYWORD_FIXIDX,
8104 TINFO_CPLUSPLUS_FIXIDX,
8105 ULTRIX_CONST_FIXIDX,
8106 ULTRIX_CONST2_FIXIDX,
8107 VA_I960_MACRO_FIXIDX,
8109 VXWORKS_GCC_PROBLEM_FIXIDX,
8110 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8111 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8112 VXWORKS_TIME_FIXIDX,
8114 X11_CLASS_USAGE_FIXIDX,
8119 tFixDesc fixDescList[ FIX_COUNT ] = {
8120 { zAab_Aix_StdioName, zAab_Aix_StdioList,
8121 apzAab_Aix_StdioMachs,
8122 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8123 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
8125 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8126 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8127 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8128 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8130 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8131 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8132 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8133 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8135 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
8136 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8137 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8138 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8140 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
8141 apzAab_Fd_Zero_Gnu_Types_HMachs,
8142 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8143 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8145 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
8146 apzAab_Fd_Zero_Selectbits_HMachs,
8147 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8148 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8150 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8151 apzAab_Solaris_Sys_Varargs_HMachs,
8152 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8153 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8155 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8156 apzAab_Sun_MemcpyMachs,
8157 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8158 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8160 { zAix_PthreadName, zAix_PthreadList,
8161 apzAix_PthreadMachs,
8162 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8163 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
8165 { zAix_SysmachineName, zAix_SysmachineList,
8166 apzAix_SysmachineMachs,
8167 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8168 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
8170 { zAix_Syswait_2Name, zAix_Syswait_2List,
8171 apzAix_Syswait_2Machs,
8172 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8173 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8175 { zAix_VolatileName, zAix_VolatileList,
8176 apzAix_VolatileMachs,
8177 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8178 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
8180 { zAlpha___AssertName, zAlpha___AssertList,
8181 apzAlpha___AssertMachs,
8182 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8183 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8185 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
8186 apzAlpha___Extern_PrefixMachs,
8187 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8188 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
8190 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
8191 apzAlpha___Extern_Prefix_StandardsMachs,
8192 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8193 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8195 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
8196 apzAlpha___Extern_Prefix_Sys_StatMachs,
8197 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8198 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8200 { zAlpha_AssertName, zAlpha_AssertList,
8201 apzAlpha_AssertMachs,
8202 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8203 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
8205 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
8206 apzAlpha_Bad_LvalMachs,
8207 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8208 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
8210 { zAlpha_GetoptName, zAlpha_GetoptList,
8211 apzAlpha_GetoptMachs,
8212 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8213 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
8215 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
8216 apzAlpha_If_SemicolonMachs,
8217 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8218 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
8220 { zAlpha_ParensName, zAlpha_ParensList,
8221 apzAlpha_ParensMachs,
8222 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8223 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
8225 { zAlpha_PthreadName, zAlpha_PthreadList,
8226 apzAlpha_PthreadMachs,
8227 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8228 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
8230 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
8231 apzAlpha_Pthread_GccMachs,
8232 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8233 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
8235 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
8236 apzAlpha_Pthread_InitMachs,
8237 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8238 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
8240 { zAlpha_SbrkName, zAlpha_SbrkList,
8242 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8243 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
8245 { zAlpha_WcharName, zAlpha_WcharList,
8246 apzAlpha_WcharMachs,
8247 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
8248 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
8250 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
8251 apzAvoid_Bool_DefineMachs,
8252 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8253 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
8255 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
8256 apzAvoid_Bool_TypeMachs,
8257 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8258 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
8260 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
8261 apzAvoid_Wchar_T_TypeMachs,
8262 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8263 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
8265 { zBad_Struct_TermName, zBad_Struct_TermList,
8266 apzBad_Struct_TermMachs,
8267 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8268 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
8270 { zBadquoteName, zBadquoteList,
8272 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8273 aBadquoteTests, apzBadquotePatch, 0 },
8275 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
8276 apzBroken_Assert_StdioMachs,
8277 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8278 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
8280 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
8281 apzBroken_Assert_StdlibMachs,
8282 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8283 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
8285 { zBroken_CabsName, zBroken_CabsList,
8286 apzBroken_CabsMachs,
8287 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
8288 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
8290 { zBroken_NanName, zBroken_NanList,
8292 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8293 aBroken_NanTests, apzBroken_NanPatch, 0 },
8295 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
8296 apzBsd_Stdio_Attrs_ConflictMachs,
8297 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8298 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
8300 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
8301 apzCtrl_Quotes_DefMachs,
8302 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8303 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
8305 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
8306 apzCtrl_Quotes_UseMachs,
8307 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8308 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
8310 { zCxx_UnreadyName, zCxx_UnreadyList,
8311 apzCxx_UnreadyMachs,
8312 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8313 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
8315 { zDarwin_ExterncName, zDarwin_ExterncList,
8316 apzDarwin_ExterncMachs,
8317 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8318 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
8320 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
8321 apzDarwin_Gcc4_BreakageMachs,
8322 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8323 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
8325 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
8326 apzDarwin_Private_ExternMachs,
8327 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8328 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
8330 { zDarwin_Stdint_1Name, zDarwin_Stdint_1List,
8331 apzDarwin_Stdint_1Machs,
8332 DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8333 aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 },
8335 { zDarwin_Stdint_2Name, zDarwin_Stdint_2List,
8336 apzDarwin_Stdint_2Machs,
8337 DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8338 aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 },
8340 { zDarwin_Stdint_3Name, zDarwin_Stdint_3List,
8341 apzDarwin_Stdint_3Machs,
8342 DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8343 aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 },
8345 { zDarwin_Stdint_4Name, zDarwin_Stdint_4List,
8346 apzDarwin_Stdint_4Machs,
8347 DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8348 aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 },
8350 { zDec_Intern_AsmName, zDec_Intern_AsmList,
8351 apzDec_Intern_AsmMachs,
8352 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
8353 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
8355 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
8356 apzDjgpp_Wchar_HMachs,
8357 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8358 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
8360 { zEcd_CursorName, zEcd_CursorList,
8362 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8363 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
8365 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
8366 apzFreebsd_Gcc3_BreakageMachs,
8367 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8368 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
8370 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
8371 apzFreebsd_Gcc4_BreakageMachs,
8372 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8373 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
8375 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
8376 apzGlibc_C99_Inline_1Machs,
8377 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8378 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
8380 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
8381 apzGlibc_C99_Inline_1aMachs,
8382 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8383 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
8385 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
8386 apzGlibc_C99_Inline_2Machs,
8387 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
8388 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
8390 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
8391 apzGlibc_C99_Inline_3Machs,
8392 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8393 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
8395 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
8396 apzGlibc_C99_Inline_4Machs,
8397 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8398 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
8400 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
8401 apzGlibc_Mutex_InitMachs,
8402 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
8403 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
8405 { zGlibc_StdintName, zGlibc_StdintList,
8406 apzGlibc_StdintMachs,
8407 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8408 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 },
8410 { zGlibc_TgmathName, zGlibc_TgmathList,
8411 apzGlibc_TgmathMachs,
8412 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8413 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
8415 { zGnu_TypesName, zGnu_TypesList,
8417 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
8418 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
8420 { zHp_InlineName, zHp_InlineList,
8422 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8423 aHp_InlineTests, apzHp_InlinePatch, 0 },
8425 { zHp_SysfileName, zHp_SysfileList,
8427 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8428 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
8430 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
8431 apzHppa_Hpux_Fp_MacrosMachs,
8432 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8433 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
8435 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
8436 apzHpux10_Cpp_Pow_InlineMachs,
8437 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8438 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
8440 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
8441 apzHpux11_Cpp_Pow_InlineMachs,
8442 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8443 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
8445 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
8446 apzHpux10_Ctype_Declarations1Machs,
8447 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8448 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
8450 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
8451 apzHpux10_Ctype_Declarations2Machs,
8452 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8453 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
8455 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
8456 apzHpux10_Stdio_DeclarationsMachs,
8457 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8458 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
8460 { zHpux11_AbsName, zHpux11_AbsList,
8462 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8463 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
8465 { zHpux11_FabsfName, zHpux11_FabsfList,
8466 apzHpux11_FabsfMachs,
8467 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8468 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
8470 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
8471 apzHpux11_Pthread_ConstMachs,
8472 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8473 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
8475 { zHpux11_Size_TName, zHpux11_Size_TList,
8476 apzHpux11_Size_TMachs,
8477 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8478 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
8480 { zHpux11_SnprintfName, zHpux11_SnprintfList,
8481 apzHpux11_SnprintfMachs,
8482 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8483 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
8485 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
8486 apzHpux11_VsnprintfMachs,
8487 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8488 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
8490 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
8491 apzHpux8_Bogus_InlinesMachs,
8492 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
8493 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
8495 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
8496 apzHpux_Ctype_MacrosMachs,
8497 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8498 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
8500 { zHpux_HtonlName, zHpux_HtonlList,
8502 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8503 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
8505 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
8506 apzHpux_Long_DoubleMachs,
8507 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
8508 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
8510 { zHpux_Long_Double_2Name, zHpux_Long_Double_2List,
8511 apzHpux_Long_Double_2Machs,
8512 HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8513 aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 },
8515 { zHpux_SystimeName, zHpux_SystimeList,
8516 apzHpux_SystimeMachs,
8517 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8518 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
8520 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
8521 apzHpux_Spu_InfoMachs,
8522 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8523 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
8525 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
8526 apzHpux11_Extern_SendfileMachs,
8527 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8528 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
8530 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
8531 apzHpux11_Extern_SendpathMachs,
8532 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8533 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
8535 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
8536 apzHpux_Extern_ErrnoMachs,
8537 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8538 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
8540 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
8541 apzHpux_Pthread_InitializersMachs,
8542 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
8543 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
8545 { zHpux_C99_IntptrName, zHpux_C99_IntptrList,
8546 apzHpux_C99_IntptrMachs,
8547 HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
8548 aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 },
8550 { zHpux_C99_InttypesName, zHpux_C99_InttypesList,
8551 apzHpux_C99_InttypesMachs,
8552 HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
8553 aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 },
8555 { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List,
8556 apzHpux_C99_Inttypes2Machs,
8557 HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
8558 aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 },
8560 { zHpux_Stdint_LeastName, zHpux_Stdint_LeastList,
8561 apzHpux_Stdint_LeastMachs,
8562 HPUX_STDINT_LEAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8563 aHpux_Stdint_LeastTests, apzHpux_Stdint_LeastPatch, 0 },
8565 { zHpux_Stdint_FastName, zHpux_Stdint_FastList,
8566 apzHpux_Stdint_FastMachs,
8567 HPUX_STDINT_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8568 aHpux_Stdint_FastTests, apzHpux_Stdint_FastPatch, 0 },
8570 { zHpux_Inttype_Int_Least8_TName, zHpux_Inttype_Int_Least8_TList,
8571 apzHpux_Inttype_Int_Least8_TMachs,
8572 HPUX_INTTYPE_INT_LEAST8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8573 aHpux_Inttype_Int_Least8_TTests, apzHpux_Inttype_Int_Least8_TPatch, 0 },
8575 { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList,
8576 apzHpux_Inttype_Int8_TMachs,
8577 HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8578 aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 },
8580 { zHuge_Val_HexName, zHuge_Val_HexList,
8581 apzHuge_Val_HexMachs,
8582 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8583 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
8585 { zHuge_Valf_HexName, zHuge_Valf_HexList,
8586 apzHuge_Valf_HexMachs,
8587 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8588 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
8590 { zHuge_Vall_HexName, zHuge_Vall_HexList,
8591 apzHuge_Vall_HexMachs,
8592 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8593 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
8595 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
8596 apzInt_Abort_Free_And_ExitMachs,
8597 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8598 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
8600 { zIo_Quotes_DefName, zIo_Quotes_DefList,
8601 apzIo_Quotes_DefMachs,
8602 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8603 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
8605 { zIo_Quotes_UseName, zIo_Quotes_UseList,
8606 apzIo_Quotes_UseMachs,
8607 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8608 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
8610 { zIp_Missing_SemiName, zIp_Missing_SemiList,
8611 apzIp_Missing_SemiMachs,
8612 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
8613 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
8615 { zIrix___RestrictName, zIrix___RestrictList,
8616 apzIrix___RestrictMachs,
8617 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8618 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
8620 { zIrix___Generic1Name, zIrix___Generic1List,
8621 apzIrix___Generic1Machs,
8622 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8623 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
8625 { zIrix___Generic2Name, zIrix___Generic2List,
8626 apzIrix___Generic2Machs,
8627 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8628 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
8630 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
8631 apzIrix_Asm_ApostropheMachs,
8632 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8633 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
8635 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
8636 apzIrix_Limits_ConstMachs,
8637 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8638 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
8640 { zIrix_Socklen_TName, zIrix_Socklen_TList,
8641 apzIrix_Socklen_TMachs,
8642 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8643 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
8645 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
8646 apzIrix_Stdint_C99Machs,
8647 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8648 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
8650 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
8651 apzIrix_Stdio_Va_ListMachs,
8652 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8653 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
8655 { zIrix_WcsftimeName, zIrix_WcsftimeList,
8656 apzIrix_WcsftimeMachs,
8657 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8658 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
8660 { zIsc_FmodName, zIsc_FmodList,
8662 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8663 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
8665 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
8666 apzIsc_Omits_With_StdcMachs,
8667 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8668 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
8670 { zKandr_ConcatName, zKandr_ConcatList,
8671 apzKandr_ConcatMachs,
8672 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8673 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
8675 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
8676 apzLinux_Ia64_UcontextMachs,
8677 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8678 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
8680 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
8681 apzLynxos_No_Warning_In_Sys_Time_HMachs,
8682 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8683 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
8685 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
8686 apzLynxos_Missing_PutenvMachs,
8687 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8688 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
8690 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
8691 apzMachine_Ansi_H_Va_ListMachs,
8692 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8693 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
8695 { zMachine_NameName, zMachine_NameList,
8696 apzMachine_NameMachs,
8697 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8698 aMachine_NameTests, apzMachine_NamePatch, 0 },
8700 { zMath_ExceptionName, zMath_ExceptionList,
8701 apzMath_ExceptionMachs,
8702 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8703 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
8705 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
8706 apzMath_Huge_Val_From_Dbl_MaxMachs,
8707 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
8708 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
8710 { zNested_Auth_DesName, zNested_Auth_DesList,
8711 apzNested_Auth_DesMachs,
8712 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8713 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
8715 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
8716 apzNested_Sys_LimitsMachs,
8717 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
8718 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
8720 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
8721 apzNetbsd_C99_Inline_1Machs,
8722 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8723 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
8725 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
8726 apzNetbsd_C99_Inline_2Machs,
8727 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8728 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
8730 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
8731 apzNetbsd_Extra_SemicolonMachs,
8732 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8733 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
8735 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List,
8736 apzNewlib_Stdint_1Machs,
8737 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
8738 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 },
8740 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List,
8741 apzNewlib_Stdint_2Machs,
8742 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8743 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 },
8745 { zNext_Math_PrefixName, zNext_Math_PrefixList,
8746 apzNext_Math_PrefixMachs,
8747 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8748 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
8750 { zNext_TemplateName, zNext_TemplateList,
8751 apzNext_TemplateMachs,
8752 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8753 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
8755 { zNext_VolitileName, zNext_VolitileList,
8756 apzNext_VolitileMachs,
8757 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8758 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
8760 { zNext_Wait_UnionName, zNext_Wait_UnionList,
8761 apzNext_Wait_UnionMachs,
8762 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8763 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
8765 { zNodeent_SyntaxName, zNodeent_SyntaxList,
8766 apzNodeent_SyntaxMachs,
8767 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8768 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
8770 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
8771 apzOpenbsd_Null_DefinitionMachs,
8772 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8773 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
8775 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
8776 apzObstack_Lvalue_CastMachs,
8777 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8778 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
8780 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
8781 apzOpenbsd_Va_StartMachs,
8782 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8783 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
8785 { zOsf_Namespace_AName, zOsf_Namespace_AList,
8786 apzOsf_Namespace_AMachs,
8787 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8788 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
8790 { zOsf_Namespace_CName, zOsf_Namespace_CList,
8791 apzOsf_Namespace_CMachs,
8792 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8793 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
8795 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
8796 apzPthread_Incomplete_Struct_ArgumentMachs,
8797 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8798 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
8800 { zRead_Ret_TypeName, zRead_Ret_TypeList,
8801 apzRead_Ret_TypeMachs,
8802 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8803 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
8805 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
8806 apzRpc_Xdr_Lvalue_Cast_AMachs,
8807 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8808 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
8810 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
8811 apzRpc_Xdr_Lvalue_Cast_BMachs,
8812 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8813 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
8815 { zRs6000_DoubleName, zRs6000_DoubleList,
8816 apzRs6000_DoubleMachs,
8817 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8818 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
8820 { zRs6000_FchmodName, zRs6000_FchmodList,
8821 apzRs6000_FchmodMachs,
8822 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8823 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
8825 { zRs6000_ParamName, zRs6000_ParamList,
8826 apzRs6000_ParamMachs,
8827 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8828 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
8830 { zSco_MathName, zSco_MathList,
8832 SCO_MATH_TEST_CT, FD_MACH_ONLY,
8833 aSco_MathTests, apzSco_MathPatch, 0 },
8835 { zSolaris_Math_1Name, zSolaris_Math_1List,
8836 apzSolaris_Math_1Machs,
8837 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8838 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
8840 { zSolaris_Math_2Name, zSolaris_Math_2List,
8841 apzSolaris_Math_2Machs,
8842 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8843 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
8845 { zSolaris_Math_3Name, zSolaris_Math_3List,
8846 apzSolaris_Math_3Machs,
8847 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8848 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
8850 { zSolaris_Math_4Name, zSolaris_Math_4List,
8851 apzSolaris_Math_4Machs,
8852 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8853 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
8855 { zSolaris_Math_8Name, zSolaris_Math_8List,
8856 apzSolaris_Math_8Machs,
8857 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8858 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
8860 { zSolaris_Math_9Name, zSolaris_Math_9List,
8861 apzSolaris_Math_9Machs,
8862 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8863 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
8865 { zSolaris_Math_10Name, zSolaris_Math_10List,
8866 apzSolaris_Math_10Machs,
8867 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8868 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
8870 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
8871 apzSolaris_Mutex_Init_2Machs,
8872 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8873 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
8875 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
8876 apzSolaris_Rwlock_Init_1Machs,
8877 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8878 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
8880 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
8881 apzSolaris_Once_Init_1Machs,
8882 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8883 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
8885 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
8886 apzSolaris_Once_Init_2Machs,
8887 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8888 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
8890 { zSolaris_Int_ConstName, zSolaris_Int_ConstList,
8891 apzSolaris_Int_ConstMachs,
8892 SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8893 aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 },
8895 { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List,
8896 apzSolaris_Int_Limits_1Machs,
8897 SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8898 aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 },
8900 { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List,
8901 apzSolaris_Int_Limits_2Machs,
8902 SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8903 aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 },
8905 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
8906 apzSolaris_Stdio_TagMachs,
8907 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
8908 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
8910 { zStatsswtchName, zStatsswtchList,
8912 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8913 aStatsswtchTests, apzStatsswtchPatch, 0 },
8915 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
8916 apzStdio_Stdarg_HMachs,
8917 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
8918 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
8920 { zStdio_Va_ListName, zStdio_Va_ListList,
8921 apzStdio_Va_ListMachs,
8922 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
8923 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
8925 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
8926 apzStdio_Va_List_ClientsMachs,
8927 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
8928 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
8930 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
8931 apzStrict_Ansi_NotMachs,
8932 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8933 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
8935 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
8936 apzStrict_Ansi_Not_CtdMachs,
8937 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8938 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
8940 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
8941 apzStrict_Ansi_OnlyMachs,
8942 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8943 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
8945 { zStruct_FileName, zStruct_FileList,
8946 apzStruct_FileMachs,
8947 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8948 aStruct_FileTests, apzStruct_FilePatch, 0 },
8950 { zStruct_SockaddrName, zStruct_SockaddrList,
8951 apzStruct_SockaddrMachs,
8952 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8953 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
8955 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
8956 apzSun_Auth_ProtoMachs,
8957 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8958 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
8960 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
8961 apzSun_Bogus_IfdefMachs,
8962 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8963 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
8965 { zSun_CatmacroName, zSun_CatmacroList,
8966 apzSun_CatmacroMachs,
8967 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8968 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
8970 { zSun_MallocName, zSun_MallocList,
8972 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
8973 aSun_MallocTests, apzSun_MallocPatch, 0 },
8975 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
8976 apzSun_Rusers_SemiMachs,
8977 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
8978 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
8980 { zSun_SignalName, zSun_SignalList,
8982 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8983 aSun_SignalTests, apzSun_SignalPatch, 0 },
8985 { zSunos_StrlenName, zSunos_StrlenList,
8986 apzSunos_StrlenMachs,
8987 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8988 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
8990 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
8991 apzSvr4_Disable_OptMachs,
8992 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
8993 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
8995 { zSvr4_GetcwdName, zSvr4_GetcwdList,
8996 apzSvr4_GetcwdMachs,
8997 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8998 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
9000 { zSvr4_ProfilName, zSvr4_ProfilList,
9001 apzSvr4_ProfilMachs,
9002 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9003 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
9005 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9006 apzSvr4_Sighandler_TypeMachs,
9007 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9008 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9010 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9011 apzSvr4_Undeclared_GetrngeMachs,
9012 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9013 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9015 { zSysv68_StringName, zSysv68_StringList,
9016 apzSysv68_StringMachs,
9017 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9018 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
9020 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
9021 apzSysz_Stdlib_For_SunMachs,
9022 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9023 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
9025 { zThread_KeywordName, zThread_KeywordList,
9026 apzThread_KeywordMachs,
9027 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9028 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9030 { zTinfo_CplusplusName, zTinfo_CplusplusList,
9031 apzTinfo_CplusplusMachs,
9032 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9033 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
9035 { zUltrix_ConstName, zUltrix_ConstList,
9036 apzUltrix_ConstMachs,
9037 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9038 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
9040 { zUltrix_Const2Name, zUltrix_Const2List,
9041 apzUltrix_Const2Machs,
9042 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9043 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
9045 { zVa_I960_MacroName, zVa_I960_MacroList,
9046 apzVa_I960_MacroMachs,
9047 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9048 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
9050 { zVoid_NullName, zVoid_NullList,
9052 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9053 aVoid_NullTests, apzVoid_NullPatch, 0 },
9055 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
9056 apzVxworks_Gcc_ProblemMachs,
9057 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9058 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
9060 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
9061 apzVxworks_Needs_VxtypesMachs,
9062 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9063 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
9065 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
9066 apzVxworks_Needs_VxworksMachs,
9067 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9068 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
9070 { zVxworks_TimeName, zVxworks_TimeList,
9071 apzVxworks_TimeMachs,
9072 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9073 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
9075 { zX11_ClassName, zX11_ClassList,
9077 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9078 aX11_ClassTests, apzX11_ClassPatch, 0 },
9080 { zX11_Class_UsageName, zX11_Class_UsageList,
9081 apzX11_Class_UsageMachs,
9082 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9083 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
9085 { zX11_NewName, zX11_NewList,
9087 X11_NEW_TEST_CT, FD_MACH_ONLY,
9088 aX11_NewTests, apzX11_NewPatch, 0 },
9090 { zX11_SprintfName, zX11_SprintfList,
9091 apzX11_SprintfMachs,
9092 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9093 aX11_SprintfTests, apzX11_SprintfPatch, 0 }