1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Saturday February 28, 2009 at 10:11:41 AM PST
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Sat Feb 28 10:11:41 PST 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 180 fixup descriptions.
20 * See README for more information.
22 * inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
24 * The Free Software Foundation, Inc.
26 * inclhack is free software: you can redistribute it and/or modify it
27 * under the terms of the GNU General Public License as published by the
28 * Free Software Foundation, either version 3 of the License, or
29 * (at your option) any later version.
31 * inclhack is distributed in the hope that it will be useful, but
32 * WITHOUT ANY WARRANTY; without even the implied warranty of
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34 * See the GNU General Public License for more details.
36 * You should have received a copy of the GNU General Public License along
37 * with this program. If not, see <http://www.gnu.org/licenses/>.
40 #define SED_PROGRAM "/usr/bin/sed"
42 static char const sed_cmd_z[] = SED_PROGRAM;
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
46 * Description of Aab_Aix_Stdio fix
48 tSCC zAab_Aix_StdioName[] =
52 * File name selection pattern
54 tSCC zAab_Aix_StdioList[] =
57 * Machine/OS name selection pattern
59 tSCC* apzAab_Aix_StdioMachs[] = {
64 * content selection pattern - do fix if pattern found
66 tSCC zAab_Aix_StdioSelect0[] =
67 "define fopen fopen64";
69 #define AAB_AIX_STDIO_TEST_CT 1
70 static tTestDesc aAab_Aix_StdioTests[] = {
71 { TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
74 * Fix Command Arguments for Aab_Aix_Stdio
76 static const char* apzAab_Aix_StdioPatch[] = {
80 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
81 #define __need__aix_stdio_h_fix\n\
82 #ifdef __need__aix_stdio_h_fix\n\
89 /* Alias the symbols using asm */\n\
91 extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
92 extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
93 extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
94 extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
95 extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
96 extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
104 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
106 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
107 "AAB_darwin7_9_long_double_funcs";
110 * File name selection pattern
112 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
113 "architecture/ppc/math.h\0";
115 * Machine/OS name selection pattern
117 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
122 * content bypass pattern - skip fix if pattern found
124 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
127 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
128 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
129 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
132 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
134 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
135 "/* This file prototypes the long double functions available on Mac OS\n\
138 # undef __APPLE_CC__\n\
139 # define __APPLE_CC__ 1345\n\
140 # include_next <architecture/ppc/math.h>\n\
141 # undef __APPLE_CC__\n\
142 # define __APPLE_CC__ 1\n\
143 # ifndef __LIBMLDBL_COMPAT\n\
144 # ifdef __LONG_DOUBLE_128__\n\
145 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
147 # define __LIBMLDBL_COMPAT(sym)\n\
148 # endif /* __LONG_DOUBLE_128__ */\n\
149 # endif /* __LIBMLDBL_COMPAT */\n\
150 # ifdef __cplusplus\n\
153 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
154 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
155 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
156 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
157 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
158 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
159 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
160 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
161 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
162 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
163 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
164 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
165 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
166 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
167 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
168 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
169 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
170 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
171 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
172 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
173 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
174 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
175 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
176 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
177 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
178 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
179 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
180 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
181 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
182 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
183 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
184 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
185 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
186 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
187 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
188 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
189 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
190 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
191 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
192 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
193 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
194 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
195 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
196 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
197 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
198 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
199 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
200 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
201 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
202 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
203 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
204 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
205 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
206 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
207 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
208 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
209 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
210 # ifdef __cplusplus\n\
213 #endif /* __MATH__ */",
216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
218 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
220 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
221 "AAB_darwin7_9_long_double_funcs_2";
224 * File name selection pattern
226 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
229 * Machine/OS name selection pattern
231 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
236 * content selection pattern - do fix if pattern found
238 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
239 "#include[ \\t]+\\\"";
241 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
242 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
243 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
246 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
248 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
251 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
256 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
258 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
259 "AAB_fd_zero_asm_posix_types_h";
262 * File name selection pattern
264 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
265 "asm/posix_types.h\0";
267 * Machine/OS name selection pattern
269 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
270 "i[34567]86-*-linux*",
274 * content bypass pattern - skip fix if pattern found
276 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
278 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
280 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
283 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3
284 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
285 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
286 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
287 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
290 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
292 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
293 "/* This file fixes a bug in the __FD_ZERO macro\n\
294 for older versions of the Linux kernel. */\n\
295 #ifndef _POSIX_TYPES_H_WRAPPER\n\
296 #include <features.h>\n\
297 #include_next <asm/posix_types.h>\n\n\
298 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
300 #define __FD_ZERO(fdsetp) \\\n\
302 int __d0, __d1; \\\n\
303 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
304 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
305 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
306 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
309 #define _POSIX_TYPES_H_WRAPPER\n\
310 #endif /* _POSIX_TYPES_H_WRAPPER */",
313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
315 * Description of Aab_Fd_Zero_Gnu_Types_H fix
317 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
318 "AAB_fd_zero_gnu_types_h";
321 * File name selection pattern
323 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
326 * Machine/OS name selection pattern
328 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
329 "i[34567]86-*-linux*",
331 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
332 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
335 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
337 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
338 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
339 #ifndef _TYPES_H_WRAPPER\n\
340 #include <features.h>\n\
341 #include_next <gnu/types.h>\n\n\
342 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
344 # define __FD_ZERO(fdsetp) \\\n\
346 int __d0, __d1; \\\n\
347 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
348 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
349 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
350 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
353 #define _TYPES_H_WRAPPER\n\
354 #endif /* _TYPES_H_WRAPPER */",
357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
359 * Description of Aab_Fd_Zero_Selectbits_H fix
361 tSCC zAab_Fd_Zero_Selectbits_HName[] =
362 "AAB_fd_zero_selectbits_h";
365 * File name selection pattern
367 tSCC zAab_Fd_Zero_Selectbits_HList[] =
370 * Machine/OS name selection pattern
372 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
373 "i[34567]86-*-linux*",
375 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
376 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
379 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
381 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
382 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
383 #ifndef _SELECTBITS_H_WRAPPER\n\
384 #include <features.h>\n\
385 #include_next <selectbits.h>\n\n\
386 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
387 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
388 && __GLIBC_MINOR__ == 0\n\
390 #define __FD_ZERO(fdsetp) \\\\\n\
392 int __d0, __d1; \\\\\n\
393 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
394 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
395 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
396 / sizeof (__fd_mask)), \\\\\n\
397 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
398 : \"memory\"); \\\\\n\
401 #define _SELECTBITS_H_WRAPPER\n\
402 #endif /* _SELECTBITS_H_WRAPPER */",
405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
407 * Description of Aab_Solaris_Sys_Varargs_H fix
409 tSCC zAab_Solaris_Sys_Varargs_HName[] =
410 "AAB_solaris_sys_varargs_h";
413 * File name selection pattern
415 tSCC zAab_Solaris_Sys_Varargs_HList[] =
418 * Machine/OS name selection pattern
420 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
423 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
424 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
427 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
429 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
431 #include <stdarg.h>\n\
433 #include <varargs.h>\n\
437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
439 * Description of Aab_Sun_Memcpy fix
441 tSCC zAab_Sun_MemcpyName[] =
445 * File name selection pattern
447 tSCC zAab_Sun_MemcpyList[] =
450 * Machine/OS name selection pattern
452 #define apzAab_Sun_MemcpyMachs (const char**)NULL
455 * content selection pattern - do fix if pattern found
457 tSCC zAab_Sun_MemcpySelect0[] =
458 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
460 #define AAB_SUN_MEMCPY_TEST_CT 1
461 static tTestDesc aAab_Sun_MemcpyTests[] = {
462 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
465 * Fix Command Arguments for Aab_Sun_Memcpy
467 static const char* apzAab_Sun_MemcpyPatch[] = {
468 "/* This file was generated by fixincludes */\n\
469 #ifndef __memory_h__\n\
470 #define __memory_h__\n\n\
472 extern void *memccpy();\n\
473 extern void *memchr();\n\
474 extern void *memcpy();\n\
475 extern void *memset();\n\
477 extern char *memccpy();\n\
478 extern char *memchr();\n\
479 extern char *memcpy();\n\
480 extern char *memset();\n\
481 #endif /* __STDC__ */\n\n\
482 extern int memcmp();\n\n\
483 #endif /* __memory_h__ */",
486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
488 * Description of Aix_Pthread fix
490 tSCC zAix_PthreadName[] =
494 * File name selection pattern
496 tSCC zAix_PthreadList[] =
499 * Machine/OS name selection pattern
501 #define apzAix_PthreadMachs (const char**)NULL
504 * content selection pattern - do fix if pattern found
506 tSCC zAix_PthreadSelect0[] =
507 "(#define [A-Za-z_0-9]+)(\\\\\n\
511 #define AIX_PTHREAD_TEST_CT 1
512 static tTestDesc aAix_PthreadTests[] = {
513 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
516 * Fix Command Arguments for Aix_Pthread
518 static const char* apzAix_PthreadPatch[] = {
523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
525 * Description of Aix_Sysmachine fix
527 tSCC zAix_SysmachineName[] =
531 * File name selection pattern
533 tSCC zAix_SysmachineList[] =
536 * Machine/OS name selection pattern
538 #define apzAix_SysmachineMachs (const char**)NULL
541 * content selection pattern - do fix if pattern found
543 tSCC zAix_SysmachineSelect0[] =
546 #define AIX_SYSMACHINE_TEST_CT 1
547 static tTestDesc aAix_SysmachineTests[] = {
548 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
551 * Fix Command Arguments for Aix_Sysmachine
553 static const char* apzAix_SysmachinePatch[] = {
558 /* * * * * * * * * * * * * * * * * * * * * * * * * *
560 * Description of Aix_Syswait fix
562 tSCC zAix_SyswaitName[] =
566 * File name selection pattern
568 tSCC zAix_SyswaitList[] =
571 * Machine/OS name selection pattern
573 #define apzAix_SyswaitMachs (const char**)NULL
576 * content selection pattern - do fix if pattern found
578 tSCC zAix_SyswaitSelect0[] =
579 "^extern pid_t wait3\\(\\);\n";
580 tSCC zAix_SyswaitSelect1[] =
583 #define AIX_SYSWAIT_TEST_CT 2
584 static tTestDesc aAix_SyswaitTests[] = {
585 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
586 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
589 * Fix Command Arguments for Aix_Syswait
591 static const char* apzAix_SyswaitPatch[] = {
597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
599 * Description of Aix_Syswait_2 fix
601 tSCC zAix_Syswait_2Name[] =
605 * File name selection pattern
607 tSCC zAix_Syswait_2List[] =
610 * Machine/OS name selection pattern
612 #define apzAix_Syswait_2Machs (const char**)NULL
615 * content selection pattern - do fix if pattern found
617 tSCC zAix_Syswait_2Select0[] =
618 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
620 #define AIX_SYSWAIT_2_TEST_CT 1
621 static tTestDesc aAix_Syswait_2Tests[] = {
622 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
625 * Fix Command Arguments for Aix_Syswait_2
627 static const char* apzAix_Syswait_2Patch[] = {
632 /* * * * * * * * * * * * * * * * * * * * * * * * * *
634 * Description of Aix_Volatile fix
636 tSCC zAix_VolatileName[] =
640 * File name selection pattern
642 tSCC zAix_VolatileList[] =
645 * Machine/OS name selection pattern
647 #define apzAix_VolatileMachs (const char**)NULL
650 * content selection pattern - do fix if pattern found
652 tSCC zAix_VolatileSelect0[] =
653 "typedef volatile int sig_atomic_t";
655 #define AIX_VOLATILE_TEST_CT 1
656 static tTestDesc aAix_VolatileTests[] = {
657 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
660 * Fix Command Arguments for Aix_Volatile
662 static const char* apzAix_VolatilePatch[] = {
664 "typedef int sig_atomic_t",
667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
669 * Description of Alpha___Assert fix
671 tSCC zAlpha___AssertName[] =
675 * File name selection pattern
677 tSCC zAlpha___AssertList[] =
680 * Machine/OS name selection pattern
682 #define apzAlpha___AssertMachs (const char**)NULL
685 * content selection pattern - do fix if pattern found
687 tSCC zAlpha___AssertSelect0[] =
688 "__assert\\(char \\*, char \\*, int\\)";
690 #define ALPHA___ASSERT_TEST_CT 1
691 static tTestDesc aAlpha___AssertTests[] = {
692 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
695 * Fix Command Arguments for Alpha___Assert
697 static const char* apzAlpha___AssertPatch[] = {
699 "__assert(const char *, const char *, int)",
702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
704 * Description of Alpha___Extern_Prefix fix
706 tSCC zAlpha___Extern_PrefixName[] =
707 "alpha___extern_prefix";
710 * File name selection pattern
712 #define zAlpha___Extern_PrefixList (char*)NULL
714 * Machine/OS name selection pattern
716 tSCC* apzAlpha___Extern_PrefixMachs[] = {
721 * content selection pattern - do fix if pattern found
723 tSCC zAlpha___Extern_PrefixSelect0[] =
724 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
725 (#[ \t]*pragma[ \t]*extern_prefix.*)";
727 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
728 static tTestDesc aAlpha___Extern_PrefixTests[] = {
729 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
732 * Fix Command Arguments for Alpha___Extern_Prefix
734 static const char* apzAlpha___Extern_PrefixPatch[] = {
736 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
742 * Description of Alpha___Extern_Prefix_Standards fix
744 tSCC zAlpha___Extern_Prefix_StandardsName[] =
745 "alpha___extern_prefix_standards";
748 * File name selection pattern
750 tSCC zAlpha___Extern_Prefix_StandardsList[] =
753 * Machine/OS name selection pattern
755 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
760 * content selection pattern - do fix if pattern found
762 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
763 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
765 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
766 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
767 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
770 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
772 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
774 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
779 * Description of Alpha___Extern_Prefix_Sys_Stat fix
781 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
782 "alpha___extern_prefix_sys_stat";
785 * File name selection pattern
787 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
788 "sys/stat.h\0sys/mount.h\0";
790 * Machine/OS name selection pattern
792 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
797 * content selection pattern - do fix if pattern found
799 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
800 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
802 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
803 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
804 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
807 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
809 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
811 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
814 /* * * * * * * * * * * * * * * * * * * * * * * * * *
816 * Description of Alpha_Assert fix
818 tSCC zAlpha_AssertName[] =
822 * File name selection pattern
824 tSCC zAlpha_AssertList[] =
827 * Machine/OS name selection pattern
829 #define apzAlpha_AssertMachs (const char**)NULL
832 * content selection pattern - do fix if pattern found
834 tSCC zAlpha_AssertSelect0[] =
835 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
837 #define ALPHA_ASSERT_TEST_CT 1
838 static tTestDesc aAlpha_AssertTests[] = {
839 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
842 * Fix Command Arguments for Alpha_Assert
844 static const char* apzAlpha_AssertPatch[] = {
849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
851 * Description of Alpha_Bad_Lval fix
853 tSCC zAlpha_Bad_LvalName[] =
857 * File name selection pattern
859 #define zAlpha_Bad_LvalList (char*)NULL
861 * Machine/OS name selection pattern
863 tSCC* apzAlpha_Bad_LvalMachs[] = {
868 * content selection pattern - do fix if pattern found
870 tSCC zAlpha_Bad_LvalSelect0[] =
871 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
873 #define ALPHA_BAD_LVAL_TEST_CT 1
874 static tTestDesc aAlpha_Bad_LvalTests[] = {
875 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
878 * Fix Command Arguments for Alpha_Bad_Lval
880 static const char* apzAlpha_Bad_LvalPatch[] = { sed_cmd_z,
881 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
884 /* * * * * * * * * * * * * * * * * * * * * * * * * *
886 * Description of Alpha_Getopt fix
888 tSCC zAlpha_GetoptName[] =
892 * File name selection pattern
894 tSCC zAlpha_GetoptList[] =
895 "stdio.h\0stdlib.h\0";
897 * Machine/OS name selection pattern
899 #define apzAlpha_GetoptMachs (const char**)NULL
902 * content selection pattern - do fix if pattern found
904 tSCC zAlpha_GetoptSelect0[] =
905 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
907 #define ALPHA_GETOPT_TEST_CT 1
908 static tTestDesc aAlpha_GetoptTests[] = {
909 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
912 * Fix Command Arguments for Alpha_Getopt
914 static const char* apzAlpha_GetoptPatch[] = {
916 "getopt(int, char *const[], const char *)",
919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
921 * Description of Alpha_If_Semicolon fix
923 tSCC zAlpha_If_SemicolonName[] =
924 "alpha_if_semicolon";
927 * File name selection pattern
929 tSCC zAlpha_If_SemicolonList[] =
932 * Machine/OS name selection pattern
934 #define apzAlpha_If_SemicolonMachs (const char**)NULL
937 * content selection pattern - do fix if pattern found
939 tSCC zAlpha_If_SemicolonSelect0[] =
940 "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
942 #define ALPHA_IF_SEMICOLON_TEST_CT 1
943 static tTestDesc aAlpha_If_SemicolonTests[] = {
944 { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
947 * Fix Command Arguments for Alpha_If_Semicolon
949 static const char* apzAlpha_If_SemicolonPatch[] = {
951 "struct sockaddr vmif_paddr;\t/*",
954 /* * * * * * * * * * * * * * * * * * * * * * * * * *
956 * Description of Alpha_Parens fix
958 tSCC zAlpha_ParensName[] =
962 * File name selection pattern
964 tSCC zAlpha_ParensList[] =
967 * Machine/OS name selection pattern
969 #define apzAlpha_ParensMachs (const char**)NULL
972 * content selection pattern - do fix if pattern found
974 tSCC zAlpha_ParensSelect0[] =
975 "#ifndef\\(__mips64\\)";
977 #define ALPHA_PARENS_TEST_CT 1
978 static tTestDesc aAlpha_ParensTests[] = {
979 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
982 * Fix Command Arguments for Alpha_Parens
984 static const char* apzAlpha_ParensPatch[] = {
989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
991 * Description of Alpha_Pthread fix
993 tSCC zAlpha_PthreadName[] =
997 * File name selection pattern
999 tSCC zAlpha_PthreadList[] =
1002 * Machine/OS name selection pattern
1004 tSCC* apzAlpha_PthreadMachs[] = {
1006 (const char*)NULL };
1009 * content selection pattern - do fix if pattern found
1011 tSCC zAlpha_PthreadSelect0[] =
1012 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1013 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1015 #define ALPHA_PTHREAD_TEST_CT 1
1016 static tTestDesc aAlpha_PthreadTests[] = {
1017 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1020 * Fix Command Arguments for Alpha_Pthread
1022 static const char* apzAlpha_PthreadPatch[] = {
1024 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1030 * Description of Alpha_Pthread_Gcc fix
1032 tSCC zAlpha_Pthread_GccName[] =
1033 "alpha_pthread_gcc";
1036 * File name selection pattern
1038 tSCC zAlpha_Pthread_GccList[] =
1041 * Machine/OS name selection pattern
1043 tSCC* apzAlpha_Pthread_GccMachs[] = {
1045 (const char*)NULL };
1048 * content selection pattern - do fix if pattern found
1050 tSCC zAlpha_Pthread_GccSelect0[] =
1052 # error <pthread.h>: unrecognized compiler.";
1054 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1055 static tTestDesc aAlpha_Pthread_GccTests[] = {
1056 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1059 * Fix Command Arguments for Alpha_Pthread_Gcc
1061 static const char* apzAlpha_Pthread_GccPatch[] = {
1063 "#elif defined (__GNUC__)\n\
1064 # define _PTHREAD_ENV_GCC\n\
1068 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1070 * Description of Alpha_Pthread_Init fix
1072 tSCC zAlpha_Pthread_InitName[] =
1073 "alpha_pthread_init";
1076 * File name selection pattern
1078 tSCC zAlpha_Pthread_InitList[] =
1081 * Machine/OS name selection pattern
1083 tSCC* apzAlpha_Pthread_InitMachs[] = {
1085 (const char*)NULL };
1088 * content selection pattern - do fix if pattern found
1090 tSCC zAlpha_Pthread_InitSelect0[] =
1091 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1093 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1094 static tTestDesc aAlpha_Pthread_InitTests[] = {
1095 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1098 * Fix Command Arguments for Alpha_Pthread_Init
1100 static const char* apzAlpha_Pthread_InitPatch[] = { sed_cmd_z,
1101 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1102 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1103 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1104 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1105 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1106 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1111 * Description of Alpha_Sbrk fix
1113 tSCC zAlpha_SbrkName[] =
1117 * File name selection pattern
1119 tSCC zAlpha_SbrkList[] =
1122 * Machine/OS name selection pattern
1124 #define apzAlpha_SbrkMachs (const char**)NULL
1127 * content selection pattern - do fix if pattern found
1129 tSCC zAlpha_SbrkSelect0[] =
1130 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1132 #define ALPHA_SBRK_TEST_CT 1
1133 static tTestDesc aAlpha_SbrkTests[] = {
1134 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1137 * Fix Command Arguments for Alpha_Sbrk
1139 static const char* apzAlpha_SbrkPatch[] = {
1144 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1146 * Description of Alpha_Wchar fix
1148 tSCC zAlpha_WcharName[] =
1152 * File name selection pattern
1154 tSCC zAlpha_WcharList[] =
1157 * Machine/OS name selection pattern
1159 tSCC* apzAlpha_WcharMachs[] = {
1161 (const char*)NULL };
1164 * content selection pattern - do fix if pattern found
1166 tSCC zAlpha_WcharSelect0[] =
1167 "#define wcstok wcstok_r";
1169 #define ALPHA_WCHAR_TEST_CT 1
1170 static tTestDesc aAlpha_WcharTests[] = {
1171 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1174 * Fix Command Arguments for Alpha_Wchar
1176 static const char* apzAlpha_WcharPatch[] = { sed_cmd_z,
1177 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1178 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1181 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1183 * Description of Avoid_Bool_Define fix
1185 tSCC zAvoid_Bool_DefineName[] =
1186 "avoid_bool_define";
1189 * File name selection pattern
1191 tSCC zAvoid_Bool_DefineList[] =
1192 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1194 * Machine/OS name selection pattern
1196 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1199 * content selection pattern - do fix if pattern found
1201 tSCC zAvoid_Bool_DefineSelect0[] =
1202 "#[ \t]*define[ \t]+bool[ \t]";
1205 * content bypass pattern - skip fix if pattern found
1207 tSCC zAvoid_Bool_DefineBypass0[] =
1210 #define AVOID_BOOL_DEFINE_TEST_CT 2
1211 static tTestDesc aAvoid_Bool_DefineTests[] = {
1212 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1213 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1216 * Fix Command Arguments for Avoid_Bool_Define
1218 static const char* apzAvoid_Bool_DefinePatch[] = {
1220 "#ifndef __cplusplus\n\
1223 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1226 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1228 * Description of Avoid_Bool_Type fix
1230 tSCC zAvoid_Bool_TypeName[] =
1234 * File name selection pattern
1236 tSCC zAvoid_Bool_TypeList[] =
1237 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1239 * Machine/OS name selection pattern
1241 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1244 * content selection pattern - do fix if pattern found
1246 tSCC zAvoid_Bool_TypeSelect0[] =
1247 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1250 * content bypass pattern - skip fix if pattern found
1252 tSCC zAvoid_Bool_TypeBypass0[] =
1255 #define AVOID_BOOL_TYPE_TEST_CT 2
1256 static tTestDesc aAvoid_Bool_TypeTests[] = {
1257 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1258 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1261 * Fix Command Arguments for Avoid_Bool_Type
1263 static const char* apzAvoid_Bool_TypePatch[] = {
1265 "#ifndef __cplusplus\n\
1270 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1272 * Description of Avoid_Wchar_T_Type fix
1274 tSCC zAvoid_Wchar_T_TypeName[] =
1275 "avoid_wchar_t_type";
1278 * File name selection pattern
1280 #define zAvoid_Wchar_T_TypeList (char*)NULL
1282 * Machine/OS name selection pattern
1284 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1287 * content selection pattern - do fix if pattern found
1289 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1290 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1293 * content bypass pattern - skip fix if pattern found
1295 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1297 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1299 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1300 "XFree86: xc/lib/X11/Xlib\\.h";
1302 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1303 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1304 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1305 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1306 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1307 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1310 * Fix Command Arguments for Avoid_Wchar_T_Type
1312 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1314 "#ifndef __cplusplus\n\
1319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1321 * Description of Bad_Struct_Term fix
1323 tSCC zBad_Struct_TermName[] =
1327 * File name selection pattern
1329 tSCC zBad_Struct_TermList[] =
1332 * Machine/OS name selection pattern
1334 #define apzBad_Struct_TermMachs (const char**)NULL
1337 * content selection pattern - do fix if pattern found
1339 tSCC zBad_Struct_TermSelect0[] =
1340 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1342 #define BAD_STRUCT_TERM_TEST_CT 1
1343 static tTestDesc aBad_Struct_TermTests[] = {
1344 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1347 * Fix Command Arguments for Bad_Struct_Term
1349 static const char* apzBad_Struct_TermPatch[] = {
1354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1356 * Description of Badquote fix
1358 tSCC zBadquoteName[] =
1362 * File name selection pattern
1364 tSCC zBadquoteList[] =
1365 "sundev/vuid_event.h\0";
1367 * Machine/OS name selection pattern
1369 #define apzBadquoteMachs (const char**)NULL
1372 * content selection pattern - do fix if pattern found
1374 tSCC zBadquoteSelect0[] =
1377 #define BADQUOTE_TEST_CT 1
1378 static tTestDesc aBadquoteTests[] = {
1379 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1382 * Fix Command Arguments for Badquote
1384 static const char* apzBadquotePatch[] = {
1389 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1391 * Description of Broken_Assert_Stdio fix
1393 tSCC zBroken_Assert_StdioName[] =
1394 "broken_assert_stdio";
1397 * File name selection pattern
1399 tSCC zBroken_Assert_StdioList[] =
1402 * Machine/OS name selection pattern
1404 #define apzBroken_Assert_StdioMachs (const char**)NULL
1407 * content selection pattern - do fix if pattern found
1409 tSCC zBroken_Assert_StdioSelect0[] =
1413 * content bypass pattern - skip fix if pattern found
1415 tSCC zBroken_Assert_StdioBypass0[] =
1416 "include.*stdio\\.h";
1418 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1419 static tTestDesc aBroken_Assert_StdioTests[] = {
1420 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1421 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1424 * Fix Command Arguments for Broken_Assert_Stdio
1426 static const char* apzBroken_Assert_StdioPatch[] = {
1428 "#include <stdio.h>\n",
1431 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1433 * Description of Broken_Assert_Stdlib fix
1435 tSCC zBroken_Assert_StdlibName[] =
1436 "broken_assert_stdlib";
1439 * File name selection pattern
1441 tSCC zBroken_Assert_StdlibList[] =
1444 * Machine/OS name selection pattern
1446 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1449 * content selection pattern - do fix if pattern found
1451 tSCC zBroken_Assert_StdlibSelect0[] =
1452 "exit *\\(|abort *\\(";
1455 * content bypass pattern - skip fix if pattern found
1457 tSCC zBroken_Assert_StdlibBypass0[] =
1458 "include.*stdlib\\.h";
1460 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1461 static tTestDesc aBroken_Assert_StdlibTests[] = {
1462 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1463 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1466 * Fix Command Arguments for Broken_Assert_Stdlib
1468 static const char* apzBroken_Assert_StdlibPatch[] = {
1470 "#ifdef __cplusplus\n\
1471 #include <stdlib.h>\n\
1475 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1477 * Description of Broken_Cabs fix
1479 tSCC zBroken_CabsName[] =
1483 * File name selection pattern
1485 tSCC zBroken_CabsList[] =
1486 "math.h\0architecture/*/math.h\0";
1488 * Machine/OS name selection pattern
1490 #define apzBroken_CabsMachs (const char**)NULL
1493 * content selection pattern - do fix if pattern found
1495 tSCC zBroken_CabsSelect0[] =
1496 "^extern[ \t]+double[ \t]+cabs";
1498 #define BROKEN_CABS_TEST_CT 1
1499 static tTestDesc aBroken_CabsTests[] = {
1500 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1503 * Fix Command Arguments for Broken_Cabs
1505 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1506 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1507 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1510 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1512 * Description of Broken_Nan fix
1514 tSCC zBroken_NanName[] =
1518 * File name selection pattern
1520 tSCC zBroken_NanList[] =
1521 "architecture/ppc/math.h\0architecture/*/math.h\0";
1523 * Machine/OS name selection pattern
1525 #define apzBroken_NanMachs (const char**)NULL
1528 * content selection pattern - do fix if pattern found
1530 tSCC zBroken_NanSelect0[] =
1531 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1534 * content bypass pattern - skip fix if pattern found
1536 tSCC zBroken_NanBypass0[] =
1539 #define BROKEN_NAN_TEST_CT 2
1540 static tTestDesc aBroken_NanTests[] = {
1541 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1542 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1545 * Fix Command Arguments for Broken_Nan
1547 static const char* apzBroken_NanPatch[] = {
1552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1554 * Description of Bsd_Stdio_Attrs_Conflict fix
1556 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1557 "bsd_stdio_attrs_conflict";
1560 * File name selection pattern
1562 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1565 * Machine/OS name selection pattern
1567 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1570 (const char*)NULL };
1573 * content selection pattern - do fix if pattern found
1575 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1576 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1578 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1579 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1580 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1583 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1585 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1587 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1588 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1589 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1594 * Description of Ctrl_Quotes_Def fix
1596 tSCC zCtrl_Quotes_DefName[] =
1600 * File name selection pattern
1602 #define zCtrl_Quotes_DefList (char*)NULL
1604 * Machine/OS name selection pattern
1606 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1609 * content selection pattern - do fix if pattern found
1611 tSCC zCtrl_Quotes_DefSelect0[] =
1612 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1614 #define CTRL_QUOTES_DEF_TEST_CT 1
1615 static tTestDesc aCtrl_Quotes_DefTests[] = {
1616 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1619 * Fix Command Arguments for Ctrl_Quotes_Def
1621 static const char* apzCtrl_Quotes_DefPatch[] = {
1626 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1628 * Description of Ctrl_Quotes_Use fix
1630 tSCC zCtrl_Quotes_UseName[] =
1634 * File name selection pattern
1636 #define zCtrl_Quotes_UseList (char*)NULL
1638 * Machine/OS name selection pattern
1640 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1643 * content selection pattern - do fix if pattern found
1645 tSCC zCtrl_Quotes_UseSelect0[] =
1646 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1648 #define CTRL_QUOTES_USE_TEST_CT 1
1649 static tTestDesc aCtrl_Quotes_UseTests[] = {
1650 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1653 * Fix Command Arguments for Ctrl_Quotes_Use
1655 static const char* apzCtrl_Quotes_UsePatch[] = {
1660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1662 * Description of Cxx_Unready fix
1664 tSCC zCxx_UnreadyName[] =
1668 * File name selection pattern
1670 tSCC zCxx_UnreadyList[] =
1671 "sys/mman.h\0rpc/types.h\0";
1673 * Machine/OS name selection pattern
1675 #define apzCxx_UnreadyMachs (const char**)NULL
1678 * content selection pattern - do fix if pattern found
1680 tSCC zCxx_UnreadySelect0[] =
1684 * content bypass pattern - skip fix if pattern found
1686 tSCC zCxx_UnreadyBypass0[] =
1687 "\"C\"|__BEGIN_DECLS";
1689 #define CXX_UNREADY_TEST_CT 2
1690 static tTestDesc aCxx_UnreadyTests[] = {
1691 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1692 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1695 * Fix Command Arguments for Cxx_Unready
1697 static const char* apzCxx_UnreadyPatch[] = {
1699 "#ifdef __cplusplus\n\
1702 "#ifdef __cplusplus\n\
1707 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1709 * Description of Darwin_Externc fix
1711 tSCC zDarwin_ExterncName[] =
1715 * File name selection pattern
1717 tSCC zDarwin_ExterncList[] =
1718 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1720 * Machine/OS name selection pattern
1722 tSCC* apzDarwin_ExterncMachs[] = {
1724 (const char*)NULL };
1727 * content bypass pattern - skip fix if pattern found
1729 tSCC zDarwin_ExterncBypass0[] =
1731 tSCC zDarwin_ExterncBypass1[] =
1734 #define DARWIN_EXTERNC_TEST_CT 2
1735 static tTestDesc aDarwin_ExterncTests[] = {
1736 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1737 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1740 * Fix Command Arguments for Darwin_Externc
1742 static const char* apzDarwin_ExterncPatch[] = {
1744 "#ifdef __cplusplus\n\
1747 "#ifdef __cplusplus\n\
1752 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1754 * Description of Darwin_Gcc4_Breakage fix
1756 tSCC zDarwin_Gcc4_BreakageName[] =
1757 "darwin_gcc4_breakage";
1760 * File name selection pattern
1762 tSCC zDarwin_Gcc4_BreakageList[] =
1763 "AvailabilityMacros.h\0";
1765 * Machine/OS name selection pattern
1767 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1769 (const char*)NULL };
1772 * content selection pattern - do fix if pattern found
1774 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1775 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1777 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1778 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1779 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1782 * Fix Command Arguments for Darwin_Gcc4_Breakage
1784 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1786 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1789 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1791 * Description of Darwin_Private_Extern fix
1793 tSCC zDarwin_Private_ExternName[] =
1794 "darwin_private_extern";
1797 * File name selection pattern
1799 tSCC zDarwin_Private_ExternList[] =
1802 * Machine/OS name selection pattern
1804 tSCC* apzDarwin_Private_ExternMachs[] = {
1806 (const char*)NULL };
1809 * content selection pattern - do fix if pattern found
1811 tSCC zDarwin_Private_ExternSelect0[] =
1812 "__private_extern__ [a-z_]+ _dyld_";
1814 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1815 static tTestDesc aDarwin_Private_ExternTests[] = {
1816 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1819 * Fix Command Arguments for Darwin_Private_Extern
1821 static const char* apzDarwin_Private_ExternPatch[] = {
1824 "__private_extern__",
1827 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1829 * Description of Dec_Intern_Asm fix
1831 tSCC zDec_Intern_AsmName[] =
1835 * File name selection pattern
1837 tSCC zDec_Intern_AsmList[] =
1840 * Machine/OS name selection pattern
1842 #define apzDec_Intern_AsmMachs (const char**)NULL
1843 #define DEC_INTERN_ASM_TEST_CT 0
1844 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1847 * Fix Command Arguments for Dec_Intern_Asm
1849 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
1850 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1852 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1856 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1858 * Description of Djgpp_Wchar_H fix
1860 tSCC zDjgpp_Wchar_HName[] =
1864 * File name selection pattern
1866 #define zDjgpp_Wchar_HList (char*)NULL
1868 * Machine/OS name selection pattern
1870 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1873 * content selection pattern - do fix if pattern found
1875 tSCC zDjgpp_Wchar_HSelect0[] =
1879 * content bypass pattern - skip fix if pattern found
1881 tSCC zDjgpp_Wchar_HBypass0[] =
1884 #define DJGPP_WCHAR_H_TEST_CT 2
1885 static tTestDesc aDjgpp_Wchar_HTests[] = {
1886 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1887 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1890 * Fix Command Arguments for Djgpp_Wchar_H
1892 static const char* apzDjgpp_Wchar_HPatch[] = {
1895 #include <sys/djtypes.h>",
1896 "#include <stddef.h>",
1899 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1901 * Description of Ecd_Cursor fix
1903 tSCC zEcd_CursorName[] =
1907 * File name selection pattern
1909 tSCC zEcd_CursorList[] =
1910 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
1912 * Machine/OS name selection pattern
1914 #define apzEcd_CursorMachs (const char**)NULL
1917 * content selection pattern - do fix if pattern found
1919 tSCC zEcd_CursorSelect0[] =
1922 #define ECD_CURSOR_TEST_CT 1
1923 static tTestDesc aEcd_CursorTests[] = {
1924 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1927 * Fix Command Arguments for Ecd_Cursor
1929 static const char* apzEcd_CursorPatch[] = {
1934 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1936 * Description of Exception_Structure fix
1938 tSCC zException_StructureName[] =
1939 "exception_structure";
1942 * File name selection pattern
1944 tSCC zException_StructureList[] =
1947 * Machine/OS name selection pattern
1949 #define apzException_StructureMachs (const char**)NULL
1952 * content selection pattern - do fix if pattern found
1954 tSCC zException_StructureSelect0[] =
1958 * content bypass pattern - skip fix if pattern found
1960 tSCC zException_StructureBypass0[] =
1961 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
1963 #define EXCEPTION_STRUCTURE_TEST_CT 2
1964 static tTestDesc aException_StructureTests[] = {
1965 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
1966 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
1969 * Fix Command Arguments for Exception_Structure
1971 static const char* apzException_StructurePatch[] = {
1973 "struct exception;\n",
1976 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1978 * Description of Freebsd_Gcc3_Breakage fix
1980 tSCC zFreebsd_Gcc3_BreakageName[] =
1981 "freebsd_gcc3_breakage";
1984 * File name selection pattern
1986 tSCC zFreebsd_Gcc3_BreakageList[] =
1989 * Machine/OS name selection pattern
1991 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1993 (const char*)NULL };
1996 * content selection pattern - do fix if pattern found
1998 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1999 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2002 * content bypass pattern - skip fix if pattern found
2004 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2005 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2007 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2008 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2009 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2010 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2013 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2015 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2017 "%0 || __GNUC__ >= 3",
2020 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2022 * Description of Freebsd_Gcc4_Breakage fix
2024 tSCC zFreebsd_Gcc4_BreakageName[] =
2025 "freebsd_gcc4_breakage";
2028 * File name selection pattern
2030 tSCC zFreebsd_Gcc4_BreakageList[] =
2033 * Machine/OS name selection pattern
2035 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2037 (const char*)NULL };
2040 * content selection pattern - do fix if pattern found
2042 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2043 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2045 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2046 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2047 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2050 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2052 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2054 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2059 * Description of Glibc_C99_Inline_1 fix
2061 tSCC zGlibc_C99_Inline_1Name[] =
2062 "glibc_c99_inline_1";
2065 * File name selection pattern
2067 tSCC zGlibc_C99_Inline_1List[] =
2068 "features.h\0*/features.h\0";
2070 * Machine/OS name selection pattern
2072 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2075 * content selection pattern - do fix if pattern found
2077 tSCC zGlibc_C99_Inline_1Select0[] =
2078 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2080 #define GLIBC_C99_INLINE_1_TEST_CT 1
2081 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2082 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2085 * Fix Command Arguments for Glibc_C99_Inline_1
2087 static const char* apzGlibc_C99_Inline_1Patch[] = {
2089 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2092 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2094 * Description of Glibc_C99_Inline_1a fix
2096 tSCC zGlibc_C99_Inline_1aName[] =
2097 "glibc_c99_inline_1a";
2100 * File name selection pattern
2102 tSCC zGlibc_C99_Inline_1aList[] =
2103 "features.h\0*/features.h\0";
2105 * Machine/OS name selection pattern
2107 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2110 * content selection pattern - do fix if pattern found
2112 tSCC zGlibc_C99_Inline_1aSelect0[] =
2113 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2114 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2116 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2117 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2118 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2121 * Fix Command Arguments for Glibc_C99_Inline_1a
2123 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2125 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2129 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2131 * Description of Glibc_C99_Inline_2 fix
2133 tSCC zGlibc_C99_Inline_2Name[] =
2134 "glibc_c99_inline_2";
2137 * File name selection pattern
2139 tSCC zGlibc_C99_Inline_2List[] =
2140 "sys/stat.h\0*/sys/stat.h\0";
2142 * Machine/OS name selection pattern
2144 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2147 * content selection pattern - do fix if pattern found
2149 tSCC zGlibc_C99_Inline_2Select0[] =
2150 "extern __inline__ int";
2152 #define GLIBC_C99_INLINE_2_TEST_CT 1
2153 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2154 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2157 * Fix Command Arguments for Glibc_C99_Inline_2
2159 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2160 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2163 __inline__ int \\1/",
2164 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2167 __inline__ int __REDIRECT\\1 (\\2/",
2168 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2174 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2176 * Description of Glibc_C99_Inline_3 fix
2178 tSCC zGlibc_C99_Inline_3Name[] =
2179 "glibc_c99_inline_3";
2182 * File name selection pattern
2184 tSCC zGlibc_C99_Inline_3List[] =
2185 "bits/string2.h\0*/bits/string2.h\0";
2187 * Machine/OS name selection pattern
2189 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2192 * content selection pattern - do fix if pattern found
2194 tSCC zGlibc_C99_Inline_3Select0[] =
2198 * content bypass pattern - skip fix if pattern found
2200 tSCC zGlibc_C99_Inline_3Bypass0[] =
2201 "__extern_inline|__GNU_STDC_INLINE__";
2203 #define GLIBC_C99_INLINE_3_TEST_CT 2
2204 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2205 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2206 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2209 * Fix Command Arguments for Glibc_C99_Inline_3
2211 static const char* apzGlibc_C99_Inline_3Patch[] = {
2213 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2214 "^# ifdef __cplusplus$",
2217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2219 * Description of Glibc_C99_Inline_4 fix
2221 tSCC zGlibc_C99_Inline_4Name[] =
2222 "glibc_c99_inline_4";
2225 * File name selection pattern
2227 tSCC zGlibc_C99_Inline_4List[] =
2228 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2230 * Machine/OS name selection pattern
2232 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2235 * content selection pattern - do fix if pattern found
2237 tSCC zGlibc_C99_Inline_4Select0[] =
2238 "(^| )extern __inline";
2241 * content bypass pattern - skip fix if pattern found
2243 tSCC zGlibc_C99_Inline_4Bypass0[] =
2244 "__extern_inline|__gnu_inline__";
2246 #define GLIBC_C99_INLINE_4_TEST_CT 2
2247 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2248 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2249 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2252 * Fix Command Arguments for Glibc_C99_Inline_4
2254 static const char* apzGlibc_C99_Inline_4Patch[] = {
2256 "%0 __attribute__ ((__gnu_inline__))",
2259 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2261 * Description of Glibc_Mutex_Init fix
2263 tSCC zGlibc_Mutex_InitName[] =
2267 * File name selection pattern
2269 tSCC zGlibc_Mutex_InitList[] =
2272 * Machine/OS name selection pattern
2274 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2277 * content selection pattern - do fix if pattern found
2279 tSCC zGlibc_Mutex_InitSelect0[] =
2280 "\\{ *\\{ *0, *\\} *\\}";
2282 #define GLIBC_MUTEX_INIT_TEST_CT 1
2283 static tTestDesc aGlibc_Mutex_InitTests[] = {
2284 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2287 * Fix Command Arguments for Glibc_Mutex_Init
2289 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2290 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2292 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2294 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2295 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2296 "-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/",
2297 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2298 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2303 * Description of Gnu_Types fix
2305 tSCC zGnu_TypesName[] =
2309 * File name selection pattern
2311 tSCC zGnu_TypesList[] =
2312 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2314 * Machine/OS name selection pattern
2316 tSCC* apzGnu_TypesMachs[] = {
2317 "*-*-solaris2.1[0-9]*",
2318 (const char*)NULL };
2321 * content selection pattern - do fix if pattern found
2323 tSCC zGnu_TypesSelect0[] =
2324 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2327 * content bypass pattern - skip fix if pattern found
2329 tSCC zGnu_TypesBypass0[] =
2330 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2332 #define GNU_TYPES_TEST_CT 2
2333 static tTestDesc aGnu_TypesTests[] = {
2334 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2335 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2338 * Fix Command Arguments for Gnu_Types
2340 static const char* apzGnu_TypesPatch[] = {
2344 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2346 * Description of Hp_Inline fix
2348 tSCC zHp_InlineName[] =
2352 * File name selection pattern
2354 tSCC zHp_InlineList[] =
2355 "sys/spinlock.h\0machine/machparam.h\0";
2357 * Machine/OS name selection pattern
2359 #define apzHp_InlineMachs (const char**)NULL
2362 * content selection pattern - do fix if pattern found
2364 tSCC zHp_InlineSelect0[] =
2365 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2367 #define HP_INLINE_TEST_CT 1
2368 static tTestDesc aHp_InlineTests[] = {
2369 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2372 * Fix Command Arguments for Hp_Inline
2374 static const char* apzHp_InlinePatch[] = {
2377 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2380 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2382 * Description of Hp_Sysfile fix
2384 tSCC zHp_SysfileName[] =
2388 * File name selection pattern
2390 tSCC zHp_SysfileList[] =
2393 * Machine/OS name selection pattern
2395 #define apzHp_SysfileMachs (const char**)NULL
2398 * content selection pattern - do fix if pattern found
2400 tSCC zHp_SysfileSelect0[] =
2403 #define HP_SYSFILE_TEST_CT 1
2404 static tTestDesc aHp_SysfileTests[] = {
2405 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2408 * Fix Command Arguments for Hp_Sysfile
2410 static const char* apzHp_SysfilePatch[] = {
2412 "(struct file *, ...)",
2416 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2418 * Description of Hppa_Hpux_Fp_Macros fix
2420 tSCC zHppa_Hpux_Fp_MacrosName[] =
2421 "hppa_hpux_fp_macros";
2424 * File name selection pattern
2426 tSCC zHppa_Hpux_Fp_MacrosList[] =
2429 * Machine/OS name selection pattern
2431 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2433 (const char*)NULL };
2436 * content selection pattern - do fix if pattern found
2438 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2439 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2440 #[ \t]*define[ \t]*FP_ZERO.*\n\
2441 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2442 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2443 #[ \t]*define[ \t]*FP_NAN.*\n";
2445 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2446 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2447 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2450 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2452 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2454 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2455 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
2456 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2458 #ifdef _INCLUDE_HPUX_SOURCE\n",
2461 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2463 * Description of Hpux10_Cpp_Pow_Inline fix
2465 tSCC zHpux10_Cpp_Pow_InlineName[] =
2466 "hpux10_cpp_pow_inline";
2469 * File name selection pattern
2471 tSCC zHpux10_Cpp_Pow_InlineList[] =
2472 "fixinc-test-limits.h\0math.h\0";
2474 * Machine/OS name selection pattern
2476 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2479 * content selection pattern - do fix if pattern found
2481 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2482 "^# +ifdef +__cplusplus\n\
2484 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2485 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2487 +extern +\"C\" +\\{\n\
2491 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2492 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2493 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2496 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2498 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2503 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2505 * Description of Hpux11_Cpp_Pow_Inline fix
2507 tSCC zHpux11_Cpp_Pow_InlineName[] =
2508 "hpux11_cpp_pow_inline";
2511 * File name selection pattern
2513 tSCC zHpux11_Cpp_Pow_InlineList[] =
2516 * Machine/OS name selection pattern
2518 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2521 * content selection pattern - do fix if pattern found
2523 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2524 " +inline double pow\\(double d,int expon\\) \\{\n\
2525 +return pow\\(d, \\(double\\)expon\\);\n\
2528 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2529 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2530 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2533 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2535 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2540 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2542 * Description of Hpux10_Ctype_Declarations1 fix
2544 tSCC zHpux10_Ctype_Declarations1Name[] =
2545 "hpux10_ctype_declarations1";
2548 * File name selection pattern
2550 tSCC zHpux10_Ctype_Declarations1List[] =
2553 * Machine/OS name selection pattern
2555 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2558 * content selection pattern - do fix if pattern found
2560 tSCC zHpux10_Ctype_Declarations1Select0[] =
2561 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2564 * content bypass pattern - skip fix if pattern found
2566 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2567 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2569 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2570 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2571 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2572 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2575 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2577 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2579 "#ifdef _PROTOTYPES\n\
2580 extern int __tolower(int);\n\
2581 extern int __toupper(int);\n\
2582 #else /* NOT _PROTOTYPES */\n\
2583 extern int __tolower();\n\
2584 extern int __toupper();\n\
2585 #endif /* _PROTOTYPES */\n\n\
2589 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2591 * Description of Hpux10_Ctype_Declarations2 fix
2593 tSCC zHpux10_Ctype_Declarations2Name[] =
2594 "hpux10_ctype_declarations2";
2597 * File name selection pattern
2599 tSCC zHpux10_Ctype_Declarations2List[] =
2602 * Machine/OS name selection pattern
2604 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2607 * content selection pattern - do fix if pattern found
2609 tSCC zHpux10_Ctype_Declarations2Select0[] =
2610 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2613 * content bypass pattern - skip fix if pattern found
2615 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2616 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2618 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2619 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2620 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2621 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2624 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2626 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2629 #ifdef _PROTOTYPES\n\
2630 extern int _isalnum(int);\n\
2631 extern int _isalpha(int);\n\
2632 extern int _iscntrl(int);\n\
2633 extern int _isdigit(int);\n\
2634 extern int _isgraph(int);\n\
2635 extern int _islower(int);\n\
2636 extern int _isprint(int);\n\
2637 extern int _ispunct(int);\n\
2638 extern int _isspace(int);\n\
2639 extern int _isupper(int);\n\
2640 extern int _isxdigit(int);\n\
2641 # else /* not _PROTOTYPES */\n\
2642 extern int _isalnum();\n\
2643 extern int _isalpha();\n\
2644 extern int _iscntrl();\n\
2645 extern int _isdigit();\n\
2646 extern int _isgraph();\n\
2647 extern int _islower();\n\
2648 extern int _isprint();\n\
2649 extern int _ispunct();\n\
2650 extern int _isspace();\n\
2651 extern int _isupper();\n\
2652 extern int _isxdigit();\n\
2653 #endif /* _PROTOTYPES */\n",
2656 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2658 * Description of Hpux10_Stdio_Declarations fix
2660 tSCC zHpux10_Stdio_DeclarationsName[] =
2661 "hpux10_stdio_declarations";
2664 * File name selection pattern
2666 tSCC zHpux10_Stdio_DeclarationsList[] =
2669 * Machine/OS name selection pattern
2671 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2674 * content selection pattern - do fix if pattern found
2676 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2677 "^#[ \t]*define _iob[ \t]*__iob";
2680 * content bypass pattern - skip fix if pattern found
2682 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2683 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2685 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2686 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2687 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2688 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2691 * Fix Command Arguments for Hpux10_Stdio_Declarations
2693 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2696 # if defined(__STDC__) || defined(__cplusplus)\n\
2697 extern int snprintf(char *, size_t, const char *, ...);\n\
2698 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2699 # else /* not __STDC__) || __cplusplus */\n\
2700 extern int snprintf();\n\
2701 extern int vsnprintf();\n\
2702 # endif /* __STDC__) || __cplusplus */\n",
2705 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2707 * Description of Hpux11_Abs fix
2709 tSCC zHpux11_AbsName[] =
2713 * File name selection pattern
2715 tSCC zHpux11_AbsList[] =
2718 * Machine/OS name selection pattern
2720 tSCC* apzHpux11_AbsMachs[] = {
2722 (const char*)NULL };
2725 * content selection pattern - do fix if pattern found
2727 tSCC zHpux11_AbsSelect0[] =
2728 "ifndef _MATH_INCLUDED";
2730 #define HPUX11_ABS_TEST_CT 1
2731 static tTestDesc aHpux11_AbsTests[] = {
2732 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2735 * Fix Command Arguments for Hpux11_Abs
2737 static const char* apzHpux11_AbsPatch[] = {
2739 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2742 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2744 * Description of Hpux11_Fabsf fix
2746 tSCC zHpux11_FabsfName[] =
2750 * File name selection pattern
2752 tSCC zHpux11_FabsfList[] =
2755 * Machine/OS name selection pattern
2757 #define apzHpux11_FabsfMachs (const char**)NULL
2760 * content selection pattern - do fix if pattern found
2762 tSCC zHpux11_FabsfSelect0[] =
2763 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2766 * content bypass pattern - skip fix if pattern found
2768 tSCC zHpux11_FabsfBypass0[] =
2771 #define HPUX11_FABSF_TEST_CT 2
2772 static tTestDesc aHpux11_FabsfTests[] = {
2773 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2774 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2777 * Fix Command Arguments for Hpux11_Fabsf
2779 static const char* apzHpux11_FabsfPatch[] = {
2781 "#ifndef __cplusplus\n\
2786 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2788 * Description of Hpux11_Pthread_Const fix
2790 tSCC zHpux11_Pthread_ConstName[] =
2791 "hpux11_pthread_const";
2794 * File name selection pattern
2796 tSCC zHpux11_Pthread_ConstList[] =
2799 * Machine/OS name selection pattern
2801 tSCC* apzHpux11_Pthread_ConstMachs[] = {
2802 "*-hp-hpux11.[0-3]*",
2803 (const char*)NULL };
2806 * content selection pattern - do fix if pattern found
2808 tSCC zHpux11_Pthread_ConstSelect0[] =
2809 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
2811 #define HPUX11_PTHREAD_CONST_TEST_CT 1
2812 static tTestDesc aHpux11_Pthread_ConstTests[] = {
2813 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
2816 * Fix Command Arguments for Hpux11_Pthread_Const
2818 static const char* apzHpux11_Pthread_ConstPatch[] = {
2820 "#define __POINTER_SET\t\t((void *) 1L)",
2823 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2825 * Description of Hpux11_Size_T fix
2827 tSCC zHpux11_Size_TName[] =
2831 * File name selection pattern
2833 #define zHpux11_Size_TList (char*)NULL
2835 * Machine/OS name selection pattern
2837 tSCC* apzHpux11_Size_TMachs[] = {
2839 (const char*)NULL };
2842 * content selection pattern - do fix if pattern found
2844 tSCC zHpux11_Size_TSelect0[] =
2847 #define HPUX11_SIZE_T_TEST_CT 1
2848 static tTestDesc aHpux11_Size_TTests[] = {
2849 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2852 * Fix Command Arguments for Hpux11_Size_T
2854 static const char* apzHpux11_Size_TPatch[] = {
2859 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2861 * Description of Hpux11_Snprintf fix
2863 tSCC zHpux11_SnprintfName[] =
2867 * File name selection pattern
2869 tSCC zHpux11_SnprintfList[] =
2872 * Machine/OS name selection pattern
2874 #define apzHpux11_SnprintfMachs (const char**)NULL
2877 * content selection pattern - do fix if pattern found
2879 tSCC zHpux11_SnprintfSelect0[] =
2880 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2882 #define HPUX11_SNPRINTF_TEST_CT 1
2883 static tTestDesc aHpux11_SnprintfTests[] = {
2884 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2887 * Fix Command Arguments for Hpux11_Snprintf
2889 static const char* apzHpux11_SnprintfPatch[] = {
2894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2896 * Description of Hpux11_Uint32_C fix
2898 tSCC zHpux11_Uint32_CName[] =
2902 * File name selection pattern
2904 tSCC zHpux11_Uint32_CList[] =
2907 * Machine/OS name selection pattern
2909 #define apzHpux11_Uint32_CMachs (const char**)NULL
2912 * content selection pattern - do fix if pattern found
2914 tSCC zHpux11_Uint32_CSelect0[] =
2915 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2917 #define HPUX11_UINT32_C_TEST_CT 1
2918 static tTestDesc aHpux11_Uint32_CTests[] = {
2919 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2922 * Fix Command Arguments for Hpux11_Uint32_C
2924 static const char* apzHpux11_Uint32_CPatch[] = {
2926 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2931 * Description of Hpux11_Vsnprintf fix
2933 tSCC zHpux11_VsnprintfName[] =
2937 * File name selection pattern
2939 tSCC zHpux11_VsnprintfList[] =
2942 * Machine/OS name selection pattern
2944 #define apzHpux11_VsnprintfMachs (const char**)NULL
2947 * content selection pattern - do fix if pattern found
2949 tSCC zHpux11_VsnprintfSelect0[] =
2950 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2952 #define HPUX11_VSNPRINTF_TEST_CT 1
2953 static tTestDesc aHpux11_VsnprintfTests[] = {
2954 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2957 * Fix Command Arguments for Hpux11_Vsnprintf
2959 static const char* apzHpux11_VsnprintfPatch[] = {
2964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2966 * Description of Hpux8_Bogus_Inlines fix
2968 tSCC zHpux8_Bogus_InlinesName[] =
2969 "hpux8_bogus_inlines";
2972 * File name selection pattern
2974 tSCC zHpux8_Bogus_InlinesList[] =
2977 * Machine/OS name selection pattern
2979 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2982 * content selection pattern - do fix if pattern found
2984 tSCC zHpux8_Bogus_InlinesSelect0[] =
2988 * content bypass pattern - skip fix if pattern found
2990 tSCC zHpux8_Bogus_InlinesBypass0[] =
2993 #define HPUX8_BOGUS_INLINES_TEST_CT 2
2994 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2995 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
2996 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2999 * Fix Command Arguments for Hpux8_Bogus_Inlines
3001 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3002 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3003 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3004 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3005 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3010 * Description of Hpux_Ctype_Macros fix
3012 tSCC zHpux_Ctype_MacrosName[] =
3013 "hpux_ctype_macros";
3016 * File name selection pattern
3018 tSCC zHpux_Ctype_MacrosList[] =
3021 * Machine/OS name selection pattern
3023 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3026 * content selection pattern - do fix if pattern found
3028 tSCC zHpux_Ctype_MacrosSelect0[] =
3029 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3031 #define HPUX_CTYPE_MACROS_TEST_CT 1
3032 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3033 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3036 * Fix Command Arguments for Hpux_Ctype_Macros
3038 static const char* apzHpux_Ctype_MacrosPatch[] = {
3043 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3045 * Description of Hpux_Htonl fix
3047 tSCC zHpux_HtonlName[] =
3051 * File name selection pattern
3053 tSCC zHpux_HtonlList[] =
3056 * Machine/OS name selection pattern
3058 #define apzHpux_HtonlMachs (const char**)NULL
3061 * content selection pattern - do fix if pattern found
3063 tSCC zHpux_HtonlSelect0[] =
3064 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3066 \\* Macros for number representation conversion\\.\n\
3070 #define HPUX_HTONL_TEST_CT 1
3071 static tTestDesc aHpux_HtonlTests[] = {
3072 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3075 * Fix Command Arguments for Hpux_Htonl
3077 static const char* apzHpux_HtonlPatch[] = {
3083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3085 * Description of Hpux_Long_Double fix
3087 tSCC zHpux_Long_DoubleName[] =
3091 * File name selection pattern
3093 tSCC zHpux_Long_DoubleList[] =
3096 * Machine/OS name selection pattern
3098 #define apzHpux_Long_DoubleMachs (const char**)NULL
3101 * content selection pattern - do fix if pattern found
3103 tSCC zHpux_Long_DoubleSelect0[] =
3104 "extern[ \t]long_double[ \t]strtold";
3107 * content bypass pattern - skip fix if pattern found
3109 tSCC zHpux_Long_DoubleBypass0[] =
3112 #define HPUX_LONG_DOUBLE_TEST_CT 2
3113 static tTestDesc aHpux_Long_DoubleTests[] = {
3114 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3115 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3118 * Fix Command Arguments for Hpux_Long_Double
3120 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3121 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3122 "-e", "s/long_double/long double/g",
3125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3127 * Description of Hpux_Systime fix
3129 tSCC zHpux_SystimeName[] =
3133 * File name selection pattern
3135 tSCC zHpux_SystimeList[] =
3138 * Machine/OS name selection pattern
3140 #define apzHpux_SystimeMachs (const char**)NULL
3143 * content selection pattern - do fix if pattern found
3145 tSCC zHpux_SystimeSelect0[] =
3146 "^extern struct sigevent;";
3148 #define HPUX_SYSTIME_TEST_CT 1
3149 static tTestDesc aHpux_SystimeTests[] = {
3150 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3153 * Fix Command Arguments for Hpux_Systime
3155 static const char* apzHpux_SystimePatch[] = {
3160 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3162 * Description of Hpux_Spu_Info fix
3164 tSCC zHpux_Spu_InfoName[] =
3168 * File name selection pattern
3170 tSCC zHpux_Spu_InfoList[] =
3171 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3173 * Machine/OS name selection pattern
3175 tSCC* apzHpux_Spu_InfoMachs[] = {
3177 (const char*)NULL };
3180 * content selection pattern - do fix if pattern found
3182 tSCC zHpux_Spu_InfoSelect0[] =
3183 "^.*extern.*spu_info.*";
3185 #define HPUX_SPU_INFO_TEST_CT 1
3186 static tTestDesc aHpux_Spu_InfoTests[] = {
3187 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3190 * Fix Command Arguments for Hpux_Spu_Info
3192 static const char* apzHpux_Spu_InfoPatch[] = {
3199 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3201 * Description of Hpux11_Extern_Sendfile fix
3203 tSCC zHpux11_Extern_SendfileName[] =
3204 "hpux11_extern_sendfile";
3207 * File name selection pattern
3209 tSCC zHpux11_Extern_SendfileList[] =
3212 * Machine/OS name selection pattern
3214 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3215 "*-hp-hpux11.[12]*",
3216 (const char*)NULL };
3219 * content selection pattern - do fix if pattern found
3221 tSCC zHpux11_Extern_SendfileSelect0[] =
3222 "^[ \t]*extern sbsize_t sendfile.*\n\
3225 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3226 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3227 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3230 * Fix Command Arguments for Hpux11_Extern_Sendfile
3232 static const char* apzHpux11_Extern_SendfilePatch[] = {
3234 "#ifndef _APP32_64BIT_OFF_T\n\
3238 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3240 * Description of Hpux11_Extern_Sendpath fix
3242 tSCC zHpux11_Extern_SendpathName[] =
3243 "hpux11_extern_sendpath";
3246 * File name selection pattern
3248 tSCC zHpux11_Extern_SendpathList[] =
3251 * Machine/OS name selection pattern
3253 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3254 "*-hp-hpux11.[12]*",
3255 (const char*)NULL };
3258 * content selection pattern - do fix if pattern found
3260 tSCC zHpux11_Extern_SendpathSelect0[] =
3261 "^[ \t]*extern sbsize_t sendpath.*\n\
3264 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3265 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3266 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3269 * Fix Command Arguments for Hpux11_Extern_Sendpath
3271 static const char* apzHpux11_Extern_SendpathPatch[] = {
3273 "#ifndef _APP32_64BIT_OFF_T\n\
3277 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3279 * Description of Hpux_Extern_Errno fix
3281 tSCC zHpux_Extern_ErrnoName[] =
3282 "hpux_extern_errno";
3285 * File name selection pattern
3287 tSCC zHpux_Extern_ErrnoList[] =
3290 * Machine/OS name selection pattern
3292 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3294 "*-hp-hpux11.[0-2]*",
3295 (const char*)NULL };
3298 * content selection pattern - do fix if pattern found
3300 tSCC zHpux_Extern_ErrnoSelect0[] =
3301 "^[ \t]*extern int errno;$";
3303 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3304 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3305 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3308 * Fix Command Arguments for Hpux_Extern_Errno
3310 static const char* apzHpux_Extern_ErrnoPatch[] = {
3312 "#ifdef __cplusplus\n\
3316 #ifdef __cplusplus\n\
3321 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3323 * Description of Hpux_Pthread_Initializers fix
3325 tSCC zHpux_Pthread_InitializersName[] =
3326 "hpux_pthread_initializers";
3329 * File name selection pattern
3331 tSCC zHpux_Pthread_InitializersList[] =
3334 * Machine/OS name selection pattern
3336 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3337 "*-hp-hpux11.[0-3]*",
3338 (const char*)NULL };
3339 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3340 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3343 * Fix Command Arguments for Hpux_Pthread_Initializers
3345 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3346 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3347 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3348 "-e", "/^[ \t]*0$/d",
3349 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3350 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3351 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3352 "-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\\\\@",
3353 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3354 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3355 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3356 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3357 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3358 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3361 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3363 * Description of Huge_Val_Hex fix
3365 tSCC zHuge_Val_HexName[] =
3369 * File name selection pattern
3371 tSCC zHuge_Val_HexList[] =
3372 "bits/huge_val.h\0";
3374 * Machine/OS name selection pattern
3376 #define apzHuge_Val_HexMachs (const char**)NULL
3379 * content selection pattern - do fix if pattern found
3381 tSCC zHuge_Val_HexSelect0[] =
3382 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3385 * content bypass pattern - skip fix if pattern found
3387 tSCC zHuge_Val_HexBypass0[] =
3388 "__builtin_huge_val";
3390 #define HUGE_VAL_HEX_TEST_CT 2
3391 static tTestDesc aHuge_Val_HexTests[] = {
3392 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3393 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3396 * Fix Command Arguments for Huge_Val_Hex
3398 static const char* apzHuge_Val_HexPatch[] = {
3400 "#define HUGE_VAL (__builtin_huge_val())\n",
3403 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3405 * Description of Huge_Valf_Hex fix
3407 tSCC zHuge_Valf_HexName[] =
3411 * File name selection pattern
3413 tSCC zHuge_Valf_HexList[] =
3414 "bits/huge_val.h\0";
3416 * Machine/OS name selection pattern
3418 #define apzHuge_Valf_HexMachs (const char**)NULL
3421 * content selection pattern - do fix if pattern found
3423 tSCC zHuge_Valf_HexSelect0[] =
3424 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3427 * content bypass pattern - skip fix if pattern found
3429 tSCC zHuge_Valf_HexBypass0[] =
3430 "__builtin_huge_valf";
3432 #define HUGE_VALF_HEX_TEST_CT 2
3433 static tTestDesc aHuge_Valf_HexTests[] = {
3434 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3435 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3438 * Fix Command Arguments for Huge_Valf_Hex
3440 static const char* apzHuge_Valf_HexPatch[] = {
3442 "#define HUGE_VALF (__builtin_huge_valf())\n",
3445 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3447 * Description of Huge_Vall_Hex fix
3449 tSCC zHuge_Vall_HexName[] =
3453 * File name selection pattern
3455 tSCC zHuge_Vall_HexList[] =
3456 "bits/huge_val.h\0";
3458 * Machine/OS name selection pattern
3460 #define apzHuge_Vall_HexMachs (const char**)NULL
3463 * content selection pattern - do fix if pattern found
3465 tSCC zHuge_Vall_HexSelect0[] =
3466 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3469 * content bypass pattern - skip fix if pattern found
3471 tSCC zHuge_Vall_HexBypass0[] =
3472 "__builtin_huge_vall";
3474 #define HUGE_VALL_HEX_TEST_CT 2
3475 static tTestDesc aHuge_Vall_HexTests[] = {
3476 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3477 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3480 * Fix Command Arguments for Huge_Vall_Hex
3482 static const char* apzHuge_Vall_HexPatch[] = {
3484 "#define HUGE_VALL (__builtin_huge_vall())\n",
3487 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3489 * Description of Int_Abort_Free_And_Exit fix
3491 tSCC zInt_Abort_Free_And_ExitName[] =
3492 "int_abort_free_and_exit";
3495 * File name selection pattern
3497 tSCC zInt_Abort_Free_And_ExitList[] =
3500 * Machine/OS name selection pattern
3502 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3505 * content selection pattern - do fix if pattern found
3507 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3508 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3511 * content bypass pattern - skip fix if pattern found
3513 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3514 "_CLASSIC_ANSI_TYPES";
3516 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3517 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3518 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3519 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3522 * Fix Command Arguments for Int_Abort_Free_And_Exit
3524 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3531 * Description of Io_Quotes_Def fix
3533 tSCC zIo_Quotes_DefName[] =
3537 * File name selection pattern
3539 #define zIo_Quotes_DefList (char*)NULL
3541 * Machine/OS name selection pattern
3543 #define apzIo_Quotes_DefMachs (const char**)NULL
3546 * content selection pattern - do fix if pattern found
3548 tSCC zIo_Quotes_DefSelect0[] =
3549 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3551 #define IO_QUOTES_DEF_TEST_CT 1
3552 static tTestDesc aIo_Quotes_DefTests[] = {
3553 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3556 * Fix Command Arguments for Io_Quotes_Def
3558 static const char* apzIo_Quotes_DefPatch[] = {
3563 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3565 * Description of Io_Quotes_Use fix
3567 tSCC zIo_Quotes_UseName[] =
3571 * File name selection pattern
3573 #define zIo_Quotes_UseList (char*)NULL
3575 * Machine/OS name selection pattern
3577 #define apzIo_Quotes_UseMachs (const char**)NULL
3580 * content selection pattern - do fix if pattern found
3582 tSCC zIo_Quotes_UseSelect0[] =
3583 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3585 #define IO_QUOTES_USE_TEST_CT 1
3586 static tTestDesc aIo_Quotes_UseTests[] = {
3587 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3590 * Fix Command Arguments for Io_Quotes_Use
3592 static const char* apzIo_Quotes_UsePatch[] = {
3597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3599 * Description of Ip_Missing_Semi fix
3601 tSCC zIp_Missing_SemiName[] =
3605 * File name selection pattern
3607 tSCC zIp_Missing_SemiList[] =
3610 * Machine/OS name selection pattern
3612 #define apzIp_Missing_SemiMachs (const char**)NULL
3615 * content selection pattern - do fix if pattern found
3617 tSCC zIp_Missing_SemiSelect0[] =
3620 #define IP_MISSING_SEMI_TEST_CT 1
3621 static tTestDesc aIp_Missing_SemiTests[] = {
3622 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3625 * Fix Command Arguments for Ip_Missing_Semi
3627 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
3628 "-e", "/^struct/,/^};/s/}$/};/",
3631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3633 * Description of Irix___Restrict fix
3635 tSCC zIrix___RestrictName[] =
3639 * File name selection pattern
3641 tSCC zIrix___RestrictList[] =
3642 "internal/sgimacros.h\0";
3644 * Machine/OS name selection pattern
3646 tSCC* apzIrix___RestrictMachs[] = {
3648 (const char*)NULL };
3651 * content selection pattern - do fix if pattern found
3653 tSCC zIrix___RestrictSelect0[] =
3655 )(#[ \t]*define __restrict restrict)";
3657 #define IRIX___RESTRICT_TEST_CT 1
3658 static tTestDesc aIrix___RestrictTests[] = {
3659 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3662 * Fix Command Arguments for Irix___Restrict
3664 static const char* apzIrix___RestrictPatch[] = {
3666 "%1# ifndef __cplusplus\n\
3671 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3673 * Description of Irix___Generic1 fix
3675 tSCC zIrix___Generic1Name[] =
3679 * File name selection pattern
3681 tSCC zIrix___Generic1List[] =
3682 "internal/math_core.h\0";
3684 * Machine/OS name selection pattern
3686 tSCC* apzIrix___Generic1Machs[] = {
3688 (const char*)NULL };
3691 * content selection pattern - do fix if pattern found
3693 tSCC zIrix___Generic1Select0[] =
3694 "#define ([a-z]+)\\(x\\) *__generic.*";
3696 #define IRIX___GENERIC1_TEST_CT 1
3697 static tTestDesc aIrix___Generic1Tests[] = {
3698 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3701 * Fix Command Arguments for Irix___Generic1
3703 static const char* apzIrix___Generic1Patch[] = {
3705 "extern int %1(double);\n\
3706 extern int %1f(float);\n\
3707 extern int %1l(long double);\n\
3708 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3709 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3715 * Description of Irix___Generic2 fix
3717 tSCC zIrix___Generic2Name[] =
3721 * File name selection pattern
3723 tSCC zIrix___Generic2List[] =
3724 "internal/math_core.h\0";
3726 * Machine/OS name selection pattern
3728 tSCC* apzIrix___Generic2Machs[] = {
3730 (const char*)NULL };
3733 * content selection pattern - do fix if pattern found
3735 tSCC zIrix___Generic2Select0[] =
3736 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3738 #define IRIX___GENERIC2_TEST_CT 1
3739 static tTestDesc aIrix___Generic2Tests[] = {
3740 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3743 * Fix Command Arguments for Irix___Generic2
3745 static const char* apzIrix___Generic2Patch[] = {
3747 "#define %1(x,y) \\\n\
3748 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3749 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3753 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3755 * Description of Irix_Asm_Apostrophe fix
3757 tSCC zIrix_Asm_ApostropheName[] =
3758 "irix_asm_apostrophe";
3761 * File name selection pattern
3763 tSCC zIrix_Asm_ApostropheList[] =
3766 * Machine/OS name selection pattern
3768 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3771 * content selection pattern - do fix if pattern found
3773 tSCC zIrix_Asm_ApostropheSelect0[] =
3774 "^[ \t]*#.*[Ww]e're";
3776 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
3777 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3778 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3781 * Fix Command Arguments for Irix_Asm_Apostrophe
3783 static const char* apzIrix_Asm_ApostrophePatch[] = {
3786 "^([ \t]*#.*[Ww]e)'re",
3789 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3791 * Description of Irix_Limits_Const fix
3793 tSCC zIrix_Limits_ConstName[] =
3794 "irix_limits_const";
3797 * File name selection pattern
3799 tSCC zIrix_Limits_ConstList[] =
3800 "fixinc-test-limits.h\0limits.h\0";
3802 * Machine/OS name selection pattern
3804 #define apzIrix_Limits_ConstMachs (const char**)NULL
3807 * content selection pattern - do fix if pattern found
3809 tSCC zIrix_Limits_ConstSelect0[] =
3812 #define IRIX_LIMITS_CONST_TEST_CT 1
3813 static tTestDesc aIrix_Limits_ConstTests[] = {
3814 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3817 * Fix Command Arguments for Irix_Limits_Const
3819 static const char* apzIrix_Limits_ConstPatch[] = {
3824 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3826 * Description of Irix_Socklen_T fix
3828 tSCC zIrix_Socklen_TName[] =
3832 * File name selection pattern
3834 tSCC zIrix_Socklen_TList[] =
3837 * Machine/OS name selection pattern
3839 tSCC* apzIrix_Socklen_TMachs[] = {
3841 (const char*)NULL };
3844 * content selection pattern - do fix if pattern found
3846 tSCC zIrix_Socklen_TSelect0[] =
3847 "(#define _SOCKLEN_T\n\
3848 )(typedef u_int32_t socklen_t;)";
3850 #define IRIX_SOCKLEN_T_TEST_CT 1
3851 static tTestDesc aIrix_Socklen_TTests[] = {
3852 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3855 * Fix Command Arguments for Irix_Socklen_T
3857 static const char* apzIrix_Socklen_TPatch[] = {
3859 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3860 typedef int socklen_t;\n\
3863 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
3866 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3868 * Description of Irix_Stdint_C99 fix
3870 tSCC zIrix_Stdint_C99Name[] =
3874 * File name selection pattern
3876 tSCC zIrix_Stdint_C99List[] =
3879 * Machine/OS name selection pattern
3881 tSCC* apzIrix_Stdint_C99Machs[] = {
3883 (const char*)NULL };
3886 * content selection pattern - do fix if pattern found
3888 tSCC zIrix_Stdint_C99Select0[] =
3890 )(#error This header file is to be used only for c99 mode compilations)";
3892 #define IRIX_STDINT_C99_TEST_CT 1
3893 static tTestDesc aIrix_Stdint_C99Tests[] = {
3894 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
3897 * Fix Command Arguments for Irix_Stdint_C99
3899 static const char* apzIrix_Stdint_C99Patch[] = {
3905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3907 * Description of Irix_Stdio_Va_List fix
3909 tSCC zIrix_Stdio_Va_ListName[] =
3910 "irix_stdio_va_list";
3913 * File name selection pattern
3915 tSCC zIrix_Stdio_Va_ListList[] =
3916 "stdio.h\0internal/stdio_core.h\0";
3918 * Machine/OS name selection pattern
3920 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
3923 * content selection pattern - do fix if pattern found
3925 tSCC zIrix_Stdio_Va_ListSelect0[] =
3926 "/\\* va_list \\*/ char \\*";
3928 #define IRIX_STDIO_VA_LIST_TEST_CT 1
3929 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
3930 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
3933 * Fix Command Arguments for Irix_Stdio_Va_List
3935 static const char* apzIrix_Stdio_Va_ListPatch[] = {
3940 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3942 * Description of Irix_Wcsftime fix
3944 tSCC zIrix_WcsftimeName[] =
3948 * File name selection pattern
3950 tSCC zIrix_WcsftimeList[] =
3951 "internal/wchar_core.h\0";
3953 * Machine/OS name selection pattern
3955 tSCC* apzIrix_WcsftimeMachs[] = {
3957 (const char*)NULL };
3960 * content selection pattern - do fix if pattern found
3962 tSCC zIrix_WcsftimeSelect0[] =
3964 (extern size_t[ \t]+wcsftime.*const char *.*)";
3966 #define IRIX_WCSFTIME_TEST_CT 1
3967 static tTestDesc aIrix_WcsftimeTests[] = {
3968 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
3971 * Fix Command Arguments for Irix_Wcsftime
3973 static const char* apzIrix_WcsftimePatch[] = {
3975 "#if _NO_XOPEN5 && !defined(__c99)\n\
3979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3981 * Description of Isc_Fmod fix
3983 tSCC zIsc_FmodName[] =
3987 * File name selection pattern
3989 tSCC zIsc_FmodList[] =
3992 * Machine/OS name selection pattern
3994 #define apzIsc_FmodMachs (const char**)NULL
3997 * content selection pattern - do fix if pattern found
3999 tSCC zIsc_FmodSelect0[] =
4002 #define ISC_FMOD_TEST_CT 1
4003 static tTestDesc aIsc_FmodTests[] = {
4004 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
4007 * Fix Command Arguments for Isc_Fmod
4009 static const char* apzIsc_FmodPatch[] = {
4011 "fmod(double, double)",
4014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4016 * Description of Isc_Omits_With_Stdc fix
4018 tSCC zIsc_Omits_With_StdcName[] =
4019 "isc_omits_with_stdc";
4022 * File name selection pattern
4024 tSCC zIsc_Omits_With_StdcList[] =
4025 "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
4027 * Machine/OS name selection pattern
4029 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
4032 * content selection pattern - do fix if pattern found
4034 tSCC zIsc_Omits_With_StdcSelect0[] =
4035 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
4037 #define ISC_OMITS_WITH_STDC_TEST_CT 1
4038 static tTestDesc aIsc_Omits_With_StdcTests[] = {
4039 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4042 * Fix Command Arguments for Isc_Omits_With_Stdc
4044 static const char* apzIsc_Omits_With_StdcPatch[] = {
4046 "!defined(_POSIX_SOURCE)",
4049 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4051 * Description of Kandr_Concat fix
4053 tSCC zKandr_ConcatName[] =
4057 * File name selection pattern
4059 tSCC zKandr_ConcatList[] =
4060 "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";
4062 * Machine/OS name selection pattern
4064 #define apzKandr_ConcatMachs (const char**)NULL
4067 * content selection pattern - do fix if pattern found
4069 tSCC zKandr_ConcatSelect0[] =
4072 #define KANDR_CONCAT_TEST_CT 1
4073 static tTestDesc aKandr_ConcatTests[] = {
4074 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4077 * Fix Command Arguments for Kandr_Concat
4079 static const char* apzKandr_ConcatPatch[] = {
4084 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4086 * Description of Linux_Ia64_Ucontext fix
4088 tSCC zLinux_Ia64_UcontextName[] =
4089 "linux_ia64_ucontext";
4092 * File name selection pattern
4094 tSCC zLinux_Ia64_UcontextList[] =
4097 * Machine/OS name selection pattern
4099 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4101 (const char*)NULL };
4104 * content selection pattern - do fix if pattern found
4106 tSCC zLinux_Ia64_UcontextSelect0[] =
4107 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4109 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4110 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4111 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4114 * Fix Command Arguments for Linux_Ia64_Ucontext
4116 static const char* apzLinux_Ia64_UcontextPatch[] = {
4118 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4121 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4123 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4125 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4126 "lynxos_no_warning_in_sys_time_h";
4129 * File name selection pattern
4131 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4134 * Machine/OS name selection pattern
4136 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4139 * content selection pattern - do fix if pattern found
4141 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4142 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4144 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4145 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4146 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4149 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4151 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4156 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4158 * Description of Lynxos_Missing_Putenv fix
4160 tSCC zLynxos_Missing_PutenvName[] =
4161 "lynxos_missing_putenv";
4164 * File name selection pattern
4166 tSCC zLynxos_Missing_PutenvList[] =
4169 * Machine/OS name selection pattern
4171 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4173 (const char*)NULL };
4176 * content selection pattern - do fix if pattern found
4178 tSCC zLynxos_Missing_PutenvSelect0[] =
4179 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4182 * content bypass pattern - skip fix if pattern found
4184 tSCC zLynxos_Missing_PutenvBypass0[] =
4187 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4188 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4189 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4190 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4193 * Fix Command Arguments for Lynxos_Missing_Putenv
4195 static const char* apzLynxos_Missing_PutenvPatch[] = {
4198 extern int putenv\t\t\t\t_AP((char *));",
4199 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4204 * Description of Machine_Ansi_H_Va_List fix
4206 tSCC zMachine_Ansi_H_Va_ListName[] =
4207 "machine_ansi_h_va_list";
4210 * File name selection pattern
4212 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4214 * Machine/OS name selection pattern
4216 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4219 * content selection pattern - do fix if pattern found
4221 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4222 "define[ \t]+_BSD_VA_LIST_[ \t]";
4225 * content bypass pattern - skip fix if pattern found
4227 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4228 "__builtin_va_list";
4230 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4231 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4232 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4233 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4236 * Fix Command Arguments for Machine_Ansi_H_Va_List
4238 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4240 "%1__builtin_va_list",
4241 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4244 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4246 * Description of Machine_Name fix
4248 tSCC zMachine_NameName[] =
4252 * File name selection pattern
4254 #define zMachine_NameList (char*)NULL
4256 * Machine/OS name selection pattern
4258 #define apzMachine_NameMachs (const char**)NULL
4261 * perform the C function call test
4263 tSCC zMachine_NameFTst0[] = "machine_name";
4265 #define MACHINE_NAME_TEST_CT 1
4266 static tTestDesc aMachine_NameTests[] = {
4267 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4270 * Fix Command Arguments for Machine_Name
4272 static const char* apzMachine_NamePatch[] = {
4276 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4278 * Description of Math_Exception fix
4280 tSCC zMath_ExceptionName[] =
4284 * File name selection pattern
4286 tSCC zMath_ExceptionList[] =
4289 * Machine/OS name selection pattern
4291 #define apzMath_ExceptionMachs (const char**)NULL
4294 * content selection pattern - do fix if pattern found
4296 tSCC zMath_ExceptionSelect0[] =
4300 * content bypass pattern - skip fix if pattern found
4302 tSCC zMath_ExceptionBypass0[] =
4303 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4305 #define MATH_EXCEPTION_TEST_CT 2
4306 static tTestDesc aMath_ExceptionTests[] = {
4307 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4308 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4311 * Fix Command Arguments for Math_Exception
4313 static const char* apzMath_ExceptionPatch[] = {
4315 "#ifdef __cplusplus\n\
4316 #define exception __math_exception\n\
4318 "#ifdef __cplusplus\n\
4323 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4325 * Description of Math_Huge_Val_From_Dbl_Max fix
4327 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4328 "math_huge_val_from_dbl_max";
4331 * File name selection pattern
4333 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4336 * Machine/OS name selection pattern
4338 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4341 * content selection pattern - do fix if pattern found
4343 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4344 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4347 * content bypass pattern - skip fix if pattern found
4349 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4350 "define[ \t]+DBL_MAX";
4352 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4353 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4354 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4355 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4358 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4360 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4361 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4362 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4363 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4368 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4370 * Description of Nested_Auth_Des fix
4372 tSCC zNested_Auth_DesName[] =
4376 * File name selection pattern
4378 tSCC zNested_Auth_DesList[] =
4381 * Machine/OS name selection pattern
4383 #define apzNested_Auth_DesMachs (const char**)NULL
4386 * content selection pattern - do fix if pattern found
4388 tSCC zNested_Auth_DesSelect0[] =
4389 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4391 #define NESTED_AUTH_DES_TEST_CT 1
4392 static tTestDesc aNested_Auth_DesTests[] = {
4393 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4396 * Fix Command Arguments for Nested_Auth_Des
4398 static const char* apzNested_Auth_DesPatch[] = {
4403 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4405 * Description of Nested_Sys_Limits fix
4407 tSCC zNested_Sys_LimitsName[] =
4408 "nested_sys_limits";
4411 * File name selection pattern
4413 tSCC zNested_Sys_LimitsList[] =
4416 * Machine/OS name selection pattern
4418 #define apzNested_Sys_LimitsMachs (const char**)NULL
4421 * content selection pattern - do fix if pattern found
4423 tSCC zNested_Sys_LimitsSelect0[] =
4426 #define NESTED_SYS_LIMITS_TEST_CT 1
4427 static tTestDesc aNested_Sys_LimitsTests[] = {
4428 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4431 * Fix Command Arguments for Nested_Sys_Limits
4433 static const char* apzNested_Sys_LimitsPatch[] = { sed_cmd_z,
4434 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4435 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4440 * Description of Netbsd_C99_Inline_1 fix
4442 tSCC zNetbsd_C99_Inline_1Name[] =
4443 "netbsd_c99_inline_1";
4446 * File name selection pattern
4448 tSCC zNetbsd_C99_Inline_1List[] =
4451 * Machine/OS name selection pattern
4453 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4455 (const char*)NULL };
4458 * content selection pattern - do fix if pattern found
4460 tSCC zNetbsd_C99_Inline_1Select0[] =
4461 "extern __inline int";
4463 #define NETBSD_C99_INLINE_1_TEST_CT 1
4464 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4465 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4468 * Fix Command Arguments for Netbsd_C99_Inline_1
4470 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4473 #ifdef __GNUC_STDC_INLINE__\n\
4474 __attribute__((__gnu_inline__))\n\
4479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4481 * Description of Netbsd_C99_Inline_2 fix
4483 tSCC zNetbsd_C99_Inline_2Name[] =
4484 "netbsd_c99_inline_2";
4487 * File name selection pattern
4489 tSCC zNetbsd_C99_Inline_2List[] =
4492 * Machine/OS name selection pattern
4494 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4496 (const char*)NULL };
4499 * content selection pattern - do fix if pattern found
4501 tSCC zNetbsd_C99_Inline_2Select0[] =
4502 "#define _SIGINLINE extern __inline";
4504 #define NETBSD_C99_INLINE_2_TEST_CT 1
4505 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4506 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4509 * Fix Command Arguments for Netbsd_C99_Inline_2
4511 static const char* apzNetbsd_C99_Inline_2Patch[] = {
4513 "#ifdef __GNUC_STDC_INLINE__\n\
4514 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4520 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4522 * Description of Netbsd_Extra_Semicolon fix
4524 tSCC zNetbsd_Extra_SemicolonName[] =
4525 "netbsd_extra_semicolon";
4528 * File name selection pattern
4530 tSCC zNetbsd_Extra_SemicolonList[] =
4533 * Machine/OS name selection pattern
4535 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4537 (const char*)NULL };
4540 * content selection pattern - do fix if pattern found
4542 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4543 "#define[ \t]*__END_DECLS[ \t]*};";
4545 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4546 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4547 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4550 * Fix Command Arguments for Netbsd_Extra_Semicolon
4552 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4554 "#define __END_DECLS }",
4557 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4559 * Description of Next_Math_Prefix fix
4561 tSCC zNext_Math_PrefixName[] =
4565 * File name selection pattern
4567 tSCC zNext_Math_PrefixList[] =
4570 * Machine/OS name selection pattern
4572 #define apzNext_Math_PrefixMachs (const char**)NULL
4575 * content selection pattern - do fix if pattern found
4577 tSCC zNext_Math_PrefixSelect0[] =
4578 "^extern[ \t]+double[ \t]+__const__[ \t]";
4580 #define NEXT_MATH_PREFIX_TEST_CT 1
4581 static tTestDesc aNext_Math_PrefixTests[] = {
4582 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4585 * Fix Command Arguments for Next_Math_Prefix
4587 static const char* apzNext_Math_PrefixPatch[] = {
4589 "extern double %1(",
4590 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4593 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4595 * Description of Next_Template fix
4597 tSCC zNext_TemplateName[] =
4601 * File name selection pattern
4603 tSCC zNext_TemplateList[] =
4606 * Machine/OS name selection pattern
4608 #define apzNext_TemplateMachs (const char**)NULL
4611 * content selection pattern - do fix if pattern found
4613 tSCC zNext_TemplateSelect0[] =
4616 #define NEXT_TEMPLATE_TEST_CT 1
4617 static tTestDesc aNext_TemplateTests[] = {
4618 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
4621 * Fix Command Arguments for Next_Template
4623 static const char* apzNext_TemplatePatch[] = {
4626 "\\(([^)]*)[ \t]template\\)",
4629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4631 * Description of Next_Volitile fix
4633 tSCC zNext_VolitileName[] =
4637 * File name selection pattern
4639 tSCC zNext_VolitileList[] =
4642 * Machine/OS name selection pattern
4644 #define apzNext_VolitileMachs (const char**)NULL
4647 * content selection pattern - do fix if pattern found
4649 tSCC zNext_VolitileSelect0[] =
4650 "^extern[ \t]+volatile[ \t]+void[ \t]";
4652 #define NEXT_VOLITILE_TEST_CT 1
4653 static tTestDesc aNext_VolitileTests[] = {
4654 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
4657 * Fix Command Arguments for Next_Volitile
4659 static const char* apzNext_VolitilePatch[] = {
4662 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
4665 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4667 * Description of Next_Wait_Union fix
4669 tSCC zNext_Wait_UnionName[] =
4673 * File name selection pattern
4675 tSCC zNext_Wait_UnionList[] =
4678 * Machine/OS name selection pattern
4680 #define apzNext_Wait_UnionMachs (const char**)NULL
4683 * content selection pattern - do fix if pattern found
4685 tSCC zNext_Wait_UnionSelect0[] =
4686 "wait\\(union wait";
4688 #define NEXT_WAIT_UNION_TEST_CT 1
4689 static tTestDesc aNext_Wait_UnionTests[] = {
4690 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
4693 * Fix Command Arguments for Next_Wait_Union
4695 static const char* apzNext_Wait_UnionPatch[] = {
4700 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4702 * Description of Nodeent_Syntax fix
4704 tSCC zNodeent_SyntaxName[] =
4708 * File name selection pattern
4710 tSCC zNodeent_SyntaxList[] =
4711 "netdnet/dnetdb.h\0";
4713 * Machine/OS name selection pattern
4715 #define apzNodeent_SyntaxMachs (const char**)NULL
4718 * content selection pattern - do fix if pattern found
4720 tSCC zNodeent_SyntaxSelect0[] =
4721 "char[ \t]*\\*na_addr[ \t]*$";
4723 #define NODEENT_SYNTAX_TEST_CT 1
4724 static tTestDesc aNodeent_SyntaxTests[] = {
4725 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
4728 * Fix Command Arguments for Nodeent_Syntax
4730 static const char* apzNodeent_SyntaxPatch[] = {
4735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4737 * Description of Openbsd_Null_Definition fix
4739 tSCC zOpenbsd_Null_DefinitionName[] =
4740 "openbsd_null_definition";
4743 * File name selection pattern
4745 tSCC zOpenbsd_Null_DefinitionList[] =
4746 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
4748 * Machine/OS name selection pattern
4750 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
4752 (const char*)NULL };
4755 * content selection pattern - do fix if pattern found
4757 tSCC zOpenbsd_Null_DefinitionSelect0[] =
4760 #define OPENBSD_NULL_DEFINITION_TEST_CT 1
4761 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
4762 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
4765 * Fix Command Arguments for Openbsd_Null_Definition
4767 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
4770 #ifdef __cplusplus\n\
4772 #define NULL\t__null\n\
4773 #else\t /* ! __GNUG__ */\n\
4775 #endif\t /* __GNUG__ */\n\
4776 #else\t /* ! __cplusplus */\n\
4777 #define NULL\t((void *)0)\n\
4778 #endif\t /* __cplusplus */\n\
4779 #endif\t /* !NULL */",
4780 "^#ifndef[ \t]*NULL\n\
4781 ^#ifdef[ \t]*__GNUG__\n\
4782 ^#define[ \t]*NULL[ \t]*__null\n\
4784 ^#define[ \t]*NULL[ \t]*0L\n\
4789 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4791 * Description of Obstack_Lvalue_Cast fix
4793 tSCC zObstack_Lvalue_CastName[] =
4794 "obstack_lvalue_cast";
4797 * File name selection pattern
4799 tSCC zObstack_Lvalue_CastList[] =
4802 * Machine/OS name selection pattern
4804 #define apzObstack_Lvalue_CastMachs (const char**)NULL
4807 * content selection pattern - do fix if pattern found
4809 tSCC zObstack_Lvalue_CastSelect0[] =
4810 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
4812 #define OBSTACK_LVALUE_CAST_TEST_CT 1
4813 static tTestDesc aObstack_Lvalue_CastTests[] = {
4814 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
4817 * Fix Command Arguments for Obstack_Lvalue_Cast
4819 static const char* apzObstack_Lvalue_CastPatch[] = {
4821 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
4824 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4826 * Description of Openbsd_Va_Start fix
4828 tSCC zOpenbsd_Va_StartName[] =
4832 * File name selection pattern
4834 tSCC zOpenbsd_Va_StartList[] =
4837 * Machine/OS name selection pattern
4839 tSCC* apzOpenbsd_Va_StartMachs[] = {
4841 (const char*)NULL };
4844 * content selection pattern - do fix if pattern found
4846 tSCC zOpenbsd_Va_StartSelect0[] =
4847 "__builtin_stdarg_start";
4849 #define OPENBSD_VA_START_TEST_CT 1
4850 static tTestDesc aOpenbsd_Va_StartTests[] = {
4851 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
4854 * Fix Command Arguments for Openbsd_Va_Start
4856 static const char* apzOpenbsd_Va_StartPatch[] = {
4858 "__builtin_va_start",
4861 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4863 * Description of Osf_Namespace_A fix
4865 tSCC zOsf_Namespace_AName[] =
4869 * File name selection pattern
4871 tSCC zOsf_Namespace_AList[] =
4872 "reg_types.h\0sys/lc_core.h\0";
4874 * Machine/OS name selection pattern
4876 #define apzOsf_Namespace_AMachs (const char**)NULL
4879 * perform the 'test' shell command - do fix on success
4881 tSCC zOsf_Namespace_ATest0[] =
4883 tSCC zOsf_Namespace_ATest1[] =
4884 " -r sys/lc_core.h";
4885 tSCC zOsf_Namespace_ATest2[] =
4886 " -n \"`grep '} regex_t;' reg_types.h`\"";
4887 tSCC zOsf_Namespace_ATest3[] =
4888 " -z \"`grep __regex_t regex.h`\"";
4890 #define OSF_NAMESPACE_A_TEST_CT 4
4891 static tTestDesc aOsf_Namespace_ATests[] = {
4892 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
4893 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
4894 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
4895 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
4898 * Fix Command Arguments for Osf_Namespace_A
4900 static const char* apzOsf_Namespace_APatch[] = {
4903 "reg(ex|off|match)_t",
4906 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4908 * Description of Osf_Namespace_C fix
4910 tSCC zOsf_Namespace_CName[] =
4914 * File name selection pattern
4916 tSCC zOsf_Namespace_CList[] =
4919 * Machine/OS name selection pattern
4921 #define apzOsf_Namespace_CMachs (const char**)NULL
4924 * content selection pattern - do fix if pattern found
4926 tSCC zOsf_Namespace_CSelect0[] =
4927 "#include <reg_types.h>.*";
4930 * perform the 'test' shell command - do fix on success
4932 tSCC zOsf_Namespace_CTest0[] =
4934 tSCC zOsf_Namespace_CTest1[] =
4935 " -r sys/lc_core.h";
4936 tSCC zOsf_Namespace_CTest2[] =
4937 " -n \"`grep '} regex_t;' reg_types.h`\"";
4938 tSCC zOsf_Namespace_CTest3[] =
4939 " -z \"`grep __regex_t regex.h`\"";
4941 #define OSF_NAMESPACE_C_TEST_CT 5
4942 static tTestDesc aOsf_Namespace_CTests[] = {
4943 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
4944 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
4945 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
4946 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
4947 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
4950 * Fix Command Arguments for Osf_Namespace_C
4952 static const char* apzOsf_Namespace_CPatch[] = {
4955 typedef __regex_t\tregex_t;\n\
4956 typedef __regoff_t\tregoff_t;\n\
4957 typedef __regmatch_t\tregmatch_t;",
4960 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4962 * Description of Pthread_Page_Size fix
4964 tSCC zPthread_Page_SizeName[] =
4965 "pthread_page_size";
4968 * File name selection pattern
4970 tSCC zPthread_Page_SizeList[] =
4973 * Machine/OS name selection pattern
4975 #define apzPthread_Page_SizeMachs (const char**)NULL
4978 * content selection pattern - do fix if pattern found
4980 tSCC zPthread_Page_SizeSelect0[] =
4983 #define PTHREAD_PAGE_SIZE_TEST_CT 1
4984 static tTestDesc aPthread_Page_SizeTests[] = {
4985 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
4988 * Fix Command Arguments for Pthread_Page_Size
4990 static const char* apzPthread_Page_SizePatch[] = {
4995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4997 * Description of Pthread_Incomplete_Struct_Argument fix
4999 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5000 "pthread_incomplete_struct_argument";
5003 * File name selection pattern
5005 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5008 * Machine/OS name selection pattern
5010 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5013 * content selection pattern - do fix if pattern found
5015 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5016 "struct __jmp_buf_tag";
5018 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5019 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5020 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5023 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5025 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5028 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5031 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5033 * Description of Read_Ret_Type fix
5035 tSCC zRead_Ret_TypeName[] =
5039 * File name selection pattern
5041 tSCC zRead_Ret_TypeList[] =
5044 * Machine/OS name selection pattern
5046 #define apzRead_Ret_TypeMachs (const char**)NULL
5049 * content selection pattern - do fix if pattern found
5051 tSCC zRead_Ret_TypeSelect0[] =
5052 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5054 #define READ_RET_TYPE_TEST_CT 1
5055 static tTestDesc aRead_Ret_TypeTests[] = {
5056 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5059 * Fix Command Arguments for Read_Ret_Type
5061 static const char* apzRead_Ret_TypePatch[] = {
5063 "extern unsigned int fread(), fwrite();\n\
5065 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5068 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5070 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5072 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5073 "rpc_xdr_lvalue_cast_a";
5076 * File name selection pattern
5078 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5081 * Machine/OS name selection pattern
5083 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5086 * content selection pattern - do fix if pattern found
5088 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5089 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5092 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5093 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5094 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5097 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5099 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5101 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5106 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5108 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5109 "rpc_xdr_lvalue_cast_b";
5112 * File name selection pattern
5114 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5117 * Machine/OS name selection pattern
5119 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5122 * content selection pattern - do fix if pattern found
5124 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5125 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5128 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5129 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5130 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5133 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5135 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5137 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5142 * Description of Rs6000_Double fix
5144 tSCC zRs6000_DoubleName[] =
5148 * File name selection pattern
5150 tSCC zRs6000_DoubleList[] =
5153 * Machine/OS name selection pattern
5155 #define apzRs6000_DoubleMachs (const char**)NULL
5158 * content selection pattern - do fix if pattern found
5160 tSCC zRs6000_DoubleSelect0[] =
5161 "[^a-zA-Z_]class\\(";
5163 #define RS6000_DOUBLE_TEST_CT 1
5164 static tTestDesc aRs6000_DoubleTests[] = {
5165 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5168 * Fix Command Arguments for Rs6000_Double
5170 static const char* apzRs6000_DoublePatch[] = {
5172 "#ifndef __cplusplus\n\
5175 "^.*[^a-zA-Z_]class\\(.*",
5178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5180 * Description of Rs6000_Fchmod fix
5182 tSCC zRs6000_FchmodName[] =
5186 * File name selection pattern
5188 tSCC zRs6000_FchmodList[] =
5191 * Machine/OS name selection pattern
5193 #define apzRs6000_FchmodMachs (const char**)NULL
5196 * content selection pattern - do fix if pattern found
5198 tSCC zRs6000_FchmodSelect0[] =
5199 "fchmod\\(char \\*";
5201 #define RS6000_FCHMOD_TEST_CT 1
5202 static tTestDesc aRs6000_FchmodTests[] = {
5203 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5206 * Fix Command Arguments for Rs6000_Fchmod
5208 static const char* apzRs6000_FchmodPatch[] = {
5213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5215 * Description of Rs6000_Param fix
5217 tSCC zRs6000_ParamName[] =
5221 * File name selection pattern
5223 tSCC zRs6000_ParamList[] =
5224 "stdio.h\0unistd.h\0";
5226 * Machine/OS name selection pattern
5228 #define apzRs6000_ParamMachs (const char**)NULL
5231 * content selection pattern - do fix if pattern found
5233 tSCC zRs6000_ParamSelect0[] =
5234 "rename\\(const char \\*old, const char \\*new\\)";
5236 #define RS6000_PARAM_TEST_CT 1
5237 static tTestDesc aRs6000_ParamTests[] = {
5238 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
5241 * Fix Command Arguments for Rs6000_Param
5243 static const char* apzRs6000_ParamPatch[] = {
5245 "rename(const char *_old, const char *_new)",
5248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5250 * Description of Sco_Math fix
5252 tSCC zSco_MathName[] =
5256 * File name selection pattern
5258 tSCC zSco_MathList[] =
5259 "math.h\0*/math.h\0";
5261 * Machine/OS name selection pattern
5263 #define apzSco_MathMachs (const char**)NULL
5266 * content selection pattern - do fix if pattern found
5268 tSCC zSco_MathSelect0[] =
5269 "inline double abs";
5272 * content bypass pattern - skip fix if pattern found
5274 tSCC zSco_MathBypass0[] =
5277 #define SCO_MATH_TEST_CT 2
5278 static tTestDesc aSco_MathTests[] = {
5279 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
5280 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
5283 * Fix Command Arguments for Sco_Math
5285 static const char* apzSco_MathPatch[] = { sed_cmd_z,
5286 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5287 #ifndef __GNUC__\n",
5288 "-e", "/.*__builtin_generic/a\\\n\
5290 #define __fp_class(a) \\\\\\\n\
5291 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5292 __fpclassifyl(a), \\\\\\\n\
5293 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5294 __fpclassifyf(a),__fpclassify(a)))\\\n\
5296 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5297 #ifndef __GNUC__\n",
5298 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5299 #endif /* ! __GNUC__ */",
5302 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5304 * Description of Solaris_Math_1 fix
5306 tSCC zSolaris_Math_1Name[] =
5310 * File name selection pattern
5312 tSCC zSolaris_Math_1List[] =
5315 * Machine/OS name selection pattern
5317 #define apzSolaris_Math_1Machs (const char**)NULL
5320 * content selection pattern - do fix if pattern found
5322 tSCC zSolaris_Math_1Select0[] =
5323 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5326 * content bypass pattern - skip fix if pattern found
5328 tSCC zSolaris_Math_1Bypass0[] =
5331 #define SOLARIS_MATH_1_TEST_CT 2
5332 static tTestDesc aSolaris_Math_1Tests[] = {
5333 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5334 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5337 * Fix Command Arguments for Solaris_Math_1
5339 static const char* apzSolaris_Math_1Patch[] = {
5341 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5342 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5345 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5347 * Description of Solaris_Math_2 fix
5349 tSCC zSolaris_Math_2Name[] =
5353 * File name selection pattern
5355 tSCC zSolaris_Math_2List[] =
5358 * Machine/OS name selection pattern
5360 #define apzSolaris_Math_2Machs (const char**)NULL
5363 * content selection pattern - do fix if pattern found
5365 tSCC zSolaris_Math_2Select0[] =
5366 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5369 * content bypass pattern - skip fix if pattern found
5371 tSCC zSolaris_Math_2Bypass0[] =
5374 #define SOLARIS_MATH_2_TEST_CT 2
5375 static tTestDesc aSolaris_Math_2Tests[] = {
5376 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5377 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5380 * Fix Command Arguments for Solaris_Math_2
5382 static const char* apzSolaris_Math_2Patch[] = {
5384 "#define\tINFINITY\t(__builtin_inff())",
5385 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5388 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5390 * Description of Solaris_Math_3 fix
5392 tSCC zSolaris_Math_3Name[] =
5396 * File name selection pattern
5398 tSCC zSolaris_Math_3List[] =
5401 * Machine/OS name selection pattern
5403 #define apzSolaris_Math_3Machs (const char**)NULL
5406 * content selection pattern - do fix if pattern found
5408 tSCC zSolaris_Math_3Select0[] =
5409 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5412 * content bypass pattern - skip fix if pattern found
5414 tSCC zSolaris_Math_3Bypass0[] =
5417 #define SOLARIS_MATH_3_TEST_CT 2
5418 static tTestDesc aSolaris_Math_3Tests[] = {
5419 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5420 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5423 * Fix Command Arguments for Solaris_Math_3
5425 static const char* apzSolaris_Math_3Patch[] = {
5427 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5428 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5431 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5433 * Description of Solaris_Math_4 fix
5435 tSCC zSolaris_Math_4Name[] =
5439 * File name selection pattern
5441 tSCC zSolaris_Math_4List[] =
5444 * Machine/OS name selection pattern
5446 #define apzSolaris_Math_4Machs (const char**)NULL
5449 * content selection pattern - do fix if pattern found
5451 tSCC zSolaris_Math_4Select0[] =
5452 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5455 * content bypass pattern - skip fix if pattern found
5457 tSCC zSolaris_Math_4Bypass0[] =
5460 #define SOLARIS_MATH_4_TEST_CT 2
5461 static tTestDesc aSolaris_Math_4Tests[] = {
5462 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5463 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5466 * Fix Command Arguments for Solaris_Math_4
5468 static const char* apzSolaris_Math_4Patch[] = {
5470 "#define\tfpclassify(x) \\\n\
5471 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
5472 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5475 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5477 * Description of Solaris_Math_8 fix
5479 tSCC zSolaris_Math_8Name[] =
5483 * File name selection pattern
5485 tSCC zSolaris_Math_8List[] =
5488 * Machine/OS name selection pattern
5490 #define apzSolaris_Math_8Machs (const char**)NULL
5493 * content selection pattern - do fix if pattern found
5495 tSCC zSolaris_Math_8Select0[] =
5496 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5499 * content bypass pattern - skip fix if pattern found
5501 tSCC zSolaris_Math_8Bypass0[] =
5504 #define SOLARIS_MATH_8_TEST_CT 2
5505 static tTestDesc aSolaris_Math_8Tests[] = {
5506 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5507 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5510 * Fix Command Arguments for Solaris_Math_8
5512 static const char* apzSolaris_Math_8Patch[] = {
5514 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5515 \t\t\t ? __builtin_signbitf(x) \\\n\
5516 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
5517 \t\t\t ? __builtin_signbitl(x) \\\n\
5518 \t\t\t : __builtin_signbit(x))",
5519 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5522 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5524 * Description of Solaris_Math_9 fix
5526 tSCC zSolaris_Math_9Name[] =
5530 * File name selection pattern
5532 tSCC zSolaris_Math_9List[] =
5535 * Machine/OS name selection pattern
5537 #define apzSolaris_Math_9Machs (const char**)NULL
5540 * content selection pattern - do fix if pattern found
5542 tSCC zSolaris_Math_9Select0[] =
5543 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5546 * content bypass pattern - skip fix if pattern found
5548 tSCC zSolaris_Math_9Bypass0[] =
5551 #define SOLARIS_MATH_9_TEST_CT 2
5552 static tTestDesc aSolaris_Math_9Tests[] = {
5553 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
5554 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
5557 * Fix Command Arguments for Solaris_Math_9
5559 static const char* apzSolaris_Math_9Patch[] = {
5561 "#define\t%1(x, y)%2__builtin_%1(x, y)",
5562 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5565 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5567 * Description of Solaris_Math_10 fix
5569 tSCC zSolaris_Math_10Name[] =
5573 * File name selection pattern
5575 tSCC zSolaris_Math_10List[] =
5578 * Machine/OS name selection pattern
5580 #define apzSolaris_Math_10Machs (const char**)NULL
5583 * content selection pattern - do fix if pattern found
5585 tSCC zSolaris_Math_10Select0[] =
5586 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5588 #define SOLARIS_MATH_10_TEST_CT 1
5589 static tTestDesc aSolaris_Math_10Tests[] = {
5590 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
5593 * Fix Command Arguments for Solaris_Math_10
5595 static const char* apzSolaris_Math_10Patch[] = {
5597 "#define\tisinf(x) __builtin_isinf(x)",
5598 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
5599 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
5600 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
5601 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
5604 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5606 * Description of Solaris_Mutex_Init_2 fix
5608 tSCC zSolaris_Mutex_Init_2Name[] =
5609 "solaris_mutex_init_2";
5612 * File name selection pattern
5614 tSCC zSolaris_Mutex_Init_2List[] =
5617 * Machine/OS name selection pattern
5619 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
5620 "*-*-solaris2.[0-9]",
5621 "*-*-solaris2.[0-9][!0-9]*",
5622 (const char*)NULL };
5625 * content selection pattern - do fix if pattern found
5627 tSCC zSolaris_Mutex_Init_2Select0[] =
5628 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5630 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
5631 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
5632 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
5635 * Fix Command Arguments for Solaris_Mutex_Init_2
5637 static const char* apzSolaris_Mutex_Init_2Patch[] = {
5639 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5644 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
5645 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
5648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5650 * Description of Solaris_Rwlock_Init_1 fix
5652 tSCC zSolaris_Rwlock_Init_1Name[] =
5653 "solaris_rwlock_init_1";
5656 * File name selection pattern
5658 tSCC zSolaris_Rwlock_Init_1List[] =
5661 * Machine/OS name selection pattern
5663 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
5665 (const char*)NULL };
5668 * content selection pattern - do fix if pattern found
5670 tSCC zSolaris_Rwlock_Init_1Select0[] =
5671 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5673 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
5674 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
5675 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
5678 * Fix Command Arguments for Solaris_Rwlock_Init_1
5680 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
5682 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5685 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
5687 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
5690 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5692 * Description of Solaris_Once_Init_1 fix
5694 tSCC zSolaris_Once_Init_1Name[] =
5695 "solaris_once_init_1";
5698 * File name selection pattern
5700 tSCC zSolaris_Once_Init_1List[] =
5703 * Machine/OS name selection pattern
5705 tSCC* apzSolaris_Once_Init_1Machs[] = {
5707 (const char*)NULL };
5710 * content selection pattern - do fix if pattern found
5712 tSCC zSolaris_Once_Init_1Select0[] =
5713 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5715 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
5716 static tTestDesc aSolaris_Once_Init_1Tests[] = {
5717 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
5720 * Fix Command Arguments for Solaris_Once_Init_1
5722 static const char* apzSolaris_Once_Init_1Patch[] = {
5725 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
5728 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5730 * Description of Solaris_Once_Init_2 fix
5732 tSCC zSolaris_Once_Init_2Name[] =
5733 "solaris_once_init_2";
5736 * File name selection pattern
5738 tSCC zSolaris_Once_Init_2List[] =
5741 * Machine/OS name selection pattern
5743 tSCC* apzSolaris_Once_Init_2Machs[] = {
5744 "*-*-solaris2.[0-9]",
5745 "*-*-solaris2.[0-9][!0-9]*",
5746 (const char*)NULL };
5749 * content selection pattern - do fix if pattern found
5751 tSCC zSolaris_Once_Init_2Select0[] =
5752 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5754 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
5755 static tTestDesc aSolaris_Once_Init_2Tests[] = {
5756 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
5759 * Fix Command Arguments for Solaris_Once_Init_2
5761 static const char* apzSolaris_Once_Init_2Patch[] = {
5763 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5766 %1{0}, {0}, {0}, {%3}%4\n\
5768 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
5771 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5773 * Description of Solaris_Stdio_Tag fix
5775 tSCC zSolaris_Stdio_TagName[] =
5776 "solaris_stdio_tag";
5779 * File name selection pattern
5781 tSCC zSolaris_Stdio_TagList[] =
5784 * Machine/OS name selection pattern
5786 #define apzSolaris_Stdio_TagMachs (const char**)NULL
5789 * content selection pattern - do fix if pattern found
5791 tSCC zSolaris_Stdio_TagSelect0[] =
5792 "__cplusplus < 54321L";
5795 * content bypass pattern - skip fix if pattern found
5797 tSCC zSolaris_Stdio_TagBypass0[] =
5800 #define SOLARIS_STDIO_TAG_TEST_CT 2
5801 static tTestDesc aSolaris_Stdio_TagTests[] = {
5802 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
5803 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
5806 * Fix Command Arguments for Solaris_Stdio_Tag
5808 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
5809 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
5812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5814 * Description of Statsswtch fix
5816 tSCC zStatsswtchName[] =
5820 * File name selection pattern
5822 tSCC zStatsswtchList[] =
5825 * Machine/OS name selection pattern
5827 #define apzStatsswtchMachs (const char**)NULL
5830 * content selection pattern - do fix if pattern found
5832 tSCC zStatsswtchSelect0[] =
5835 #define STATSSWTCH_TEST_CT 1
5836 static tTestDesc aStatsswtchTests[] = {
5837 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
5840 * Fix Command Arguments for Statsswtch
5842 static const char* apzStatsswtchPatch[] = {
5847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5849 * Description of Stdio_Stdarg_H fix
5851 tSCC zStdio_Stdarg_HName[] =
5855 * File name selection pattern
5857 tSCC zStdio_Stdarg_HList[] =
5860 * Machine/OS name selection pattern
5862 tSCC* apzStdio_Stdarg_HMachs[] = {
5863 "*-*-solaris2.1[0-9]*",
5864 (const char*)NULL };
5867 * content bypass pattern - skip fix if pattern found
5869 tSCC zStdio_Stdarg_HBypass0[] =
5870 "include.*(stdarg.h|machine/ansi.h)";
5872 #define STDIO_STDARG_H_TEST_CT 1
5873 static tTestDesc aStdio_Stdarg_HTests[] = {
5874 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
5877 * Fix Command Arguments for Stdio_Stdarg_H
5879 static const char* apzStdio_Stdarg_HPatch[] = {
5881 "#define __need___va_list\n\
5882 #include <stdarg.h>\n",
5885 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5887 * Description of Stdio_Va_List fix
5889 tSCC zStdio_Va_ListName[] =
5893 * File name selection pattern
5895 tSCC zStdio_Va_ListList[] =
5896 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
5898 * Machine/OS name selection pattern
5900 tSCC* apzStdio_Va_ListMachs[] = {
5901 "*-*-solaris2.1[0-9]*",
5902 (const char*)NULL };
5905 * content bypass pattern - skip fix if pattern found
5907 tSCC zStdio_Va_ListBypass0[] =
5908 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
5910 #define STDIO_VA_LIST_TEST_CT 1
5911 static tTestDesc aStdio_Va_ListTests[] = {
5912 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
5915 * Fix Command Arguments for Stdio_Va_List
5917 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
5918 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
5919 s@(va_list)&@(__gnuc_va_list)\\&@\n\
5920 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
5921 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
5922 s@ va_list@ __not_va_list__@\n\
5923 s@\\*va_list@*__not_va_list__@\n\
5924 s@ __va_list)@ __gnuc_va_list)@\n\
5925 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
5926 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
5927 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
5928 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
5929 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
5930 s@VA_LIST@DUMMY_VA_LIST@\n\
5931 s@_Va_LIST@_VA_LIST@",
5934 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5936 * Description of Stdio_Va_List_Clients fix
5938 tSCC zStdio_Va_List_ClientsName[] =
5939 "stdio_va_list_clients";
5942 * File name selection pattern
5944 tSCC zStdio_Va_List_ClientsList[] =
5945 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
5947 * Machine/OS name selection pattern
5949 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
5952 * content bypass pattern - skip fix if pattern found
5954 tSCC zStdio_Va_List_ClientsBypass0[] =
5955 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
5956 tSCC zStdio_Va_List_ClientsBypass1[] =
5957 "include <stdarg\\.h>|#ifdef va_start";
5959 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
5960 static tTestDesc aStdio_Va_List_ClientsTests[] = {
5961 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
5962 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
5965 * Fix Command Arguments for Stdio_Va_List_Clients
5967 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
5968 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
5969 s@(va_list)&@(__gnuc_va_list)\\&@\n\
5970 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
5971 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
5972 s@ va_list@ __not_va_list__@\n\
5973 s@\\*va_list@*__not_va_list__@\n\
5974 s@ __va_list)@ __gnuc_va_list)@\n\
5975 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
5976 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
5977 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
5978 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
5979 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
5980 s@VA_LIST@DUMMY_VA_LIST@\n\
5981 s@_Va_LIST@_VA_LIST@",
5984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5986 * Description of Strict_Ansi_Not fix
5988 tSCC zStrict_Ansi_NotName[] =
5992 * File name selection pattern
5994 #define zStrict_Ansi_NotList (char*)NULL
5996 * Machine/OS name selection pattern
5998 #define apzStrict_Ansi_NotMachs (const char**)NULL
6001 * content selection pattern - do fix if pattern found
6003 tSCC zStrict_Ansi_NotSelect0[] =
6004 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6007 * content bypass pattern - skip fix if pattern found
6009 tSCC zStrict_Ansi_NotBypass0[] =
6010 "GNU and MIPS C compilers define __STDC__ differently";
6011 tSCC zStrict_Ansi_NotBypass1[] =
6012 "__SCO_VERSION__.*__STDC__ != 1";
6015 * perform the C function call test
6017 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6019 #define STRICT_ANSI_NOT_TEST_CT 4
6020 static tTestDesc aStrict_Ansi_NotTests[] = {
6021 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
6022 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6023 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6024 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6027 * Fix Command Arguments for Strict_Ansi_Not
6029 static const char* apzStrict_Ansi_NotPatch[] = {
6031 "%1 !defined(__STRICT_ANSI__)",
6034 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6036 * Description of Strict_Ansi_Not_Ctd fix
6038 tSCC zStrict_Ansi_Not_CtdName[] =
6039 "strict_ansi_not_ctd";
6042 * File name selection pattern
6044 tSCC zStrict_Ansi_Not_CtdList[] =
6045 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6047 * Machine/OS name selection pattern
6049 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6052 * content selection pattern - do fix if pattern found
6054 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6055 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6058 * perform the C function call test
6060 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6062 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
6063 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6064 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6065 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6068 * Fix Command Arguments for Strict_Ansi_Not_Ctd
6070 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6072 "%1 !defined(__STRICT_ANSI__)",
6075 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6077 * Description of Strict_Ansi_Only fix
6079 tSCC zStrict_Ansi_OnlyName[] =
6083 * File name selection pattern
6085 #define zStrict_Ansi_OnlyList (char*)NULL
6087 * Machine/OS name selection pattern
6089 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6092 * content selection pattern - do fix if pattern found
6094 tSCC zStrict_Ansi_OnlySelect0[] =
6095 "^([ \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)";
6098 * perform the C function call test
6100 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6102 #define STRICT_ANSI_ONLY_TEST_CT 2
6103 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6104 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6105 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6108 * Fix Command Arguments for Strict_Ansi_Only
6110 static const char* apzStrict_Ansi_OnlyPatch[] = {
6112 "%1 defined(__STRICT_ANSI__)",
6115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6117 * Description of Struct_File fix
6119 tSCC zStruct_FileName[] =
6123 * File name selection pattern
6125 tSCC zStruct_FileList[] =
6128 * Machine/OS name selection pattern
6130 #define apzStruct_FileMachs (const char**)NULL
6133 * content selection pattern - do fix if pattern found
6135 tSCC zStruct_FileSelect0[] =
6136 "^.*xdrstdio_create.*struct __file_s";
6138 #define STRUCT_FILE_TEST_CT 1
6139 static tTestDesc aStruct_FileTests[] = {
6140 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6143 * Fix Command Arguments for Struct_File
6145 static const char* apzStruct_FilePatch[] = {
6147 "struct __file_s;\n\
6151 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6153 * Description of Struct_Sockaddr fix
6155 tSCC zStruct_SockaddrName[] =
6159 * File name selection pattern
6161 tSCC zStruct_SockaddrList[] =
6164 * Machine/OS name selection pattern
6166 #define apzStruct_SockaddrMachs (const char**)NULL
6169 * content selection pattern - do fix if pattern found
6171 tSCC zStruct_SockaddrSelect0[] =
6172 "^.*authdes_create.*struct sockaddr[^_]";
6175 * content bypass pattern - skip fix if pattern found
6177 tSCC zStruct_SockaddrBypass0[] =
6179 tSCC zStruct_SockaddrBypass1[] =
6180 "struct sockaddr;\n";
6182 #define STRUCT_SOCKADDR_TEST_CT 3
6183 static tTestDesc aStruct_SockaddrTests[] = {
6184 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6185 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6186 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6189 * Fix Command Arguments for Struct_Sockaddr
6191 static const char* apzStruct_SockaddrPatch[] = {
6193 "struct sockaddr;\n\
6197 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6199 * Description of Sun_Auth_Proto fix
6201 tSCC zSun_Auth_ProtoName[] =
6205 * File name selection pattern
6207 tSCC zSun_Auth_ProtoList[] =
6208 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6210 * Machine/OS name selection pattern
6212 #define apzSun_Auth_ProtoMachs (const char**)NULL
6215 * content selection pattern - do fix if pattern found
6217 tSCC zSun_Auth_ProtoSelect0[] =
6218 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6221 * content bypass pattern - skip fix if pattern found
6223 tSCC zSun_Auth_ProtoBypass0[] =
6226 #define SUN_AUTH_PROTO_TEST_CT 2
6227 static tTestDesc aSun_Auth_ProtoTests[] = {
6228 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6229 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6232 * Fix Command Arguments for Sun_Auth_Proto
6234 static const char* apzSun_Auth_ProtoPatch[] = {
6236 "#ifdef __cplusplus\n\
6241 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6244 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6246 * Description of Sun_Bogus_Ifdef fix
6248 tSCC zSun_Bogus_IfdefName[] =
6252 * File name selection pattern
6254 tSCC zSun_Bogus_IfdefList[] =
6255 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
6257 * Machine/OS name selection pattern
6259 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6262 * content selection pattern - do fix if pattern found
6264 tSCC zSun_Bogus_IfdefSelect0[] =
6265 "#ifdef(.*\\|\\|.*)";
6267 #define SUN_BOGUS_IFDEF_TEST_CT 1
6268 static tTestDesc aSun_Bogus_IfdefTests[] = {
6269 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6272 * Fix Command Arguments for Sun_Bogus_Ifdef
6274 static const char* apzSun_Bogus_IfdefPatch[] = {
6279 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6281 * Description of Sun_Catmacro fix
6283 tSCC zSun_CatmacroName[] =
6287 * File name selection pattern
6289 tSCC zSun_CatmacroList[] =
6290 "pixrect/memvar.h\0";
6292 * Machine/OS name selection pattern
6294 #define apzSun_CatmacroMachs (const char**)NULL
6297 * content selection pattern - do fix if pattern found
6299 tSCC zSun_CatmacroSelect0[] =
6300 "^#define[ \t]+CAT\\(a,b\\).*";
6302 #define SUN_CATMACRO_TEST_CT 1
6303 static tTestDesc aSun_CatmacroTests[] = {
6304 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
6307 * Fix Command Arguments for Sun_Catmacro
6309 static const char* apzSun_CatmacroPatch[] = {
6312 # define CAT(a,b) a##b\n\
6318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6320 * Description of Sun_Malloc fix
6322 tSCC zSun_MallocName[] =
6326 * File name selection pattern
6328 tSCC zSun_MallocList[] =
6331 * Machine/OS name selection pattern
6333 #define apzSun_MallocMachs (const char**)NULL
6336 * content bypass pattern - skip fix if pattern found
6338 tSCC zSun_MallocBypass0[] =
6339 "_CLASSIC_ANSI_TYPES";
6341 #define SUN_MALLOC_TEST_CT 1
6342 static tTestDesc aSun_MallocTests[] = {
6343 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
6346 * Fix Command Arguments for Sun_Malloc
6348 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
6349 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6350 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6351 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6352 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6353 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6358 * Description of Sun_Rusers_Semi fix
6360 tSCC zSun_Rusers_SemiName[] =
6364 * File name selection pattern
6366 tSCC zSun_Rusers_SemiList[] =
6367 "rpcsvc/rusers.h\0";
6369 * Machine/OS name selection pattern
6371 #define apzSun_Rusers_SemiMachs (const char**)NULL
6374 * content selection pattern - do fix if pattern found
6376 tSCC zSun_Rusers_SemiSelect0[] =
6379 #define SUN_RUSERS_SEMI_TEST_CT 1
6380 static tTestDesc aSun_Rusers_SemiTests[] = {
6381 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6384 * Fix Command Arguments for Sun_Rusers_Semi
6386 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
6387 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6392 * Description of Sun_Signal fix
6394 tSCC zSun_SignalName[] =
6398 * File name selection pattern
6400 tSCC zSun_SignalList[] =
6401 "sys/signal.h\0signal.h\0";
6403 * Machine/OS name selection pattern
6405 #define apzSun_SignalMachs (const char**)NULL
6408 * content selection pattern - do fix if pattern found
6410 tSCC zSun_SignalSelect0[] =
6411 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6413 #define SUN_SIGNAL_TEST_CT 1
6414 static tTestDesc aSun_SignalTests[] = {
6415 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
6418 * Fix Command Arguments for Sun_Signal
6420 static const char* apzSun_SignalPatch[] = {
6422 "#ifdef __cplusplus\n\
6423 void\t(*signal(...))(...);\n\
6429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6431 * Description of Sunos_Strlen fix
6433 tSCC zSunos_StrlenName[] =
6437 * File name selection pattern
6439 tSCC zSunos_StrlenList[] =
6442 * Machine/OS name selection pattern
6444 #define apzSunos_StrlenMachs (const char**)NULL
6447 * content selection pattern - do fix if pattern found
6449 tSCC zSunos_StrlenSelect0[] =
6450 "int[ \t]*strlen\\(\\);(.*)";
6452 #define SUNOS_STRLEN_TEST_CT 1
6453 static tTestDesc aSunos_StrlenTests[] = {
6454 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
6457 * Fix Command Arguments for Sunos_Strlen
6459 static const char* apzSunos_StrlenPatch[] = {
6461 "__SIZE_TYPE__ strlen();%1",
6464 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6466 * Description of Svr4_Disable_Opt fix
6468 tSCC zSvr4_Disable_OptName[] =
6472 * File name selection pattern
6474 tSCC zSvr4_Disable_OptList[] =
6477 * Machine/OS name selection pattern
6479 #define apzSvr4_Disable_OptMachs (const char**)NULL
6482 * content selection pattern - do fix if pattern found
6484 tSCC zSvr4_Disable_OptSelect0[] =
6485 "#define.*__std_hdr_";
6487 #define SVR4_DISABLE_OPT_TEST_CT 1
6488 static tTestDesc aSvr4_Disable_OptTests[] = {
6489 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
6492 * Fix Command Arguments for Svr4_Disable_Opt
6494 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
6495 "-e", "/#define.*__std_hdr_/d",
6498 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6500 * Description of Svr4_Getcwd fix
6502 tSCC zSvr4_GetcwdName[] =
6506 * File name selection pattern
6508 tSCC zSvr4_GetcwdList[] =
6509 "stdlib.h\0unistd.h\0prototypes.h\0";
6511 * Machine/OS name selection pattern
6513 #define apzSvr4_GetcwdMachs (const char**)NULL
6516 * content selection pattern - do fix if pattern found
6518 tSCC zSvr4_GetcwdSelect0[] =
6519 "getcwd\\(char \\*, int\\)";
6521 #define SVR4_GETCWD_TEST_CT 1
6522 static tTestDesc aSvr4_GetcwdTests[] = {
6523 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
6526 * Fix Command Arguments for Svr4_Getcwd
6528 static const char* apzSvr4_GetcwdPatch[] = {
6530 "getcwd(char *, size_t)",
6533 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6535 * Description of Svr4_Profil fix
6537 tSCC zSvr4_ProfilName[] =
6541 * File name selection pattern
6543 tSCC zSvr4_ProfilList[] =
6544 "stdlib.h\0unistd.h\0";
6546 * Machine/OS name selection pattern
6548 #define apzSvr4_ProfilMachs (const char**)NULL
6551 * content selection pattern - do fix if pattern found
6553 tSCC zSvr4_ProfilSelect0[] =
6554 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
6557 * content bypass pattern - skip fix if pattern found
6559 tSCC zSvr4_ProfilBypass0[] =
6562 #define SVR4_PROFIL_TEST_CT 2
6563 static tTestDesc aSvr4_ProfilTests[] = {
6564 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
6565 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
6568 * Fix Command Arguments for Svr4_Profil
6570 static const char* apzSvr4_ProfilPatch[] = {
6572 "profil(unsigned short *, size_t, int, unsigned int)",
6575 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6577 * Description of Svr4_Sighandler_Type fix
6579 tSCC zSvr4_Sighandler_TypeName[] =
6580 "svr4_sighandler_type";
6583 * File name selection pattern
6585 tSCC zSvr4_Sighandler_TypeList[] =
6588 * Machine/OS name selection pattern
6590 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
6593 * content selection pattern - do fix if pattern found
6595 tSCC zSvr4_Sighandler_TypeSelect0[] =
6596 "void *\\(\\*\\)\\(\\)";
6598 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
6599 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
6600 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
6603 * Fix Command Arguments for Svr4_Sighandler_Type
6605 static const char* apzSvr4_Sighandler_TypePatch[] = {
6610 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6612 * Description of Svr4_Undeclared_Getrnge fix
6614 tSCC zSvr4_Undeclared_GetrngeName[] =
6615 "svr4_undeclared_getrnge";
6618 * File name selection pattern
6620 tSCC zSvr4_Undeclared_GetrngeList[] =
6623 * Machine/OS name selection pattern
6625 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
6628 * content selection pattern - do fix if pattern found
6630 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
6634 * content bypass pattern - skip fix if pattern found
6636 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
6637 "static void getrnge";
6639 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
6640 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
6641 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
6642 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
6645 * Fix Command Arguments for Svr4_Undeclared_Getrnge
6647 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
6650 static int getrnge ();",
6651 "^static int[ \t]+size;",
6654 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6656 * Description of Sysv68_String fix
6658 tSCC zSysv68_StringName[] =
6662 * File name selection pattern
6664 tSCC zSysv68_StringList[] =
6665 "testing.h\0string.h\0";
6667 * Machine/OS name selection pattern
6669 #define apzSysv68_StringMachs (const char**)NULL
6672 * content bypass pattern - skip fix if pattern found
6674 tSCC zSysv68_StringBypass0[] =
6675 "_CLASSIC_ANSI_TYPES";
6677 #define SYSV68_STRING_TEST_CT 1
6678 static tTestDesc aSysv68_StringTests[] = {
6679 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
6682 * Fix Command Arguments for Sysv68_String
6684 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
6685 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
6686 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
6687 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
6688 "-e", "/^extern char$/N",
6689 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
6690 "-e", "/^extern int$/N",
6691 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
6692 "-e", "/^\tstrncmp(),$/N",
6693 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
6694 extern unsigned int\\\n\
6698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6700 * Description of Sysz_Stdlib_For_Sun fix
6702 tSCC zSysz_Stdlib_For_SunName[] =
6703 "sysz_stdlib_for_sun";
6706 * File name selection pattern
6708 tSCC zSysz_Stdlib_For_SunList[] =
6711 * Machine/OS name selection pattern
6713 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
6716 * content selection pattern - do fix if pattern found
6718 tSCC zSysz_Stdlib_For_SunSelect0[] =
6719 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
6722 * content bypass pattern - skip fix if pattern found
6724 tSCC zSysz_Stdlib_For_SunBypass0[] =
6725 "_CLASSIC_ANSI_TYPES";
6727 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
6728 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
6729 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
6730 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
6733 * Fix Command Arguments for Sysz_Stdlib_For_Sun
6735 static const char* apzSysz_Stdlib_For_SunPatch[] = {
6740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6742 * Description of Thread_Keyword fix
6744 tSCC zThread_KeywordName[] =
6748 * File name selection pattern
6750 tSCC zThread_KeywordList[] =
6751 "pthread.h\0bits/sigthread.h\0";
6753 * Machine/OS name selection pattern
6755 #define apzThread_KeywordMachs (const char**)NULL
6758 * content selection pattern - do fix if pattern found
6760 tSCC zThread_KeywordSelect0[] =
6761 "([* ])__thread([,)])";
6763 #define THREAD_KEYWORD_TEST_CT 1
6764 static tTestDesc aThread_KeywordTests[] = {
6765 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
6768 * Fix Command Arguments for Thread_Keyword
6770 static const char* apzThread_KeywordPatch[] = {
6775 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6777 * Description of Tinfo_Cplusplus fix
6779 tSCC zTinfo_CplusplusName[] =
6783 * File name selection pattern
6785 tSCC zTinfo_CplusplusList[] =
6788 * Machine/OS name selection pattern
6790 #define apzTinfo_CplusplusMachs (const char**)NULL
6793 * content selection pattern - do fix if pattern found
6795 tSCC zTinfo_CplusplusSelect0[] =
6798 #define TINFO_CPLUSPLUS_TEST_CT 1
6799 static tTestDesc aTinfo_CplusplusTests[] = {
6800 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
6803 * Fix Command Arguments for Tinfo_Cplusplus
6805 static const char* apzTinfo_CplusplusPatch[] = {
6810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6812 * Description of Ultrix_Const fix
6814 tSCC zUltrix_ConstName[] =
6818 * File name selection pattern
6820 tSCC zUltrix_ConstList[] =
6823 * Machine/OS name selection pattern
6825 #define apzUltrix_ConstMachs (const char**)NULL
6828 * content selection pattern - do fix if pattern found
6830 tSCC zUltrix_ConstSelect0[] =
6831 "perror\\( char \\*";
6833 #define ULTRIX_CONST_TEST_CT 1
6834 static tTestDesc aUltrix_ConstTests[] = {
6835 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
6838 * Fix Command Arguments for Ultrix_Const
6840 static const char* apzUltrix_ConstPatch[] = {
6843 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
6846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6848 * Description of Ultrix_Const2 fix
6850 tSCC zUltrix_Const2Name[] =
6854 * File name selection pattern
6856 tSCC zUltrix_Const2List[] =
6859 * Machine/OS name selection pattern
6861 #define apzUltrix_Const2Machs (const char**)NULL
6864 * content selection pattern - do fix if pattern found
6866 tSCC zUltrix_Const2Select0[] =
6867 "\\*fopen\\( char \\*";
6869 #define ULTRIX_CONST2_TEST_CT 1
6870 static tTestDesc aUltrix_Const2Tests[] = {
6871 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
6874 * Fix Command Arguments for Ultrix_Const2
6876 static const char* apzUltrix_Const2Patch[] = {
6878 "%1( const char *%3, const char *",
6879 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
6882 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6884 * Description of Va_I960_Macro fix
6886 tSCC zVa_I960_MacroName[] =
6890 * File name selection pattern
6892 tSCC zVa_I960_MacroList[] =
6893 "arch/i960/archI960.h\0";
6895 * Machine/OS name selection pattern
6897 #define apzVa_I960_MacroMachs (const char**)NULL
6900 * content selection pattern - do fix if pattern found
6902 tSCC zVa_I960_MacroSelect0[] =
6903 "__(vsiz|vali|vpad|alignof__)";
6905 #define VA_I960_MACRO_TEST_CT 1
6906 static tTestDesc aVa_I960_MacroTests[] = {
6907 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
6910 * Fix Command Arguments for Va_I960_Macro
6912 static const char* apzVa_I960_MacroPatch[] = {
6917 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6919 * Description of Void_Null fix
6921 tSCC zVoid_NullName[] =
6925 * File name selection pattern
6927 tSCC zVoid_NullList[] =
6928 "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";
6930 * Machine/OS name selection pattern
6932 #define apzVoid_NullMachs (const char**)NULL
6935 * content selection pattern - do fix if pattern found
6937 tSCC zVoid_NullSelect0[] =
6938 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
6941 * content bypass pattern - skip fix if pattern found
6943 tSCC zVoid_NullBypass0[] =
6946 #define VOID_NULL_TEST_CT 2
6947 static tTestDesc aVoid_NullTests[] = {
6948 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
6949 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
6952 * Fix Command Arguments for Void_Null
6954 static const char* apzVoid_NullPatch[] = {
6959 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6961 * Description of Vxworks_Gcc_Problem fix
6963 tSCC zVxworks_Gcc_ProblemName[] =
6964 "vxworks_gcc_problem";
6967 * File name selection pattern
6969 tSCC zVxworks_Gcc_ProblemList[] =
6970 "types/vxTypesBase.h\0";
6972 * Machine/OS name selection pattern
6974 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
6977 * content selection pattern - do fix if pattern found
6979 tSCC zVxworks_Gcc_ProblemSelect0[] =
6980 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
6982 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
6983 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
6984 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
6987 * Fix Command Arguments for Vxworks_Gcc_Problem
6989 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
6990 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
6991 "-e", "/[ \t]size_t/i\\\n\
6992 #ifndef _GCC_SIZE_T\\\n\
6993 #define _GCC_SIZE_T\n",
6994 "-e", "/[ \t]size_t/a\\\n\
6996 "-e", "/[ \t]ptrdiff_t/i\\\n\
6997 #ifndef _GCC_PTRDIFF_T\\\n\
6998 #define _GCC_PTRDIFF_T\n",
6999 "-e", "/[ \t]ptrdiff_t/a\\\n\
7001 "-e", "/[ \t]wchar_t/i\\\n\
7002 #ifndef _GCC_WCHAR_T\\\n\
7003 #define _GCC_WCHAR_T\n",
7004 "-e", "/[ \t]wchar_t/a\\\n\
7008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7010 * Description of Vxworks_Needs_Vxtypes fix
7012 tSCC zVxworks_Needs_VxtypesName[] =
7013 "vxworks_needs_vxtypes";
7016 * File name selection pattern
7018 tSCC zVxworks_Needs_VxtypesList[] =
7021 * Machine/OS name selection pattern
7023 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
7026 * content selection pattern - do fix if pattern found
7028 tSCC zVxworks_Needs_VxtypesSelect0[] =
7029 "uint_t([ \t]+_clocks_per_sec)";
7031 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
7032 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
7033 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
7036 * Fix Command Arguments for Vxworks_Needs_Vxtypes
7038 static const char* apzVxworks_Needs_VxtypesPatch[] = {
7043 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7045 * Description of Vxworks_Needs_Vxworks fix
7047 tSCC zVxworks_Needs_VxworksName[] =
7048 "vxworks_needs_vxworks";
7051 * File name selection pattern
7053 tSCC zVxworks_Needs_VxworksList[] =
7056 * Machine/OS name selection pattern
7058 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
7061 * content selection pattern - do fix if pattern found
7063 tSCC zVxworks_Needs_VxworksSelect0[] =
7064 "#[ \t]define[ \t]+__INCstath";
7067 * perform the 'test' shell command - do fix on success
7069 tSCC zVxworks_Needs_VxworksTest0[] =
7070 " -r types/vxTypesOld.h";
7071 tSCC zVxworks_Needs_VxworksTest1[] =
7072 " -n \"`egrep '#include' $file`\"";
7073 tSCC zVxworks_Needs_VxworksTest2[] =
7074 " -n \"`egrep ULONG $file`\"";
7076 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
7077 static tTestDesc aVxworks_Needs_VxworksTests[] = {
7078 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
7079 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
7080 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
7081 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
7084 * Fix Command Arguments for Vxworks_Needs_Vxworks
7086 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
7087 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
7088 #include <types/vxTypesOld.h>\n",
7091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7093 * Description of Vxworks_Time fix
7095 tSCC zVxworks_TimeName[] =
7099 * File name selection pattern
7101 tSCC zVxworks_TimeList[] =
7104 * Machine/OS name selection pattern
7106 #define apzVxworks_TimeMachs (const char**)NULL
7109 * content selection pattern - do fix if pattern found
7111 tSCC zVxworks_TimeSelect0[] =
7112 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
7115 * perform the 'test' shell command - do fix on success
7117 tSCC zVxworks_TimeTest0[] =
7120 #define VXWORKS_TIME_TEST_CT 2
7121 static tTestDesc aVxworks_TimeTests[] = {
7122 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
7123 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
7126 * Fix Command Arguments for Vxworks_Time
7128 static const char* apzVxworks_TimePatch[] = {
7130 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
7131 #ifdef __cplusplus\n\
7132 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
7134 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
7136 #define __gcc_VOIDFUNCPTR_defined\n\
7138 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
7141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7143 * Description of X11_Class fix
7145 tSCC zX11_ClassName[] =
7149 * File name selection pattern
7151 tSCC zX11_ClassList[] =
7154 * Machine/OS name selection pattern
7156 #define apzX11_ClassMachs (const char**)NULL
7159 * content selection pattern - do fix if pattern found
7161 tSCC zX11_ClassSelect0[] =
7162 "^([ \t]*char \\*)class;(.*)";
7165 * content bypass pattern - skip fix if pattern found
7167 tSCC zX11_ClassBypass0[] =
7170 #define X11_CLASS_TEST_CT 2
7171 static tTestDesc aX11_ClassTests[] = {
7172 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
7173 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
7176 * Fix Command Arguments for X11_Class
7178 static const char* apzX11_ClassPatch[] = {
7180 "#ifdef __cplusplus\n\
7187 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7189 * Description of X11_Class_Usage fix
7191 tSCC zX11_Class_UsageName[] =
7195 * File name selection pattern
7197 tSCC zX11_Class_UsageList[] =
7198 "Xm/BaseClassI.h\0";
7200 * Machine/OS name selection pattern
7202 #define apzX11_Class_UsageMachs (const char**)NULL
7205 * content selection pattern - do fix if pattern found
7207 tSCC zX11_Class_UsageSelect0[] =
7211 * content bypass pattern - skip fix if pattern found
7213 tSCC zX11_Class_UsageBypass0[] =
7216 #define X11_CLASS_USAGE_TEST_CT 2
7217 static tTestDesc aX11_Class_UsageTests[] = {
7218 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
7219 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
7222 * Fix Command Arguments for X11_Class_Usage
7224 static const char* apzX11_Class_UsagePatch[] = {
7229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7231 * Description of X11_New fix
7233 tSCC zX11_NewName[] =
7237 * File name selection pattern
7239 tSCC zX11_NewList[] =
7242 * Machine/OS name selection pattern
7244 #define apzX11_NewMachs (const char**)NULL
7247 * content bypass pattern - skip fix if pattern found
7249 tSCC zX11_NewBypass0[] =
7252 #define X11_NEW_TEST_CT 1
7253 static tTestDesc aX11_NewTests[] = {
7254 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
7257 * Fix Command Arguments for X11_New
7259 static const char* apzX11_NewPatch[] = { sed_cmd_z,
7260 "-e", "/Widget\told, new;/i\\\n\
7261 #ifdef __cplusplus\\\n\
7262 \tWidget\told, c_new;\\\n\
7264 "-e", "/Widget\told, new;/a\\\n\
7266 "-e", "s/Widget new,/Widget c_new,/g",
7269 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7271 * Description of X11_Sprintf fix
7273 tSCC zX11_SprintfName[] =
7277 * File name selection pattern
7279 tSCC zX11_SprintfList[] =
7280 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
7282 * Machine/OS name selection pattern
7284 #define apzX11_SprintfMachs (const char**)NULL
7287 * content selection pattern - do fix if pattern found
7289 tSCC zX11_SprintfSelect0[] =
7290 "^extern char \\*\tsprintf\\(\\);$";
7292 #define X11_SPRINTF_TEST_CT 1
7293 static tTestDesc aX11_SprintfTests[] = {
7294 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
7297 * Fix Command Arguments for X11_Sprintf
7299 static const char* apzX11_SprintfPatch[] = {
7301 "#ifndef __STDC__\n\
7303 #endif /* !defined __STDC__ */",
7307 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7311 #define REGEX_COUNT 226
7312 #define MACH_LIST_SIZE_LIMIT 181
7313 #define FIX_COUNT 180
7316 * Enumerate the fixes
7319 AAB_AIX_STDIO_FIXIDX,
7320 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
7321 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
7322 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
7323 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
7324 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
7325 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
7326 AAB_SUN_MEMCPY_FIXIDX,
7328 AIX_SYSMACHINE_FIXIDX,
7330 AIX_SYSWAIT_2_FIXIDX,
7331 AIX_VOLATILE_FIXIDX,
7332 ALPHA___ASSERT_FIXIDX,
7333 ALPHA___EXTERN_PREFIX_FIXIDX,
7334 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
7335 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
7336 ALPHA_ASSERT_FIXIDX,
7337 ALPHA_BAD_LVAL_FIXIDX,
7338 ALPHA_GETOPT_FIXIDX,
7339 ALPHA_IF_SEMICOLON_FIXIDX,
7340 ALPHA_PARENS_FIXIDX,
7341 ALPHA_PTHREAD_FIXIDX,
7342 ALPHA_PTHREAD_GCC_FIXIDX,
7343 ALPHA_PTHREAD_INIT_FIXIDX,
7346 AVOID_BOOL_DEFINE_FIXIDX,
7347 AVOID_BOOL_TYPE_FIXIDX,
7348 AVOID_WCHAR_T_TYPE_FIXIDX,
7349 BAD_STRUCT_TERM_FIXIDX,
7351 BROKEN_ASSERT_STDIO_FIXIDX,
7352 BROKEN_ASSERT_STDLIB_FIXIDX,
7355 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
7356 CTRL_QUOTES_DEF_FIXIDX,
7357 CTRL_QUOTES_USE_FIXIDX,
7359 DARWIN_EXTERNC_FIXIDX,
7360 DARWIN_GCC4_BREAKAGE_FIXIDX,
7361 DARWIN_PRIVATE_EXTERN_FIXIDX,
7362 DEC_INTERN_ASM_FIXIDX,
7363 DJGPP_WCHAR_H_FIXIDX,
7365 EXCEPTION_STRUCTURE_FIXIDX,
7366 FREEBSD_GCC3_BREAKAGE_FIXIDX,
7367 FREEBSD_GCC4_BREAKAGE_FIXIDX,
7368 GLIBC_C99_INLINE_1_FIXIDX,
7369 GLIBC_C99_INLINE_1A_FIXIDX,
7370 GLIBC_C99_INLINE_2_FIXIDX,
7371 GLIBC_C99_INLINE_3_FIXIDX,
7372 GLIBC_C99_INLINE_4_FIXIDX,
7373 GLIBC_MUTEX_INIT_FIXIDX,
7377 HPPA_HPUX_FP_MACROS_FIXIDX,
7378 HPUX10_CPP_POW_INLINE_FIXIDX,
7379 HPUX11_CPP_POW_INLINE_FIXIDX,
7380 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
7381 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
7382 HPUX10_STDIO_DECLARATIONS_FIXIDX,
7384 HPUX11_FABSF_FIXIDX,
7385 HPUX11_PTHREAD_CONST_FIXIDX,
7386 HPUX11_SIZE_T_FIXIDX,
7387 HPUX11_SNPRINTF_FIXIDX,
7388 HPUX11_UINT32_C_FIXIDX,
7389 HPUX11_VSNPRINTF_FIXIDX,
7390 HPUX8_BOGUS_INLINES_FIXIDX,
7391 HPUX_CTYPE_MACROS_FIXIDX,
7393 HPUX_LONG_DOUBLE_FIXIDX,
7394 HPUX_SYSTIME_FIXIDX,
7395 HPUX_SPU_INFO_FIXIDX,
7396 HPUX11_EXTERN_SENDFILE_FIXIDX,
7397 HPUX11_EXTERN_SENDPATH_FIXIDX,
7398 HPUX_EXTERN_ERRNO_FIXIDX,
7399 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
7400 HUGE_VAL_HEX_FIXIDX,
7401 HUGE_VALF_HEX_FIXIDX,
7402 HUGE_VALL_HEX_FIXIDX,
7403 INT_ABORT_FREE_AND_EXIT_FIXIDX,
7404 IO_QUOTES_DEF_FIXIDX,
7405 IO_QUOTES_USE_FIXIDX,
7406 IP_MISSING_SEMI_FIXIDX,
7407 IRIX___RESTRICT_FIXIDX,
7408 IRIX___GENERIC1_FIXIDX,
7409 IRIX___GENERIC2_FIXIDX,
7410 IRIX_ASM_APOSTROPHE_FIXIDX,
7411 IRIX_LIMITS_CONST_FIXIDX,
7412 IRIX_SOCKLEN_T_FIXIDX,
7413 IRIX_STDINT_C99_FIXIDX,
7414 IRIX_STDIO_VA_LIST_FIXIDX,
7415 IRIX_WCSFTIME_FIXIDX,
7417 ISC_OMITS_WITH_STDC_FIXIDX,
7418 KANDR_CONCAT_FIXIDX,
7419 LINUX_IA64_UCONTEXT_FIXIDX,
7420 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
7421 LYNXOS_MISSING_PUTENV_FIXIDX,
7422 MACHINE_ANSI_H_VA_LIST_FIXIDX,
7423 MACHINE_NAME_FIXIDX,
7424 MATH_EXCEPTION_FIXIDX,
7425 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
7426 NESTED_AUTH_DES_FIXIDX,
7427 NESTED_SYS_LIMITS_FIXIDX,
7428 NETBSD_C99_INLINE_1_FIXIDX,
7429 NETBSD_C99_INLINE_2_FIXIDX,
7430 NETBSD_EXTRA_SEMICOLON_FIXIDX,
7431 NEXT_MATH_PREFIX_FIXIDX,
7432 NEXT_TEMPLATE_FIXIDX,
7433 NEXT_VOLITILE_FIXIDX,
7434 NEXT_WAIT_UNION_FIXIDX,
7435 NODEENT_SYNTAX_FIXIDX,
7436 OPENBSD_NULL_DEFINITION_FIXIDX,
7437 OBSTACK_LVALUE_CAST_FIXIDX,
7438 OPENBSD_VA_START_FIXIDX,
7439 OSF_NAMESPACE_A_FIXIDX,
7440 OSF_NAMESPACE_C_FIXIDX,
7441 PTHREAD_PAGE_SIZE_FIXIDX,
7442 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
7443 READ_RET_TYPE_FIXIDX,
7444 RPC_XDR_LVALUE_CAST_A_FIXIDX,
7445 RPC_XDR_LVALUE_CAST_B_FIXIDX,
7446 RS6000_DOUBLE_FIXIDX,
7447 RS6000_FCHMOD_FIXIDX,
7448 RS6000_PARAM_FIXIDX,
7450 SOLARIS_MATH_1_FIXIDX,
7451 SOLARIS_MATH_2_FIXIDX,
7452 SOLARIS_MATH_3_FIXIDX,
7453 SOLARIS_MATH_4_FIXIDX,
7454 SOLARIS_MATH_8_FIXIDX,
7455 SOLARIS_MATH_9_FIXIDX,
7456 SOLARIS_MATH_10_FIXIDX,
7457 SOLARIS_MUTEX_INIT_2_FIXIDX,
7458 SOLARIS_RWLOCK_INIT_1_FIXIDX,
7459 SOLARIS_ONCE_INIT_1_FIXIDX,
7460 SOLARIS_ONCE_INIT_2_FIXIDX,
7461 SOLARIS_STDIO_TAG_FIXIDX,
7463 STDIO_STDARG_H_FIXIDX,
7464 STDIO_VA_LIST_FIXIDX,
7465 STDIO_VA_LIST_CLIENTS_FIXIDX,
7466 STRICT_ANSI_NOT_FIXIDX,
7467 STRICT_ANSI_NOT_CTD_FIXIDX,
7468 STRICT_ANSI_ONLY_FIXIDX,
7470 STRUCT_SOCKADDR_FIXIDX,
7471 SUN_AUTH_PROTO_FIXIDX,
7472 SUN_BOGUS_IFDEF_FIXIDX,
7473 SUN_CATMACRO_FIXIDX,
7475 SUN_RUSERS_SEMI_FIXIDX,
7477 SUNOS_STRLEN_FIXIDX,
7478 SVR4_DISABLE_OPT_FIXIDX,
7481 SVR4_SIGHANDLER_TYPE_FIXIDX,
7482 SVR4_UNDECLARED_GETRNGE_FIXIDX,
7483 SYSV68_STRING_FIXIDX,
7484 SYSZ_STDLIB_FOR_SUN_FIXIDX,
7485 THREAD_KEYWORD_FIXIDX,
7486 TINFO_CPLUSPLUS_FIXIDX,
7487 ULTRIX_CONST_FIXIDX,
7488 ULTRIX_CONST2_FIXIDX,
7489 VA_I960_MACRO_FIXIDX,
7491 VXWORKS_GCC_PROBLEM_FIXIDX,
7492 VXWORKS_NEEDS_VXTYPES_FIXIDX,
7493 VXWORKS_NEEDS_VXWORKS_FIXIDX,
7494 VXWORKS_TIME_FIXIDX,
7496 X11_CLASS_USAGE_FIXIDX,
7501 tFixDesc fixDescList[ FIX_COUNT ] = {
7502 { zAab_Aix_StdioName, zAab_Aix_StdioList,
7503 apzAab_Aix_StdioMachs,
7504 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7505 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
7507 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
7508 apzAab_Darwin7_9_Long_Double_FuncsMachs,
7509 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7510 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
7512 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
7513 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
7514 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7515 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
7517 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
7518 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
7519 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7520 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
7522 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
7523 apzAab_Fd_Zero_Gnu_Types_HMachs,
7524 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7525 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
7527 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
7528 apzAab_Fd_Zero_Selectbits_HMachs,
7529 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7530 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
7532 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
7533 apzAab_Solaris_Sys_Varargs_HMachs,
7534 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7535 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
7537 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
7538 apzAab_Sun_MemcpyMachs,
7539 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7540 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
7542 { zAix_PthreadName, zAix_PthreadList,
7543 apzAix_PthreadMachs,
7544 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7545 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
7547 { zAix_SysmachineName, zAix_SysmachineList,
7548 apzAix_SysmachineMachs,
7549 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7550 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
7552 { zAix_SyswaitName, zAix_SyswaitList,
7553 apzAix_SyswaitMachs,
7554 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7555 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
7557 { zAix_Syswait_2Name, zAix_Syswait_2List,
7558 apzAix_Syswait_2Machs,
7559 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7560 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
7562 { zAix_VolatileName, zAix_VolatileList,
7563 apzAix_VolatileMachs,
7564 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7565 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
7567 { zAlpha___AssertName, zAlpha___AssertList,
7568 apzAlpha___AssertMachs,
7569 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7570 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
7572 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
7573 apzAlpha___Extern_PrefixMachs,
7574 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7575 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
7577 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
7578 apzAlpha___Extern_Prefix_StandardsMachs,
7579 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7580 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
7582 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
7583 apzAlpha___Extern_Prefix_Sys_StatMachs,
7584 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7585 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
7587 { zAlpha_AssertName, zAlpha_AssertList,
7588 apzAlpha_AssertMachs,
7589 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7590 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
7592 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
7593 apzAlpha_Bad_LvalMachs,
7594 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
7595 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
7597 { zAlpha_GetoptName, zAlpha_GetoptList,
7598 apzAlpha_GetoptMachs,
7599 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7600 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
7602 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
7603 apzAlpha_If_SemicolonMachs,
7604 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7605 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
7607 { zAlpha_ParensName, zAlpha_ParensList,
7608 apzAlpha_ParensMachs,
7609 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7610 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
7612 { zAlpha_PthreadName, zAlpha_PthreadList,
7613 apzAlpha_PthreadMachs,
7614 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7615 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
7617 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
7618 apzAlpha_Pthread_GccMachs,
7619 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7620 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
7622 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
7623 apzAlpha_Pthread_InitMachs,
7624 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
7625 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
7627 { zAlpha_SbrkName, zAlpha_SbrkList,
7629 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7630 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
7632 { zAlpha_WcharName, zAlpha_WcharList,
7633 apzAlpha_WcharMachs,
7634 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
7635 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
7637 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
7638 apzAvoid_Bool_DefineMachs,
7639 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7640 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
7642 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
7643 apzAvoid_Bool_TypeMachs,
7644 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7645 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
7647 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
7648 apzAvoid_Wchar_T_TypeMachs,
7649 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7650 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
7652 { zBad_Struct_TermName, zBad_Struct_TermList,
7653 apzBad_Struct_TermMachs,
7654 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7655 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
7657 { zBadquoteName, zBadquoteList,
7659 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7660 aBadquoteTests, apzBadquotePatch, 0 },
7662 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
7663 apzBroken_Assert_StdioMachs,
7664 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7665 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
7667 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
7668 apzBroken_Assert_StdlibMachs,
7669 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7670 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
7672 { zBroken_CabsName, zBroken_CabsList,
7673 apzBroken_CabsMachs,
7674 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
7675 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
7677 { zBroken_NanName, zBroken_NanList,
7679 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7680 aBroken_NanTests, apzBroken_NanPatch, 0 },
7682 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
7683 apzBsd_Stdio_Attrs_ConflictMachs,
7684 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7685 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
7687 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
7688 apzCtrl_Quotes_DefMachs,
7689 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7690 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
7692 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
7693 apzCtrl_Quotes_UseMachs,
7694 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7695 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
7697 { zCxx_UnreadyName, zCxx_UnreadyList,
7698 apzCxx_UnreadyMachs,
7699 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7700 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
7702 { zDarwin_ExterncName, zDarwin_ExterncList,
7703 apzDarwin_ExterncMachs,
7704 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7705 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
7707 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
7708 apzDarwin_Gcc4_BreakageMachs,
7709 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7710 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
7712 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
7713 apzDarwin_Private_ExternMachs,
7714 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7715 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
7717 { zDec_Intern_AsmName, zDec_Intern_AsmList,
7718 apzDec_Intern_AsmMachs,
7719 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
7720 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
7722 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
7723 apzDjgpp_Wchar_HMachs,
7724 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7725 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
7727 { zEcd_CursorName, zEcd_CursorList,
7729 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7730 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
7732 { zException_StructureName, zException_StructureList,
7733 apzException_StructureMachs,
7734 EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7735 aException_StructureTests, apzException_StructurePatch, 0 },
7737 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
7738 apzFreebsd_Gcc3_BreakageMachs,
7739 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7740 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
7742 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
7743 apzFreebsd_Gcc4_BreakageMachs,
7744 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7745 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
7747 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
7748 apzGlibc_C99_Inline_1Machs,
7749 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7750 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
7752 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
7753 apzGlibc_C99_Inline_1aMachs,
7754 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7755 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
7757 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
7758 apzGlibc_C99_Inline_2Machs,
7759 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
7760 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
7762 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
7763 apzGlibc_C99_Inline_3Machs,
7764 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7765 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
7767 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
7768 apzGlibc_C99_Inline_4Machs,
7769 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7770 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
7772 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
7773 apzGlibc_Mutex_InitMachs,
7774 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
7775 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
7777 { zGnu_TypesName, zGnu_TypesList,
7779 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
7780 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
7782 { zHp_InlineName, zHp_InlineList,
7784 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7785 aHp_InlineTests, apzHp_InlinePatch, 0 },
7787 { zHp_SysfileName, zHp_SysfileList,
7789 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7790 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
7792 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
7793 apzHppa_Hpux_Fp_MacrosMachs,
7794 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7795 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
7797 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
7798 apzHpux10_Cpp_Pow_InlineMachs,
7799 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7800 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
7802 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
7803 apzHpux11_Cpp_Pow_InlineMachs,
7804 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7805 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
7807 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
7808 apzHpux10_Ctype_Declarations1Machs,
7809 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7810 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
7812 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
7813 apzHpux10_Ctype_Declarations2Machs,
7814 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7815 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
7817 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
7818 apzHpux10_Stdio_DeclarationsMachs,
7819 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7820 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
7822 { zHpux11_AbsName, zHpux11_AbsList,
7824 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7825 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
7827 { zHpux11_FabsfName, zHpux11_FabsfList,
7828 apzHpux11_FabsfMachs,
7829 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7830 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
7832 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
7833 apzHpux11_Pthread_ConstMachs,
7834 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7835 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
7837 { zHpux11_Size_TName, zHpux11_Size_TList,
7838 apzHpux11_Size_TMachs,
7839 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7840 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
7842 { zHpux11_SnprintfName, zHpux11_SnprintfList,
7843 apzHpux11_SnprintfMachs,
7844 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7845 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
7847 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
7848 apzHpux11_Uint32_CMachs,
7849 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7850 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
7852 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
7853 apzHpux11_VsnprintfMachs,
7854 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7855 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
7857 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
7858 apzHpux8_Bogus_InlinesMachs,
7859 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
7860 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
7862 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
7863 apzHpux_Ctype_MacrosMachs,
7864 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7865 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
7867 { zHpux_HtonlName, zHpux_HtonlList,
7869 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7870 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
7872 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
7873 apzHpux_Long_DoubleMachs,
7874 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
7875 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
7877 { zHpux_SystimeName, zHpux_SystimeList,
7878 apzHpux_SystimeMachs,
7879 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7880 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
7882 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
7883 apzHpux_Spu_InfoMachs,
7884 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7885 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
7887 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
7888 apzHpux11_Extern_SendfileMachs,
7889 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7890 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
7892 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
7893 apzHpux11_Extern_SendpathMachs,
7894 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7895 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
7897 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
7898 apzHpux_Extern_ErrnoMachs,
7899 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7900 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
7902 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
7903 apzHpux_Pthread_InitializersMachs,
7904 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
7905 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
7907 { zHuge_Val_HexName, zHuge_Val_HexList,
7908 apzHuge_Val_HexMachs,
7909 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7910 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
7912 { zHuge_Valf_HexName, zHuge_Valf_HexList,
7913 apzHuge_Valf_HexMachs,
7914 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7915 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
7917 { zHuge_Vall_HexName, zHuge_Vall_HexList,
7918 apzHuge_Vall_HexMachs,
7919 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7920 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
7922 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
7923 apzInt_Abort_Free_And_ExitMachs,
7924 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7925 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
7927 { zIo_Quotes_DefName, zIo_Quotes_DefList,
7928 apzIo_Quotes_DefMachs,
7929 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7930 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
7932 { zIo_Quotes_UseName, zIo_Quotes_UseList,
7933 apzIo_Quotes_UseMachs,
7934 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7935 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
7937 { zIp_Missing_SemiName, zIp_Missing_SemiList,
7938 apzIp_Missing_SemiMachs,
7939 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
7940 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
7942 { zIrix___RestrictName, zIrix___RestrictList,
7943 apzIrix___RestrictMachs,
7944 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7945 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
7947 { zIrix___Generic1Name, zIrix___Generic1List,
7948 apzIrix___Generic1Machs,
7949 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7950 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
7952 { zIrix___Generic2Name, zIrix___Generic2List,
7953 apzIrix___Generic2Machs,
7954 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7955 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
7957 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
7958 apzIrix_Asm_ApostropheMachs,
7959 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7960 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
7962 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
7963 apzIrix_Limits_ConstMachs,
7964 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7965 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
7967 { zIrix_Socklen_TName, zIrix_Socklen_TList,
7968 apzIrix_Socklen_TMachs,
7969 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7970 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
7972 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
7973 apzIrix_Stdint_C99Machs,
7974 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7975 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
7977 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
7978 apzIrix_Stdio_Va_ListMachs,
7979 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7980 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
7982 { zIrix_WcsftimeName, zIrix_WcsftimeList,
7983 apzIrix_WcsftimeMachs,
7984 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7985 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
7987 { zIsc_FmodName, zIsc_FmodList,
7989 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7990 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
7992 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
7993 apzIsc_Omits_With_StdcMachs,
7994 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7995 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
7997 { zKandr_ConcatName, zKandr_ConcatList,
7998 apzKandr_ConcatMachs,
7999 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8000 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
8002 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
8003 apzLinux_Ia64_UcontextMachs,
8004 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8005 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
8007 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
8008 apzLynxos_No_Warning_In_Sys_Time_HMachs,
8009 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8010 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
8012 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
8013 apzLynxos_Missing_PutenvMachs,
8014 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8015 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
8017 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
8018 apzMachine_Ansi_H_Va_ListMachs,
8019 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8020 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
8022 { zMachine_NameName, zMachine_NameList,
8023 apzMachine_NameMachs,
8024 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8025 aMachine_NameTests, apzMachine_NamePatch, 0 },
8027 { zMath_ExceptionName, zMath_ExceptionList,
8028 apzMath_ExceptionMachs,
8029 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8030 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
8032 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
8033 apzMath_Huge_Val_From_Dbl_MaxMachs,
8034 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
8035 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
8037 { zNested_Auth_DesName, zNested_Auth_DesList,
8038 apzNested_Auth_DesMachs,
8039 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8040 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
8042 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
8043 apzNested_Sys_LimitsMachs,
8044 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
8045 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
8047 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
8048 apzNetbsd_C99_Inline_1Machs,
8049 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8050 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
8052 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
8053 apzNetbsd_C99_Inline_2Machs,
8054 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8055 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
8057 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
8058 apzNetbsd_Extra_SemicolonMachs,
8059 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8060 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
8062 { zNext_Math_PrefixName, zNext_Math_PrefixList,
8063 apzNext_Math_PrefixMachs,
8064 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8065 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
8067 { zNext_TemplateName, zNext_TemplateList,
8068 apzNext_TemplateMachs,
8069 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8070 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
8072 { zNext_VolitileName, zNext_VolitileList,
8073 apzNext_VolitileMachs,
8074 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8075 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
8077 { zNext_Wait_UnionName, zNext_Wait_UnionList,
8078 apzNext_Wait_UnionMachs,
8079 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8080 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
8082 { zNodeent_SyntaxName, zNodeent_SyntaxList,
8083 apzNodeent_SyntaxMachs,
8084 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8085 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
8087 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
8088 apzOpenbsd_Null_DefinitionMachs,
8089 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8090 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
8092 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
8093 apzObstack_Lvalue_CastMachs,
8094 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8095 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
8097 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
8098 apzOpenbsd_Va_StartMachs,
8099 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8100 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
8102 { zOsf_Namespace_AName, zOsf_Namespace_AList,
8103 apzOsf_Namespace_AMachs,
8104 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8105 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
8107 { zOsf_Namespace_CName, zOsf_Namespace_CList,
8108 apzOsf_Namespace_CMachs,
8109 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8110 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
8112 { zPthread_Page_SizeName, zPthread_Page_SizeList,
8113 apzPthread_Page_SizeMachs,
8114 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8115 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
8117 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
8118 apzPthread_Incomplete_Struct_ArgumentMachs,
8119 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8120 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
8122 { zRead_Ret_TypeName, zRead_Ret_TypeList,
8123 apzRead_Ret_TypeMachs,
8124 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8125 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
8127 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
8128 apzRpc_Xdr_Lvalue_Cast_AMachs,
8129 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8130 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
8132 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
8133 apzRpc_Xdr_Lvalue_Cast_BMachs,
8134 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8135 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
8137 { zRs6000_DoubleName, zRs6000_DoubleList,
8138 apzRs6000_DoubleMachs,
8139 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8140 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
8142 { zRs6000_FchmodName, zRs6000_FchmodList,
8143 apzRs6000_FchmodMachs,
8144 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8145 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
8147 { zRs6000_ParamName, zRs6000_ParamList,
8148 apzRs6000_ParamMachs,
8149 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8150 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
8152 { zSco_MathName, zSco_MathList,
8154 SCO_MATH_TEST_CT, FD_MACH_ONLY,
8155 aSco_MathTests, apzSco_MathPatch, 0 },
8157 { zSolaris_Math_1Name, zSolaris_Math_1List,
8158 apzSolaris_Math_1Machs,
8159 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8160 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
8162 { zSolaris_Math_2Name, zSolaris_Math_2List,
8163 apzSolaris_Math_2Machs,
8164 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8165 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
8167 { zSolaris_Math_3Name, zSolaris_Math_3List,
8168 apzSolaris_Math_3Machs,
8169 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8170 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
8172 { zSolaris_Math_4Name, zSolaris_Math_4List,
8173 apzSolaris_Math_4Machs,
8174 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8175 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
8177 { zSolaris_Math_8Name, zSolaris_Math_8List,
8178 apzSolaris_Math_8Machs,
8179 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8180 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
8182 { zSolaris_Math_9Name, zSolaris_Math_9List,
8183 apzSolaris_Math_9Machs,
8184 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8185 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
8187 { zSolaris_Math_10Name, zSolaris_Math_10List,
8188 apzSolaris_Math_10Machs,
8189 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8190 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
8192 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
8193 apzSolaris_Mutex_Init_2Machs,
8194 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8195 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
8197 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
8198 apzSolaris_Rwlock_Init_1Machs,
8199 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8200 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
8202 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
8203 apzSolaris_Once_Init_1Machs,
8204 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8205 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
8207 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
8208 apzSolaris_Once_Init_2Machs,
8209 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8210 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
8212 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
8213 apzSolaris_Stdio_TagMachs,
8214 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
8215 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
8217 { zStatsswtchName, zStatsswtchList,
8219 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8220 aStatsswtchTests, apzStatsswtchPatch, 0 },
8222 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
8223 apzStdio_Stdarg_HMachs,
8224 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
8225 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
8227 { zStdio_Va_ListName, zStdio_Va_ListList,
8228 apzStdio_Va_ListMachs,
8229 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
8230 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
8232 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
8233 apzStdio_Va_List_ClientsMachs,
8234 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
8235 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
8237 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
8238 apzStrict_Ansi_NotMachs,
8239 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8240 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
8242 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
8243 apzStrict_Ansi_Not_CtdMachs,
8244 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8245 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
8247 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
8248 apzStrict_Ansi_OnlyMachs,
8249 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8250 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
8252 { zStruct_FileName, zStruct_FileList,
8253 apzStruct_FileMachs,
8254 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8255 aStruct_FileTests, apzStruct_FilePatch, 0 },
8257 { zStruct_SockaddrName, zStruct_SockaddrList,
8258 apzStruct_SockaddrMachs,
8259 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8260 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
8262 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
8263 apzSun_Auth_ProtoMachs,
8264 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8265 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
8267 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
8268 apzSun_Bogus_IfdefMachs,
8269 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8270 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
8272 { zSun_CatmacroName, zSun_CatmacroList,
8273 apzSun_CatmacroMachs,
8274 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8275 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
8277 { zSun_MallocName, zSun_MallocList,
8279 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
8280 aSun_MallocTests, apzSun_MallocPatch, 0 },
8282 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
8283 apzSun_Rusers_SemiMachs,
8284 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
8285 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
8287 { zSun_SignalName, zSun_SignalList,
8289 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8290 aSun_SignalTests, apzSun_SignalPatch, 0 },
8292 { zSunos_StrlenName, zSunos_StrlenList,
8293 apzSunos_StrlenMachs,
8294 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8295 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
8297 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
8298 apzSvr4_Disable_OptMachs,
8299 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
8300 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
8302 { zSvr4_GetcwdName, zSvr4_GetcwdList,
8303 apzSvr4_GetcwdMachs,
8304 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8305 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
8307 { zSvr4_ProfilName, zSvr4_ProfilList,
8308 apzSvr4_ProfilMachs,
8309 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8310 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
8312 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
8313 apzSvr4_Sighandler_TypeMachs,
8314 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8315 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
8317 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
8318 apzSvr4_Undeclared_GetrngeMachs,
8319 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8320 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
8322 { zSysv68_StringName, zSysv68_StringList,
8323 apzSysv68_StringMachs,
8324 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
8325 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
8327 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
8328 apzSysz_Stdlib_For_SunMachs,
8329 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8330 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
8332 { zThread_KeywordName, zThread_KeywordList,
8333 apzThread_KeywordMachs,
8334 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8335 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
8337 { zTinfo_CplusplusName, zTinfo_CplusplusList,
8338 apzTinfo_CplusplusMachs,
8339 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8340 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
8342 { zUltrix_ConstName, zUltrix_ConstList,
8343 apzUltrix_ConstMachs,
8344 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8345 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
8347 { zUltrix_Const2Name, zUltrix_Const2List,
8348 apzUltrix_Const2Machs,
8349 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8350 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
8352 { zVa_I960_MacroName, zVa_I960_MacroList,
8353 apzVa_I960_MacroMachs,
8354 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8355 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
8357 { zVoid_NullName, zVoid_NullList,
8359 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8360 aVoid_NullTests, apzVoid_NullPatch, 0 },
8362 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
8363 apzVxworks_Gcc_ProblemMachs,
8364 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
8365 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
8367 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
8368 apzVxworks_Needs_VxtypesMachs,
8369 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8370 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
8372 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
8373 apzVxworks_Needs_VxworksMachs,
8374 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
8375 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
8377 { zVxworks_TimeName, zVxworks_TimeList,
8378 apzVxworks_TimeMachs,
8379 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8380 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
8382 { zX11_ClassName, zX11_ClassList,
8384 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8385 aX11_ClassTests, apzX11_ClassPatch, 0 },
8387 { zX11_Class_UsageName, zX11_Class_UsageList,
8388 apzX11_Class_UsageMachs,
8389 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8390 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
8392 { zX11_NewName, zX11_NewList,
8394 X11_NEW_TEST_CT, FD_MACH_ONLY,
8395 aX11_NewTests, apzX11_NewPatch, 0 },
8397 { zX11_SprintfName, zX11_SprintfList,
8398 apzX11_SprintfMachs,
8399 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8400 aX11_SprintfTests, apzX11_SprintfPatch, 0 }