1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Tuesday January 7, 2014 at 12:02:54 PM MET
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Tue Jan 7 12:02:54 MET 2014
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_Assert fix
741 tSCC zAix_AssertName[] =
745 * File name selection pattern
747 tSCC zAix_AssertList[] =
750 * Machine/OS name selection pattern
752 tSCC* apzAix_AssertMachs[] = {
757 * content selection pattern - do fix if pattern found
759 tSCC zAix_AssertSelect0[] =
760 "#define[ \t]static_assert[ \t]_Static_assert";
762 #define AIX_ASSERT_TEST_CT 1
763 static tTestDesc aAix_AssertTests[] = {
764 { TT_EGREP, zAix_AssertSelect0, (regex_t*)NULL }, };
767 * Fix Command Arguments for Aix_Assert
769 static const char* apzAix_AssertPatch[] = {
771 "#ifndef __cplusplus\n\
776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
778 * Description of Aix_Complex fix
780 tSCC zAix_ComplexName[] =
784 * File name selection pattern
786 tSCC zAix_ComplexList[] =
789 * Machine/OS name selection pattern
791 tSCC* apzAix_ComplexMachs[] = {
796 * content selection pattern - do fix if pattern found
798 tSCC zAix_ComplexSelect0[] =
799 "#define[ \t]_Complex_I[ \t]__I";
801 #define AIX_COMPLEX_TEST_CT 1
802 static tTestDesc aAix_ComplexTests[] = {
803 { TT_EGREP, zAix_ComplexSelect0, (regex_t*)NULL }, };
806 * Fix Command Arguments for Aix_Complex
808 static const char* apzAix_ComplexPatch[] = {
810 "#define _Complex_I (__extension__ 1.0iF)",
813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
815 * Description of Aix_Malloc fix
817 tSCC zAix_MallocName[] =
821 * File name selection pattern
823 tSCC zAix_MallocList[] =
826 * Machine/OS name selection pattern
828 tSCC* apzAix_MallocMachs[] = {
833 * content selection pattern - do fix if pattern found
835 tSCC zAix_MallocSelect0[] =
836 "#ifdef __cplusplus";
838 #define AIX_MALLOC_TEST_CT 1
839 static tTestDesc aAix_MallocTests[] = {
840 { TT_EGREP, zAix_MallocSelect0, (regex_t*)NULL }, };
843 * Fix Command Arguments for Aix_Malloc
845 static const char* apzAix_MallocPatch[] = {
847 "#if (defined(__cplusplus) && defined(__IBMCPP__))",
850 /* * * * * * * * * * * * * * * * * * * * * * * * * *
852 * Description of Aix_Net_If_Arp fix
854 tSCC zAix_Net_If_ArpName[] =
858 * File name selection pattern
860 tSCC zAix_Net_If_ArpList[] =
863 * Machine/OS name selection pattern
865 tSCC* apzAix_Net_If_ArpMachs[] = {
870 * content selection pattern - do fix if pattern found
872 tSCC zAix_Net_If_ArpSelect0[] =
873 "^struct fc_softc \\{";
875 #define AIX_NET_IF_ARP_TEST_CT 1
876 static tTestDesc aAix_Net_If_ArpTests[] = {
877 { TT_EGREP, zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
880 * Fix Command Arguments for Aix_Net_If_Arp
882 static const char* apzAix_Net_If_ArpPatch[] = {
884 "typedef struct _fc_softc {",
887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
889 * Description of Aix_Null fix
891 tSCC zAix_NullName[] =
895 * File name selection pattern
897 tSCC zAix_NullList[] =
898 "curses.h\0dbm.h\0locale.h\0stdio.h\0stdlib.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/dir.h\0sys/param.h\0sys/types.h\0";
900 * Machine/OS name selection pattern
902 tSCC* apzAix_NullMachs[] = {
907 * content selection pattern - do fix if pattern found
909 tSCC zAix_NullSelect0[] =
910 "#define[ \t]+NULL[ \t]+\\(*0L*\\)*";
913 * content bypass pattern - skip fix if pattern found
915 tSCC zAix_NullBypass0[] =
918 #define AIX_NULL_TEST_CT 2
919 static tTestDesc aAix_NullTests[] = {
920 { TT_NEGREP, zAix_NullBypass0, (regex_t*)NULL },
921 { TT_EGREP, zAix_NullSelect0, (regex_t*)NULL }, };
924 * Fix Command Arguments for Aix_Null
926 static const char* apzAix_NullPatch[] = {
929 #ifdef __cplusplus\n\
931 #define NULL __null\n\
932 #else /* ! __GNUG__ */\n\
934 #endif /* __GNUG__ */\n\
935 #else /* ! __cplusplus */\n\
936 #define NULL ((void *)0)\n\
937 #endif /* __cplusplus */\n\
941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
943 * Description of Aix_Once_Init_1 fix
945 tSCC zAix_Once_Init_1Name[] =
949 * File name selection pattern
951 tSCC zAix_Once_Init_1List[] =
954 * Machine/OS name selection pattern
956 tSCC* apzAix_Once_Init_1Machs[] = {
961 * content selection pattern - do fix if pattern found
963 tSCC zAix_Once_Init_1Select0[] =
964 "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
967 #define AIX_ONCE_INIT_1_TEST_CT 1
968 static tTestDesc aAix_Once_Init_1Tests[] = {
969 { TT_EGREP, zAix_Once_Init_1Select0, (regex_t*)NULL }, };
972 * Fix Command Arguments for Aix_Once_Init_1
974 static const char* apzAix_Once_Init_1Patch[] = {
976 "#define PTHREAD_ONCE_INIT \\\n\
980 /* * * * * * * * * * * * * * * * * * * * * * * * * *
982 * Description of Aix_Once_Init_2 fix
984 tSCC zAix_Once_Init_2Name[] =
988 * File name selection pattern
990 tSCC zAix_Once_Init_2List[] =
993 * Machine/OS name selection pattern
995 tSCC* apzAix_Once_Init_2Machs[] = {
1000 * content selection pattern - do fix if pattern found
1002 tSCC zAix_Once_Init_2Select0[] =
1006 #define AIX_ONCE_INIT_2_TEST_CT 1
1007 static tTestDesc aAix_Once_Init_2Tests[] = {
1008 { TT_EGREP, zAix_Once_Init_2Select0, (regex_t*)NULL }, };
1011 * Fix Command Arguments for Aix_Once_Init_2
1013 static const char* apzAix_Once_Init_2Patch[] = {
1019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1021 * Description of Aix_Mutex_Initializer_1 fix
1023 tSCC zAix_Mutex_Initializer_1Name[] =
1024 "aix_mutex_initializer_1";
1027 * File name selection pattern
1029 tSCC zAix_Mutex_Initializer_1List[] =
1032 * Machine/OS name selection pattern
1034 tSCC* apzAix_Mutex_Initializer_1Machs[] = {
1036 (const char*)NULL };
1039 * content selection pattern - do fix if pattern found
1041 tSCC zAix_Mutex_Initializer_1Select0[] =
1042 "#define[ \t]PTHREAD_MUTEX_INITIALIZER \\\\\n\
1045 #define AIX_MUTEX_INITIALIZER_1_TEST_CT 1
1046 static tTestDesc aAix_Mutex_Initializer_1Tests[] = {
1047 { TT_EGREP, zAix_Mutex_Initializer_1Select0, (regex_t*)NULL }, };
1050 * Fix Command Arguments for Aix_Mutex_Initializer_1
1052 static const char* apzAix_Mutex_Initializer_1Patch[] = {
1054 "#define PTHREAD_MUTEX_INITIALIZER \\\n\
1058 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1060 * Description of Aix_Cond_Initializer_1 fix
1062 tSCC zAix_Cond_Initializer_1Name[] =
1063 "aix_cond_initializer_1";
1066 * File name selection pattern
1068 tSCC zAix_Cond_Initializer_1List[] =
1071 * Machine/OS name selection pattern
1073 tSCC* apzAix_Cond_Initializer_1Machs[] = {
1075 (const char*)NULL };
1078 * content selection pattern - do fix if pattern found
1080 tSCC zAix_Cond_Initializer_1Select0[] =
1081 "#define[ \t]PTHREAD_COND_INITIALIZER \\\\\n\
1084 #define AIX_COND_INITIALIZER_1_TEST_CT 1
1085 static tTestDesc aAix_Cond_Initializer_1Tests[] = {
1086 { TT_EGREP, zAix_Cond_Initializer_1Select0, (regex_t*)NULL }, };
1089 * Fix Command Arguments for Aix_Cond_Initializer_1
1091 static const char* apzAix_Cond_Initializer_1Patch[] = {
1093 "#define PTHREAD_COND_INITIALIZER \\\n\
1097 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1099 * Description of Aix_Rwlock_Initializer_1 fix
1101 tSCC zAix_Rwlock_Initializer_1Name[] =
1102 "aix_rwlock_initializer_1";
1105 * File name selection pattern
1107 tSCC zAix_Rwlock_Initializer_1List[] =
1110 * Machine/OS name selection pattern
1112 tSCC* apzAix_Rwlock_Initializer_1Machs[] = {
1114 (const char*)NULL };
1117 * content selection pattern - do fix if pattern found
1119 tSCC zAix_Rwlock_Initializer_1Select0[] =
1120 "#define[ \t]PTHREAD_RWLOCK_INITIALIZER \\\\\n\
1123 #define AIX_RWLOCK_INITIALIZER_1_TEST_CT 1
1124 static tTestDesc aAix_Rwlock_Initializer_1Tests[] = {
1125 { TT_EGREP, zAix_Rwlock_Initializer_1Select0, (regex_t*)NULL }, };
1128 * Fix Command Arguments for Aix_Rwlock_Initializer_1
1130 static const char* apzAix_Rwlock_Initializer_1Patch[] = {
1132 "#define PTHREAD_RWLOCK_INITIALIZER \\\n\
1136 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1138 * Description of Aix_Pthread fix
1140 tSCC zAix_PthreadName[] =
1144 * File name selection pattern
1146 tSCC zAix_PthreadList[] =
1149 * Machine/OS name selection pattern
1151 #define apzAix_PthreadMachs (const char**)NULL
1154 * content selection pattern - do fix if pattern found
1156 tSCC zAix_PthreadSelect0[] =
1157 "(#define [A-Za-z_0-9]+)(\\\\\n\
1161 #define AIX_PTHREAD_TEST_CT 1
1162 static tTestDesc aAix_PthreadTests[] = {
1163 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
1166 * Fix Command Arguments for Aix_Pthread
1168 static const char* apzAix_PthreadPatch[] = {
1173 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1175 * Description of Aix_Stdint_1 fix
1177 tSCC zAix_Stdint_1Name[] =
1181 * File name selection pattern
1183 tSCC zAix_Stdint_1List[] =
1184 "stdint-aix.h\0stdint.h\0";
1186 * Machine/OS name selection pattern
1188 tSCC* apzAix_Stdint_1Machs[] = {
1190 (const char*)NULL };
1193 * content selection pattern - do fix if pattern found
1195 tSCC zAix_Stdint_1Select0[] =
1196 "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
1197 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
1199 #define AIX_STDINT_1_TEST_CT 1
1200 static tTestDesc aAix_Stdint_1Tests[] = {
1201 { TT_EGREP, zAix_Stdint_1Select0, (regex_t*)NULL }, };
1204 * Fix Command Arguments for Aix_Stdint_1
1206 static const char* apzAix_Stdint_1Patch[] = {
1208 "#define UINT8_MAX\t(255)\n\
1209 #define UINT16_MAX\t(65535)",
1212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1214 * Description of Aix_Stdint_2 fix
1216 tSCC zAix_Stdint_2Name[] =
1220 * File name selection pattern
1222 tSCC zAix_Stdint_2List[] =
1223 "stdint-aix.h\0stdint.h\0";
1225 * Machine/OS name selection pattern
1227 tSCC* apzAix_Stdint_2Machs[] = {
1229 (const char*)NULL };
1232 * content selection pattern - do fix if pattern found
1234 tSCC zAix_Stdint_2Select0[] =
1235 "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
1236 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
1237 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
1239 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
1240 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
1241 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
1243 #define AIX_STDINT_2_TEST_CT 1
1244 static tTestDesc aAix_Stdint_2Tests[] = {
1245 { TT_EGREP, zAix_Stdint_2Select0, (regex_t*)NULL }, };
1248 * Fix Command Arguments for Aix_Stdint_2
1250 static const char* apzAix_Stdint_2Patch[] = {
1252 "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1253 #define INTPTR_MAX\t9223372036854775807L\n\
1254 #define UINTPTR_MAX\t18446744073709551615UL\n\
1256 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
1257 #define INTPTR_MAX\t2147483647L\n\
1258 #define UINTPTR_MAX\t4294967295UL",
1261 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1263 * Description of Aix_Stdint_3 fix
1265 tSCC zAix_Stdint_3Name[] =
1269 * File name selection pattern
1271 tSCC zAix_Stdint_3List[] =
1272 "stdint-aix.h\0stdint.h\0";
1274 * Machine/OS name selection pattern
1276 tSCC* apzAix_Stdint_3Machs[] = {
1278 (const char*)NULL };
1281 * content selection pattern - do fix if pattern found
1283 tSCC zAix_Stdint_3Select0[] =
1284 "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
1285 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
1287 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
1288 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
1290 #define AIX_STDINT_3_TEST_CT 1
1291 static tTestDesc aAix_Stdint_3Tests[] = {
1292 { TT_EGREP, zAix_Stdint_3Select0, (regex_t*)NULL }, };
1295 * Fix Command Arguments for Aix_Stdint_3
1297 static const char* apzAix_Stdint_3Patch[] = {
1299 "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
1300 #define PTRDIFF_MAX\t9223372036854775807L\n\
1302 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
1303 #define PTRDIFF_MAX\t2147483647L",
1306 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1308 * Description of Aix_Stdint_4 fix
1310 tSCC zAix_Stdint_4Name[] =
1314 * File name selection pattern
1316 tSCC zAix_Stdint_4List[] =
1317 "stdint-aix.h\0stdint.h\0";
1319 * Machine/OS name selection pattern
1321 tSCC* apzAix_Stdint_4Machs[] = {
1323 (const char*)NULL };
1326 * content selection pattern - do fix if pattern found
1328 tSCC zAix_Stdint_4Select0[] =
1329 "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
1331 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
1333 #define AIX_STDINT_4_TEST_CT 1
1334 static tTestDesc aAix_Stdint_4Tests[] = {
1335 { TT_EGREP, zAix_Stdint_4Select0, (regex_t*)NULL }, };
1338 * Fix Command Arguments for Aix_Stdint_4
1340 static const char* apzAix_Stdint_4Patch[] = {
1342 "#define SIZE_MAX\t18446744073709551615UL\n\
1344 #define SIZE_MAX\t4294967295UL",
1347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1349 * Description of Aix_Stdint_5 fix
1351 tSCC zAix_Stdint_5Name[] =
1355 * File name selection pattern
1357 tSCC zAix_Stdint_5List[] =
1358 "stdint-aix.h\0stdint.h\0";
1360 * Machine/OS name selection pattern
1362 tSCC* apzAix_Stdint_5Machs[] = {
1364 (const char*)NULL };
1367 * content selection pattern - do fix if pattern found
1369 tSCC zAix_Stdint_5Select0[] =
1370 "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
1371 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
1373 #define AIX_STDINT_5_TEST_CT 1
1374 static tTestDesc aAix_Stdint_5Tests[] = {
1375 { TT_EGREP, zAix_Stdint_5Select0, (regex_t*)NULL }, };
1378 * Fix Command Arguments for Aix_Stdint_5
1380 static const char* apzAix_Stdint_5Patch[] = {
1382 "#define UINT8_C(c)\tc\n\
1383 #define UINT16_C(c)\tc",
1386 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1388 * Description of Aix_Sysmachine fix
1390 tSCC zAix_SysmachineName[] =
1394 * File name selection pattern
1396 tSCC zAix_SysmachineList[] =
1399 * Machine/OS name selection pattern
1401 #define apzAix_SysmachineMachs (const char**)NULL
1404 * content selection pattern - do fix if pattern found
1406 tSCC zAix_SysmachineSelect0[] =
1409 #define AIX_SYSMACHINE_TEST_CT 1
1410 static tTestDesc aAix_SysmachineTests[] = {
1411 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
1414 * Fix Command Arguments for Aix_Sysmachine
1416 static const char* apzAix_SysmachinePatch[] = {
1421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1423 * Description of Aix_Syswait_2 fix
1425 tSCC zAix_Syswait_2Name[] =
1429 * File name selection pattern
1431 tSCC zAix_Syswait_2List[] =
1434 * Machine/OS name selection pattern
1436 #define apzAix_Syswait_2Machs (const char**)NULL
1439 * content selection pattern - do fix if pattern found
1441 tSCC zAix_Syswait_2Select0[] =
1442 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
1444 #define AIX_SYSWAIT_2_TEST_CT 1
1445 static tTestDesc aAix_Syswait_2Tests[] = {
1446 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
1449 * Fix Command Arguments for Aix_Syswait_2
1451 static const char* apzAix_Syswait_2Patch[] = {
1456 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1458 * Description of Aix_Volatile fix
1460 tSCC zAix_VolatileName[] =
1464 * File name selection pattern
1466 tSCC zAix_VolatileList[] =
1469 * Machine/OS name selection pattern
1471 #define apzAix_VolatileMachs (const char**)NULL
1474 * content selection pattern - do fix if pattern found
1476 tSCC zAix_VolatileSelect0[] =
1477 "typedef volatile int sig_atomic_t";
1479 #define AIX_VOLATILE_TEST_CT 1
1480 static tTestDesc aAix_VolatileTests[] = {
1481 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
1484 * Fix Command Arguments for Aix_Volatile
1486 static const char* apzAix_VolatilePatch[] = {
1488 "typedef int sig_atomic_t",
1491 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1493 * Description of Alpha___Assert fix
1495 tSCC zAlpha___AssertName[] =
1499 * File name selection pattern
1501 tSCC zAlpha___AssertList[] =
1504 * Machine/OS name selection pattern
1506 #define apzAlpha___AssertMachs (const char**)NULL
1509 * content selection pattern - do fix if pattern found
1511 tSCC zAlpha___AssertSelect0[] =
1512 "__assert\\(char \\*, char \\*, int\\)";
1514 #define ALPHA___ASSERT_TEST_CT 1
1515 static tTestDesc aAlpha___AssertTests[] = {
1516 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
1519 * Fix Command Arguments for Alpha___Assert
1521 static const char* apzAlpha___AssertPatch[] = {
1523 "__assert(const char *, const char *, int)",
1526 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1528 * Description of Alpha_Assert fix
1530 tSCC zAlpha_AssertName[] =
1534 * File name selection pattern
1536 tSCC zAlpha_AssertList[] =
1539 * Machine/OS name selection pattern
1541 #define apzAlpha_AssertMachs (const char**)NULL
1544 * content selection pattern - do fix if pattern found
1546 tSCC zAlpha_AssertSelect0[] =
1547 "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1549 #define ALPHA_ASSERT_TEST_CT 1
1550 static tTestDesc aAlpha_AssertTests[] = {
1551 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1554 * Fix Command Arguments for Alpha_Assert
1556 static const char* apzAlpha_AssertPatch[] = {
1561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1563 * Description of Alpha_Getopt fix
1565 tSCC zAlpha_GetoptName[] =
1569 * File name selection pattern
1571 tSCC zAlpha_GetoptList[] =
1572 "stdio.h\0stdlib.h\0";
1574 * Machine/OS name selection pattern
1576 #define apzAlpha_GetoptMachs (const char**)NULL
1579 * content selection pattern - do fix if pattern found
1581 tSCC zAlpha_GetoptSelect0[] =
1582 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1584 #define ALPHA_GETOPT_TEST_CT 1
1585 static tTestDesc aAlpha_GetoptTests[] = {
1586 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1589 * Fix Command Arguments for Alpha_Getopt
1591 static const char* apzAlpha_GetoptPatch[] = {
1593 "getopt(int, char *const[], const char *)",
1596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1598 * Description of Alpha_If_Semicolon fix
1600 tSCC zAlpha_If_SemicolonName[] =
1601 "alpha_if_semicolon";
1604 * File name selection pattern
1606 tSCC zAlpha_If_SemicolonList[] =
1609 * Machine/OS name selection pattern
1611 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1614 * content selection pattern - do fix if pattern found
1616 tSCC zAlpha_If_SemicolonSelect0[] =
1617 "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1619 #define ALPHA_IF_SEMICOLON_TEST_CT 1
1620 static tTestDesc aAlpha_If_SemicolonTests[] = {
1621 { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1624 * Fix Command Arguments for Alpha_If_Semicolon
1626 static const char* apzAlpha_If_SemicolonPatch[] = {
1628 "struct sockaddr vmif_paddr;\t/*",
1631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1633 * Description of Alpha_Parens fix
1635 tSCC zAlpha_ParensName[] =
1639 * File name selection pattern
1641 tSCC zAlpha_ParensList[] =
1644 * Machine/OS name selection pattern
1646 #define apzAlpha_ParensMachs (const char**)NULL
1649 * content selection pattern - do fix if pattern found
1651 tSCC zAlpha_ParensSelect0[] =
1652 "#ifndef\\(__mips64\\)";
1654 #define ALPHA_PARENS_TEST_CT 1
1655 static tTestDesc aAlpha_ParensTests[] = {
1656 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1659 * Fix Command Arguments for Alpha_Parens
1661 static const char* apzAlpha_ParensPatch[] = {
1666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1668 * Description of Alpha_Sbrk fix
1670 tSCC zAlpha_SbrkName[] =
1674 * File name selection pattern
1676 tSCC zAlpha_SbrkList[] =
1679 * Machine/OS name selection pattern
1681 #define apzAlpha_SbrkMachs (const char**)NULL
1684 * content selection pattern - do fix if pattern found
1686 tSCC zAlpha_SbrkSelect0[] =
1687 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1689 #define ALPHA_SBRK_TEST_CT 1
1690 static tTestDesc aAlpha_SbrkTests[] = {
1691 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1694 * Fix Command Arguments for Alpha_Sbrk
1696 static const char* apzAlpha_SbrkPatch[] = {
1701 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1703 * Description of Avoid_Bool_Define fix
1705 tSCC zAvoid_Bool_DefineName[] =
1706 "avoid_bool_define";
1709 * File name selection pattern
1711 tSCC zAvoid_Bool_DefineList[] =
1712 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1714 * Machine/OS name selection pattern
1716 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1719 * content selection pattern - do fix if pattern found
1721 tSCC zAvoid_Bool_DefineSelect0[] =
1722 "#[ \t]*define[ \t]+bool[ \t]";
1725 * content bypass pattern - skip fix if pattern found
1727 tSCC zAvoid_Bool_DefineBypass0[] =
1730 #define AVOID_BOOL_DEFINE_TEST_CT 2
1731 static tTestDesc aAvoid_Bool_DefineTests[] = {
1732 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1733 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1736 * Fix Command Arguments for Avoid_Bool_Define
1738 static const char* apzAvoid_Bool_DefinePatch[] = {
1740 "#ifndef __cplusplus\n\
1743 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1746 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1748 * Description of Avoid_Bool_Type fix
1750 tSCC zAvoid_Bool_TypeName[] =
1754 * File name selection pattern
1756 tSCC zAvoid_Bool_TypeList[] =
1757 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1759 * Machine/OS name selection pattern
1761 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1764 * content selection pattern - do fix if pattern found
1766 tSCC zAvoid_Bool_TypeSelect0[] =
1767 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1770 * content bypass pattern - skip fix if pattern found
1772 tSCC zAvoid_Bool_TypeBypass0[] =
1775 #define AVOID_BOOL_TYPE_TEST_CT 2
1776 static tTestDesc aAvoid_Bool_TypeTests[] = {
1777 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1778 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1781 * Fix Command Arguments for Avoid_Bool_Type
1783 static const char* apzAvoid_Bool_TypePatch[] = {
1785 "#ifndef __cplusplus\n\
1790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1792 * Description of Avoid_Wchar_T_Type fix
1794 tSCC zAvoid_Wchar_T_TypeName[] =
1795 "avoid_wchar_t_type";
1798 * File name selection pattern
1800 #define zAvoid_Wchar_T_TypeList (char*)NULL
1802 * Machine/OS name selection pattern
1804 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1807 * content selection pattern - do fix if pattern found
1809 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1810 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1813 * content bypass pattern - skip fix if pattern found
1815 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1817 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1819 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1820 "XFree86: xc/lib/X11/Xlib\\.h";
1822 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1823 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1824 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1825 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1826 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1827 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1830 * Fix Command Arguments for Avoid_Wchar_T_Type
1832 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1834 "#ifndef __cplusplus\n\
1839 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1841 * Description of Bad_Struct_Term fix
1843 tSCC zBad_Struct_TermName[] =
1847 * File name selection pattern
1849 tSCC zBad_Struct_TermList[] =
1852 * Machine/OS name selection pattern
1854 #define apzBad_Struct_TermMachs (const char**)NULL
1857 * content selection pattern - do fix if pattern found
1859 tSCC zBad_Struct_TermSelect0[] =
1860 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1862 #define BAD_STRUCT_TERM_TEST_CT 1
1863 static tTestDesc aBad_Struct_TermTests[] = {
1864 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1867 * Fix Command Arguments for Bad_Struct_Term
1869 static const char* apzBad_Struct_TermPatch[] = {
1874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1876 * Description of Badquote fix
1878 tSCC zBadquoteName[] =
1882 * File name selection pattern
1884 tSCC zBadquoteList[] =
1885 "sundev/vuid_event.h\0";
1887 * Machine/OS name selection pattern
1889 #define apzBadquoteMachs (const char**)NULL
1892 * content selection pattern - do fix if pattern found
1894 tSCC zBadquoteSelect0[] =
1897 #define BADQUOTE_TEST_CT 1
1898 static tTestDesc aBadquoteTests[] = {
1899 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1902 * Fix Command Arguments for Badquote
1904 static const char* apzBadquotePatch[] = {
1909 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1911 * Description of Broken_Assert_Stdio fix
1913 tSCC zBroken_Assert_StdioName[] =
1914 "broken_assert_stdio";
1917 * File name selection pattern
1919 tSCC zBroken_Assert_StdioList[] =
1922 * Machine/OS name selection pattern
1924 #define apzBroken_Assert_StdioMachs (const char**)NULL
1927 * content selection pattern - do fix if pattern found
1929 tSCC zBroken_Assert_StdioSelect0[] =
1933 * content bypass pattern - skip fix if pattern found
1935 tSCC zBroken_Assert_StdioBypass0[] =
1936 "include.*stdio\\.h";
1938 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1939 static tTestDesc aBroken_Assert_StdioTests[] = {
1940 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1941 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1944 * Fix Command Arguments for Broken_Assert_Stdio
1946 static const char* apzBroken_Assert_StdioPatch[] = {
1948 "#include <stdio.h>\n",
1951 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1953 * Description of Broken_Assert_Stdlib fix
1955 tSCC zBroken_Assert_StdlibName[] =
1956 "broken_assert_stdlib";
1959 * File name selection pattern
1961 tSCC zBroken_Assert_StdlibList[] =
1964 * Machine/OS name selection pattern
1966 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1969 * content selection pattern - do fix if pattern found
1971 tSCC zBroken_Assert_StdlibSelect0[] =
1972 "exit *\\(|abort *\\(";
1975 * content bypass pattern - skip fix if pattern found
1977 tSCC zBroken_Assert_StdlibBypass0[] =
1978 "include.*stdlib\\.h";
1980 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1981 static tTestDesc aBroken_Assert_StdlibTests[] = {
1982 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1983 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1986 * Fix Command Arguments for Broken_Assert_Stdlib
1988 static const char* apzBroken_Assert_StdlibPatch[] = {
1990 "#ifdef __cplusplus\n\
1991 #include <stdlib.h>\n\
1995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1997 * Description of Broken_Cabs fix
1999 tSCC zBroken_CabsName[] =
2003 * File name selection pattern
2005 tSCC zBroken_CabsList[] =
2006 "math.h\0architecture/*/math.h\0";
2008 * Machine/OS name selection pattern
2010 #define apzBroken_CabsMachs (const char**)NULL
2013 * content selection pattern - do fix if pattern found
2015 tSCC zBroken_CabsSelect0[] =
2016 "^extern[ \t]+double[ \t]+cabs";
2018 #define BROKEN_CABS_TEST_CT 1
2019 static tTestDesc aBroken_CabsTests[] = {
2020 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
2023 * Fix Command Arguments for Broken_Cabs
2025 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
2026 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
2027 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
2030 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2032 * Description of Broken_Nan fix
2034 tSCC zBroken_NanName[] =
2038 * File name selection pattern
2040 tSCC zBroken_NanList[] =
2041 "architecture/ppc/math.h\0architecture/*/math.h\0";
2043 * Machine/OS name selection pattern
2045 #define apzBroken_NanMachs (const char**)NULL
2048 * content selection pattern - do fix if pattern found
2050 tSCC zBroken_NanSelect0[] =
2051 "#if defined\\(__APPLE_CC__\\) && \\(__APPLE_CC__ >= 1345\\)";
2054 * content bypass pattern - skip fix if pattern found
2056 tSCC zBroken_NanBypass0[] =
2059 #define BROKEN_NAN_TEST_CT 2
2060 static tTestDesc aBroken_NanTests[] = {
2061 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
2062 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
2065 * Fix Command Arguments for Broken_Nan
2067 static const char* apzBroken_NanPatch[] = {
2072 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2074 * Description of Bsd_Stdio_Attrs_Conflict fix
2076 tSCC zBsd_Stdio_Attrs_ConflictName[] =
2077 "bsd_stdio_attrs_conflict";
2080 * File name selection pattern
2082 tSCC zBsd_Stdio_Attrs_ConflictList[] =
2085 * Machine/OS name selection pattern
2087 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
2090 (const char*)NULL };
2093 * content selection pattern - do fix if pattern found
2095 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
2096 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
2098 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
2099 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
2100 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
2103 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
2105 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
2107 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
2108 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
2109 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
2112 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2114 * Description of Complier_H_Tradcpp fix
2116 tSCC zComplier_H_TradcppName[] =
2117 "complier_h_tradcpp";
2120 * File name selection pattern
2122 tSCC zComplier_H_TradcppList[] =
2123 "linux/compiler.h\0";
2125 * Machine/OS name selection pattern
2127 #define apzComplier_H_TradcppMachs (const char**)NULL
2130 * content selection pattern - do fix if pattern found
2132 tSCC zComplier_H_TradcppSelect0[] =
2133 "#define __builtin_warning\\(x, y\\.\\.\\.\\) \\(1\\)";
2135 #define COMPLIER_H_TRADCPP_TEST_CT 1
2136 static tTestDesc aComplier_H_TradcppTests[] = {
2137 { TT_EGREP, zComplier_H_TradcppSelect0, (regex_t*)NULL }, };
2140 * Fix Command Arguments for Complier_H_Tradcpp
2142 static const char* apzComplier_H_TradcppPatch[] = {
2144 "/* __builtin_warning(x, y...) is obsolete */",
2147 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2149 * Description of Ctrl_Quotes_Def fix
2151 tSCC zCtrl_Quotes_DefName[] =
2155 * File name selection pattern
2157 #define zCtrl_Quotes_DefList (char*)NULL
2159 * Machine/OS name selection pattern
2161 #define apzCtrl_Quotes_DefMachs (const char**)NULL
2164 * content selection pattern - do fix if pattern found
2166 tSCC zCtrl_Quotes_DefSelect0[] =
2167 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
2169 #define CTRL_QUOTES_DEF_TEST_CT 1
2170 static tTestDesc aCtrl_Quotes_DefTests[] = {
2171 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
2174 * Fix Command Arguments for Ctrl_Quotes_Def
2176 static const char* apzCtrl_Quotes_DefPatch[] = {
2181 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2183 * Description of Ctrl_Quotes_Use fix
2185 tSCC zCtrl_Quotes_UseName[] =
2189 * File name selection pattern
2191 #define zCtrl_Quotes_UseList (char*)NULL
2193 * Machine/OS name selection pattern
2195 #define apzCtrl_Quotes_UseMachs (const char**)NULL
2198 * content selection pattern - do fix if pattern found
2200 tSCC zCtrl_Quotes_UseSelect0[] =
2201 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
2203 #define CTRL_QUOTES_USE_TEST_CT 1
2204 static tTestDesc aCtrl_Quotes_UseTests[] = {
2205 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
2208 * Fix Command Arguments for Ctrl_Quotes_Use
2210 static const char* apzCtrl_Quotes_UsePatch[] = {
2215 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2217 * Description of Cxx_Unready fix
2219 tSCC zCxx_UnreadyName[] =
2223 * File name selection pattern
2225 tSCC zCxx_UnreadyList[] =
2226 "sys/mman.h\0rpc/types.h\0";
2228 * Machine/OS name selection pattern
2230 #define apzCxx_UnreadyMachs (const char**)NULL
2233 * content selection pattern - do fix if pattern found
2235 tSCC zCxx_UnreadySelect0[] =
2239 * content bypass pattern - skip fix if pattern found
2241 tSCC zCxx_UnreadyBypass0[] =
2242 "\"C\"|__BEGIN_DECLS";
2244 #define CXX_UNREADY_TEST_CT 2
2245 static tTestDesc aCxx_UnreadyTests[] = {
2246 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
2247 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
2250 * Fix Command Arguments for Cxx_Unready
2252 static const char* apzCxx_UnreadyPatch[] = {
2254 "#ifdef __cplusplus\n\
2257 "#ifdef __cplusplus\n\
2262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2264 * Description of Darwin_9_Long_Double_Funcs_2 fix
2266 tSCC zDarwin_9_Long_Double_Funcs_2Name[] =
2267 "darwin_9_long_double_funcs_2";
2270 * File name selection pattern
2272 tSCC zDarwin_9_Long_Double_Funcs_2List[] =
2275 * Machine/OS name selection pattern
2277 tSCC* apzDarwin_9_Long_Double_Funcs_2Machs[] = {
2279 (const char*)NULL };
2282 * content selection pattern - do fix if pattern found
2284 tSCC zDarwin_9_Long_Double_Funcs_2Select0[] =
2285 "#include[ \\t]+\\\"";
2287 #define DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
2288 static tTestDesc aDarwin_9_Long_Double_Funcs_2Tests[] = {
2289 { TT_EGREP, zDarwin_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
2292 * Fix Command Arguments for Darwin_9_Long_Double_Funcs_2
2294 static const char* apzDarwin_9_Long_Double_Funcs_2Patch[] = {
2297 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
2300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2302 * Description of Darwin_Externc fix
2304 tSCC zDarwin_ExterncName[] =
2308 * File name selection pattern
2310 tSCC zDarwin_ExterncList[] =
2311 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2313 * Machine/OS name selection pattern
2315 tSCC* apzDarwin_ExterncMachs[] = {
2317 (const char*)NULL };
2320 * content bypass pattern - skip fix if pattern found
2322 tSCC zDarwin_ExterncBypass0[] =
2324 tSCC zDarwin_ExterncBypass1[] =
2327 #define DARWIN_EXTERNC_TEST_CT 2
2328 static tTestDesc aDarwin_ExterncTests[] = {
2329 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
2330 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2333 * Fix Command Arguments for Darwin_Externc
2335 static const char* apzDarwin_ExterncPatch[] = {
2337 "#ifdef __cplusplus\n\
2340 "#ifdef __cplusplus\n\
2345 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2347 * Description of Darwin_Gcc4_Breakage fix
2349 tSCC zDarwin_Gcc4_BreakageName[] =
2350 "darwin_gcc4_breakage";
2353 * File name selection pattern
2355 tSCC zDarwin_Gcc4_BreakageList[] =
2356 "AvailabilityMacros.h\0";
2358 * Machine/OS name selection pattern
2360 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2362 (const char*)NULL };
2365 * content selection pattern - do fix if pattern found
2367 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2368 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2370 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
2371 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2372 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2375 * Fix Command Arguments for Darwin_Gcc4_Breakage
2377 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2379 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2384 * Description of Darwin_Private_Extern fix
2386 tSCC zDarwin_Private_ExternName[] =
2387 "darwin_private_extern";
2390 * File name selection pattern
2392 tSCC zDarwin_Private_ExternList[] =
2395 * Machine/OS name selection pattern
2397 tSCC* apzDarwin_Private_ExternMachs[] = {
2399 (const char*)NULL };
2402 * content selection pattern - do fix if pattern found
2404 tSCC zDarwin_Private_ExternSelect0[] =
2405 "__private_extern__ [a-z_]+ _dyld_";
2407 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
2408 static tTestDesc aDarwin_Private_ExternTests[] = {
2409 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2412 * Fix Command Arguments for Darwin_Private_Extern
2414 static const char* apzDarwin_Private_ExternPatch[] = {
2417 "__private_extern__",
2420 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2422 * Description of Darwin_Stdint_1 fix
2424 tSCC zDarwin_Stdint_1Name[] =
2428 * File name selection pattern
2430 tSCC zDarwin_Stdint_1List[] =
2431 "stdint-darwin.h\0stdint.h\0";
2433 * Machine/OS name selection pattern
2435 tSCC* apzDarwin_Stdint_1Machs[] = {
2437 (const char*)NULL };
2440 * content selection pattern - do fix if pattern found
2442 tSCC zDarwin_Stdint_1Select0[] =
2443 "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2444 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2446 #define DARWIN_STDINT_1_TEST_CT 1
2447 static tTestDesc aDarwin_Stdint_1Tests[] = {
2448 { TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2451 * Fix Command Arguments for Darwin_Stdint_1
2453 static const char* apzDarwin_Stdint_1Patch[] = {
2455 "#define UINT8_C(v)\tv\n\
2456 #define UINT16_C(v)\tv",
2459 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2461 * Description of Darwin_Stdint_2 fix
2463 tSCC zDarwin_Stdint_2Name[] =
2467 * File name selection pattern
2469 tSCC zDarwin_Stdint_2List[] =
2470 "stdint-darwin.h\0stdint.h\0";
2472 * Machine/OS name selection pattern
2474 tSCC* apzDarwin_Stdint_2Machs[] = {
2476 (const char*)NULL };
2479 * content selection pattern - do fix if pattern found
2481 tSCC zDarwin_Stdint_2Select0[] =
2482 "#if __WORDSIZE == 64\n\
2483 #define INTPTR_MIN[ \t]+INT64_MIN\n\
2484 #define INTPTR_MAX[ \t]+INT64_MAX\n\
2486 #define INTPTR_MIN[ \t]+INT32_MIN\n\
2487 #define INTPTR_MAX[ \t]+INT32_MAX\n\
2490 #define DARWIN_STDINT_2_TEST_CT 1
2491 static tTestDesc aDarwin_Stdint_2Tests[] = {
2492 { TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
2495 * Fix Command Arguments for Darwin_Stdint_2
2497 static const char* apzDarwin_Stdint_2Patch[] = {
2499 "#if __WORDSIZE == 64\n\
2500 #define INTPTR_MAX 9223372036854775807L\n\
2501 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2503 #define INTPTR_MAX 2147483647L\n\
2504 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2510 * Description of Darwin_Stdint_3 fix
2512 tSCC zDarwin_Stdint_3Name[] =
2516 * File name selection pattern
2518 tSCC zDarwin_Stdint_3List[] =
2519 "stdint-darwin.h\0stdint.h\0";
2521 * Machine/OS name selection pattern
2523 tSCC* apzDarwin_Stdint_3Machs[] = {
2525 (const char*)NULL };
2528 * content selection pattern - do fix if pattern found
2530 tSCC zDarwin_Stdint_3Select0[] =
2531 "#if __WORDSIZE == 64\n\
2532 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2534 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2537 #define DARWIN_STDINT_3_TEST_CT 1
2538 static tTestDesc aDarwin_Stdint_3Tests[] = {
2539 { TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2542 * Fix Command Arguments for Darwin_Stdint_3
2544 static const char* apzDarwin_Stdint_3Patch[] = {
2546 "#if __WORDSIZE == 64\n\
2547 #define UINTPTR_MAX 18446744073709551615UL\n\
2549 #define UINTPTR_MAX 4294967295UL\n\
2553 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2555 * Description of Darwin_Stdint_4 fix
2557 tSCC zDarwin_Stdint_4Name[] =
2561 * File name selection pattern
2563 tSCC zDarwin_Stdint_4List[] =
2564 "stdint-darwin.h\0stdint.h\0";
2566 * Machine/OS name selection pattern
2568 tSCC* apzDarwin_Stdint_4Machs[] = {
2570 (const char*)NULL };
2573 * content selection pattern - do fix if pattern found
2575 tSCC zDarwin_Stdint_4Select0[] =
2576 "#if __WORDSIZE == 64\n\
2577 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2579 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2582 #define DARWIN_STDINT_4_TEST_CT 1
2583 static tTestDesc aDarwin_Stdint_4Tests[] = {
2584 { TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2587 * Fix Command Arguments for Darwin_Stdint_4
2589 static const char* apzDarwin_Stdint_4Patch[] = {
2591 "#if __WORDSIZE == 64\n\
2592 #define SIZE_MAX 18446744073709551615UL\n\
2594 #define SIZE_MAX 4294967295UL\n\
2598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2600 * Description of Darwin_Stdint_5 fix
2602 tSCC zDarwin_Stdint_5Name[] =
2606 * File name selection pattern
2608 tSCC zDarwin_Stdint_5List[] =
2609 "stdint-darwin.h\0stdint.h\0";
2611 * Machine/OS name selection pattern
2613 tSCC* apzDarwin_Stdint_5Machs[] = {
2615 (const char*)NULL };
2618 * content selection pattern - do fix if pattern found
2620 tSCC zDarwin_Stdint_5Select0[] =
2621 "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2622 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2623 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2625 #define DARWIN_STDINT_5_TEST_CT 1
2626 static tTestDesc aDarwin_Stdint_5Tests[] = {
2627 { TT_EGREP, zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2630 * Fix Command Arguments for Darwin_Stdint_5
2632 static const char* apzDarwin_Stdint_5Patch[] = {
2634 "#if __WORDSIZE == 64\n\
2635 #define INTMAX_MIN (-9223372036854775807L - 1)\n\
2636 #define INTMAX_MAX 9223372036854775807L\n\
2637 #define UINTMAX_MAX 18446744073709551615UL\n\
2639 #define INTMAX_MIN (-9223372036854775807LL - 1)\n\
2640 #define INTMAX_MAX 9223372036854775807LL\n\
2641 #define UINTMAX_MAX 18446744073709551615ULL\n\
2645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2647 * Description of Darwin_Stdint_6 fix
2649 tSCC zDarwin_Stdint_6Name[] =
2653 * File name selection pattern
2655 tSCC zDarwin_Stdint_6List[] =
2656 "stdint-darwin.h\0stdint.h\0";
2658 * Machine/OS name selection pattern
2660 tSCC* apzDarwin_Stdint_6Machs[] = {
2662 (const char*)NULL };
2665 * content selection pattern - do fix if pattern found
2667 tSCC zDarwin_Stdint_6Select0[] =
2668 "#if __WORDSIZE == 64\n\
2669 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2670 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2672 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2673 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2676 #define DARWIN_STDINT_6_TEST_CT 1
2677 static tTestDesc aDarwin_Stdint_6Tests[] = {
2678 { TT_EGREP, zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2681 * Fix Command Arguments for Darwin_Stdint_6
2683 static const char* apzDarwin_Stdint_6Patch[] = {
2685 "#if __WORDSIZE == 64\n\
2686 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2687 #define PTRDIFF_MAX 9223372036854775807L\n\
2689 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2690 #define PTRDIFF_MAX 2147483647\n\
2694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2696 * Description of Darwin_Stdint_7 fix
2698 tSCC zDarwin_Stdint_7Name[] =
2702 * File name selection pattern
2704 tSCC zDarwin_Stdint_7List[] =
2705 "stdint-darwin.h\0stdint.h\0";
2707 * Machine/OS name selection pattern
2709 tSCC* apzDarwin_Stdint_7Machs[] = {
2711 (const char*)NULL };
2714 * content selection pattern - do fix if pattern found
2716 tSCC zDarwin_Stdint_7Select0[] =
2717 "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2718 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2720 #define DARWIN_STDINT_7_TEST_CT 1
2721 static tTestDesc aDarwin_Stdint_7Tests[] = {
2722 { TT_EGREP, zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2725 * Fix Command Arguments for Darwin_Stdint_7
2727 static const char* apzDarwin_Stdint_7Patch[] = {
2729 "#if __WORDSIZE == 64\n\
2730 #define INTMAX_C(v) (v ## L)\n\
2731 #define UINTMAX_C(v) (v ## UL)\n\
2733 #define INTMAX_C(v) (v ## LL)\n\
2734 #define UINTMAX_C(v) (v ## ULL)\n\
2738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2740 * Description of Dec_Intern_Asm fix
2742 tSCC zDec_Intern_AsmName[] =
2746 * File name selection pattern
2748 tSCC zDec_Intern_AsmList[] =
2751 * Machine/OS name selection pattern
2753 #define apzDec_Intern_AsmMachs (const char**)NULL
2754 #define DEC_INTERN_ASM_TEST_CT 0
2755 #define aDec_Intern_AsmTests (tTestDesc*)NULL
2758 * Fix Command Arguments for Dec_Intern_Asm
2760 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2761 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2763 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2769 * Description of Djgpp_Wchar_H fix
2771 tSCC zDjgpp_Wchar_HName[] =
2775 * File name selection pattern
2777 #define zDjgpp_Wchar_HList (char*)NULL
2779 * Machine/OS name selection pattern
2781 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2784 * content selection pattern - do fix if pattern found
2786 tSCC zDjgpp_Wchar_HSelect0[] =
2790 * content bypass pattern - skip fix if pattern found
2792 tSCC zDjgpp_Wchar_HBypass0[] =
2795 #define DJGPP_WCHAR_H_TEST_CT 2
2796 static tTestDesc aDjgpp_Wchar_HTests[] = {
2797 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2798 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2801 * Fix Command Arguments for Djgpp_Wchar_H
2803 static const char* apzDjgpp_Wchar_HPatch[] = {
2806 #include <sys/djtypes.h>",
2807 "#include <stddef.h>",
2810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2812 * Description of Ecd_Cursor fix
2814 tSCC zEcd_CursorName[] =
2818 * File name selection pattern
2820 tSCC zEcd_CursorList[] =
2821 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2823 * Machine/OS name selection pattern
2825 #define apzEcd_CursorMachs (const char**)NULL
2828 * content selection pattern - do fix if pattern found
2830 tSCC zEcd_CursorSelect0[] =
2833 #define ECD_CURSOR_TEST_CT 1
2834 static tTestDesc aEcd_CursorTests[] = {
2835 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2838 * Fix Command Arguments for Ecd_Cursor
2840 static const char* apzEcd_CursorPatch[] = {
2845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2847 * Description of Feraiseexcept_Nosse_Divbyzero fix
2849 tSCC zFeraiseexcept_Nosse_DivbyzeroName[] =
2850 "feraiseexcept_nosse_divbyzero";
2853 * File name selection pattern
2855 tSCC zFeraiseexcept_Nosse_DivbyzeroList[] =
2856 "bits/fenv.h\0*/bits/fenv.h\0";
2858 * Machine/OS name selection pattern
2860 tSCC* apzFeraiseexcept_Nosse_DivbyzeroMachs[] = {
2861 "i[34567]86-*-linux*",
2864 (const char*)NULL };
2867 * content selection pattern - do fix if pattern found
2869 tSCC zFeraiseexcept_Nosse_DivbyzeroSelect0[] =
2870 "^([\t ]*)__asm__ __volatile__ \\(\"divss %1, %0 *\" : : \"x\" \\(__f\\), \"x\" \\(__g\\)\\);$";
2873 * content bypass pattern - skip fix if pattern found
2875 tSCC zFeraiseexcept_Nosse_DivbyzeroBypass0[] =
2876 "\"fdivp .*; fwait\"";
2878 #define FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT 2
2879 static tTestDesc aFeraiseexcept_Nosse_DivbyzeroTests[] = {
2880 { TT_NEGREP, zFeraiseexcept_Nosse_DivbyzeroBypass0, (regex_t*)NULL },
2881 { TT_EGREP, zFeraiseexcept_Nosse_DivbyzeroSelect0, (regex_t*)NULL }, };
2884 * Fix Command Arguments for Feraiseexcept_Nosse_Divbyzero
2886 static const char* apzFeraiseexcept_Nosse_DivbyzeroPatch[] = {
2888 "# ifdef __SSE_MATH__\n\
2891 %1__asm__ __volatile__ (\"fdivp %%%%st, %%%%st(1); fwait\"\n\
2892 %1\t\t\t: \"=t\" (__f) : \"0\" (__f), \"u\" (__g) : \"st(1)\");\n\
2896 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2898 * Description of Feraiseexcept_Nosse_Invalid fix
2900 tSCC zFeraiseexcept_Nosse_InvalidName[] =
2901 "feraiseexcept_nosse_invalid";
2904 * File name selection pattern
2906 tSCC zFeraiseexcept_Nosse_InvalidList[] =
2907 "bits/fenv.h\0*/bits/fenv.h\0";
2909 * Machine/OS name selection pattern
2911 tSCC* apzFeraiseexcept_Nosse_InvalidMachs[] = {
2912 "i[34567]86-*-linux*",
2915 (const char*)NULL };
2918 * content selection pattern - do fix if pattern found
2920 tSCC zFeraiseexcept_Nosse_InvalidSelect0[] =
2921 "^([\t ]*)__asm__ __volatile__ \\(\"divss %0, %0 *\" : : \"x\" \\(__f\\)\\);$";
2924 * content bypass pattern - skip fix if pattern found
2926 tSCC zFeraiseexcept_Nosse_InvalidBypass0[] =
2927 "\"fdiv .*; fwait\"";
2929 #define FERAISEEXCEPT_NOSSE_INVALID_TEST_CT 2
2930 static tTestDesc aFeraiseexcept_Nosse_InvalidTests[] = {
2931 { TT_NEGREP, zFeraiseexcept_Nosse_InvalidBypass0, (regex_t*)NULL },
2932 { TT_EGREP, zFeraiseexcept_Nosse_InvalidSelect0, (regex_t*)NULL }, };
2935 * Fix Command Arguments for Feraiseexcept_Nosse_Invalid
2937 static const char* apzFeraiseexcept_Nosse_InvalidPatch[] = {
2939 "# ifdef __SSE_MATH__\n\
2942 %1__asm__ __volatile__ (\"fdiv %%%%st, %%%%st(0); fwait\"\n\
2943 %1\t\t\t: \"=t\" (__f) : \"0\" (__f));\n\
2947 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2949 * Description of Freebsd_Gcc3_Breakage fix
2951 tSCC zFreebsd_Gcc3_BreakageName[] =
2952 "freebsd_gcc3_breakage";
2955 * File name selection pattern
2957 tSCC zFreebsd_Gcc3_BreakageList[] =
2960 * Machine/OS name selection pattern
2962 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2964 (const char*)NULL };
2967 * content selection pattern - do fix if pattern found
2969 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2970 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2973 * content bypass pattern - skip fix if pattern found
2975 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2976 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2978 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2979 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2980 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2981 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2984 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2986 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2988 "%0 || __GNUC__ >= 3",
2991 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2993 * Description of Freebsd_Gcc4_Breakage fix
2995 tSCC zFreebsd_Gcc4_BreakageName[] =
2996 "freebsd_gcc4_breakage";
2999 * File name selection pattern
3001 tSCC zFreebsd_Gcc4_BreakageList[] =
3004 * Machine/OS name selection pattern
3006 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
3008 (const char*)NULL };
3011 * content selection pattern - do fix if pattern found
3013 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
3014 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
3016 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
3017 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
3018 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
3021 * Fix Command Arguments for Freebsd_Gcc4_Breakage
3023 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
3025 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
3028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3030 * Description of Glibc_C99_Inline_1 fix
3032 tSCC zGlibc_C99_Inline_1Name[] =
3033 "glibc_c99_inline_1";
3036 * File name selection pattern
3038 tSCC zGlibc_C99_Inline_1List[] =
3039 "features.h\0*/features.h\0";
3041 * Machine/OS name selection pattern
3043 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
3046 * content selection pattern - do fix if pattern found
3048 tSCC zGlibc_C99_Inline_1Select0[] =
3049 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
3051 #define GLIBC_C99_INLINE_1_TEST_CT 1
3052 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
3053 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
3056 * Fix Command Arguments for Glibc_C99_Inline_1
3058 static const char* apzGlibc_C99_Inline_1Patch[] = {
3060 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
3063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3065 * Description of Glibc_C99_Inline_1a fix
3067 tSCC zGlibc_C99_Inline_1aName[] =
3068 "glibc_c99_inline_1a";
3071 * File name selection pattern
3073 tSCC zGlibc_C99_Inline_1aList[] =
3074 "features.h\0*/features.h\0";
3076 * Machine/OS name selection pattern
3078 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
3081 * content selection pattern - do fix if pattern found
3083 tSCC zGlibc_C99_Inline_1aSelect0[] =
3084 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
3085 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
3087 #define GLIBC_C99_INLINE_1A_TEST_CT 1
3088 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
3089 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
3092 * Fix Command Arguments for Glibc_C99_Inline_1a
3094 static const char* apzGlibc_C99_Inline_1aPatch[] = {
3096 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
3100 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3102 * Description of Glibc_C99_Inline_2 fix
3104 tSCC zGlibc_C99_Inline_2Name[] =
3105 "glibc_c99_inline_2";
3108 * File name selection pattern
3110 tSCC zGlibc_C99_Inline_2List[] =
3111 "sys/stat.h\0*/sys/stat.h\0";
3113 * Machine/OS name selection pattern
3115 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
3118 * content selection pattern - do fix if pattern found
3120 tSCC zGlibc_C99_Inline_2Select0[] =
3121 "extern __inline__ int";
3123 #define GLIBC_C99_INLINE_2_TEST_CT 1
3124 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
3125 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
3128 * Fix Command Arguments for Glibc_C99_Inline_2
3130 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
3131 "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3134 __inline__ int \\1/",
3135 "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3138 __inline__ int \\1/",
3139 "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3142 __inline__ int \\1/",
3143 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3146 __inline__ int __REDIRECT\\1 (\\2/",
3147 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
3150 __inline__ int __REDIRECT\\1 (\\2/",
3151 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
3157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3159 * Description of Glibc_C99_Inline_3 fix
3161 tSCC zGlibc_C99_Inline_3Name[] =
3162 "glibc_c99_inline_3";
3165 * File name selection pattern
3167 tSCC zGlibc_C99_Inline_3List[] =
3168 "bits/string2.h\0*/bits/string2.h\0";
3170 * Machine/OS name selection pattern
3172 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
3175 * content selection pattern - do fix if pattern found
3177 tSCC zGlibc_C99_Inline_3Select0[] =
3181 * content bypass pattern - skip fix if pattern found
3183 tSCC zGlibc_C99_Inline_3Bypass0[] =
3184 "__extern_inline|__GNU_STDC_INLINE__";
3186 #define GLIBC_C99_INLINE_3_TEST_CT 2
3187 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
3188 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
3189 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
3192 * Fix Command Arguments for Glibc_C99_Inline_3
3194 static const char* apzGlibc_C99_Inline_3Patch[] = {
3196 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
3197 "^# ifdef __cplusplus$",
3200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3202 * Description of Glibc_C99_Inline_4 fix
3204 tSCC zGlibc_C99_Inline_4Name[] =
3205 "glibc_c99_inline_4";
3208 * File name selection pattern
3210 tSCC zGlibc_C99_Inline_4List[] =
3211 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
3213 * Machine/OS name selection pattern
3215 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
3218 * content selection pattern - do fix if pattern found
3220 tSCC zGlibc_C99_Inline_4Select0[] =
3221 "(^| )extern __inline";
3224 * content bypass pattern - skip fix if pattern found
3226 tSCC zGlibc_C99_Inline_4Bypass0[] =
3227 "__extern_inline|__gnu_inline__";
3229 #define GLIBC_C99_INLINE_4_TEST_CT 2
3230 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
3231 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
3232 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
3235 * Fix Command Arguments for Glibc_C99_Inline_4
3237 static const char* apzGlibc_C99_Inline_4Patch[] = {
3239 "%0 __attribute__ ((__gnu_inline__))",
3242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3244 * Description of Glibc_Mutex_Init fix
3246 tSCC zGlibc_Mutex_InitName[] =
3250 * File name selection pattern
3252 tSCC zGlibc_Mutex_InitList[] =
3255 * Machine/OS name selection pattern
3257 #define apzGlibc_Mutex_InitMachs (const char**)NULL
3260 * content selection pattern - do fix if pattern found
3262 tSCC zGlibc_Mutex_InitSelect0[] =
3263 "\\{ *\\{ *0, *\\} *\\}";
3265 #define GLIBC_MUTEX_INIT_TEST_CT 1
3266 static tTestDesc aGlibc_Mutex_InitTests[] = {
3267 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
3270 * Fix Command Arguments for Glibc_Mutex_Init
3272 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
3273 "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
3275 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
3277 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
3278 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
3279 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
3280 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3281 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
3282 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
3283 "-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\
3285 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3288 { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
3290 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
3291 "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
3294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3296 * Description of Glibc_Stdint fix
3298 tSCC zGlibc_StdintName[] =
3302 * File name selection pattern
3304 tSCC zGlibc_StdintList[] =
3307 * Machine/OS name selection pattern
3309 #define apzGlibc_StdintMachs (const char**)NULL
3312 * content selection pattern - do fix if pattern found
3314 tSCC zGlibc_StdintSelect0[] =
3317 #define GLIBC_STDINT_TEST_CT 1
3318 static tTestDesc aGlibc_StdintTests[] = {
3319 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
3322 * Fix Command Arguments for Glibc_Stdint
3324 static const char* apzGlibc_StdintPatch[] = {
3326 "# define UINT8_C(c)\tc\n\
3327 # define UINT16_C(c)\tc",
3328 "# define UINT8_C\\(c\\)\tc ## U\n\
3329 # define UINT16_C\\(c\\)\tc ## U",
3332 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3334 * Description of Glibc_Strncpy fix
3336 tSCC zGlibc_StrncpyName[] =
3340 * File name selection pattern
3342 tSCC zGlibc_StrncpyList[] =
3343 "bits/string2.h\0*/bits/string2.h\0";
3345 * Machine/OS name selection pattern
3347 #define apzGlibc_StrncpyMachs (const char**)NULL
3350 * content bypass pattern - skip fix if pattern found
3352 tSCC zGlibc_StrncpyBypass0[] =
3353 "__builtin_strncpy";
3355 #define GLIBC_STRNCPY_TEST_CT 1
3356 static tTestDesc aGlibc_StrncpyTests[] = {
3357 { TT_NEGREP, zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
3360 * Fix Command Arguments for Glibc_Strncpy
3362 static const char* apzGlibc_StrncpyPatch[] = {
3364 "# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
3365 "# define strncpy([^\n\
3371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3373 * Description of Glibc_Tgmath fix
3375 tSCC zGlibc_TgmathName[] =
3379 * File name selection pattern
3381 tSCC zGlibc_TgmathList[] =
3384 * Machine/OS name selection pattern
3386 #define apzGlibc_TgmathMachs (const char**)NULL
3389 * content selection pattern - do fix if pattern found
3391 tSCC zGlibc_TgmathSelect0[] =
3392 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
3395 * content bypass pattern - skip fix if pattern found
3397 tSCC zGlibc_TgmathBypass0[] =
3398 "__floating_type\\(type\\) \\\\\n\
3399 .*__builtin_classify_type";
3401 #define GLIBC_TGMATH_TEST_CT 2
3402 static tTestDesc aGlibc_TgmathTests[] = {
3403 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
3404 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
3407 * Fix Command Arguments for Glibc_Tgmath
3409 static const char* apzGlibc_TgmathPatch[] = {
3411 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
3414 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3416 * Description of Gnu_Types fix
3418 tSCC zGnu_TypesName[] =
3422 * File name selection pattern
3424 tSCC zGnu_TypesList[] =
3425 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
3427 * Machine/OS name selection pattern
3429 tSCC* apzGnu_TypesMachs[] = {
3430 "*-*-solaris2.1[0-9]*",
3431 (const char*)NULL };
3434 * content selection pattern - do fix if pattern found
3436 tSCC zGnu_TypesSelect0[] =
3437 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
3440 * content bypass pattern - skip fix if pattern found
3442 tSCC zGnu_TypesBypass0[] =
3443 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
3445 #define GNU_TYPES_TEST_CT 2
3446 static tTestDesc aGnu_TypesTests[] = {
3447 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
3448 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
3451 * Fix Command Arguments for Gnu_Types
3453 static const char* apzGnu_TypesPatch[] = {
3457 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3459 * Description of Hp_Inline fix
3461 tSCC zHp_InlineName[] =
3465 * File name selection pattern
3467 tSCC zHp_InlineList[] =
3468 "sys/spinlock.h\0machine/machparam.h\0";
3470 * Machine/OS name selection pattern
3472 #define apzHp_InlineMachs (const char**)NULL
3475 * content selection pattern - do fix if pattern found
3477 tSCC zHp_InlineSelect0[] =
3478 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
3480 #define HP_INLINE_TEST_CT 1
3481 static tTestDesc aHp_InlineTests[] = {
3482 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
3485 * Fix Command Arguments for Hp_Inline
3487 static const char* apzHp_InlinePatch[] = {
3490 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
3493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3495 * Description of Hp_Sysfile fix
3497 tSCC zHp_SysfileName[] =
3501 * File name selection pattern
3503 tSCC zHp_SysfileList[] =
3506 * Machine/OS name selection pattern
3508 #define apzHp_SysfileMachs (const char**)NULL
3511 * content selection pattern - do fix if pattern found
3513 tSCC zHp_SysfileSelect0[] =
3516 #define HP_SYSFILE_TEST_CT 1
3517 static tTestDesc aHp_SysfileTests[] = {
3518 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
3521 * Fix Command Arguments for Hp_Sysfile
3523 static const char* apzHp_SysfilePatch[] = {
3525 "(struct file *, ...)",
3529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3531 * Description of Hppa_Hpux_Fp_Macros fix
3533 tSCC zHppa_Hpux_Fp_MacrosName[] =
3534 "hppa_hpux_fp_macros";
3537 * File name selection pattern
3539 tSCC zHppa_Hpux_Fp_MacrosList[] =
3542 * Machine/OS name selection pattern
3544 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
3546 (const char*)NULL };
3549 * content selection pattern - do fix if pattern found
3551 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
3552 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
3553 #[ \t]*define[ \t]*FP_ZERO.*\n\
3554 #[ \t]*define[ \t]*FP_INFINITE.*\n\
3555 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
3556 #[ \t]*define[ \t]*FP_NAN.*\n";
3558 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
3559 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
3560 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
3563 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
3565 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
3567 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
3568 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
3569 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
3571 #ifdef _INCLUDE_HPUX_SOURCE\n",
3574 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3576 * Description of Hpux10_Cpp_Pow_Inline fix
3578 tSCC zHpux10_Cpp_Pow_InlineName[] =
3579 "hpux10_cpp_pow_inline";
3582 * File name selection pattern
3584 tSCC zHpux10_Cpp_Pow_InlineList[] =
3585 "fixinc-test-limits.h\0math.h\0";
3587 * Machine/OS name selection pattern
3589 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
3592 * content selection pattern - do fix if pattern found
3594 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
3595 "^# +ifdef +__cplusplus\n\
3597 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
3598 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
3600 +extern +\"C\" +\\{\n\
3604 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
3605 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
3606 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3609 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
3611 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
3616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3618 * Description of Hpux11_Cpp_Pow_Inline fix
3620 tSCC zHpux11_Cpp_Pow_InlineName[] =
3621 "hpux11_cpp_pow_inline";
3624 * File name selection pattern
3626 tSCC zHpux11_Cpp_Pow_InlineList[] =
3629 * Machine/OS name selection pattern
3631 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
3634 * content selection pattern - do fix if pattern found
3636 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
3637 " +inline double pow\\(double d,int expon\\) \\{\n\
3638 +return pow\\(d, \\(double\\)expon\\);\n\
3641 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
3642 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3643 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3646 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3648 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3653 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3655 * Description of Hpux10_Ctype_Declarations1 fix
3657 tSCC zHpux10_Ctype_Declarations1Name[] =
3658 "hpux10_ctype_declarations1";
3661 * File name selection pattern
3663 tSCC zHpux10_Ctype_Declarations1List[] =
3666 * Machine/OS name selection pattern
3668 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3671 * content selection pattern - do fix if pattern found
3673 tSCC zHpux10_Ctype_Declarations1Select0[] =
3674 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3677 * content bypass pattern - skip fix if pattern found
3679 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3680 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3682 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
3683 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3684 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3685 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3688 * Fix Command Arguments for Hpux10_Ctype_Declarations1
3690 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3692 "#ifdef _PROTOTYPES\n\
3693 extern int __tolower(int);\n\
3694 extern int __toupper(int);\n\
3695 #else /* NOT _PROTOTYPES */\n\
3696 extern int __tolower();\n\
3697 extern int __toupper();\n\
3698 #endif /* _PROTOTYPES */\n\n\
3702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3704 * Description of Hpux10_Ctype_Declarations2 fix
3706 tSCC zHpux10_Ctype_Declarations2Name[] =
3707 "hpux10_ctype_declarations2";
3710 * File name selection pattern
3712 tSCC zHpux10_Ctype_Declarations2List[] =
3715 * Machine/OS name selection pattern
3717 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3720 * content selection pattern - do fix if pattern found
3722 tSCC zHpux10_Ctype_Declarations2Select0[] =
3723 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3726 * content bypass pattern - skip fix if pattern found
3728 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3729 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3731 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
3732 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3733 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3734 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3737 * Fix Command Arguments for Hpux10_Ctype_Declarations2
3739 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3742 #ifdef _PROTOTYPES\n\
3743 extern int _isalnum(int);\n\
3744 extern int _isalpha(int);\n\
3745 extern int _iscntrl(int);\n\
3746 extern int _isdigit(int);\n\
3747 extern int _isgraph(int);\n\
3748 extern int _islower(int);\n\
3749 extern int _isprint(int);\n\
3750 extern int _ispunct(int);\n\
3751 extern int _isspace(int);\n\
3752 extern int _isupper(int);\n\
3753 extern int _isxdigit(int);\n\
3754 # else /* not _PROTOTYPES */\n\
3755 extern int _isalnum();\n\
3756 extern int _isalpha();\n\
3757 extern int _iscntrl();\n\
3758 extern int _isdigit();\n\
3759 extern int _isgraph();\n\
3760 extern int _islower();\n\
3761 extern int _isprint();\n\
3762 extern int _ispunct();\n\
3763 extern int _isspace();\n\
3764 extern int _isupper();\n\
3765 extern int _isxdigit();\n\
3766 #endif /* _PROTOTYPES */\n",
3769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3771 * Description of Hpux10_Stdio_Declarations fix
3773 tSCC zHpux10_Stdio_DeclarationsName[] =
3774 "hpux10_stdio_declarations";
3777 * File name selection pattern
3779 tSCC zHpux10_Stdio_DeclarationsList[] =
3782 * Machine/OS name selection pattern
3784 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3787 * content selection pattern - do fix if pattern found
3789 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3790 "^#[ \t]*define _iob[ \t]*__iob";
3793 * content bypass pattern - skip fix if pattern found
3795 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3796 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3798 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
3799 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3800 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3801 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3804 * Fix Command Arguments for Hpux10_Stdio_Declarations
3806 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3809 # if defined(__STDC__) || defined(__cplusplus)\n\
3810 extern int snprintf(char *, size_t, const char *, ...);\n\
3811 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3812 # else /* not __STDC__) || __cplusplus */\n\
3813 extern int snprintf();\n\
3814 extern int vsnprintf();\n\
3815 # endif /* __STDC__) || __cplusplus */\n",
3818 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3820 * Description of Hpux11_Abs fix
3822 tSCC zHpux11_AbsName[] =
3826 * File name selection pattern
3828 tSCC zHpux11_AbsList[] =
3831 * Machine/OS name selection pattern
3833 tSCC* apzHpux11_AbsMachs[] = {
3835 (const char*)NULL };
3838 * content selection pattern - do fix if pattern found
3840 tSCC zHpux11_AbsSelect0[] =
3841 "ifndef _MATH_INCLUDED";
3843 #define HPUX11_ABS_TEST_CT 1
3844 static tTestDesc aHpux11_AbsTests[] = {
3845 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
3848 * Fix Command Arguments for Hpux11_Abs
3850 static const char* apzHpux11_AbsPatch[] = {
3852 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3855 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3857 * Description of Hpux11_Extern_Sendfile fix
3859 tSCC zHpux11_Extern_SendfileName[] =
3860 "hpux11_extern_sendfile";
3863 * File name selection pattern
3865 tSCC zHpux11_Extern_SendfileList[] =
3868 * Machine/OS name selection pattern
3870 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3871 "*-hp-hpux11.[12]*",
3872 (const char*)NULL };
3875 * content selection pattern - do fix if pattern found
3877 tSCC zHpux11_Extern_SendfileSelect0[] =
3878 "^[ \t]*extern sbsize_t sendfile.*\n\
3881 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3882 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3883 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3886 * Fix Command Arguments for Hpux11_Extern_Sendfile
3888 static const char* apzHpux11_Extern_SendfilePatch[] = {
3890 "#ifndef _APP32_64BIT_OFF_T\n\
3894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3896 * Description of Hpux11_Extern_Sendpath fix
3898 tSCC zHpux11_Extern_SendpathName[] =
3899 "hpux11_extern_sendpath";
3902 * File name selection pattern
3904 tSCC zHpux11_Extern_SendpathList[] =
3907 * Machine/OS name selection pattern
3909 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3910 "*-hp-hpux11.[12]*",
3911 (const char*)NULL };
3914 * content selection pattern - do fix if pattern found
3916 tSCC zHpux11_Extern_SendpathSelect0[] =
3917 "^[ \t]*extern sbsize_t sendpath.*\n\
3920 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3921 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3922 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3925 * Fix Command Arguments for Hpux11_Extern_Sendpath
3927 static const char* apzHpux11_Extern_SendpathPatch[] = {
3929 "#ifndef _APP32_64BIT_OFF_T\n\
3933 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3935 * Description of Hpux11_Fabsf fix
3937 tSCC zHpux11_FabsfName[] =
3941 * File name selection pattern
3943 tSCC zHpux11_FabsfList[] =
3946 * Machine/OS name selection pattern
3948 #define apzHpux11_FabsfMachs (const char**)NULL
3951 * content selection pattern - do fix if pattern found
3953 tSCC zHpux11_FabsfSelect0[] =
3954 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3957 * content bypass pattern - skip fix if pattern found
3959 tSCC zHpux11_FabsfBypass0[] =
3962 #define HPUX11_FABSF_TEST_CT 2
3963 static tTestDesc aHpux11_FabsfTests[] = {
3964 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
3965 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3968 * Fix Command Arguments for Hpux11_Fabsf
3970 static const char* apzHpux11_FabsfPatch[] = {
3972 "#ifndef __cplusplus\n\
3977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3979 * Description of Hpux11_Pthread_Const fix
3981 tSCC zHpux11_Pthread_ConstName[] =
3982 "hpux11_pthread_const";
3985 * File name selection pattern
3987 tSCC zHpux11_Pthread_ConstList[] =
3990 * Machine/OS name selection pattern
3992 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3993 "*-hp-hpux11.[0-3]*",
3994 (const char*)NULL };
3997 * content selection pattern - do fix if pattern found
3999 tSCC zHpux11_Pthread_ConstSelect0[] =
4000 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
4002 #define HPUX11_PTHREAD_CONST_TEST_CT 1
4003 static tTestDesc aHpux11_Pthread_ConstTests[] = {
4004 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
4007 * Fix Command Arguments for Hpux11_Pthread_Const
4009 static const char* apzHpux11_Pthread_ConstPatch[] = {
4011 "#define __POINTER_SET\t\t((void *) 1L)",
4014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4016 * Description of Hpux11_Size_T fix
4018 tSCC zHpux11_Size_TName[] =
4022 * File name selection pattern
4024 #define zHpux11_Size_TList (char*)NULL
4026 * Machine/OS name selection pattern
4028 tSCC* apzHpux11_Size_TMachs[] = {
4030 (const char*)NULL };
4033 * content selection pattern - do fix if pattern found
4035 tSCC zHpux11_Size_TSelect0[] =
4038 #define HPUX11_SIZE_T_TEST_CT 1
4039 static tTestDesc aHpux11_Size_TTests[] = {
4040 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
4043 * Fix Command Arguments for Hpux11_Size_T
4045 static const char* apzHpux11_Size_TPatch[] = {
4050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4052 * Description of Hpux11_Snprintf fix
4054 tSCC zHpux11_SnprintfName[] =
4058 * File name selection pattern
4060 tSCC zHpux11_SnprintfList[] =
4063 * Machine/OS name selection pattern
4065 #define apzHpux11_SnprintfMachs (const char**)NULL
4068 * content selection pattern - do fix if pattern found
4070 tSCC zHpux11_SnprintfSelect0[] =
4071 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
4073 #define HPUX11_SNPRINTF_TEST_CT 1
4074 static tTestDesc aHpux11_SnprintfTests[] = {
4075 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
4078 * Fix Command Arguments for Hpux11_Snprintf
4080 static const char* apzHpux11_SnprintfPatch[] = {
4085 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4087 * Description of Hpux11_Vsnprintf fix
4089 tSCC zHpux11_VsnprintfName[] =
4093 * File name selection pattern
4095 tSCC zHpux11_VsnprintfList[] =
4098 * Machine/OS name selection pattern
4100 #define apzHpux11_VsnprintfMachs (const char**)NULL
4103 * content selection pattern - do fix if pattern found
4105 tSCC zHpux11_VsnprintfSelect0[] =
4106 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
4108 #define HPUX11_VSNPRINTF_TEST_CT 1
4109 static tTestDesc aHpux11_VsnprintfTests[] = {
4110 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
4113 * Fix Command Arguments for Hpux11_Vsnprintf
4115 static const char* apzHpux11_VsnprintfPatch[] = {
4120 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4122 * Description of Hpux8_Bogus_Inlines fix
4124 tSCC zHpux8_Bogus_InlinesName[] =
4125 "hpux8_bogus_inlines";
4128 * File name selection pattern
4130 tSCC zHpux8_Bogus_InlinesList[] =
4133 * Machine/OS name selection pattern
4135 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
4138 * content selection pattern - do fix if pattern found
4140 tSCC zHpux8_Bogus_InlinesSelect0[] =
4144 * content bypass pattern - skip fix if pattern found
4146 tSCC zHpux8_Bogus_InlinesBypass0[] =
4149 #define HPUX8_BOGUS_INLINES_TEST_CT 2
4150 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
4151 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
4152 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
4155 * Fix Command Arguments for Hpux8_Bogus_Inlines
4157 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
4158 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
4159 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
4160 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
4161 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
4164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4166 * Description of Hpux_C99_Intptr fix
4168 tSCC zHpux_C99_IntptrName[] =
4172 * File name selection pattern
4174 tSCC zHpux_C99_IntptrList[] =
4175 "stdint-hpux11.h\0stdint.h\0";
4177 * Machine/OS name selection pattern
4179 tSCC* apzHpux_C99_IntptrMachs[] = {
4181 (const char*)NULL };
4182 #define HPUX_C99_INTPTR_TEST_CT 0
4183 #define aHpux_C99_IntptrTests (tTestDesc*)NULL
4186 * Fix Command Arguments for Hpux_C99_Intptr
4188 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
4189 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
4190 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4191 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
4192 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
4193 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
4194 "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
4197 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4199 * Description of Hpux_C99_Inttypes fix
4201 tSCC zHpux_C99_InttypesName[] =
4202 "hpux_c99_inttypes";
4205 * File name selection pattern
4207 tSCC zHpux_C99_InttypesList[] =
4208 "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
4210 * Machine/OS name selection pattern
4212 tSCC* apzHpux_C99_InttypesMachs[] = {
4213 "*-hp-hpux11.[23]*",
4214 (const char*)NULL };
4215 #define HPUX_C99_INTTYPES_TEST_CT 0
4216 #define aHpux_C99_InttypesTests (tTestDesc*)NULL
4219 * Fix Command Arguments for Hpux_C99_Inttypes
4221 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4222 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4223 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4224 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4225 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4228 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4230 * Description of Hpux_C99_Inttypes2 fix
4232 tSCC zHpux_C99_Inttypes2Name[] =
4233 "hpux_c99_inttypes2";
4236 * File name selection pattern
4238 tSCC zHpux_C99_Inttypes2List[] =
4239 "stdint-hpux11.h\0stdint.h\0";
4241 * Machine/OS name selection pattern
4243 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4245 (const char*)NULL };
4246 #define HPUX_C99_INTTYPES2_TEST_CT 0
4247 #define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL
4250 * Fix Command Arguments for Hpux_C99_Inttypes2
4252 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4253 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4254 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4255 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4256 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4259 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4261 * Description of Hpux_Ctype_Macros fix
4263 tSCC zHpux_Ctype_MacrosName[] =
4264 "hpux_ctype_macros";
4267 * File name selection pattern
4269 tSCC zHpux_Ctype_MacrosList[] =
4272 * Machine/OS name selection pattern
4274 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
4277 * content selection pattern - do fix if pattern found
4279 tSCC zHpux_Ctype_MacrosSelect0[] =
4280 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
4282 #define HPUX_CTYPE_MACROS_TEST_CT 1
4283 static tTestDesc aHpux_Ctype_MacrosTests[] = {
4284 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
4287 * Fix Command Arguments for Hpux_Ctype_Macros
4289 static const char* apzHpux_Ctype_MacrosPatch[] = {
4294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4296 * Description of Hpux_Extern_Errno fix
4298 tSCC zHpux_Extern_ErrnoName[] =
4299 "hpux_extern_errno";
4302 * File name selection pattern
4304 tSCC zHpux_Extern_ErrnoList[] =
4307 * Machine/OS name selection pattern
4309 tSCC* apzHpux_Extern_ErrnoMachs[] = {
4311 "*-hp-hpux11.[0-2]*",
4312 (const char*)NULL };
4315 * content selection pattern - do fix if pattern found
4317 tSCC zHpux_Extern_ErrnoSelect0[] =
4318 "^[ \t]*extern int errno;$";
4320 #define HPUX_EXTERN_ERRNO_TEST_CT 1
4321 static tTestDesc aHpux_Extern_ErrnoTests[] = {
4322 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
4325 * Fix Command Arguments for Hpux_Extern_Errno
4327 static const char* apzHpux_Extern_ErrnoPatch[] = {
4329 "#ifdef __cplusplus\n\
4333 #ifdef __cplusplus\n\
4338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4340 * Description of Hpux_Htonl fix
4342 tSCC zHpux_HtonlName[] =
4346 * File name selection pattern
4348 tSCC zHpux_HtonlList[] =
4351 * Machine/OS name selection pattern
4353 #define apzHpux_HtonlMachs (const char**)NULL
4356 * content selection pattern - do fix if pattern found
4358 tSCC zHpux_HtonlSelect0[] =
4359 "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
4361 \\* Macros for number representation conversion\\.\n\
4365 #define HPUX_HTONL_TEST_CT 1
4366 static tTestDesc aHpux_HtonlTests[] = {
4367 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
4370 * Fix Command Arguments for Hpux_Htonl
4372 static const char* apzHpux_HtonlPatch[] = {
4378 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4380 * Description of Hpux_Imaginary_I fix
4382 tSCC zHpux_Imaginary_IName[] =
4386 * File name selection pattern
4388 tSCC zHpux_Imaginary_IList[] =
4391 * Machine/OS name selection pattern
4393 tSCC* apzHpux_Imaginary_IMachs[] = {
4395 (const char*)NULL };
4398 * content selection pattern - do fix if pattern found
4400 tSCC zHpux_Imaginary_ISelect0[] =
4401 "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4403 #define HPUX_IMAGINARY_I_TEST_CT 1
4404 static tTestDesc aHpux_Imaginary_ITests[] = {
4405 { TT_EGREP, zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4408 * Fix Command Arguments for Hpux_Imaginary_I
4410 static const char* apzHpux_Imaginary_IPatch[] = {
4412 "#define _Complex_I (__extension__ 1.0iF)",
4415 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4417 * Description of Hpux_Inttype_Int8_T fix
4419 tSCC zHpux_Inttype_Int8_TName[] =
4420 "hpux_inttype_int8_t";
4423 * File name selection pattern
4425 tSCC zHpux_Inttype_Int8_TList[] =
4426 "sys/_inttypes.h\0";
4428 * Machine/OS name selection pattern
4430 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4432 (const char*)NULL };
4435 * content selection pattern - do fix if pattern found
4437 tSCC zHpux_Inttype_Int8_TSelect0[] =
4438 "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4440 #define HPUX_INTTYPE_INT8_T_TEST_CT 1
4441 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4442 { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4445 * Fix Command Arguments for Hpux_Inttype_Int8_T
4447 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4449 "typedef signed char int%18_t;",
4452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4454 * Description of Hpux_Long_Double fix
4456 tSCC zHpux_Long_DoubleName[] =
4460 * File name selection pattern
4462 tSCC zHpux_Long_DoubleList[] =
4465 * Machine/OS name selection pattern
4467 tSCC* apzHpux_Long_DoubleMachs[] = {
4469 "*-*-hpux11.[012]*",
4470 (const char*)NULL };
4473 * content selection pattern - do fix if pattern found
4475 tSCC zHpux_Long_DoubleSelect0[] =
4476 "extern[ \t]long_double[ \t]strtold";
4479 * content bypass pattern - skip fix if pattern found
4481 tSCC zHpux_Long_DoubleBypass0[] =
4484 #define HPUX_LONG_DOUBLE_TEST_CT 2
4485 static tTestDesc aHpux_Long_DoubleTests[] = {
4486 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
4487 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
4490 * Fix Command Arguments for Hpux_Long_Double
4492 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
4493 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
4494 "-e", "s/long_double/long double/g",
4497 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4499 * Description of Hpux_Long_Double_2 fix
4501 tSCC zHpux_Long_Double_2Name[] =
4502 "hpux_long_double_2";
4505 * File name selection pattern
4507 tSCC zHpux_Long_Double_2List[] =
4510 * Machine/OS name selection pattern
4512 tSCC* apzHpux_Long_Double_2Machs[] = {
4513 "hppa*-*-hpux11.3*",
4514 (const char*)NULL };
4517 * content selection pattern - do fix if pattern found
4519 tSCC zHpux_Long_Double_2Select0[] =
4520 "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
4522 #define HPUX_LONG_DOUBLE_2_TEST_CT 1
4523 static tTestDesc aHpux_Long_Double_2Tests[] = {
4524 { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
4527 * Fix Command Arguments for Hpux_Long_Double_2
4529 static const char* apzHpux_Long_Double_2Patch[] = {
4531 "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
4534 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4536 * Description of Hpux_Pthread_Initializers fix
4538 tSCC zHpux_Pthread_InitializersName[] =
4539 "hpux_pthread_initializers";
4542 * File name selection pattern
4544 tSCC zHpux_Pthread_InitializersList[] =
4547 * Machine/OS name selection pattern
4549 tSCC* apzHpux_Pthread_InitializersMachs[] = {
4550 "*-hp-hpux11.[0-3]*",
4551 (const char*)NULL };
4552 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
4553 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
4556 * Fix Command Arguments for Hpux_Pthread_Initializers
4558 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
4559 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
4560 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
4561 "-e", "/^[ \t]*0$/d",
4562 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
4563 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
4564 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
4565 "-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\\\\@",
4566 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
4567 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
4568 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
4569 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
4570 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
4571 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
4574 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4576 * Description of Hpux_Spu_Info fix
4578 tSCC zHpux_Spu_InfoName[] =
4582 * File name selection pattern
4584 tSCC zHpux_Spu_InfoList[] =
4585 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
4587 * Machine/OS name selection pattern
4589 tSCC* apzHpux_Spu_InfoMachs[] = {
4591 (const char*)NULL };
4594 * content selection pattern - do fix if pattern found
4596 tSCC zHpux_Spu_InfoSelect0[] =
4597 "^.*extern.*spu_info.*";
4599 #define HPUX_SPU_INFO_TEST_CT 1
4600 static tTestDesc aHpux_Spu_InfoTests[] = {
4601 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
4604 * Fix Command Arguments for Hpux_Spu_Info
4606 static const char* apzHpux_Spu_InfoPatch[] = {
4613 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4615 * Description of Hpux_Stdint_Least_Fast fix
4617 tSCC zHpux_Stdint_Least_FastName[] =
4618 "hpux_stdint_least_fast";
4621 * File name selection pattern
4623 tSCC zHpux_Stdint_Least_FastList[] =
4624 "stdint-hpux11.h\0stdint.h\0";
4626 * Machine/OS name selection pattern
4628 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
4630 (const char*)NULL };
4633 * content selection pattern - do fix if pattern found
4635 tSCC zHpux_Stdint_Least_FastSelect0[] =
4636 "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
4638 #define HPUX_STDINT_LEAST_FAST_TEST_CT 1
4639 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
4640 { TT_EGREP, zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
4643 * Fix Command Arguments for Hpux_Stdint_Least_Fast
4645 static const char* apzHpux_Stdint_Least_FastPatch[] = {
4647 "# define\tUINT_%164_MAX\t__UINT64_MAX__",
4650 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4652 * Description of Hpux_Systime fix
4654 tSCC zHpux_SystimeName[] =
4658 * File name selection pattern
4660 tSCC zHpux_SystimeList[] =
4663 * Machine/OS name selection pattern
4665 #define apzHpux_SystimeMachs (const char**)NULL
4668 * content selection pattern - do fix if pattern found
4670 tSCC zHpux_SystimeSelect0[] =
4671 "^extern struct sigevent;";
4673 #define HPUX_SYSTIME_TEST_CT 1
4674 static tTestDesc aHpux_SystimeTests[] = {
4675 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
4678 * Fix Command Arguments for Hpux_Systime
4680 static const char* apzHpux_SystimePatch[] = {
4685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4687 * Description of Huge_Val_Hex fix
4689 tSCC zHuge_Val_HexName[] =
4693 * File name selection pattern
4695 tSCC zHuge_Val_HexList[] =
4696 "bits/huge_val.h\0*/bits/huge_val.h\0";
4698 * Machine/OS name selection pattern
4700 #define apzHuge_Val_HexMachs (const char**)NULL
4703 * content selection pattern - do fix if pattern found
4705 tSCC zHuge_Val_HexSelect0[] =
4706 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4709 * content bypass pattern - skip fix if pattern found
4711 tSCC zHuge_Val_HexBypass0[] =
4712 "__builtin_huge_val";
4714 #define HUGE_VAL_HEX_TEST_CT 2
4715 static tTestDesc aHuge_Val_HexTests[] = {
4716 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
4717 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4720 * Fix Command Arguments for Huge_Val_Hex
4722 static const char* apzHuge_Val_HexPatch[] = {
4724 "#define HUGE_VAL (__builtin_huge_val())\n",
4727 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4729 * Description of Huge_Valf_Hex fix
4731 tSCC zHuge_Valf_HexName[] =
4735 * File name selection pattern
4737 tSCC zHuge_Valf_HexList[] =
4738 "bits/huge_val.h\0*/bits/huge_val.h\0";
4740 * Machine/OS name selection pattern
4742 #define apzHuge_Valf_HexMachs (const char**)NULL
4745 * content selection pattern - do fix if pattern found
4747 tSCC zHuge_Valf_HexSelect0[] =
4748 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4751 * content bypass pattern - skip fix if pattern found
4753 tSCC zHuge_Valf_HexBypass0[] =
4754 "__builtin_huge_valf";
4756 #define HUGE_VALF_HEX_TEST_CT 2
4757 static tTestDesc aHuge_Valf_HexTests[] = {
4758 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
4759 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4762 * Fix Command Arguments for Huge_Valf_Hex
4764 static const char* apzHuge_Valf_HexPatch[] = {
4766 "#define HUGE_VALF (__builtin_huge_valf())\n",
4769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4771 * Description of Huge_Vall_Hex fix
4773 tSCC zHuge_Vall_HexName[] =
4777 * File name selection pattern
4779 tSCC zHuge_Vall_HexList[] =
4780 "bits/huge_val.h\0*/bits/huge_val.h\0";
4782 * Machine/OS name selection pattern
4784 #define apzHuge_Vall_HexMachs (const char**)NULL
4787 * content selection pattern - do fix if pattern found
4789 tSCC zHuge_Vall_HexSelect0[] =
4790 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4793 * content bypass pattern - skip fix if pattern found
4795 tSCC zHuge_Vall_HexBypass0[] =
4796 "__builtin_huge_vall";
4798 #define HUGE_VALL_HEX_TEST_CT 2
4799 static tTestDesc aHuge_Vall_HexTests[] = {
4800 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
4801 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4804 * Fix Command Arguments for Huge_Vall_Hex
4806 static const char* apzHuge_Vall_HexPatch[] = {
4808 "#define HUGE_VALL (__builtin_huge_vall())\n",
4811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4813 * Description of Int_Abort_Free_And_Exit fix
4815 tSCC zInt_Abort_Free_And_ExitName[] =
4816 "int_abort_free_and_exit";
4819 * File name selection pattern
4821 tSCC zInt_Abort_Free_And_ExitList[] =
4824 * Machine/OS name selection pattern
4826 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4829 * content selection pattern - do fix if pattern found
4831 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4832 "int[ \t]+(abort|free|exit)[ \t]*\\(";
4835 * content bypass pattern - skip fix if pattern found
4837 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4838 "_CLASSIC_ANSI_TYPES";
4840 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
4841 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4842 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4843 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4846 * Fix Command Arguments for Int_Abort_Free_And_Exit
4848 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4853 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4855 * Description of Io_Quotes_Def fix
4857 tSCC zIo_Quotes_DefName[] =
4861 * File name selection pattern
4863 #define zIo_Quotes_DefList (char*)NULL
4865 * Machine/OS name selection pattern
4867 #define apzIo_Quotes_DefMachs (const char**)NULL
4870 * content selection pattern - do fix if pattern found
4872 tSCC zIo_Quotes_DefSelect0[] =
4873 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4875 #define IO_QUOTES_DEF_TEST_CT 1
4876 static tTestDesc aIo_Quotes_DefTests[] = {
4877 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4880 * Fix Command Arguments for Io_Quotes_Def
4882 static const char* apzIo_Quotes_DefPatch[] = {
4887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4889 * Description of Io_Quotes_Use fix
4891 tSCC zIo_Quotes_UseName[] =
4895 * File name selection pattern
4897 #define zIo_Quotes_UseList (char*)NULL
4899 * Machine/OS name selection pattern
4901 #define apzIo_Quotes_UseMachs (const char**)NULL
4904 * content selection pattern - do fix if pattern found
4906 tSCC zIo_Quotes_UseSelect0[] =
4907 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4909 #define IO_QUOTES_USE_TEST_CT 1
4910 static tTestDesc aIo_Quotes_UseTests[] = {
4911 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4914 * Fix Command Arguments for Io_Quotes_Use
4916 static const char* apzIo_Quotes_UsePatch[] = {
4921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4923 * Description of Ip_Missing_Semi fix
4925 tSCC zIp_Missing_SemiName[] =
4929 * File name selection pattern
4931 tSCC zIp_Missing_SemiList[] =
4934 * Machine/OS name selection pattern
4936 #define apzIp_Missing_SemiMachs (const char**)NULL
4939 * content selection pattern - do fix if pattern found
4941 tSCC zIp_Missing_SemiSelect0[] =
4944 #define IP_MISSING_SEMI_TEST_CT 1
4945 static tTestDesc aIp_Missing_SemiTests[] = {
4946 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4949 * Fix Command Arguments for Ip_Missing_Semi
4951 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4952 "-e", "/^struct/,/^};/s/}$/};/",
4955 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4957 * Description of Irix_Limits_Const fix
4959 tSCC zIrix_Limits_ConstName[] =
4960 "irix_limits_const";
4963 * File name selection pattern
4965 tSCC zIrix_Limits_ConstList[] =
4966 "fixinc-test-limits.h\0limits.h\0";
4968 * Machine/OS name selection pattern
4970 #define apzIrix_Limits_ConstMachs (const char**)NULL
4973 * content selection pattern - do fix if pattern found
4975 tSCC zIrix_Limits_ConstSelect0[] =
4978 #define IRIX_LIMITS_CONST_TEST_CT 1
4979 static tTestDesc aIrix_Limits_ConstTests[] = {
4980 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4983 * Fix Command Arguments for Irix_Limits_Const
4985 static const char* apzIrix_Limits_ConstPatch[] = {
4990 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4992 * Description of Irix_Stdio_Va_List fix
4994 tSCC zIrix_Stdio_Va_ListName[] =
4995 "irix_stdio_va_list";
4998 * File name selection pattern
5000 tSCC zIrix_Stdio_Va_ListList[] =
5003 * Machine/OS name selection pattern
5005 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
5008 * content selection pattern - do fix if pattern found
5010 tSCC zIrix_Stdio_Va_ListSelect0[] =
5011 "/\\* va_list \\*/ char \\*";
5013 #define IRIX_STDIO_VA_LIST_TEST_CT 1
5014 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
5015 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
5018 * Fix Command Arguments for Irix_Stdio_Va_List
5020 static const char* apzIrix_Stdio_Va_ListPatch[] = {
5025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5027 * Description of Kandr_Concat fix
5029 tSCC zKandr_ConcatName[] =
5033 * File name selection pattern
5035 tSCC zKandr_ConcatList[] =
5036 "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";
5038 * Machine/OS name selection pattern
5040 #define apzKandr_ConcatMachs (const char**)NULL
5043 * content selection pattern - do fix if pattern found
5045 tSCC zKandr_ConcatSelect0[] =
5048 #define KANDR_CONCAT_TEST_CT 1
5049 static tTestDesc aKandr_ConcatTests[] = {
5050 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
5053 * Fix Command Arguments for Kandr_Concat
5055 static const char* apzKandr_ConcatPatch[] = {
5060 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5062 * Description of Linux_Ia64_Ucontext fix
5064 tSCC zLinux_Ia64_UcontextName[] =
5065 "linux_ia64_ucontext";
5068 * File name selection pattern
5070 tSCC zLinux_Ia64_UcontextList[] =
5073 * Machine/OS name selection pattern
5075 tSCC* apzLinux_Ia64_UcontextMachs[] = {
5077 (const char*)NULL };
5080 * content selection pattern - do fix if pattern found
5082 tSCC zLinux_Ia64_UcontextSelect0[] =
5083 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
5085 #define LINUX_IA64_UCONTEXT_TEST_CT 1
5086 static tTestDesc aLinux_Ia64_UcontextTests[] = {
5087 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
5090 * Fix Command Arguments for Linux_Ia64_Ucontext
5092 static const char* apzLinux_Ia64_UcontextPatch[] = {
5094 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
5097 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5099 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
5101 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
5102 "lynxos_no_warning_in_sys_time_h";
5105 * File name selection pattern
5107 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
5110 * Machine/OS name selection pattern
5112 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
5115 * content selection pattern - do fix if pattern found
5117 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
5118 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
5120 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
5121 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
5122 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
5125 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
5127 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
5132 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5134 * Description of Lynxos_Missing_Putenv fix
5136 tSCC zLynxos_Missing_PutenvName[] =
5137 "lynxos_missing_putenv";
5140 * File name selection pattern
5142 tSCC zLynxos_Missing_PutenvList[] =
5145 * Machine/OS name selection pattern
5147 tSCC* apzLynxos_Missing_PutenvMachs[] = {
5149 (const char*)NULL };
5152 * content selection pattern - do fix if pattern found
5154 tSCC zLynxos_Missing_PutenvSelect0[] =
5155 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
5158 * content bypass pattern - skip fix if pattern found
5160 tSCC zLynxos_Missing_PutenvBypass0[] =
5163 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
5164 static tTestDesc aLynxos_Missing_PutenvTests[] = {
5165 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
5166 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
5169 * Fix Command Arguments for Lynxos_Missing_Putenv
5171 static const char* apzLynxos_Missing_PutenvPatch[] = {
5174 extern int putenv\t\t\t\t_AP((char *));",
5175 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
5178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5180 * Description of Machine_Ansi_H_Va_List fix
5182 tSCC zMachine_Ansi_H_Va_ListName[] =
5183 "machine_ansi_h_va_list";
5186 * File name selection pattern
5188 #define zMachine_Ansi_H_Va_ListList (char*)NULL
5190 * Machine/OS name selection pattern
5192 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5195 * content selection pattern - do fix if pattern found
5197 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
5198 "define[ \t]+_BSD_VA_LIST_[ \t]";
5201 * content bypass pattern - skip fix if pattern found
5203 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5204 "__builtin_va_list";
5206 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
5207 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5208 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5209 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5212 * Fix Command Arguments for Machine_Ansi_H_Va_List
5214 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5216 "%1__builtin_va_list",
5217 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5222 * Description of Machine_Name fix
5224 tSCC zMachine_NameName[] =
5228 * File name selection pattern
5230 #define zMachine_NameList (char*)NULL
5232 * Machine/OS name selection pattern
5234 #define apzMachine_NameMachs (const char**)NULL
5237 * perform the C function call test
5239 tSCC zMachine_NameFTst0[] = "machine_name";
5241 #define MACHINE_NAME_TEST_CT 1
5242 static tTestDesc aMachine_NameTests[] = {
5243 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
5246 * Fix Command Arguments for Machine_Name
5248 static const char* apzMachine_NamePatch[] = {
5252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5254 * Description of Math_Exception fix
5256 tSCC zMath_ExceptionName[] =
5260 * File name selection pattern
5262 tSCC zMath_ExceptionList[] =
5265 * Machine/OS name selection pattern
5267 tSCC* apzMath_ExceptionMachs[] = {
5268 "*-*-solaris2.1[0-9]*",
5269 (const char*)NULL };
5272 * content selection pattern - do fix if pattern found
5274 tSCC zMath_ExceptionSelect0[] =
5278 * content bypass pattern - skip fix if pattern found
5280 tSCC zMath_ExceptionBypass0[] =
5281 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5283 #define MATH_EXCEPTION_TEST_CT 2
5284 static tTestDesc aMath_ExceptionTests[] = {
5285 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
5286 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
5289 * Fix Command Arguments for Math_Exception
5291 static const char* apzMath_ExceptionPatch[] = {
5293 "#ifdef __cplusplus\n\
5294 #define exception __math_exception\n\
5296 "#ifdef __cplusplus\n\
5301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5303 * Description of Math_Huge_Val_From_Dbl_Max fix
5305 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
5306 "math_huge_val_from_dbl_max";
5309 * File name selection pattern
5311 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
5314 * Machine/OS name selection pattern
5316 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
5319 * content selection pattern - do fix if pattern found
5321 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
5322 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
5325 * content bypass pattern - skip fix if pattern found
5327 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
5328 "define[ \t]+DBL_MAX";
5330 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
5331 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
5332 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
5333 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
5336 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
5338 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5339 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
5340 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
5341 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
5346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5348 * Description of Nested_Auth_Des fix
5350 tSCC zNested_Auth_DesName[] =
5354 * File name selection pattern
5356 tSCC zNested_Auth_DesList[] =
5359 * Machine/OS name selection pattern
5361 #define apzNested_Auth_DesMachs (const char**)NULL
5364 * content selection pattern - do fix if pattern found
5366 tSCC zNested_Auth_DesSelect0[] =
5367 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
5369 #define NESTED_AUTH_DES_TEST_CT 1
5370 static tTestDesc aNested_Auth_DesTests[] = {
5371 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
5374 * Fix Command Arguments for Nested_Auth_Des
5376 static const char* apzNested_Auth_DesPatch[] = {
5381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5383 * Description of Netbsd_C99_Inline_1 fix
5385 tSCC zNetbsd_C99_Inline_1Name[] =
5386 "netbsd_c99_inline_1";
5389 * File name selection pattern
5391 tSCC zNetbsd_C99_Inline_1List[] =
5394 * Machine/OS name selection pattern
5396 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
5398 (const char*)NULL };
5401 * content selection pattern - do fix if pattern found
5403 tSCC zNetbsd_C99_Inline_1Select0[] =
5404 "extern __inline int";
5406 #define NETBSD_C99_INLINE_1_TEST_CT 1
5407 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
5408 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
5411 * Fix Command Arguments for Netbsd_C99_Inline_1
5413 static const char* apzNetbsd_C99_Inline_1Patch[] = {
5416 #ifdef __GNUC_STDC_INLINE__\n\
5417 __attribute__((__gnu_inline__))\n\
5422 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5424 * Description of Netbsd_C99_Inline_2 fix
5426 tSCC zNetbsd_C99_Inline_2Name[] =
5427 "netbsd_c99_inline_2";
5430 * File name selection pattern
5432 tSCC zNetbsd_C99_Inline_2List[] =
5435 * Machine/OS name selection pattern
5437 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
5439 (const char*)NULL };
5442 * content selection pattern - do fix if pattern found
5444 tSCC zNetbsd_C99_Inline_2Select0[] =
5445 "#define _SIGINLINE extern __inline";
5447 #define NETBSD_C99_INLINE_2_TEST_CT 1
5448 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
5449 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
5452 * Fix Command Arguments for Netbsd_C99_Inline_2
5454 static const char* apzNetbsd_C99_Inline_2Patch[] = {
5456 "#ifdef __GNUC_STDC_INLINE__\n\
5457 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
5463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5465 * Description of Netbsd_Extra_Semicolon fix
5467 tSCC zNetbsd_Extra_SemicolonName[] =
5468 "netbsd_extra_semicolon";
5471 * File name selection pattern
5473 tSCC zNetbsd_Extra_SemicolonList[] =
5476 * Machine/OS name selection pattern
5478 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
5480 (const char*)NULL };
5483 * content selection pattern - do fix if pattern found
5485 tSCC zNetbsd_Extra_SemicolonSelect0[] =
5486 "#define[ \t]*__END_DECLS[ \t]*};";
5488 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
5489 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
5490 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
5493 * Fix Command Arguments for Netbsd_Extra_Semicolon
5495 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
5497 "#define __END_DECLS }",
5500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5502 * Description of Newlib_Stdint_1 fix
5504 tSCC zNewlib_Stdint_1Name[] =
5508 * File name selection pattern
5510 tSCC zNewlib_Stdint_1List[] =
5511 "stdint-newlib.h\0stdint.h\0";
5513 * Machine/OS name selection pattern
5515 #define apzNewlib_Stdint_1Machs (const char**)NULL
5518 * content selection pattern - do fix if pattern found
5520 tSCC zNewlib_Stdint_1Select0[] =
5521 "@todo - Add support for wint_t types";
5523 #define NEWLIB_STDINT_1_TEST_CT 1
5524 static tTestDesc aNewlib_Stdint_1Tests[] = {
5525 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5528 * Fix Command Arguments for Newlib_Stdint_1
5530 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5531 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5532 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5533 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5534 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5535 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5536 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5537 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5538 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5539 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5540 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5541 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5542 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5543 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5544 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5547 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5549 * Description of Newlib_Stdint_2 fix
5551 tSCC zNewlib_Stdint_2Name[] =
5555 * File name selection pattern
5557 tSCC zNewlib_Stdint_2List[] =
5558 "stdint-newlib.h\0stdint.h\0";
5560 * Machine/OS name selection pattern
5562 #define apzNewlib_Stdint_2Machs (const char**)NULL
5565 * content selection pattern - do fix if pattern found
5567 tSCC zNewlib_Stdint_2Select0[] =
5568 "@todo - Add support for wint_t types";
5570 #define NEWLIB_STDINT_2_TEST_CT 1
5571 static tTestDesc aNewlib_Stdint_2Tests[] = {
5572 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5575 * Fix Command Arguments for Newlib_Stdint_2
5577 static const char* apzNewlib_Stdint_2Patch[] = {
5579 "#define INTMAX_MAX __INTMAX_MAX__\n\
5580 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5581 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5582 #define WCHAR_MAX __WCHAR_MAX__\n\
5583 #define WCHAR_MIN __WCHAR_MIN__\n\
5584 #define WINT_MAX __WINT_MAX__\n\
5585 #define WINT_MIN __WINT_MIN__\n\n\
5587 "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5592 * Description of Next_Math_Prefix fix
5594 tSCC zNext_Math_PrefixName[] =
5598 * File name selection pattern
5600 tSCC zNext_Math_PrefixList[] =
5603 * Machine/OS name selection pattern
5605 #define apzNext_Math_PrefixMachs (const char**)NULL
5608 * content selection pattern - do fix if pattern found
5610 tSCC zNext_Math_PrefixSelect0[] =
5611 "^extern[ \t]+double[ \t]+__const__[ \t]";
5613 #define NEXT_MATH_PREFIX_TEST_CT 1
5614 static tTestDesc aNext_Math_PrefixTests[] = {
5615 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5618 * Fix Command Arguments for Next_Math_Prefix
5620 static const char* apzNext_Math_PrefixPatch[] = {
5622 "extern double %1(",
5623 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5626 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5628 * Description of Next_Template fix
5630 tSCC zNext_TemplateName[] =
5634 * File name selection pattern
5636 tSCC zNext_TemplateList[] =
5639 * Machine/OS name selection pattern
5641 #define apzNext_TemplateMachs (const char**)NULL
5644 * content selection pattern - do fix if pattern found
5646 tSCC zNext_TemplateSelect0[] =
5649 #define NEXT_TEMPLATE_TEST_CT 1
5650 static tTestDesc aNext_TemplateTests[] = {
5651 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
5654 * Fix Command Arguments for Next_Template
5656 static const char* apzNext_TemplatePatch[] = {
5659 "\\(([^)]*)[ \t]template\\)",
5662 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5664 * Description of Next_Volitile fix
5666 tSCC zNext_VolitileName[] =
5670 * File name selection pattern
5672 tSCC zNext_VolitileList[] =
5675 * Machine/OS name selection pattern
5677 #define apzNext_VolitileMachs (const char**)NULL
5680 * content selection pattern - do fix if pattern found
5682 tSCC zNext_VolitileSelect0[] =
5683 "^extern[ \t]+volatile[ \t]+void[ \t]";
5685 #define NEXT_VOLITILE_TEST_CT 1
5686 static tTestDesc aNext_VolitileTests[] = {
5687 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
5690 * Fix Command Arguments for Next_Volitile
5692 static const char* apzNext_VolitilePatch[] = {
5695 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5700 * Description of Next_Wait_Union fix
5702 tSCC zNext_Wait_UnionName[] =
5706 * File name selection pattern
5708 tSCC zNext_Wait_UnionList[] =
5711 * Machine/OS name selection pattern
5713 #define apzNext_Wait_UnionMachs (const char**)NULL
5716 * content selection pattern - do fix if pattern found
5718 tSCC zNext_Wait_UnionSelect0[] =
5719 "wait\\(union wait";
5721 #define NEXT_WAIT_UNION_TEST_CT 1
5722 static tTestDesc aNext_Wait_UnionTests[] = {
5723 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5726 * Fix Command Arguments for Next_Wait_Union
5728 static const char* apzNext_Wait_UnionPatch[] = {
5733 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5735 * Description of Nodeent_Syntax fix
5737 tSCC zNodeent_SyntaxName[] =
5741 * File name selection pattern
5743 tSCC zNodeent_SyntaxList[] =
5744 "netdnet/dnetdb.h\0";
5746 * Machine/OS name selection pattern
5748 #define apzNodeent_SyntaxMachs (const char**)NULL
5751 * content selection pattern - do fix if pattern found
5753 tSCC zNodeent_SyntaxSelect0[] =
5754 "char[ \t]*\\*na_addr[ \t]*$";
5756 #define NODEENT_SYNTAX_TEST_CT 1
5757 static tTestDesc aNodeent_SyntaxTests[] = {
5758 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5761 * Fix Command Arguments for Nodeent_Syntax
5763 static const char* apzNodeent_SyntaxPatch[] = {
5768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5770 * Description of Openbsd_Null_Definition fix
5772 tSCC zOpenbsd_Null_DefinitionName[] =
5773 "openbsd_null_definition";
5776 * File name selection pattern
5778 tSCC zOpenbsd_Null_DefinitionList[] =
5779 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5781 * Machine/OS name selection pattern
5783 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5785 (const char*)NULL };
5788 * content selection pattern - do fix if pattern found
5790 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5793 #define OPENBSD_NULL_DEFINITION_TEST_CT 1
5794 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5795 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5798 * Fix Command Arguments for Openbsd_Null_Definition
5800 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5803 #ifdef __cplusplus\n\
5805 #define NULL\t__null\n\
5806 #else\t /* ! __GNUG__ */\n\
5808 #endif\t /* __GNUG__ */\n\
5809 #else\t /* ! __cplusplus */\n\
5810 #define NULL\t((void *)0)\n\
5811 #endif\t /* __cplusplus */\n\
5812 #endif\t /* !NULL */",
5813 "^#ifndef[ \t]*NULL\n\
5814 ^#ifdef[ \t]*__GNUG__\n\
5815 ^#define[ \t]*NULL[ \t]*__null\n\
5817 ^#define[ \t]*NULL[ \t]*0L\n\
5822 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5824 * Description of Obstack_Lvalue_Cast fix
5826 tSCC zObstack_Lvalue_CastName[] =
5827 "obstack_lvalue_cast";
5830 * File name selection pattern
5832 tSCC zObstack_Lvalue_CastList[] =
5835 * Machine/OS name selection pattern
5837 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5840 * content selection pattern - do fix if pattern found
5842 tSCC zObstack_Lvalue_CastSelect0[] =
5843 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5845 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5846 static tTestDesc aObstack_Lvalue_CastTests[] = {
5847 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5850 * Fix Command Arguments for Obstack_Lvalue_Cast
5852 static const char* apzObstack_Lvalue_CastPatch[] = {
5854 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5857 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5859 * Description of Openbsd_Va_Start fix
5861 tSCC zOpenbsd_Va_StartName[] =
5865 * File name selection pattern
5867 tSCC zOpenbsd_Va_StartList[] =
5870 * Machine/OS name selection pattern
5872 tSCC* apzOpenbsd_Va_StartMachs[] = {
5874 (const char*)NULL };
5877 * content selection pattern - do fix if pattern found
5879 tSCC zOpenbsd_Va_StartSelect0[] =
5880 "__builtin_stdarg_start";
5882 #define OPENBSD_VA_START_TEST_CT 1
5883 static tTestDesc aOpenbsd_Va_StartTests[] = {
5884 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5887 * Fix Command Arguments for Openbsd_Va_Start
5889 static const char* apzOpenbsd_Va_StartPatch[] = {
5891 "__builtin_va_start",
5894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5896 * Description of Osf_Namespace_A fix
5898 tSCC zOsf_Namespace_AName[] =
5902 * File name selection pattern
5904 tSCC zOsf_Namespace_AList[] =
5905 "reg_types.h\0sys/lc_core.h\0";
5907 * Machine/OS name selection pattern
5909 #define apzOsf_Namespace_AMachs (const char**)NULL
5912 * perform the 'test' shell command - do fix on success
5914 tSCC zOsf_Namespace_ATest0[] =
5916 tSCC zOsf_Namespace_ATest1[] =
5917 " -r sys/lc_core.h";
5918 tSCC zOsf_Namespace_ATest2[] =
5919 " -n \"`grep '} regex_t;' reg_types.h`\"";
5920 tSCC zOsf_Namespace_ATest3[] =
5921 " -z \"`grep __regex_t regex.h`\"";
5923 #define OSF_NAMESPACE_A_TEST_CT 4
5924 static tTestDesc aOsf_Namespace_ATests[] = {
5925 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5926 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5927 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5928 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5931 * Fix Command Arguments for Osf_Namespace_A
5933 static const char* apzOsf_Namespace_APatch[] = {
5936 "reg(ex|off|match)_t",
5939 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5941 * Description of Osf_Namespace_C fix
5943 tSCC zOsf_Namespace_CName[] =
5947 * File name selection pattern
5949 tSCC zOsf_Namespace_CList[] =
5952 * Machine/OS name selection pattern
5954 #define apzOsf_Namespace_CMachs (const char**)NULL
5957 * content selection pattern - do fix if pattern found
5959 tSCC zOsf_Namespace_CSelect0[] =
5960 "#include <reg_types.h>.*";
5963 * perform the 'test' shell command - do fix on success
5965 tSCC zOsf_Namespace_CTest0[] =
5967 tSCC zOsf_Namespace_CTest1[] =
5968 " -r sys/lc_core.h";
5969 tSCC zOsf_Namespace_CTest2[] =
5970 " -n \"`grep '} regex_t;' reg_types.h`\"";
5971 tSCC zOsf_Namespace_CTest3[] =
5972 " -z \"`grep __regex_t regex.h`\"";
5974 #define OSF_NAMESPACE_C_TEST_CT 5
5975 static tTestDesc aOsf_Namespace_CTests[] = {
5976 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5977 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5978 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5979 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5980 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5983 * Fix Command Arguments for Osf_Namespace_C
5985 static const char* apzOsf_Namespace_CPatch[] = {
5988 typedef __regex_t\tregex_t;\n\
5989 typedef __regoff_t\tregoff_t;\n\
5990 typedef __regmatch_t\tregmatch_t;",
5993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5995 * Description of Pthread_Incomplete_Struct_Argument fix
5997 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5998 "pthread_incomplete_struct_argument";
6001 * File name selection pattern
6003 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
6006 * Machine/OS name selection pattern
6008 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
6011 * content selection pattern - do fix if pattern found
6013 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
6014 "struct __jmp_buf_tag";
6016 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
6017 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
6018 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
6021 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
6023 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
6026 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
6029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6031 * Description of Read_Ret_Type fix
6033 tSCC zRead_Ret_TypeName[] =
6037 * File name selection pattern
6039 tSCC zRead_Ret_TypeList[] =
6042 * Machine/OS name selection pattern
6044 #define apzRead_Ret_TypeMachs (const char**)NULL
6047 * content selection pattern - do fix if pattern found
6049 tSCC zRead_Ret_TypeSelect0[] =
6050 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
6052 #define READ_RET_TYPE_TEST_CT 1
6053 static tTestDesc aRead_Ret_TypeTests[] = {
6054 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
6057 * Fix Command Arguments for Read_Ret_Type
6059 static const char* apzRead_Ret_TypePatch[] = {
6061 "extern unsigned int fread(), fwrite();\n\
6063 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
6066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6068 * Description of Rpc_Xdr_Lvalue_Cast_A fix
6070 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
6071 "rpc_xdr_lvalue_cast_a";
6074 * File name selection pattern
6076 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
6079 * Machine/OS name selection pattern
6081 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
6084 * content selection pattern - do fix if pattern found
6086 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
6087 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
6090 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
6091 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
6092 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
6095 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
6097 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
6099 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
6102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6104 * Description of Rpc_Xdr_Lvalue_Cast_B fix
6106 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
6107 "rpc_xdr_lvalue_cast_b";
6110 * File name selection pattern
6112 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
6115 * Machine/OS name selection pattern
6117 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
6120 * content selection pattern - do fix if pattern found
6122 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
6123 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
6126 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
6127 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
6128 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
6131 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
6133 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
6135 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
6138 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6140 * Description of Rs6000_Double fix
6142 tSCC zRs6000_DoubleName[] =
6146 * File name selection pattern
6148 tSCC zRs6000_DoubleList[] =
6151 * Machine/OS name selection pattern
6153 #define apzRs6000_DoubleMachs (const char**)NULL
6156 * content selection pattern - do fix if pattern found
6158 tSCC zRs6000_DoubleSelect0[] =
6159 "[^a-zA-Z_]class\\(";
6161 #define RS6000_DOUBLE_TEST_CT 1
6162 static tTestDesc aRs6000_DoubleTests[] = {
6163 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
6166 * Fix Command Arguments for Rs6000_Double
6168 static const char* apzRs6000_DoublePatch[] = {
6170 "#ifndef __cplusplus\n\
6173 "^.*[^a-zA-Z_]class\\(.*",
6176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6178 * Description of Rs6000_Fchmod fix
6180 tSCC zRs6000_FchmodName[] =
6184 * File name selection pattern
6186 tSCC zRs6000_FchmodList[] =
6189 * Machine/OS name selection pattern
6191 #define apzRs6000_FchmodMachs (const char**)NULL
6194 * content selection pattern - do fix if pattern found
6196 tSCC zRs6000_FchmodSelect0[] =
6197 "fchmod\\(char \\*";
6199 #define RS6000_FCHMOD_TEST_CT 1
6200 static tTestDesc aRs6000_FchmodTests[] = {
6201 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
6204 * Fix Command Arguments for Rs6000_Fchmod
6206 static const char* apzRs6000_FchmodPatch[] = {
6211 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6213 * Description of Rs6000_Param fix
6215 tSCC zRs6000_ParamName[] =
6219 * File name selection pattern
6221 tSCC zRs6000_ParamList[] =
6222 "stdio.h\0unistd.h\0";
6224 * Machine/OS name selection pattern
6226 #define apzRs6000_ParamMachs (const char**)NULL
6229 * content selection pattern - do fix if pattern found
6231 tSCC zRs6000_ParamSelect0[] =
6232 "rename\\(const char \\*old, const char \\*new\\)";
6234 #define RS6000_PARAM_TEST_CT 1
6235 static tTestDesc aRs6000_ParamTests[] = {
6236 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
6239 * Fix Command Arguments for Rs6000_Param
6241 static const char* apzRs6000_ParamPatch[] = {
6243 "rename(const char *_old, const char *_new)",
6246 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6248 * Description of Solaris___Restrict fix
6250 tSCC zSolaris___RestrictName[] =
6251 "solaris___restrict";
6254 * File name selection pattern
6256 tSCC zSolaris___RestrictList[] =
6257 "sys/feature_tests.h\0";
6259 * Machine/OS name selection pattern
6261 tSCC* apzSolaris___RestrictMachs[] = {
6263 (const char*)NULL };
6266 * content selection pattern - do fix if pattern found
6268 tSCC zSolaris___RestrictSelect0[] =
6269 "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
6271 #define SOLARIS___RESTRICT_TEST_CT 1
6272 static tTestDesc aSolaris___RestrictTests[] = {
6273 { TT_EGREP, zSolaris___RestrictSelect0, (regex_t*)NULL }, };
6276 * Fix Command Arguments for Solaris___Restrict
6278 static const char* apzSolaris___RestrictPatch[] = {
6280 "#ifdef __cplusplus\n\
6281 #define\t_RESTRICT_KYWD\t__restrict\n\
6287 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6289 * Description of Solaris_Complex fix
6291 tSCC zSolaris_ComplexName[] =
6295 * File name selection pattern
6297 tSCC zSolaris_ComplexList[] =
6300 * Machine/OS name selection pattern
6302 tSCC* apzSolaris_ComplexMachs[] = {
6304 (const char*)NULL };
6307 * content selection pattern - do fix if pattern found
6309 tSCC zSolaris_ComplexSelect0[] =
6310 "#define[ \t]_Complex_I[ \t]_Complex_I";
6312 #define SOLARIS_COMPLEX_TEST_CT 1
6313 static tTestDesc aSolaris_ComplexTests[] = {
6314 { TT_EGREP, zSolaris_ComplexSelect0, (regex_t*)NULL }, };
6317 * Fix Command Arguments for Solaris_Complex
6319 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
6320 "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
6321 "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
6322 "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
6323 "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
6326 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6328 * Description of Solaris_Complex_Cxx fix
6330 tSCC zSolaris_Complex_CxxName[] =
6331 "solaris_complex_cxx";
6334 * File name selection pattern
6336 tSCC zSolaris_Complex_CxxList[] =
6339 * Machine/OS name selection pattern
6341 tSCC* apzSolaris_Complex_CxxMachs[] = {
6343 (const char*)NULL };
6344 #define SOLARIS_COMPLEX_CXX_TEST_CT 0
6345 #define aSolaris_Complex_CxxTests (tTestDesc*)NULL
6348 * Fix Command Arguments for Solaris_Complex_Cxx
6350 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
6351 "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
6352 #ifdef\t__cplusplus\\\n\
6355 "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
6356 #ifdef\t__cplusplus\\\n\
6361 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6363 * Description of Solaris_Cxx_Linkage fix
6365 tSCC zSolaris_Cxx_LinkageName[] =
6366 "solaris_cxx_linkage";
6369 * File name selection pattern
6371 tSCC zSolaris_Cxx_LinkageList[] =
6372 "iso/stdlib_iso.h\0";
6374 * Machine/OS name selection pattern
6376 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
6378 (const char*)NULL };
6381 * content selection pattern - do fix if pattern found
6383 tSCC zSolaris_Cxx_LinkageSelect0[] =
6384 "(#if __cplusplus >= 199711L)\n\
6385 (extern \"C\\+\\+\" \\{\n\
6386 )(.*(bsearch|qsort).*)";
6388 #define SOLARIS_CXX_LINKAGE_TEST_CT 1
6389 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
6390 { TT_EGREP, zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
6393 * Fix Command Arguments for Solaris_Cxx_Linkage
6395 static const char* apzSolaris_Cxx_LinkagePatch[] = {
6401 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6403 * Description of Solaris_Getc_Strict_Stdc fix
6405 tSCC zSolaris_Getc_Strict_StdcName[] =
6406 "solaris_getc_strict_stdc";
6409 * File name selection pattern
6411 tSCC zSolaris_Getc_Strict_StdcList[] =
6412 "iso/stdio_iso.h\0";
6414 * Machine/OS name selection pattern
6416 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
6418 (const char*)NULL };
6421 * content selection pattern - do fix if pattern found
6423 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
6424 "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
6426 #define SOLARIS_GETC_STRICT_STDC_TEST_CT 1
6427 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
6428 { TT_EGREP, zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
6431 * Fix Command Arguments for Solaris_Getc_Strict_Stdc
6433 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
6435 "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
6438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6440 * Description of Solaris_Int_Const fix
6442 tSCC zSolaris_Int_ConstName[] =
6443 "solaris_int_const";
6446 * File name selection pattern
6448 tSCC zSolaris_Int_ConstList[] =
6449 "sys/int_const.h\0";
6451 * Machine/OS name selection pattern
6453 tSCC* apzSolaris_Int_ConstMachs[] = {
6455 (const char*)NULL };
6458 * content selection pattern - do fix if pattern found
6460 tSCC zSolaris_Int_ConstSelect0[] =
6461 "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6463 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
6465 #define SOLARIS_INT_CONST_TEST_CT 1
6466 static tTestDesc aSolaris_Int_ConstTests[] = {
6467 { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
6470 * Fix Command Arguments for Solaris_Int_Const
6472 static const char* apzSolaris_Int_ConstPatch[] = {
6474 "#define\tUINT8_C(c)\t(c)\n\
6476 #define\tUINT16_C(c)\t(c)",
6479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6481 * Description of Solaris_Int_Limits_1 fix
6483 tSCC zSolaris_Int_Limits_1Name[] =
6484 "solaris_int_limits_1";
6487 * File name selection pattern
6489 tSCC zSolaris_Int_Limits_1List[] =
6490 "sys/int_limits.h\0";
6492 * Machine/OS name selection pattern
6494 tSCC* apzSolaris_Int_Limits_1Machs[] = {
6496 (const char*)NULL };
6499 * content selection pattern - do fix if pattern found
6501 tSCC zSolaris_Int_Limits_1Select0[] =
6502 "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
6503 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
6505 #define SOLARIS_INT_LIMITS_1_TEST_CT 1
6506 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
6507 { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
6510 * Fix Command Arguments for Solaris_Int_Limits_1
6512 static const char* apzSolaris_Int_Limits_1Patch[] = {
6514 "#define\tUINT8_MAX\t(255)\n\
6515 #define\tUINT16_MAX\t(65535)",
6518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6520 * Description of Solaris_Int_Limits_2 fix
6522 tSCC zSolaris_Int_Limits_2Name[] =
6523 "solaris_int_limits_2";
6526 * File name selection pattern
6528 tSCC zSolaris_Int_Limits_2List[] =
6529 "sys/int_limits.h\0";
6531 * Machine/OS name selection pattern
6533 tSCC* apzSolaris_Int_Limits_2Machs[] = {
6535 (const char*)NULL };
6538 * content selection pattern - do fix if pattern found
6540 tSCC zSolaris_Int_Limits_2Select0[] =
6541 "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
6543 #define SOLARIS_INT_LIMITS_2_TEST_CT 1
6544 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
6545 { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
6548 * Fix Command Arguments for Solaris_Int_Limits_2
6550 static const char* apzSolaris_Int_Limits_2Patch[] = {
6552 "#define\t%1_FAST16_%2 %132_%2",
6555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6557 * Description of Solaris_Int_Limits_3 fix
6559 tSCC zSolaris_Int_Limits_3Name[] =
6560 "solaris_int_limits_3";
6563 * File name selection pattern
6565 tSCC zSolaris_Int_Limits_3List[] =
6566 "sys/int_limits.h\0";
6568 * Machine/OS name selection pattern
6570 tSCC* apzSolaris_Int_Limits_3Machs[] = {
6572 (const char*)NULL };
6575 * content selection pattern - do fix if pattern found
6577 tSCC zSolaris_Int_Limits_3Select0[] =
6578 "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
6580 #define SOLARIS_INT_LIMITS_3_TEST_CT 1
6581 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
6582 { TT_EGREP, zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
6585 * Fix Command Arguments for Solaris_Int_Limits_3
6587 static const char* apzSolaris_Int_Limits_3Patch[] = {
6589 "#define\tSIZE_MAX\t4294967295U",
6592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6594 * Description of Solaris_Math_1 fix
6596 tSCC zSolaris_Math_1Name[] =
6600 * File name selection pattern
6602 tSCC zSolaris_Math_1List[] =
6605 * Machine/OS name selection pattern
6607 #define apzSolaris_Math_1Machs (const char**)NULL
6610 * content selection pattern - do fix if pattern found
6612 tSCC zSolaris_Math_1Select0[] =
6613 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6616 * content bypass pattern - skip fix if pattern found
6618 tSCC zSolaris_Math_1Bypass0[] =
6621 #define SOLARIS_MATH_1_TEST_CT 2
6622 static tTestDesc aSolaris_Math_1Tests[] = {
6623 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
6624 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
6627 * Fix Command Arguments for Solaris_Math_1
6629 static const char* apzSolaris_Math_1Patch[] = {
6631 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
6632 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
6635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6637 * Description of Solaris_Math_10 fix
6639 tSCC zSolaris_Math_10Name[] =
6643 * File name selection pattern
6645 tSCC zSolaris_Math_10List[] =
6648 * Machine/OS name selection pattern
6650 #define apzSolaris_Math_10Machs (const char**)NULL
6653 * content selection pattern - do fix if pattern found
6655 tSCC zSolaris_Math_10Select0[] =
6656 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6658 #define SOLARIS_MATH_10_TEST_CT 1
6659 static tTestDesc aSolaris_Math_10Tests[] = {
6660 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
6663 * Fix Command Arguments for Solaris_Math_10
6665 static const char* apzSolaris_Math_10Patch[] = {
6667 "#define\tisinf(x) __builtin_isinf(x)",
6668 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6669 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6670 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6671 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6674 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6676 * Description of Solaris_Math_2 fix
6678 tSCC zSolaris_Math_2Name[] =
6682 * File name selection pattern
6684 tSCC zSolaris_Math_2List[] =
6687 * Machine/OS name selection pattern
6689 #define apzSolaris_Math_2Machs (const char**)NULL
6692 * content selection pattern - do fix if pattern found
6694 tSCC zSolaris_Math_2Select0[] =
6695 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6698 * content bypass pattern - skip fix if pattern found
6700 tSCC zSolaris_Math_2Bypass0[] =
6703 #define SOLARIS_MATH_2_TEST_CT 2
6704 static tTestDesc aSolaris_Math_2Tests[] = {
6705 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
6706 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
6709 * Fix Command Arguments for Solaris_Math_2
6711 static const char* apzSolaris_Math_2Patch[] = {
6713 "#define\tINFINITY\t(__builtin_inff())",
6714 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
6717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6719 * Description of Solaris_Math_3 fix
6721 tSCC zSolaris_Math_3Name[] =
6725 * File name selection pattern
6727 tSCC zSolaris_Math_3List[] =
6730 * Machine/OS name selection pattern
6732 #define apzSolaris_Math_3Machs (const char**)NULL
6735 * content selection pattern - do fix if pattern found
6737 tSCC zSolaris_Math_3Select0[] =
6738 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6741 * content bypass pattern - skip fix if pattern found
6743 tSCC zSolaris_Math_3Bypass0[] =
6746 #define SOLARIS_MATH_3_TEST_CT 2
6747 static tTestDesc aSolaris_Math_3Tests[] = {
6748 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
6749 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
6752 * Fix Command Arguments for Solaris_Math_3
6754 static const char* apzSolaris_Math_3Patch[] = {
6756 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6757 "^#define[ \t]+NAN[ \t]+__builtin_nan",
6760 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6762 * Description of Solaris_Math_4 fix
6764 tSCC zSolaris_Math_4Name[] =
6768 * File name selection pattern
6770 tSCC zSolaris_Math_4List[] =
6773 * Machine/OS name selection pattern
6775 #define apzSolaris_Math_4Machs (const char**)NULL
6778 * content selection pattern - do fix if pattern found
6780 tSCC zSolaris_Math_4Select0[] =
6781 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6784 * content bypass pattern - skip fix if pattern found
6786 tSCC zSolaris_Math_4Bypass0[] =
6789 #define SOLARIS_MATH_4_TEST_CT 2
6790 static tTestDesc aSolaris_Math_4Tests[] = {
6791 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
6792 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
6795 * Fix Command Arguments for Solaris_Math_4
6797 static const char* apzSolaris_Math_4Patch[] = {
6799 "#define\tfpclassify(x) \\\n\
6800 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6801 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6804 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6806 * Description of Solaris_Math_8 fix
6808 tSCC zSolaris_Math_8Name[] =
6812 * File name selection pattern
6814 tSCC zSolaris_Math_8List[] =
6817 * Machine/OS name selection pattern
6819 #define apzSolaris_Math_8Machs (const char**)NULL
6822 * content selection pattern - do fix if pattern found
6824 tSCC zSolaris_Math_8Select0[] =
6825 "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
6828 * content bypass pattern - skip fix if pattern found
6830 tSCC zSolaris_Math_8Bypass0[] =
6833 #define SOLARIS_MATH_8_TEST_CT 2
6834 static tTestDesc aSolaris_Math_8Tests[] = {
6835 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
6836 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
6839 * Fix Command Arguments for Solaris_Math_8
6841 static const char* apzSolaris_Math_8Patch[] = {
6843 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6844 \t\t\t ? __builtin_signbitf(x) \\\n\
6845 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
6846 \t\t\t ? __builtin_signbitl(x) \\\n\
6847 \t\t\t : __builtin_signbit(x))",
6848 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6853 * Description of Solaris_Math_9 fix
6855 tSCC zSolaris_Math_9Name[] =
6859 * File name selection pattern
6861 tSCC zSolaris_Math_9List[] =
6864 * Machine/OS name selection pattern
6866 #define apzSolaris_Math_9Machs (const char**)NULL
6869 * content selection pattern - do fix if pattern found
6871 tSCC zSolaris_Math_9Select0[] =
6872 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6875 * content bypass pattern - skip fix if pattern found
6877 tSCC zSolaris_Math_9Bypass0[] =
6880 #define SOLARIS_MATH_9_TEST_CT 2
6881 static tTestDesc aSolaris_Math_9Tests[] = {
6882 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
6883 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
6886 * Fix Command Arguments for Solaris_Math_9
6888 static const char* apzSolaris_Math_9Patch[] = {
6890 "#define\t%1(x, y)%2__builtin_%1(x, y)",
6891 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6896 * Description of Solaris_Once_Init_1 fix
6898 tSCC zSolaris_Once_Init_1Name[] =
6899 "solaris_once_init_1";
6902 * File name selection pattern
6904 tSCC zSolaris_Once_Init_1List[] =
6907 * Machine/OS name selection pattern
6909 tSCC* apzSolaris_Once_Init_1Machs[] = {
6911 (const char*)NULL };
6914 * content selection pattern - do fix if pattern found
6916 tSCC zSolaris_Once_Init_1Select0[] =
6917 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6919 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6920 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6921 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6924 * Fix Command Arguments for Solaris_Once_Init_1
6926 static const char* apzSolaris_Once_Init_1Patch[] = {
6929 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6934 * Description of Solaris_Posix_Spawn_Restrict fix
6936 tSCC zSolaris_Posix_Spawn_RestrictName[] =
6937 "solaris_posix_spawn_restrict";
6940 * File name selection pattern
6942 tSCC zSolaris_Posix_Spawn_RestrictList[] =
6945 * Machine/OS name selection pattern
6947 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
6949 (const char*)NULL };
6952 * content selection pattern - do fix if pattern found
6954 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
6955 "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
6957 #define SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT 1
6958 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
6959 { TT_EGREP, zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
6962 * Fix Command Arguments for Solaris_Posix_Spawn_Restrict
6964 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
6966 "%1*_RESTRICT_KYWD %2%3",
6969 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6971 * Description of Solaris_Pow_Int_Overload fix
6973 tSCC zSolaris_Pow_Int_OverloadName[] =
6974 "solaris_pow_int_overload";
6977 * File name selection pattern
6979 tSCC zSolaris_Pow_Int_OverloadList[] =
6982 * Machine/OS name selection pattern
6984 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
6986 (const char*)NULL };
6989 * content selection pattern - do fix if pattern found
6991 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
6992 "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
6995 #define SOLARIS_POW_INT_OVERLOAD_TEST_CT 1
6996 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
6997 { TT_EGREP, zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
7000 * Fix Command Arguments for Solaris_Pow_Int_Overload
7002 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
7004 "#if __cplusplus < 201103L\n\
7009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7011 * Description of Solaris_Rwlock_Init_1 fix
7013 tSCC zSolaris_Rwlock_Init_1Name[] =
7014 "solaris_rwlock_init_1";
7017 * File name selection pattern
7019 tSCC zSolaris_Rwlock_Init_1List[] =
7022 * Machine/OS name selection pattern
7024 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
7026 (const char*)NULL };
7029 * content selection pattern - do fix if pattern found
7031 tSCC zSolaris_Rwlock_Init_1Select0[] =
7032 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7034 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
7035 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
7036 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
7039 * Fix Command Arguments for Solaris_Rwlock_Init_1
7041 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
7043 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
7046 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
7048 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
7051 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7053 * Description of Solaris_Std___Filbuf fix
7055 tSCC zSolaris_Std___FilbufName[] =
7056 "solaris_std___filbuf";
7059 * File name selection pattern
7061 tSCC zSolaris_Std___FilbufList[] =
7064 * Machine/OS name selection pattern
7066 tSCC* apzSolaris_Std___FilbufMachs[] = {
7068 (const char*)NULL };
7071 * content selection pattern - do fix if pattern found
7073 tSCC zSolaris_Std___FilbufSelect0[] =
7074 "(using std::perror;\n\
7078 * content bypass pattern - skip fix if pattern found
7080 tSCC zSolaris_Std___FilbufBypass0[] =
7081 "using std::__filbuf";
7083 #define SOLARIS_STD___FILBUF_TEST_CT 2
7084 static tTestDesc aSolaris_Std___FilbufTests[] = {
7085 { TT_NEGREP, zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
7086 { TT_EGREP, zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
7089 * Fix Command Arguments for Solaris_Std___Filbuf
7091 static const char* apzSolaris_Std___FilbufPatch[] = {
7094 using std::__filbuf;\n\
7095 using std::__flsbuf;\n\
7100 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7102 * Description of Solaris_Stdio_Tag fix
7104 tSCC zSolaris_Stdio_TagName[] =
7105 "solaris_stdio_tag";
7108 * File name selection pattern
7110 tSCC zSolaris_Stdio_TagList[] =
7113 * Machine/OS name selection pattern
7115 #define apzSolaris_Stdio_TagMachs (const char**)NULL
7118 * content selection pattern - do fix if pattern found
7120 tSCC zSolaris_Stdio_TagSelect0[] =
7121 "__cplusplus < 54321L";
7124 * content bypass pattern - skip fix if pattern found
7126 tSCC zSolaris_Stdio_TagBypass0[] =
7129 #define SOLARIS_STDIO_TAG_TEST_CT 2
7130 static tTestDesc aSolaris_Stdio_TagTests[] = {
7131 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
7132 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
7135 * Fix Command Arguments for Solaris_Stdio_Tag
7137 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
7138 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
7141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7143 * Description of Statsswtch fix
7145 tSCC zStatsswtchName[] =
7149 * File name selection pattern
7151 tSCC zStatsswtchList[] =
7154 * Machine/OS name selection pattern
7156 #define apzStatsswtchMachs (const char**)NULL
7159 * content selection pattern - do fix if pattern found
7161 tSCC zStatsswtchSelect0[] =
7164 #define STATSSWTCH_TEST_CT 1
7165 static tTestDesc aStatsswtchTests[] = {
7166 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
7169 * Fix Command Arguments for Statsswtch
7171 static const char* apzStatsswtchPatch[] = {
7176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7178 * Description of Stdio_Stdarg_H fix
7180 tSCC zStdio_Stdarg_HName[] =
7184 * File name selection pattern
7186 tSCC zStdio_Stdarg_HList[] =
7189 * Machine/OS name selection pattern
7191 tSCC* apzStdio_Stdarg_HMachs[] = {
7192 "*-*-solaris2.1[0-9]*",
7193 (const char*)NULL };
7196 * content bypass pattern - skip fix if pattern found
7198 tSCC zStdio_Stdarg_HBypass0[] =
7199 "include.*(stdarg.h|machine/ansi.h)";
7201 #define STDIO_STDARG_H_TEST_CT 1
7202 static tTestDesc aStdio_Stdarg_HTests[] = {
7203 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
7206 * Fix Command Arguments for Stdio_Stdarg_H
7208 static const char* apzStdio_Stdarg_HPatch[] = {
7210 "#define __need___va_list\n\
7211 #include <stdarg.h>\n",
7214 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7216 * Description of Stdio_Va_List fix
7218 tSCC zStdio_Va_ListName[] =
7222 * File name selection pattern
7224 tSCC zStdio_Va_ListList[] =
7227 * Machine/OS name selection pattern
7229 tSCC* apzStdio_Va_ListMachs[] = {
7230 "*-*-solaris2.1[0-9]*",
7231 (const char*)NULL };
7234 * content bypass pattern - skip fix if pattern found
7236 tSCC zStdio_Va_ListBypass0[] =
7237 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7239 #define STDIO_VA_LIST_TEST_CT 1
7240 static tTestDesc aStdio_Va_ListTests[] = {
7241 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
7244 * Fix Command Arguments for Stdio_Va_List
7246 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
7247 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7248 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7249 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7250 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7251 s@ va_list@ __not_va_list__@\n\
7252 s@\\*va_list@*__not_va_list__@\n\
7253 s@ __va_list)@ __gnuc_va_list)@\n\
7254 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7255 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7256 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7257 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7258 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7259 s@VA_LIST@DUMMY_VA_LIST@\n\
7260 s@_Va_LIST@_VA_LIST@",
7263 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7265 * Description of Stdio_Va_List_Clients fix
7267 tSCC zStdio_Va_List_ClientsName[] =
7268 "stdio_va_list_clients";
7271 * File name selection pattern
7273 tSCC zStdio_Va_List_ClientsList[] =
7274 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
7276 * Machine/OS name selection pattern
7278 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
7281 * content bypass pattern - skip fix if pattern found
7283 tSCC zStdio_Va_List_ClientsBypass0[] =
7284 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7285 tSCC zStdio_Va_List_ClientsBypass1[] =
7286 "include <stdarg\\.h>|#ifdef va_start";
7288 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
7289 static tTestDesc aStdio_Va_List_ClientsTests[] = {
7290 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
7291 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
7294 * Fix Command Arguments for Stdio_Va_List_Clients
7296 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
7297 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7298 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7299 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7300 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7301 s@ va_list@ __not_va_list__@\n\
7302 s@\\*va_list@*__not_va_list__@\n\
7303 s@ __va_list)@ __gnuc_va_list)@\n\
7304 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7305 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7306 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7307 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7308 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7309 s@VA_LIST@DUMMY_VA_LIST@\n\
7310 s@_Va_LIST@_VA_LIST@",
7313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7315 * Description of Strict_Ansi_Not fix
7317 tSCC zStrict_Ansi_NotName[] =
7321 * File name selection pattern
7323 #define zStrict_Ansi_NotList (char*)NULL
7325 * Machine/OS name selection pattern
7327 #define apzStrict_Ansi_NotMachs (const char**)NULL
7330 * content selection pattern - do fix if pattern found
7332 tSCC zStrict_Ansi_NotSelect0[] =
7333 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
7336 * content bypass pattern - skip fix if pattern found
7338 tSCC zStrict_Ansi_NotBypass0[] =
7339 "GNU and MIPS C compilers define __STDC__ differently";
7340 tSCC zStrict_Ansi_NotBypass1[] =
7341 "__SCO_VERSION__.*__STDC__ != 1";
7344 * perform the C function call test
7346 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
7348 #define STRICT_ANSI_NOT_TEST_CT 4
7349 static tTestDesc aStrict_Ansi_NotTests[] = {
7350 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
7351 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
7352 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7353 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
7356 * Fix Command Arguments for Strict_Ansi_Not
7358 static const char* apzStrict_Ansi_NotPatch[] = {
7360 "%1 !defined(__STRICT_ANSI__)",
7363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7365 * Description of Strict_Ansi_Not_Ctd fix
7367 tSCC zStrict_Ansi_Not_CtdName[] =
7368 "strict_ansi_not_ctd";
7371 * File name selection pattern
7373 tSCC zStrict_Ansi_Not_CtdList[] =
7374 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
7376 * Machine/OS name selection pattern
7378 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
7381 * content selection pattern - do fix if pattern found
7383 tSCC zStrict_Ansi_Not_CtdSelect0[] =
7384 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7387 * perform the C function call test
7389 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7391 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
7392 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7393 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
7394 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7397 * Fix Command Arguments for Strict_Ansi_Not_Ctd
7399 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7401 "%1 !defined(__STRICT_ANSI__)",
7404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7406 * Description of Strict_Ansi_Only fix
7408 tSCC zStrict_Ansi_OnlyName[] =
7412 * File name selection pattern
7414 #define zStrict_Ansi_OnlyList (char*)NULL
7416 * Machine/OS name selection pattern
7418 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7421 * content selection pattern - do fix if pattern found
7423 tSCC zStrict_Ansi_OnlySelect0[] =
7424 "^([ \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)";
7427 * perform the C function call test
7429 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7431 #define STRICT_ANSI_ONLY_TEST_CT 2
7432 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7433 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
7434 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7437 * Fix Command Arguments for Strict_Ansi_Only
7439 static const char* apzStrict_Ansi_OnlyPatch[] = {
7441 "%1 defined(__STRICT_ANSI__)",
7444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7446 * Description of Struct_File fix
7448 tSCC zStruct_FileName[] =
7452 * File name selection pattern
7454 tSCC zStruct_FileList[] =
7457 * Machine/OS name selection pattern
7459 #define apzStruct_FileMachs (const char**)NULL
7462 * content selection pattern - do fix if pattern found
7464 tSCC zStruct_FileSelect0[] =
7465 "^.*xdrstdio_create.*struct __file_s";
7467 #define STRUCT_FILE_TEST_CT 1
7468 static tTestDesc aStruct_FileTests[] = {
7469 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
7472 * Fix Command Arguments for Struct_File
7474 static const char* apzStruct_FilePatch[] = {
7476 "struct __file_s;\n\
7480 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7482 * Description of Struct_Sockaddr fix
7484 tSCC zStruct_SockaddrName[] =
7488 * File name selection pattern
7490 tSCC zStruct_SockaddrList[] =
7493 * Machine/OS name selection pattern
7495 #define apzStruct_SockaddrMachs (const char**)NULL
7498 * content selection pattern - do fix if pattern found
7500 tSCC zStruct_SockaddrSelect0[] =
7501 "^.*authdes_create.*struct sockaddr[^_]";
7504 * content bypass pattern - skip fix if pattern found
7506 tSCC zStruct_SockaddrBypass0[] =
7508 tSCC zStruct_SockaddrBypass1[] =
7509 "struct sockaddr;\n";
7511 #define STRUCT_SOCKADDR_TEST_CT 3
7512 static tTestDesc aStruct_SockaddrTests[] = {
7513 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
7514 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
7515 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7518 * Fix Command Arguments for Struct_Sockaddr
7520 static const char* apzStruct_SockaddrPatch[] = {
7522 "struct sockaddr;\n\
7526 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7528 * Description of Sun_Auth_Proto fix
7530 tSCC zSun_Auth_ProtoName[] =
7534 * File name selection pattern
7536 tSCC zSun_Auth_ProtoList[] =
7537 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7539 * Machine/OS name selection pattern
7541 #define apzSun_Auth_ProtoMachs (const char**)NULL
7544 * content selection pattern - do fix if pattern found
7546 tSCC zSun_Auth_ProtoSelect0[] =
7547 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7550 * content bypass pattern - skip fix if pattern found
7552 tSCC zSun_Auth_ProtoBypass0[] =
7555 #define SUN_AUTH_PROTO_TEST_CT 2
7556 static tTestDesc aSun_Auth_ProtoTests[] = {
7557 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7558 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7561 * Fix Command Arguments for Sun_Auth_Proto
7563 static const char* apzSun_Auth_ProtoPatch[] = {
7565 "#ifdef __cplusplus\n\
7570 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7573 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7575 * Description of Sun_Bogus_Ifdef fix
7577 tSCC zSun_Bogus_IfdefName[] =
7581 * File name selection pattern
7583 tSCC zSun_Bogus_IfdefList[] =
7584 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7586 * Machine/OS name selection pattern
7588 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7591 * content selection pattern - do fix if pattern found
7593 tSCC zSun_Bogus_IfdefSelect0[] =
7594 "#ifdef(.*\\|\\|.*)";
7596 #define SUN_BOGUS_IFDEF_TEST_CT 1
7597 static tTestDesc aSun_Bogus_IfdefTests[] = {
7598 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7601 * Fix Command Arguments for Sun_Bogus_Ifdef
7603 static const char* apzSun_Bogus_IfdefPatch[] = {
7608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7610 * Description of Sun_Catmacro fix
7612 tSCC zSun_CatmacroName[] =
7616 * File name selection pattern
7618 tSCC zSun_CatmacroList[] =
7619 "pixrect/memvar.h\0";
7621 * Machine/OS name selection pattern
7623 #define apzSun_CatmacroMachs (const char**)NULL
7626 * content selection pattern - do fix if pattern found
7628 tSCC zSun_CatmacroSelect0[] =
7629 "^#define[ \t]+CAT\\(a,b\\).*";
7631 #define SUN_CATMACRO_TEST_CT 1
7632 static tTestDesc aSun_CatmacroTests[] = {
7633 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
7636 * Fix Command Arguments for Sun_Catmacro
7638 static const char* apzSun_CatmacroPatch[] = {
7641 # define CAT(a,b) a##b\n\
7647 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7649 * Description of Sun_Malloc fix
7651 tSCC zSun_MallocName[] =
7655 * File name selection pattern
7657 tSCC zSun_MallocList[] =
7660 * Machine/OS name selection pattern
7662 #define apzSun_MallocMachs (const char**)NULL
7665 * content bypass pattern - skip fix if pattern found
7667 tSCC zSun_MallocBypass0[] =
7668 "_CLASSIC_ANSI_TYPES";
7670 #define SUN_MALLOC_TEST_CT 1
7671 static tTestDesc aSun_MallocTests[] = {
7672 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
7675 * Fix Command Arguments for Sun_Malloc
7677 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7678 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7679 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7680 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7681 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7682 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7687 * Description of Sun_Rusers_Semi fix
7689 tSCC zSun_Rusers_SemiName[] =
7693 * File name selection pattern
7695 tSCC zSun_Rusers_SemiList[] =
7696 "rpcsvc/rusers.h\0";
7698 * Machine/OS name selection pattern
7700 #define apzSun_Rusers_SemiMachs (const char**)NULL
7703 * content selection pattern - do fix if pattern found
7705 tSCC zSun_Rusers_SemiSelect0[] =
7708 #define SUN_RUSERS_SEMI_TEST_CT 1
7709 static tTestDesc aSun_Rusers_SemiTests[] = {
7710 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7713 * Fix Command Arguments for Sun_Rusers_Semi
7715 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7716 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7719 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7721 * Description of Sun_Signal fix
7723 tSCC zSun_SignalName[] =
7727 * File name selection pattern
7729 tSCC zSun_SignalList[] =
7730 "sys/signal.h\0signal.h\0";
7732 * Machine/OS name selection pattern
7734 #define apzSun_SignalMachs (const char**)NULL
7737 * content selection pattern - do fix if pattern found
7739 tSCC zSun_SignalSelect0[] =
7740 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7742 #define SUN_SIGNAL_TEST_CT 1
7743 static tTestDesc aSun_SignalTests[] = {
7744 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
7747 * Fix Command Arguments for Sun_Signal
7749 static const char* apzSun_SignalPatch[] = {
7751 "#ifdef __cplusplus\n\
7752 void\t(*signal(...))(...);\n\
7758 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7760 * Description of Sunos_Strlen fix
7762 tSCC zSunos_StrlenName[] =
7766 * File name selection pattern
7768 tSCC zSunos_StrlenList[] =
7771 * Machine/OS name selection pattern
7773 #define apzSunos_StrlenMachs (const char**)NULL
7776 * content selection pattern - do fix if pattern found
7778 tSCC zSunos_StrlenSelect0[] =
7779 "int[ \t]*strlen\\(\\);(.*)";
7781 #define SUNOS_STRLEN_TEST_CT 1
7782 static tTestDesc aSunos_StrlenTests[] = {
7783 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
7786 * Fix Command Arguments for Sunos_Strlen
7788 static const char* apzSunos_StrlenPatch[] = {
7790 "__SIZE_TYPE__ strlen();%1",
7793 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7795 * Description of Suse_Linux_Vt_Cxx fix
7797 tSCC zSuse_Linux_Vt_CxxName[] =
7798 "suse_linux_vt_cxx";
7801 * File name selection pattern
7803 tSCC zSuse_Linux_Vt_CxxList[] =
7806 * Machine/OS name selection pattern
7808 #define apzSuse_Linux_Vt_CxxMachs (const char**)NULL
7811 * content selection pattern - do fix if pattern found
7813 tSCC zSuse_Linux_Vt_CxxSelect0[] =
7814 "^[ \t]*unsigned int new;";
7816 #define SUSE_LINUX_VT_CXX_TEST_CT 1
7817 static tTestDesc aSuse_Linux_Vt_CxxTests[] = {
7818 { TT_EGREP, zSuse_Linux_Vt_CxxSelect0, (regex_t*)NULL }, };
7821 * Fix Command Arguments for Suse_Linux_Vt_Cxx
7823 static const char* apzSuse_Linux_Vt_CxxPatch[] = {
7825 "unsigned int newev;",
7828 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7830 * Description of Svr4_Disable_Opt fix
7832 tSCC zSvr4_Disable_OptName[] =
7836 * File name selection pattern
7838 tSCC zSvr4_Disable_OptList[] =
7841 * Machine/OS name selection pattern
7843 #define apzSvr4_Disable_OptMachs (const char**)NULL
7846 * content selection pattern - do fix if pattern found
7848 tSCC zSvr4_Disable_OptSelect0[] =
7849 "#define.*__std_hdr_";
7851 #define SVR4_DISABLE_OPT_TEST_CT 1
7852 static tTestDesc aSvr4_Disable_OptTests[] = {
7853 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7856 * Fix Command Arguments for Svr4_Disable_Opt
7858 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
7859 "-e", "/#define.*__std_hdr_/d",
7862 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7864 * Description of Svr4_Getcwd fix
7866 tSCC zSvr4_GetcwdName[] =
7870 * File name selection pattern
7872 tSCC zSvr4_GetcwdList[] =
7873 "stdlib.h\0unistd.h\0prototypes.h\0";
7875 * Machine/OS name selection pattern
7877 #define apzSvr4_GetcwdMachs (const char**)NULL
7880 * content selection pattern - do fix if pattern found
7882 tSCC zSvr4_GetcwdSelect0[] =
7883 "getcwd\\(char \\*, int\\)";
7885 #define SVR4_GETCWD_TEST_CT 1
7886 static tTestDesc aSvr4_GetcwdTests[] = {
7887 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7890 * Fix Command Arguments for Svr4_Getcwd
7892 static const char* apzSvr4_GetcwdPatch[] = {
7894 "getcwd(char *, size_t)",
7897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7899 * Description of Svr4_Profil fix
7901 tSCC zSvr4_ProfilName[] =
7905 * File name selection pattern
7907 tSCC zSvr4_ProfilList[] =
7908 "stdlib.h\0unistd.h\0";
7910 * Machine/OS name selection pattern
7912 #define apzSvr4_ProfilMachs (const char**)NULL
7915 * content selection pattern - do fix if pattern found
7917 tSCC zSvr4_ProfilSelect0[] =
7918 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7920 #define SVR4_PROFIL_TEST_CT 1
7921 static tTestDesc aSvr4_ProfilTests[] = {
7922 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7925 * Fix Command Arguments for Svr4_Profil
7927 static const char* apzSvr4_ProfilPatch[] = {
7929 "profil(unsigned short *, size_t, int, unsigned int)",
7932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7934 * Description of Svr4_Sighandler_Type fix
7936 tSCC zSvr4_Sighandler_TypeName[] =
7937 "svr4_sighandler_type";
7940 * File name selection pattern
7942 tSCC zSvr4_Sighandler_TypeList[] =
7945 * Machine/OS name selection pattern
7947 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7950 * content selection pattern - do fix if pattern found
7952 tSCC zSvr4_Sighandler_TypeSelect0[] =
7953 "void *\\(\\*\\)\\(\\)";
7955 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7956 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7957 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7960 * Fix Command Arguments for Svr4_Sighandler_Type
7962 static const char* apzSvr4_Sighandler_TypePatch[] = {
7967 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7969 * Description of Svr4_Undeclared_Getrnge fix
7971 tSCC zSvr4_Undeclared_GetrngeName[] =
7972 "svr4_undeclared_getrnge";
7975 * File name selection pattern
7977 tSCC zSvr4_Undeclared_GetrngeList[] =
7980 * Machine/OS name selection pattern
7982 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7985 * content selection pattern - do fix if pattern found
7987 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7991 * content bypass pattern - skip fix if pattern found
7993 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7994 "static void getrnge";
7996 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
7997 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7998 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7999 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
8002 * Fix Command Arguments for Svr4_Undeclared_Getrnge
8004 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
8007 static int getrnge ();",
8008 "^static int[ \t]+size;",
8011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8013 * Description of Sysv68_String fix
8015 tSCC zSysv68_StringName[] =
8019 * File name selection pattern
8021 tSCC zSysv68_StringList[] =
8022 "testing.h\0string.h\0";
8024 * Machine/OS name selection pattern
8026 #define apzSysv68_StringMachs (const char**)NULL
8029 * content bypass pattern - skip fix if pattern found
8031 tSCC zSysv68_StringBypass0[] =
8032 "_CLASSIC_ANSI_TYPES";
8034 #define SYSV68_STRING_TEST_CT 1
8035 static tTestDesc aSysv68_StringTests[] = {
8036 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
8039 * Fix Command Arguments for Sysv68_String
8041 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
8042 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
8043 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
8044 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
8045 "-e", "/^extern char$/N",
8046 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
8047 "-e", "/^extern int$/N",
8048 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
8049 "-e", "/^\tstrncmp(),$/N",
8050 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
8051 extern unsigned int\\\n\
8055 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8057 * Description of Sysz_Stdlib_For_Sun fix
8059 tSCC zSysz_Stdlib_For_SunName[] =
8060 "sysz_stdlib_for_sun";
8063 * File name selection pattern
8065 tSCC zSysz_Stdlib_For_SunList[] =
8068 * Machine/OS name selection pattern
8070 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
8073 * content selection pattern - do fix if pattern found
8075 tSCC zSysz_Stdlib_For_SunSelect0[] =
8076 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
8079 * content bypass pattern - skip fix if pattern found
8081 tSCC zSysz_Stdlib_For_SunBypass0[] =
8082 "_CLASSIC_ANSI_TYPES";
8084 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
8085 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
8086 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
8087 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
8090 * Fix Command Arguments for Sysz_Stdlib_For_Sun
8092 static const char* apzSysz_Stdlib_For_SunPatch[] = {
8097 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8099 * Description of Thread_Keyword fix
8101 tSCC zThread_KeywordName[] =
8105 * File name selection pattern
8107 tSCC zThread_KeywordList[] =
8108 "pthread.h\0bits/sigthread.h\0*/bits/sigthread.h\0";
8110 * Machine/OS name selection pattern
8112 #define apzThread_KeywordMachs (const char**)NULL
8115 * content selection pattern - do fix if pattern found
8117 tSCC zThread_KeywordSelect0[] =
8118 "([* ])__thread([,)])";
8120 #define THREAD_KEYWORD_TEST_CT 1
8121 static tTestDesc aThread_KeywordTests[] = {
8122 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
8125 * Fix Command Arguments for Thread_Keyword
8127 static const char* apzThread_KeywordPatch[] = {
8132 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8134 * Description of Tinfo_Cplusplus fix
8136 tSCC zTinfo_CplusplusName[] =
8140 * File name selection pattern
8142 tSCC zTinfo_CplusplusList[] =
8145 * Machine/OS name selection pattern
8147 #define apzTinfo_CplusplusMachs (const char**)NULL
8150 * content selection pattern - do fix if pattern found
8152 tSCC zTinfo_CplusplusSelect0[] =
8155 #define TINFO_CPLUSPLUS_TEST_CT 1
8156 static tTestDesc aTinfo_CplusplusTests[] = {
8157 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
8160 * Fix Command Arguments for Tinfo_Cplusplus
8162 static const char* apzTinfo_CplusplusPatch[] = {
8167 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8169 * Description of Ultrix_Const fix
8171 tSCC zUltrix_ConstName[] =
8175 * File name selection pattern
8177 tSCC zUltrix_ConstList[] =
8180 * Machine/OS name selection pattern
8182 #define apzUltrix_ConstMachs (const char**)NULL
8185 * content selection pattern - do fix if pattern found
8187 tSCC zUltrix_ConstSelect0[] =
8188 "perror\\( char \\*";
8190 #define ULTRIX_CONST_TEST_CT 1
8191 static tTestDesc aUltrix_ConstTests[] = {
8192 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
8195 * Fix Command Arguments for Ultrix_Const
8197 static const char* apzUltrix_ConstPatch[] = {
8200 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
8203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8205 * Description of Ultrix_Const2 fix
8207 tSCC zUltrix_Const2Name[] =
8211 * File name selection pattern
8213 tSCC zUltrix_Const2List[] =
8216 * Machine/OS name selection pattern
8218 #define apzUltrix_Const2Machs (const char**)NULL
8221 * content selection pattern - do fix if pattern found
8223 tSCC zUltrix_Const2Select0[] =
8224 "\\*fopen\\( char \\*";
8226 #define ULTRIX_CONST2_TEST_CT 1
8227 static tTestDesc aUltrix_Const2Tests[] = {
8228 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
8231 * Fix Command Arguments for Ultrix_Const2
8233 static const char* apzUltrix_Const2Patch[] = {
8235 "%1( const char *%3, const char *",
8236 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
8239 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8241 * Description of Va_I960_Macro fix
8243 tSCC zVa_I960_MacroName[] =
8247 * File name selection pattern
8249 tSCC zVa_I960_MacroList[] =
8250 "arch/i960/archI960.h\0";
8252 * Machine/OS name selection pattern
8254 #define apzVa_I960_MacroMachs (const char**)NULL
8257 * content selection pattern - do fix if pattern found
8259 tSCC zVa_I960_MacroSelect0[] =
8260 "__(vsiz|vali|vpad|alignof__)";
8262 #define VA_I960_MACRO_TEST_CT 1
8263 static tTestDesc aVa_I960_MacroTests[] = {
8264 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8267 * Fix Command Arguments for Va_I960_Macro
8269 static const char* apzVa_I960_MacroPatch[] = {
8274 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8276 * Description of Vms_Add_Missing_Braces fix
8278 tSCC zVms_Add_Missing_BracesName[] =
8279 "vms_add_missing_braces";
8282 * File name selection pattern
8284 tSCC zVms_Add_Missing_BracesList[] =
8285 "rtldef/signal.h\0";
8287 * Machine/OS name selection pattern
8289 tSCC* apzVms_Add_Missing_BracesMachs[] = {
8291 (const char*)NULL };
8294 * content selection pattern - do fix if pattern found
8296 tSCC zVms_Add_Missing_BracesSelect0[] =
8297 "(_SIG_[A-Z]+_SET[ \t]+= \\{)(0x[0F]+, 0x[0F]+)";
8299 #define VMS_ADD_MISSING_BRACES_TEST_CT 1
8300 static tTestDesc aVms_Add_Missing_BracesTests[] = {
8301 { TT_EGREP, zVms_Add_Missing_BracesSelect0, (regex_t*)NULL }, };
8304 * Fix Command Arguments for Vms_Add_Missing_Braces
8306 static const char* apzVms_Add_Missing_BracesPatch[] = {
8311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8313 * Description of Vms_Decc_Builtin fix
8315 tSCC zVms_Decc_BuiltinName[] =
8319 * File name selection pattern
8321 tSCC zVms_Decc_BuiltinList[] =
8322 "rtldef/string.h\0rtldef/time.h\0rtldef/strings.h\0rtldef/socket.h\0";
8324 * Machine/OS name selection pattern
8326 tSCC* apzVms_Decc_BuiltinMachs[] = {
8328 (const char*)NULL };
8331 * content selection pattern - do fix if pattern found
8333 tSCC zVms_Decc_BuiltinSelect0[] =
8334 "(__MEMSET|__MEMMOVE|__MEMCPY|__STRLEN|__STRCPY)";
8336 #define VMS_DECC_BUILTIN_TEST_CT 1
8337 static tTestDesc aVms_Decc_BuiltinTests[] = {
8338 { TT_EGREP, zVms_Decc_BuiltinSelect0, (regex_t*)NULL }, };
8341 * Fix Command Arguments for Vms_Decc_Builtin
8343 static const char* apzVms_Decc_BuiltinPatch[] = { sed_cmd_z,
8344 "-e", "s@__MEMSET@memset@",
8345 "-e", "s@__MEMMOVE@memmove@",
8346 "-e", "s@__MEMCPY@memcpy@",
8347 "-e", "s@__STRLEN@strlen@",
8348 "-e", "s@__STRCPY@strcpy@",
8351 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8353 * Description of Vms_Define_Can_Use_Extern_Prefix fix
8355 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
8356 "vms_define_can_use_extern_prefix";
8359 * File name selection pattern
8361 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
8362 "rtldef/decc$types.h\0";
8364 * Machine/OS name selection pattern
8366 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
8368 (const char*)NULL };
8371 * content selection pattern - do fix if pattern found
8373 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
8375 #[ \t]*if defined\\(__DECCXX\\)\n\
8376 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
8378 #define VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT 1
8379 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
8380 { TT_EGREP, zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
8383 * Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
8385 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
8387 "%0# elif defined (__GNUC__)\n\
8388 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
8391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8393 * Description of Vms_Disable_Decc_String_Builtins fix
8395 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
8396 "vms_disable_decc_string_builtins";
8399 * File name selection pattern
8401 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
8402 "rtldef/string.h\0";
8404 * Machine/OS name selection pattern
8406 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
8408 (const char*)NULL };
8411 * content selection pattern - do fix if pattern found
8413 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
8414 "#if !defined\\(__VAX\\)\n";
8416 #define VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT 1
8417 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
8418 { TT_EGREP, zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
8421 * Fix Command Arguments for Vms_Disable_Decc_String_Builtins
8423 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
8425 "#if !defined(__VAX) && !defined(__GNUC__)\n",
8428 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8430 * Description of Vms_Do_Not_Redeclare_Hostalias fix
8432 tSCC zVms_Do_Not_Redeclare_HostaliasName[] =
8433 "vms_do_not_redeclare_hostalias";
8436 * File name selection pattern
8438 tSCC zVms_Do_Not_Redeclare_HostaliasList[] =
8439 "rtldef/resolv.h\0";
8441 * Machine/OS name selection pattern
8443 tSCC* apzVms_Do_Not_Redeclare_HostaliasMachs[] = {
8445 (const char*)NULL };
8448 * content selection pattern - do fix if pattern found
8450 tSCC zVms_Do_Not_Redeclare_HostaliasSelect0[] =
8451 "(void[ \t]+fp_nquery \\(const u_char \\*, int, FILE \\*\\);)\n\
8452 (__char_ptr32[ \t]+hostalias \\(const char \\*\\);)";
8454 #define VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT 1
8455 static tTestDesc aVms_Do_Not_Redeclare_HostaliasTests[] = {
8456 { TT_EGREP, zVms_Do_Not_Redeclare_HostaliasSelect0, (regex_t*)NULL }, };
8459 * Fix Command Arguments for Vms_Do_Not_Redeclare_Hostalias
8461 static const char* apzVms_Do_Not_Redeclare_HostaliasPatch[] = {
8467 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8469 * Description of Vms_Forward_Declare_Struct fix
8471 tSCC zVms_Forward_Declare_StructName[] =
8472 "vms_forward_declare_struct";
8475 * File name selection pattern
8477 tSCC zVms_Forward_Declare_StructList[] =
8480 * Machine/OS name selection pattern
8482 tSCC* apzVms_Forward_Declare_StructMachs[] = {
8484 (const char*)NULL };
8487 * content selection pattern - do fix if pattern found
8489 tSCC zVms_Forward_Declare_StructSelect0[] =
8490 "(/\\* forward decls for C\\+\\+ \\*/\n\
8491 )#ifdef __cplusplus\n";
8493 #define VMS_FORWARD_DECLARE_STRUCT_TEST_CT 1
8494 static tTestDesc aVms_Forward_Declare_StructTests[] = {
8495 { TT_EGREP, zVms_Forward_Declare_StructSelect0, (regex_t*)NULL }, };
8498 * Fix Command Arguments for Vms_Forward_Declare_Struct
8500 static const char* apzVms_Forward_Declare_StructPatch[] = {
8502 "%1#if defined (__cplusplus) || defined (__GNUC__)\n",
8505 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8507 * Description of Vms_No_64bit_Getopt fix
8509 tSCC zVms_No_64bit_GetoptName[] =
8510 "vms_no_64bit_getopt";
8513 * File name selection pattern
8515 tSCC zVms_No_64bit_GetoptList[] =
8516 "rtldef/stdio.h\0rtldef/unistd.h\0";
8518 * Machine/OS name selection pattern
8520 tSCC* apzVms_No_64bit_GetoptMachs[] = {
8522 (const char*)NULL };
8525 * content selection pattern - do fix if pattern found
8527 tSCC zVms_No_64bit_GetoptSelect0[] =
8528 "^[ \t]*(extern[ \t]*)?(int[ \t]*(getopt|optind|opterr|optopt)|(char \\*optarg))([ \t]*\\(.*\\))?;\n";
8530 #define VMS_NO_64BIT_GETOPT_TEST_CT 1
8531 static tTestDesc aVms_No_64bit_GetoptTests[] = {
8532 { TT_EGREP, zVms_No_64bit_GetoptSelect0, (regex_t*)NULL }, };
8535 * Fix Command Arguments for Vms_No_64bit_Getopt
8537 static const char* apzVms_No_64bit_GetoptPatch[] = {
8539 "#if __INITIAL_POINTER_SIZE != 64 /* getopt is short ptr only. */\n\
8543 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8545 * Description of Vms_Use_Fast_Setjmp fix
8547 tSCC zVms_Use_Fast_SetjmpName[] =
8548 "vms_use_fast_setjmp";
8551 * File name selection pattern
8553 tSCC zVms_Use_Fast_SetjmpList[] =
8554 "rtldef/setjmp.h\0";
8556 * Machine/OS name selection pattern
8558 tSCC* apzVms_Use_Fast_SetjmpMachs[] = {
8560 (const char*)NULL };
8563 * content selection pattern - do fix if pattern found
8565 tSCC zVms_Use_Fast_SetjmpSelect0[] =
8566 "(#[ \t]*if[ \t]*defined\\(__FAST_SETJMP\\)[ \t]*\\|\\|)";
8568 #define VMS_USE_FAST_SETJMP_TEST_CT 1
8569 static tTestDesc aVms_Use_Fast_SetjmpTests[] = {
8570 { TT_EGREP, zVms_Use_Fast_SetjmpSelect0, (regex_t*)NULL }, };
8573 * Fix Command Arguments for Vms_Use_Fast_Setjmp
8575 static const char* apzVms_Use_Fast_SetjmpPatch[] = {
8577 "%0 defined (__GNUC__) ||",
8580 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8582 * Description of Vms_Use_Pragma_Extern_Model fix
8584 tSCC zVms_Use_Pragma_Extern_ModelName[] =
8585 "vms_use_pragma_extern_model";
8588 * File name selection pattern
8590 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
8592 * Machine/OS name selection pattern
8594 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
8596 (const char*)NULL };
8599 * content selection pattern - do fix if pattern found
8601 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
8602 "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
8603 # pragma extern_model __save\n";
8605 #define VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT 1
8606 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
8607 { TT_EGREP, zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
8610 * Fix Command Arguments for Vms_Use_Pragma_Extern_Model
8612 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
8614 "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
8615 # pragma extern_model __save\n",
8618 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8620 * Description of Vms_Use_Quoted_Include fix
8622 tSCC zVms_Use_Quoted_IncludeName[] =
8623 "vms_use_quoted_include";
8626 * File name selection pattern
8628 tSCC zVms_Use_Quoted_IncludeList[] =
8629 "rtldef/wait.h\0starlet_c/pthread.h\0";
8631 * Machine/OS name selection pattern
8633 tSCC* apzVms_Use_Quoted_IncludeMachs[] = {
8635 (const char*)NULL };
8638 * content selection pattern - do fix if pattern found
8640 tSCC zVms_Use_Quoted_IncludeSelect0[] =
8641 "(#[ \t]*include[ \t]+)<(resource|builtins)\\.h>";
8643 #define VMS_USE_QUOTED_INCLUDE_TEST_CT 1
8644 static tTestDesc aVms_Use_Quoted_IncludeTests[] = {
8645 { TT_EGREP, zVms_Use_Quoted_IncludeSelect0, (regex_t*)NULL }, };
8648 * Fix Command Arguments for Vms_Use_Quoted_Include
8650 static const char* apzVms_Use_Quoted_IncludePatch[] = {
8655 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8657 * Description of Void_Null fix
8659 tSCC zVoid_NullName[] =
8663 * File name selection pattern
8665 tSCC zVoid_NullList[] =
8666 "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";
8668 * Machine/OS name selection pattern
8670 #define apzVoid_NullMachs (const char**)NULL
8673 * content selection pattern - do fix if pattern found
8675 tSCC zVoid_NullSelect0[] =
8676 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8679 * content bypass pattern - skip fix if pattern found
8681 tSCC zVoid_NullBypass0[] =
8683 tSCC zVoid_NullBypass1[] =
8686 #define VOID_NULL_TEST_CT 3
8687 static tTestDesc aVoid_NullTests[] = {
8688 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
8689 { TT_NEGREP, zVoid_NullBypass1, (regex_t*)NULL },
8690 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
8693 * Fix Command Arguments for Void_Null
8695 static const char* apzVoid_NullPatch[] = {
8698 #ifdef __cplusplus\n\
8700 #define NULL __null\n\
8701 #else /* ! __GNUG__ */\n\
8703 #endif /* __GNUG__ */\n\
8704 #else /* ! __cplusplus */\n\
8705 #define NULL ((void *)0)\n\
8706 #endif /* __cplusplus */\n\
8707 #endif /* !NULL */",
8710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8712 * Description of Vxworks_Gcc_Problem fix
8714 tSCC zVxworks_Gcc_ProblemName[] =
8715 "vxworks_gcc_problem";
8718 * File name selection pattern
8720 tSCC zVxworks_Gcc_ProblemList[] =
8721 "types/vxTypesBase.h\0";
8723 * Machine/OS name selection pattern
8725 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8728 * content selection pattern - do fix if pattern found
8730 tSCC zVxworks_Gcc_ProblemSelect0[] =
8731 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8733 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
8734 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8735 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8738 * Fix Command Arguments for Vxworks_Gcc_Problem
8740 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8741 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8742 "-e", "/[ \t]size_t/i\\\n\
8743 #ifndef _GCC_SIZE_T\\\n\
8744 #define _GCC_SIZE_T\n",
8745 "-e", "/[ \t]size_t/a\\\n\
8747 "-e", "/[ \t]ptrdiff_t/i\\\n\
8748 #ifndef _GCC_PTRDIFF_T\\\n\
8749 #define _GCC_PTRDIFF_T\n",
8750 "-e", "/[ \t]ptrdiff_t/a\\\n\
8752 "-e", "/[ \t]wchar_t/i\\\n\
8753 #ifndef _GCC_WCHAR_T\\\n\
8754 #define _GCC_WCHAR_T\n",
8755 "-e", "/[ \t]wchar_t/a\\\n\
8759 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8761 * Description of Vxworks_Ioctl_Macro fix
8763 tSCC zVxworks_Ioctl_MacroName[] =
8764 "vxworks_ioctl_macro";
8767 * File name selection pattern
8769 tSCC zVxworks_Ioctl_MacroList[] =
8772 * Machine/OS name selection pattern
8774 tSCC* apzVxworks_Ioctl_MacroMachs[] = {
8776 (const char*)NULL };
8777 #define VXWORKS_IOCTL_MACRO_TEST_CT 0
8778 #define aVxworks_Ioctl_MacroTests (tTestDesc*)NULL
8781 * Fix Command Arguments for Vxworks_Ioctl_Macro
8783 static const char* apzVxworks_Ioctl_MacroPatch[] = {
8786 #define ioctl(fd, func, arg) (ioctl)(fd, func, (int)(arg))\n",
8787 "extern[\t ]+int[\t ]+ioctl[\t ]*\\([\t ,[:alnum:]]*\\);",
8790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8792 * Description of Vxworks_Mkdir_Macro fix
8794 tSCC zVxworks_Mkdir_MacroName[] =
8795 "vxworks_mkdir_macro";
8798 * File name selection pattern
8800 tSCC zVxworks_Mkdir_MacroList[] =
8803 * Machine/OS name selection pattern
8805 tSCC* apzVxworks_Mkdir_MacroMachs[] = {
8807 (const char*)NULL };
8808 #define VXWORKS_MKDIR_MACRO_TEST_CT 0
8809 #define aVxworks_Mkdir_MacroTests (tTestDesc*)NULL
8812 * Fix Command Arguments for Vxworks_Mkdir_Macro
8814 static const char* apzVxworks_Mkdir_MacroPatch[] = {
8817 #define mkdir(dir, ...) ((void)0, ##__VA_ARGS__, (mkdir)(dir))\n",
8818 "extern[\t ]+STATUS[\t ]+mkdir[\t ]*\\([\t ]*const[\t ]+char[\t ]*\\*[\t ]*(|[_[:alpha:]][_[:alnum:]]*)\\)[\t ]*;",
8821 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8823 * Description of Vxworks_Needs_Vxtypes fix
8825 tSCC zVxworks_Needs_VxtypesName[] =
8826 "vxworks_needs_vxtypes";
8829 * File name selection pattern
8831 tSCC zVxworks_Needs_VxtypesList[] =
8834 * Machine/OS name selection pattern
8836 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8839 * content selection pattern - do fix if pattern found
8841 tSCC zVxworks_Needs_VxtypesSelect0[] =
8842 "uint_t([ \t]+_clocks_per_sec)";
8844 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
8845 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8846 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8849 * Fix Command Arguments for Vxworks_Needs_Vxtypes
8851 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8856 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8858 * Description of Vxworks_Needs_Vxworks fix
8860 tSCC zVxworks_Needs_VxworksName[] =
8861 "vxworks_needs_vxworks";
8864 * File name selection pattern
8866 tSCC zVxworks_Needs_VxworksList[] =
8869 * Machine/OS name selection pattern
8871 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8874 * content selection pattern - do fix if pattern found
8876 tSCC zVxworks_Needs_VxworksSelect0[] =
8877 "#[ \t]define[ \t]+__INCstath";
8880 * perform the 'test' shell command - do fix on success
8882 tSCC zVxworks_Needs_VxworksTest0[] =
8883 " -r types/vxTypesOld.h";
8884 tSCC zVxworks_Needs_VxworksTest1[] =
8885 " -n \"`egrep '#include' $file`\"";
8886 tSCC zVxworks_Needs_VxworksTest2[] =
8887 " -n \"`egrep ULONG $file`\"";
8889 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
8890 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8891 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
8892 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
8893 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
8894 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8897 * Fix Command Arguments for Vxworks_Needs_Vxworks
8899 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8900 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8901 #include <types/vxTypesOld.h>\n",
8904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8906 * Description of Vxworks_Regs fix
8908 tSCC zVxworks_RegsName[] =
8912 * File name selection pattern
8914 #define zVxworks_RegsList (char*)NULL
8916 * Machine/OS name selection pattern
8918 tSCC* apzVxworks_RegsMachs[] = {
8920 (const char*)NULL };
8923 * content selection pattern - do fix if pattern found
8925 tSCC zVxworks_RegsSelect0[] =
8926 "#[\t ]*include[\t ]+[<\"]regs.h[>\"]";
8928 #define VXWORKS_REGS_TEST_CT 1
8929 static tTestDesc aVxworks_RegsTests[] = {
8930 { TT_EGREP, zVxworks_RegsSelect0, (regex_t*)NULL }, };
8933 * Fix Command Arguments for Vxworks_Regs
8935 static const char* apzVxworks_RegsPatch[] = {
8937 "#include <arch/../regs.h>",
8940 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8942 * Description of Vxworks_Time fix
8944 tSCC zVxworks_TimeName[] =
8948 * File name selection pattern
8950 tSCC zVxworks_TimeList[] =
8953 * Machine/OS name selection pattern
8955 #define apzVxworks_TimeMachs (const char**)NULL
8958 * content selection pattern - do fix if pattern found
8960 tSCC zVxworks_TimeSelect0[] =
8961 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8964 * perform the 'test' shell command - do fix on success
8966 tSCC zVxworks_TimeTest0[] =
8969 #define VXWORKS_TIME_TEST_CT 2
8970 static tTestDesc aVxworks_TimeTests[] = {
8971 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
8972 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
8975 * Fix Command Arguments for Vxworks_Time
8977 static const char* apzVxworks_TimePatch[] = {
8979 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8980 #ifdef __cplusplus\n\
8981 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8983 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8985 #define __gcc_VOIDFUNCPTR_defined\n\
8987 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8990 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8992 * Description of Vxworks_Write_Const fix
8994 tSCC zVxworks_Write_ConstName[] =
8995 "vxworks_write_const";
8998 * File name selection pattern
9000 tSCC zVxworks_Write_ConstList[] =
9003 * Machine/OS name selection pattern
9005 tSCC* apzVxworks_Write_ConstMachs[] = {
9007 (const char*)NULL };
9008 #define VXWORKS_WRITE_CONST_TEST_CT 0
9009 #define aVxworks_Write_ConstTests (tTestDesc*)NULL
9012 * Fix Command Arguments for Vxworks_Write_Const
9014 static const char* apzVxworks_Write_ConstPatch[] = {
9016 "extern int write (int, const char*, size_t);",
9017 "extern[\t ]+int[\t ]+write[\t ]*\\([\t ]*int[\t ]*,[\t ]*char[\t ]*\\*[\t ]*,[\t ]*size_t[\t ]*\\)[\t ]*;",
9020 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9022 * Description of X11_Class fix
9024 tSCC zX11_ClassName[] =
9028 * File name selection pattern
9030 tSCC zX11_ClassList[] =
9033 * Machine/OS name selection pattern
9035 #define apzX11_ClassMachs (const char**)NULL
9038 * content selection pattern - do fix if pattern found
9040 tSCC zX11_ClassSelect0[] =
9041 "^([ \t]*char \\*)class;(.*)";
9044 * content bypass pattern - skip fix if pattern found
9046 tSCC zX11_ClassBypass0[] =
9049 #define X11_CLASS_TEST_CT 2
9050 static tTestDesc aX11_ClassTests[] = {
9051 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
9052 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
9055 * Fix Command Arguments for X11_Class
9057 static const char* apzX11_ClassPatch[] = {
9059 "#ifdef __cplusplus\n\
9066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9068 * Description of X11_Class_Usage fix
9070 tSCC zX11_Class_UsageName[] =
9074 * File name selection pattern
9076 tSCC zX11_Class_UsageList[] =
9077 "Xm/BaseClassI.h\0";
9079 * Machine/OS name selection pattern
9081 #define apzX11_Class_UsageMachs (const char**)NULL
9084 * content selection pattern - do fix if pattern found
9086 tSCC zX11_Class_UsageSelect0[] =
9090 * content bypass pattern - skip fix if pattern found
9092 tSCC zX11_Class_UsageBypass0[] =
9095 #define X11_CLASS_USAGE_TEST_CT 2
9096 static tTestDesc aX11_Class_UsageTests[] = {
9097 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
9098 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
9101 * Fix Command Arguments for X11_Class_Usage
9103 static const char* apzX11_Class_UsagePatch[] = {
9108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9110 * Description of X11_New fix
9112 tSCC zX11_NewName[] =
9116 * File name selection pattern
9118 tSCC zX11_NewList[] =
9121 * Machine/OS name selection pattern
9123 #define apzX11_NewMachs (const char**)NULL
9126 * content bypass pattern - skip fix if pattern found
9128 tSCC zX11_NewBypass0[] =
9131 #define X11_NEW_TEST_CT 1
9132 static tTestDesc aX11_NewTests[] = {
9133 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
9136 * Fix Command Arguments for X11_New
9138 static const char* apzX11_NewPatch[] = { sed_cmd_z,
9139 "-e", "/Widget\told, new;/i\\\n\
9140 #ifdef __cplusplus\\\n\
9141 \\\tWidget\told, c_new;\\\n\
9143 "-e", "/Widget\told, new;/a\\\n\
9145 "-e", "s/Widget new,/Widget c_new,/g",
9148 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9150 * Description of X11_Sprintf fix
9152 tSCC zX11_SprintfName[] =
9156 * File name selection pattern
9158 tSCC zX11_SprintfList[] =
9159 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
9161 * Machine/OS name selection pattern
9163 #define apzX11_SprintfMachs (const char**)NULL
9166 * content selection pattern - do fix if pattern found
9168 tSCC zX11_SprintfSelect0[] =
9169 "^extern char \\*\tsprintf\\(\\);$";
9171 #define X11_SPRINTF_TEST_CT 1
9172 static tTestDesc aX11_SprintfTests[] = {
9173 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
9176 * Fix Command Arguments for X11_Sprintf
9178 static const char* apzX11_SprintfPatch[] = {
9180 "#ifndef __STDC__\n\
9182 #endif /* !defined __STDC__ */",
9186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9190 #define REGEX_COUNT 261
9191 #define MACH_LIST_SIZE_LIMIT 187
9192 #define FIX_COUNT 224
9195 * Enumerate the fixes
9198 AAB_AIX_STDIO_FIXIDX,
9199 AAB_AIX_FCNTL_FIXIDX,
9200 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
9201 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
9202 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
9203 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
9204 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
9205 AAB_SUN_MEMCPY_FIXIDX,
9206 AAB_VXWORKS_ASSERT_FIXIDX,
9207 AAB_VXWORKS_REGS_VXTYPES_FIXIDX,
9208 AAB_VXWORKS_STDINT_FIXIDX,
9209 AAB_VXWORKS_UNISTD_FIXIDX,
9213 AIX_NET_IF_ARP_FIXIDX,
9215 AIX_ONCE_INIT_1_FIXIDX,
9216 AIX_ONCE_INIT_2_FIXIDX,
9217 AIX_MUTEX_INITIALIZER_1_FIXIDX,
9218 AIX_COND_INITIALIZER_1_FIXIDX,
9219 AIX_RWLOCK_INITIALIZER_1_FIXIDX,
9221 AIX_STDINT_1_FIXIDX,
9222 AIX_STDINT_2_FIXIDX,
9223 AIX_STDINT_3_FIXIDX,
9224 AIX_STDINT_4_FIXIDX,
9225 AIX_STDINT_5_FIXIDX,
9226 AIX_SYSMACHINE_FIXIDX,
9227 AIX_SYSWAIT_2_FIXIDX,
9228 AIX_VOLATILE_FIXIDX,
9229 ALPHA___ASSERT_FIXIDX,
9230 ALPHA_ASSERT_FIXIDX,
9231 ALPHA_GETOPT_FIXIDX,
9232 ALPHA_IF_SEMICOLON_FIXIDX,
9233 ALPHA_PARENS_FIXIDX,
9235 AVOID_BOOL_DEFINE_FIXIDX,
9236 AVOID_BOOL_TYPE_FIXIDX,
9237 AVOID_WCHAR_T_TYPE_FIXIDX,
9238 BAD_STRUCT_TERM_FIXIDX,
9240 BROKEN_ASSERT_STDIO_FIXIDX,
9241 BROKEN_ASSERT_STDLIB_FIXIDX,
9244 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
9245 COMPLIER_H_TRADCPP_FIXIDX,
9246 CTRL_QUOTES_DEF_FIXIDX,
9247 CTRL_QUOTES_USE_FIXIDX,
9249 DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
9250 DARWIN_EXTERNC_FIXIDX,
9251 DARWIN_GCC4_BREAKAGE_FIXIDX,
9252 DARWIN_PRIVATE_EXTERN_FIXIDX,
9253 DARWIN_STDINT_1_FIXIDX,
9254 DARWIN_STDINT_2_FIXIDX,
9255 DARWIN_STDINT_3_FIXIDX,
9256 DARWIN_STDINT_4_FIXIDX,
9257 DARWIN_STDINT_5_FIXIDX,
9258 DARWIN_STDINT_6_FIXIDX,
9259 DARWIN_STDINT_7_FIXIDX,
9260 DEC_INTERN_ASM_FIXIDX,
9261 DJGPP_WCHAR_H_FIXIDX,
9263 FERAISEEXCEPT_NOSSE_DIVBYZERO_FIXIDX,
9264 FERAISEEXCEPT_NOSSE_INVALID_FIXIDX,
9265 FREEBSD_GCC3_BREAKAGE_FIXIDX,
9266 FREEBSD_GCC4_BREAKAGE_FIXIDX,
9267 GLIBC_C99_INLINE_1_FIXIDX,
9268 GLIBC_C99_INLINE_1A_FIXIDX,
9269 GLIBC_C99_INLINE_2_FIXIDX,
9270 GLIBC_C99_INLINE_3_FIXIDX,
9271 GLIBC_C99_INLINE_4_FIXIDX,
9272 GLIBC_MUTEX_INIT_FIXIDX,
9273 GLIBC_STDINT_FIXIDX,
9274 GLIBC_STRNCPY_FIXIDX,
9275 GLIBC_TGMATH_FIXIDX,
9279 HPPA_HPUX_FP_MACROS_FIXIDX,
9280 HPUX10_CPP_POW_INLINE_FIXIDX,
9281 HPUX11_CPP_POW_INLINE_FIXIDX,
9282 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
9283 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
9284 HPUX10_STDIO_DECLARATIONS_FIXIDX,
9286 HPUX11_EXTERN_SENDFILE_FIXIDX,
9287 HPUX11_EXTERN_SENDPATH_FIXIDX,
9288 HPUX11_FABSF_FIXIDX,
9289 HPUX11_PTHREAD_CONST_FIXIDX,
9290 HPUX11_SIZE_T_FIXIDX,
9291 HPUX11_SNPRINTF_FIXIDX,
9292 HPUX11_VSNPRINTF_FIXIDX,
9293 HPUX8_BOGUS_INLINES_FIXIDX,
9294 HPUX_C99_INTPTR_FIXIDX,
9295 HPUX_C99_INTTYPES_FIXIDX,
9296 HPUX_C99_INTTYPES2_FIXIDX,
9297 HPUX_CTYPE_MACROS_FIXIDX,
9298 HPUX_EXTERN_ERRNO_FIXIDX,
9300 HPUX_IMAGINARY_I_FIXIDX,
9301 HPUX_INTTYPE_INT8_T_FIXIDX,
9302 HPUX_LONG_DOUBLE_FIXIDX,
9303 HPUX_LONG_DOUBLE_2_FIXIDX,
9304 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
9305 HPUX_SPU_INFO_FIXIDX,
9306 HPUX_STDINT_LEAST_FAST_FIXIDX,
9307 HPUX_SYSTIME_FIXIDX,
9308 HUGE_VAL_HEX_FIXIDX,
9309 HUGE_VALF_HEX_FIXIDX,
9310 HUGE_VALL_HEX_FIXIDX,
9311 INT_ABORT_FREE_AND_EXIT_FIXIDX,
9312 IO_QUOTES_DEF_FIXIDX,
9313 IO_QUOTES_USE_FIXIDX,
9314 IP_MISSING_SEMI_FIXIDX,
9315 IRIX_LIMITS_CONST_FIXIDX,
9316 IRIX_STDIO_VA_LIST_FIXIDX,
9317 KANDR_CONCAT_FIXIDX,
9318 LINUX_IA64_UCONTEXT_FIXIDX,
9319 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
9320 LYNXOS_MISSING_PUTENV_FIXIDX,
9321 MACHINE_ANSI_H_VA_LIST_FIXIDX,
9322 MACHINE_NAME_FIXIDX,
9323 MATH_EXCEPTION_FIXIDX,
9324 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
9325 NESTED_AUTH_DES_FIXIDX,
9326 NETBSD_C99_INLINE_1_FIXIDX,
9327 NETBSD_C99_INLINE_2_FIXIDX,
9328 NETBSD_EXTRA_SEMICOLON_FIXIDX,
9329 NEWLIB_STDINT_1_FIXIDX,
9330 NEWLIB_STDINT_2_FIXIDX,
9331 NEXT_MATH_PREFIX_FIXIDX,
9332 NEXT_TEMPLATE_FIXIDX,
9333 NEXT_VOLITILE_FIXIDX,
9334 NEXT_WAIT_UNION_FIXIDX,
9335 NODEENT_SYNTAX_FIXIDX,
9336 OPENBSD_NULL_DEFINITION_FIXIDX,
9337 OBSTACK_LVALUE_CAST_FIXIDX,
9338 OPENBSD_VA_START_FIXIDX,
9339 OSF_NAMESPACE_A_FIXIDX,
9340 OSF_NAMESPACE_C_FIXIDX,
9341 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
9342 READ_RET_TYPE_FIXIDX,
9343 RPC_XDR_LVALUE_CAST_A_FIXIDX,
9344 RPC_XDR_LVALUE_CAST_B_FIXIDX,
9345 RS6000_DOUBLE_FIXIDX,
9346 RS6000_FCHMOD_FIXIDX,
9347 RS6000_PARAM_FIXIDX,
9348 SOLARIS___RESTRICT_FIXIDX,
9349 SOLARIS_COMPLEX_FIXIDX,
9350 SOLARIS_COMPLEX_CXX_FIXIDX,
9351 SOLARIS_CXX_LINKAGE_FIXIDX,
9352 SOLARIS_GETC_STRICT_STDC_FIXIDX,
9353 SOLARIS_INT_CONST_FIXIDX,
9354 SOLARIS_INT_LIMITS_1_FIXIDX,
9355 SOLARIS_INT_LIMITS_2_FIXIDX,
9356 SOLARIS_INT_LIMITS_3_FIXIDX,
9357 SOLARIS_MATH_1_FIXIDX,
9358 SOLARIS_MATH_10_FIXIDX,
9359 SOLARIS_MATH_2_FIXIDX,
9360 SOLARIS_MATH_3_FIXIDX,
9361 SOLARIS_MATH_4_FIXIDX,
9362 SOLARIS_MATH_8_FIXIDX,
9363 SOLARIS_MATH_9_FIXIDX,
9364 SOLARIS_ONCE_INIT_1_FIXIDX,
9365 SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
9366 SOLARIS_POW_INT_OVERLOAD_FIXIDX,
9367 SOLARIS_RWLOCK_INIT_1_FIXIDX,
9368 SOLARIS_STD___FILBUF_FIXIDX,
9369 SOLARIS_STDIO_TAG_FIXIDX,
9371 STDIO_STDARG_H_FIXIDX,
9372 STDIO_VA_LIST_FIXIDX,
9373 STDIO_VA_LIST_CLIENTS_FIXIDX,
9374 STRICT_ANSI_NOT_FIXIDX,
9375 STRICT_ANSI_NOT_CTD_FIXIDX,
9376 STRICT_ANSI_ONLY_FIXIDX,
9378 STRUCT_SOCKADDR_FIXIDX,
9379 SUN_AUTH_PROTO_FIXIDX,
9380 SUN_BOGUS_IFDEF_FIXIDX,
9381 SUN_CATMACRO_FIXIDX,
9383 SUN_RUSERS_SEMI_FIXIDX,
9385 SUNOS_STRLEN_FIXIDX,
9386 SUSE_LINUX_VT_CXX_FIXIDX,
9387 SVR4_DISABLE_OPT_FIXIDX,
9390 SVR4_SIGHANDLER_TYPE_FIXIDX,
9391 SVR4_UNDECLARED_GETRNGE_FIXIDX,
9392 SYSV68_STRING_FIXIDX,
9393 SYSZ_STDLIB_FOR_SUN_FIXIDX,
9394 THREAD_KEYWORD_FIXIDX,
9395 TINFO_CPLUSPLUS_FIXIDX,
9396 ULTRIX_CONST_FIXIDX,
9397 ULTRIX_CONST2_FIXIDX,
9398 VA_I960_MACRO_FIXIDX,
9399 VMS_ADD_MISSING_BRACES_FIXIDX,
9400 VMS_DECC_BUILTIN_FIXIDX,
9401 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
9402 VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
9403 VMS_DO_NOT_REDECLARE_HOSTALIAS_FIXIDX,
9404 VMS_FORWARD_DECLARE_STRUCT_FIXIDX,
9405 VMS_NO_64BIT_GETOPT_FIXIDX,
9406 VMS_USE_FAST_SETJMP_FIXIDX,
9407 VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
9408 VMS_USE_QUOTED_INCLUDE_FIXIDX,
9410 VXWORKS_GCC_PROBLEM_FIXIDX,
9411 VXWORKS_IOCTL_MACRO_FIXIDX,
9412 VXWORKS_MKDIR_MACRO_FIXIDX,
9413 VXWORKS_NEEDS_VXTYPES_FIXIDX,
9414 VXWORKS_NEEDS_VXWORKS_FIXIDX,
9415 VXWORKS_REGS_FIXIDX,
9416 VXWORKS_TIME_FIXIDX,
9417 VXWORKS_WRITE_CONST_FIXIDX,
9419 X11_CLASS_USAGE_FIXIDX,
9424 tFixDesc fixDescList[ FIX_COUNT ] = {
9425 { zAab_Aix_StdioName, zAab_Aix_StdioList,
9426 apzAab_Aix_StdioMachs,
9427 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9428 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
9430 { zAab_Aix_FcntlName, zAab_Aix_FcntlList,
9431 apzAab_Aix_FcntlMachs,
9432 AAB_AIX_FCNTL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9433 aAab_Aix_FcntlTests, apzAab_Aix_FcntlPatch, 0 },
9435 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
9436 apzAab_Darwin7_9_Long_Double_FuncsMachs,
9437 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9438 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
9440 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
9441 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
9442 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9443 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
9445 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
9446 apzAab_Fd_Zero_Gnu_Types_HMachs,
9447 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9448 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
9450 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
9451 apzAab_Fd_Zero_Selectbits_HMachs,
9452 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9453 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
9455 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
9456 apzAab_Solaris_Sys_Varargs_HMachs,
9457 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9458 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
9460 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
9461 apzAab_Sun_MemcpyMachs,
9462 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9463 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
9465 { zAab_Vxworks_AssertName, zAab_Vxworks_AssertList,
9466 apzAab_Vxworks_AssertMachs,
9467 AAB_VXWORKS_ASSERT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9468 aAab_Vxworks_AssertTests, apzAab_Vxworks_AssertPatch, 0 },
9470 { zAab_Vxworks_Regs_VxtypesName, zAab_Vxworks_Regs_VxtypesList,
9471 apzAab_Vxworks_Regs_VxtypesMachs,
9472 AAB_VXWORKS_REGS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9473 aAab_Vxworks_Regs_VxtypesTests, apzAab_Vxworks_Regs_VxtypesPatch, 0 },
9475 { zAab_Vxworks_StdintName, zAab_Vxworks_StdintList,
9476 apzAab_Vxworks_StdintMachs,
9477 AAB_VXWORKS_STDINT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9478 aAab_Vxworks_StdintTests, apzAab_Vxworks_StdintPatch, 0 },
9480 { zAab_Vxworks_UnistdName, zAab_Vxworks_UnistdList,
9481 apzAab_Vxworks_UnistdMachs,
9482 AAB_VXWORKS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9483 aAab_Vxworks_UnistdTests, apzAab_Vxworks_UnistdPatch, 0 },
9485 { zAix_AssertName, zAix_AssertList,
9487 AIX_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9488 aAix_AssertTests, apzAix_AssertPatch, 0 },
9490 { zAix_ComplexName, zAix_ComplexList,
9491 apzAix_ComplexMachs,
9492 AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9493 aAix_ComplexTests, apzAix_ComplexPatch, 0 },
9495 { zAix_MallocName, zAix_MallocList,
9497 AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9498 aAix_MallocTests, apzAix_MallocPatch, 0 },
9500 { zAix_Net_If_ArpName, zAix_Net_If_ArpList,
9501 apzAix_Net_If_ArpMachs,
9502 AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9503 aAix_Net_If_ArpTests, apzAix_Net_If_ArpPatch, 0 },
9505 { zAix_NullName, zAix_NullList,
9507 AIX_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9508 aAix_NullTests, apzAix_NullPatch, 0 },
9510 { zAix_Once_Init_1Name, zAix_Once_Init_1List,
9511 apzAix_Once_Init_1Machs,
9512 AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9513 aAix_Once_Init_1Tests, apzAix_Once_Init_1Patch, 0 },
9515 { zAix_Once_Init_2Name, zAix_Once_Init_2List,
9516 apzAix_Once_Init_2Machs,
9517 AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9518 aAix_Once_Init_2Tests, apzAix_Once_Init_2Patch, 0 },
9520 { zAix_Mutex_Initializer_1Name, zAix_Mutex_Initializer_1List,
9521 apzAix_Mutex_Initializer_1Machs,
9522 AIX_MUTEX_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9523 aAix_Mutex_Initializer_1Tests, apzAix_Mutex_Initializer_1Patch, 0 },
9525 { zAix_Cond_Initializer_1Name, zAix_Cond_Initializer_1List,
9526 apzAix_Cond_Initializer_1Machs,
9527 AIX_COND_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9528 aAix_Cond_Initializer_1Tests, apzAix_Cond_Initializer_1Patch, 0 },
9530 { zAix_Rwlock_Initializer_1Name, zAix_Rwlock_Initializer_1List,
9531 apzAix_Rwlock_Initializer_1Machs,
9532 AIX_RWLOCK_INITIALIZER_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9533 aAix_Rwlock_Initializer_1Tests, apzAix_Rwlock_Initializer_1Patch, 0 },
9535 { zAix_PthreadName, zAix_PthreadList,
9536 apzAix_PthreadMachs,
9537 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9538 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
9540 { zAix_Stdint_1Name, zAix_Stdint_1List,
9541 apzAix_Stdint_1Machs,
9542 AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9543 aAix_Stdint_1Tests, apzAix_Stdint_1Patch, 0 },
9545 { zAix_Stdint_2Name, zAix_Stdint_2List,
9546 apzAix_Stdint_2Machs,
9547 AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9548 aAix_Stdint_2Tests, apzAix_Stdint_2Patch, 0 },
9550 { zAix_Stdint_3Name, zAix_Stdint_3List,
9551 apzAix_Stdint_3Machs,
9552 AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9553 aAix_Stdint_3Tests, apzAix_Stdint_3Patch, 0 },
9555 { zAix_Stdint_4Name, zAix_Stdint_4List,
9556 apzAix_Stdint_4Machs,
9557 AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9558 aAix_Stdint_4Tests, apzAix_Stdint_4Patch, 0 },
9560 { zAix_Stdint_5Name, zAix_Stdint_5List,
9561 apzAix_Stdint_5Machs,
9562 AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9563 aAix_Stdint_5Tests, apzAix_Stdint_5Patch, 0 },
9565 { zAix_SysmachineName, zAix_SysmachineList,
9566 apzAix_SysmachineMachs,
9567 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9568 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
9570 { zAix_Syswait_2Name, zAix_Syswait_2List,
9571 apzAix_Syswait_2Machs,
9572 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9573 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
9575 { zAix_VolatileName, zAix_VolatileList,
9576 apzAix_VolatileMachs,
9577 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9578 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
9580 { zAlpha___AssertName, zAlpha___AssertList,
9581 apzAlpha___AssertMachs,
9582 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9583 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
9585 { zAlpha_AssertName, zAlpha_AssertList,
9586 apzAlpha_AssertMachs,
9587 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9588 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
9590 { zAlpha_GetoptName, zAlpha_GetoptList,
9591 apzAlpha_GetoptMachs,
9592 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9593 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
9595 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
9596 apzAlpha_If_SemicolonMachs,
9597 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9598 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
9600 { zAlpha_ParensName, zAlpha_ParensList,
9601 apzAlpha_ParensMachs,
9602 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9603 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
9605 { zAlpha_SbrkName, zAlpha_SbrkList,
9607 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9608 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
9610 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
9611 apzAvoid_Bool_DefineMachs,
9612 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9613 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
9615 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
9616 apzAvoid_Bool_TypeMachs,
9617 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9618 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
9620 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
9621 apzAvoid_Wchar_T_TypeMachs,
9622 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9623 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
9625 { zBad_Struct_TermName, zBad_Struct_TermList,
9626 apzBad_Struct_TermMachs,
9627 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9628 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
9630 { zBadquoteName, zBadquoteList,
9632 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9633 aBadquoteTests, apzBadquotePatch, 0 },
9635 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
9636 apzBroken_Assert_StdioMachs,
9637 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9638 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
9640 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
9641 apzBroken_Assert_StdlibMachs,
9642 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9643 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
9645 { zBroken_CabsName, zBroken_CabsList,
9646 apzBroken_CabsMachs,
9647 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9648 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
9650 { zBroken_NanName, zBroken_NanList,
9652 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9653 aBroken_NanTests, apzBroken_NanPatch, 0 },
9655 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
9656 apzBsd_Stdio_Attrs_ConflictMachs,
9657 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9658 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9660 { zComplier_H_TradcppName, zComplier_H_TradcppList,
9661 apzComplier_H_TradcppMachs,
9662 COMPLIER_H_TRADCPP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9663 aComplier_H_TradcppTests, apzComplier_H_TradcppPatch, 0 },
9665 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
9666 apzCtrl_Quotes_DefMachs,
9667 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9668 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
9670 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
9671 apzCtrl_Quotes_UseMachs,
9672 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9673 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
9675 { zCxx_UnreadyName, zCxx_UnreadyList,
9676 apzCxx_UnreadyMachs,
9677 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9678 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
9680 { zDarwin_9_Long_Double_Funcs_2Name, zDarwin_9_Long_Double_Funcs_2List,
9681 apzDarwin_9_Long_Double_Funcs_2Machs,
9682 DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9683 aDarwin_9_Long_Double_Funcs_2Tests, apzDarwin_9_Long_Double_Funcs_2Patch, 0 },
9685 { zDarwin_ExterncName, zDarwin_ExterncList,
9686 apzDarwin_ExterncMachs,
9687 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9688 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
9690 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
9691 apzDarwin_Gcc4_BreakageMachs,
9692 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9693 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
9695 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
9696 apzDarwin_Private_ExternMachs,
9697 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9698 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
9700 { zDarwin_Stdint_1Name, zDarwin_Stdint_1List,
9701 apzDarwin_Stdint_1Machs,
9702 DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9703 aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 },
9705 { zDarwin_Stdint_2Name, zDarwin_Stdint_2List,
9706 apzDarwin_Stdint_2Machs,
9707 DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9708 aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 },
9710 { zDarwin_Stdint_3Name, zDarwin_Stdint_3List,
9711 apzDarwin_Stdint_3Machs,
9712 DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9713 aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 },
9715 { zDarwin_Stdint_4Name, zDarwin_Stdint_4List,
9716 apzDarwin_Stdint_4Machs,
9717 DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9718 aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 },
9720 { zDarwin_Stdint_5Name, zDarwin_Stdint_5List,
9721 apzDarwin_Stdint_5Machs,
9722 DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9723 aDarwin_Stdint_5Tests, apzDarwin_Stdint_5Patch, 0 },
9725 { zDarwin_Stdint_6Name, zDarwin_Stdint_6List,
9726 apzDarwin_Stdint_6Machs,
9727 DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9728 aDarwin_Stdint_6Tests, apzDarwin_Stdint_6Patch, 0 },
9730 { zDarwin_Stdint_7Name, zDarwin_Stdint_7List,
9731 apzDarwin_Stdint_7Machs,
9732 DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9733 aDarwin_Stdint_7Tests, apzDarwin_Stdint_7Patch, 0 },
9735 { zDec_Intern_AsmName, zDec_Intern_AsmList,
9736 apzDec_Intern_AsmMachs,
9737 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9738 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
9740 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
9741 apzDjgpp_Wchar_HMachs,
9742 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9743 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
9745 { zEcd_CursorName, zEcd_CursorList,
9747 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9748 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
9750 { zFeraiseexcept_Nosse_DivbyzeroName, zFeraiseexcept_Nosse_DivbyzeroList,
9751 apzFeraiseexcept_Nosse_DivbyzeroMachs,
9752 FERAISEEXCEPT_NOSSE_DIVBYZERO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9753 aFeraiseexcept_Nosse_DivbyzeroTests, apzFeraiseexcept_Nosse_DivbyzeroPatch, 0 },
9755 { zFeraiseexcept_Nosse_InvalidName, zFeraiseexcept_Nosse_InvalidList,
9756 apzFeraiseexcept_Nosse_InvalidMachs,
9757 FERAISEEXCEPT_NOSSE_INVALID_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9758 aFeraiseexcept_Nosse_InvalidTests, apzFeraiseexcept_Nosse_InvalidPatch, 0 },
9760 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
9761 apzFreebsd_Gcc3_BreakageMachs,
9762 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9763 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
9765 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
9766 apzFreebsd_Gcc4_BreakageMachs,
9767 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9768 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
9770 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
9771 apzGlibc_C99_Inline_1Machs,
9772 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9773 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
9775 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
9776 apzGlibc_C99_Inline_1aMachs,
9777 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9778 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
9780 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
9781 apzGlibc_C99_Inline_2Machs,
9782 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9783 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
9785 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
9786 apzGlibc_C99_Inline_3Machs,
9787 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9788 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
9790 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
9791 apzGlibc_C99_Inline_4Machs,
9792 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9793 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
9795 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
9796 apzGlibc_Mutex_InitMachs,
9797 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9798 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
9800 { zGlibc_StdintName, zGlibc_StdintList,
9801 apzGlibc_StdintMachs,
9802 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9803 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 },
9805 { zGlibc_StrncpyName, zGlibc_StrncpyList,
9806 apzGlibc_StrncpyMachs,
9807 GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9808 aGlibc_StrncpyTests, apzGlibc_StrncpyPatch, 0 },
9810 { zGlibc_TgmathName, zGlibc_TgmathList,
9811 apzGlibc_TgmathMachs,
9812 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9813 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
9815 { zGnu_TypesName, zGnu_TypesList,
9817 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9818 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
9820 { zHp_InlineName, zHp_InlineList,
9822 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9823 aHp_InlineTests, apzHp_InlinePatch, 0 },
9825 { zHp_SysfileName, zHp_SysfileList,
9827 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9828 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
9830 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
9831 apzHppa_Hpux_Fp_MacrosMachs,
9832 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9833 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
9835 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
9836 apzHpux10_Cpp_Pow_InlineMachs,
9837 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9838 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
9840 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
9841 apzHpux11_Cpp_Pow_InlineMachs,
9842 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9843 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
9845 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
9846 apzHpux10_Ctype_Declarations1Machs,
9847 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9848 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
9850 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
9851 apzHpux10_Ctype_Declarations2Machs,
9852 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9853 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
9855 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
9856 apzHpux10_Stdio_DeclarationsMachs,
9857 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9858 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
9860 { zHpux11_AbsName, zHpux11_AbsList,
9862 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9863 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
9865 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
9866 apzHpux11_Extern_SendfileMachs,
9867 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9868 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
9870 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
9871 apzHpux11_Extern_SendpathMachs,
9872 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9873 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
9875 { zHpux11_FabsfName, zHpux11_FabsfList,
9876 apzHpux11_FabsfMachs,
9877 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9878 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
9880 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
9881 apzHpux11_Pthread_ConstMachs,
9882 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9883 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
9885 { zHpux11_Size_TName, zHpux11_Size_TList,
9886 apzHpux11_Size_TMachs,
9887 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9888 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
9890 { zHpux11_SnprintfName, zHpux11_SnprintfList,
9891 apzHpux11_SnprintfMachs,
9892 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9893 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
9895 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
9896 apzHpux11_VsnprintfMachs,
9897 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9898 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
9900 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
9901 apzHpux8_Bogus_InlinesMachs,
9902 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9903 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
9905 { zHpux_C99_IntptrName, zHpux_C99_IntptrList,
9906 apzHpux_C99_IntptrMachs,
9907 HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
9908 aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 },
9910 { zHpux_C99_InttypesName, zHpux_C99_InttypesList,
9911 apzHpux_C99_InttypesMachs,
9912 HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
9913 aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 },
9915 { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List,
9916 apzHpux_C99_Inttypes2Machs,
9917 HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
9918 aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 },
9920 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
9921 apzHpux_Ctype_MacrosMachs,
9922 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9923 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
9925 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
9926 apzHpux_Extern_ErrnoMachs,
9927 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9928 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
9930 { zHpux_HtonlName, zHpux_HtonlList,
9932 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9933 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
9935 { zHpux_Imaginary_IName, zHpux_Imaginary_IList,
9936 apzHpux_Imaginary_IMachs,
9937 HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9938 aHpux_Imaginary_ITests, apzHpux_Imaginary_IPatch, 0 },
9940 { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList,
9941 apzHpux_Inttype_Int8_TMachs,
9942 HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9943 aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 },
9945 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
9946 apzHpux_Long_DoubleMachs,
9947 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9948 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
9950 { zHpux_Long_Double_2Name, zHpux_Long_Double_2List,
9951 apzHpux_Long_Double_2Machs,
9952 HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9953 aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 },
9955 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
9956 apzHpux_Pthread_InitializersMachs,
9957 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9958 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
9960 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
9961 apzHpux_Spu_InfoMachs,
9962 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9963 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
9965 { zHpux_Stdint_Least_FastName, zHpux_Stdint_Least_FastList,
9966 apzHpux_Stdint_Least_FastMachs,
9967 HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9968 aHpux_Stdint_Least_FastTests, apzHpux_Stdint_Least_FastPatch, 0 },
9970 { zHpux_SystimeName, zHpux_SystimeList,
9971 apzHpux_SystimeMachs,
9972 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9973 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
9975 { zHuge_Val_HexName, zHuge_Val_HexList,
9976 apzHuge_Val_HexMachs,
9977 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9978 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
9980 { zHuge_Valf_HexName, zHuge_Valf_HexList,
9981 apzHuge_Valf_HexMachs,
9982 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9983 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
9985 { zHuge_Vall_HexName, zHuge_Vall_HexList,
9986 apzHuge_Vall_HexMachs,
9987 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9988 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
9990 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
9991 apzInt_Abort_Free_And_ExitMachs,
9992 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9993 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
9995 { zIo_Quotes_DefName, zIo_Quotes_DefList,
9996 apzIo_Quotes_DefMachs,
9997 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9998 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
10000 { zIo_Quotes_UseName, zIo_Quotes_UseList,
10001 apzIo_Quotes_UseMachs,
10002 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10003 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
10005 { zIp_Missing_SemiName, zIp_Missing_SemiList,
10006 apzIp_Missing_SemiMachs,
10007 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
10008 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
10010 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
10011 apzIrix_Limits_ConstMachs,
10012 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10013 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
10015 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
10016 apzIrix_Stdio_Va_ListMachs,
10017 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10018 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
10020 { zKandr_ConcatName, zKandr_ConcatList,
10021 apzKandr_ConcatMachs,
10022 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10023 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
10025 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
10026 apzLinux_Ia64_UcontextMachs,
10027 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10028 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
10030 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
10031 apzLynxos_No_Warning_In_Sys_Time_HMachs,
10032 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10033 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
10035 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
10036 apzLynxos_Missing_PutenvMachs,
10037 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10038 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
10040 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
10041 apzMachine_Ansi_H_Va_ListMachs,
10042 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10043 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
10045 { zMachine_NameName, zMachine_NameList,
10046 apzMachine_NameMachs,
10047 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10048 aMachine_NameTests, apzMachine_NamePatch, 0 },
10050 { zMath_ExceptionName, zMath_ExceptionList,
10051 apzMath_ExceptionMachs,
10052 MATH_EXCEPTION_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10053 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
10055 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
10056 apzMath_Huge_Val_From_Dbl_MaxMachs,
10057 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
10058 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
10060 { zNested_Auth_DesName, zNested_Auth_DesList,
10061 apzNested_Auth_DesMachs,
10062 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10063 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
10065 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
10066 apzNetbsd_C99_Inline_1Machs,
10067 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10068 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
10070 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
10071 apzNetbsd_C99_Inline_2Machs,
10072 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10073 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
10075 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
10076 apzNetbsd_Extra_SemicolonMachs,
10077 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10078 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
10080 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List,
10081 apzNewlib_Stdint_1Machs,
10082 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
10083 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 },
10085 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List,
10086 apzNewlib_Stdint_2Machs,
10087 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10088 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 },
10090 { zNext_Math_PrefixName, zNext_Math_PrefixList,
10091 apzNext_Math_PrefixMachs,
10092 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10093 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
10095 { zNext_TemplateName, zNext_TemplateList,
10096 apzNext_TemplateMachs,
10097 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10098 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
10100 { zNext_VolitileName, zNext_VolitileList,
10101 apzNext_VolitileMachs,
10102 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10103 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
10105 { zNext_Wait_UnionName, zNext_Wait_UnionList,
10106 apzNext_Wait_UnionMachs,
10107 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10108 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
10110 { zNodeent_SyntaxName, zNodeent_SyntaxList,
10111 apzNodeent_SyntaxMachs,
10112 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10113 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
10115 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
10116 apzOpenbsd_Null_DefinitionMachs,
10117 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10118 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
10120 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
10121 apzObstack_Lvalue_CastMachs,
10122 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10123 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
10125 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
10126 apzOpenbsd_Va_StartMachs,
10127 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10128 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
10130 { zOsf_Namespace_AName, zOsf_Namespace_AList,
10131 apzOsf_Namespace_AMachs,
10132 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10133 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
10135 { zOsf_Namespace_CName, zOsf_Namespace_CList,
10136 apzOsf_Namespace_CMachs,
10137 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10138 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
10140 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
10141 apzPthread_Incomplete_Struct_ArgumentMachs,
10142 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10143 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
10145 { zRead_Ret_TypeName, zRead_Ret_TypeList,
10146 apzRead_Ret_TypeMachs,
10147 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10148 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
10150 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
10151 apzRpc_Xdr_Lvalue_Cast_AMachs,
10152 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10153 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
10155 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
10156 apzRpc_Xdr_Lvalue_Cast_BMachs,
10157 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10158 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
10160 { zRs6000_DoubleName, zRs6000_DoubleList,
10161 apzRs6000_DoubleMachs,
10162 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10163 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
10165 { zRs6000_FchmodName, zRs6000_FchmodList,
10166 apzRs6000_FchmodMachs,
10167 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10168 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
10170 { zRs6000_ParamName, zRs6000_ParamList,
10171 apzRs6000_ParamMachs,
10172 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10173 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
10175 { zSolaris___RestrictName, zSolaris___RestrictList,
10176 apzSolaris___RestrictMachs,
10177 SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10178 aSolaris___RestrictTests, apzSolaris___RestrictPatch, 0 },
10180 { zSolaris_ComplexName, zSolaris_ComplexList,
10181 apzSolaris_ComplexMachs,
10182 SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
10183 aSolaris_ComplexTests, apzSolaris_ComplexPatch, 0 },
10185 { zSolaris_Complex_CxxName, zSolaris_Complex_CxxList,
10186 apzSolaris_Complex_CxxMachs,
10187 SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
10188 aSolaris_Complex_CxxTests, apzSolaris_Complex_CxxPatch, 0 },
10190 { zSolaris_Cxx_LinkageName, zSolaris_Cxx_LinkageList,
10191 apzSolaris_Cxx_LinkageMachs,
10192 SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10193 aSolaris_Cxx_LinkageTests, apzSolaris_Cxx_LinkagePatch, 0 },
10195 { zSolaris_Getc_Strict_StdcName, zSolaris_Getc_Strict_StdcList,
10196 apzSolaris_Getc_Strict_StdcMachs,
10197 SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10198 aSolaris_Getc_Strict_StdcTests, apzSolaris_Getc_Strict_StdcPatch, 0 },
10200 { zSolaris_Int_ConstName, zSolaris_Int_ConstList,
10201 apzSolaris_Int_ConstMachs,
10202 SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10203 aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 },
10205 { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List,
10206 apzSolaris_Int_Limits_1Machs,
10207 SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10208 aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 },
10210 { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List,
10211 apzSolaris_Int_Limits_2Machs,
10212 SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10213 aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 },
10215 { zSolaris_Int_Limits_3Name, zSolaris_Int_Limits_3List,
10216 apzSolaris_Int_Limits_3Machs,
10217 SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10218 aSolaris_Int_Limits_3Tests, apzSolaris_Int_Limits_3Patch, 0 },
10220 { zSolaris_Math_1Name, zSolaris_Math_1List,
10221 apzSolaris_Math_1Machs,
10222 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10223 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
10225 { zSolaris_Math_10Name, zSolaris_Math_10List,
10226 apzSolaris_Math_10Machs,
10227 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10228 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
10230 { zSolaris_Math_2Name, zSolaris_Math_2List,
10231 apzSolaris_Math_2Machs,
10232 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10233 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
10235 { zSolaris_Math_3Name, zSolaris_Math_3List,
10236 apzSolaris_Math_3Machs,
10237 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10238 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
10240 { zSolaris_Math_4Name, zSolaris_Math_4List,
10241 apzSolaris_Math_4Machs,
10242 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10243 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
10245 { zSolaris_Math_8Name, zSolaris_Math_8List,
10246 apzSolaris_Math_8Machs,
10247 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10248 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
10250 { zSolaris_Math_9Name, zSolaris_Math_9List,
10251 apzSolaris_Math_9Machs,
10252 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10253 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
10255 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
10256 apzSolaris_Once_Init_1Machs,
10257 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10258 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
10260 { zSolaris_Posix_Spawn_RestrictName, zSolaris_Posix_Spawn_RestrictList,
10261 apzSolaris_Posix_Spawn_RestrictMachs,
10262 SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10263 aSolaris_Posix_Spawn_RestrictTests, apzSolaris_Posix_Spawn_RestrictPatch, 0 },
10265 { zSolaris_Pow_Int_OverloadName, zSolaris_Pow_Int_OverloadList,
10266 apzSolaris_Pow_Int_OverloadMachs,
10267 SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10268 aSolaris_Pow_Int_OverloadTests, apzSolaris_Pow_Int_OverloadPatch, 0 },
10270 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
10271 apzSolaris_Rwlock_Init_1Machs,
10272 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10273 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
10275 { zSolaris_Std___FilbufName, zSolaris_Std___FilbufList,
10276 apzSolaris_Std___FilbufMachs,
10277 SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10278 aSolaris_Std___FilbufTests, apzSolaris_Std___FilbufPatch, 0 },
10280 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
10281 apzSolaris_Stdio_TagMachs,
10282 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
10283 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
10285 { zStatsswtchName, zStatsswtchList,
10286 apzStatsswtchMachs,
10287 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10288 aStatsswtchTests, apzStatsswtchPatch, 0 },
10290 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
10291 apzStdio_Stdarg_HMachs,
10292 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10293 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
10295 { zStdio_Va_ListName, zStdio_Va_ListList,
10296 apzStdio_Va_ListMachs,
10297 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
10298 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
10300 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
10301 apzStdio_Va_List_ClientsMachs,
10302 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
10303 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
10305 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
10306 apzStrict_Ansi_NotMachs,
10307 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10308 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
10310 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
10311 apzStrict_Ansi_Not_CtdMachs,
10312 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10313 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
10315 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
10316 apzStrict_Ansi_OnlyMachs,
10317 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10318 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
10320 { zStruct_FileName, zStruct_FileList,
10321 apzStruct_FileMachs,
10322 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10323 aStruct_FileTests, apzStruct_FilePatch, 0 },
10325 { zStruct_SockaddrName, zStruct_SockaddrList,
10326 apzStruct_SockaddrMachs,
10327 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10328 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
10330 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
10331 apzSun_Auth_ProtoMachs,
10332 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10333 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
10335 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
10336 apzSun_Bogus_IfdefMachs,
10337 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10338 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
10340 { zSun_CatmacroName, zSun_CatmacroList,
10341 apzSun_CatmacroMachs,
10342 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10343 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
10345 { zSun_MallocName, zSun_MallocList,
10346 apzSun_MallocMachs,
10347 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
10348 aSun_MallocTests, apzSun_MallocPatch, 0 },
10350 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
10351 apzSun_Rusers_SemiMachs,
10352 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
10353 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
10355 { zSun_SignalName, zSun_SignalList,
10356 apzSun_SignalMachs,
10357 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10358 aSun_SignalTests, apzSun_SignalPatch, 0 },
10360 { zSunos_StrlenName, zSunos_StrlenList,
10361 apzSunos_StrlenMachs,
10362 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10363 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
10365 { zSuse_Linux_Vt_CxxName, zSuse_Linux_Vt_CxxList,
10366 apzSuse_Linux_Vt_CxxMachs,
10367 SUSE_LINUX_VT_CXX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10368 aSuse_Linux_Vt_CxxTests, apzSuse_Linux_Vt_CxxPatch, 0 },
10370 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
10371 apzSvr4_Disable_OptMachs,
10372 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
10373 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
10375 { zSvr4_GetcwdName, zSvr4_GetcwdList,
10376 apzSvr4_GetcwdMachs,
10377 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10378 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
10380 { zSvr4_ProfilName, zSvr4_ProfilList,
10381 apzSvr4_ProfilMachs,
10382 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10383 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
10385 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
10386 apzSvr4_Sighandler_TypeMachs,
10387 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10388 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
10390 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
10391 apzSvr4_Undeclared_GetrngeMachs,
10392 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10393 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
10395 { zSysv68_StringName, zSysv68_StringList,
10396 apzSysv68_StringMachs,
10397 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
10398 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
10400 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
10401 apzSysz_Stdlib_For_SunMachs,
10402 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10403 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
10405 { zThread_KeywordName, zThread_KeywordList,
10406 apzThread_KeywordMachs,
10407 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10408 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
10410 { zTinfo_CplusplusName, zTinfo_CplusplusList,
10411 apzTinfo_CplusplusMachs,
10412 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10413 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
10415 { zUltrix_ConstName, zUltrix_ConstList,
10416 apzUltrix_ConstMachs,
10417 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10418 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
10420 { zUltrix_Const2Name, zUltrix_Const2List,
10421 apzUltrix_Const2Machs,
10422 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10423 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
10425 { zVa_I960_MacroName, zVa_I960_MacroList,
10426 apzVa_I960_MacroMachs,
10427 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10428 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
10430 { zVms_Add_Missing_BracesName, zVms_Add_Missing_BracesList,
10431 apzVms_Add_Missing_BracesMachs,
10432 VMS_ADD_MISSING_BRACES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10433 aVms_Add_Missing_BracesTests, apzVms_Add_Missing_BracesPatch, 0 },
10435 { zVms_Decc_BuiltinName, zVms_Decc_BuiltinList,
10436 apzVms_Decc_BuiltinMachs,
10437 VMS_DECC_BUILTIN_TEST_CT, FD_MACH_ONLY,
10438 aVms_Decc_BuiltinTests, apzVms_Decc_BuiltinPatch, 0 },
10440 { zVms_Define_Can_Use_Extern_PrefixName, zVms_Define_Can_Use_Extern_PrefixList,
10441 apzVms_Define_Can_Use_Extern_PrefixMachs,
10442 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10443 aVms_Define_Can_Use_Extern_PrefixTests, apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
10445 { zVms_Disable_Decc_String_BuiltinsName, zVms_Disable_Decc_String_BuiltinsList,
10446 apzVms_Disable_Decc_String_BuiltinsMachs,
10447 VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10448 aVms_Disable_Decc_String_BuiltinsTests, apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
10450 { zVms_Do_Not_Redeclare_HostaliasName, zVms_Do_Not_Redeclare_HostaliasList,
10451 apzVms_Do_Not_Redeclare_HostaliasMachs,
10452 VMS_DO_NOT_REDECLARE_HOSTALIAS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10453 aVms_Do_Not_Redeclare_HostaliasTests, apzVms_Do_Not_Redeclare_HostaliasPatch, 0 },
10455 { zVms_Forward_Declare_StructName, zVms_Forward_Declare_StructList,
10456 apzVms_Forward_Declare_StructMachs,
10457 VMS_FORWARD_DECLARE_STRUCT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10458 aVms_Forward_Declare_StructTests, apzVms_Forward_Declare_StructPatch, 0 },
10460 { zVms_No_64bit_GetoptName, zVms_No_64bit_GetoptList,
10461 apzVms_No_64bit_GetoptMachs,
10462 VMS_NO_64BIT_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10463 aVms_No_64bit_GetoptTests, apzVms_No_64bit_GetoptPatch, 0 },
10465 { zVms_Use_Fast_SetjmpName, zVms_Use_Fast_SetjmpList,
10466 apzVms_Use_Fast_SetjmpMachs,
10467 VMS_USE_FAST_SETJMP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10468 aVms_Use_Fast_SetjmpTests, apzVms_Use_Fast_SetjmpPatch, 0 },
10470 { zVms_Use_Pragma_Extern_ModelName, zVms_Use_Pragma_Extern_ModelList,
10471 apzVms_Use_Pragma_Extern_ModelMachs,
10472 VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10473 aVms_Use_Pragma_Extern_ModelTests, apzVms_Use_Pragma_Extern_ModelPatch, 0 },
10475 { zVms_Use_Quoted_IncludeName, zVms_Use_Quoted_IncludeList,
10476 apzVms_Use_Quoted_IncludeMachs,
10477 VMS_USE_QUOTED_INCLUDE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10478 aVms_Use_Quoted_IncludeTests, apzVms_Use_Quoted_IncludePatch, 0 },
10480 { zVoid_NullName, zVoid_NullList,
10482 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10483 aVoid_NullTests, apzVoid_NullPatch, 0 },
10485 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
10486 apzVxworks_Gcc_ProblemMachs,
10487 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
10488 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
10490 { zVxworks_Ioctl_MacroName, zVxworks_Ioctl_MacroList,
10491 apzVxworks_Ioctl_MacroMachs,
10492 VXWORKS_IOCTL_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10493 aVxworks_Ioctl_MacroTests, apzVxworks_Ioctl_MacroPatch, 0 },
10495 { zVxworks_Mkdir_MacroName, zVxworks_Mkdir_MacroList,
10496 apzVxworks_Mkdir_MacroMachs,
10497 VXWORKS_MKDIR_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10498 aVxworks_Mkdir_MacroTests, apzVxworks_Mkdir_MacroPatch, 0 },
10500 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
10501 apzVxworks_Needs_VxtypesMachs,
10502 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10503 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
10505 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
10506 apzVxworks_Needs_VxworksMachs,
10507 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
10508 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
10510 { zVxworks_RegsName, zVxworks_RegsList,
10511 apzVxworks_RegsMachs,
10512 VXWORKS_REGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10513 aVxworks_RegsTests, apzVxworks_RegsPatch, 0 },
10515 { zVxworks_TimeName, zVxworks_TimeList,
10516 apzVxworks_TimeMachs,
10517 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10518 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
10520 { zVxworks_Write_ConstName, zVxworks_Write_ConstList,
10521 apzVxworks_Write_ConstMachs,
10522 VXWORKS_WRITE_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10523 aVxworks_Write_ConstTests, apzVxworks_Write_ConstPatch, 0 },
10525 { zX11_ClassName, zX11_ClassList,
10527 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10528 aX11_ClassTests, apzX11_ClassPatch, 0 },
10530 { zX11_Class_UsageName, zX11_Class_UsageList,
10531 apzX11_Class_UsageMachs,
10532 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10533 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
10535 { zX11_NewName, zX11_NewList,
10537 X11_NEW_TEST_CT, FD_MACH_ONLY,
10538 aX11_NewTests, apzX11_NewPatch, 0 },
10540 { zX11_SprintfName, zX11_SprintfList,
10541 apzX11_SprintfMachs,
10542 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10543 aX11_SprintfTests, apzX11_SprintfPatch, 0 }