1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed October 28, 2012 at 02:53:25 PM by AutoGen 5.17.0pre5
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Sun Oct 28 14:53:25 PDT 2012
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 224 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_Aix_Fcntl fix
106 tSCC zAab_Aix_FcntlName[] =
110 * File name selection pattern
112 tSCC zAab_Aix_FcntlList[] =
115 * Machine/OS name selection pattern
117 tSCC* apzAab_Aix_FcntlMachs[] = {
122 * content selection pattern - do fix if pattern found
124 tSCC zAab_Aix_FcntlSelect0[] =
125 "define open[ \t]open64";
127 #define AAB_AIX_FCNTL_TEST_CT 1
128 static tTestDesc aAab_Aix_FcntlTests[] = {
129 { TT_EGREP, zAab_Aix_FcntlSelect0, (regex_t*)NULL }, };
132 * Fix Command Arguments for Aab_Aix_Fcntl
134 static const char* apzAab_Aix_FcntlPatch[] = {
138 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
139 #define __need__aix_fcntl_h_fix\n\
140 #ifdef __need__aix_fcntl_h_fix\n\
144 /* Alias the symbols using asm */\n\
146 extern int open(const char *, int, ...) __asm__(\"open64\");\n\
147 extern int creat(const char *, mode_t) __asm__(\"creat64\");\n\
148 #if (_XOPEN_SOURCE >= 700)\n\
149 extern int openat(int, const char *, int, ...) __asm__(\"open64at\");\n\
156 /* * * * * * * * * * * * * * * * * * * * * * * * * *
158 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
160 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
161 "AAB_darwin7_9_long_double_funcs";
164 * File name selection pattern
166 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
167 "architecture/ppc/math.h\0";
169 * Machine/OS name selection pattern
171 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
176 * content bypass pattern - skip fix if pattern found
178 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
181 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
182 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
183 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
186 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
188 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
189 "/* This file prototypes the long double functions available on Mac OS\n\
192 # undef __APPLE_CC__\n\
193 # define __APPLE_CC__ 1345\n\
194 # include_next <architecture/ppc/math.h>\n\
195 # undef __APPLE_CC__\n\
196 # define __APPLE_CC__ 1\n\
197 # ifndef __LIBMLDBL_COMPAT\n\
198 # ifdef __LONG_DOUBLE_128__\n\
199 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
201 # define __LIBMLDBL_COMPAT(sym)\n\
202 # endif /* __LONG_DOUBLE_128__ */\n\
203 # endif /* __LIBMLDBL_COMPAT */\n\
204 # ifdef __cplusplus\n\
207 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
208 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
209 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
210 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
211 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
212 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
213 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
214 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
215 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
216 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
217 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
218 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
219 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
220 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
221 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
222 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
223 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
224 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
225 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
226 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
227 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
228 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
229 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
230 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
231 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
232 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
233 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
234 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
235 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
236 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
237 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
238 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
239 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
240 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
241 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
242 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
243 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
244 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
245 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
246 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
247 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
248 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
249 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
250 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
251 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
252 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
253 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
254 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
255 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
256 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
257 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
258 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
259 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
260 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
261 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
262 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
263 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
264 # ifdef __cplusplus\n\
267 #endif /* __MATH__ */",
270 /* * * * * * * * * * * * * * * * * * * * * * * * * *
272 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
274 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
275 "AAB_fd_zero_asm_posix_types_h";
278 * File name selection pattern
280 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
281 "asm/posix_types.h\0";
283 * Machine/OS name selection pattern
285 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
286 "i[34567]86-*-linux*",
290 * content bypass pattern - skip fix if pattern found
292 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
294 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
296 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
299 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3
300 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
301 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
302 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
303 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
306 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
308 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
309 "/* This file fixes a bug in the __FD_ZERO macro\n\
310 for older versions of the Linux kernel. */\n\
311 #ifndef _POSIX_TYPES_H_WRAPPER\n\
312 #include <features.h>\n\
313 #include_next <asm/posix_types.h>\n\n\
314 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
316 #define __FD_ZERO(fdsetp) \\\n\
318 int __d0, __d1; \\\n\
319 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
320 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
321 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
322 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
325 #define _POSIX_TYPES_H_WRAPPER\n\
326 #endif /* _POSIX_TYPES_H_WRAPPER */",
329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
331 * Description of Aab_Fd_Zero_Gnu_Types_H fix
333 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
334 "AAB_fd_zero_gnu_types_h";
337 * File name selection pattern
339 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
342 * Machine/OS name selection pattern
344 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
345 "i[34567]86-*-linux*",
347 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
348 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
351 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
353 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
354 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
355 #ifndef _TYPES_H_WRAPPER\n\
356 #include <features.h>\n\
357 #include_next <gnu/types.h>\n\n\
358 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
360 # define __FD_ZERO(fdsetp) \\\n\
362 int __d0, __d1; \\\n\
363 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
364 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
365 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
366 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
369 #define _TYPES_H_WRAPPER\n\
370 #endif /* _TYPES_H_WRAPPER */",
373 /* * * * * * * * * * * * * * * * * * * * * * * * * *
375 * Description of Aab_Fd_Zero_Selectbits_H fix
377 tSCC zAab_Fd_Zero_Selectbits_HName[] =
378 "AAB_fd_zero_selectbits_h";
381 * File name selection pattern
383 tSCC zAab_Fd_Zero_Selectbits_HList[] =
386 * Machine/OS name selection pattern
388 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
389 "i[34567]86-*-linux*",
391 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
392 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
395 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
397 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
398 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
399 #ifndef _SELECTBITS_H_WRAPPER\n\
400 #include <features.h>\n\
401 #include_next <selectbits.h>\n\n\
402 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
403 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
404 && __GLIBC_MINOR__ == 0\n\
406 #define __FD_ZERO(fdsetp) \\\\\n\
408 int __d0, __d1; \\\\\n\
409 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
410 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
411 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
412 / sizeof (__fd_mask)), \\\\\n\
413 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
414 : \"memory\"); \\\\\n\
417 #define _SELECTBITS_H_WRAPPER\n\
418 #endif /* _SELECTBITS_H_WRAPPER */",
421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
423 * Description of Aab_Solaris_Sys_Varargs_H fix
425 tSCC zAab_Solaris_Sys_Varargs_HName[] =
426 "AAB_solaris_sys_varargs_h";
429 * File name selection pattern
431 tSCC zAab_Solaris_Sys_Varargs_HList[] =
434 * Machine/OS name selection pattern
436 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
439 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
440 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
443 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
445 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
447 #include <stdarg.h>\n\
449 #include <varargs.h>\n\
453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
455 * Description of Aab_Sun_Memcpy fix
457 tSCC zAab_Sun_MemcpyName[] =
461 * File name selection pattern
463 tSCC zAab_Sun_MemcpyList[] =
466 * Machine/OS name selection pattern
468 #define apzAab_Sun_MemcpyMachs (const char**)NULL
471 * content selection pattern - do fix if pattern found
473 tSCC zAab_Sun_MemcpySelect0[] =
474 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
476 #define AAB_SUN_MEMCPY_TEST_CT 1
477 static tTestDesc aAab_Sun_MemcpyTests[] = {
478 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
481 * Fix Command Arguments for Aab_Sun_Memcpy
483 static const char* apzAab_Sun_MemcpyPatch[] = {
484 "/* This file was generated by fixincludes */\n\
485 #ifndef __memory_h__\n\
486 #define __memory_h__\n\n\
488 extern void *memccpy();\n\
489 extern void *memchr();\n\
490 extern void *memcpy();\n\
491 extern void *memset();\n\
493 extern char *memccpy();\n\
494 extern char *memchr();\n\
495 extern char *memcpy();\n\
496 extern char *memset();\n\
497 #endif /* __STDC__ */\n\n\
498 extern int memcmp();\n\n\
499 #endif /* __memory_h__ */",
502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
504 * Description of Aab_Vxworks_Assert fix
506 tSCC zAab_Vxworks_AssertName[] =
507 "AAB_vxworks_assert";
510 * File name selection pattern
512 tSCC zAab_Vxworks_AssertList[] =
515 * Machine/OS name selection pattern
517 tSCC* apzAab_Vxworks_AssertMachs[] = {
520 #define AAB_VXWORKS_ASSERT_TEST_CT 0
521 #define aAab_Vxworks_AssertTests (tTestDesc*)NULL
524 * Fix Command Arguments for Aab_Vxworks_Assert
526 static const char* apzAab_Vxworks_AssertPatch[] = {
527 "#ifndef _ASSERT_H\n\
528 #define _ASSERT_H\n\n\
532 #if defined(__STDC__) || defined(__cplusplus)\n\
533 extern void __assert (const char*);\n\
535 extern void __assert ();\n\
538 #define assert(ign) ((void)0)\n\
540 #define ASSERT_STRINGIFY(str) ASSERT_STRINGIFY_HELPER(str)\n\
541 #define ASSERT_STRINGIFY_HELPER(str) #str\n\n\
542 #define assert(test) ((void) \\\n\
543 ((test) ? ((void)0) : \\\n\
544 __assert(\"Assertion failed: \" ASSERT_STRINGIFY(test) \", file \" \\\n\
545 __FILE__ \", line \" ASSERT_STRINGIFY(__LINE__) \"\\n\")))\n\n\
550 /* * * * * * * * * * * * * * * * * * * * * * * * * *
552 * Description of Aab_Vxworks_Regs_Vxtypes fix
554 tSCC zAab_Vxworks_Regs_VxtypesName[] =
555 "AAB_vxworks_regs_vxtypes";
558 * File name selection pattern
560 tSCC zAab_Vxworks_Regs_VxtypesList[] =
563 * Machine/OS name selection pattern
565 tSCC* apzAab_Vxworks_Regs_VxtypesMachs[] = {
568 #define AAB_VXWORKS_REGS_VXTYPES_TEST_CT 0
569 #define aAab_Vxworks_Regs_VxtypesTests (tTestDesc*)NULL
572 * Fix Command Arguments for Aab_Vxworks_Regs_Vxtypes
574 static const char* apzAab_Vxworks_Regs_VxtypesPatch[] = {
577 #include <types/vxTypesOld.h>\n\
578 #include_next <arch/../regs.h>\n\
582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
584 * Description of Aab_Vxworks_Stdint fix
586 tSCC zAab_Vxworks_StdintName[] =
587 "AAB_vxworks_stdint";
590 * File name selection pattern
592 tSCC zAab_Vxworks_StdintList[] =
595 * Machine/OS name selection pattern
597 tSCC* apzAab_Vxworks_StdintMachs[] = {
600 #define AAB_VXWORKS_STDINT_TEST_CT 0
601 #define aAab_Vxworks_StdintTests (tTestDesc*)NULL
604 * Fix Command Arguments for Aab_Vxworks_Stdint
606 static const char* apzAab_Vxworks_StdintPatch[] = {
607 "#ifndef _STDINT_H\n\
609 /* get int*_t, uint*_t */\n\
610 #include <types/vxTypes.h>\n\n\
611 /* get legacy vxworks types for compatibility */\n\
612 #include <types/vxTypesOld.h>\n\n\
613 typedef long intptr_t;\n\
614 typedef unsigned long uintptr_t;\n\n\
615 typedef int64_t intmax_t;\n\
616 typedef uint64_t uintmax_t;\n\n\
617 typedef int8_t int_least8_t;\n\
618 typedef int16_t int_least16_t;\n\
619 typedef int32_t int_least32_t;\n\
620 typedef int64_t int_least64_t;\n\n\
621 typedef uint8_t uint_least8_t;\n\
622 typedef uint16_t uint_least16_t;\n\
623 typedef uint32_t uint_least32_t;\n\
624 typedef uint64_t uint_least64_t;\n\n\
625 typedef int8_t int_fast8_t;\n\
626 typedef int int_fast16_t;\n\
627 typedef int32_t int_fast32_t;\n\
628 typedef int64_t int_fast64_t;\n\n\
629 typedef uint8_t uint_fast8_t;\n\
630 typedef unsigned int uint_fast16_t;\n\
631 typedef uint32_t uint_fast32_t;\n\
632 typedef uint64_t uint_fast64_t;\n\n\
634 #define UINT8_MAX (~(uint8_t)0)\n\
635 #define UINT8_MIN 0\n\
636 #define UINT16_MAX (~(uint16_t)0)\n\
637 #define UINT16_MIN 0\n\
638 #define UINT32_MAX (~(uint32_t)0)\n\
639 #define UINT32_MIN 0\n\
640 #define UINT64_MAX (~(uint64_t)0)\n\
641 #define UINT64_MIN 0\n\n\
642 #define UINTPTR_MAX (~(uintptr_t)0)\n\
643 #define UINTPTR_MIN 0\n\n\
644 /* Need to do int_fast16_t as well, as type\n\
645 size may be architecture dependent */\n\
646 #define UINT_FAST16_MAX (~(uint_fast16_t)0)\n\
647 #define UINT_FAST16_MAX 0\n\n\
648 #define INT8_MAX (UINT8_MAX>>1)\n\
649 #define INT8_MIN (INT8_MAX+1)\n\
650 #define INT16_MAX (UINT16_MAX>>1)\n\
651 #define INT16_MIN (INT16_MAX+1)\n\
652 #define INT32_MAX (UINT32_MAX>>1)\n\
653 #define INT32_MIN (INT32_MAX+1)\n\
654 #define INT64_MAX (UINT64_MAX>>1)\n\
655 #define INT64_MIN (INT64_MAX+1)\n\n\
656 #define INTPTR_MAX (UINTPTR_MAX>>1)\n\
657 #define INTPTR_MIN (INTPTR_MAX+1)\t\n\n\
658 #define INT_FAST16_MAX (UINT_FAST16_MAX>>1)\n\
659 #define INT_FAST16_MIN (INT_FAST16_MAX+1)\n\n\
660 /* now define equiv. constants */\n\
661 #define UINT_FAST8_MAX UINT8_MAX\n\
662 #define UINT_FAST8_MIN UINT_FAST8_MIN\n\
663 #define INT_FAST8_MAX INT8_MAX\n\
664 #define INT_FAST8_MIN INT8_MIN\n\
665 #define UINT_FAST32_MAX UINT32_MAX\n\
666 #define UINT_FAST32_MIN UINT32_MIN\n\
667 #define INT_FAST32_MAX INT32_MAX\n\
668 #define INT_FAST32_MIN INT32_MIN\n\
669 #define UINT_FAST64_MAX UINT64_MAX\n\
670 #define UINT_FAST64_MIN UINT64_MIN\n\
671 #define INT_FAST64_MAX INT64_MAX\n\
672 #define INT_FAST64_MIN INT64_MIN\n\n\
673 #define UINT_LEAST8_MAX UINT8_MAX\n\
674 #define UINT_LEAST8_MIN UINT8_MIN\n\
675 #define INT_LEAST8_MAX INT8_MAX\n\
676 #define INT_LEAST8_MIN INT8_MIN\n\
677 #define UINT_LEAST16_MAX UINT16_MAX\n\
678 #define UINT_LEAST16_MIN UINT16_MIN\n\
679 #define INT_LEAST16_MAX INT16_MAX\n\
680 #define INT_LEAST16_MIN INT16_MIN\n\
681 #define UINT_LEAST32_MAX UINT32_MAX\n\
682 #define UINT_LEAST32_MIN UINT32_MIN\n\
683 #define INT_LEAST32_MAX INT32_MAX\n\
684 #define INT_LEAST32_MIN INT32_MIN\n\
685 #define UINT_LEAST64_MAX UINT64_MAX\n\
686 #define UINT_LEAST64_MIN UINT64_MIN\n\
687 #define INT_LEAST64_MAX INT64_MAX\n\
688 #define INT_LEAST64_MIN INT64_MIN\n\n\
689 #define UINTMAX_MAX UINT64_MAX\n\
690 #define UINTMAX_MIN UINT64_MIN\n\
691 #define INTMAX_MAX INT64_MAX\n\
692 #define INTMAX_MIN INT64_MIN\n\n\
696 /* * * * * * * * * * * * * * * * * * * * * * * * * *
698 * Description of Aab_Vxworks_Unistd fix
700 tSCC zAab_Vxworks_UnistdName[] =
701 "AAB_vxworks_unistd";
704 * File name selection pattern
706 tSCC zAab_Vxworks_UnistdList[] =
709 * Machine/OS name selection pattern
711 tSCC* apzAab_Vxworks_UnistdMachs[] = {
714 #define AAB_VXWORKS_UNISTD_TEST_CT 0
715 #define aAab_Vxworks_UnistdTests (tTestDesc*)NULL
718 * Fix Command Arguments for Aab_Vxworks_Unistd
720 static const char* apzAab_Vxworks_UnistdPatch[] = {
721 "#ifndef _UNISTD_H\n\
723 #include_next <unistd.h>\n\
724 #include <ioLib.h>\n\
725 #ifndef STDIN_FILENO\n\
726 #define STDIN_FILENO 0\n\
728 #ifndef STDOUT_FILENO\n\
729 #define STDOUT_FILENO 1\n\
731 #ifndef STDERR_FILENO\n\
732 #define STDERR_FILENO 2\n\
734 #endif /* _UNISTD_H */",
737 /* * * * * * * * * * * * * * * * * * * * * * * * * *
739 * Description of Aix_Complex fix
741 tSCC zAix_ComplexName[] =
745 * File name selection pattern
747 tSCC zAix_ComplexList[] =
750 * Machine/OS name selection pattern
752 tSCC* apzAix_ComplexMachs[] = {
757 * content selection pattern - do fix if pattern found
759 tSCC zAix_ComplexSelect0[] =
760 "#define[ \t]_Complex_I[ \t]__I";
762 #define AIX_COMPLEX_TEST_CT 1
763 static tTestDesc aAix_ComplexTests[] = {
764 { TT_EGREP, zAix_ComplexSelect0, (regex_t*)NULL }, };
767 * Fix Command Arguments for Aix_Complex
769 static const char* apzAix_ComplexPatch[] = {
771 "#define _Complex_I (__extension__ 1.0iF)",
774 /* * * * * * * * * * * * * * * * * * * * * * * * * *
776 * Description of Aix_Malloc fix
778 tSCC zAix_MallocName[] =
782 * File name selection pattern
784 tSCC zAix_MallocList[] =
787 * Machine/OS name selection pattern
789 tSCC* apzAix_MallocMachs[] = {
794 * content selection pattern - do fix if pattern found
796 tSCC zAix_MallocSelect0[] =
797 "#ifdef __cplusplus";
799 #define AIX_MALLOC_TEST_CT 1
800 static tTestDesc aAix_MallocTests[] = {
801 { TT_EGREP, zAix_MallocSelect0, (regex_t*)NULL }, };
804 * Fix Command Arguments for Aix_Malloc
806 static const char* apzAix_MallocPatch[] = {
808 "#if (defined(__cplusplus) && defined(__IBMCPP__))",
811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
813 * Description of Aix_Net_If_Arp fix
815 tSCC zAix_Net_If_ArpName[] =
819 * File name selection pattern
821 tSCC zAix_Net_If_ArpList[] =
824 * Machine/OS name selection pattern
826 tSCC* apzAix_Net_If_ArpMachs[] = {
831 * content selection pattern - do fix if pattern found
833 tSCC zAix_Net_If_ArpSelect0[] =
834 "^struct fc_softc \\{";
836 #define AIX_NET_IF_ARP_TEST_CT 1
837 static tTestDesc aAix_Net_If_ArpTests[] = {
838 { TT_EGREP, zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
841 * Fix Command Arguments for Aix_Net_If_Arp
843 static const char* apzAix_Net_If_ArpPatch[] = {
845 "typedef struct _fc_softc {",
848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
850 * Description of Aix_Once_Init_1 fix
852 tSCC zAix_Once_Init_1Name[] =
856 * File name selection pattern
858 tSCC zAix_Once_Init_1List[] =
861 * Machine/OS name selection pattern
863 tSCC* apzAix_Once_Init_1Machs[] = {
868 * content selection pattern - do fix if pattern found
870 tSCC zAix_Once_Init_1Select0[] =
871 "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
874 #define AIX_ONCE_INIT_1_TEST_CT 1
875 static tTestDesc aAix_Once_Init_1Tests[] = {
876 { TT_EGREP, zAix_Once_Init_1Select0, (regex_t*)NULL }, };
879 * Fix Command Arguments for Aix_Once_Init_1
881 static const char* apzAix_Once_Init_1Patch[] = {
883 "#define PTHREAD_ONCE_INIT \\\n\
887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
889 * Description of Aix_Once_Init_2 fix
891 tSCC zAix_Once_Init_2Name[] =
895 * File name selection pattern
897 tSCC zAix_Once_Init_2List[] =
900 * Machine/OS name selection pattern
902 tSCC* apzAix_Once_Init_2Machs[] = {
907 * content selection pattern - do fix if pattern found
909 tSCC zAix_Once_Init_2Select0[] =
913 #define AIX_ONCE_INIT_2_TEST_CT 1
914 static tTestDesc aAix_Once_Init_2Tests[] = {
915 { TT_EGREP, zAix_Once_Init_2Select0, (regex_t*)NULL }, };
918 * Fix Command Arguments for Aix_Once_Init_2
920 static const char* apzAix_Once_Init_2Patch[] = {
926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
928 * Description of Aix_Mutex_Initializer_1 fix
930 tSCC zAix_Mutex_Initializer_1Name[] =
931 "aix_mutex_initializer_1";
934 * File name selection pattern
936 tSCC zAix_Mutex_Initializer_1List[] =
939 * Machine/OS name selection pattern
941 tSCC* apzAix_Mutex_Initializer_1Machs[] = {
946 * content selection pattern - do fix if pattern found
948 tSCC zAix_Mutex_Initializer_1Select0[] =
949 "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\
952 #define AIX_MUTEX_INITIALIZER_1_TEST_CT 1
953 static tTestDesc aAix_Mutex_Initializer_1Tests[] = {
954 { TT_EGREP, zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, };
957 * Fix Command Arguments for Aix_Mutex_Initializer_1
959 static const char* apzAix_Mutex_Initializer_1Patch[] = {
961 "#define PTHREAD_MUTEX_INITIALIZER \\\n\
965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
967 * Description of Aix_Cond_Initializer_1 fix
969 tSCC zAix_Cond_Initializer_1Name[] =
970 "aix_cond_initializer_1";
973 * File name selection pattern
975 tSCC zAix_Cond_Initializer_1List[] =
978 * Machine/OS name selection pattern
980 tSCC* apzAix_Cond_Initializer_1Machs[] = {
985 * content selection pattern - do fix if pattern found
987 tSCC zAix_Cond_Initializer_1Select0[] =
988 "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\
991 #define AIX_COND_INITIALIZER_1_TEST_CT 1
992 static tTestDesc aAix_Cond_Initializer_1Tests[] = {
993 { TT_EGREP, zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, };
996 * Fix Command Arguments for Aix_Cond_Initializer_1
998 static const char* apzAix_Cond_Initializer_1Patch[] = {
1000 "#define PTHREAD_COND_INITIALIZER \\\n\
1004 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1006 * Description of Aix_Rwlock_Initializer_1 fix
1008 tSCC zAix_Rwlock_Initializer_1Name[] =
1009 "aix_rwlock_initializer_1";
1012 * File name selection pattern
1014 tSCC zAix_Rwlock_Initializer_1List[] =
1017 * Machine/OS name selection pattern
1019 tSCC* apzAix_Rwlock_Initializer_1Machs[] = {
1021 (const char*)NULL };
1024 * content selection pattern - do fix if pattern found
1026 tSCC zAix_Rwlock_Initializer_1Select0[] =
1027 "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\
1030 #define AIX_RWLOCK_INITIALIZER_1_TEST_CT 1
1031 static tTestDesc aAix_Rwlock_Initializer_1Tests[] = {
1032 { TT_EGREP, zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, };
1035 * Fix Command Arguments for Aix_Rwlock_Initializer_1
1037 static const char* apzAix_Rwlock_Initializer_1Patch[] = {
1039 "#define PTHREAD_RWLOCK_INITIALIZER \\\n\
1043 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1045 * Description of Aix_Pthread fix
1047 tSCC zAix_PthreadName[] =
1051 * File name selection pattern
1053 tSCC zAix_PthreadList[] =
1056 * Machine/OS name selection pattern
1058 #define apzAix_PthreadMachs (const char**)NULL
1061 * content selection pattern - do fix if pattern found
1063 tSCC zAix_PthreadSelect0[] =
1064 "(#define [A-Za-z_0-9]+)(\\\\\n\
1068 #define AIX_PTHREAD_TEST_CT 1
1069 static tTestDesc aAix_PthreadTests[] = {
1070 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
1073 * Fix Command Arguments for Aix_Pthread
1075 static const char* apzAix_PthreadPatch[] = {
1080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1082 * Description of Aix_Stdint_1 fix
1084 tSCC zAix_Stdint_1Name[] =
1088 * File name selection pattern
1090 tSCC zAix_Stdint_1List[] =
1091 "stdint-aix.h\0stdint.h\0";
1093 * Machine/OS name selection pattern
1095 tSCC* apzAix_Stdint_1Machs[] = {
1097 (const char*)NULL };
1100 * content selection pattern - do fix if pattern found
1102 tSCC zAix_Stdint_1Select0[] =
1103 "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
1104 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
1106 #define AIX_STDINT_1_TEST_CT 1
1107 static tTestDesc aAix_Stdint_1Tests[] = {
1108 { TT_EGREP, zAix_Stdint_1Select0, (regex_t*)NULL }, };
1111 * Fix Command Arguments for Aix_Stdint_1
1113 static const char* apzAix_Stdint_1Patch[] = {
1115 "#define UINT8_MAX\t(255)\n\
1116 #define UINT16_MAX\t(65535)",
1119 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1121 * Description of Aix_Stdint_2 fix
1123 tSCC zAix_Stdint_2Name[] =
1127 * File name selection pattern
1129 tSCC zAix_Stdint_2List[] =
1130 "stdint-aix.h\0stdint.h\0";
1132 * Machine/OS name selection pattern
1134 tSCC* apzAix_Stdint_2Machs[] = {
1136 (const char*)NULL };
1139 * content selection pattern - do fix if pattern found
1141 tSCC zAix_Stdint_2Select0[] =
1142 "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
1143 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
1144 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
1146 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
1147 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
1148 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
1150 #define AIX_STDINT_2_TEST_CT 1
1151 static tTestDesc aAix_Stdint_2Tests[] = {
1152 { TT_EGREP, zAix_Stdint_2Select0, (regex_t*)NULL }, };
1155 * Fix Command Arguments for Aix_Stdint_2
1157 static const char* apzAix_Stdint_2Patch[] = {
1159 "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1160 #define INTPTR_MAX\t9223372036854775807L\n\
1161 #define UINTPTR_MAX\t18446744073709551615UL\n\
1163 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1164 #define INTPTR_MAX\t2147483647L\n\
1165 #define UINTPTR_MAX\t4294967295UL",
1168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1170 * Description of Aix_Stdint_3 fix
1172 tSCC zAix_Stdint_3Name[] =
1176 * File name selection pattern
1178 tSCC zAix_Stdint_3List[] =
1179 "stdint-aix.h\0stdint.h\0";
1181 * Machine/OS name selection pattern
1183 tSCC* apzAix_Stdint_3Machs[] = {
1185 (const char*)NULL };
1188 * content selection pattern - do fix if pattern found
1190 tSCC zAix_Stdint_3Select0[] =
1191 "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
1192 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
1194 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
1195 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
1197 #define AIX_STDINT_3_TEST_CT 1
1198 static tTestDesc aAix_Stdint_3Tests[] = {
1199 { TT_EGREP, zAix_Stdint_3Select0, (regex_t*)NULL }, };
1202 * Fix Command Arguments for Aix_Stdint_3
1204 static const char* apzAix_Stdint_3Patch[] = {
1206 "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
1207 #define PTRDIFF_MAX\t9223372036854775807L\n\
1209 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
1210 #define PTRDIFF_MAX\t2147483647L",
1213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1215 * Description of Aix_Stdint_4 fix
1217 tSCC zAix_Stdint_4Name[] =
1221 * File name selection pattern
1223 tSCC zAix_Stdint_4List[] =
1224 "stdint-aix.h\0stdint.h\0";
1226 * Machine/OS name selection pattern
1228 tSCC* apzAix_Stdint_4Machs[] = {
1230 (const char*)NULL };
1233 * content selection pattern - do fix if pattern found
1235 tSCC zAix_Stdint_4Select0[] =
1236 "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
1238 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
1240 #define AIX_STDINT_4_TEST_CT 1
1241 static tTestDesc aAix_Stdint_4Tests[] = {
1242 { TT_EGREP, zAix_Stdint_4Select0, (regex_t*)NULL }, };
1245 * Fix Command Arguments for Aix_Stdint_4
1247 static const char* apzAix_Stdint_4Patch[] = {
1249 "#define SIZE_MAX\t18446744073709551615UL\n\
1251 #define SIZE_MAX\t4294967295UL",
1254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1256 * Description of Aix_Stdint_5 fix
1258 tSCC zAix_Stdint_5Name[] =
1262 * File name selection pattern
1264 tSCC zAix_Stdint_5List[] =
1265 "stdint-aix.h\0stdint.h\0";
1267 * Machine/OS name selection pattern
1269 tSCC* apzAix_Stdint_5Machs[] = {
1271 (const char*)NULL };
1274 * content selection pattern - do fix if pattern found
1276 tSCC zAix_Stdint_5Select0[] =
1277 "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
1278 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
1280 #define AIX_STDINT_5_TEST_CT 1
1281 static tTestDesc aAix_Stdint_5Tests[] = {
1282 { TT_EGREP, zAix_Stdint_5Select0, (regex_t*)NULL }, };
1285 * Fix Command Arguments for Aix_Stdint_5
1287 static const char* apzAix_Stdint_5Patch[] = {
1289 "#define UINT8_C(c)\tc\n\
1290 #define UINT16_C(c)\tc",
1293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1295 * Description of Aix_Sysmachine fix
1297 tSCC zAix_SysmachineName[] =
1301 * File name selection pattern
1303 tSCC zAix_SysmachineList[] =
1306 * Machine/OS name selection pattern
1308 #define apzAix_SysmachineMachs (const char**)NULL
1311 * content selection pattern - do fix if pattern found
1313 tSCC zAix_SysmachineSelect0[] =
1316 #define AIX_SYSMACHINE_TEST_CT 1
1317 static tTestDesc aAix_SysmachineTests[] = {
1318 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
1321 * Fix Command Arguments for Aix_Sysmachine
1323 static const char* apzAix_SysmachinePatch[] = {
1328 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1330 * Description of Aix_Syswait_2 fix
1332 tSCC zAix_Syswait_2Name[] =
1336 * File name selection pattern
1338 tSCC zAix_Syswait_2List[] =
1341 * Machine/OS name selection pattern
1343 #define apzAix_Syswait_2Machs (const char**)NULL
1346 * content selection pattern - do fix if pattern found
1348 tSCC zAix_Syswait_2Select0[] =
1349 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
1351 #define AIX_SYSWAIT_2_TEST_CT 1
1352 static tTestDesc aAix_Syswait_2Tests[] = {
1353 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
1356 * Fix Command Arguments for Aix_Syswait_2
1358 static const char* apzAix_Syswait_2Patch[] = {
1363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1365 * Description of Aix_Volatile fix
1367 tSCC zAix_VolatileName[] =
1371 * File name selection pattern
1373 tSCC zAix_VolatileList[] =
1376 * Machine/OS name selection pattern
1378 #define apzAix_VolatileMachs (const char**)NULL
1381 * content selection pattern - do fix if pattern found
1383 tSCC zAix_VolatileSelect0[] =
1384 "typedef volatile int sig_atomic_t";
1386 #define AIX_VOLATILE_TEST_CT 1
1387 static tTestDesc aAix_VolatileTests[] = {
1388 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
1391 * Fix Command Arguments for Aix_Volatile
1393 static const char* apzAix_VolatilePatch[] = {
1395 "typedef int sig_atomic_t",
1398 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1400 * Description of Alpha___Assert fix
1402 tSCC zAlpha___AssertName[] =
1406 * File name selection pattern
1408 tSCC zAlpha___AssertList[] =
1411 * Machine/OS name selection pattern
1413 #define apzAlpha___AssertMachs (const char**)NULL
1416 * content selection pattern - do fix if pattern found
1418 tSCC zAlpha___AssertSelect0[] =
1419 "__assert\\(char \\*, char \\*, int\\)";
1421 #define ALPHA___ASSERT_TEST_CT 1
1422 static tTestDesc aAlpha___AssertTests[] = {
1423 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
1426 * Fix Command Arguments for Alpha___Assert
1428 static const char* apzAlpha___AssertPatch[] = {
1430 "__assert(const char *, const char *, int)",
1433 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1435 * Description of Alpha_Assert fix
1437 tSCC zAlpha_AssertName[] =
1441 * File name selection pattern
1443 tSCC zAlpha_AssertList[] =
1446 * Machine/OS name selection pattern
1448 #define apzAlpha_AssertMachs (const char**)NULL
1451 * content selection pattern - do fix if pattern found
1453 tSCC zAlpha_AssertSelect0[] =
1454 "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1456 #define ALPHA_ASSERT_TEST_CT 1
1457 static tTestDesc aAlpha_AssertTests[] = {
1458 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1461 * Fix Command Arguments for Alpha_Assert
1463 static const char* apzAlpha_AssertPatch[] = {
1468 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1470 * Description of Alpha_Getopt fix
1472 tSCC zAlpha_GetoptName[] =
1476 * File name selection pattern
1478 tSCC zAlpha_GetoptList[] =
1479 "stdio.h\0stdlib.h\0";
1481 * Machine/OS name selection pattern
1483 #define apzAlpha_GetoptMachs (const char**)NULL
1486 * content selection pattern - do fix if pattern found
1488 tSCC zAlpha_GetoptSelect0[] =
1489 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1491 #define ALPHA_GETOPT_TEST_CT 1
1492 static tTestDesc aAlpha_GetoptTests[] = {
1493 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1496 * Fix Command Arguments for Alpha_Getopt
1498 static const char* apzAlpha_GetoptPatch[] = {
1500 "getopt(int, char *const[], const char *)",
1503 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1505 * Description of Alpha_If_Semicolon fix
1507 tSCC zAlpha_If_SemicolonName[] =
1508 "alpha_if_semicolon";
1511 * File name selection pattern
1513 tSCC zAlpha_If_SemicolonList[] =
1516 * Machine/OS name selection pattern
1518 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1521 * content selection pattern - do fix if pattern found
1523 tSCC zAlpha_If_SemicolonSelect0[] =
1524 "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1526 #define ALPHA_IF_SEMICOLON_TEST_CT 1
1527 static tTestDesc aAlpha_If_SemicolonTests[] = {
1528 { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1531 * Fix Command Arguments for Alpha_If_Semicolon
1533 static const char* apzAlpha_If_SemicolonPatch[] = {
1535 "struct sockaddr vmif_paddr;\t/*",
1538 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1540 * Description of Alpha_Parens fix
1542 tSCC zAlpha_ParensName[] =
1546 * File name selection pattern
1548 tSCC zAlpha_ParensList[] =
1551 * Machine/OS name selection pattern
1553 #define apzAlpha_ParensMachs (const char**)NULL
1556 * content selection pattern - do fix if pattern found
1558 tSCC zAlpha_ParensSelect0[] =
1559 "#ifndef\\(__mips64\\)";
1561 #define ALPHA_PARENS_TEST_CT 1
1562 static tTestDesc aAlpha_ParensTests[] = {
1563 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1566 * Fix Command Arguments for Alpha_Parens
1568 static const char* apzAlpha_ParensPatch[] = {
1573 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1575 * Description of Alpha_Sbrk fix
1577 tSCC zAlpha_SbrkName[] =
1581 * File name selection pattern
1583 tSCC zAlpha_SbrkList[] =
1586 * Machine/OS name selection pattern
1588 #define apzAlpha_SbrkMachs (const char**)NULL
1591 * content selection pattern - do fix if pattern found
1593 tSCC zAlpha_SbrkSelect0[] =
1594 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1596 #define ALPHA_SBRK_TEST_CT 1
1597 static tTestDesc aAlpha_SbrkTests[] = {
1598 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1601 * Fix Command Arguments for Alpha_Sbrk
1603 static const char* apzAlpha_SbrkPatch[] = {
1608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1610 * Description of Avoid_Bool_Define fix
1612 tSCC zAvoid_Bool_DefineName[] =
1613 "avoid_bool_define";
1616 * File name selection pattern
1618 tSCC zAvoid_Bool_DefineList[] =
1619 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1621 * Machine/OS name selection pattern
1623 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1626 * content selection pattern - do fix if pattern found
1628 tSCC zAvoid_Bool_DefineSelect0[] =
1629 "#[ \t]*define[ \t]+bool[ \t]";
1632 * content bypass pattern - skip fix if pattern found
1634 tSCC zAvoid_Bool_DefineBypass0[] =
1637 #define AVOID_BOOL_DEFINE_TEST_CT 2
1638 static tTestDesc aAvoid_Bool_DefineTests[] = {
1639 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1640 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1643 * Fix Command Arguments for Avoid_Bool_Define
1645 static const char* apzAvoid_Bool_DefinePatch[] = {
1647 "#ifndef __cplusplus\n\
1650 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1653 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1655 * Description of Avoid_Bool_Type fix
1657 tSCC zAvoid_Bool_TypeName[] =
1661 * File name selection pattern
1663 tSCC zAvoid_Bool_TypeList[] =
1664 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1666 * Machine/OS name selection pattern
1668 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1671 * content selection pattern - do fix if pattern found
1673 tSCC zAvoid_Bool_TypeSelect0[] =
1674 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1677 * content bypass pattern - skip fix if pattern found
1679 tSCC zAvoid_Bool_TypeBypass0[] =
1682 #define AVOID_BOOL_TYPE_TEST_CT 2
1683 static tTestDesc aAvoid_Bool_TypeTests[] = {
1684 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1685 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1688 * Fix Command Arguments for Avoid_Bool_Type
1690 static const char* apzAvoid_Bool_TypePatch[] = {
1692 "#ifndef __cplusplus\n\
1697 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1699 * Description of Avoid_Wchar_T_Type fix
1701 tSCC zAvoid_Wchar_T_TypeName[] =
1702 "avoid_wchar_t_type";
1705 * File name selection pattern
1707 #define zAvoid_Wchar_T_TypeList (char*)NULL
1709 * Machine/OS name selection pattern
1711 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1714 * content selection pattern - do fix if pattern found
1716 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1717 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1720 * content bypass pattern - skip fix if pattern found
1722 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1724 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1726 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1727 "XFree86: xc/lib/X11/Xlib\\.h";
1729 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1730 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1731 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1732 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1733 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1734 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1737 * Fix Command Arguments for Avoid_Wchar_T_Type
1739 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1741 "#ifndef __cplusplus\n\
1746 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1748 * Description of Bad_Struct_Term fix
1750 tSCC zBad_Struct_TermName[] =
1754 * File name selection pattern
1756 tSCC zBad_Struct_TermList[] =
1759 * Machine/OS name selection pattern
1761 #define apzBad_Struct_TermMachs (const char**)NULL
1764 * content selection pattern - do fix if pattern found
1766 tSCC zBad_Struct_TermSelect0[] =
1767 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1769 #define BAD_STRUCT_TERM_TEST_CT 1
1770 static tTestDesc aBad_Struct_TermTests[] = {
1771 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1774 * Fix Command Arguments for Bad_Struct_Term
1776 static const char* apzBad_Struct_TermPatch[] = {
1781 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1783 * Description of Badquote fix
1785 tSCC zBadquoteName[] =
1789 * File name selection pattern
1791 tSCC zBadquoteList[] =
1792 "sundev/vuid_event.h\0";
1794 * Machine/OS name selection pattern
1796 #define apzBadquoteMachs (const char**)NULL
1799 * content selection pattern - do fix if pattern found
1801 tSCC zBadquoteSelect0[] =
1804 #define BADQUOTE_TEST_CT 1
1805 static tTestDesc aBadquoteTests[] = {
1806 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1809 * Fix Command Arguments for Badquote
1811 static const char* apzBadquotePatch[] = {
1816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1818 * Description of Broken_Assert_Stdio fix
1820 tSCC zBroken_Assert_StdioName[] =
1821 "broken_assert_stdio";
1824 * File name selection pattern
1826 tSCC zBroken_Assert_StdioList[] =
1829 * Machine/OS name selection pattern
1831 #define apzBroken_Assert_StdioMachs (const char**)NULL
1834 * content selection pattern - do fix if pattern found
1836 tSCC zBroken_Assert_StdioSelect0[] =
1840 * content bypass pattern - skip fix if pattern found
1842 tSCC zBroken_Assert_StdioBypass0[] =
1843 "include.*stdio\\.h";
1845 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1846 static tTestDesc aBroken_Assert_StdioTests[] = {
1847 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1848 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1851 * Fix Command Arguments for Broken_Assert_Stdio
1853 static const char* apzBroken_Assert_StdioPatch[] = {
1855 "#include <stdio.h>\n",
1858 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1860 * Description of Broken_Assert_Stdlib fix
1862 tSCC zBroken_Assert_StdlibName[] =
1863 "broken_assert_stdlib";
1866 * File name selection pattern
1868 tSCC zBroken_Assert_StdlibList[] =
1871 * Machine/OS name selection pattern
1873 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1876 * content selection pattern - do fix if pattern found
1878 tSCC zBroken_Assert_StdlibSelect0[] =
1879 "exit *\\(|abort *\\(";
1882 * content bypass pattern - skip fix if pattern found
1884 tSCC zBroken_Assert_StdlibBypass0[] =
1885 "include.*stdlib\\.h";
1887 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1888 static tTestDesc aBroken_Assert_StdlibTests[] = {
1889 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1890 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1893 * Fix Command Arguments for Broken_Assert_Stdlib
1895 static const char* apzBroken_Assert_StdlibPatch[] = {
1897 "#ifdef __cplusplus\n\
1898 #include <stdlib.h>\n\
1902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1904 * Description of Broken_Cabs fix
1906 tSCC zBroken_CabsName[] =
1910 * File name selection pattern
1912 tSCC zBroken_CabsList[] =
1913 "math.h\0architecture/*/math.h\0";
1915 * Machine/OS name selection pattern
1917 #define apzBroken_CabsMachs (const char**)NULL
1920 * content selection pattern - do fix if pattern found
1922 tSCC zBroken_CabsSelect0[] =
1923 "^extern[ \t]+double[ \t]+cabs";
1925 #define BROKEN_CABS_TEST_CT 1
1926 static tTestDesc aBroken_CabsTests[] = {
1927 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1930 * Fix Command Arguments for Broken_Cabs
1932 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1933 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1934 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1939 * Description of Broken_Nan fix
1941 tSCC zBroken_NanName[] =
1945 * File name selection pattern
1947 tSCC zBroken_NanList[] =
1948 "architecture/ppc/math.h\0architecture/*/math.h\0";
1950 * Machine/OS name selection pattern
1952 #define apzBroken_NanMachs (const char**)NULL
1955 * content selection pattern - do fix if pattern found
1957 tSCC zBroken_NanSelect0[] =
1958 "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)";
1961 * content bypass pattern - skip fix if pattern found
1963 tSCC zBroken_NanBypass0[] =
1966 #define BROKEN_NAN_TEST_CT 2
1967 static tTestDesc aBroken_NanTests[] = {
1968 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1969 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1972 * Fix Command Arguments for Broken_Nan
1974 static const char* apzBroken_NanPatch[] = {
1979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1981 * Description of Bsd_Stdio_Attrs_Conflict fix
1983 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1984 "bsd_stdio_attrs_conflict";
1987 * File name selection pattern
1989 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1992 * Machine/OS name selection pattern
1994 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1997 (const char*)NULL };
2000 * content selection pattern - do fix if pattern found
2002 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
2003 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
2005 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
2006 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
2007 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
2010 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
2012 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
2014 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
2015 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
2016 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
2019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2021 * Description of Cdef_Cplusplus fix
2023 tSCC zCdef_CplusplusName[] =
2027 * File name selection pattern
2029 tSCC zCdef_CplusplusList[] =
2032 * Machine/OS name selection pattern
2034 #define apzCdef_CplusplusMachs (const char**)NULL
2037 * content selection pattern - do fix if pattern found
2039 tSCC zCdef_CplusplusSelect0[] =
2040 "\\[\\[noreturn\\]\\]";
2042 #define CDEF_CPLUSPLUS_TEST_CT 1
2043 static tTestDesc aCdef_CplusplusTests[] = {
2044 { TT_EGREP, zCdef_CplusplusSelect0, (regex_t*)NULL }, };
2047 * Fix Command Arguments for Cdef_Cplusplus
2049 static const char* apzCdef_CplusplusPatch[] = {
2051 "__attribute__((__noreturn__))",
2054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2056 * Description of Ctrl_Quotes_Def fix
2058 tSCC zCtrl_Quotes_DefName[] =
2062 * File name selection pattern
2064 #define zCtrl_Quotes_DefList (char*)NULL
2066 * Machine/OS name selection pattern
2068 #define apzCtrl_Quotes_DefMachs (const char**)NULL
2071 * content selection pattern - do fix if pattern found
2073 tSCC zCtrl_Quotes_DefSelect0[] =
2074 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
2076 #define CTRL_QUOTES_DEF_TEST_CT 1
2077 static tTestDesc aCtrl_Quotes_DefTests[] = {
2078 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
2081 * Fix Command Arguments for Ctrl_Quotes_Def
2083 static const char* apzCtrl_Quotes_DefPatch[] = {
2088 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2090 * Description of Ctrl_Quotes_Use fix
2092 tSCC zCtrl_Quotes_UseName[] =
2096 * File name selection pattern
2098 #define zCtrl_Quotes_UseList (char*)NULL
2100 * Machine/OS name selection pattern
2102 #define apzCtrl_Quotes_UseMachs (const char**)NULL
2105 * content selection pattern - do fix if pattern found
2107 tSCC zCtrl_Quotes_UseSelect0[] =
2108 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
2110 #define CTRL_QUOTES_USE_TEST_CT 1
2111 static tTestDesc aCtrl_Quotes_UseTests[] = {
2112 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
2115 * Fix Command Arguments for Ctrl_Quotes_Use
2117 static const char* apzCtrl_Quotes_UsePatch[] = {
2122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2124 * Description of Cxx_Unready fix
2126 tSCC zCxx_UnreadyName[] =
2130 * File name selection pattern
2132 tSCC zCxx_UnreadyList[] =
2133 "sys/mman.h\0rpc/types.h\0";
2135 * Machine/OS name selection pattern
2137 #define apzCxx_UnreadyMachs (const char**)NULL
2140 * content selection pattern - do fix if pattern found
2142 tSCC zCxx_UnreadySelect0[] =
2146 * content bypass pattern - skip fix if pattern found
2148 tSCC zCxx_UnreadyBypass0[] =
2149 "\"C\"|__BEGIN_DECLS";
2151 #define CXX_UNREADY_TEST_CT 2
2152 static tTestDesc aCxx_UnreadyTests[] = {
2153 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
2154 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
2157 * Fix Command Arguments for Cxx_Unready
2159 static const char* apzCxx_UnreadyPatch[] = {
2161 "#ifdef __cplusplus\n\
2164 "#ifdef __cplusplus\n\
2169 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2171 * Description of Darwin_9_Long_Double_Funcs_2 fix
2173 tSCC zDarwin_9_Long_Double_Funcs_2Name[] =
2174 "darwin_9_long_double_funcs_2";
2177 * File name selection pattern
2179 tSCC zDarwin_9_Long_Double_Funcs_2List[] =
2182 * Machine/OS name selection pattern
2184 tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = {
2186 (const char*)NULL };
2189 * content selection pattern - do fix if pattern found
2191 tSCC zDarwin_9_Long_Double_Funcs_2Select0[] =
2192 "#include[ \\t]+\\\"";
2194 #define DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
2195 static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = {
2196 { TT_EGREP, zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
2199 * Fix Command Arguments for Darwin_9_Long_Double_Funcs_2
2201 static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = {
2204 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
2207 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2209 * Description of Darwin_Externc fix
2211 tSCC zDarwin_ExterncName[] =
2215 * File name selection pattern
2217 tSCC zDarwin_ExterncList[] =
2218 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2220 * Machine/OS name selection pattern
2222 tSCC* apzDarwin_ExterncMachs[] = {
2224 (const char*)NULL };
2227 * content bypass pattern - skip fix if pattern found
2229 tSCC zDarwin_ExterncBypass0[] =
2231 tSCC zDarwin_ExterncBypass1[] =
2234 #define DARWIN_EXTERNC_TEST_CT 2
2235 static tTestDesc aDarwin_ExterncTests[] = {
2236 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
2237 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2240 * Fix Command Arguments for Darwin_Externc
2242 static const char* apzDarwin_ExterncPatch[] = {
2244 "#ifdef __cplusplus\n\
2247 "#ifdef __cplusplus\n\
2252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2254 * Description of Darwin_Gcc4_Breakage fix
2256 tSCC zDarwin_Gcc4_BreakageName[] =
2257 "darwin_gcc4_breakage";
2260 * File name selection pattern
2262 tSCC zDarwin_Gcc4_BreakageList[] =
2263 "AvailabilityMacros.h\0";
2265 * Machine/OS name selection pattern
2267 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2269 (const char*)NULL };
2272 * content selection pattern - do fix if pattern found
2274 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2275 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2277 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
2278 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2279 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2282 * Fix Command Arguments for Darwin_Gcc4_Breakage
2284 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2286 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2289 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2291 * Description of Darwin_Private_Extern fix
2293 tSCC zDarwin_Private_ExternName[] =
2294 "darwin_private_extern";
2297 * File name selection pattern
2299 tSCC zDarwin_Private_ExternList[] =
2302 * Machine/OS name selection pattern
2304 tSCC* apzDarwin_Private_ExternMachs[] = {
2306 (const char*)NULL };
2309 * content selection pattern - do fix if pattern found
2311 tSCC zDarwin_Private_ExternSelect0[] =
2312 "__private_extern__ [a-z_]+ _dyld_";
2314 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
2315 static tTestDesc aDarwin_Private_ExternTests[] = {
2316 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2319 * Fix Command Arguments for Darwin_Private_Extern
2321 static const char* apzDarwin_Private_ExternPatch[] = {
2324 "__private_extern__",
2327 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2329 * Description of Darwin_Stdint_1 fix
2331 tSCC zDarwin_Stdint_1Name[] =
2335 * File name selection pattern
2337 tSCC zDarwin_Stdint_1List[] =
2338 "stdint-darwin.h\0stdint.h\0";
2340 * Machine/OS name selection pattern
2342 tSCC* apzDarwin_Stdint_1Machs[] = {
2344 (const char*)NULL };
2347 * content selection pattern - do fix if pattern found
2349 tSCC zDarwin_Stdint_1Select0[] =
2350 "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2351 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2353 #define DARWIN_STDINT_1_TEST_CT 1
2354 static tTestDesc aDarwin_Stdint_1Tests[] = {
2355 { TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2358 * Fix Command Arguments for Darwin_Stdint_1
2360 static const char* apzDarwin_Stdint_1Patch[] = {
2362 "#define UINT8_C(v)\tv\n\
2363 #define UINT16_C(v)\tv",
2366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2368 * Description of Darwin_Stdint_2 fix
2370 tSCC zDarwin_Stdint_2Name[] =
2374 * File name selection pattern
2376 tSCC zDarwin_Stdint_2List[] =
2377 "stdint-darwin.h\0stdint.h\0";
2379 * Machine/OS name selection pattern
2381 tSCC* apzDarwin_Stdint_2Machs[] = {
2383 (const char*)NULL };
2386 * content selection pattern - do fix if pattern found
2388 tSCC zDarwin_Stdint_2Select0[] =
2389 "#if __WORDSIZE == 64\n\
2390 #define INTPTR_MIN[ \t]+INT64_MIN\n\
2391 #define INTPTR_MAX[ \t]+INT64_MAX\n\
2393 #define INTPTR_MIN[ \t]+INT32_MIN\n\
2394 #define INTPTR_MAX[ \t]+INT32_MAX\n\
2397 #define DARWIN_STDINT_2_TEST_CT 1
2398 static tTestDesc aDarwin_Stdint_2Tests[] = {
2399 { TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
2402 * Fix Command Arguments for Darwin_Stdint_2
2404 static const char* apzDarwin_Stdint_2Patch[] = {
2406 "#if __WORDSIZE == 64\n\
2407 #define INTPTR_MAX 9223372036854775807L\n\
2408 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2410 #define INTPTR_MAX 2147483647L\n\
2411 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2415 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2417 * Description of Darwin_Stdint_3 fix
2419 tSCC zDarwin_Stdint_3Name[] =
2423 * File name selection pattern
2425 tSCC zDarwin_Stdint_3List[] =
2426 "stdint-darwin.h\0stdint.h\0";
2428 * Machine/OS name selection pattern
2430 tSCC* apzDarwin_Stdint_3Machs[] = {
2432 (const char*)NULL };
2435 * content selection pattern - do fix if pattern found
2437 tSCC zDarwin_Stdint_3Select0[] =
2438 "#if __WORDSIZE == 64\n\
2439 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2441 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2444 #define DARWIN_STDINT_3_TEST_CT 1
2445 static tTestDesc aDarwin_Stdint_3Tests[] = {
2446 { TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2449 * Fix Command Arguments for Darwin_Stdint_3
2451 static const char* apzDarwin_Stdint_3Patch[] = {
2453 "#if __WORDSIZE == 64\n\
2454 #define UINTPTR_MAX 18446744073709551615UL\n\
2456 #define UINTPTR_MAX 4294967295UL\n\
2460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2462 * Description of Darwin_Stdint_4 fix
2464 tSCC zDarwin_Stdint_4Name[] =
2468 * File name selection pattern
2470 tSCC zDarwin_Stdint_4List[] =
2471 "stdint-darwin.h\0stdint.h\0";
2473 * Machine/OS name selection pattern
2475 tSCC* apzDarwin_Stdint_4Machs[] = {
2477 (const char*)NULL };
2480 * content selection pattern - do fix if pattern found
2482 tSCC zDarwin_Stdint_4Select0[] =
2483 "#if __WORDSIZE == 64\n\
2484 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2486 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2489 #define DARWIN_STDINT_4_TEST_CT 1
2490 static tTestDesc aDarwin_Stdint_4Tests[] = {
2491 { TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2494 * Fix Command Arguments for Darwin_Stdint_4
2496 static const char* apzDarwin_Stdint_4Patch[] = {
2498 "#if __WORDSIZE == 64\n\
2499 #define SIZE_MAX 18446744073709551615UL\n\
2501 #define SIZE_MAX 4294967295UL\n\
2505 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2507 * Description of Darwin_Stdint_5 fix
2509 tSCC zDarwin_Stdint_5Name[] =
2513 * File name selection pattern
2515 tSCC zDarwin_Stdint_5List[] =
2516 "stdint-darwin.h\0stdint.h\0";
2518 * Machine/OS name selection pattern
2520 tSCC* apzDarwin_Stdint_5Machs[] = {
2522 (const char*)NULL };
2525 * content selection pattern - do fix if pattern found
2527 tSCC zDarwin_Stdint_5Select0[] =
2528 "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2529 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2530 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2532 #define DARWIN_STDINT_5_TEST_CT 1
2533 static tTestDesc aDarwin_Stdint_5Tests[] = {
2534 { TT_EGREP, zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2537 * Fix Command Arguments for Darwin_Stdint_5
2539 static const char* apzDarwin_Stdint_5Patch[] = {
2541 "#if __WORDSIZE == 64\n\
2542 #define INTMAX_MIN (-9223372036854775807L - 1)\n\
2543 #define INTMAX_MAX 9223372036854775807L\n\
2544 #define UINTMAX_MAX 18446744073709551615UL\n\
2546 #define INTMAX_MIN (-9223372036854775807LL - 1)\n\
2547 #define INTMAX_MAX 9223372036854775807LL\n\
2548 #define UINTMAX_MAX 18446744073709551615ULL\n\
2552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2554 * Description of Darwin_Stdint_6 fix
2556 tSCC zDarwin_Stdint_6Name[] =
2560 * File name selection pattern
2562 tSCC zDarwin_Stdint_6List[] =
2563 "stdint-darwin.h\0stdint.h\0";
2565 * Machine/OS name selection pattern
2567 tSCC* apzDarwin_Stdint_6Machs[] = {
2569 (const char*)NULL };
2572 * content selection pattern - do fix if pattern found
2574 tSCC zDarwin_Stdint_6Select0[] =
2575 "#if __WORDSIZE == 64\n\
2576 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2577 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2579 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2580 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2583 #define DARWIN_STDINT_6_TEST_CT 1
2584 static tTestDesc aDarwin_Stdint_6Tests[] = {
2585 { TT_EGREP, zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2588 * Fix Command Arguments for Darwin_Stdint_6
2590 static const char* apzDarwin_Stdint_6Patch[] = {
2592 "#if __WORDSIZE == 64\n\
2593 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2594 #define PTRDIFF_MAX 9223372036854775807L\n\
2596 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2597 #define PTRDIFF_MAX 2147483647\n\
2601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2603 * Description of Darwin_Stdint_7 fix
2605 tSCC zDarwin_Stdint_7Name[] =
2609 * File name selection pattern
2611 tSCC zDarwin_Stdint_7List[] =
2612 "stdint-darwin.h\0stdint.h\0";
2614 * Machine/OS name selection pattern
2616 tSCC* apzDarwin_Stdint_7Machs[] = {
2618 (const char*)NULL };
2621 * content selection pattern - do fix if pattern found
2623 tSCC zDarwin_Stdint_7Select0[] =
2624 "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2625 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2627 #define DARWIN_STDINT_7_TEST_CT 1
2628 static tTestDesc aDarwin_Stdint_7Tests[] = {
2629 { TT_EGREP, zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2632 * Fix Command Arguments for Darwin_Stdint_7
2634 static const char* apzDarwin_Stdint_7Patch[] = {
2636 "#if __WORDSIZE == 64\n\
2637 #define INTMAX_C(v) (v ## L)\n\
2638 #define UINTMAX_C(v) (v ## UL)\n\
2640 #define INTMAX_C(v) (v ## LL)\n\
2641 #define UINTMAX_C(v) (v ## ULL)\n\
2645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2647 * Description of Dec_Intern_Asm fix
2649 tSCC zDec_Intern_AsmName[] =
2653 * File name selection pattern
2655 tSCC zDec_Intern_AsmList[] =
2658 * Machine/OS name selection pattern
2660 #define apzDec_Intern_AsmMachs (const char**)NULL
2661 #define DEC_INTERN_ASM_TEST_CT 0
2662 #define aDec_Intern_AsmTests (tTestDesc*)NULL
2665 * Fix Command Arguments for Dec_Intern_Asm
2667 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2668 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2670 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2674 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2676 * Description of Djgpp_Wchar_H fix
2678 tSCC zDjgpp_Wchar_HName[] =
2682 * File name selection pattern
2684 #define zDjgpp_Wchar_HList (char*)NULL
2686 * Machine/OS name selection pattern
2688 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2691 * content selection pattern - do fix if pattern found
2693 tSCC zDjgpp_Wchar_HSelect0[] =
2697 * content bypass pattern - skip fix if pattern found
2699 tSCC zDjgpp_Wchar_HBypass0[] =
2702 #define DJGPP_WCHAR_H_TEST_CT 2
2703 static tTestDesc aDjgpp_Wchar_HTests[] = {
2704 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2705 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2708 * Fix Command Arguments for Djgpp_Wchar_H
2710 static const char* apzDjgpp_Wchar_HPatch[] = {
2713 #include <sys/djtypes.h>",
2714 "#include <stddef.h>",
2717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2719 * Description of Ecd_Cursor fix
2721 tSCC zEcd_CursorName[] =
2725 * File name selection pattern
2727 tSCC zEcd_CursorList[] =
2728 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2730 * Machine/OS name selection pattern
2732 #define apzEcd_CursorMachs (const char**)NULL
2735 * content selection pattern - do fix if pattern found
2737 tSCC zEcd_CursorSelect0[] =
2740 #define ECD_CURSOR_TEST_CT 1
2741 static tTestDesc aEcd_CursorTests[] = {
2742 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2745 * Fix Command Arguments for Ecd_Cursor
2747 static const char* apzEcd_CursorPatch[] = {
2752 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2754 * Description of Freebsd_Gcc3_Breakage fix
2756 tSCC zFreebsd_Gcc3_BreakageName[] =
2757 "freebsd_gcc3_breakage";
2760 * File name selection pattern
2762 tSCC zFreebsd_Gcc3_BreakageList[] =
2765 * Machine/OS name selection pattern
2767 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2769 (const char*)NULL };
2772 * content selection pattern - do fix if pattern found
2774 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2775 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2778 * content bypass pattern - skip fix if pattern found
2780 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2781 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2783 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2784 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2785 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2786 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2789 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2791 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2793 "%0 || __GNUC__ >= 3",
2796 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2798 * Description of Freebsd_Gcc4_Breakage fix
2800 tSCC zFreebsd_Gcc4_BreakageName[] =
2801 "freebsd_gcc4_breakage";
2804 * File name selection pattern
2806 tSCC zFreebsd_Gcc4_BreakageList[] =
2809 * Machine/OS name selection pattern
2811 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2813 (const char*)NULL };
2816 * content selection pattern - do fix if pattern found
2818 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2819 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2821 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2822 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2823 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2826 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2828 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2830 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2833 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2835 * Description of Glibc_C99_Inline_1 fix
2837 tSCC zGlibc_C99_Inline_1Name[] =
2838 "glibc_c99_inline_1";
2841 * File name selection pattern
2843 tSCC zGlibc_C99_Inline_1List[] =
2844 "features.h\0*/features.h\0";
2846 * Machine/OS name selection pattern
2848 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2851 * content selection pattern - do fix if pattern found
2853 tSCC zGlibc_C99_Inline_1Select0[] =
2854 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2856 #define GLIBC_C99_INLINE_1_TEST_CT 1
2857 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2858 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2861 * Fix Command Arguments for Glibc_C99_Inline_1
2863 static const char* apzGlibc_C99_Inline_1Patch[] = {
2865 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2868 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2870 * Description of Glibc_C99_Inline_1a fix
2872 tSCC zGlibc_C99_Inline_1aName[] =
2873 "glibc_c99_inline_1a";
2876 * File name selection pattern
2878 tSCC zGlibc_C99_Inline_1aList[] =
2879 "features.h\0*/features.h\0";
2881 * Machine/OS name selection pattern
2883 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2886 * content selection pattern - do fix if pattern found
2888 tSCC zGlibc_C99_Inline_1aSelect0[] =
2889 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2890 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2892 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2893 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2894 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2897 * Fix Command Arguments for Glibc_C99_Inline_1a
2899 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2901 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2907 * Description of Glibc_C99_Inline_2 fix
2909 tSCC zGlibc_C99_Inline_2Name[] =
2910 "glibc_c99_inline_2";
2913 * File name selection pattern
2915 tSCC zGlibc_C99_Inline_2List[] =
2916 "sys/stat.h\0*/sys/stat.h\0";
2918 * Machine/OS name selection pattern
2920 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2923 * content selection pattern - do fix if pattern found
2925 tSCC zGlibc_C99_Inline_2Select0[] =
2926 "extern __inline__ int";
2928 #define GLIBC_C99_INLINE_2_TEST_CT 1
2929 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2930 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2933 * Fix Command Arguments for Glibc_C99_Inline_2
2935 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2936 "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2939 __inline__ int \\1/",
2940 "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2943 __inline__ int \\1/",
2944 "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2947 __inline__ int \\1/",
2948 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2951 __inline__ int __REDIRECT\\1 (\\2/",
2952 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2955 __inline__ int __REDIRECT\\1 (\\2/",
2956 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2962 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2964 * Description of Glibc_C99_Inline_3 fix
2966 tSCC zGlibc_C99_Inline_3Name[] =
2967 "glibc_c99_inline_3";
2970 * File name selection pattern
2972 tSCC zGlibc_C99_Inline_3List[] =
2973 "bits/string2.h\0*/bits/string2.h\0";
2975 * Machine/OS name selection pattern
2977 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2980 * content selection pattern - do fix if pattern found
2982 tSCC zGlibc_C99_Inline_3Select0[] =
2986 * content bypass pattern - skip fix if pattern found
2988 tSCC zGlibc_C99_Inline_3Bypass0[] =
2989 "__extern_inline|__GNU_STDC_INLINE__";
2991 #define GLIBC_C99_INLINE_3_TEST_CT 2
2992 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2993 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2994 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2997 * Fix Command Arguments for Glibc_C99_Inline_3
2999 static const char* apzGlibc_C99_Inline_3Patch[] = {
3001 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
3002 "^# ifdef __cplusplus$",
3005 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3007 * Description of Glibc_C99_Inline_4 fix
3009 tSCC zGlibc_C99_Inline_4Name[] =
3010 "glibc_c99_inline_4";
3013 * File name selection pattern
3015 tSCC zGlibc_C99_Inline_4List[] =
3016 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
3018 * Machine/OS name selection pattern
3020 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
3023 * content selection pattern - do fix if pattern found
3025 tSCC zGlibc_C99_Inline_4Select0[] =
3026 "(^| )extern __inline";
3029 * content bypass pattern - skip fix if pattern found
3031 tSCC zGlibc_C99_Inline_4Bypass0[] =
3032 "__extern_inline|__gnu_inline__";
3034 #define GLIBC_C99_INLINE_4_TEST_CT 2
3035 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
3036 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
3037 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
3040 * Fix Command Arguments for Glibc_C99_Inline_4
3042 static const char* apzGlibc_C99_Inline_4Patch[] = {
3044 "%0 __attribute__ ((__gnu_inline__))",
3047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3049 * Description of Glibc_Mutex_Init fix
3051 tSCC zGlibc_Mutex_InitName[] =
3055 * File name selection pattern
3057 tSCC zGlibc_Mutex_InitList[] =
3060 * Machine/OS name selection pattern
3062 #define apzGlibc_Mutex_InitMachs (const char**)NULL
3065 * content selection pattern - do fix if pattern found
3067 tSCC zGlibc_Mutex_InitSelect0[] =
3068 "\\{ *\\{ *0, *\\} *\\}";
3070 #define GLIBC_MUTEX_INIT_TEST_CT 1
3071 static tTestDesc aGlibc_Mutex_InitTests[] = {
3072 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
3075 * Fix Command Arguments for Glibc_Mutex_Init
3077 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
3078 "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
3080 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
3082 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
3083 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
3084 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
3085 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3086 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
3087 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3088 "-e", "/define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\\n\
3090 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3093 { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3095 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
3096 "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
3099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3101 * Description of Glibc_Stdint fix
3103 tSCC zGlibc_StdintName[] =
3107 * File name selection pattern
3109 tSCC zGlibc_StdintList[] =
3112 * Machine/OS name selection pattern
3114 #define apzGlibc_StdintMachs (const char**)NULL
3117 * content selection pattern - do fix if pattern found
3119 tSCC zGlibc_StdintSelect0[] =
3122 #define GLIBC_STDINT_TEST_CT 1
3123 static tTestDesc aGlibc_StdintTests[] = {
3124 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
3127 * Fix Command Arguments for Glibc_Stdint
3129 static const char* apzGlibc_StdintPatch[] = {
3131 "# define UINT8_C(c)\tc\n\
3132 # define UINT16_C(c)\tc",
3133 "# define UINT8_C\\(c\\)\tc ## U\n\
3134 # define UINT16_C\\(c\\)\tc ## U",
3137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3139 * Description of Glibc_Strncpy fix
3141 tSCC zGlibc_StrncpyName[] =
3145 * File name selection pattern
3147 tSCC zGlibc_StrncpyList[] =
3150 * Machine/OS name selection pattern
3152 #define apzGlibc_StrncpyMachs (const char**)NULL
3155 * content bypass pattern - skip fix if pattern found
3157 tSCC zGlibc_StrncpyBypass0[] =
3158 "__builtin_strncpy";
3160 #define GLIBC_STRNCPY_TEST_CT 1
3161 static tTestDesc aGlibc_StrncpyTests[] = {
3162 { TT_NEGREP, zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
3165 * Fix Command Arguments for Glibc_Strncpy
3167 static const char* apzGlibc_StrncpyPatch[] = {
3169 "# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
3170 "# define strncpy([^\n\
3176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3178 * Description of Glibc_Tgmath fix
3180 tSCC zGlibc_TgmathName[] =
3184 * File name selection pattern
3186 tSCC zGlibc_TgmathList[] =
3189 * Machine/OS name selection pattern
3191 #define apzGlibc_TgmathMachs (const char**)NULL
3194 * content selection pattern - do fix if pattern found
3196 tSCC zGlibc_TgmathSelect0[] =
3197 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
3200 * content bypass pattern - skip fix if pattern found
3202 tSCC zGlibc_TgmathBypass0[] =
3203 "__floating_type\\(type\\) \\\\\n\
3204 .*__builtin_classify_type";
3206 #define GLIBC_TGMATH_TEST_CT 2
3207 static tTestDesc aGlibc_TgmathTests[] = {
3208 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
3209 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
3212 * Fix Command Arguments for Glibc_Tgmath
3214 static const char* apzGlibc_TgmathPatch[] = {
3216 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
3219 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3221 * Description of Gnu_Types fix
3223 tSCC zGnu_TypesName[] =
3227 * File name selection pattern
3229 tSCC zGnu_TypesList[] =
3230 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
3232 * Machine/OS name selection pattern
3234 tSCC* apzGnu_TypesMachs[] = {
3235 "*-*-solaris2.1[0-9]*",
3236 (const char*)NULL };
3239 * content selection pattern - do fix if pattern found
3241 tSCC zGnu_TypesSelect0[] =
3242 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
3245 * content bypass pattern - skip fix if pattern found
3247 tSCC zGnu_TypesBypass0[] =
3248 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
3250 #define GNU_TYPES_TEST_CT 2
3251 static tTestDesc aGnu_TypesTests[] = {
3252 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
3253 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
3256 * Fix Command Arguments for Gnu_Types
3258 static const char* apzGnu_TypesPatch[] = {
3262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3264 * Description of Hp_Inline fix
3266 tSCC zHp_InlineName[] =
3270 * File name selection pattern
3272 tSCC zHp_InlineList[] =
3273 "sys/spinlock.h\0machine/machparam.h\0";
3275 * Machine/OS name selection pattern
3277 #define apzHp_InlineMachs (const char**)NULL
3280 * content selection pattern - do fix if pattern found
3282 tSCC zHp_InlineSelect0[] =
3283 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
3285 #define HP_INLINE_TEST_CT 1
3286 static tTestDesc aHp_InlineTests[] = {
3287 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
3290 * Fix Command Arguments for Hp_Inline
3292 static const char* apzHp_InlinePatch[] = {
3295 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
3298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3300 * Description of Hp_Sysfile fix
3302 tSCC zHp_SysfileName[] =
3306 * File name selection pattern
3308 tSCC zHp_SysfileList[] =
3311 * Machine/OS name selection pattern
3313 #define apzHp_SysfileMachs (const char**)NULL
3316 * content selection pattern - do fix if pattern found
3318 tSCC zHp_SysfileSelect0[] =
3321 #define HP_SYSFILE_TEST_CT 1
3322 static tTestDesc aHp_SysfileTests[] = {
3323 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
3326 * Fix Command Arguments for Hp_Sysfile
3328 static const char* apzHp_SysfilePatch[] = {
3330 "(struct file *, ...)",
3334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3336 * Description of Hppa_Hpux_Fp_Macros fix
3338 tSCC zHppa_Hpux_Fp_MacrosName[] =
3339 "hppa_hpux_fp_macros";
3342 * File name selection pattern
3344 tSCC zHppa_Hpux_Fp_MacrosList[] =
3347 * Machine/OS name selection pattern
3349 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
3351 (const char*)NULL };
3354 * content selection pattern - do fix if pattern found
3356 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
3357 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
3358 #[ \t]*define[ \t]*FP_ZERO.*\n\
3359 #[ \t]*define[ \t]*FP_INFINITE.*\n\
3360 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
3361 #[ \t]*define[ \t]*FP_NAN.*\n";
3363 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
3364 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
3365 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
3368 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
3370 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
3372 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
3373 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
3374 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
3376 #ifdef _INCLUDE_HPUX_SOURCE\n",
3379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3381 * Description of Hpux10_Cpp_Pow_Inline fix
3383 tSCC zHpux10_Cpp_Pow_InlineName[] =
3384 "hpux10_cpp_pow_inline";
3387 * File name selection pattern
3389 tSCC zHpux10_Cpp_Pow_InlineList[] =
3390 "fixinc-test-limits.h\0math.h\0";
3392 * Machine/OS name selection pattern
3394 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
3397 * content selection pattern - do fix if pattern found
3399 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
3400 "^# +ifdef +__cplusplus\n\
3402 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
3403 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
3405 +extern +\"C\" +\\{\n\
3409 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
3410 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
3411 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3414 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
3416 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
3421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3423 * Description of Hpux11_Cpp_Pow_Inline fix
3425 tSCC zHpux11_Cpp_Pow_InlineName[] =
3426 "hpux11_cpp_pow_inline";
3429 * File name selection pattern
3431 tSCC zHpux11_Cpp_Pow_InlineList[] =
3434 * Machine/OS name selection pattern
3436 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
3439 * content selection pattern - do fix if pattern found
3441 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
3442 " +inline double pow\\(double d,int expon\\) \\{\n\
3443 +return pow\\(d, \\(double\\)expon\\);\n\
3446 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
3447 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3448 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3451 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3453 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3458 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3460 * Description of Hpux10_Ctype_Declarations1 fix
3462 tSCC zHpux10_Ctype_Declarations1Name[] =
3463 "hpux10_ctype_declarations1";
3466 * File name selection pattern
3468 tSCC zHpux10_Ctype_Declarations1List[] =
3471 * Machine/OS name selection pattern
3473 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3476 * content selection pattern - do fix if pattern found
3478 tSCC zHpux10_Ctype_Declarations1Select0[] =
3479 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3482 * content bypass pattern - skip fix if pattern found
3484 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3485 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3487 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
3488 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3489 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3490 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3493 * Fix Command Arguments for Hpux10_Ctype_Declarations1
3495 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3497 "#ifdef _PROTOTYPES\n\
3498 extern int __tolower(int);\n\
3499 extern int __toupper(int);\n\
3500 #else /* NOT _PROTOTYPES */\n\
3501 extern int __tolower();\n\
3502 extern int __toupper();\n\
3503 #endif /* _PROTOTYPES */\n\n\
3507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3509 * Description of Hpux10_Ctype_Declarations2 fix
3511 tSCC zHpux10_Ctype_Declarations2Name[] =
3512 "hpux10_ctype_declarations2";
3515 * File name selection pattern
3517 tSCC zHpux10_Ctype_Declarations2List[] =
3520 * Machine/OS name selection pattern
3522 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3525 * content selection pattern - do fix if pattern found
3527 tSCC zHpux10_Ctype_Declarations2Select0[] =
3528 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3531 * content bypass pattern - skip fix if pattern found
3533 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3534 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3536 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
3537 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3538 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3539 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3542 * Fix Command Arguments for Hpux10_Ctype_Declarations2
3544 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3547 #ifdef _PROTOTYPES\n\
3548 extern int _isalnum(int);\n\
3549 extern int _isalpha(int);\n\
3550 extern int _iscntrl(int);\n\
3551 extern int _isdigit(int);\n\
3552 extern int _isgraph(int);\n\
3553 extern int _islower(int);\n\
3554 extern int _isprint(int);\n\
3555 extern int _ispunct(int);\n\
3556 extern int _isspace(int);\n\
3557 extern int _isupper(int);\n\
3558 extern int _isxdigit(int);\n\
3559 # else /* not _PROTOTYPES */\n\
3560 extern int _isalnum();\n\
3561 extern int _isalpha();\n\
3562 extern int _iscntrl();\n\
3563 extern int _isdigit();\n\
3564 extern int _isgraph();\n\
3565 extern int _islower();\n\
3566 extern int _isprint();\n\
3567 extern int _ispunct();\n\
3568 extern int _isspace();\n\
3569 extern int _isupper();\n\
3570 extern int _isxdigit();\n\
3571 #endif /* _PROTOTYPES */\n",
3574 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3576 * Description of Hpux10_Stdio_Declarations fix
3578 tSCC zHpux10_Stdio_DeclarationsName[] =
3579 "hpux10_stdio_declarations";
3582 * File name selection pattern
3584 tSCC zHpux10_Stdio_DeclarationsList[] =
3587 * Machine/OS name selection pattern
3589 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3592 * content selection pattern - do fix if pattern found
3594 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3595 "^#[ \t]*define _iob[ \t]*__iob";
3598 * content bypass pattern - skip fix if pattern found
3600 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3601 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3603 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
3604 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3605 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3606 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3609 * Fix Command Arguments for Hpux10_Stdio_Declarations
3611 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3614 # if defined(__STDC__) || defined(__cplusplus)\n\
3615 extern int snprintf(char *, size_t, const char *, ...);\n\
3616 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3617 # else /* not __STDC__) || __cplusplus */\n\
3618 extern int snprintf();\n\
3619 extern int vsnprintf();\n\
3620 # endif /* __STDC__) || __cplusplus */\n",
3623 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3625 * Description of Hpux11_Abs fix
3627 tSCC zHpux11_AbsName[] =
3631 * File name selection pattern
3633 tSCC zHpux11_AbsList[] =
3636 * Machine/OS name selection pattern
3638 tSCC* apzHpux11_AbsMachs[] = {
3640 (const char*)NULL };
3643 * content selection pattern - do fix if pattern found
3645 tSCC zHpux11_AbsSelect0[] =
3646 "ifndef _MATH_INCLUDED";
3648 #define HPUX11_ABS_TEST_CT 1
3649 static tTestDesc aHpux11_AbsTests[] = {
3650 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
3653 * Fix Command Arguments for Hpux11_Abs
3655 static const char* apzHpux11_AbsPatch[] = {
3657 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3662 * Description of Hpux11_Fabsf fix
3664 tSCC zHpux11_FabsfName[] =
3668 * File name selection pattern
3670 tSCC zHpux11_FabsfList[] =
3673 * Machine/OS name selection pattern
3675 #define apzHpux11_FabsfMachs (const char**)NULL
3678 * content selection pattern - do fix if pattern found
3680 tSCC zHpux11_FabsfSelect0[] =
3681 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3684 * content bypass pattern - skip fix if pattern found
3686 tSCC zHpux11_FabsfBypass0[] =
3689 #define HPUX11_FABSF_TEST_CT 2
3690 static tTestDesc aHpux11_FabsfTests[] = {
3691 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
3692 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3695 * Fix Command Arguments for Hpux11_Fabsf
3697 static const char* apzHpux11_FabsfPatch[] = {
3699 "#ifndef __cplusplus\n\
3704 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3706 * Description of Hpux11_Pthread_Const fix
3708 tSCC zHpux11_Pthread_ConstName[] =
3709 "hpux11_pthread_const";
3712 * File name selection pattern
3714 tSCC zHpux11_Pthread_ConstList[] =
3717 * Machine/OS name selection pattern
3719 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3720 "*-hp-hpux11.[0-3]*",
3721 (const char*)NULL };
3724 * content selection pattern - do fix if pattern found
3726 tSCC zHpux11_Pthread_ConstSelect0[] =
3727 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3729 #define HPUX11_PTHREAD_CONST_TEST_CT 1
3730 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3731 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3734 * Fix Command Arguments for Hpux11_Pthread_Const
3736 static const char* apzHpux11_Pthread_ConstPatch[] = {
3738 "#define __POINTER_SET\t\t((void *) 1L)",
3741 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3743 * Description of Hpux11_Size_T fix
3745 tSCC zHpux11_Size_TName[] =
3749 * File name selection pattern
3751 #define zHpux11_Size_TList (char*)NULL
3753 * Machine/OS name selection pattern
3755 tSCC* apzHpux11_Size_TMachs[] = {
3757 (const char*)NULL };
3760 * content selection pattern - do fix if pattern found
3762 tSCC zHpux11_Size_TSelect0[] =
3765 #define HPUX11_SIZE_T_TEST_CT 1
3766 static tTestDesc aHpux11_Size_TTests[] = {
3767 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3770 * Fix Command Arguments for Hpux11_Size_T
3772 static const char* apzHpux11_Size_TPatch[] = {
3777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3779 * Description of Hpux11_Snprintf fix
3781 tSCC zHpux11_SnprintfName[] =
3785 * File name selection pattern
3787 tSCC zHpux11_SnprintfList[] =
3790 * Machine/OS name selection pattern
3792 #define apzHpux11_SnprintfMachs (const char**)NULL
3795 * content selection pattern - do fix if pattern found
3797 tSCC zHpux11_SnprintfSelect0[] =
3798 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3800 #define HPUX11_SNPRINTF_TEST_CT 1
3801 static tTestDesc aHpux11_SnprintfTests[] = {
3802 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3805 * Fix Command Arguments for Hpux11_Snprintf
3807 static const char* apzHpux11_SnprintfPatch[] = {
3812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3814 * Description of Hpux11_Vsnprintf fix
3816 tSCC zHpux11_VsnprintfName[] =
3820 * File name selection pattern
3822 tSCC zHpux11_VsnprintfList[] =
3825 * Machine/OS name selection pattern
3827 #define apzHpux11_VsnprintfMachs (const char**)NULL
3830 * content selection pattern - do fix if pattern found
3832 tSCC zHpux11_VsnprintfSelect0[] =
3833 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3835 #define HPUX11_VSNPRINTF_TEST_CT 1
3836 static tTestDesc aHpux11_VsnprintfTests[] = {
3837 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3840 * Fix Command Arguments for Hpux11_Vsnprintf
3842 static const char* apzHpux11_VsnprintfPatch[] = {
3847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3849 * Description of Hpux8_Bogus_Inlines fix
3851 tSCC zHpux8_Bogus_InlinesName[] =
3852 "hpux8_bogus_inlines";
3855 * File name selection pattern
3857 tSCC zHpux8_Bogus_InlinesList[] =
3860 * Machine/OS name selection pattern
3862 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3865 * content selection pattern - do fix if pattern found
3867 tSCC zHpux8_Bogus_InlinesSelect0[] =
3871 * content bypass pattern - skip fix if pattern found
3873 tSCC zHpux8_Bogus_InlinesBypass0[] =
3876 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3877 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3878 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3879 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3882 * Fix Command Arguments for Hpux8_Bogus_Inlines
3884 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3885 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3886 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3887 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3888 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3893 * Description of Hpux_Ctype_Macros fix
3895 tSCC zHpux_Ctype_MacrosName[] =
3896 "hpux_ctype_macros";
3899 * File name selection pattern
3901 tSCC zHpux_Ctype_MacrosList[] =
3904 * Machine/OS name selection pattern
3906 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3909 * content selection pattern - do fix if pattern found
3911 tSCC zHpux_Ctype_MacrosSelect0[] =
3912 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3914 #define HPUX_CTYPE_MACROS_TEST_CT 1
3915 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3916 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3919 * Fix Command Arguments for Hpux_Ctype_Macros
3921 static const char* apzHpux_Ctype_MacrosPatch[] = {
3926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3928 * Description of Hpux_Htonl fix
3930 tSCC zHpux_HtonlName[] =
3934 * File name selection pattern
3936 tSCC zHpux_HtonlList[] =
3939 * Machine/OS name selection pattern
3941 #define apzHpux_HtonlMachs (const char**)NULL
3944 * content selection pattern - do fix if pattern found
3946 tSCC zHpux_HtonlSelect0[] =
3947 "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
3949 \\* Macros for number representation conversion\\.\n\
3953 #define HPUX_HTONL_TEST_CT 1
3954 static tTestDesc aHpux_HtonlTests[] = {
3955 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3958 * Fix Command Arguments for Hpux_Htonl
3960 static const char* apzHpux_HtonlPatch[] = {
3966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3968 * Description of Hpux_Long_Double fix
3970 tSCC zHpux_Long_DoubleName[] =
3974 * File name selection pattern
3976 tSCC zHpux_Long_DoubleList[] =
3979 * Machine/OS name selection pattern
3981 tSCC* apzHpux_Long_DoubleMachs[] = {
3983 "*-*-hpux11.[012]*",
3984 (const char*)NULL };
3987 * content selection pattern - do fix if pattern found
3989 tSCC zHpux_Long_DoubleSelect0[] =
3990 "extern[ \t]long_double[ \t]strtold";
3993 * content bypass pattern - skip fix if pattern found
3995 tSCC zHpux_Long_DoubleBypass0[] =
3998 #define HPUX_LONG_DOUBLE_TEST_CT 2
3999 static tTestDesc aHpux_Long_DoubleTests[] = {
4000 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
4001 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
4004 * Fix Command Arguments for Hpux_Long_Double
4006 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
4007 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
4008 "-e", "s/long_double/long double/g",
4011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4013 * Description of Hpux_Long_Double_2 fix
4015 tSCC zHpux_Long_Double_2Name[] =
4016 "hpux_long_double_2";
4019 * File name selection pattern
4021 tSCC zHpux_Long_Double_2List[] =
4024 * Machine/OS name selection pattern
4026 tSCC* apzHpux_Long_Double_2Machs[] = {
4027 "hppa*-*-hpux11.3*",
4028 (const char*)NULL };
4031 * content selection pattern - do fix if pattern found
4033 tSCC zHpux_Long_Double_2Select0[] =
4034 "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
4036 #define HPUX_LONG_DOUBLE_2_TEST_CT 1
4037 static tTestDesc aHpux_Long_Double_2Tests[] = {
4038 { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
4041 * Fix Command Arguments for Hpux_Long_Double_2
4043 static const char* apzHpux_Long_Double_2Patch[] = {
4045 "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
4048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4050 * Description of Hpux_Systime fix
4052 tSCC zHpux_SystimeName[] =
4056 * File name selection pattern
4058 tSCC zHpux_SystimeList[] =
4061 * Machine/OS name selection pattern
4063 #define apzHpux_SystimeMachs (const char**)NULL
4066 * content selection pattern - do fix if pattern found
4068 tSCC zHpux_SystimeSelect0[] =
4069 "^extern struct sigevent;";
4071 #define HPUX_SYSTIME_TEST_CT 1
4072 static tTestDesc aHpux_SystimeTests[] = {
4073 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
4076 * Fix Command Arguments for Hpux_Systime
4078 static const char* apzHpux_SystimePatch[] = {
4083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4085 * Description of Hpux_Spu_Info fix
4087 tSCC zHpux_Spu_InfoName[] =
4091 * File name selection pattern
4093 tSCC zHpux_Spu_InfoList[] =
4094 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
4096 * Machine/OS name selection pattern
4098 tSCC* apzHpux_Spu_InfoMachs[] = {
4100 (const char*)NULL };
4103 * content selection pattern - do fix if pattern found
4105 tSCC zHpux_Spu_InfoSelect0[] =
4106 "^.*extern.*spu_info.*";
4108 #define HPUX_SPU_INFO_TEST_CT 1
4109 static tTestDesc aHpux_Spu_InfoTests[] = {
4110 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
4113 * Fix Command Arguments for Hpux_Spu_Info
4115 static const char* apzHpux_Spu_InfoPatch[] = {
4122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4124 * Description of Hpux11_Extern_Sendfile fix
4126 tSCC zHpux11_Extern_SendfileName[] =
4127 "hpux11_extern_sendfile";
4130 * File name selection pattern
4132 tSCC zHpux11_Extern_SendfileList[] =
4135 * Machine/OS name selection pattern
4137 tSCC* apzHpux11_Extern_SendfileMachs[] = {
4138 "*-hp-hpux11.[12]*",
4139 (const char*)NULL };
4142 * content selection pattern - do fix if pattern found
4144 tSCC zHpux11_Extern_SendfileSelect0[] =
4145 "^[ \t]*extern sbsize_t sendfile.*\n\
4148 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
4149 static tTestDesc aHpux11_Extern_SendfileTests[] = {
4150 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
4153 * Fix Command Arguments for Hpux11_Extern_Sendfile
4155 static const char* apzHpux11_Extern_SendfilePatch[] = {
4157 "#ifndef _APP32_64BIT_OFF_T\n\
4161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4163 * Description of Hpux11_Extern_Sendpath fix
4165 tSCC zHpux11_Extern_SendpathName[] =
4166 "hpux11_extern_sendpath";
4169 * File name selection pattern
4171 tSCC zHpux11_Extern_SendpathList[] =
4174 * Machine/OS name selection pattern
4176 tSCC* apzHpux11_Extern_SendpathMachs[] = {
4177 "*-hp-hpux11.[12]*",
4178 (const char*)NULL };
4181 * content selection pattern - do fix if pattern found
4183 tSCC zHpux11_Extern_SendpathSelect0[] =
4184 "^[ \t]*extern sbsize_t sendpath.*\n\
4187 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
4188 static tTestDesc aHpux11_Extern_SendpathTests[] = {
4189 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
4192 * Fix Command Arguments for Hpux11_Extern_Sendpath
4194 static const char* apzHpux11_Extern_SendpathPatch[] = {
4196 "#ifndef _APP32_64BIT_OFF_T\n\
4200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4202 * Description of Hpux_Extern_Errno fix
4204 tSCC zHpux_Extern_ErrnoName[] =
4205 "hpux_extern_errno";
4208 * File name selection pattern
4210 tSCC zHpux_Extern_ErrnoList[] =
4213 * Machine/OS name selection pattern
4215 tSCC* apzHpux_Extern_ErrnoMachs[] = {
4217 "*-hp-hpux11.[0-2]*",
4218 (const char*)NULL };
4221 * content selection pattern - do fix if pattern found
4223 tSCC zHpux_Extern_ErrnoSelect0[] =
4224 "^[ \t]*extern int errno;$";
4226 #define HPUX_EXTERN_ERRNO_TEST_CT 1
4227 static tTestDesc aHpux_Extern_ErrnoTests[] = {
4228 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
4231 * Fix Command Arguments for Hpux_Extern_Errno
4233 static const char* apzHpux_Extern_ErrnoPatch[] = {
4235 "#ifdef __cplusplus\n\
4239 #ifdef __cplusplus\n\
4244 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4246 * Description of Hpux_Pthread_Initializers fix
4248 tSCC zHpux_Pthread_InitializersName[] =
4249 "hpux_pthread_initializers";
4252 * File name selection pattern
4254 tSCC zHpux_Pthread_InitializersList[] =
4257 * Machine/OS name selection pattern
4259 tSCC* apzHpux_Pthread_InitializersMachs[] = {
4260 "*-hp-hpux11.[0-3]*",
4261 (const char*)NULL };
4262 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
4263 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
4266 * Fix Command Arguments for Hpux_Pthread_Initializers
4268 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
4269 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
4270 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
4271 "-e", "/^[ \t]*0$/d",
4272 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
4273 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
4274 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
4275 "-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\\\\@",
4276 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
4277 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
4278 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
4279 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
4280 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
4281 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
4284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4286 * Description of Hpux_C99_Intptr fix
4288 tSCC zHpux_C99_IntptrName[] =
4292 * File name selection pattern
4294 tSCC zHpux_C99_IntptrList[] =
4295 "stdint-hpux11.h\0stdint.h\0";
4297 * Machine/OS name selection pattern
4299 tSCC* apzHpux_C99_IntptrMachs[] = {
4301 (const char*)NULL };
4302 #define HPUX_C99_INTPTR_TEST_CT 0
4303 #define aHpux_C99_IntptrTests (tTestDesc*)NULL
4306 * Fix Command Arguments for Hpux_C99_Intptr
4308 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
4309 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
4310 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4311 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
4312 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
4313 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
4314 "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
4317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4319 * Description of Hpux_C99_Inttypes fix
4321 tSCC zHpux_C99_InttypesName[] =
4322 "hpux_c99_inttypes";
4325 * File name selection pattern
4327 tSCC zHpux_C99_InttypesList[] =
4328 "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
4330 * Machine/OS name selection pattern
4332 tSCC* apzHpux_C99_InttypesMachs[] = {
4333 "*-hp-hpux11.[23]*",
4334 (const char*)NULL };
4335 #define HPUX_C99_INTTYPES_TEST_CT 0
4336 #define aHpux_C99_InttypesTests (tTestDesc*)NULL
4339 * Fix Command Arguments for Hpux_C99_Inttypes
4341 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4342 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4343 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4344 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4345 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4350 * Description of Hpux_C99_Inttypes2 fix
4352 tSCC zHpux_C99_Inttypes2Name[] =
4353 "hpux_c99_inttypes2";
4356 * File name selection pattern
4358 tSCC zHpux_C99_Inttypes2List[] =
4359 "stdint-hpux11.h\0stdint.h\0";
4361 * Machine/OS name selection pattern
4363 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4365 (const char*)NULL };
4366 #define HPUX_C99_INTTYPES2_TEST_CT 0
4367 #define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL
4370 * Fix Command Arguments for Hpux_C99_Inttypes2
4372 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4373 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4374 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4375 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4376 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4381 * Description of Hpux_Stdint_Least_Fast fix
4383 tSCC zHpux_Stdint_Least_FastName[] =
4384 "hpux_stdint_least_fast";
4387 * File name selection pattern
4389 tSCC zHpux_Stdint_Least_FastList[] =
4390 "stdint-hpux11.h\0stdint.h\0";
4392 * Machine/OS name selection pattern
4394 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
4396 (const char*)NULL };
4399 * content selection pattern - do fix if pattern found
4401 tSCC zHpux_Stdint_Least_FastSelect0[] =
4402 "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
4404 #define HPUX_STDINT_LEAST_FAST_TEST_CT 1
4405 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
4406 { TT_EGREP, zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
4409 * Fix Command Arguments for Hpux_Stdint_Least_Fast
4411 static const char* apzHpux_Stdint_Least_FastPatch[] = {
4413 "# define\tUINT_%164_MAX\t__UINT64_MAX__",
4416 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4418 * Description of Hpux_Inttype_Int8_T fix
4420 tSCC zHpux_Inttype_Int8_TName[] =
4421 "hpux_inttype_int8_t";
4424 * File name selection pattern
4426 tSCC zHpux_Inttype_Int8_TList[] =
4427 "sys/_inttypes.h\0";
4429 * Machine/OS name selection pattern
4431 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4433 (const char*)NULL };
4436 * content selection pattern - do fix if pattern found
4438 tSCC zHpux_Inttype_Int8_TSelect0[] =
4439 "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4441 #define HPUX_INTTYPE_INT8_T_TEST_CT 1
4442 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4443 { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4446 * Fix Command Arguments for Hpux_Inttype_Int8_T
4448 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4450 "typedef signed char int%18_t;",
4453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4455 * Description of Hpux_Imaginary_I fix
4457 tSCC zHpux_Imaginary_IName[] =
4461 * File name selection pattern
4463 tSCC zHpux_Imaginary_IList[] =
4466 * Machine/OS name selection pattern
4468 tSCC* apzHpux_Imaginary_IMachs[] = {
4470 (const char*)NULL };
4473 * content selection pattern - do fix if pattern found
4475 tSCC zHpux_Imaginary_ISelect0[] =
4476 "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4478 #define HPUX_IMAGINARY_I_TEST_CT 1
4479 static tTestDesc aHpux_Imaginary_ITests[] = {
4480 { TT_EGREP, zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4483 * Fix Command Arguments for Hpux_Imaginary_I
4485 static const char* apzHpux_Imaginary_IPatch[] = {
4487 "#define _Complex_I (__extension__ 1.0iF)",
4490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4492 * Description of Huge_Val_Hex fix
4494 tSCC zHuge_Val_HexName[] =
4498 * File name selection pattern
4500 tSCC zHuge_Val_HexList[] =
4501 "bits/huge_val.h\0";
4503 * Machine/OS name selection pattern
4505 #define apzHuge_Val_HexMachs (const char**)NULL
4508 * content selection pattern - do fix if pattern found
4510 tSCC zHuge_Val_HexSelect0[] =
4511 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4514 * content bypass pattern - skip fix if pattern found
4516 tSCC zHuge_Val_HexBypass0[] =
4517 "__builtin_huge_val";
4519 #define HUGE_VAL_HEX_TEST_CT 2
4520 static tTestDesc aHuge_Val_HexTests[] = {
4521 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
4522 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4525 * Fix Command Arguments for Huge_Val_Hex
4527 static const char* apzHuge_Val_HexPatch[] = {
4529 "#define HUGE_VAL (__builtin_huge_val())\n",
4532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4534 * Description of Huge_Valf_Hex fix
4536 tSCC zHuge_Valf_HexName[] =
4540 * File name selection pattern
4542 tSCC zHuge_Valf_HexList[] =
4543 "bits/huge_val.h\0";
4545 * Machine/OS name selection pattern
4547 #define apzHuge_Valf_HexMachs (const char**)NULL
4550 * content selection pattern - do fix if pattern found
4552 tSCC zHuge_Valf_HexSelect0[] =
4553 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4556 * content bypass pattern - skip fix if pattern found
4558 tSCC zHuge_Valf_HexBypass0[] =
4559 "__builtin_huge_valf";
4561 #define HUGE_VALF_HEX_TEST_CT 2
4562 static tTestDesc aHuge_Valf_HexTests[] = {
4563 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
4564 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4567 * Fix Command Arguments for Huge_Valf_Hex
4569 static const char* apzHuge_Valf_HexPatch[] = {
4571 "#define HUGE_VALF (__builtin_huge_valf())\n",
4574 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4576 * Description of Huge_Vall_Hex fix
4578 tSCC zHuge_Vall_HexName[] =
4582 * File name selection pattern
4584 tSCC zHuge_Vall_HexList[] =
4585 "bits/huge_val.h\0";
4587 * Machine/OS name selection pattern
4589 #define apzHuge_Vall_HexMachs (const char**)NULL
4592 * content selection pattern - do fix if pattern found
4594 tSCC zHuge_Vall_HexSelect0[] =
4595 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4598 * content bypass pattern - skip fix if pattern found
4600 tSCC zHuge_Vall_HexBypass0[] =
4601 "__builtin_huge_vall";
4603 #define HUGE_VALL_HEX_TEST_CT 2
4604 static tTestDesc aHuge_Vall_HexTests[] = {
4605 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
4606 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4609 * Fix Command Arguments for Huge_Vall_Hex
4611 static const char* apzHuge_Vall_HexPatch[] = {
4613 "#define HUGE_VALL (__builtin_huge_vall())\n",
4616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4618 * Description of Int_Abort_Free_And_Exit fix
4620 tSCC zInt_Abort_Free_And_ExitName[] =
4621 "int_abort_free_and_exit";
4624 * File name selection pattern
4626 tSCC zInt_Abort_Free_And_ExitList[] =
4629 * Machine/OS name selection pattern
4631 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4634 * content selection pattern - do fix if pattern found
4636 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4637 "int[ \t]+(abort|free|exit)[ \t]*\\(";
4640 * content bypass pattern - skip fix if pattern found
4642 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4643 "_CLASSIC_ANSI_TYPES";
4645 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
4646 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4647 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4648 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4651 * Fix Command Arguments for Int_Abort_Free_And_Exit
4653 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4658 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4660 * Description of Io_Quotes_Def fix
4662 tSCC zIo_Quotes_DefName[] =
4666 * File name selection pattern
4668 #define zIo_Quotes_DefList (char*)NULL
4670 * Machine/OS name selection pattern
4672 #define apzIo_Quotes_DefMachs (const char**)NULL
4675 * content selection pattern - do fix if pattern found
4677 tSCC zIo_Quotes_DefSelect0[] =
4678 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4680 #define IO_QUOTES_DEF_TEST_CT 1
4681 static tTestDesc aIo_Quotes_DefTests[] = {
4682 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4685 * Fix Command Arguments for Io_Quotes_Def
4687 static const char* apzIo_Quotes_DefPatch[] = {
4692 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4694 * Description of Io_Quotes_Use fix
4696 tSCC zIo_Quotes_UseName[] =
4700 * File name selection pattern
4702 #define zIo_Quotes_UseList (char*)NULL
4704 * Machine/OS name selection pattern
4706 #define apzIo_Quotes_UseMachs (const char**)NULL
4709 * content selection pattern - do fix if pattern found
4711 tSCC zIo_Quotes_UseSelect0[] =
4712 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4714 #define IO_QUOTES_USE_TEST_CT 1
4715 static tTestDesc aIo_Quotes_UseTests[] = {
4716 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4719 * Fix Command Arguments for Io_Quotes_Use
4721 static const char* apzIo_Quotes_UsePatch[] = {
4726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4728 * Description of Ip_Missing_Semi fix
4730 tSCC zIp_Missing_SemiName[] =
4734 * File name selection pattern
4736 tSCC zIp_Missing_SemiList[] =
4739 * Machine/OS name selection pattern
4741 #define apzIp_Missing_SemiMachs (const char**)NULL
4744 * content selection pattern - do fix if pattern found
4746 tSCC zIp_Missing_SemiSelect0[] =
4749 #define IP_MISSING_SEMI_TEST_CT 1
4750 static tTestDesc aIp_Missing_SemiTests[] = {
4751 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4754 * Fix Command Arguments for Ip_Missing_Semi
4756 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4757 "-e", "/^struct/,/^};/s/}$/};/",
4760 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4762 * Description of Irix_Limits_Const fix
4764 tSCC zIrix_Limits_ConstName[] =
4765 "irix_limits_const";
4768 * File name selection pattern
4770 tSCC zIrix_Limits_ConstList[] =
4771 "fixinc-test-limits.h\0limits.h\0";
4773 * Machine/OS name selection pattern
4775 #define apzIrix_Limits_ConstMachs (const char**)NULL
4778 * content selection pattern - do fix if pattern found
4780 tSCC zIrix_Limits_ConstSelect0[] =
4783 #define IRIX_LIMITS_CONST_TEST_CT 1
4784 static tTestDesc aIrix_Limits_ConstTests[] = {
4785 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4788 * Fix Command Arguments for Irix_Limits_Const
4790 static const char* apzIrix_Limits_ConstPatch[] = {
4795 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4797 * Description of Irix_Stdio_Va_List fix
4799 tSCC zIrix_Stdio_Va_ListName[] =
4800 "irix_stdio_va_list";
4803 * File name selection pattern
4805 tSCC zIrix_Stdio_Va_ListList[] =
4808 * Machine/OS name selection pattern
4810 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4813 * content selection pattern - do fix if pattern found
4815 tSCC zIrix_Stdio_Va_ListSelect0[] =
4816 "/\\* va_list \\*/ char \\*";
4818 #define IRIX_STDIO_VA_LIST_TEST_CT 1
4819 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4820 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4823 * Fix Command Arguments for Irix_Stdio_Va_List
4825 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4830 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4832 * Description of Kandr_Concat fix
4834 tSCC zKandr_ConcatName[] =
4838 * File name selection pattern
4840 tSCC zKandr_ConcatList[] =
4841 "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";
4843 * Machine/OS name selection pattern
4845 #define apzKandr_ConcatMachs (const char**)NULL
4848 * content selection pattern - do fix if pattern found
4850 tSCC zKandr_ConcatSelect0[] =
4853 #define KANDR_CONCAT_TEST_CT 1
4854 static tTestDesc aKandr_ConcatTests[] = {
4855 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4858 * Fix Command Arguments for Kandr_Concat
4860 static const char* apzKandr_ConcatPatch[] = {
4865 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4867 * Description of Linux_Ia64_Ucontext fix
4869 tSCC zLinux_Ia64_UcontextName[] =
4870 "linux_ia64_ucontext";
4873 * File name selection pattern
4875 tSCC zLinux_Ia64_UcontextList[] =
4878 * Machine/OS name selection pattern
4880 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4882 (const char*)NULL };
4885 * content selection pattern - do fix if pattern found
4887 tSCC zLinux_Ia64_UcontextSelect0[] =
4888 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4890 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4891 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4892 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4895 * Fix Command Arguments for Linux_Ia64_Ucontext
4897 static const char* apzLinux_Ia64_UcontextPatch[] = {
4899 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4904 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4906 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4907 "lynxos_no_warning_in_sys_time_h";
4910 * File name selection pattern
4912 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4915 * Machine/OS name selection pattern
4917 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4920 * content selection pattern - do fix if pattern found
4922 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4923 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4925 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4926 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4927 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4930 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4932 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4939 * Description of Lynxos_Missing_Putenv fix
4941 tSCC zLynxos_Missing_PutenvName[] =
4942 "lynxos_missing_putenv";
4945 * File name selection pattern
4947 tSCC zLynxos_Missing_PutenvList[] =
4950 * Machine/OS name selection pattern
4952 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4954 (const char*)NULL };
4957 * content selection pattern - do fix if pattern found
4959 tSCC zLynxos_Missing_PutenvSelect0[] =
4960 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4963 * content bypass pattern - skip fix if pattern found
4965 tSCC zLynxos_Missing_PutenvBypass0[] =
4968 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4969 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4970 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4971 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4974 * Fix Command Arguments for Lynxos_Missing_Putenv
4976 static const char* apzLynxos_Missing_PutenvPatch[] = {
4979 extern int putenv\t\t\t\t_AP((char *));",
4980 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4983 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4985 * Description of Machine_Ansi_H_Va_List fix
4987 tSCC zMachine_Ansi_H_Va_ListName[] =
4988 "machine_ansi_h_va_list";
4991 * File name selection pattern
4993 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4995 * Machine/OS name selection pattern
4997 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5000 * content selection pattern - do fix if pattern found
5002 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
5003 "define[ \t]+_BSD_VA_LIST_[ \t]";
5006 * content bypass pattern - skip fix if pattern found
5008 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5009 "__builtin_va_list";
5011 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
5012 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5013 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5014 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5017 * Fix Command Arguments for Machine_Ansi_H_Va_List
5019 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5021 "%1__builtin_va_list",
5022 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5027 * Description of Machine_Name fix
5029 tSCC zMachine_NameName[] =
5033 * File name selection pattern
5035 #define zMachine_NameList (char*)NULL
5037 * Machine/OS name selection pattern
5039 #define apzMachine_NameMachs (const char**)NULL
5042 * perform the C function call test
5044 tSCC zMachine_NameFTst0[] = "machine_name";
5046 #define MACHINE_NAME_TEST_CT 1
5047 static tTestDesc aMachine_NameTests[] = {
5048 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
5051 * Fix Command Arguments for Machine_Name
5053 static const char* apzMachine_NamePatch[] = {
5057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5059 * Description of Math_Exception fix
5061 tSCC zMath_ExceptionName[] =
5065 * File name selection pattern
5067 tSCC zMath_ExceptionList[] =
5070 * Machine/OS name selection pattern
5072 #define apzMath_ExceptionMachs (const char**)NULL
5075 * content selection pattern - do fix if pattern found
5077 tSCC zMath_ExceptionSelect0[] =
5081 * content bypass pattern - skip fix if pattern found
5083 tSCC zMath_ExceptionBypass0[] =
5084 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5086 #define MATH_EXCEPTION_TEST_CT 2
5087 static tTestDesc aMath_ExceptionTests[] = {
5088 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
5089 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
5092 * Fix Command Arguments for Math_Exception
5094 static const char* apzMath_ExceptionPatch[] = {
5096 "#ifdef __cplusplus\n\
5097 #define exception __math_exception\n\
5099 "#ifdef __cplusplus\n\
5104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5106 * Description of Math_Huge_Val_From_Dbl_Max fix
5108 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
5109 "math_huge_val_from_dbl_max";
5112 * File name selection pattern
5114 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
5117 * Machine/OS name selection pattern
5119 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
5122 * content selection pattern - do fix if pattern found
5124 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
5125 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
5128 * content bypass pattern - skip fix if pattern found
5130 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
5131 "define[ \t]+DBL_MAX";
5133 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
5134 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
5135 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
5136 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
5139 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
5141 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5142 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
5143 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
5144 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
5149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5151 * Description of Nested_Auth_Des fix
5153 tSCC zNested_Auth_DesName[] =
5157 * File name selection pattern
5159 tSCC zNested_Auth_DesList[] =
5162 * Machine/OS name selection pattern
5164 #define apzNested_Auth_DesMachs (const char**)NULL
5167 * content selection pattern - do fix if pattern found
5169 tSCC zNested_Auth_DesSelect0[] =
5170 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
5172 #define NESTED_AUTH_DES_TEST_CT 1
5173 static tTestDesc aNested_Auth_DesTests[] = {
5174 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
5177 * Fix Command Arguments for Nested_Auth_Des
5179 static const char* apzNested_Auth_DesPatch[] = {
5184 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5186 * Description of Netbsd_C99_Inline_1 fix
5188 tSCC zNetbsd_C99_Inline_1Name[] =
5189 "netbsd_c99_inline_1";
5192 * File name selection pattern
5194 tSCC zNetbsd_C99_Inline_1List[] =
5197 * Machine/OS name selection pattern
5199 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
5201 (const char*)NULL };
5204 * content selection pattern - do fix if pattern found
5206 tSCC zNetbsd_C99_Inline_1Select0[] =
5207 "extern __inline int";
5209 #define NETBSD_C99_INLINE_1_TEST_CT 1
5210 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
5211 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
5214 * Fix Command Arguments for Netbsd_C99_Inline_1
5216 static const char* apzNetbsd_C99_Inline_1Patch[] = {
5219 #ifdef __GNUC_STDC_INLINE__\n\
5220 __attribute__((__gnu_inline__))\n\
5225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5227 * Description of Netbsd_C99_Inline_2 fix
5229 tSCC zNetbsd_C99_Inline_2Name[] =
5230 "netbsd_c99_inline_2";
5233 * File name selection pattern
5235 tSCC zNetbsd_C99_Inline_2List[] =
5238 * Machine/OS name selection pattern
5240 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
5242 (const char*)NULL };
5245 * content selection pattern - do fix if pattern found
5247 tSCC zNetbsd_C99_Inline_2Select0[] =
5248 "#define _SIGINLINE extern __inline";
5250 #define NETBSD_C99_INLINE_2_TEST_CT 1
5251 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
5252 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
5255 * Fix Command Arguments for Netbsd_C99_Inline_2
5257 static const char* apzNetbsd_C99_Inline_2Patch[] = {
5259 "#ifdef __GNUC_STDC_INLINE__\n\
5260 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
5266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5268 * Description of Netbsd_Extra_Semicolon fix
5270 tSCC zNetbsd_Extra_SemicolonName[] =
5271 "netbsd_extra_semicolon";
5274 * File name selection pattern
5276 tSCC zNetbsd_Extra_SemicolonList[] =
5279 * Machine/OS name selection pattern
5281 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
5283 (const char*)NULL };
5286 * content selection pattern - do fix if pattern found
5288 tSCC zNetbsd_Extra_SemicolonSelect0[] =
5289 "#define[ \t]*__END_DECLS[ \t]*};";
5291 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
5292 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
5293 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
5296 * Fix Command Arguments for Netbsd_Extra_Semicolon
5298 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
5300 "#define __END_DECLS }",
5303 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5305 * Description of Newlib_Stdint_1 fix
5307 tSCC zNewlib_Stdint_1Name[] =
5311 * File name selection pattern
5313 tSCC zNewlib_Stdint_1List[] =
5314 "stdint-newlib.h\0stdint.h\0";
5316 * Machine/OS name selection pattern
5318 #define apzNewlib_Stdint_1Machs (const char**)NULL
5321 * content selection pattern - do fix if pattern found
5323 tSCC zNewlib_Stdint_1Select0[] =
5324 "@todo - Add support for wint_t types";
5326 #define NEWLIB_STDINT_1_TEST_CT 1
5327 static tTestDesc aNewlib_Stdint_1Tests[] = {
5328 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5331 * Fix Command Arguments for Newlib_Stdint_1
5333 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5334 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5335 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5336 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5337 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5338 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5339 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5340 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5341 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5342 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5343 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5344 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5345 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5346 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5347 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5350 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5352 * Description of Newlib_Stdint_2 fix
5354 tSCC zNewlib_Stdint_2Name[] =
5358 * File name selection pattern
5360 tSCC zNewlib_Stdint_2List[] =
5361 "stdint-newlib.h\0stdint.h\0";
5363 * Machine/OS name selection pattern
5365 #define apzNewlib_Stdint_2Machs (const char**)NULL
5368 * content selection pattern - do fix if pattern found
5370 tSCC zNewlib_Stdint_2Select0[] =
5371 "@todo - Add support for wint_t types";
5373 #define NEWLIB_STDINT_2_TEST_CT 1
5374 static tTestDesc aNewlib_Stdint_2Tests[] = {
5375 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5378 * Fix Command Arguments for Newlib_Stdint_2
5380 static const char* apzNewlib_Stdint_2Patch[] = {
5382 "#define INTMAX_MAX __INTMAX_MAX__\n\
5383 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5384 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5385 #define WCHAR_MAX __WCHAR_MAX__\n\
5386 #define WCHAR_MIN __WCHAR_MIN__\n\
5387 #define WINT_MAX __WINT_MAX__\n\
5388 #define WINT_MIN __WINT_MIN__\n\n\
5390 "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5393 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5395 * Description of Next_Math_Prefix fix
5397 tSCC zNext_Math_PrefixName[] =
5401 * File name selection pattern
5403 tSCC zNext_Math_PrefixList[] =
5406 * Machine/OS name selection pattern
5408 #define apzNext_Math_PrefixMachs (const char**)NULL
5411 * content selection pattern - do fix if pattern found
5413 tSCC zNext_Math_PrefixSelect0[] =
5414 "^extern[ \t]+double[ \t]+__const__[ \t]";
5416 #define NEXT_MATH_PREFIX_TEST_CT 1
5417 static tTestDesc aNext_Math_PrefixTests[] = {
5418 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5421 * Fix Command Arguments for Next_Math_Prefix
5423 static const char* apzNext_Math_PrefixPatch[] = {
5425 "extern double %1(",
5426 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5431 * Description of Next_Template fix
5433 tSCC zNext_TemplateName[] =
5437 * File name selection pattern
5439 tSCC zNext_TemplateList[] =
5442 * Machine/OS name selection pattern
5444 #define apzNext_TemplateMachs (const char**)NULL
5447 * content selection pattern - do fix if pattern found
5449 tSCC zNext_TemplateSelect0[] =
5452 #define NEXT_TEMPLATE_TEST_CT 1
5453 static tTestDesc aNext_TemplateTests[] = {
5454 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
5457 * Fix Command Arguments for Next_Template
5459 static const char* apzNext_TemplatePatch[] = {
5462 "\\(([^)]*)[ \t]template\\)",
5465 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5467 * Description of Next_Volitile fix
5469 tSCC zNext_VolitileName[] =
5473 * File name selection pattern
5475 tSCC zNext_VolitileList[] =
5478 * Machine/OS name selection pattern
5480 #define apzNext_VolitileMachs (const char**)NULL
5483 * content selection pattern - do fix if pattern found
5485 tSCC zNext_VolitileSelect0[] =
5486 "^extern[ \t]+volatile[ \t]+void[ \t]";
5488 #define NEXT_VOLITILE_TEST_CT 1
5489 static tTestDesc aNext_VolitileTests[] = {
5490 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
5493 * Fix Command Arguments for Next_Volitile
5495 static const char* apzNext_VolitilePatch[] = {
5498 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5501 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5503 * Description of Next_Wait_Union fix
5505 tSCC zNext_Wait_UnionName[] =
5509 * File name selection pattern
5511 tSCC zNext_Wait_UnionList[] =
5514 * Machine/OS name selection pattern
5516 #define apzNext_Wait_UnionMachs (const char**)NULL
5519 * content selection pattern - do fix if pattern found
5521 tSCC zNext_Wait_UnionSelect0[] =
5522 "wait\\(union wait";
5524 #define NEXT_WAIT_UNION_TEST_CT 1
5525 static tTestDesc aNext_Wait_UnionTests[] = {
5526 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5529 * Fix Command Arguments for Next_Wait_Union
5531 static const char* apzNext_Wait_UnionPatch[] = {
5536 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5538 * Description of Nodeent_Syntax fix
5540 tSCC zNodeent_SyntaxName[] =
5544 * File name selection pattern
5546 tSCC zNodeent_SyntaxList[] =
5547 "netdnet/dnetdb.h\0";
5549 * Machine/OS name selection pattern
5551 #define apzNodeent_SyntaxMachs (const char**)NULL
5554 * content selection pattern - do fix if pattern found
5556 tSCC zNodeent_SyntaxSelect0[] =
5557 "char[ \t]*\\*na_addr[ \t]*$";
5559 #define NODEENT_SYNTAX_TEST_CT 1
5560 static tTestDesc aNodeent_SyntaxTests[] = {
5561 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5564 * Fix Command Arguments for Nodeent_Syntax
5566 static const char* apzNodeent_SyntaxPatch[] = {
5571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5573 * Description of Openbsd_Null_Definition fix
5575 tSCC zOpenbsd_Null_DefinitionName[] =
5576 "openbsd_null_definition";
5579 * File name selection pattern
5581 tSCC zOpenbsd_Null_DefinitionList[] =
5582 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5584 * Machine/OS name selection pattern
5586 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5588 (const char*)NULL };
5591 * content selection pattern - do fix if pattern found
5593 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5596 #define OPENBSD_NULL_DEFINITION_TEST_CT 1
5597 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5598 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5601 * Fix Command Arguments for Openbsd_Null_Definition
5603 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5606 #ifdef __cplusplus\n\
5608 #define NULL\t__null\n\
5609 #else\t /* ! __GNUG__ */\n\
5611 #endif\t /* __GNUG__ */\n\
5612 #else\t /* ! __cplusplus */\n\
5613 #define NULL\t((void *)0)\n\
5614 #endif\t /* __cplusplus */\n\
5615 #endif\t /* !NULL */",
5616 "^#ifndef[ \t]*NULL\n\
5617 ^#ifdef[ \t]*__GNUG__\n\
5618 ^#define[ \t]*NULL[ \t]*__null\n\
5620 ^#define[ \t]*NULL[ \t]*0L\n\
5625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5627 * Description of Obstack_Lvalue_Cast fix
5629 tSCC zObstack_Lvalue_CastName[] =
5630 "obstack_lvalue_cast";
5633 * File name selection pattern
5635 tSCC zObstack_Lvalue_CastList[] =
5638 * Machine/OS name selection pattern
5640 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5643 * content selection pattern - do fix if pattern found
5645 tSCC zObstack_Lvalue_CastSelect0[] =
5646 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5648 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5649 static tTestDesc aObstack_Lvalue_CastTests[] = {
5650 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5653 * Fix Command Arguments for Obstack_Lvalue_Cast
5655 static const char* apzObstack_Lvalue_CastPatch[] = {
5657 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5662 * Description of Openbsd_Va_Start fix
5664 tSCC zOpenbsd_Va_StartName[] =
5668 * File name selection pattern
5670 tSCC zOpenbsd_Va_StartList[] =
5673 * Machine/OS name selection pattern
5675 tSCC* apzOpenbsd_Va_StartMachs[] = {
5677 (const char*)NULL };
5680 * content selection pattern - do fix if pattern found
5682 tSCC zOpenbsd_Va_StartSelect0[] =
5683 "__builtin_stdarg_start";
5685 #define OPENBSD_VA_START_TEST_CT 1
5686 static tTestDesc aOpenbsd_Va_StartTests[] = {
5687 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5690 * Fix Command Arguments for Openbsd_Va_Start
5692 static const char* apzOpenbsd_Va_StartPatch[] = {
5694 "__builtin_va_start",
5697 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5699 * Description of Osf_Namespace_A fix
5701 tSCC zOsf_Namespace_AName[] =
5705 * File name selection pattern
5707 tSCC zOsf_Namespace_AList[] =
5708 "reg_types.h\0sys/lc_core.h\0";
5710 * Machine/OS name selection pattern
5712 #define apzOsf_Namespace_AMachs (const char**)NULL
5715 * perform the 'test' shell command - do fix on success
5717 tSCC zOsf_Namespace_ATest0[] =
5719 tSCC zOsf_Namespace_ATest1[] =
5720 " -r sys/lc_core.h";
5721 tSCC zOsf_Namespace_ATest2[] =
5722 " -n \"`grep '} regex_t;' reg_types.h`\"";
5723 tSCC zOsf_Namespace_ATest3[] =
5724 " -z \"`grep __regex_t regex.h`\"";
5726 #define OSF_NAMESPACE_A_TEST_CT 4
5727 static tTestDesc aOsf_Namespace_ATests[] = {
5728 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5729 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5730 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5731 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5734 * Fix Command Arguments for Osf_Namespace_A
5736 static const char* apzOsf_Namespace_APatch[] = {
5739 "reg(ex|off|match)_t",
5742 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5744 * Description of Osf_Namespace_C fix
5746 tSCC zOsf_Namespace_CName[] =
5750 * File name selection pattern
5752 tSCC zOsf_Namespace_CList[] =
5755 * Machine/OS name selection pattern
5757 #define apzOsf_Namespace_CMachs (const char**)NULL
5760 * content selection pattern - do fix if pattern found
5762 tSCC zOsf_Namespace_CSelect0[] =
5763 "#include <reg_types.h>.*";
5766 * perform the 'test' shell command - do fix on success
5768 tSCC zOsf_Namespace_CTest0[] =
5770 tSCC zOsf_Namespace_CTest1[] =
5771 " -r sys/lc_core.h";
5772 tSCC zOsf_Namespace_CTest2[] =
5773 " -n \"`grep '} regex_t;' reg_types.h`\"";
5774 tSCC zOsf_Namespace_CTest3[] =
5775 " -z \"`grep __regex_t regex.h`\"";
5777 #define OSF_NAMESPACE_C_TEST_CT 5
5778 static tTestDesc aOsf_Namespace_CTests[] = {
5779 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5780 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5781 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5782 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5783 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5786 * Fix Command Arguments for Osf_Namespace_C
5788 static const char* apzOsf_Namespace_CPatch[] = {
5791 typedef __regex_t\tregex_t;\n\
5792 typedef __regoff_t\tregoff_t;\n\
5793 typedef __regmatch_t\tregmatch_t;",
5796 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5798 * Description of Pthread_Incomplete_Struct_Argument fix
5800 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5801 "pthread_incomplete_struct_argument";
5804 * File name selection pattern
5806 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5809 * Machine/OS name selection pattern
5811 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5814 * content selection pattern - do fix if pattern found
5816 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5817 "struct __jmp_buf_tag";
5819 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5820 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5821 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5824 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5826 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5829 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5834 * Description of Read_Ret_Type fix
5836 tSCC zRead_Ret_TypeName[] =
5840 * File name selection pattern
5842 tSCC zRead_Ret_TypeList[] =
5845 * Machine/OS name selection pattern
5847 #define apzRead_Ret_TypeMachs (const char**)NULL
5850 * content selection pattern - do fix if pattern found
5852 tSCC zRead_Ret_TypeSelect0[] =
5853 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5855 #define READ_RET_TYPE_TEST_CT 1
5856 static tTestDesc aRead_Ret_TypeTests[] = {
5857 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5860 * Fix Command Arguments for Read_Ret_Type
5862 static const char* apzRead_Ret_TypePatch[] = {
5864 "extern unsigned int fread(), fwrite();\n\
5866 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5871 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5873 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5874 "rpc_xdr_lvalue_cast_a";
5877 * File name selection pattern
5879 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5882 * Machine/OS name selection pattern
5884 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5887 * content selection pattern - do fix if pattern found
5889 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5890 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5893 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5894 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5895 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5898 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5900 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5902 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5907 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5909 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5910 "rpc_xdr_lvalue_cast_b";
5913 * File name selection pattern
5915 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5918 * Machine/OS name selection pattern
5920 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5923 * content selection pattern - do fix if pattern found
5925 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5926 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5929 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5930 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5931 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5934 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5936 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5938 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5943 * Description of Rs6000_Double fix
5945 tSCC zRs6000_DoubleName[] =
5949 * File name selection pattern
5951 tSCC zRs6000_DoubleList[] =
5954 * Machine/OS name selection pattern
5956 #define apzRs6000_DoubleMachs (const char**)NULL
5959 * content selection pattern - do fix if pattern found
5961 tSCC zRs6000_DoubleSelect0[] =
5962 "[^a-zA-Z_]class\\(";
5964 #define RS6000_DOUBLE_TEST_CT 1
5965 static tTestDesc aRs6000_DoubleTests[] = {
5966 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5969 * Fix Command Arguments for Rs6000_Double
5971 static const char* apzRs6000_DoublePatch[] = {
5973 "#ifndef __cplusplus\n\
5976 "^.*[^a-zA-Z_]class\\(.*",
5979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5981 * Description of Rs6000_Fchmod fix
5983 tSCC zRs6000_FchmodName[] =
5987 * File name selection pattern
5989 tSCC zRs6000_FchmodList[] =
5992 * Machine/OS name selection pattern
5994 #define apzRs6000_FchmodMachs (const char**)NULL
5997 * content selection pattern - do fix if pattern found
5999 tSCC zRs6000_FchmodSelect0[] =
6000 "fchmod\\(char \\*";
6002 #define RS6000_FCHMOD_TEST_CT 1
6003 static tTestDesc aRs6000_FchmodTests[] = {
6004 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
6007 * Fix Command Arguments for Rs6000_Fchmod
6009 static const char* apzRs6000_FchmodPatch[] = {
6014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6016 * Description of Rs6000_Param fix
6018 tSCC zRs6000_ParamName[] =
6022 * File name selection pattern
6024 tSCC zRs6000_ParamList[] =
6025 "stdio.h\0unistd.h\0";
6027 * Machine/OS name selection pattern
6029 #define apzRs6000_ParamMachs (const char**)NULL
6032 * content selection pattern - do fix if pattern found
6034 tSCC zRs6000_ParamSelect0[] =
6035 "rename\\(const char \\*old, const char \\*new\\)";
6037 #define RS6000_PARAM_TEST_CT 1
6038 static tTestDesc aRs6000_ParamTests[] = {
6039 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
6042 * Fix Command Arguments for Rs6000_Param
6044 static const char* apzRs6000_ParamPatch[] = {
6046 "rename(const char *_old, const char *_new)",
6049 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6051 * Description of Solaris___Restrict fix
6053 tSCC zSolaris___RestrictName[] =
6054 "solaris___restrict";
6057 * File name selection pattern
6059 tSCC zSolaris___RestrictList[] =
6060 "sys/feature_tests.h\0";
6062 * Machine/OS name selection pattern
6064 tSCC* apzSolaris___RestrictMachs[] = {
6066 (const char*)NULL };
6069 * content selection pattern - do fix if pattern found
6071 tSCC zSolaris___RestrictSelect0[] =
6072 "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
6074 #define SOLARIS___RESTRICT_TEST_CT 1
6075 static tTestDesc aSolaris___RestrictTests[] = {
6076 { TT_EGREP, zSolaris___RestrictSelect0, (regex_t*)NULL }, };
6079 * Fix Command Arguments for Solaris___Restrict
6081 static const char* apzSolaris___RestrictPatch[] = {
6083 "#ifdef __cplusplus\n\
6084 #define\t_RESTRICT_KYWD\t__restrict\n\
6090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6092 * Description of Solaris_Complex fix
6094 tSCC zSolaris_ComplexName[] =
6098 * File name selection pattern
6100 tSCC zSolaris_ComplexList[] =
6103 * Machine/OS name selection pattern
6105 tSCC* apzSolaris_ComplexMachs[] = {
6107 (const char*)NULL };
6110 * content selection pattern - do fix if pattern found
6112 tSCC zSolaris_ComplexSelect0[] =
6113 "#define[ \t]_Complex_I[ \t]_Complex_I";
6115 #define SOLARIS_COMPLEX_TEST_CT 1
6116 static tTestDesc aSolaris_ComplexTests[] = {
6117 { TT_EGREP, zSolaris_ComplexSelect0, (regex_t*)NULL }, };
6120 * Fix Command Arguments for Solaris_Complex
6122 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
6123 "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
6124 "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
6125 "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
6126 "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
6129 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6131 * Description of Solaris_Complex_Cxx fix
6133 tSCC zSolaris_Complex_CxxName[] =
6134 "solaris_complex_cxx";
6137 * File name selection pattern
6139 tSCC zSolaris_Complex_CxxList[] =
6142 * Machine/OS name selection pattern
6144 tSCC* apzSolaris_Complex_CxxMachs[] = {
6146 (const char*)NULL };
6147 #define SOLARIS_COMPLEX_CXX_TEST_CT 0
6148 #define aSolaris_Complex_CxxTests (tTestDesc*)NULL
6151 * Fix Command Arguments for Solaris_Complex_Cxx
6153 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
6154 "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
6155 #ifdef\t__cplusplus\\\n\
6158 "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
6159 #ifdef\t__cplusplus\\\n\
6164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6166 * Description of Solaris_Cxx_Linkage fix
6168 tSCC zSolaris_Cxx_LinkageName[] =
6169 "solaris_cxx_linkage";
6172 * File name selection pattern
6174 tSCC zSolaris_Cxx_LinkageList[] =
6175 "iso/stdlib_iso.h\0";
6177 * Machine/OS name selection pattern
6179 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
6181 (const char*)NULL };
6184 * content selection pattern - do fix if pattern found
6186 tSCC zSolaris_Cxx_LinkageSelect0[] =
6187 "(#if __cplusplus >= 199711L)\n\
6188 (extern \"C\\+\\+\" \\{\n\
6189 )(.*(bsearch|qsort).*)";
6191 #define SOLARIS_CXX_LINKAGE_TEST_CT 1
6192 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
6193 { TT_EGREP, zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
6196 * Fix Command Arguments for Solaris_Cxx_Linkage
6198 static const char* apzSolaris_Cxx_LinkagePatch[] = {
6204 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6206 * Description of Solaris_Getc_Strict_Stdc fix
6208 tSCC zSolaris_Getc_Strict_StdcName[] =
6209 "solaris_getc_strict_stdc";
6212 * File name selection pattern
6214 tSCC zSolaris_Getc_Strict_StdcList[] =
6215 "iso/stdio_iso.h\0";
6217 * Machine/OS name selection pattern
6219 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
6221 (const char*)NULL };
6224 * content selection pattern - do fix if pattern found
6226 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
6227 "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
6229 #define SOLARIS_GETC_STRICT_STDC_TEST_CT 1
6230 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
6231 { TT_EGREP, zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
6234 * Fix Command Arguments for Solaris_Getc_Strict_Stdc
6236 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
6238 "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
6241 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6243 * Description of Solaris_Longjmp_Noreturn fix
6245 tSCC zSolaris_Longjmp_NoreturnName[] =
6246 "solaris_longjmp_noreturn";
6249 * File name selection pattern
6251 tSCC zSolaris_Longjmp_NoreturnList[] =
6252 "iso/setjmp_iso.h\0";
6254 * Machine/OS name selection pattern
6256 tSCC* apzSolaris_Longjmp_NoreturnMachs[] = {
6258 (const char*)NULL };
6261 * content selection pattern - do fix if pattern found
6263 tSCC zSolaris_Longjmp_NoreturnSelect0[] =
6264 "(.*longjmp\\(jmp_buf.*[^)]+\\));";
6267 * content bypass pattern - skip fix if pattern found
6269 tSCC zSolaris_Longjmp_NoreturnBypass0[] =
6272 #define SOLARIS_LONGJMP_NORETURN_TEST_CT 2
6273 static tTestDesc aSolaris_Longjmp_NoreturnTests[] = {
6274 { TT_NEGREP, zSolaris_Longjmp_NoreturnBypass0, (regex_t*)NULL },
6275 { TT_EGREP, zSolaris_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
6278 * Fix Command Arguments for Solaris_Longjmp_Noreturn
6280 static const char* apzSolaris_Longjmp_NoreturnPatch[] = {
6282 "%1 __attribute__ ((__noreturn__));",
6285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6287 * Description of Solaris_Math_1 fix
6289 tSCC zSolaris_Math_1Name[] =
6293 * File name selection pattern
6295 tSCC zSolaris_Math_1List[] =
6298 * Machine/OS name selection pattern
6300 #define apzSolaris_Math_1Machs (const char**)NULL
6303 * content selection pattern - do fix if pattern found
6305 tSCC zSolaris_Math_1Select0[] =
6306 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6309 * content bypass pattern - skip fix if pattern found
6311 tSCC zSolaris_Math_1Bypass0[] =
6314 #define SOLARIS_MATH_1_TEST_CT 2
6315 static tTestDesc aSolaris_Math_1Tests[] = {
6316 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
6317 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
6320 * Fix Command Arguments for Solaris_Math_1
6322 static const char* apzSolaris_Math_1Patch[] = {
6324 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
6325 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
6328 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6330 * Description of Solaris_Math_2 fix
6332 tSCC zSolaris_Math_2Name[] =
6336 * File name selection pattern
6338 tSCC zSolaris_Math_2List[] =
6341 * Machine/OS name selection pattern
6343 #define apzSolaris_Math_2Machs (const char**)NULL
6346 * content selection pattern - do fix if pattern found
6348 tSCC zSolaris_Math_2Select0[] =
6349 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6352 * content bypass pattern - skip fix if pattern found
6354 tSCC zSolaris_Math_2Bypass0[] =
6357 #define SOLARIS_MATH_2_TEST_CT 2
6358 static tTestDesc aSolaris_Math_2Tests[] = {
6359 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
6360 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
6363 * Fix Command Arguments for Solaris_Math_2
6365 static const char* apzSolaris_Math_2Patch[] = {
6367 "#define\tINFINITY\t(__builtin_inff())",
6368 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
6371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6373 * Description of Solaris_Math_3 fix
6375 tSCC zSolaris_Math_3Name[] =
6379 * File name selection pattern
6381 tSCC zSolaris_Math_3List[] =
6384 * Machine/OS name selection pattern
6386 #define apzSolaris_Math_3Machs (const char**)NULL
6389 * content selection pattern - do fix if pattern found
6391 tSCC zSolaris_Math_3Select0[] =
6392 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6395 * content bypass pattern - skip fix if pattern found
6397 tSCC zSolaris_Math_3Bypass0[] =
6400 #define SOLARIS_MATH_3_TEST_CT 2
6401 static tTestDesc aSolaris_Math_3Tests[] = {
6402 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
6403 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
6406 * Fix Command Arguments for Solaris_Math_3
6408 static const char* apzSolaris_Math_3Patch[] = {
6410 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6411 "^#define[ \t]+NAN[ \t]+__builtin_nan",
6414 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6416 * Description of Solaris_Math_4 fix
6418 tSCC zSolaris_Math_4Name[] =
6422 * File name selection pattern
6424 tSCC zSolaris_Math_4List[] =
6427 * Machine/OS name selection pattern
6429 #define apzSolaris_Math_4Machs (const char**)NULL
6432 * content selection pattern - do fix if pattern found
6434 tSCC zSolaris_Math_4Select0[] =
6435 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6438 * content bypass pattern - skip fix if pattern found
6440 tSCC zSolaris_Math_4Bypass0[] =
6443 #define SOLARIS_MATH_4_TEST_CT 2
6444 static tTestDesc aSolaris_Math_4Tests[] = {
6445 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
6446 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
6449 * Fix Command Arguments for Solaris_Math_4
6451 static const char* apzSolaris_Math_4Patch[] = {
6453 "#define\tfpclassify(x) \\\n\
6454 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6455 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6458 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6460 * Description of Solaris_Math_8 fix
6462 tSCC zSolaris_Math_8Name[] =
6466 * File name selection pattern
6468 tSCC zSolaris_Math_8List[] =
6471 * Machine/OS name selection pattern
6473 #define apzSolaris_Math_8Machs (const char**)NULL
6476 * content selection pattern - do fix if pattern found
6478 tSCC zSolaris_Math_8Select0[] =
6479 "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
6482 * content bypass pattern - skip fix if pattern found
6484 tSCC zSolaris_Math_8Bypass0[] =
6487 #define SOLARIS_MATH_8_TEST_CT 2
6488 static tTestDesc aSolaris_Math_8Tests[] = {
6489 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
6490 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
6493 * Fix Command Arguments for Solaris_Math_8
6495 static const char* apzSolaris_Math_8Patch[] = {
6497 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6498 \t\t\t ? __builtin_signbitf(x) \\\n\
6499 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
6500 \t\t\t ? __builtin_signbitl(x) \\\n\
6501 \t\t\t : __builtin_signbit(x))",
6502 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6505 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6507 * Description of Solaris_Math_9 fix
6509 tSCC zSolaris_Math_9Name[] =
6513 * File name selection pattern
6515 tSCC zSolaris_Math_9List[] =
6518 * Machine/OS name selection pattern
6520 #define apzSolaris_Math_9Machs (const char**)NULL
6523 * content selection pattern - do fix if pattern found
6525 tSCC zSolaris_Math_9Select0[] =
6526 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6529 * content bypass pattern - skip fix if pattern found
6531 tSCC zSolaris_Math_9Bypass0[] =
6534 #define SOLARIS_MATH_9_TEST_CT 2
6535 static tTestDesc aSolaris_Math_9Tests[] = {
6536 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
6537 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
6540 * Fix Command Arguments for Solaris_Math_9
6542 static const char* apzSolaris_Math_9Patch[] = {
6544 "#define\t%1(x, y)%2__builtin_%1(x, y)",
6545 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6548 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6550 * Description of Solaris_Math_10 fix
6552 tSCC zSolaris_Math_10Name[] =
6556 * File name selection pattern
6558 tSCC zSolaris_Math_10List[] =
6561 * Machine/OS name selection pattern
6563 #define apzSolaris_Math_10Machs (const char**)NULL
6566 * content selection pattern - do fix if pattern found
6568 tSCC zSolaris_Math_10Select0[] =
6569 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6571 #define SOLARIS_MATH_10_TEST_CT 1
6572 static tTestDesc aSolaris_Math_10Tests[] = {
6573 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
6576 * Fix Command Arguments for Solaris_Math_10
6578 static const char* apzSolaris_Math_10Patch[] = {
6580 "#define\tisinf(x) __builtin_isinf(x)",
6581 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6582 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6583 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6584 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6589 * Description of Solaris_Mutex_Init_2 fix
6591 tSCC zSolaris_Mutex_Init_2Name[] =
6592 "solaris_mutex_init_2";
6595 * File name selection pattern
6597 tSCC zSolaris_Mutex_Init_2List[] =
6600 * Machine/OS name selection pattern
6602 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6603 "*-*-solaris2.[0-9]",
6604 "*-*-solaris2.[0-9][!0-9]*",
6605 (const char*)NULL };
6608 * content selection pattern - do fix if pattern found
6610 tSCC zSolaris_Mutex_Init_2Select0[] =
6611 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6613 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
6614 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6615 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6618 * Fix Command Arguments for Solaris_Mutex_Init_2
6620 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6622 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6627 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6628 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6633 * Description of Solaris_Pow_Int_Overload fix
6635 tSCC zSolaris_Pow_Int_OverloadName[] =
6636 "solaris_pow_int_overload";
6639 * File name selection pattern
6641 tSCC zSolaris_Pow_Int_OverloadList[] =
6644 * Machine/OS name selection pattern
6646 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
6648 (const char*)NULL };
6651 * content selection pattern - do fix if pattern found
6653 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
6654 "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
6657 #define SOLARIS_POW_INT_OVERLOAD_TEST_CT 1
6658 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
6659 { TT_EGREP, zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
6662 * Fix Command Arguments for Solaris_Pow_Int_Overload
6664 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
6666 "#ifndef __GXX_EXPERIMENTAL_CXX0X__\n\
6671 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6673 * Description of Solaris_Rwlock_Init_1 fix
6675 tSCC zSolaris_Rwlock_Init_1Name[] =
6676 "solaris_rwlock_init_1";
6679 * File name selection pattern
6681 tSCC zSolaris_Rwlock_Init_1List[] =
6684 * Machine/OS name selection pattern
6686 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6688 (const char*)NULL };
6691 * content selection pattern - do fix if pattern found
6693 tSCC zSolaris_Rwlock_Init_1Select0[] =
6694 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6696 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
6697 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6698 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6701 * Fix Command Arguments for Solaris_Rwlock_Init_1
6703 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6705 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6708 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6710 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6715 * Description of Solaris_Once_Init_1 fix
6717 tSCC zSolaris_Once_Init_1Name[] =
6718 "solaris_once_init_1";
6721 * File name selection pattern
6723 tSCC zSolaris_Once_Init_1List[] =
6726 * Machine/OS name selection pattern
6728 tSCC* apzSolaris_Once_Init_1Machs[] = {
6730 (const char*)NULL };
6733 * content selection pattern - do fix if pattern found
6735 tSCC zSolaris_Once_Init_1Select0[] =
6736 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6738 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6739 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6740 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6743 * Fix Command Arguments for Solaris_Once_Init_1
6745 static const char* apzSolaris_Once_Init_1Patch[] = {
6748 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6753 * Description of Solaris_Once_Init_2 fix
6755 tSCC zSolaris_Once_Init_2Name[] =
6756 "solaris_once_init_2";
6759 * File name selection pattern
6761 tSCC zSolaris_Once_Init_2List[] =
6764 * Machine/OS name selection pattern
6766 tSCC* apzSolaris_Once_Init_2Machs[] = {
6767 "*-*-solaris2.[0-9]",
6768 "*-*-solaris2.[0-9][!0-9]*",
6769 (const char*)NULL };
6772 * content selection pattern - do fix if pattern found
6774 tSCC zSolaris_Once_Init_2Select0[] =
6775 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6777 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
6778 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6779 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6782 * Fix Command Arguments for Solaris_Once_Init_2
6784 static const char* apzSolaris_Once_Init_2Patch[] = {
6786 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6789 %1{0}, {0}, {0}, {%3}%4\n\
6791 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6794 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6796 * Description of Solaris_Int_Const fix
6798 tSCC zSolaris_Int_ConstName[] =
6799 "solaris_int_const";
6802 * File name selection pattern
6804 tSCC zSolaris_Int_ConstList[] =
6805 "sys/int_const.h\0";
6807 * Machine/OS name selection pattern
6809 tSCC* apzSolaris_Int_ConstMachs[] = {
6811 (const char*)NULL };
6814 * content selection pattern - do fix if pattern found
6816 tSCC zSolaris_Int_ConstSelect0[] =
6817 "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6819 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
6821 #define SOLARIS_INT_CONST_TEST_CT 1
6822 static tTestDesc aSolaris_Int_ConstTests[] = {
6823 { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6826 * Fix Command Arguments for Solaris_Int_Const
6828 static const char* apzSolaris_Int_ConstPatch[] = {
6830 "#define\tUINT8_C(c)\t(c)\n\
6832 #define\tUINT16_C(c)\t(c)",
6835 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6837 * Description of Solaris_Int_Limits_1 fix
6839 tSCC zSolaris_Int_Limits_1Name[] =
6840 "solaris_int_limits_1";
6843 * File name selection pattern
6845 tSCC zSolaris_Int_Limits_1List[] =
6846 "sys/int_limits.h\0";
6848 * Machine/OS name selection pattern
6850 tSCC* apzSolaris_Int_Limits_1Machs[] = {
6852 (const char*)NULL };
6855 * content selection pattern - do fix if pattern found
6857 tSCC zSolaris_Int_Limits_1Select0[] =
6858 "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6859 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
6861 #define SOLARIS_INT_LIMITS_1_TEST_CT 1
6862 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6863 { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6866 * Fix Command Arguments for Solaris_Int_Limits_1
6868 static const char* apzSolaris_Int_Limits_1Patch[] = {
6870 "#define\tUINT8_MAX\t(255)\n\
6871 #define\tUINT16_MAX\t(65535)",
6874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6876 * Description of Solaris_Int_Limits_2 fix
6878 tSCC zSolaris_Int_Limits_2Name[] =
6879 "solaris_int_limits_2";
6882 * File name selection pattern
6884 tSCC zSolaris_Int_Limits_2List[] =
6885 "sys/int_limits.h\0";
6887 * Machine/OS name selection pattern
6889 tSCC* apzSolaris_Int_Limits_2Machs[] = {
6891 (const char*)NULL };
6894 * content selection pattern - do fix if pattern found
6896 tSCC zSolaris_Int_Limits_2Select0[] =
6897 "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
6899 #define SOLARIS_INT_LIMITS_2_TEST_CT 1
6900 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6901 { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6904 * Fix Command Arguments for Solaris_Int_Limits_2
6906 static const char* apzSolaris_Int_Limits_2Patch[] = {
6908 "#define\t%1_FAST16_%2 %132_%2",
6911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6913 * Description of Solaris_Int_Limits_3 fix
6915 tSCC zSolaris_Int_Limits_3Name[] =
6916 "solaris_int_limits_3";
6919 * File name selection pattern
6921 tSCC zSolaris_Int_Limits_3List[] =
6922 "sys/int_limits.h\0";
6924 * Machine/OS name selection pattern
6926 tSCC* apzSolaris_Int_Limits_3Machs[] = {
6928 (const char*)NULL };
6931 * content selection pattern - do fix if pattern found
6933 tSCC zSolaris_Int_Limits_3Select0[] =
6934 "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
6936 #define SOLARIS_INT_LIMITS_3_TEST_CT 1
6937 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
6938 { TT_EGREP, zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
6941 * Fix Command Arguments for Solaris_Int_Limits_3
6943 static const char* apzSolaris_Int_Limits_3Patch[] = {
6945 "#define\tSIZE_MAX\t4294967295U",
6948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6950 * Description of Solaris_Int_Types fix
6952 tSCC zSolaris_Int_TypesName[] =
6953 "solaris_int_types";
6956 * File name selection pattern
6958 tSCC zSolaris_Int_TypesList[] =
6959 "sys/int_types.h\0";
6961 * Machine/OS name selection pattern
6963 #define apzSolaris_Int_TypesMachs (const char**)NULL
6966 * content selection pattern - do fix if pattern found
6968 tSCC zSolaris_Int_TypesSelect0[] =
6969 "__STDC__ - 0 == 0";
6972 * content bypass pattern - skip fix if pattern found
6974 tSCC zSolaris_Int_TypesBypass0[] =
6977 #define SOLARIS_INT_TYPES_TEST_CT 2
6978 static tTestDesc aSolaris_Int_TypesTests[] = {
6979 { TT_NEGREP, zSolaris_Int_TypesBypass0, (regex_t*)NULL },
6980 { TT_EGREP, zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
6983 * Fix Command Arguments for Solaris_Int_Types
6985 static const char* apzSolaris_Int_TypesPatch[] = {
6987 "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
6990 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6992 * Description of Solaris_Posix_Spawn_Restrict fix
6994 tSCC zSolaris_Posix_Spawn_RestrictName[] =
6995 "solaris_posix_spawn_restrict";
6998 * File name selection pattern
7000 tSCC zSolaris_Posix_Spawn_RestrictList[] =
7003 * Machine/OS name selection pattern
7005 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
7007 (const char*)NULL };
7010 * content selection pattern - do fix if pattern found
7012 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
7013 "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
7015 #define SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT 1
7016 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
7017 { TT_EGREP, zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
7020 * Fix Command Arguments for Solaris_Posix_Spawn_Restrict
7022 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
7024 "%1*_RESTRICT_KYWD %2%3",
7027 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7029 * Description of Solaris_Std___Filbuf fix
7031 tSCC zSolaris_Std___FilbufName[] =
7032 "solaris_std___filbuf";
7035 * File name selection pattern
7037 tSCC zSolaris_Std___FilbufList[] =
7040 * Machine/OS name selection pattern
7042 tSCC* apzSolaris_Std___FilbufMachs[] = {
7044 (const char*)NULL };
7047 * content selection pattern - do fix if pattern found
7049 tSCC zSolaris_Std___FilbufSelect0[] =
7050 "(using std::perror;\n\
7054 * content bypass pattern - skip fix if pattern found
7056 tSCC zSolaris_Std___FilbufBypass0[] =
7057 "using std::__filbuf";
7059 #define SOLARIS_STD___FILBUF_TEST_CT 2
7060 static tTestDesc aSolaris_Std___FilbufTests[] = {
7061 { TT_NEGREP, zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
7062 { TT_EGREP, zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
7065 * Fix Command Arguments for Solaris_Std___Filbuf
7067 static const char* apzSolaris_Std___FilbufPatch[] = {
7070 using std::__filbuf;\n\
7071 using std::__flsbuf;\n\
7076 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7078 * Description of Solaris_Stdio_Tag fix
7080 tSCC zSolaris_Stdio_TagName[] =
7081 "solaris_stdio_tag";
7084 * File name selection pattern
7086 tSCC zSolaris_Stdio_TagList[] =
7089 * Machine/OS name selection pattern
7091 #define apzSolaris_Stdio_TagMachs (const char**)NULL
7094 * content selection pattern - do fix if pattern found
7096 tSCC zSolaris_Stdio_TagSelect0[] =
7097 "__cplusplus < 54321L";
7100 * content bypass pattern - skip fix if pattern found
7102 tSCC zSolaris_Stdio_TagBypass0[] =
7105 #define SOLARIS_STDIO_TAG_TEST_CT 2
7106 static tTestDesc aSolaris_Stdio_TagTests[] = {
7107 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
7108 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
7111 * Fix Command Arguments for Solaris_Stdio_Tag
7113 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
7114 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
7117 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7119 * Description of Solaris_Sys_Va_List fix
7121 tSCC zSolaris_Sys_Va_ListName[] =
7122 "solaris_sys_va_list";
7125 * File name selection pattern
7127 tSCC zSolaris_Sys_Va_ListList[] =
7130 * Machine/OS name selection pattern
7132 tSCC* apzSolaris_Sys_Va_ListMachs[] = {
7134 (const char*)NULL };
7137 * content selection pattern - do fix if pattern found
7139 tSCC zSolaris_Sys_Va_ListSelect0[] =
7141 typedef void \\*__va_list;\n\
7143 typedef char \\*__va_list;\n\
7146 #define SOLARIS_SYS_VA_LIST_TEST_CT 1
7147 static tTestDesc aSolaris_Sys_Va_ListTests[] = {
7148 { TT_EGREP, zSolaris_Sys_Va_ListSelect0, (regex_t*)NULL }, };
7151 * Fix Command Arguments for Solaris_Sys_Va_List
7153 static const char* apzSolaris_Sys_Va_ListPatch[] = {
7156 typedef __builtin_va_list __va_list;\n\
7162 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7164 * Description of Statsswtch fix
7166 tSCC zStatsswtchName[] =
7170 * File name selection pattern
7172 tSCC zStatsswtchList[] =
7175 * Machine/OS name selection pattern
7177 #define apzStatsswtchMachs (const char**)NULL
7180 * content selection pattern - do fix if pattern found
7182 tSCC zStatsswtchSelect0[] =
7185 #define STATSSWTCH_TEST_CT 1
7186 static tTestDesc aStatsswtchTests[] = {
7187 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
7190 * Fix Command Arguments for Statsswtch
7192 static const char* apzStatsswtchPatch[] = {
7197 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7199 * Description of Stdio_Stdarg_H fix
7201 tSCC zStdio_Stdarg_HName[] =
7205 * File name selection pattern
7207 tSCC zStdio_Stdarg_HList[] =
7210 * Machine/OS name selection pattern
7212 tSCC* apzStdio_Stdarg_HMachs[] = {
7213 "*-*-solaris2.1[0-9]*",
7214 (const char*)NULL };
7217 * content bypass pattern - skip fix if pattern found
7219 tSCC zStdio_Stdarg_HBypass0[] =
7220 "include.*(stdarg.h|machine/ansi.h)";
7222 #define STDIO_STDARG_H_TEST_CT 1
7223 static tTestDesc aStdio_Stdarg_HTests[] = {
7224 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
7227 * Fix Command Arguments for Stdio_Stdarg_H
7229 static const char* apzStdio_Stdarg_HPatch[] = {
7231 "#define __need___va_list\n\
7232 #include <stdarg.h>\n",
7235 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7237 * Description of Stdio_Va_List fix
7239 tSCC zStdio_Va_ListName[] =
7243 * File name selection pattern
7245 tSCC zStdio_Va_ListList[] =
7248 * Machine/OS name selection pattern
7250 tSCC* apzStdio_Va_ListMachs[] = {
7251 "*-*-solaris2.1[0-9]*",
7252 (const char*)NULL };
7255 * content bypass pattern - skip fix if pattern found
7257 tSCC zStdio_Va_ListBypass0[] =
7258 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7260 #define STDIO_VA_LIST_TEST_CT 1
7261 static tTestDesc aStdio_Va_ListTests[] = {
7262 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
7265 * Fix Command Arguments for Stdio_Va_List
7267 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
7268 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7269 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7270 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7271 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7272 s@ va_list@ __not_va_list__@\n\
7273 s@\\*va_list@*__not_va_list__@\n\
7274 s@ __va_list)@ __gnuc_va_list)@\n\
7275 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7276 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7277 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7278 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7279 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7280 s@VA_LIST@DUMMY_VA_LIST@\n\
7281 s@_Va_LIST@_VA_LIST@",
7284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7286 * Description of Stdio_Va_List_Clients fix
7288 tSCC zStdio_Va_List_ClientsName[] =
7289 "stdio_va_list_clients";
7292 * File name selection pattern
7294 tSCC zStdio_Va_List_ClientsList[] =
7295 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
7297 * Machine/OS name selection pattern
7299 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
7302 * content bypass pattern - skip fix if pattern found
7304 tSCC zStdio_Va_List_ClientsBypass0[] =
7305 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7306 tSCC zStdio_Va_List_ClientsBypass1[] =
7307 "include <stdarg\\.h>|#ifdef va_start";
7309 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
7310 static tTestDesc aStdio_Va_List_ClientsTests[] = {
7311 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
7312 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
7315 * Fix Command Arguments for Stdio_Va_List_Clients
7317 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
7318 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7319 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7320 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7321 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7322 s@ va_list@ __not_va_list__@\n\
7323 s@\\*va_list@*__not_va_list__@\n\
7324 s@ __va_list)@ __gnuc_va_list)@\n\
7325 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7326 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7327 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7328 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7329 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7330 s@VA_LIST@DUMMY_VA_LIST@\n\
7331 s@_Va_LIST@_VA_LIST@",
7334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7336 * Description of Strict_Ansi_Not fix
7338 tSCC zStrict_Ansi_NotName[] =
7342 * File name selection pattern
7344 #define zStrict_Ansi_NotList (char*)NULL
7346 * Machine/OS name selection pattern
7348 #define apzStrict_Ansi_NotMachs (const char**)NULL
7351 * content selection pattern - do fix if pattern found
7353 tSCC zStrict_Ansi_NotSelect0[] =
7354 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
7357 * content bypass pattern - skip fix if pattern found
7359 tSCC zStrict_Ansi_NotBypass0[] =
7360 "GNU and MIPS C compilers define __STDC__ differently";
7361 tSCC zStrict_Ansi_NotBypass1[] =
7362 "__SCO_VERSION__.*__STDC__ != 1";
7365 * perform the C function call test
7367 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
7369 #define STRICT_ANSI_NOT_TEST_CT 4
7370 static tTestDesc aStrict_Ansi_NotTests[] = {
7371 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
7372 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
7373 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7374 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
7377 * Fix Command Arguments for Strict_Ansi_Not
7379 static const char* apzStrict_Ansi_NotPatch[] = {
7381 "%1 !defined(__STRICT_ANSI__)",
7384 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7386 * Description of Strict_Ansi_Not_Ctd fix
7388 tSCC zStrict_Ansi_Not_CtdName[] =
7389 "strict_ansi_not_ctd";
7392 * File name selection pattern
7394 tSCC zStrict_Ansi_Not_CtdList[] =
7395 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
7397 * Machine/OS name selection pattern
7399 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
7402 * content selection pattern - do fix if pattern found
7404 tSCC zStrict_Ansi_Not_CtdSelect0[] =
7405 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7408 * perform the C function call test
7410 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7412 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
7413 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7414 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
7415 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7418 * Fix Command Arguments for Strict_Ansi_Not_Ctd
7420 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7422 "%1 !defined(__STRICT_ANSI__)",
7425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7427 * Description of Strict_Ansi_Only fix
7429 tSCC zStrict_Ansi_OnlyName[] =
7433 * File name selection pattern
7435 #define zStrict_Ansi_OnlyList (char*)NULL
7437 * Machine/OS name selection pattern
7439 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7442 * content selection pattern - do fix if pattern found
7444 tSCC zStrict_Ansi_OnlySelect0[] =
7445 "^([ \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)";
7448 * perform the C function call test
7450 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7452 #define STRICT_ANSI_ONLY_TEST_CT 2
7453 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7454 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
7455 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7458 * Fix Command Arguments for Strict_Ansi_Only
7460 static const char* apzStrict_Ansi_OnlyPatch[] = {
7462 "%1 defined(__STRICT_ANSI__)",
7465 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7467 * Description of Struct_File fix
7469 tSCC zStruct_FileName[] =
7473 * File name selection pattern
7475 tSCC zStruct_FileList[] =
7478 * Machine/OS name selection pattern
7480 #define apzStruct_FileMachs (const char**)NULL
7483 * content selection pattern - do fix if pattern found
7485 tSCC zStruct_FileSelect0[] =
7486 "^.*xdrstdio_create.*struct __file_s";
7488 #define STRUCT_FILE_TEST_CT 1
7489 static tTestDesc aStruct_FileTests[] = {
7490 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
7493 * Fix Command Arguments for Struct_File
7495 static const char* apzStruct_FilePatch[] = {
7497 "struct __file_s;\n\
7501 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7503 * Description of Struct_Sockaddr fix
7505 tSCC zStruct_SockaddrName[] =
7509 * File name selection pattern
7511 tSCC zStruct_SockaddrList[] =
7514 * Machine/OS name selection pattern
7516 #define apzStruct_SockaddrMachs (const char**)NULL
7519 * content selection pattern - do fix if pattern found
7521 tSCC zStruct_SockaddrSelect0[] =
7522 "^.*authdes_create.*struct sockaddr[^_]";
7525 * content bypass pattern - skip fix if pattern found
7527 tSCC zStruct_SockaddrBypass0[] =
7529 tSCC zStruct_SockaddrBypass1[] =
7530 "struct sockaddr;\n";
7532 #define STRUCT_SOCKADDR_TEST_CT 3
7533 static tTestDesc aStruct_SockaddrTests[] = {
7534 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
7535 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
7536 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7539 * Fix Command Arguments for Struct_Sockaddr
7541 static const char* apzStruct_SockaddrPatch[] = {
7543 "struct sockaddr;\n\
7547 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7549 * Description of Sun_Auth_Proto fix
7551 tSCC zSun_Auth_ProtoName[] =
7555 * File name selection pattern
7557 tSCC zSun_Auth_ProtoList[] =
7558 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7560 * Machine/OS name selection pattern
7562 #define apzSun_Auth_ProtoMachs (const char**)NULL
7565 * content selection pattern - do fix if pattern found
7567 tSCC zSun_Auth_ProtoSelect0[] =
7568 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7571 * content bypass pattern - skip fix if pattern found
7573 tSCC zSun_Auth_ProtoBypass0[] =
7576 #define SUN_AUTH_PROTO_TEST_CT 2
7577 static tTestDesc aSun_Auth_ProtoTests[] = {
7578 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7579 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7582 * Fix Command Arguments for Sun_Auth_Proto
7584 static const char* apzSun_Auth_ProtoPatch[] = {
7586 "#ifdef __cplusplus\n\
7591 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7596 * Description of Sun_Bogus_Ifdef fix
7598 tSCC zSun_Bogus_IfdefName[] =
7602 * File name selection pattern
7604 tSCC zSun_Bogus_IfdefList[] =
7605 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7607 * Machine/OS name selection pattern
7609 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7612 * content selection pattern - do fix if pattern found
7614 tSCC zSun_Bogus_IfdefSelect0[] =
7615 "#ifdef(.*\\|\\|.*)";
7617 #define SUN_BOGUS_IFDEF_TEST_CT 1
7618 static tTestDesc aSun_Bogus_IfdefTests[] = {
7619 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7622 * Fix Command Arguments for Sun_Bogus_Ifdef
7624 static const char* apzSun_Bogus_IfdefPatch[] = {
7629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7631 * Description of Sun_Catmacro fix
7633 tSCC zSun_CatmacroName[] =
7637 * File name selection pattern
7639 tSCC zSun_CatmacroList[] =
7640 "pixrect/memvar.h\0";
7642 * Machine/OS name selection pattern
7644 #define apzSun_CatmacroMachs (const char**)NULL
7647 * content selection pattern - do fix if pattern found
7649 tSCC zSun_CatmacroSelect0[] =
7650 "^#define[ \t]+CAT\\(a,b\\).*";
7652 #define SUN_CATMACRO_TEST_CT 1
7653 static tTestDesc aSun_CatmacroTests[] = {
7654 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
7657 * Fix Command Arguments for Sun_Catmacro
7659 static const char* apzSun_CatmacroPatch[] = {
7662 # define CAT(a,b) a##b\n\
7668 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7670 * Description of Sun_Malloc fix
7672 tSCC zSun_MallocName[] =
7676 * File name selection pattern
7678 tSCC zSun_MallocList[] =
7681 * Machine/OS name selection pattern
7683 #define apzSun_MallocMachs (const char**)NULL
7686 * content bypass pattern - skip fix if pattern found
7688 tSCC zSun_MallocBypass0[] =
7689 "_CLASSIC_ANSI_TYPES";
7691 #define SUN_MALLOC_TEST_CT 1
7692 static tTestDesc aSun_MallocTests[] = {
7693 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
7696 * Fix Command Arguments for Sun_Malloc
7698 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7699 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7700 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7701 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7702 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7703 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7706 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7708 * Description of Sun_Rusers_Semi fix
7710 tSCC zSun_Rusers_SemiName[] =
7714 * File name selection pattern
7716 tSCC zSun_Rusers_SemiList[] =
7717 "rpcsvc/rusers.h\0";
7719 * Machine/OS name selection pattern
7721 #define apzSun_Rusers_SemiMachs (const char**)NULL
7724 * content selection pattern - do fix if pattern found
7726 tSCC zSun_Rusers_SemiSelect0[] =
7729 #define SUN_RUSERS_SEMI_TEST_CT 1
7730 static tTestDesc aSun_Rusers_SemiTests[] = {
7731 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7734 * Fix Command Arguments for Sun_Rusers_Semi
7736 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7737 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7742 * Description of Sun_Signal fix
7744 tSCC zSun_SignalName[] =
7748 * File name selection pattern
7750 tSCC zSun_SignalList[] =
7751 "sys/signal.h\0signal.h\0";
7753 * Machine/OS name selection pattern
7755 #define apzSun_SignalMachs (const char**)NULL
7758 * content selection pattern - do fix if pattern found
7760 tSCC zSun_SignalSelect0[] =
7761 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7763 #define SUN_SIGNAL_TEST_CT 1
7764 static tTestDesc aSun_SignalTests[] = {
7765 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
7768 * Fix Command Arguments for Sun_Signal
7770 static const char* apzSun_SignalPatch[] = {
7772 "#ifdef __cplusplus\n\
7773 void\t(*signal(...))(...);\n\
7779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7781 * Description of Sunos_Strlen fix
7783 tSCC zSunos_StrlenName[] =
7787 * File name selection pattern
7789 tSCC zSunos_StrlenList[] =
7792 * Machine/OS name selection pattern
7794 #define apzSunos_StrlenMachs (const char**)NULL
7797 * content selection pattern - do fix if pattern found
7799 tSCC zSunos_StrlenSelect0[] =
7800 "int[ \t]*strlen\\(\\);(.*)";
7802 #define SUNOS_STRLEN_TEST_CT 1
7803 static tTestDesc aSunos_StrlenTests[] = {
7804 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
7807 * Fix Command Arguments for Sunos_Strlen
7809 static const char* apzSunos_StrlenPatch[] = {
7811 "__SIZE_TYPE__ strlen();%1",
7814 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7816 * Description of Svr4_Disable_Opt fix
7818 tSCC zSvr4_Disable_OptName[] =
7822 * File name selection pattern
7824 tSCC zSvr4_Disable_OptList[] =
7827 * Machine/OS name selection pattern
7829 #define apzSvr4_Disable_OptMachs (const char**)NULL
7832 * content selection pattern - do fix if pattern found
7834 tSCC zSvr4_Disable_OptSelect0[] =
7835 "#define.*__std_hdr_";
7837 #define SVR4_DISABLE_OPT_TEST_CT 1
7838 static tTestDesc aSvr4_Disable_OptTests[] = {
7839 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7842 * Fix Command Arguments for Svr4_Disable_Opt
7844 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7845 "-e", "/#define.*__std_hdr_/d",
7848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7850 * Description of Svr4_Getcwd fix
7852 tSCC zSvr4_GetcwdName[] =
7856 * File name selection pattern
7858 tSCC zSvr4_GetcwdList[] =
7859 "stdlib.h\0unistd.h\0prototypes.h\0";
7861 * Machine/OS name selection pattern
7863 #define apzSvr4_GetcwdMachs (const char**)NULL
7866 * content selection pattern - do fix if pattern found
7868 tSCC zSvr4_GetcwdSelect0[] =
7869 "getcwd\\(char \\*, int\\)";
7871 #define SVR4_GETCWD_TEST_CT 1
7872 static tTestDesc aSvr4_GetcwdTests[] = {
7873 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7876 * Fix Command Arguments for Svr4_Getcwd
7878 static const char* apzSvr4_GetcwdPatch[] = {
7880 "getcwd(char *, size_t)",
7883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7885 * Description of Svr4_Profil fix
7887 tSCC zSvr4_ProfilName[] =
7891 * File name selection pattern
7893 tSCC zSvr4_ProfilList[] =
7894 "stdlib.h\0unistd.h\0";
7896 * Machine/OS name selection pattern
7898 #define apzSvr4_ProfilMachs (const char**)NULL
7901 * content selection pattern - do fix if pattern found
7903 tSCC zSvr4_ProfilSelect0[] =
7904 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7906 #define SVR4_PROFIL_TEST_CT 1
7907 static tTestDesc aSvr4_ProfilTests[] = {
7908 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7911 * Fix Command Arguments for Svr4_Profil
7913 static const char* apzSvr4_ProfilPatch[] = {
7915 "profil(unsigned short *, size_t, int, unsigned int)",
7918 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7920 * Description of Svr4_Sighandler_Type fix
7922 tSCC zSvr4_Sighandler_TypeName[] =
7923 "svr4_sighandler_type";
7926 * File name selection pattern
7928 tSCC zSvr4_Sighandler_TypeList[] =
7931 * Machine/OS name selection pattern
7933 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7936 * content selection pattern - do fix if pattern found
7938 tSCC zSvr4_Sighandler_TypeSelect0[] =
7939 "void *\\(\\*\\)\\(\\)";
7941 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7942 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7943 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7946 * Fix Command Arguments for Svr4_Sighandler_Type
7948 static const char* apzSvr4_Sighandler_TypePatch[] = {
7953 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7955 * Description of Svr4_Undeclared_Getrnge fix
7957 tSCC zSvr4_Undeclared_GetrngeName[] =
7958 "svr4_undeclared_getrnge";
7961 * File name selection pattern
7963 tSCC zSvr4_Undeclared_GetrngeList[] =
7966 * Machine/OS name selection pattern
7968 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7971 * content selection pattern - do fix if pattern found
7973 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7977 * content bypass pattern - skip fix if pattern found
7979 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7980 "static void getrnge";
7982 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
7983 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7984 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7985 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7988 * Fix Command Arguments for Svr4_Undeclared_Getrnge
7990 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7993 static int getrnge ();",
7994 "^static int[ \t]+size;",
7997 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7999 * Description of Sysv68_String fix
8001 tSCC zSysv68_StringName[] =
8005 * File name selection pattern
8007 tSCC zSysv68_StringList[] =
8008 "testing.h\0string.h\0";
8010 * Machine/OS name selection pattern
8012 #define apzSysv68_StringMachs (const char**)NULL
8015 * content bypass pattern - skip fix if pattern found
8017 tSCC zSysv68_StringBypass0[] =
8018 "_CLASSIC_ANSI_TYPES";
8020 #define SYSV68_STRING_TEST_CT 1
8021 static tTestDesc aSysv68_StringTests[] = {
8022 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
8025 * Fix Command Arguments for Sysv68_String
8027 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
8028 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
8029 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
8030 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
8031 "-e", "/^extern char$/N",
8032 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
8033 "-e", "/^extern int$/N",
8034 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
8035 "-e", "/^\tstrncmp(),$/N",
8036 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
8037 extern unsigned int\\\n\
8041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8043 * Description of Sysz_Stdlib_For_Sun fix
8045 tSCC zSysz_Stdlib_For_SunName[] =
8046 "sysz_stdlib_for_sun";
8049 * File name selection pattern
8051 tSCC zSysz_Stdlib_For_SunList[] =
8054 * Machine/OS name selection pattern
8056 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
8059 * content selection pattern - do fix if pattern found
8061 tSCC zSysz_Stdlib_For_SunSelect0[] =
8062 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
8065 * content bypass pattern - skip fix if pattern found
8067 tSCC zSysz_Stdlib_For_SunBypass0[] =
8068 "_CLASSIC_ANSI_TYPES";
8070 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
8071 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
8072 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
8073 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
8076 * Fix Command Arguments for Sysz_Stdlib_For_Sun
8078 static const char* apzSysz_Stdlib_For_SunPatch[] = {
8083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8085 * Description of Thread_Keyword fix
8087 tSCC zThread_KeywordName[] =
8091 * File name selection pattern
8093 tSCC zThread_KeywordList[] =
8094 "pthread.h\0bits/sigthread.h\0";
8096 * Machine/OS name selection pattern
8098 #define apzThread_KeywordMachs (const char**)NULL
8101 * content selection pattern - do fix if pattern found
8103 tSCC zThread_KeywordSelect0[] =
8104 "([* ])__thread([,)])";
8106 #define THREAD_KEYWORD_TEST_CT 1
8107 static tTestDesc aThread_KeywordTests[] = {
8108 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
8111 * Fix Command Arguments for Thread_Keyword
8113 static const char* apzThread_KeywordPatch[] = {
8118 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8120 * Description of Tinfo_Cplusplus fix
8122 tSCC zTinfo_CplusplusName[] =
8126 * File name selection pattern
8128 tSCC zTinfo_CplusplusList[] =
8131 * Machine/OS name selection pattern
8133 #define apzTinfo_CplusplusMachs (const char**)NULL
8136 * content selection pattern - do fix if pattern found
8138 tSCC zTinfo_CplusplusSelect0[] =
8141 #define TINFO_CPLUSPLUS_TEST_CT 1
8142 static tTestDesc aTinfo_CplusplusTests[] = {
8143 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
8146 * Fix Command Arguments for Tinfo_Cplusplus
8148 static const char* apzTinfo_CplusplusPatch[] = {
8153 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8155 * Description of Ultrix_Const fix
8157 tSCC zUltrix_ConstName[] =
8161 * File name selection pattern
8163 tSCC zUltrix_ConstList[] =
8166 * Machine/OS name selection pattern
8168 #define apzUltrix_ConstMachs (const char**)NULL
8171 * content selection pattern - do fix if pattern found
8173 tSCC zUltrix_ConstSelect0[] =
8174 "perror\\( char \\*";
8176 #define ULTRIX_CONST_TEST_CT 1
8177 static tTestDesc aUltrix_ConstTests[] = {
8178 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
8181 * Fix Command Arguments for Ultrix_Const
8183 static const char* apzUltrix_ConstPatch[] = {
8186 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
8189 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8191 * Description of Ultrix_Const2 fix
8193 tSCC zUltrix_Const2Name[] =
8197 * File name selection pattern
8199 tSCC zUltrix_Const2List[] =
8202 * Machine/OS name selection pattern
8204 #define apzUltrix_Const2Machs (const char**)NULL
8207 * content selection pattern - do fix if pattern found
8209 tSCC zUltrix_Const2Select0[] =
8210 "\\*fopen\\( char \\*";
8212 #define ULTRIX_CONST2_TEST_CT 1
8213 static tTestDesc aUltrix_Const2Tests[] = {
8214 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
8217 * Fix Command Arguments for Ultrix_Const2
8219 static const char* apzUltrix_Const2Patch[] = {
8221 "%1( const char *%3, const char *",
8222 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
8225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8227 * Description of Va_I960_Macro fix
8229 tSCC zVa_I960_MacroName[] =
8233 * File name selection pattern
8235 tSCC zVa_I960_MacroList[] =
8236 "arch/i960/archI960.h\0";
8238 * Machine/OS name selection pattern
8240 #define apzVa_I960_MacroMachs (const char**)NULL
8243 * content selection pattern - do fix if pattern found
8245 tSCC zVa_I960_MacroSelect0[] =
8246 "__(vsiz|vali|vpad|alignof__)";
8248 #define VA_I960_MACRO_TEST_CT 1
8249 static tTestDesc aVa_I960_MacroTests[] = {
8250 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8253 * Fix Command Arguments for Va_I960_Macro
8255 static const char* apzVa_I960_MacroPatch[] = {
8260 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8262 * Description of Vms_Define_Can_Use_Extern_Prefix fix
8264 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
8265 "vms_define_can_use_extern_prefix";
8268 * File name selection pattern
8270 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
8271 "rtldef/decc$types.h\0";
8273 * Machine/OS name selection pattern
8275 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
8277 (const char*)NULL };
8280 * content selection pattern - do fix if pattern found
8282 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
8284 #[ \t]*if defined\\(__DECCXX\\)\n\
8285 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
8287 #define VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT 1
8288 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
8289 { TT_EGREP, zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
8292 * Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
8294 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
8296 "%0# elif defined (__GNUC__)\n\
8297 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
8300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8302 * Description of Vms_Use_Pragma_Extern_Model fix
8304 tSCC zVms_Use_Pragma_Extern_ModelName[] =
8305 "vms_use_pragma_extern_model";
8308 * File name selection pattern
8310 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
8312 * Machine/OS name selection pattern
8314 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
8316 (const char*)NULL };
8319 * content selection pattern - do fix if pattern found
8321 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
8322 "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
8323 # pragma extern_model __save\n";
8325 #define VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT 1
8326 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
8327 { TT_EGREP, zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
8330 * Fix Command Arguments for Vms_Use_Pragma_Extern_Model
8332 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
8334 "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
8335 # pragma extern_model __save\n",
8338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8340 * Description of Vms_Disable_Decc_String_Builtins fix
8342 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
8343 "vms_disable_decc_string_builtins";
8346 * File name selection pattern
8348 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
8349 "rtldef/string.h\0";
8351 * Machine/OS name selection pattern
8353 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
8355 (const char*)NULL };
8358 * content selection pattern - do fix if pattern found
8360 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
8361 "#if !defined\\(__VAX\\)\n";
8363 #define VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT 1
8364 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
8365 { TT_EGREP, zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
8368 * Fix Command Arguments for Vms_Disable_Decc_String_Builtins
8370 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
8372 "#if !defined(__VAX) && !defined(__GNUC__)\n",
8375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8377 * Description of Vms_Use_Quoted_Include fix
8379 tSCC zVms_Use_Quoted_IncludeName[] =
8380 "vms_use_quoted_include";
8383 * File name selection pattern
8385 tSCC zVms_Use_Quoted_IncludeList[] =
8386 "rtldef/wait.h\0starlet_c/pthread.h\0";
8388 * Machine/OS name selection pattern
8390 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
8392 (const char*)NULL };
8395 * content selection pattern - do fix if pattern found
8397 tSCC zVms_Use_Quoted_IncludeSelect0[] =
8398 "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
8400 #define VMS_USE_QUOTED_INCLUDE_TEST_CT 1
8401 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
8402 { TT_EGREP, zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
8405 * Fix Command Arguments for Vms_Use_Quoted_Include
8407 static const char* apzVms_Use_Quoted_IncludePatch[] = {
8412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8414 * Description of Vms_Add_Missing_Braces fix
8416 tSCC zVms_Add_Missing_BracesName[] =
8417 "vms_add_missing_braces";
8420 * File name selection pattern
8422 tSCC zVms_Add_Missing_BracesList[] =
8423 "rtldef/signal.h\0";
8425 * Machine/OS name selection pattern
8427 tSCC* apzVms_Add_Missing_BracesMachs[] = {
8429 (const char*)NULL };
8432 * content selection pattern - do fix if pattern found
8434 tSCC zVms_Add_Missing_BracesSelect0[] =
8435 "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
8437 #define VMS_ADD_MISSING_BRACES_TEST_CT 1
8438 static tTestDesc aVms_Add_Missing_BracesTests[] = {
8439 { TT_EGREP, zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
8442 * Fix Command Arguments for Vms_Add_Missing_Braces
8444 static const char* apzVms_Add_Missing_BracesPatch[] = {
8449 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8451 * Description of Vms_Do_Not_Redeclare_Hostalias fix
8453 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
8454 "vms_do_not_redeclare_hostalias";
8457 * File name selection pattern
8459 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
8460 "rtldef/resolv.h\0";
8462 * Machine/OS name selection pattern
8464 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
8466 (const char*)NULL };
8469 * content selection pattern - do fix if pattern found
8471 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
8472 "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
8473 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
8475 #define VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT 1
8476 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
8477 { TT_EGREP, zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
8480 * Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
8482 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
8488 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8490 * Description of Vms_Decc_Builtin fix
8492 tSCC zVms_Decc_BuiltinName[] =
8496 * File name selection pattern
8498 tSCC zVms_Decc_BuiltinList[] =
8499 "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
8501 * Machine/OS name selection pattern
8503 tSCC* apzVms_Decc_BuiltinMachs[] = {
8505 (const char*)NULL };
8508 * content selection pattern - do fix if pattern found
8510 tSCC zVms_Decc_BuiltinSelect0[] =
8511 "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
8513 #define VMS_DECC_BUILTIN_TEST_CT 1
8514 static tTestDesc aVms_Decc_BuiltinTests[] = {
8515 { TT_EGREP, zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
8518 * Fix Command Arguments for Vms_Decc_Builtin
8520 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
8521 "-e", "s@__MEMSET@memset@",
8522 "-e", "s@__MEMMOVE@memmove@",
8523 "-e", "s@__MEMCPY@memcpy@",
8524 "-e", "s@__STRLEN@strlen@",
8525 "-e", "s@__STRCPY@strcpy@",
8528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8530 * Description of Vms_No_64bit_Getopt fix
8532 tSCC zVms_No_64bit_GetoptName[] =
8533 "vms_no_64bit_getopt";
8536 * File name selection pattern
8538 tSCC zVms_No_64bit_GetoptList[] =
8539 "rtldef/stdio.h\0rtldef/unistd.h\0";
8541 * Machine/OS name selection pattern
8543 tSCC* apzVms_No_64bit_GetoptMachs[] = {
8545 (const char*)NULL };
8548 * content selection pattern - do fix if pattern found
8550 tSCC zVms_No_64bit_GetoptSelect0[] =
8551 "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
8553 #define VMS_NO_64BIT_GETOPT_TEST_CT 1
8554 static tTestDesc aVms_No_64bit_GetoptTests[] = {
8555 { TT_EGREP, zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
8558 * Fix Command Arguments for Vms_No_64bit_Getopt
8560 static const char* apzVms_No_64bit_GetoptPatch[] = {
8562 "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only. */\n\
8566 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8568 * Description of Vms_Forward_Declare_Struct fix
8570 tSCC zVms_Forward_Declare_StructName[] =
8571 "vms_forward_declare_struct";
8574 * File name selection pattern
8576 tSCC zVms_Forward_Declare_StructList[] =
8579 * Machine/OS name selection pattern
8581 tSCC* apzVms_Forward_Declare_StructMachs[] = {
8583 (const char*)NULL };
8586 * content selection pattern - do fix if pattern found
8588 tSCC zVms_Forward_Declare_StructSelect0[] =
8589 "(/\\* forward decls for C\\+\\+ \\*/\n\
8590 )#ifdef __cplusplus\n";
8592 #define VMS_FORWARD_DECLARE_STRUCT_TEST_CT 1
8593 static tTestDesc aVms_Forward_Declare_StructTests[] = {
8594 { TT_EGREP, zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
8597 * Fix Command Arguments for Vms_Forward_Declare_Struct
8599 static const char* apzVms_Forward_Declare_StructPatch[] = {
8601 "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
8604 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8606 * Description of Vms_Use_Fast_Setjmp fix
8608 tSCC zVms_Use_Fast_SetjmpName[] =
8609 "vms_use_fast_setjmp";
8612 * File name selection pattern
8614 tSCC zVms_Use_Fast_SetjmpList[] =
8615 "rtldef/setjmp.h\0";
8617 * Machine/OS name selection pattern
8619 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
8621 (const char*)NULL };
8624 * content selection pattern - do fix if pattern found
8626 tSCC zVms_Use_Fast_SetjmpSelect0[] =
8627 "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
8629 #define VMS_USE_FAST_SETJMP_TEST_CT 1
8630 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
8631 { TT_EGREP, zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
8634 * Fix Command Arguments for Vms_Use_Fast_Setjmp
8636 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
8638 "%0 defined (__GNUC__) ||",
8641 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8643 * Description of Void_Null fix
8645 tSCC zVoid_NullName[] =
8649 * File name selection pattern
8651 tSCC zVoid_NullList[] =
8652 "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";
8654 * Machine/OS name selection pattern
8656 #define apzVoid_NullMachs (const char**)NULL
8659 * content selection pattern - do fix if pattern found
8661 tSCC zVoid_NullSelect0[] =
8662 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8665 * content bypass pattern - skip fix if pattern found
8667 tSCC zVoid_NullBypass0[] =
8669 tSCC zVoid_NullBypass1[] =
8672 #define VOID_NULL_TEST_CT 3
8673 static tTestDesc aVoid_NullTests[] = {
8674 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
8675 { TT_NEGREP, zVoid_NullBypass1, (regex_t*)NULL },
8676 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
8679 * Fix Command Arguments for Void_Null
8681 static const char* apzVoid_NullPatch[] = {
8686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8688 * Description of Vxworks_Gcc_Problem fix
8690 tSCC zVxworks_Gcc_ProblemName[] =
8691 "vxworks_gcc_problem";
8694 * File name selection pattern
8696 tSCC zVxworks_Gcc_ProblemList[] =
8697 "types/vxTypesBase.h\0";
8699 * Machine/OS name selection pattern
8701 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8704 * content selection pattern - do fix if pattern found
8706 tSCC zVxworks_Gcc_ProblemSelect0[] =
8707 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8709 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
8710 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8711 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8714 * Fix Command Arguments for Vxworks_Gcc_Problem
8716 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8717 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8718 "-e", "/[ \t]size_t/i\\\n\
8719 #ifndef _GCC_SIZE_T\\\n\
8720 #define _GCC_SIZE_T\n",
8721 "-e", "/[ \t]size_t/a\\\n\
8723 "-e", "/[ \t]ptrdiff_t/i\\\n\
8724 #ifndef _GCC_PTRDIFF_T\\\n\
8725 #define _GCC_PTRDIFF_T\n",
8726 "-e", "/[ \t]ptrdiff_t/a\\\n\
8728 "-e", "/[ \t]wchar_t/i\\\n\
8729 #ifndef _GCC_WCHAR_T\\\n\
8730 #define _GCC_WCHAR_T\n",
8731 "-e", "/[ \t]wchar_t/a\\\n\
8735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8737 * Description of Vxworks_Ioctl_Macro fix
8739 tSCC zVxworks_Ioctl_MacroName[] =
8740 "vxworks_ioctl_macro";
8743 * File name selection pattern
8745 tSCC zVxworks_Ioctl_MacroList[] =
8748 * Machine/OS name selection pattern
8750 tSCC* apzVxworks_Ioctl_MacroMachs[] = {
8752 (const char*)NULL };
8753 #define VXWORKS_IOCTL_MACRO_TEST_CT 0
8754 #define aVxworks_Ioctl_MacroTests (tTestDesc*)NULL
8757 * Fix Command Arguments for Vxworks_Ioctl_Macro
8759 static const char* apzVxworks_Ioctl_MacroPatch[] = {
8762 #define ioctl(fd, func, arg) (ioctl)(fd, func, (int)(arg))\n",
8763 "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);",
8766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8768 * Description of Vxworks_Mkdir_Macro fix
8770 tSCC zVxworks_Mkdir_MacroName[] =
8771 "vxworks_mkdir_macro";
8774 * File name selection pattern
8776 tSCC zVxworks_Mkdir_MacroList[] =
8779 * Machine/OS name selection pattern
8781 tSCC* apzVxworks_Mkdir_MacroMachs[] = {
8783 (const char*)NULL };
8784 #define VXWORKS_MKDIR_MACRO_TEST_CT 0
8785 #define aVxworks_Mkdir_MacroTests (tTestDesc*)NULL
8788 * Fix Command Arguments for Vxworks_Mkdir_Macro
8790 static const char* apzVxworks_Mkdir_MacroPatch[] = {
8793 #define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir))\n",
8794 "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;",
8797 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8799 * Description of Vxworks_Needs_Vxtypes fix
8801 tSCC zVxworks_Needs_VxtypesName[] =
8802 "vxworks_needs_vxtypes";
8805 * File name selection pattern
8807 tSCC zVxworks_Needs_VxtypesList[] =
8810 * Machine/OS name selection pattern
8812 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8815 * content selection pattern - do fix if pattern found
8817 tSCC zVxworks_Needs_VxtypesSelect0[] =
8818 "uint_t([ \t]+_clocks_per_sec)";
8820 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
8821 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8822 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8825 * Fix Command Arguments for Vxworks_Needs_Vxtypes
8827 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8834 * Description of Vxworks_Needs_Vxworks fix
8836 tSCC zVxworks_Needs_VxworksName[] =
8837 "vxworks_needs_vxworks";
8840 * File name selection pattern
8842 tSCC zVxworks_Needs_VxworksList[] =
8845 * Machine/OS name selection pattern
8847 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8850 * content selection pattern - do fix if pattern found
8852 tSCC zVxworks_Needs_VxworksSelect0[] =
8853 "#[ \t]define[ \t]+__INCstath";
8856 * perform the 'test' shell command - do fix on success
8858 tSCC zVxworks_Needs_VxworksTest0[] =
8859 " -r types/vxTypesOld.h";
8860 tSCC zVxworks_Needs_VxworksTest1[] =
8861 " -n \"`egrep '#include' $file`\"";
8862 tSCC zVxworks_Needs_VxworksTest2[] =
8863 " -n \"`egrep ULONG $file`\"";
8865 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
8866 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8867 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
8868 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
8869 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
8870 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8873 * Fix Command Arguments for Vxworks_Needs_Vxworks
8875 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8876 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8877 #include <types/vxTypesOld.h>\n",
8880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8882 * Description of Vxworks_Regs fix
8884 tSCC zVxworks_RegsName[] =
8888 * File name selection pattern
8890 #define zVxworks_RegsList (char*)NULL
8892 * Machine/OS name selection pattern
8894 tSCC* apzVxworks_RegsMachs[] = {
8896 (const char*)NULL };
8899 * content selection pattern - do fix if pattern found
8901 tSCC zVxworks_RegsSelect0[] =
8902 "#[\t ]*include[\t ]+[<\"]regs.h[>\"]";
8904 #define VXWORKS_REGS_TEST_CT 1
8905 static tTestDesc aVxworks_RegsTests[] = {
8906 { TT_EGREP, zVxworks_RegsSelect0, (regex_t*)NULL }, };
8909 * Fix Command Arguments for Vxworks_Regs
8911 static const char* apzVxworks_RegsPatch[] = {
8913 "#include <arch/../regs.h>",
8916 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8918 * Description of Vxworks_Time fix
8920 tSCC zVxworks_TimeName[] =
8924 * File name selection pattern
8926 tSCC zVxworks_TimeList[] =
8929 * Machine/OS name selection pattern
8931 #define apzVxworks_TimeMachs (const char**)NULL
8934 * content selection pattern - do fix if pattern found
8936 tSCC zVxworks_TimeSelect0[] =
8937 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8940 * perform the 'test' shell command - do fix on success
8942 tSCC zVxworks_TimeTest0[] =
8945 #define VXWORKS_TIME_TEST_CT 2
8946 static tTestDesc aVxworks_TimeTests[] = {
8947 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
8948 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
8951 * Fix Command Arguments for Vxworks_Time
8953 static const char* apzVxworks_TimePatch[] = {
8955 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8956 #ifdef __cplusplus\n\
8957 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8959 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8961 #define __gcc_VOIDFUNCPTR_defined\n\
8963 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8968 * Description of Vxworks_Write_Const fix
8970 tSCC zVxworks_Write_ConstName[] =
8971 "vxworks_write_const";
8974 * File name selection pattern
8976 tSCC zVxworks_Write_ConstList[] =
8979 * Machine/OS name selection pattern
8981 tSCC* apzVxworks_Write_ConstMachs[] = {
8983 (const char*)NULL };
8984 #define VXWORKS_WRITE_CONST_TEST_CT 0
8985 #define aVxworks_Write_ConstTests (tTestDesc*)NULL
8988 * Fix Command Arguments for Vxworks_Write_Const
8990 static const char* apzVxworks_Write_ConstPatch[] = {
8992 "extern int write (int, const char*, size_t);",
8993 "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;",
8996 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8998 * Description of X11_Class fix
9000 tSCC zX11_ClassName[] =
9004 * File name selection pattern
9006 tSCC zX11_ClassList[] =
9009 * Machine/OS name selection pattern
9011 #define apzX11_ClassMachs (const char**)NULL
9014 * content selection pattern - do fix if pattern found
9016 tSCC zX11_ClassSelect0[] =
9017 "^([ \t]*char \\*)class;(.*)";
9020 * content bypass pattern - skip fix if pattern found
9022 tSCC zX11_ClassBypass0[] =
9025 #define X11_CLASS_TEST_CT 2
9026 static tTestDesc aX11_ClassTests[] = {
9027 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
9028 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
9031 * Fix Command Arguments for X11_Class
9033 static const char* apzX11_ClassPatch[] = {
9035 "#ifdef __cplusplus\n\
9042 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9044 * Description of X11_Class_Usage fix
9046 tSCC zX11_Class_UsageName[] =
9050 * File name selection pattern
9052 tSCC zX11_Class_UsageList[] =
9053 "Xm/BaseClassI.h\0";
9055 * Machine/OS name selection pattern
9057 #define apzX11_Class_UsageMachs (const char**)NULL
9060 * content selection pattern - do fix if pattern found
9062 tSCC zX11_Class_UsageSelect0[] =
9066 * content bypass pattern - skip fix if pattern found
9068 tSCC zX11_Class_UsageBypass0[] =
9071 #define X11_CLASS_USAGE_TEST_CT 2
9072 static tTestDesc aX11_Class_UsageTests[] = {
9073 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
9074 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
9077 * Fix Command Arguments for X11_Class_Usage
9079 static const char* apzX11_Class_UsagePatch[] = {
9084 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9086 * Description of X11_New fix
9088 tSCC zX11_NewName[] =
9092 * File name selection pattern
9094 tSCC zX11_NewList[] =
9097 * Machine/OS name selection pattern
9099 #define apzX11_NewMachs (const char**)NULL
9102 * content bypass pattern - skip fix if pattern found
9104 tSCC zX11_NewBypass0[] =
9107 #define X11_NEW_TEST_CT 1
9108 static tTestDesc aX11_NewTests[] = {
9109 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
9112 * Fix Command Arguments for X11_New
9114 static const char* apzX11_NewPatch[] = { sed_cmd_z,
9115 "-e", "/Widget\told, new;/i\\\n\
9116 #ifdef __cplusplus\\\n\
9117 \\\tWidget\told, c_new;\\\n\
9119 "-e", "/Widget\told, new;/a\\\n\
9121 "-e", "s/Widget new,/Widget c_new,/g",
9124 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9126 * Description of X11_Sprintf fix
9128 tSCC zX11_SprintfName[] =
9132 * File name selection pattern
9134 tSCC zX11_SprintfList[] =
9135 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
9137 * Machine/OS name selection pattern
9139 #define apzX11_SprintfMachs (const char**)NULL
9142 * content selection pattern - do fix if pattern found
9144 tSCC zX11_SprintfSelect0[] =
9145 "^extern char \\*\tsprintf\\(\\);$";
9147 #define X11_SPRINTF_TEST_CT 1
9148 static tTestDesc aX11_SprintfTests[] = {
9149 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
9152 * Fix Command Arguments for X11_Sprintf
9154 static const char* apzX11_SprintfPatch[] = {
9156 "#ifndef __STDC__\n\
9158 #endif /* !defined __STDC__ */",
9162 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9166 #define REGEX_COUNT 260
9167 #define MACH_LIST_SIZE_LIMIT 181
9168 #define FIX_COUNT 224
9171 * Enumerate the fixes
9174 AAB_AIX_STDIO_FIXIDX,
9175 AAB_AIX_FCNTL_FIXIDX,
9176 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
9177 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
9178 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
9179 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
9180 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
9181 AAB_SUN_MEMCPY_FIXIDX,
9182 AAB_VXWORKS_ASSERT_FIXIDX,
9183 AAB_VXWORKS_REGS_VXTYPES_FIXIDX,
9184 AAB_VXWORKS_STDINT_FIXIDX,
9185 AAB_VXWORKS_UNISTD_FIXIDX,
9188 AIX_NET_IF_ARP_FIXIDX,
9189 AIX_ONCE_INIT_1_FIXIDX,
9190 AIX_ONCE_INIT_2_FIXIDX,
9191 AIX_MUTEX_INITIALIZER_1_FIXIDX,
9192 AIX_COND_INITIALIZER_1_FIXIDX,
9193 AIX_RWLOCK_INITIALIZER_1_FIXIDX,
9195 AIX_STDINT_1_FIXIDX,
9196 AIX_STDINT_2_FIXIDX,
9197 AIX_STDINT_3_FIXIDX,
9198 AIX_STDINT_4_FIXIDX,
9199 AIX_STDINT_5_FIXIDX,
9200 AIX_SYSMACHINE_FIXIDX,
9201 AIX_SYSWAIT_2_FIXIDX,
9202 AIX_VOLATILE_FIXIDX,
9203 ALPHA___ASSERT_FIXIDX,
9204 ALPHA_ASSERT_FIXIDX,
9205 ALPHA_GETOPT_FIXIDX,
9206 ALPHA_IF_SEMICOLON_FIXIDX,
9207 ALPHA_PARENS_FIXIDX,
9209 AVOID_BOOL_DEFINE_FIXIDX,
9210 AVOID_BOOL_TYPE_FIXIDX,
9211 AVOID_WCHAR_T_TYPE_FIXIDX,
9212 BAD_STRUCT_TERM_FIXIDX,
9214 BROKEN_ASSERT_STDIO_FIXIDX,
9215 BROKEN_ASSERT_STDLIB_FIXIDX,
9218 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
9219 CDEF_CPLUSPLUS_FIXIDX,
9220 CTRL_QUOTES_DEF_FIXIDX,
9221 CTRL_QUOTES_USE_FIXIDX,
9223 DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
9224 DARWIN_EXTERNC_FIXIDX,
9225 DARWIN_GCC4_BREAKAGE_FIXIDX,
9226 DARWIN_PRIVATE_EXTERN_FIXIDX,
9227 DARWIN_STDINT_1_FIXIDX,
9228 DARWIN_STDINT_2_FIXIDX,
9229 DARWIN_STDINT_3_FIXIDX,
9230 DARWIN_STDINT_4_FIXIDX,
9231 DARWIN_STDINT_5_FIXIDX,
9232 DARWIN_STDINT_6_FIXIDX,
9233 DARWIN_STDINT_7_FIXIDX,
9234 DEC_INTERN_ASM_FIXIDX,
9235 DJGPP_WCHAR_H_FIXIDX,
9237 FREEBSD_GCC3_BREAKAGE_FIXIDX,
9238 FREEBSD_GCC4_BREAKAGE_FIXIDX,
9239 GLIBC_C99_INLINE_1_FIXIDX,
9240 GLIBC_C99_INLINE_1A_FIXIDX,
9241 GLIBC_C99_INLINE_2_FIXIDX,
9242 GLIBC_C99_INLINE_3_FIXIDX,
9243 GLIBC_C99_INLINE_4_FIXIDX,
9244 GLIBC_MUTEX_INIT_FIXIDX,
9245 GLIBC_STDINT_FIXIDX,
9246 GLIBC_STRNCPY_FIXIDX,
9247 GLIBC_TGMATH_FIXIDX,
9251 HPPA_HPUX_FP_MACROS_FIXIDX,
9252 HPUX10_CPP_POW_INLINE_FIXIDX,
9253 HPUX11_CPP_POW_INLINE_FIXIDX,
9254 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
9255 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
9256 HPUX10_STDIO_DECLARATIONS_FIXIDX,
9258 HPUX11_FABSF_FIXIDX,
9259 HPUX11_PTHREAD_CONST_FIXIDX,
9260 HPUX11_SIZE_T_FIXIDX,
9261 HPUX11_SNPRINTF_FIXIDX,
9262 HPUX11_VSNPRINTF_FIXIDX,
9263 HPUX8_BOGUS_INLINES_FIXIDX,
9264 HPUX_CTYPE_MACROS_FIXIDX,
9266 HPUX_LONG_DOUBLE_FIXIDX,
9267 HPUX_LONG_DOUBLE_2_FIXIDX,
9268 HPUX_SYSTIME_FIXIDX,
9269 HPUX_SPU_INFO_FIXIDX,
9270 HPUX11_EXTERN_SENDFILE_FIXIDX,
9271 HPUX11_EXTERN_SENDPATH_FIXIDX,
9272 HPUX_EXTERN_ERRNO_FIXIDX,
9273 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
9274 HPUX_C99_INTPTR_FIXIDX,
9275 HPUX_C99_INTTYPES_FIXIDX,
9276 HPUX_C99_INTTYPES2_FIXIDX,
9277 HPUX_STDINT_LEAST_FAST_FIXIDX,
9278 HPUX_INTTYPE_INT8_T_FIXIDX,
9279 HPUX_IMAGINARY_I_FIXIDX,
9280 HUGE_VAL_HEX_FIXIDX,
9281 HUGE_VALF_HEX_FIXIDX,
9282 HUGE_VALL_HEX_FIXIDX,
9283 INT_ABORT_FREE_AND_EXIT_FIXIDX,
9284 IO_QUOTES_DEF_FIXIDX,
9285 IO_QUOTES_USE_FIXIDX,
9286 IP_MISSING_SEMI_FIXIDX,
9287 IRIX_LIMITS_CONST_FIXIDX,
9288 IRIX_STDIO_VA_LIST_FIXIDX,
9289 KANDR_CONCAT_FIXIDX,
9290 LINUX_IA64_UCONTEXT_FIXIDX,
9291 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
9292 LYNXOS_MISSING_PUTENV_FIXIDX,
9293 MACHINE_ANSI_H_VA_LIST_FIXIDX,
9294 MACHINE_NAME_FIXIDX,
9295 MATH_EXCEPTION_FIXIDX,
9296 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
9297 NESTED_AUTH_DES_FIXIDX,
9298 NETBSD_C99_INLINE_1_FIXIDX,
9299 NETBSD_C99_INLINE_2_FIXIDX,
9300 NETBSD_EXTRA_SEMICOLON_FIXIDX,
9301 NEWLIB_STDINT_1_FIXIDX,
9302 NEWLIB_STDINT_2_FIXIDX,
9303 NEXT_MATH_PREFIX_FIXIDX,
9304 NEXT_TEMPLATE_FIXIDX,
9305 NEXT_VOLITILE_FIXIDX,
9306 NEXT_WAIT_UNION_FIXIDX,
9307 NODEENT_SYNTAX_FIXIDX,
9308 OPENBSD_NULL_DEFINITION_FIXIDX,
9309 OBSTACK_LVALUE_CAST_FIXIDX,
9310 OPENBSD_VA_START_FIXIDX,
9311 OSF_NAMESPACE_A_FIXIDX,
9312 OSF_NAMESPACE_C_FIXIDX,
9313 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
9314 READ_RET_TYPE_FIXIDX,
9315 RPC_XDR_LVALUE_CAST_A_FIXIDX,
9316 RPC_XDR_LVALUE_CAST_B_FIXIDX,
9317 RS6000_DOUBLE_FIXIDX,
9318 RS6000_FCHMOD_FIXIDX,
9319 RS6000_PARAM_FIXIDX,
9320 SOLARIS___RESTRICT_FIXIDX,
9321 SOLARIS_COMPLEX_FIXIDX,
9322 SOLARIS_COMPLEX_CXX_FIXIDX,
9323 SOLARIS_CXX_LINKAGE_FIXIDX,
9324 SOLARIS_GETC_STRICT_STDC_FIXIDX,
9325 SOLARIS_LONGJMP_NORETURN_FIXIDX,
9326 SOLARIS_MATH_1_FIXIDX,
9327 SOLARIS_MATH_2_FIXIDX,
9328 SOLARIS_MATH_3_FIXIDX,
9329 SOLARIS_MATH_4_FIXIDX,
9330 SOLARIS_MATH_8_FIXIDX,
9331 SOLARIS_MATH_9_FIXIDX,
9332 SOLARIS_MATH_10_FIXIDX,
9333 SOLARIS_MUTEX_INIT_2_FIXIDX,
9334 SOLARIS_POW_INT_OVERLOAD_FIXIDX,
9335 SOLARIS_RWLOCK_INIT_1_FIXIDX,
9336 SOLARIS_ONCE_INIT_1_FIXIDX,
9337 SOLARIS_ONCE_INIT_2_FIXIDX,
9338 SOLARIS_INT_CONST_FIXIDX,
9339 SOLARIS_INT_LIMITS_1_FIXIDX,
9340 SOLARIS_INT_LIMITS_2_FIXIDX,
9341 SOLARIS_INT_LIMITS_3_FIXIDX,
9342 SOLARIS_INT_TYPES_FIXIDX,
9343 SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
9344 SOLARIS_STD___FILBUF_FIXIDX,
9345 SOLARIS_STDIO_TAG_FIXIDX,
9346 SOLARIS_SYS_VA_LIST_FIXIDX,
9348 STDIO_STDARG_H_FIXIDX,
9349 STDIO_VA_LIST_FIXIDX,
9350 STDIO_VA_LIST_CLIENTS_FIXIDX,
9351 STRICT_ANSI_NOT_FIXIDX,
9352 STRICT_ANSI_NOT_CTD_FIXIDX,
9353 STRICT_ANSI_ONLY_FIXIDX,
9355 STRUCT_SOCKADDR_FIXIDX,
9356 SUN_AUTH_PROTO_FIXIDX,
9357 SUN_BOGUS_IFDEF_FIXIDX,
9358 SUN_CATMACRO_FIXIDX,
9360 SUN_RUSERS_SEMI_FIXIDX,
9362 SUNOS_STRLEN_FIXIDX,
9363 SVR4_DISABLE_OPT_FIXIDX,
9366 SVR4_SIGHANDLER_TYPE_FIXIDX,
9367 SVR4_UNDECLARED_GETRNGE_FIXIDX,
9368 SYSV68_STRING_FIXIDX,
9369 SYSZ_STDLIB_FOR_SUN_FIXIDX,
9370 THREAD_KEYWORD_FIXIDX,
9371 TINFO_CPLUSPLUS_FIXIDX,
9372 ULTRIX_CONST_FIXIDX,
9373 ULTRIX_CONST2_FIXIDX,
9374 VA_I960_MACRO_FIXIDX,
9375 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
9376 VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
9377 VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
9378 VMS_USE_QUOTED_INCLUDE_FIXIDX,
9379 VMS_ADD_MISSING_BRACES_FIXIDX,
9380 VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
9381 VMS_DECC_BUILTIN_FIXIDX,
9382 VMS_NO_64BIT_GETOPT_FIXIDX,
9383 VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
9384 VMS_USE_FAST_SETJMP_FIXIDX,
9386 VXWORKS_GCC_PROBLEM_FIXIDX,
9387 VXWORKS_IOCTL_MACRO_FIXIDX,
9388 VXWORKS_MKDIR_MACRO_FIXIDX,
9389 VXWORKS_NEEDS_VXTYPES_FIXIDX,
9390 VXWORKS_NEEDS_VXWORKS_FIXIDX,
9391 VXWORKS_REGS_FIXIDX,
9392 VXWORKS_TIME_FIXIDX,
9393 VXWORKS_WRITE_CONST_FIXIDX,
9395 X11_CLASS_USAGE_FIXIDX,
9400 tFixDesc fixDescList[ FIX_COUNT ] = {
9401 { zAab_Aix_StdioName, zAab_Aix_StdioList,
9402 apzAab_Aix_StdioMachs,
9403 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9404 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
9406 { zAab_Aix_FcntlName, zAab_Aix_FcntlList,
9407 apzAab_Aix_FcntlMachs,
9408 AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9409 aAab_Aix_FcntlTests, apzAab_Aix_FcntlPatch, 0 },
9411 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
9412 apzAab_Darwin7_9_Long_Double_FuncsMachs,
9413 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9414 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
9416 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
9417 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
9418 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9419 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
9421 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
9422 apzAab_Fd_Zero_Gnu_Types_HMachs,
9423 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9424 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
9426 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
9427 apzAab_Fd_Zero_Selectbits_HMachs,
9428 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9429 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
9431 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
9432 apzAab_Solaris_Sys_Varargs_HMachs,
9433 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9434 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
9436 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
9437 apzAab_Sun_MemcpyMachs,
9438 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9439 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
9441 { zAab_Vxworks_AssertName, zAab_Vxworks_AssertList,
9442 apzAab_Vxworks_AssertMachs,
9443 AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9444 aAab_Vxworks_AssertTests, apzAab_Vxworks_AssertPatch, 0 },
9446 { zAab_Vxworks_Regs_VxtypesName, zAab_Vxworks_Regs_VxtypesList,
9447 apzAab_Vxworks_Regs_VxtypesMachs,
9448 AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9449 aAab_Vxworks_Regs_VxtypesTests, apzAab_Vxworks_Regs_VxtypesPatch, 0 },
9451 { zAab_Vxworks_StdintName, zAab_Vxworks_StdintList,
9452 apzAab_Vxworks_StdintMachs,
9453 AAB_VXWORKS_STDINT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9454 aAab_Vxworks_StdintTests, apzAab_Vxworks_StdintPatch, 0 },
9456 { zAab_Vxworks_UnistdName, zAab_Vxworks_UnistdList,
9457 apzAab_Vxworks_UnistdMachs,
9458 AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9459 aAab_Vxworks_UnistdTests, apzAab_Vxworks_UnistdPatch, 0 },
9461 { zAix_ComplexName, zAix_ComplexList,
9462 apzAix_ComplexMachs,
9463 AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9464 aAix_ComplexTests, apzAix_ComplexPatch, 0 },
9466 { zAix_MallocName, zAix_MallocList,
9468 AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9469 aAix_MallocTests, apzAix_MallocPatch, 0 },
9471 { zAix_Net_If_ArpName, zAix_Net_If_ArpList,
9472 apzAix_Net_If_ArpMachs,
9473 AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9474 aAix_Net_If_ArpTests, apzAix_Net_If_ArpPatch, 0 },
9476 { zAix_Once_Init_1Name, zAix_Once_Init_1List,
9477 apzAix_Once_Init_1Machs,
9478 AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9479 aAix_Once_Init_1Tests, apzAix_Once_Init_1Patch, 0 },
9481 { zAix_Once_Init_2Name, zAix_Once_Init_2List,
9482 apzAix_Once_Init_2Machs,
9483 AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9484 aAix_Once_Init_2Tests, apzAix_Once_Init_2Patch, 0 },
9486 { zAix_Mutex_Initializer_1Name, zAix_Mutex_Initializer_1List,
9487 apzAix_Mutex_Initializer_1Machs,
9488 AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9489 aAix_Mutex_Initializer_1Tests, apzAix_Mutex_Initializer_1Patch, 0 },
9491 { zAix_Cond_Initializer_1Name, zAix_Cond_Initializer_1List,
9492 apzAix_Cond_Initializer_1Machs,
9493 AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9494 aAix_Cond_Initializer_1Tests, apzAix_Cond_Initializer_1Patch, 0 },
9496 { zAix_Rwlock_Initializer_1Name, zAix_Rwlock_Initializer_1List,
9497 apzAix_Rwlock_Initializer_1Machs,
9498 AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9499 aAix_Rwlock_Initializer_1Tests, apzAix_Rwlock_Initializer_1Patch, 0 },
9501 { zAix_PthreadName, zAix_PthreadList,
9502 apzAix_PthreadMachs,
9503 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9504 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
9506 { zAix_Stdint_1Name, zAix_Stdint_1List,
9507 apzAix_Stdint_1Machs,
9508 AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9509 aAix_Stdint_1Tests, apzAix_Stdint_1Patch, 0 },
9511 { zAix_Stdint_2Name, zAix_Stdint_2List,
9512 apzAix_Stdint_2Machs,
9513 AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9514 aAix_Stdint_2Tests, apzAix_Stdint_2Patch, 0 },
9516 { zAix_Stdint_3Name, zAix_Stdint_3List,
9517 apzAix_Stdint_3Machs,
9518 AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9519 aAix_Stdint_3Tests, apzAix_Stdint_3Patch, 0 },
9521 { zAix_Stdint_4Name, zAix_Stdint_4List,
9522 apzAix_Stdint_4Machs,
9523 AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9524 aAix_Stdint_4Tests, apzAix_Stdint_4Patch, 0 },
9526 { zAix_Stdint_5Name, zAix_Stdint_5List,
9527 apzAix_Stdint_5Machs,
9528 AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9529 aAix_Stdint_5Tests, apzAix_Stdint_5Patch, 0 },
9531 { zAix_SysmachineName, zAix_SysmachineList,
9532 apzAix_SysmachineMachs,
9533 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9534 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
9536 { zAix_Syswait_2Name, zAix_Syswait_2List,
9537 apzAix_Syswait_2Machs,
9538 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9539 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
9541 { zAix_VolatileName, zAix_VolatileList,
9542 apzAix_VolatileMachs,
9543 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9544 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
9546 { zAlpha___AssertName, zAlpha___AssertList,
9547 apzAlpha___AssertMachs,
9548 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9549 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
9551 { zAlpha_AssertName, zAlpha_AssertList,
9552 apzAlpha_AssertMachs,
9553 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9554 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
9556 { zAlpha_GetoptName, zAlpha_GetoptList,
9557 apzAlpha_GetoptMachs,
9558 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9559 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
9561 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
9562 apzAlpha_If_SemicolonMachs,
9563 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9564 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
9566 { zAlpha_ParensName, zAlpha_ParensList,
9567 apzAlpha_ParensMachs,
9568 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9569 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
9571 { zAlpha_SbrkName, zAlpha_SbrkList,
9573 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9574 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
9576 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
9577 apzAvoid_Bool_DefineMachs,
9578 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9579 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
9581 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
9582 apzAvoid_Bool_TypeMachs,
9583 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9584 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
9586 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
9587 apzAvoid_Wchar_T_TypeMachs,
9588 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9589 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
9591 { zBad_Struct_TermName, zBad_Struct_TermList,
9592 apzBad_Struct_TermMachs,
9593 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9594 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
9596 { zBadquoteName, zBadquoteList,
9598 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9599 aBadquoteTests, apzBadquotePatch, 0 },
9601 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
9602 apzBroken_Assert_StdioMachs,
9603 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9604 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
9606 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
9607 apzBroken_Assert_StdlibMachs,
9608 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9609 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
9611 { zBroken_CabsName, zBroken_CabsList,
9612 apzBroken_CabsMachs,
9613 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9614 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
9616 { zBroken_NanName, zBroken_NanList,
9618 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9619 aBroken_NanTests, apzBroken_NanPatch, 0 },
9621 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
9622 apzBsd_Stdio_Attrs_ConflictMachs,
9623 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9624 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9626 { zCdef_CplusplusName, zCdef_CplusplusList,
9627 apzCdef_CplusplusMachs,
9628 CDEF_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9629 aCdef_CplusplusTests, apzCdef_CplusplusPatch, 0 },
9631 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
9632 apzCtrl_Quotes_DefMachs,
9633 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9634 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
9636 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
9637 apzCtrl_Quotes_UseMachs,
9638 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9639 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
9641 { zCxx_UnreadyName, zCxx_UnreadyList,
9642 apzCxx_UnreadyMachs,
9643 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9644 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
9646 { zDarwin_9_Long_Double_Funcs_2Name, zDarwin_9_Long_Double_Funcs_2List,
9647 apzDarwin_9_Long_Double_Funcs_2Machs,
9648 DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9649 aDarwin_9_Long_Double_Funcs_2Tests, apzDarwin_9_Long_Double_Funcs_2Patch, 0 },
9651 { zDarwin_ExterncName, zDarwin_ExterncList,
9652 apzDarwin_ExterncMachs,
9653 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9654 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
9656 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
9657 apzDarwin_Gcc4_BreakageMachs,
9658 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9659 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
9661 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
9662 apzDarwin_Private_ExternMachs,
9663 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9664 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
9666 { zDarwin_Stdint_1Name, zDarwin_Stdint_1List,
9667 apzDarwin_Stdint_1Machs,
9668 DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9669 aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 },
9671 { zDarwin_Stdint_2Name, zDarwin_Stdint_2List,
9672 apzDarwin_Stdint_2Machs,
9673 DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9674 aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 },
9676 { zDarwin_Stdint_3Name, zDarwin_Stdint_3List,
9677 apzDarwin_Stdint_3Machs,
9678 DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9679 aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 },
9681 { zDarwin_Stdint_4Name, zDarwin_Stdint_4List,
9682 apzDarwin_Stdint_4Machs,
9683 DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9684 aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 },
9686 { zDarwin_Stdint_5Name, zDarwin_Stdint_5List,
9687 apzDarwin_Stdint_5Machs,
9688 DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9689 aDarwin_Stdint_5Tests, apzDarwin_Stdint_5Patch, 0 },
9691 { zDarwin_Stdint_6Name, zDarwin_Stdint_6List,
9692 apzDarwin_Stdint_6Machs,
9693 DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9694 aDarwin_Stdint_6Tests, apzDarwin_Stdint_6Patch, 0 },
9696 { zDarwin_Stdint_7Name, zDarwin_Stdint_7List,
9697 apzDarwin_Stdint_7Machs,
9698 DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9699 aDarwin_Stdint_7Tests, apzDarwin_Stdint_7Patch, 0 },
9701 { zDec_Intern_AsmName, zDec_Intern_AsmList,
9702 apzDec_Intern_AsmMachs,
9703 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9704 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
9706 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
9707 apzDjgpp_Wchar_HMachs,
9708 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9709 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
9711 { zEcd_CursorName, zEcd_CursorList,
9713 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9714 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
9716 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
9717 apzFreebsd_Gcc3_BreakageMachs,
9718 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9719 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
9721 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
9722 apzFreebsd_Gcc4_BreakageMachs,
9723 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9724 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
9726 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
9727 apzGlibc_C99_Inline_1Machs,
9728 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9729 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
9731 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
9732 apzGlibc_C99_Inline_1aMachs,
9733 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9734 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
9736 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
9737 apzGlibc_C99_Inline_2Machs,
9738 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9739 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
9741 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
9742 apzGlibc_C99_Inline_3Machs,
9743 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9744 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
9746 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
9747 apzGlibc_C99_Inline_4Machs,
9748 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9749 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
9751 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
9752 apzGlibc_Mutex_InitMachs,
9753 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9754 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
9756 { zGlibc_StdintName, zGlibc_StdintList,
9757 apzGlibc_StdintMachs,
9758 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9759 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 },
9761 { zGlibc_StrncpyName, zGlibc_StrncpyList,
9762 apzGlibc_StrncpyMachs,
9763 GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9764 aGlibc_StrncpyTests, apzGlibc_StrncpyPatch, 0 },
9766 { zGlibc_TgmathName, zGlibc_TgmathList,
9767 apzGlibc_TgmathMachs,
9768 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9769 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
9771 { zGnu_TypesName, zGnu_TypesList,
9773 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9774 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
9776 { zHp_InlineName, zHp_InlineList,
9778 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9779 aHp_InlineTests, apzHp_InlinePatch, 0 },
9781 { zHp_SysfileName, zHp_SysfileList,
9783 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9784 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
9786 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
9787 apzHppa_Hpux_Fp_MacrosMachs,
9788 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9789 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
9791 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
9792 apzHpux10_Cpp_Pow_InlineMachs,
9793 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9794 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
9796 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
9797 apzHpux11_Cpp_Pow_InlineMachs,
9798 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9799 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
9801 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
9802 apzHpux10_Ctype_Declarations1Machs,
9803 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9804 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
9806 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
9807 apzHpux10_Ctype_Declarations2Machs,
9808 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9809 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
9811 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
9812 apzHpux10_Stdio_DeclarationsMachs,
9813 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9814 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
9816 { zHpux11_AbsName, zHpux11_AbsList,
9818 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9819 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
9821 { zHpux11_FabsfName, zHpux11_FabsfList,
9822 apzHpux11_FabsfMachs,
9823 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9824 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
9826 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
9827 apzHpux11_Pthread_ConstMachs,
9828 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9829 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
9831 { zHpux11_Size_TName, zHpux11_Size_TList,
9832 apzHpux11_Size_TMachs,
9833 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9834 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
9836 { zHpux11_SnprintfName, zHpux11_SnprintfList,
9837 apzHpux11_SnprintfMachs,
9838 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9839 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
9841 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
9842 apzHpux11_VsnprintfMachs,
9843 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9844 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
9846 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
9847 apzHpux8_Bogus_InlinesMachs,
9848 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9849 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
9851 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
9852 apzHpux_Ctype_MacrosMachs,
9853 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9854 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
9856 { zHpux_HtonlName, zHpux_HtonlList,
9858 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9859 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
9861 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
9862 apzHpux_Long_DoubleMachs,
9863 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9864 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
9866 { zHpux_Long_Double_2Name, zHpux_Long_Double_2List,
9867 apzHpux_Long_Double_2Machs,
9868 HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9869 aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 },
9871 { zHpux_SystimeName, zHpux_SystimeList,
9872 apzHpux_SystimeMachs,
9873 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9874 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
9876 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
9877 apzHpux_Spu_InfoMachs,
9878 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9879 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
9881 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
9882 apzHpux11_Extern_SendfileMachs,
9883 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9884 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
9886 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
9887 apzHpux11_Extern_SendpathMachs,
9888 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9889 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
9891 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
9892 apzHpux_Extern_ErrnoMachs,
9893 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9894 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
9896 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
9897 apzHpux_Pthread_InitializersMachs,
9898 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9899 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
9901 { zHpux_C99_IntptrName, zHpux_C99_IntptrList,
9902 apzHpux_C99_IntptrMachs,
9903 HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
9904 aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 },
9906 { zHpux_C99_InttypesName, zHpux_C99_InttypesList,
9907 apzHpux_C99_InttypesMachs,
9908 HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
9909 aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 },
9911 { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List,
9912 apzHpux_C99_Inttypes2Machs,
9913 HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
9914 aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 },
9916 { zHpux_Stdint_Least_FastName, zHpux_Stdint_Least_FastList,
9917 apzHpux_Stdint_Least_FastMachs,
9918 HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9919 aHpux_Stdint_Least_FastTests, apzHpux_Stdint_Least_FastPatch, 0 },
9921 { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList,
9922 apzHpux_Inttype_Int8_TMachs,
9923 HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9924 aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 },
9926 { zHpux_Imaginary_IName, zHpux_Imaginary_IList,
9927 apzHpux_Imaginary_IMachs,
9928 HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9929 aHpux_Imaginary_ITests, apzHpux_Imaginary_IPatch, 0 },
9931 { zHuge_Val_HexName, zHuge_Val_HexList,
9932 apzHuge_Val_HexMachs,
9933 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9934 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
9936 { zHuge_Valf_HexName, zHuge_Valf_HexList,
9937 apzHuge_Valf_HexMachs,
9938 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9939 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
9941 { zHuge_Vall_HexName, zHuge_Vall_HexList,
9942 apzHuge_Vall_HexMachs,
9943 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9944 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
9946 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
9947 apzInt_Abort_Free_And_ExitMachs,
9948 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9949 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
9951 { zIo_Quotes_DefName, zIo_Quotes_DefList,
9952 apzIo_Quotes_DefMachs,
9953 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9954 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
9956 { zIo_Quotes_UseName, zIo_Quotes_UseList,
9957 apzIo_Quotes_UseMachs,
9958 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9959 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
9961 { zIp_Missing_SemiName, zIp_Missing_SemiList,
9962 apzIp_Missing_SemiMachs,
9963 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9964 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
9966 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
9967 apzIrix_Limits_ConstMachs,
9968 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9969 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
9971 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
9972 apzIrix_Stdio_Va_ListMachs,
9973 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9974 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
9976 { zKandr_ConcatName, zKandr_ConcatList,
9977 apzKandr_ConcatMachs,
9978 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9979 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
9981 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
9982 apzLinux_Ia64_UcontextMachs,
9983 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9984 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
9986 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
9987 apzLynxos_No_Warning_In_Sys_Time_HMachs,
9988 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9989 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9991 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
9992 apzLynxos_Missing_PutenvMachs,
9993 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9994 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
9996 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
9997 apzMachine_Ansi_H_Va_ListMachs,
9998 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9999 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
10001 { zMachine_NameName, zMachine_NameList,
10002 apzMachine_NameMachs,
10003 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10004 aMachine_NameTests, apzMachine_NamePatch, 0 },
10006 { zMath_ExceptionName, zMath_ExceptionList,
10007 apzMath_ExceptionMachs,
10008 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10009 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
10011 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
10012 apzMath_Huge_Val_From_Dbl_MaxMachs,
10013 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
10014 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
10016 { zNested_Auth_DesName, zNested_Auth_DesList,
10017 apzNested_Auth_DesMachs,
10018 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10019 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
10021 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
10022 apzNetbsd_C99_Inline_1Machs,
10023 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10024 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
10026 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
10027 apzNetbsd_C99_Inline_2Machs,
10028 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10029 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
10031 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
10032 apzNetbsd_Extra_SemicolonMachs,
10033 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10034 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
10036 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List,
10037 apzNewlib_Stdint_1Machs,
10038 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
10039 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 },
10041 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List,
10042 apzNewlib_Stdint_2Machs,
10043 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10044 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 },
10046 { zNext_Math_PrefixName, zNext_Math_PrefixList,
10047 apzNext_Math_PrefixMachs,
10048 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10049 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
10051 { zNext_TemplateName, zNext_TemplateList,
10052 apzNext_TemplateMachs,
10053 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10054 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
10056 { zNext_VolitileName, zNext_VolitileList,
10057 apzNext_VolitileMachs,
10058 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10059 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
10061 { zNext_Wait_UnionName, zNext_Wait_UnionList,
10062 apzNext_Wait_UnionMachs,
10063 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10064 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
10066 { zNodeent_SyntaxName, zNodeent_SyntaxList,
10067 apzNodeent_SyntaxMachs,
10068 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10069 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
10071 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
10072 apzOpenbsd_Null_DefinitionMachs,
10073 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10074 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
10076 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
10077 apzObstack_Lvalue_CastMachs,
10078 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10079 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
10081 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
10082 apzOpenbsd_Va_StartMachs,
10083 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10084 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
10086 { zOsf_Namespace_AName, zOsf_Namespace_AList,
10087 apzOsf_Namespace_AMachs,
10088 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10089 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
10091 { zOsf_Namespace_CName, zOsf_Namespace_CList,
10092 apzOsf_Namespace_CMachs,
10093 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10094 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
10096 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
10097 apzPthread_Incomplete_Struct_ArgumentMachs,
10098 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10099 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
10101 { zRead_Ret_TypeName, zRead_Ret_TypeList,
10102 apzRead_Ret_TypeMachs,
10103 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10104 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
10106 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
10107 apzRpc_Xdr_Lvalue_Cast_AMachs,
10108 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10109 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
10111 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
10112 apzRpc_Xdr_Lvalue_Cast_BMachs,
10113 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10114 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
10116 { zRs6000_DoubleName, zRs6000_DoubleList,
10117 apzRs6000_DoubleMachs,
10118 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10119 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
10121 { zRs6000_FchmodName, zRs6000_FchmodList,
10122 apzRs6000_FchmodMachs,
10123 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10124 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
10126 { zRs6000_ParamName, zRs6000_ParamList,
10127 apzRs6000_ParamMachs,
10128 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10129 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
10131 { zSolaris___RestrictName, zSolaris___RestrictList,
10132 apzSolaris___RestrictMachs,
10133 SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10134 aSolaris___RestrictTests, apzSolaris___RestrictPatch, 0 },
10136 { zSolaris_ComplexName, zSolaris_ComplexList,
10137 apzSolaris_ComplexMachs,
10138 SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
10139 aSolaris_ComplexTests, apzSolaris_ComplexPatch, 0 },
10141 { zSolaris_Complex_CxxName, zSolaris_Complex_CxxList,
10142 apzSolaris_Complex_CxxMachs,
10143 SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
10144 aSolaris_Complex_CxxTests, apzSolaris_Complex_CxxPatch, 0 },
10146 { zSolaris_Cxx_LinkageName, zSolaris_Cxx_LinkageList,
10147 apzSolaris_Cxx_LinkageMachs,
10148 SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10149 aSolaris_Cxx_LinkageTests, apzSolaris_Cxx_LinkagePatch, 0 },
10151 { zSolaris_Getc_Strict_StdcName, zSolaris_Getc_Strict_StdcList,
10152 apzSolaris_Getc_Strict_StdcMachs,
10153 SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10154 aSolaris_Getc_Strict_StdcTests, apzSolaris_Getc_Strict_StdcPatch, 0 },
10156 { zSolaris_Longjmp_NoreturnName, zSolaris_Longjmp_NoreturnList,
10157 apzSolaris_Longjmp_NoreturnMachs,
10158 SOLARIS_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10159 aSolaris_Longjmp_NoreturnTests, apzSolaris_Longjmp_NoreturnPatch, 0 },
10161 { zSolaris_Math_1Name, zSolaris_Math_1List,
10162 apzSolaris_Math_1Machs,
10163 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10164 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
10166 { zSolaris_Math_2Name, zSolaris_Math_2List,
10167 apzSolaris_Math_2Machs,
10168 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10169 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
10171 { zSolaris_Math_3Name, zSolaris_Math_3List,
10172 apzSolaris_Math_3Machs,
10173 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10174 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
10176 { zSolaris_Math_4Name, zSolaris_Math_4List,
10177 apzSolaris_Math_4Machs,
10178 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10179 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
10181 { zSolaris_Math_8Name, zSolaris_Math_8List,
10182 apzSolaris_Math_8Machs,
10183 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10184 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
10186 { zSolaris_Math_9Name, zSolaris_Math_9List,
10187 apzSolaris_Math_9Machs,
10188 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10189 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
10191 { zSolaris_Math_10Name, zSolaris_Math_10List,
10192 apzSolaris_Math_10Machs,
10193 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10194 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
10196 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
10197 apzSolaris_Mutex_Init_2Machs,
10198 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10199 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
10201 { zSolaris_Pow_Int_OverloadName, zSolaris_Pow_Int_OverloadList,
10202 apzSolaris_Pow_Int_OverloadMachs,
10203 SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10204 aSolaris_Pow_Int_OverloadTests, apzSolaris_Pow_Int_OverloadPatch, 0 },
10206 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
10207 apzSolaris_Rwlock_Init_1Machs,
10208 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10209 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
10211 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
10212 apzSolaris_Once_Init_1Machs,
10213 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10214 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
10216 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
10217 apzSolaris_Once_Init_2Machs,
10218 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10219 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
10221 { zSolaris_Int_ConstName, zSolaris_Int_ConstList,
10222 apzSolaris_Int_ConstMachs,
10223 SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10224 aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 },
10226 { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List,
10227 apzSolaris_Int_Limits_1Machs,
10228 SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10229 aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 },
10231 { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List,
10232 apzSolaris_Int_Limits_2Machs,
10233 SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10234 aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 },
10236 { zSolaris_Int_Limits_3Name, zSolaris_Int_Limits_3List,
10237 apzSolaris_Int_Limits_3Machs,
10238 SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10239 aSolaris_Int_Limits_3Tests, apzSolaris_Int_Limits_3Patch, 0 },
10241 { zSolaris_Int_TypesName, zSolaris_Int_TypesList,
10242 apzSolaris_Int_TypesMachs,
10243 SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10244 aSolaris_Int_TypesTests, apzSolaris_Int_TypesPatch, 0 },
10246 { zSolaris_Posix_Spawn_RestrictName, zSolaris_Posix_Spawn_RestrictList,
10247 apzSolaris_Posix_Spawn_RestrictMachs,
10248 SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10249 aSolaris_Posix_Spawn_RestrictTests, apzSolaris_Posix_Spawn_RestrictPatch, 0 },
10251 { zSolaris_Std___FilbufName, zSolaris_Std___FilbufList,
10252 apzSolaris_Std___FilbufMachs,
10253 SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10254 aSolaris_Std___FilbufTests, apzSolaris_Std___FilbufPatch, 0 },
10256 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
10257 apzSolaris_Stdio_TagMachs,
10258 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
10259 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
10261 { zSolaris_Sys_Va_ListName, zSolaris_Sys_Va_ListList,
10262 apzSolaris_Sys_Va_ListMachs,
10263 SOLARIS_SYS_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10264 aSolaris_Sys_Va_ListTests, apzSolaris_Sys_Va_ListPatch, 0 },
10266 { zStatsswtchName, zStatsswtchList,
10267 apzStatsswtchMachs,
10268 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10269 aStatsswtchTests, apzStatsswtchPatch, 0 },
10271 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
10272 apzStdio_Stdarg_HMachs,
10273 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10274 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
10276 { zStdio_Va_ListName, zStdio_Va_ListList,
10277 apzStdio_Va_ListMachs,
10278 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
10279 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
10281 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
10282 apzStdio_Va_List_ClientsMachs,
10283 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
10284 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
10286 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
10287 apzStrict_Ansi_NotMachs,
10288 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10289 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
10291 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
10292 apzStrict_Ansi_Not_CtdMachs,
10293 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10294 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
10296 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
10297 apzStrict_Ansi_OnlyMachs,
10298 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10299 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
10301 { zStruct_FileName, zStruct_FileList,
10302 apzStruct_FileMachs,
10303 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10304 aStruct_FileTests, apzStruct_FilePatch, 0 },
10306 { zStruct_SockaddrName, zStruct_SockaddrList,
10307 apzStruct_SockaddrMachs,
10308 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10309 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
10311 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
10312 apzSun_Auth_ProtoMachs,
10313 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10314 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
10316 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
10317 apzSun_Bogus_IfdefMachs,
10318 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10319 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
10321 { zSun_CatmacroName, zSun_CatmacroList,
10322 apzSun_CatmacroMachs,
10323 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10324 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
10326 { zSun_MallocName, zSun_MallocList,
10327 apzSun_MallocMachs,
10328 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
10329 aSun_MallocTests, apzSun_MallocPatch, 0 },
10331 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
10332 apzSun_Rusers_SemiMachs,
10333 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
10334 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
10336 { zSun_SignalName, zSun_SignalList,
10337 apzSun_SignalMachs,
10338 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10339 aSun_SignalTests, apzSun_SignalPatch, 0 },
10341 { zSunos_StrlenName, zSunos_StrlenList,
10342 apzSunos_StrlenMachs,
10343 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10344 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
10346 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
10347 apzSvr4_Disable_OptMachs,
10348 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
10349 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
10351 { zSvr4_GetcwdName, zSvr4_GetcwdList,
10352 apzSvr4_GetcwdMachs,
10353 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10354 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
10356 { zSvr4_ProfilName, zSvr4_ProfilList,
10357 apzSvr4_ProfilMachs,
10358 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10359 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
10361 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
10362 apzSvr4_Sighandler_TypeMachs,
10363 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10364 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
10366 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
10367 apzSvr4_Undeclared_GetrngeMachs,
10368 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10369 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
10371 { zSysv68_StringName, zSysv68_StringList,
10372 apzSysv68_StringMachs,
10373 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
10374 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
10376 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
10377 apzSysz_Stdlib_For_SunMachs,
10378 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10379 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
10381 { zThread_KeywordName, zThread_KeywordList,
10382 apzThread_KeywordMachs,
10383 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10384 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
10386 { zTinfo_CplusplusName, zTinfo_CplusplusList,
10387 apzTinfo_CplusplusMachs,
10388 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10389 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
10391 { zUltrix_ConstName, zUltrix_ConstList,
10392 apzUltrix_ConstMachs,
10393 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10394 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
10396 { zUltrix_Const2Name, zUltrix_Const2List,
10397 apzUltrix_Const2Machs,
10398 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10399 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
10401 { zVa_I960_MacroName, zVa_I960_MacroList,
10402 apzVa_I960_MacroMachs,
10403 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10404 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
10406 { zVms_Define_Can_Use_Extern_PrefixName, zVms_Define_Can_Use_Extern_PrefixList,
10407 apzVms_Define_Can_Use_Extern_PrefixMachs,
10408 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10409 aVms_Define_Can_Use_Extern_PrefixTests, apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
10411 { zVms_Use_Pragma_Extern_ModelName, zVms_Use_Pragma_Extern_ModelList,
10412 apzVms_Use_Pragma_Extern_ModelMachs,
10413 VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10414 aVms_Use_Pragma_Extern_ModelTests, apzVms_Use_Pragma_Extern_ModelPatch, 0 },
10416 { zVms_Disable_Decc_String_BuiltinsName, zVms_Disable_Decc_String_BuiltinsList,
10417 apzVms_Disable_Decc_String_BuiltinsMachs,
10418 VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10419 aVms_Disable_Decc_String_BuiltinsTests, apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
10421 { zVms_Use_Quoted_IncludeName, zVms_Use_Quoted_IncludeList,
10422 apzVms_Use_Quoted_IncludeMachs,
10423 VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10424 aVms_Use_Quoted_IncludeTests, apzVms_Use_Quoted_IncludePatch, 0 },
10426 { zVms_Add_Missing_BracesName, zVms_Add_Missing_BracesList,
10427 apzVms_Add_Missing_BracesMachs,
10428 VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10429 aVms_Add_Missing_BracesTests, apzVms_Add_Missing_BracesPatch, 0 },
10431 { zVms_Do_Not_Redeclare_HostaliasName, zVms_Do_Not_Redeclare_HostaliasList,
10432 apzVms_Do_Not_Redeclare_HostaliasMachs,
10433 VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10434 aVms_Do_Not_Redeclare_HostaliasTests, apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
10436 { zVms_Decc_BuiltinName, zVms_Decc_BuiltinList,
10437 apzVms_Decc_BuiltinMachs,
10438 VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
10439 aVms_Decc_BuiltinTests, apzVms_Decc_BuiltinPatch, 0 },
10441 { zVms_No_64bit_GetoptName, zVms_No_64bit_GetoptList,
10442 apzVms_No_64bit_GetoptMachs,
10443 VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10444 aVms_No_64bit_GetoptTests, apzVms_No_64bit_GetoptPatch, 0 },
10446 { zVms_Forward_Declare_StructName, zVms_Forward_Declare_StructList,
10447 apzVms_Forward_Declare_StructMachs,
10448 VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10449 aVms_Forward_Declare_StructTests, apzVms_Forward_Declare_StructPatch, 0 },
10451 { zVms_Use_Fast_SetjmpName, zVms_Use_Fast_SetjmpList,
10452 apzVms_Use_Fast_SetjmpMachs,
10453 VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10454 aVms_Use_Fast_SetjmpTests, apzVms_Use_Fast_SetjmpPatch, 0 },
10456 { zVoid_NullName, zVoid_NullList,
10458 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10459 aVoid_NullTests, apzVoid_NullPatch, 0 },
10461 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
10462 apzVxworks_Gcc_ProblemMachs,
10463 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
10464 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
10466 { zVxworks_Ioctl_MacroName, zVxworks_Ioctl_MacroList,
10467 apzVxworks_Ioctl_MacroMachs,
10468 VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10469 aVxworks_Ioctl_MacroTests, apzVxworks_Ioctl_MacroPatch, 0 },
10471 { zVxworks_Mkdir_MacroName, zVxworks_Mkdir_MacroList,
10472 apzVxworks_Mkdir_MacroMachs,
10473 VXWORKS_MKDIR_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10474 aVxworks_Mkdir_MacroTests, apzVxworks_Mkdir_MacroPatch, 0 },
10476 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
10477 apzVxworks_Needs_VxtypesMachs,
10478 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10479 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
10481 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
10482 apzVxworks_Needs_VxworksMachs,
10483 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
10484 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
10486 { zVxworks_RegsName, zVxworks_RegsList,
10487 apzVxworks_RegsMachs,
10488 VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10489 aVxworks_RegsTests, apzVxworks_RegsPatch, 0 },
10491 { zVxworks_TimeName, zVxworks_TimeList,
10492 apzVxworks_TimeMachs,
10493 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10494 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
10496 { zVxworks_Write_ConstName, zVxworks_Write_ConstList,
10497 apzVxworks_Write_ConstMachs,
10498 VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10499 aVxworks_Write_ConstTests, apzVxworks_Write_ConstPatch, 0 },
10501 { zX11_ClassName, zX11_ClassList,
10503 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10504 aX11_ClassTests, apzX11_ClassPatch, 0 },
10506 { zX11_Class_UsageName, zX11_Class_UsageList,
10507 apzX11_Class_UsageMachs,
10508 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10509 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
10511 { zX11_NewName, zX11_NewList,
10513 X11_NEW_TEST_CT, FD_MACH_ONLY,
10514 aX11_NewTests, apzX11_NewPatch, 0 },
10516 { zX11_SprintfName, zX11_SprintfList,
10517 apzX11_SprintfMachs,
10518 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10519 aX11_SprintfTests, apzX11_SprintfPatch, 0 }