2 * DO NOT EDIT THIS FILE - it has been generated
4 * Install modified versions of certain ANSI-incompatible system header
5 * files which are fixed to work correctly with ANSI C and placed in a
6 * directory that GNU C will search.
8 * This file contains 125 fixup descriptions.
10 * See README for more information.
12 * inclhack copyright (c) 1998, 1999, 2000, 2001
13 * The Free Software Foundation, Inc.
15 * inclhack is free software.
17 * You may redistribute it and/or modify it under the terms of the
18 * GNU General Public License, as published by the Free Software
19 * Foundation; either version 2, or (at your option) any later version.
21 * inclhack is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 * See the GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with inclhack. See the file "COPYING". If not,
28 * write to: The Free Software Foundation, Inc.,
29 * 59 Temple Place - Suite 330,
30 * Boston, MA 02111-1307, USA.
33 /* * * * * * * * * * * * * * * * * * * * * * * * * *
35 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
37 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
38 "AAB_fd_zero_asm_posix_types_h";
41 * File name selection pattern
43 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
44 "|asm/posix_types.h|";
46 * Machine/OS name selection pattern
48 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
49 "i[34567]86-*-linux*",
53 * content bypass pattern - skip fix if pattern found
55 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
58 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1
59 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
60 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
63 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
65 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
66 "/* This file fixes a bug in the __FD_ZERO macro\n\
67 for older versions of the Linux kernel. */\n\
68 #ifndef _POSIX_TYPES_H_WRAPPER\n\
69 #include <features.h>\n\
70 #include_next <asm/posix_types.h>\n\n\
71 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
73 #define __FD_ZERO(fdsetp) \\\n\
76 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
77 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
78 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
79 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
82 #define _POSIX_TYPES_H_WRAPPER\n\
83 #endif /* _POSIX_TYPES_H_WRAPPER */",
86 /* * * * * * * * * * * * * * * * * * * * * * * * * *
88 * Description of Aab_Fd_Zero_Gnu_Types_H fix
90 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
91 "AAB_fd_zero_gnu_types_h";
94 * File name selection pattern
96 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
99 * Machine/OS name selection pattern
101 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
102 "i[34567]86-*-linux*",
104 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
105 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
108 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
110 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
111 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
112 #ifndef _TYPES_H_WRAPPER\n\
113 #include <features.h>\n\
114 #include_next <gnu/types.h>\n\n\
115 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
117 # define __FD_ZERO(fdsetp) \\\n\
119 int __d0, __d1; \\\n\
120 \t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
121 \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
122 \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
123 \t\t \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
126 #define _TYPES_H_WRAPPER\n\
127 #endif /* _TYPES_H_WRAPPER */\n",
130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
132 * Description of Aab_Fd_Zero_Selectbits_H fix
134 tSCC zAab_Fd_Zero_Selectbits_HName[] =
135 "AAB_fd_zero_selectbits_h";
138 * File name selection pattern
140 tSCC zAab_Fd_Zero_Selectbits_HList[] =
143 * Machine/OS name selection pattern
145 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
146 "i[34567]86-*-linux*",
148 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
149 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
152 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
154 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
155 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
156 #ifndef _SELECTBITS_H_WRAPPER\n\
157 #include <features.h>\n\
158 #include_next <selectbits.h>\n\n\
159 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\n\
160 \t&& defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\n\
161 \t&& __GLIBC_MINOR__ == 0\n\
163 #define __FD_ZERO(fdsetp) \\\n\
165 int __d0, __d1; \\\n\
166 __asm__ __volatile__ (\"cld; rep; stosl\" \\\n\
167 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
168 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\n\
169 / sizeof (__fd_mask)), \\\n\
170 \"1\" ((__fd_mask *) (fdsetp)) \\\n\
174 #define _SELECTBITS_H_WRAPPER\n\
175 #endif /* _SELECTBITS_H_WRAPPER */\n",
178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
180 * Description of Aab_Solaris_Sys_Varargs_H fix
182 tSCC zAab_Solaris_Sys_Varargs_HName[] =
183 "AAB_solaris_sys_varargs_h";
186 * File name selection pattern
188 tSCC zAab_Solaris_Sys_Varargs_HList[] =
191 * Machine/OS name selection pattern
193 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
196 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
197 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
200 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
202 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
204 #include <stdarg.h>\n\
206 #include <varargs.h>\n\
210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
212 * Description of Aab_Sun_Memcpy fix
214 tSCC zAab_Sun_MemcpyName[] =
218 * File name selection pattern
220 tSCC zAab_Sun_MemcpyList[] =
223 * Machine/OS name selection pattern
225 #define apzAab_Sun_MemcpyMachs (const char**)NULL
228 * content selection pattern - do fix if pattern found
230 tSCC zAab_Sun_MemcpySelect0[] =
231 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
233 #define AAB_SUN_MEMCPY_TEST_CT 1
234 static tTestDesc aAab_Sun_MemcpyTests[] = {
235 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
238 * Fix Command Arguments for Aab_Sun_Memcpy
240 static const char* apzAab_Sun_MemcpyPatch[] = {
241 "/* This file was generated by fixincludes */\n\
242 #ifndef __memory_h__\n\
243 #define __memory_h__\n\n\
245 extern void *memccpy();\n\
246 extern void *memchr();\n\
247 extern void *memcpy();\n\
248 extern void *memset();\n\
250 extern char *memccpy();\n\
251 extern char *memchr();\n\
252 extern char *memcpy();\n\
253 extern char *memset();\n\
254 #endif /* __STDC__ */\n\n\
255 extern int memcmp();\n\n\
256 #endif /* __memory_h__ */",
259 /* * * * * * * * * * * * * * * * * * * * * * * * * *
261 * Description of Aab_Svr4_Replace_Byteorder fix
263 tSCC zAab_Svr4_Replace_ByteorderName[] =
264 "AAB_svr4_replace_byteorder";
267 * File name selection pattern
269 tSCC zAab_Svr4_Replace_ByteorderList[] =
272 * Machine/OS name selection pattern
274 tSCC* apzAab_Svr4_Replace_ByteorderMachs[] = {
276 "i[34567]86-*-sysv5*",
278 "i[34567]86-*-solaris2.[0-4]",
279 "powerpcle-*-solaris2.[0-4]",
280 "sparc-*-solaris2.[0-4]",
282 #define AAB_SVR4_REPLACE_BYTEORDER_TEST_CT 0
283 #define aAab_Svr4_Replace_ByteorderTests (tTestDesc*)NULL
286 * Fix Command Arguments for Aab_Svr4_Replace_Byteorder
288 static const char* apzAab_Svr4_Replace_ByteorderPatch[] = {
289 "#ifndef _SYS_BYTEORDER_H\n\
290 #define _SYS_BYTEORDER_H\n\n\
291 /* Functions to convert `short' and `long' quantities from host byte order\n\
292 to (internet) network byte order (i.e. big-endian).\n\n\
293 Written by Ron Guilmette (rfg@ncd.com).\n\n\
294 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
295 For big-endian machines these functions are essentially no-ops.\n\n\
296 For little-endian machines, we define the functions using specialized\n\
297 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
298 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
299 #error You lose! This file is only useful with GNU compilers.\n\
301 #ifndef __BYTE_ORDER__\n\
302 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
303 double underscores added at the front and back. */\n\
304 #define __LITTLE_ENDIAN__ 1234\n\
305 #define __BIG_ENDIAN__ 4321\n\
306 #define __PDP_ENDIAN__ 3412\n\
309 static __inline__ unsigned long htonl (unsigned long);\n\
310 static __inline__ unsigned short htons (unsigned int);\n\
311 static __inline__ unsigned long ntohl (unsigned long);\n\
312 static __inline__ unsigned short ntohs (unsigned int);\n\
313 #endif /* defined (__STDC__) */\n\n\
314 #if defined (__i386__)\n\n\
315 #ifndef __BYTE_ORDER__\n\
316 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
318 /* Convert a host long to a network long. */\n\n\
319 /* We must use a new-style function definition, so that this will also\n\
320 be valid for C++. */\n\
321 static __inline__ unsigned long\n\
322 htonl (unsigned long __arg)\n\
324 register unsigned long __result;\n\n\
325 __asm__ (\"xchg%B0 %b0,%h0\n\
327 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
330 /* Convert a host short to a network short. */\n\n\
331 static __inline__ unsigned short\n\
332 htons (unsigned int __arg)\n\
334 register unsigned short __result;\n\n\
335 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
338 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
339 #ifndef __BYTE_ORDER__\n\
340 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
342 /* For other little-endian machines, using C code is just as efficient as\n\
343 using assembly code. */\n\n\
344 /* Convert a host long to a network long. */\n\n\
345 static __inline__ unsigned long\n\
346 htonl (unsigned long __arg)\n\
348 register unsigned long __result;\n\n\
349 __result = (__arg >> 24) & 0x000000ff;\n\
350 __result |= (__arg >> 8) & 0x0000ff00;\n\
351 __result |= (__arg << 8) & 0x00ff0000;\n\
352 __result |= (__arg << 24) & 0xff000000;\n\
355 /* Convert a host short to a network short. */\n\n\
356 static __inline__ unsigned short\n\
357 htons (unsigned int __arg)\n\
359 register unsigned short __result;\n\n\
360 __result = (__arg << 8) & 0xff00;\n\
361 __result |= (__arg >> 8) & 0x00ff;\n\
364 #else /* must be a big-endian machine */\n\n\
365 #ifndef __BYTE_ORDER__\n\
366 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
368 /* Convert a host long to a network long. */\n\n\
369 static __inline__ unsigned long\n\
370 htonl (unsigned long __arg)\n\
374 /* Convert a host short to a network short. */\n\n\
375 static __inline__ unsigned short\n\
376 htons (unsigned int __arg)\n\
380 #endif /* big-endian */\n\n\
381 /* Convert a network long to a host long. */\n\n\
382 static __inline__ unsigned long\n\
383 ntohl (unsigned long __arg)\n\
385 return htonl (__arg);\n\
387 /* Convert a network short to a host short. */\n\n\
388 static __inline__ unsigned short\n\
389 ntohs (unsigned int __arg)\n\
391 return htons (__arg);\n\
396 /* * * * * * * * * * * * * * * * * * * * * * * * * *
398 * Description of Aix_Pthread fix
400 tSCC zAix_PthreadName[] =
404 * File name selection pattern
406 tSCC zAix_PthreadList[] =
409 * Machine/OS name selection pattern
411 #define apzAix_PthreadMachs (const char**)NULL
414 * content selection pattern - do fix if pattern found
416 tSCC zAix_PthreadSelect0[] =
417 "(#define [A-Za-z_0-9]+)(\\\\\n\
421 #define AIX_PTHREAD_TEST_CT 1
422 static tTestDesc aAix_PthreadTests[] = {
423 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
426 * Fix Command Arguments for Aix_Pthread
428 static const char* apzAix_PthreadPatch[] = {
433 /* * * * * * * * * * * * * * * * * * * * * * * * * *
435 * Description of Aix_Sysmachine fix
437 tSCC zAix_SysmachineName[] =
441 * File name selection pattern
443 tSCC zAix_SysmachineList[] =
446 * Machine/OS name selection pattern
448 #define apzAix_SysmachineMachs (const char**)NULL
451 * content selection pattern - do fix if pattern found
453 tSCC zAix_SysmachineSelect0[] =
456 #define AIX_SYSMACHINE_TEST_CT 1
457 static tTestDesc aAix_SysmachineTests[] = {
458 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
461 * Fix Command Arguments for Aix_Sysmachine
463 static const char* apzAix_SysmachinePatch[] = {
468 /* * * * * * * * * * * * * * * * * * * * * * * * * *
470 * Description of Aix_Syswait fix
472 tSCC zAix_SyswaitName[] =
476 * File name selection pattern
478 tSCC zAix_SyswaitList[] =
481 * Machine/OS name selection pattern
483 #define apzAix_SyswaitMachs (const char**)NULL
486 * content selection pattern - do fix if pattern found
488 tSCC zAix_SyswaitSelect0[] =
489 "^extern pid_t wait3\\(\\);\n";
490 tSCC zAix_SyswaitSelect1[] =
493 #define AIX_SYSWAIT_TEST_CT 2
494 static tTestDesc aAix_SyswaitTests[] = {
495 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
496 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
499 * Fix Command Arguments for Aix_Syswait
501 static const char* apzAix_SyswaitPatch[] = {
507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
509 * Description of Aix_Volatile fix
511 tSCC zAix_VolatileName[] =
515 * File name selection pattern
517 tSCC zAix_VolatileList[] =
520 * Machine/OS name selection pattern
522 #define apzAix_VolatileMachs (const char**)NULL
525 * content selection pattern - do fix if pattern found
527 tSCC zAix_VolatileSelect0[] =
528 "typedef volatile int sig_atomic_t";
530 #define AIX_VOLATILE_TEST_CT 1
531 static tTestDesc aAix_VolatileTests[] = {
532 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
535 * Fix Command Arguments for Aix_Volatile
537 static const char* apzAix_VolatilePatch[] = {
539 "typedef int sig_atomic_t",
542 /* * * * * * * * * * * * * * * * * * * * * * * * * *
544 * Description of Alpha___Assert fix
546 tSCC zAlpha___AssertName[] =
550 * File name selection pattern
552 tSCC zAlpha___AssertList[] =
555 * Machine/OS name selection pattern
557 #define apzAlpha___AssertMachs (const char**)NULL
560 * content selection pattern - do fix if pattern found
562 tSCC zAlpha___AssertSelect0[] =
563 "__assert\\(char \\*, char \\*, int\\)";
565 #define ALPHA___ASSERT_TEST_CT 1
566 static tTestDesc aAlpha___AssertTests[] = {
567 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
570 * Fix Command Arguments for Alpha___Assert
572 static const char* apzAlpha___AssertPatch[] = {
574 "__assert(const char *, const char *, int)",
577 /* * * * * * * * * * * * * * * * * * * * * * * * * *
579 * Description of Alpha_Assert fix
581 tSCC zAlpha_AssertName[] =
585 * File name selection pattern
587 tSCC zAlpha_AssertList[] =
590 * Machine/OS name selection pattern
592 #define apzAlpha_AssertMachs (const char**)NULL
595 * content selection pattern - do fix if pattern found
597 tSCC zAlpha_AssertSelect0[] =
598 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
600 #define ALPHA_ASSERT_TEST_CT 1
601 static tTestDesc aAlpha_AssertTests[] = {
602 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
605 * Fix Command Arguments for Alpha_Assert
607 static const char* apzAlpha_AssertPatch[] = {
612 /* * * * * * * * * * * * * * * * * * * * * * * * * *
614 * Description of Alpha_Getopt fix
616 tSCC zAlpha_GetoptName[] =
620 * File name selection pattern
622 tSCC zAlpha_GetoptList[] =
623 "|stdio.h|stdlib.h|";
625 * Machine/OS name selection pattern
627 #define apzAlpha_GetoptMachs (const char**)NULL
630 * content selection pattern - do fix if pattern found
632 tSCC zAlpha_GetoptSelect0[] =
633 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
635 #define ALPHA_GETOPT_TEST_CT 1
636 static tTestDesc aAlpha_GetoptTests[] = {
637 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
640 * Fix Command Arguments for Alpha_Getopt
642 static const char* apzAlpha_GetoptPatch[] = {
644 "getopt(int, char *const[], const char *)",
647 /* * * * * * * * * * * * * * * * * * * * * * * * * *
649 * Description of Alpha_Parens fix
651 tSCC zAlpha_ParensName[] =
655 * File name selection pattern
657 tSCC zAlpha_ParensList[] =
660 * Machine/OS name selection pattern
662 #define apzAlpha_ParensMachs (const char**)NULL
665 * content selection pattern - do fix if pattern found
667 tSCC zAlpha_ParensSelect0[] =
668 "#ifndef\\(__mips64\\)";
670 #define ALPHA_PARENS_TEST_CT 1
671 static tTestDesc aAlpha_ParensTests[] = {
672 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
675 * Fix Command Arguments for Alpha_Parens
677 static const char* apzAlpha_ParensPatch[] = {
682 /* * * * * * * * * * * * * * * * * * * * * * * * * *
684 * Description of Alpha_Sbrk fix
686 tSCC zAlpha_SbrkName[] =
690 * File name selection pattern
692 tSCC zAlpha_SbrkList[] =
695 * Machine/OS name selection pattern
697 #define apzAlpha_SbrkMachs (const char**)NULL
700 * content selection pattern - do fix if pattern found
702 tSCC zAlpha_SbrkSelect0[] =
703 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
705 #define ALPHA_SBRK_TEST_CT 1
706 static tTestDesc aAlpha_SbrkTests[] = {
707 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
710 * Fix Command Arguments for Alpha_Sbrk
712 static const char* apzAlpha_SbrkPatch[] = {
717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
719 * Description of Avoid_Bool_Define fix
721 tSCC zAvoid_Bool_DefineName[] =
725 * File name selection pattern
727 tSCC zAvoid_Bool_DefineList[] =
728 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
730 * Machine/OS name selection pattern
732 #define apzAvoid_Bool_DefineMachs (const char**)NULL
735 * content selection pattern - do fix if pattern found
737 tSCC zAvoid_Bool_DefineSelect0[] =
738 "#[ \t]*define[ \t]+bool[ \t]";
741 * content bypass pattern - skip fix if pattern found
743 tSCC zAvoid_Bool_DefineBypass0[] =
744 "we must use the C\\+\\+ compiler's type";
746 #define AVOID_BOOL_DEFINE_TEST_CT 2
747 static tTestDesc aAvoid_Bool_DefineTests[] = {
748 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
749 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
752 * Fix Command Arguments for Avoid_Bool_Define
754 static const char* apzAvoid_Bool_DefinePatch[] = {
756 "#ifndef __cplusplus\n\
759 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
764 * Description of Avoid_Bool_Type fix
766 tSCC zAvoid_Bool_TypeName[] =
770 * File name selection pattern
772 tSCC zAvoid_Bool_TypeList[] =
773 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
775 * Machine/OS name selection pattern
777 #define apzAvoid_Bool_TypeMachs (const char**)NULL
780 * content selection pattern - do fix if pattern found
782 tSCC zAvoid_Bool_TypeSelect0[] =
783 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
786 * content bypass pattern - skip fix if pattern found
788 tSCC zAvoid_Bool_TypeBypass0[] =
789 "we must use the C\\+\\+ compiler's type";
791 #define AVOID_BOOL_TYPE_TEST_CT 2
792 static tTestDesc aAvoid_Bool_TypeTests[] = {
793 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
794 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
797 * Fix Command Arguments for Avoid_Bool_Type
799 static const char* apzAvoid_Bool_TypePatch[] = {
801 "#ifndef __cplusplus\n\
806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
808 * Description of Avoid_Wchar_T_Type fix
810 tSCC zAvoid_Wchar_T_TypeName[] =
811 "avoid_wchar_t_type";
814 * File name selection pattern
816 #define zAvoid_Wchar_T_TypeList (char*)NULL
818 * Machine/OS name selection pattern
820 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
823 * content selection pattern - do fix if pattern found
825 tSCC zAvoid_Wchar_T_TypeSelect0[] =
826 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
828 #define AVOID_WCHAR_T_TYPE_TEST_CT 1
829 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
830 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
833 * Fix Command Arguments for Avoid_Wchar_T_Type
835 static const char* apzAvoid_Wchar_T_TypePatch[] = {
837 "#ifndef __cplusplus\n\
842 /* * * * * * * * * * * * * * * * * * * * * * * * * *
844 * Description of Bad_Lval fix
846 tSCC zBad_LvalName[] =
850 * File name selection pattern
852 tSCC zBad_LvalList[] =
853 "|libgen.h|dirent.h|ftw.h|grp.h|ndbm.h|pthread.h|pwd.h|signal.h|standards.h|stdlib.h|string.h|stropts.h|time.h|unistd.h|";
855 * Machine/OS name selection pattern
857 #define apzBad_LvalMachs (const char**)NULL
860 * content selection pattern - do fix if pattern found
862 tSCC zBad_LvalSelect0[] =
863 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
865 #define BAD_LVAL_TEST_CT 1
866 static tTestDesc aBad_LvalTests[] = {
867 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
870 * Fix Command Arguments for Bad_Lval
872 static const char* apzBad_LvalPatch[] = { "sed",
873 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
878 * Description of Bad_Struct_Term fix
880 tSCC zBad_Struct_TermName[] =
884 * File name selection pattern
886 tSCC zBad_Struct_TermList[] =
889 * Machine/OS name selection pattern
891 #define apzBad_Struct_TermMachs (const char**)NULL
894 * content selection pattern - do fix if pattern found
896 tSCC zBad_Struct_TermSelect0[] =
897 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
899 #define BAD_STRUCT_TERM_TEST_CT 1
900 static tTestDesc aBad_Struct_TermTests[] = {
901 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
904 * Fix Command Arguments for Bad_Struct_Term
906 static const char* apzBad_Struct_TermPatch[] = {
911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
913 * Description of Badquote fix
915 tSCC zBadquoteName[] =
919 * File name selection pattern
921 tSCC zBadquoteList[] =
922 "|sundev/vuid_event.h|";
924 * Machine/OS name selection pattern
926 #define apzBadquoteMachs (const char**)NULL
929 * content selection pattern - do fix if pattern found
931 tSCC zBadquoteSelect0[] =
934 #define BADQUOTE_TEST_CT 1
935 static tTestDesc aBadquoteTests[] = {
936 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
939 * Fix Command Arguments for Badquote
941 static const char* apzBadquotePatch[] = {
946 /* * * * * * * * * * * * * * * * * * * * * * * * * *
948 * Description of Broken_Assert_Stdio fix
950 tSCC zBroken_Assert_StdioName[] =
951 "broken_assert_stdio";
954 * File name selection pattern
956 tSCC zBroken_Assert_StdioList[] =
959 * Machine/OS name selection pattern
961 #define apzBroken_Assert_StdioMachs (const char**)NULL
964 * content selection pattern - do fix if pattern found
966 tSCC zBroken_Assert_StdioSelect0[] =
970 * content bypass pattern - skip fix if pattern found
972 tSCC zBroken_Assert_StdioBypass0[] =
973 "include.*stdio\\.h";
975 #define BROKEN_ASSERT_STDIO_TEST_CT 2
976 static tTestDesc aBroken_Assert_StdioTests[] = {
977 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
978 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
981 * Fix Command Arguments for Broken_Assert_Stdio
983 static const char* apzBroken_Assert_StdioPatch[] = {
985 "#include <stdio.h>\n",
988 /* * * * * * * * * * * * * * * * * * * * * * * * * *
990 * Description of Broken_Assert_Stdlib fix
992 tSCC zBroken_Assert_StdlibName[] =
993 "broken_assert_stdlib";
996 * File name selection pattern
998 tSCC zBroken_Assert_StdlibList[] =
1001 * Machine/OS name selection pattern
1003 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1006 * content selection pattern - do fix if pattern found
1008 tSCC zBroken_Assert_StdlibSelect0[] =
1009 "exit *\\(|abort *\\(";
1012 * content bypass pattern - skip fix if pattern found
1014 tSCC zBroken_Assert_StdlibBypass0[] =
1015 "include.*stdlib\\.h";
1017 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1018 static tTestDesc aBroken_Assert_StdlibTests[] = {
1019 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1020 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1023 * Fix Command Arguments for Broken_Assert_Stdlib
1025 static const char* apzBroken_Assert_StdlibPatch[] = {
1027 "#ifdef __cplusplus\n\
1028 #include <stdlib.h>\n\
1032 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1034 * Description of Broken_Cabs fix
1036 tSCC zBroken_CabsName[] =
1040 * File name selection pattern
1042 tSCC zBroken_CabsList[] =
1045 * Machine/OS name selection pattern
1047 #define apzBroken_CabsMachs (const char**)NULL
1050 * content selection pattern - do fix if pattern found
1052 tSCC zBroken_CabsSelect0[] =
1053 "^extern[ \\t]+double[ \\t]+cabs";
1055 #define BROKEN_CABS_TEST_CT 1
1056 static tTestDesc aBroken_CabsTests[] = {
1057 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1060 * Fix Command Arguments for Broken_Cabs
1062 static const char* apzBroken_CabsPatch[] = {
1065 "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);",
1068 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1070 * Description of Ctrl_Quotes_Def fix
1072 tSCC zCtrl_Quotes_DefName[] =
1076 * File name selection pattern
1078 #define zCtrl_Quotes_DefList (char*)NULL
1080 * Machine/OS name selection pattern
1082 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1085 * content selection pattern - do fix if pattern found
1087 tSCC zCtrl_Quotes_DefSelect0[] =
1088 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1090 #define CTRL_QUOTES_DEF_TEST_CT 1
1091 static tTestDesc aCtrl_Quotes_DefTests[] = {
1092 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1095 * Fix Command Arguments for Ctrl_Quotes_Def
1097 static const char* apzCtrl_Quotes_DefPatch[] = {
1102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1104 * Description of Ctrl_Quotes_Use fix
1106 tSCC zCtrl_Quotes_UseName[] =
1110 * File name selection pattern
1112 #define zCtrl_Quotes_UseList (char*)NULL
1114 * Machine/OS name selection pattern
1116 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1119 * content selection pattern - do fix if pattern found
1121 tSCC zCtrl_Quotes_UseSelect0[] =
1122 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1124 #define CTRL_QUOTES_USE_TEST_CT 1
1125 static tTestDesc aCtrl_Quotes_UseTests[] = {
1126 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1129 * Fix Command Arguments for Ctrl_Quotes_Use
1131 static const char* apzCtrl_Quotes_UsePatch[] = {
1136 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1138 * Description of Cxx_Unready fix
1140 tSCC zCxx_UnreadyName[] =
1144 * File name selection pattern
1146 tSCC zCxx_UnreadyList[] =
1147 "|sys/mman.h|rpc/types.h|";
1149 * Machine/OS name selection pattern
1151 #define apzCxx_UnreadyMachs (const char**)NULL
1154 * content selection pattern - do fix if pattern found
1156 tSCC zCxx_UnreadySelect0[] =
1160 * content bypass pattern - skip fix if pattern found
1162 tSCC zCxx_UnreadyBypass0[] =
1163 "\"C\"|__BEGIN_DECLS";
1165 #define CXX_UNREADY_TEST_CT 2
1166 static tTestDesc aCxx_UnreadyTests[] = {
1167 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1168 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1171 * Fix Command Arguments for Cxx_Unready
1173 static const char* apzCxx_UnreadyPatch[] = {
1175 "#ifdef __cplusplus\n\
1178 "#ifdef __cplusplus\n\
1183 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1185 * Description of Dec_Intern_Asm fix
1187 tSCC zDec_Intern_AsmName[] =
1191 * File name selection pattern
1193 tSCC zDec_Intern_AsmList[] =
1196 * Machine/OS name selection pattern
1198 #define apzDec_Intern_AsmMachs (const char**)NULL
1199 #define DEC_INTERN_ASM_TEST_CT 0
1200 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1203 * Fix Command Arguments for Dec_Intern_Asm
1205 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1206 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1208 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1214 * Description of Djgpp_Wchar_H fix
1216 tSCC zDjgpp_Wchar_HName[] =
1220 * File name selection pattern
1222 #define zDjgpp_Wchar_HList (char*)NULL
1224 * Machine/OS name selection pattern
1226 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1229 * content selection pattern - do fix if pattern found
1231 tSCC zDjgpp_Wchar_HSelect0[] =
1235 * content bypass pattern - skip fix if pattern found
1237 tSCC zDjgpp_Wchar_HBypass0[] =
1240 #define DJGPP_WCHAR_H_TEST_CT 2
1241 static tTestDesc aDjgpp_Wchar_HTests[] = {
1242 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1243 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1246 * Fix Command Arguments for Djgpp_Wchar_H
1248 static const char* apzDjgpp_Wchar_HPatch[] = {
1251 #include <sys/djtypes.h>",
1252 "#include <stddef.h>",
1255 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1257 * Description of Ecd_Cursor fix
1259 tSCC zEcd_CursorName[] =
1263 * File name selection pattern
1265 tSCC zEcd_CursorList[] =
1266 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1268 * Machine/OS name selection pattern
1270 #define apzEcd_CursorMachs (const char**)NULL
1273 * content selection pattern - do fix if pattern found
1275 tSCC zEcd_CursorSelect0[] =
1278 #define ECD_CURSOR_TEST_CT 1
1279 static tTestDesc aEcd_CursorTests[] = {
1280 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1283 * Fix Command Arguments for Ecd_Cursor
1285 static const char* apzEcd_CursorPatch[] = {
1290 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1292 * Description of Freebsd_Gcc3_Breakage fix
1294 tSCC zFreebsd_Gcc3_BreakageName[] =
1295 "freebsd_gcc3_breakage";
1298 * File name selection pattern
1300 tSCC zFreebsd_Gcc3_BreakageList[] =
1303 * Machine/OS name selection pattern
1305 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1307 (const char*)NULL };
1310 * content selection pattern - do fix if pattern found
1312 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1313 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1316 * content bypass pattern - skip fix if pattern found
1318 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1319 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1321 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1322 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1323 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1324 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1327 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1329 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1331 "%0 || __GNUC__ >= 3",
1334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1336 * Description of Gnu_Types fix
1338 tSCC zGnu_TypesName[] =
1342 * File name selection pattern
1344 tSCC zGnu_TypesList[] =
1345 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1347 * Machine/OS name selection pattern
1349 #define apzGnu_TypesMachs (const char**)NULL
1352 * content selection pattern - do fix if pattern found
1354 tSCC zGnu_TypesSelect0[] =
1355 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1358 * content bypass pattern - skip fix if pattern found
1360 tSCC zGnu_TypesBypass0[] =
1361 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1363 #define GNU_TYPES_TEST_CT 2
1364 static tTestDesc aGnu_TypesTests[] = {
1365 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
1366 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
1369 * Fix Command Arguments for Gnu_Types
1371 static const char* apzGnu_TypesPatch[] = {
1375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1377 * Description of Hp_Inline fix
1379 tSCC zHp_InlineName[] =
1383 * File name selection pattern
1385 tSCC zHp_InlineList[] =
1386 "|sys/spinlock.h|machine/machparam.h|";
1388 * Machine/OS name selection pattern
1390 #define apzHp_InlineMachs (const char**)NULL
1393 * content selection pattern - do fix if pattern found
1395 tSCC zHp_InlineSelect0[] =
1396 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1398 #define HP_INLINE_TEST_CT 1
1399 static tTestDesc aHp_InlineTests[] = {
1400 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1403 * Fix Command Arguments for Hp_Inline
1405 static const char* apzHp_InlinePatch[] = {
1408 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1413 * Description of Hp_Sysfile fix
1415 tSCC zHp_SysfileName[] =
1419 * File name selection pattern
1421 tSCC zHp_SysfileList[] =
1424 * Machine/OS name selection pattern
1426 #define apzHp_SysfileMachs (const char**)NULL
1429 * content selection pattern - do fix if pattern found
1431 tSCC zHp_SysfileSelect0[] =
1434 #define HP_SYSFILE_TEST_CT 1
1435 static tTestDesc aHp_SysfileTests[] = {
1436 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1439 * Fix Command Arguments for Hp_Sysfile
1441 static const char* apzHp_SysfilePatch[] = {
1443 "(struct file *, ...)",
1447 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1449 * Description of Hpux10_Cpp_Pow_Inline fix
1451 tSCC zHpux10_Cpp_Pow_InlineName[] =
1452 "hpux10_cpp_pow_inline";
1455 * File name selection pattern
1457 tSCC zHpux10_Cpp_Pow_InlineList[] =
1458 "|fixinc-test-limits.h|math.h|";
1460 * Machine/OS name selection pattern
1462 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
1465 * content selection pattern - do fix if pattern found
1467 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
1468 "^# +ifdef +__cplusplus\n\
1470 +inline +double +pow\\(double +__d,int +__expon\\) +{\n\
1471 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
1473 +extern +\"C\" +{\n\
1477 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
1478 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
1479 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1482 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
1484 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
1489 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1491 * Description of Hpux11_Cpp_Pow_Inline fix
1493 tSCC zHpux11_Cpp_Pow_InlineName[] =
1494 "hpux11_cpp_pow_inline";
1497 * File name selection pattern
1499 tSCC zHpux11_Cpp_Pow_InlineList[] =
1502 * Machine/OS name selection pattern
1504 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
1507 * content selection pattern - do fix if pattern found
1509 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
1510 " +inline double pow\\(double d,int expon\\) {\n\
1511 +return pow\\(d, \\(double\\)expon\\);\n\
1514 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
1515 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
1516 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1519 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
1521 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
1526 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1528 * Description of Hpux11_Abs fix
1530 tSCC zHpux11_AbsName[] =
1534 * File name selection pattern
1536 tSCC zHpux11_AbsList[] =
1539 * Machine/OS name selection pattern
1541 tSCC* apzHpux11_AbsMachs[] = {
1543 (const char*)NULL };
1546 * content selection pattern - do fix if pattern found
1548 tSCC zHpux11_AbsSelect0[] =
1549 "ifndef _MATH_INCLUDED";
1551 #define HPUX11_ABS_TEST_CT 1
1552 static tTestDesc aHpux11_AbsTests[] = {
1553 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
1556 * Fix Command Arguments for Hpux11_Abs
1558 static const char* apzHpux11_AbsPatch[] = {
1560 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
1563 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1565 * Description of Hpux11_Fabsf fix
1567 tSCC zHpux11_FabsfName[] =
1571 * File name selection pattern
1573 tSCC zHpux11_FabsfList[] =
1576 * Machine/OS name selection pattern
1578 #define apzHpux11_FabsfMachs (const char**)NULL
1581 * content selection pattern - do fix if pattern found
1583 tSCC zHpux11_FabsfSelect0[] =
1584 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
1587 * content bypass pattern - skip fix if pattern found
1589 tSCC zHpux11_FabsfBypass0[] =
1592 #define HPUX11_FABSF_TEST_CT 2
1593 static tTestDesc aHpux11_FabsfTests[] = {
1594 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
1595 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
1598 * Fix Command Arguments for Hpux11_Fabsf
1600 static const char* apzHpux11_FabsfPatch[] = {
1602 "#ifndef __cplusplus\n\
1607 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1609 * Description of Hpux11_Size_T fix
1611 tSCC zHpux11_Size_TName[] =
1615 * File name selection pattern
1617 #define zHpux11_Size_TList (char*)NULL
1619 * Machine/OS name selection pattern
1621 tSCC* apzHpux11_Size_TMachs[] = {
1623 (const char*)NULL };
1626 * content selection pattern - do fix if pattern found
1628 tSCC zHpux11_Size_TSelect0[] =
1631 #define HPUX11_SIZE_T_TEST_CT 1
1632 static tTestDesc aHpux11_Size_TTests[] = {
1633 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
1636 * Fix Command Arguments for Hpux11_Size_T
1638 static const char* apzHpux11_Size_TPatch[] = {
1643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1645 * Description of Hpux11_Uint32_C fix
1647 tSCC zHpux11_Uint32_CName[] =
1651 * File name selection pattern
1653 tSCC zHpux11_Uint32_CList[] =
1656 * Machine/OS name selection pattern
1658 #define apzHpux11_Uint32_CMachs (const char**)NULL
1661 * content selection pattern - do fix if pattern found
1663 tSCC zHpux11_Uint32_CSelect0[] =
1664 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1666 #define HPUX11_UINT32_C_TEST_CT 1
1667 static tTestDesc aHpux11_Uint32_CTests[] = {
1668 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1671 * Fix Command Arguments for Hpux11_Uint32_C
1673 static const char* apzHpux11_Uint32_CPatch[] = {
1675 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
1678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1680 * Description of Hpux11_Vsnprintf fix
1682 tSCC zHpux11_VsnprintfName[] =
1686 * File name selection pattern
1688 tSCC zHpux11_VsnprintfList[] =
1691 * Machine/OS name selection pattern
1693 #define apzHpux11_VsnprintfMachs (const char**)NULL
1696 * content selection pattern - do fix if pattern found
1698 tSCC zHpux11_VsnprintfSelect0[] =
1699 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
1701 #define HPUX11_VSNPRINTF_TEST_CT 1
1702 static tTestDesc aHpux11_VsnprintfTests[] = {
1703 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
1706 * Fix Command Arguments for Hpux11_Vsnprintf
1708 static const char* apzHpux11_VsnprintfPatch[] = {
1713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1715 * Description of Hpux8_Bogus_Inlines fix
1717 tSCC zHpux8_Bogus_InlinesName[] =
1718 "hpux8_bogus_inlines";
1721 * File name selection pattern
1723 tSCC zHpux8_Bogus_InlinesList[] =
1726 * Machine/OS name selection pattern
1728 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
1731 * content selection pattern - do fix if pattern found
1733 tSCC zHpux8_Bogus_InlinesSelect0[] =
1736 #define HPUX8_BOGUS_INLINES_TEST_CT 1
1737 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
1738 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
1741 * Fix Command Arguments for Hpux8_Bogus_Inlines
1743 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
1744 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
1745 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
1746 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
1747 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
1750 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1752 * Description of Hpux_Maxint fix
1754 tSCC zHpux_MaxintName[] =
1758 * File name selection pattern
1760 tSCC zHpux_MaxintList[] =
1761 "|sys/param.h|values.h|";
1763 * Machine/OS name selection pattern
1765 #define apzHpux_MaxintMachs (const char**)NULL
1768 * content selection pattern - do fix if pattern found
1770 tSCC zHpux_MaxintSelect0[] =
1771 "^#[ \t]*define[ \t]+MAXINT[ \t]";
1774 * content bypass pattern - skip fix if pattern found
1776 tSCC zHpux_MaxintBypass0[] =
1777 "^#[ \t]*ifndef[ \t]+MAXINT";
1780 * perform the 'test' shell command - do fix on success
1782 tSCC zHpux_MaxintTest0[] =
1783 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
1785 #define HPUX_MAXINT_TEST_CT 3
1786 static tTestDesc aHpux_MaxintTests[] = {
1787 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
1788 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
1789 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
1792 * Fix Command Arguments for Hpux_Maxint
1794 static const char* apzHpux_MaxintPatch[] = {
1799 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
1802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1804 * Description of Hpux_Systime fix
1806 tSCC zHpux_SystimeName[] =
1810 * File name selection pattern
1812 tSCC zHpux_SystimeList[] =
1815 * Machine/OS name selection pattern
1817 #define apzHpux_SystimeMachs (const char**)NULL
1820 * content selection pattern - do fix if pattern found
1822 tSCC zHpux_SystimeSelect0[] =
1823 "^extern struct sigevent;";
1825 #define HPUX_SYSTIME_TEST_CT 1
1826 static tTestDesc aHpux_SystimeTests[] = {
1827 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
1830 * Fix Command Arguments for Hpux_Systime
1832 static const char* apzHpux_SystimePatch[] = {
1837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1839 * Description of Int_Abort_Free_And_Exit fix
1841 tSCC zInt_Abort_Free_And_ExitName[] =
1842 "int_abort_free_and_exit";
1845 * File name selection pattern
1847 tSCC zInt_Abort_Free_And_ExitList[] =
1850 * Machine/OS name selection pattern
1852 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
1855 * content selection pattern - do fix if pattern found
1857 tSCC zInt_Abort_Free_And_ExitSelect0[] =
1858 "int[ \t]+(abort|free|exit)[ \t]*\\(";
1860 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
1861 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
1862 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
1865 * Fix Command Arguments for Int_Abort_Free_And_Exit
1867 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
1872 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1874 * Description of Io_Quotes_Def fix
1876 tSCC zIo_Quotes_DefName[] =
1880 * File name selection pattern
1882 #define zIo_Quotes_DefList (char*)NULL
1884 * Machine/OS name selection pattern
1886 #define apzIo_Quotes_DefMachs (const char**)NULL
1889 * content selection pattern - do fix if pattern found
1891 tSCC zIo_Quotes_DefSelect0[] =
1892 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
1894 #define IO_QUOTES_DEF_TEST_CT 1
1895 static tTestDesc aIo_Quotes_DefTests[] = {
1896 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
1899 * Fix Command Arguments for Io_Quotes_Def
1901 static const char* apzIo_Quotes_DefPatch[] = {
1906 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1908 * Description of Io_Quotes_Use fix
1910 tSCC zIo_Quotes_UseName[] =
1914 * File name selection pattern
1916 #define zIo_Quotes_UseList (char*)NULL
1918 * Machine/OS name selection pattern
1920 #define apzIo_Quotes_UseMachs (const char**)NULL
1923 * content selection pattern - do fix if pattern found
1925 tSCC zIo_Quotes_UseSelect0[] =
1926 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
1928 #define IO_QUOTES_USE_TEST_CT 1
1929 static tTestDesc aIo_Quotes_UseTests[] = {
1930 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
1933 * Fix Command Arguments for Io_Quotes_Use
1935 static const char* apzIo_Quotes_UsePatch[] = {
1940 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1942 * Description of Ip_Missing_Semi fix
1944 tSCC zIp_Missing_SemiName[] =
1948 * File name selection pattern
1950 tSCC zIp_Missing_SemiList[] =
1953 * Machine/OS name selection pattern
1955 #define apzIp_Missing_SemiMachs (const char**)NULL
1958 * content selection pattern - do fix if pattern found
1960 tSCC zIp_Missing_SemiSelect0[] =
1963 #define IP_MISSING_SEMI_TEST_CT 1
1964 static tTestDesc aIp_Missing_SemiTests[] = {
1965 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
1968 * Fix Command Arguments for Ip_Missing_Semi
1970 static const char* apzIp_Missing_SemiPatch[] = { "sed",
1971 "-e", "/^struct/,/^};/s/}$/};/",
1974 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1976 * Description of Irix_Asm_Apostrophe fix
1978 tSCC zIrix_Asm_ApostropheName[] =
1979 "irix_asm_apostrophe";
1982 * File name selection pattern
1984 tSCC zIrix_Asm_ApostropheList[] =
1987 * Machine/OS name selection pattern
1989 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
1992 * content selection pattern - do fix if pattern found
1994 tSCC zIrix_Asm_ApostropheSelect0[] =
1995 "^[ \t]*#.*[Ww]e're";
1997 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
1998 static tTestDesc aIrix_Asm_ApostropheTests[] = {
1999 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2002 * Fix Command Arguments for Irix_Asm_Apostrophe
2004 static const char* apzIrix_Asm_ApostrophePatch[] = {
2007 "^([ \t]*#.*[Ww]e)'re",
2010 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2012 * Description of Irix_Limits_Const fix
2014 tSCC zIrix_Limits_ConstName[] =
2015 "irix_limits_const";
2018 * File name selection pattern
2020 tSCC zIrix_Limits_ConstList[] =
2021 "|fixinc-test-limits.h|limits.h|";
2023 * Machine/OS name selection pattern
2025 #define apzIrix_Limits_ConstMachs (const char**)NULL
2028 * content selection pattern - do fix if pattern found
2030 tSCC zIrix_Limits_ConstSelect0[] =
2033 #define IRIX_LIMITS_CONST_TEST_CT 1
2034 static tTestDesc aIrix_Limits_ConstTests[] = {
2035 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2038 * Fix Command Arguments for Irix_Limits_Const
2040 static const char* apzIrix_Limits_ConstPatch[] = {
2045 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2047 * Description of Irix_Stdio_Va_List fix
2049 tSCC zIrix_Stdio_Va_ListName[] =
2050 "irix_stdio_va_list";
2053 * File name selection pattern
2055 tSCC zIrix_Stdio_Va_ListList[] =
2058 * Machine/OS name selection pattern
2060 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2063 * content selection pattern - do fix if pattern found
2065 tSCC zIrix_Stdio_Va_ListSelect0[] =
2066 "(printf\\(.*), /\\* va_list \\*/ char \\*";
2068 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2069 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2070 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2073 * Fix Command Arguments for Irix_Stdio_Va_List
2075 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2077 "%1, __gnuc_va_list",
2080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2082 * Description of Isc_Fmod fix
2084 tSCC zIsc_FmodName[] =
2088 * File name selection pattern
2090 tSCC zIsc_FmodList[] =
2093 * Machine/OS name selection pattern
2095 #define apzIsc_FmodMachs (const char**)NULL
2098 * content selection pattern - do fix if pattern found
2100 tSCC zIsc_FmodSelect0[] =
2103 #define ISC_FMOD_TEST_CT 1
2104 static tTestDesc aIsc_FmodTests[] = {
2105 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2108 * Fix Command Arguments for Isc_Fmod
2110 static const char* apzIsc_FmodPatch[] = {
2112 "fmod(double, double)",
2115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2117 * Description of Isc_Omits_With_Stdc fix
2119 tSCC zIsc_Omits_With_StdcName[] =
2120 "isc_omits_with_stdc";
2123 * File name selection pattern
2125 tSCC zIsc_Omits_With_StdcList[] =
2126 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2128 * Machine/OS name selection pattern
2130 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2133 * content selection pattern - do fix if pattern found
2135 tSCC zIsc_Omits_With_StdcSelect0[] =
2136 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2138 #define ISC_OMITS_WITH_STDC_TEST_CT 1
2139 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2140 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2143 * Fix Command Arguments for Isc_Omits_With_Stdc
2145 static const char* apzIsc_Omits_With_StdcPatch[] = {
2147 "!defined(_POSIX_SOURCE)",
2150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2152 * Description of Kandr_Concat fix
2154 tSCC zKandr_ConcatName[] =
2158 * File name selection pattern
2160 tSCC zKandr_ConcatList[] =
2161 "|sparc/asm_linkage.h|sun3/asm_linkage.h|sun3x/asm_linkage.h|sun4/asm_linkage.h|sun4c/asm_linkage.h|sun4m/asm_linkage.h|sun4c/debug/asm_linkage.h|sun4m/debug/asm_linkage.h|arm/as_support.h|arm/mc_type.h|arm/xcb.h|dev/chardefmac.h|dev/ps_irq.h|dev/screen.h|dev/scsi.h|sys/tty.h|Xm.acorn/XmP.h|bsd43/bsd43_.h|";
2163 * Machine/OS name selection pattern
2165 #define apzKandr_ConcatMachs (const char**)NULL
2168 * content selection pattern - do fix if pattern found
2170 tSCC zKandr_ConcatSelect0[] =
2173 #define KANDR_CONCAT_TEST_CT 1
2174 static tTestDesc aKandr_ConcatTests[] = {
2175 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2178 * Fix Command Arguments for Kandr_Concat
2180 static const char* apzKandr_ConcatPatch[] = {
2185 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2187 * Description of Libc1_G_Va_List fix
2189 tSCC zLibc1_G_Va_ListName[] =
2193 * File name selection pattern
2195 tSCC zLibc1_G_Va_ListList[] =
2198 * Machine/OS name selection pattern
2200 tSCC* apzLibc1_G_Va_ListMachs[] = {
2202 (const char*)NULL };
2205 * content selection pattern - do fix if pattern found
2207 tSCC zLibc1_G_Va_ListSelect0[] =
2208 "typedef void \\* _G_va_list;";
2210 #define LIBC1_G_VA_LIST_TEST_CT 1
2211 static tTestDesc aLibc1_G_Va_ListTests[] = {
2212 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
2215 * Fix Command Arguments for Libc1_G_Va_List
2217 static const char* apzLibc1_G_Va_ListPatch[] = {
2219 "typedef __builtin_va_list _G_va_list;",
2222 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2224 * Description of Libc1_Ifdefd_Memx fix
2226 tSCC zLibc1_Ifdefd_MemxName[] =
2227 "libc1_ifdefd_memx";
2230 * File name selection pattern
2232 tSCC zLibc1_Ifdefd_MemxList[] =
2233 "|testing.h|string.h|";
2235 * Machine/OS name selection pattern
2237 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2240 * content selection pattern - do fix if pattern found
2242 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2243 "' is a built-in function for gcc 2\\.x\\. \\*/";
2246 * content bypass pattern - skip fix if pattern found
2248 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2251 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2252 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2253 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2254 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2257 * Fix Command Arguments for Libc1_Ifdefd_Memx
2259 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2262 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2263 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2265 extern [a-z_]+ mem.*(\n\
2270 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2272 * Description of Limits_Ifndefs fix
2274 tSCC zLimits_IfndefsName[] =
2278 * File name selection pattern
2280 tSCC zLimits_IfndefsList[] =
2281 "|sys/limits.h|limits.h|";
2283 * Machine/OS name selection pattern
2285 #define apzLimits_IfndefsMachs (const char**)NULL
2288 * content bypass pattern - skip fix if pattern found
2290 tSCC zLimits_IfndefsBypass0[] =
2291 "ifndef[ \t]+FLT_MIN";
2293 #define LIMITS_IFNDEFS_TEST_CT 1
2294 static tTestDesc aLimits_IfndefsTests[] = {
2295 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2298 * Fix Command Arguments for Limits_Ifndefs
2300 static const char* apzLimits_IfndefsPatch[] = {
2305 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2310 * Description of Lynx_Void_Int fix
2312 tSCC zLynx_Void_IntName[] =
2316 * File name selection pattern
2318 tSCC zLynx_Void_IntList[] =
2321 * Machine/OS name selection pattern
2323 #define apzLynx_Void_IntMachs (const char**)NULL
2326 * content selection pattern - do fix if pattern found
2328 tSCC zLynx_Void_IntSelect0[] =
2329 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2331 #define LYNX_VOID_INT_TEST_CT 1
2332 static tTestDesc aLynx_Void_IntTests[] = {
2333 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2336 * Fix Command Arguments for Lynx_Void_Int
2338 static const char* apzLynx_Void_IntPatch[] = {
2343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2345 * Description of Lynxos_Fcntl_Proto fix
2347 tSCC zLynxos_Fcntl_ProtoName[] =
2348 "lynxos_fcntl_proto";
2351 * File name selection pattern
2353 tSCC zLynxos_Fcntl_ProtoList[] =
2356 * Machine/OS name selection pattern
2358 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2361 * content selection pattern - do fix if pattern found
2363 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2364 "fcntl[ \t]*\\(int, int, int\\)";
2366 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2367 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2368 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2371 * Fix Command Arguments for Lynxos_Fcntl_Proto
2373 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
2376 "(fcntl[ \t]*\\(int, int, )int\\)",
2379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2381 * Description of Machine_Ansi_H_Va_List fix
2383 tSCC zMachine_Ansi_H_Va_ListName[] =
2384 "machine_ansi_h_va_list";
2387 * File name selection pattern
2389 #define zMachine_Ansi_H_Va_ListList (char*)NULL
2391 * Machine/OS name selection pattern
2393 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2396 * content selection pattern - do fix if pattern found
2398 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2399 "define[ \t]+_BSD_VA_LIST_[ \t]";
2402 * content bypass pattern - skip fix if pattern found
2404 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2405 "__builtin_va_list";
2407 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2408 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2409 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2410 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2413 * Fix Command Arguments for Machine_Ansi_H_Va_List
2415 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2417 "%1__builtin_va_list",
2418 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2423 * Description of Machine_Name fix
2425 tSCC zMachine_NameName[] =
2429 * File name selection pattern
2431 #define zMachine_NameList (char*)NULL
2433 * Machine/OS name selection pattern
2435 #define apzMachine_NameMachs (const char**)NULL
2438 * perform the C function call test
2440 tSCC zMachine_NameFTst0[] = "machine_name";
2442 #define MACHINE_NAME_TEST_CT 1
2443 static tTestDesc aMachine_NameTests[] = {
2444 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2447 * Fix Command Arguments for Machine_Name
2449 static const char* apzMachine_NamePatch[] = {
2453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2455 * Description of Math_Exception fix
2457 tSCC zMath_ExceptionName[] =
2461 * File name selection pattern
2463 tSCC zMath_ExceptionList[] =
2466 * Machine/OS name selection pattern
2468 #define apzMath_ExceptionMachs (const char**)NULL
2471 * content selection pattern - do fix if pattern found
2473 tSCC zMath_ExceptionSelect0[] =
2477 * content bypass pattern - skip fix if pattern found
2479 tSCC zMath_ExceptionBypass0[] =
2480 "We have a problem when using C\\+\\+";
2482 #define MATH_EXCEPTION_TEST_CT 2
2483 static tTestDesc aMath_ExceptionTests[] = {
2484 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2485 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2488 * Fix Command Arguments for Math_Exception
2490 static const char* apzMath_ExceptionPatch[] = {
2492 "#ifdef __cplusplus\n\
2493 #define exception __math_exception\n\
2495 "#ifdef __cplusplus\n\
2500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2502 * Description of Math_Huge_Val_From_Dbl_Max fix
2504 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2505 "math_huge_val_from_dbl_max";
2508 * File name selection pattern
2510 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2513 * Machine/OS name selection pattern
2515 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2518 * content selection pattern - do fix if pattern found
2520 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2521 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
2524 * content bypass pattern - skip fix if pattern found
2526 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2527 "define[ \t]+DBL_MAX";
2529 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2530 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2531 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2532 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2535 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2537 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2538 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
2539 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2540 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
2545 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2547 * Description of Math_Huge_Val_Ifndef fix
2549 tSCC zMath_Huge_Val_IfndefName[] =
2550 "math_huge_val_ifndef";
2553 * File name selection pattern
2555 tSCC zMath_Huge_Val_IfndefList[] =
2556 "|math.h|math/math.h|";
2558 * Machine/OS name selection pattern
2560 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2563 * content selection pattern - do fix if pattern found
2565 tSCC zMath_Huge_Val_IfndefSelect0[] =
2566 "define[ \t]+HUGE_VAL";
2568 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2569 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
2570 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2573 * Fix Command Arguments for Math_Huge_Val_Ifndef
2575 static const char* apzMath_Huge_Val_IfndefPatch[] = {
2577 "#ifndef HUGE_VAL\n\
2580 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
2583 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2585 * Description of Nested_Auth_Des fix
2587 tSCC zNested_Auth_DesName[] =
2591 * File name selection pattern
2593 tSCC zNested_Auth_DesList[] =
2596 * Machine/OS name selection pattern
2598 #define apzNested_Auth_DesMachs (const char**)NULL
2601 * content selection pattern - do fix if pattern found
2603 tSCC zNested_Auth_DesSelect0[] =
2604 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
2606 #define NESTED_AUTH_DES_TEST_CT 1
2607 static tTestDesc aNested_Auth_DesTests[] = {
2608 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
2611 * Fix Command Arguments for Nested_Auth_Des
2613 static const char* apzNested_Auth_DesPatch[] = {
2618 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2620 * Description of Nested_Motorola fix
2622 tSCC zNested_MotorolaName[] =
2626 * File name selection pattern
2628 tSCC zNested_MotorolaList[] =
2629 "|sys/limits.h|limits.h|";
2631 * Machine/OS name selection pattern
2633 tSCC* apzNested_MotorolaMachs[] = {
2634 "m68k-motorola-sysv*",
2635 (const char*)NULL };
2638 * content selection pattern - do fix if pattern found
2640 tSCC zNested_MotorolaSelect0[] =
2641 "max # bytes atomic in write|error value returned by Math lib";
2643 #define NESTED_MOTOROLA_TEST_CT 1
2644 static tTestDesc aNested_MotorolaTests[] = {
2645 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
2648 * Fix Command Arguments for Nested_Motorola
2650 static const char* apzNested_MotorolaPatch[] = { "sed",
2651 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
2652 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
2655 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2657 * Description of Nested_Sys_Limits fix
2659 tSCC zNested_Sys_LimitsName[] =
2660 "nested_sys_limits";
2663 * File name selection pattern
2665 tSCC zNested_Sys_LimitsList[] =
2668 * Machine/OS name selection pattern
2670 #define apzNested_Sys_LimitsMachs (const char**)NULL
2673 * content selection pattern - do fix if pattern found
2675 tSCC zNested_Sys_LimitsSelect0[] =
2678 #define NESTED_SYS_LIMITS_TEST_CT 1
2679 static tTestDesc aNested_Sys_LimitsTests[] = {
2680 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
2683 * Fix Command Arguments for Nested_Sys_Limits
2685 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
2686 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
2687 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
2690 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2692 * Description of Next_Math_Prefix fix
2694 tSCC zNext_Math_PrefixName[] =
2698 * File name selection pattern
2700 tSCC zNext_Math_PrefixList[] =
2703 * Machine/OS name selection pattern
2705 #define apzNext_Math_PrefixMachs (const char**)NULL
2708 * content selection pattern - do fix if pattern found
2710 tSCC zNext_Math_PrefixSelect0[] =
2711 "^extern[ \t]+double[ \t]+__const__[ \t]";
2713 #define NEXT_MATH_PREFIX_TEST_CT 1
2714 static tTestDesc aNext_Math_PrefixTests[] = {
2715 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
2718 * Fix Command Arguments for Next_Math_Prefix
2720 static const char* apzNext_Math_PrefixPatch[] = {
2722 "extern double %1(",
2723 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
2726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2728 * Description of Next_Template fix
2730 tSCC zNext_TemplateName[] =
2734 * File name selection pattern
2736 tSCC zNext_TemplateList[] =
2739 * Machine/OS name selection pattern
2741 #define apzNext_TemplateMachs (const char**)NULL
2744 * content selection pattern - do fix if pattern found
2746 tSCC zNext_TemplateSelect0[] =
2749 #define NEXT_TEMPLATE_TEST_CT 1
2750 static tTestDesc aNext_TemplateTests[] = {
2751 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
2754 * Fix Command Arguments for Next_Template
2756 static const char* apzNext_TemplatePatch[] = {
2759 "\\(([^)]*)[ \t]template\\)",
2762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2764 * Description of Next_Volitile fix
2766 tSCC zNext_VolitileName[] =
2770 * File name selection pattern
2772 tSCC zNext_VolitileList[] =
2775 * Machine/OS name selection pattern
2777 #define apzNext_VolitileMachs (const char**)NULL
2780 * content selection pattern - do fix if pattern found
2782 tSCC zNext_VolitileSelect0[] =
2783 "^extern[ \t]+volatile[ \t]+void[ \t]";
2785 #define NEXT_VOLITILE_TEST_CT 1
2786 static tTestDesc aNext_VolitileTests[] = {
2787 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
2790 * Fix Command Arguments for Next_Volitile
2792 static const char* apzNext_VolitilePatch[] = {
2795 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
2798 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2800 * Description of Next_Wait_Union fix
2802 tSCC zNext_Wait_UnionName[] =
2806 * File name selection pattern
2808 tSCC zNext_Wait_UnionList[] =
2811 * Machine/OS name selection pattern
2813 #define apzNext_Wait_UnionMachs (const char**)NULL
2816 * content selection pattern - do fix if pattern found
2818 tSCC zNext_Wait_UnionSelect0[] =
2819 "wait\\(union wait";
2821 #define NEXT_WAIT_UNION_TEST_CT 1
2822 static tTestDesc aNext_Wait_UnionTests[] = {
2823 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
2826 * Fix Command Arguments for Next_Wait_Union
2828 static const char* apzNext_Wait_UnionPatch[] = {
2833 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2835 * Description of Nodeent_Syntax fix
2837 tSCC zNodeent_SyntaxName[] =
2841 * File name selection pattern
2843 tSCC zNodeent_SyntaxList[] =
2844 "|netdnet/dnetdb.h|";
2846 * Machine/OS name selection pattern
2848 #define apzNodeent_SyntaxMachs (const char**)NULL
2851 * content selection pattern - do fix if pattern found
2853 tSCC zNodeent_SyntaxSelect0[] =
2854 "char[ \t]*\\*na_addr[ \t]*$";
2856 #define NODEENT_SYNTAX_TEST_CT 1
2857 static tTestDesc aNodeent_SyntaxTests[] = {
2858 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
2861 * Fix Command Arguments for Nodeent_Syntax
2863 static const char* apzNodeent_SyntaxPatch[] = {
2868 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2870 * Description of Osf_Namespace_A fix
2872 tSCC zOsf_Namespace_AName[] =
2876 * File name selection pattern
2878 tSCC zOsf_Namespace_AList[] =
2879 "|reg_types.h|sys/lc_core.h|";
2881 * Machine/OS name selection pattern
2883 #define apzOsf_Namespace_AMachs (const char**)NULL
2886 * perform the 'test' shell command - do fix on success
2888 tSCC zOsf_Namespace_ATest0[] =
2890 tSCC zOsf_Namespace_ATest1[] =
2891 " -r sys/lc_core.h";
2892 tSCC zOsf_Namespace_ATest2[] =
2893 " -n \"`grep '} regex_t;' reg_types.h`\"";
2894 tSCC zOsf_Namespace_ATest3[] =
2895 " -z \"`grep __regex_t regex.h`\"";
2897 #define OSF_NAMESPACE_A_TEST_CT 4
2898 static tTestDesc aOsf_Namespace_ATests[] = {
2899 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
2900 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
2901 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
2902 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
2905 * Fix Command Arguments for Osf_Namespace_A
2907 static const char* apzOsf_Namespace_APatch[] = {
2910 "reg(ex|off|match)_t",
2913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2915 * Description of Osf_Namespace_C fix
2917 tSCC zOsf_Namespace_CName[] =
2921 * File name selection pattern
2923 tSCC zOsf_Namespace_CList[] =
2926 * Machine/OS name selection pattern
2928 #define apzOsf_Namespace_CMachs (const char**)NULL
2931 * content selection pattern - do fix if pattern found
2933 tSCC zOsf_Namespace_CSelect0[] =
2934 "#include <reg_types.h>.*";
2937 * perform the 'test' shell command - do fix on success
2939 tSCC zOsf_Namespace_CTest0[] =
2941 tSCC zOsf_Namespace_CTest1[] =
2942 " -r sys/lc_core.h";
2943 tSCC zOsf_Namespace_CTest2[] =
2944 " -n \"`grep '} regex_t;' reg_types.h`\"";
2945 tSCC zOsf_Namespace_CTest3[] =
2946 " -z \"`grep __regex_t regex.h`\"";
2948 #define OSF_NAMESPACE_C_TEST_CT 5
2949 static tTestDesc aOsf_Namespace_CTests[] = {
2950 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
2951 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
2952 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
2953 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
2954 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
2957 * Fix Command Arguments for Osf_Namespace_C
2959 static const char* apzOsf_Namespace_CPatch[] = {
2962 typedef __regex_t\tregex_t;\n\
2963 typedef __regoff_t\tregoff_t;\n\
2964 typedef __regmatch_t\tregmatch_t;",
2967 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2969 * Description of Pthread_Page_Size fix
2971 tSCC zPthread_Page_SizeName[] =
2972 "pthread_page_size";
2975 * File name selection pattern
2977 tSCC zPthread_Page_SizeList[] =
2980 * Machine/OS name selection pattern
2982 #define apzPthread_Page_SizeMachs (const char**)NULL
2985 * content selection pattern - do fix if pattern found
2987 tSCC zPthread_Page_SizeSelect0[] =
2990 #define PTHREAD_PAGE_SIZE_TEST_CT 1
2991 static tTestDesc aPthread_Page_SizeTests[] = {
2992 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
2995 * Fix Command Arguments for Pthread_Page_Size
2997 static const char* apzPthread_Page_SizePatch[] = {
3002 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3004 * Description of Read_Ret_Type fix
3006 tSCC zRead_Ret_TypeName[] =
3010 * File name selection pattern
3012 tSCC zRead_Ret_TypeList[] =
3015 * Machine/OS name selection pattern
3017 #define apzRead_Ret_TypeMachs (const char**)NULL
3020 * content selection pattern - do fix if pattern found
3022 tSCC zRead_Ret_TypeSelect0[] =
3023 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3025 #define READ_RET_TYPE_TEST_CT 1
3026 static tTestDesc aRead_Ret_TypeTests[] = {
3027 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3030 * Fix Command Arguments for Read_Ret_Type
3032 static const char* apzRead_Ret_TypePatch[] = {
3034 "extern unsigned int fread(), fwrite();\n\
3036 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3039 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3041 * Description of Rs6000_Double fix
3043 tSCC zRs6000_DoubleName[] =
3047 * File name selection pattern
3049 tSCC zRs6000_DoubleList[] =
3052 * Machine/OS name selection pattern
3054 #define apzRs6000_DoubleMachs (const char**)NULL
3057 * content selection pattern - do fix if pattern found
3059 tSCC zRs6000_DoubleSelect0[] =
3060 "[^a-zA-Z_]class\\(";
3062 #define RS6000_DOUBLE_TEST_CT 1
3063 static tTestDesc aRs6000_DoubleTests[] = {
3064 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3067 * Fix Command Arguments for Rs6000_Double
3069 static const char* apzRs6000_DoublePatch[] = {
3071 "#ifndef __cplusplus\n\
3074 "^.*[^a-zA-Z_]class\\(.*",
3077 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3079 * Description of Rs6000_Fchmod fix
3081 tSCC zRs6000_FchmodName[] =
3085 * File name selection pattern
3087 tSCC zRs6000_FchmodList[] =
3090 * Machine/OS name selection pattern
3092 #define apzRs6000_FchmodMachs (const char**)NULL
3095 * content selection pattern - do fix if pattern found
3097 tSCC zRs6000_FchmodSelect0[] =
3098 "fchmod\\(char \\*";
3100 #define RS6000_FCHMOD_TEST_CT 1
3101 static tTestDesc aRs6000_FchmodTests[] = {
3102 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3105 * Fix Command Arguments for Rs6000_Fchmod
3107 static const char* apzRs6000_FchmodPatch[] = {
3112 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3114 * Description of Rs6000_Param fix
3116 tSCC zRs6000_ParamName[] =
3120 * File name selection pattern
3122 tSCC zRs6000_ParamList[] =
3123 "|stdio.h|unistd.h|";
3125 * Machine/OS name selection pattern
3127 #define apzRs6000_ParamMachs (const char**)NULL
3130 * content selection pattern - do fix if pattern found
3132 tSCC zRs6000_ParamSelect0[] =
3133 "rename\\(const char \\*old, const char \\*new\\)";
3135 #define RS6000_PARAM_TEST_CT 1
3136 static tTestDesc aRs6000_ParamTests[] = {
3137 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3140 * Fix Command Arguments for Rs6000_Param
3142 static const char* apzRs6000_ParamPatch[] = {
3144 "rename(const char *_old, const char *_new)",
3147 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3149 * Description of Sco_Static_Func fix
3151 tSCC zSco_Static_FuncName[] =
3155 * File name selection pattern
3157 tSCC zSco_Static_FuncList[] =
3160 * Machine/OS name selection pattern
3162 tSCC* apzSco_Static_FuncMachs[] = {
3164 (const char*)NULL };
3167 * content selection pattern - do fix if pattern found
3169 tSCC zSco_Static_FuncSelect0[] =
3172 #define SCO_STATIC_FUNC_TEST_CT 1
3173 static tTestDesc aSco_Static_FuncTests[] = {
3174 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3177 * Fix Command Arguments for Sco_Static_Func
3179 static const char* apzSco_Static_FuncPatch[] = { "sed",
3180 "-e", "/^static int/i\\\n\
3181 #if __cplusplus\\\n\
3183 #endif /* __cplusplus */",
3185 #if __cplusplus\\\n\
3187 #endif /* __cplusplus */",
3190 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3192 * Description of Sco_Utime fix
3194 tSCC zSco_UtimeName[] =
3198 * File name selection pattern
3200 tSCC zSco_UtimeList[] =
3203 * Machine/OS name selection pattern
3205 tSCC* apzSco_UtimeMachs[] = {
3207 (const char*)NULL };
3210 * content selection pattern - do fix if pattern found
3212 tSCC zSco_UtimeSelect0[] =
3213 "\\(const char \\*, struct utimbuf \\*\\);";
3215 #define SCO_UTIME_TEST_CT 1
3216 static tTestDesc aSco_UtimeTests[] = {
3217 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3220 * Fix Command Arguments for Sco_Utime
3222 static const char* apzSco_UtimePatch[] = {
3224 "(const char *, const struct utimbuf *);",
3227 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3229 * Description of Solaris_Mutex_Init fix
3231 tSCC zSolaris_Mutex_InitName[] =
3232 "solaris_mutex_init";
3235 * File name selection pattern
3237 tSCC zSolaris_Mutex_InitList[] =
3240 * Machine/OS name selection pattern
3242 #define apzSolaris_Mutex_InitMachs (const char**)NULL
3245 * content selection pattern - do fix if pattern found
3247 tSCC zSolaris_Mutex_InitSelect0[] =
3248 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
3250 #define SOLARIS_MUTEX_INIT_TEST_CT 1
3251 static tTestDesc aSolaris_Mutex_InitTests[] = {
3252 { TT_EGREP, zSolaris_Mutex_InitSelect0, (regex_t*)NULL }, };
3255 * Fix Command Arguments for Solaris_Mutex_Init
3257 static const char* apzSolaris_Mutex_InitPatch[] = {
3259 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
3264 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
3267 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3269 * Description of Solaris_Stdio_Tag fix
3271 tSCC zSolaris_Stdio_TagName[] =
3272 "solaris_stdio_tag";
3275 * File name selection pattern
3277 tSCC zSolaris_Stdio_TagList[] =
3280 * Machine/OS name selection pattern
3282 #define apzSolaris_Stdio_TagMachs (const char**)NULL
3285 * content selection pattern - do fix if pattern found
3287 tSCC zSolaris_Stdio_TagSelect0[] =
3288 "__cplusplus < 54321L";
3290 #define SOLARIS_STDIO_TAG_TEST_CT 1
3291 static tTestDesc aSolaris_Stdio_TagTests[] = {
3292 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
3295 * Fix Command Arguments for Solaris_Stdio_Tag
3297 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
3298 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
3301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3303 * Description of Solaris_Widec fix
3305 tSCC zSolaris_WidecName[] =
3309 * File name selection pattern
3311 tSCC zSolaris_WidecList[] =
3314 * Machine/OS name selection pattern
3316 tSCC* apzSolaris_WidecMachs[] = {
3317 "*-*-solaris2.[0-5]*",
3318 (const char*)NULL };
3321 * content selection pattern - do fix if pattern found
3323 tSCC zSolaris_WidecSelect0[] =
3327 * content bypass pattern - skip fix if pattern found
3329 tSCC zSolaris_WidecBypass0[] =
3330 "include.*wchar\\.h";
3332 #define SOLARIS_WIDEC_TEST_CT 2
3333 static tTestDesc aSolaris_WidecTests[] = {
3334 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
3335 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
3338 * Fix Command Arguments for Solaris_Widec
3340 static const char* apzSolaris_WidecPatch[] = {
3343 #include <wchar.h>",
3346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3348 * Description of Statsswtch fix
3350 tSCC zStatsswtchName[] =
3354 * File name selection pattern
3356 tSCC zStatsswtchList[] =
3359 * Machine/OS name selection pattern
3361 #define apzStatsswtchMachs (const char**)NULL
3364 * content selection pattern - do fix if pattern found
3366 tSCC zStatsswtchSelect0[] =
3369 #define STATSSWTCH_TEST_CT 1
3370 static tTestDesc aStatsswtchTests[] = {
3371 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3374 * Fix Command Arguments for Statsswtch
3376 static const char* apzStatsswtchPatch[] = {
3381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3383 * Description of Stdio_Stdarg_H fix
3385 tSCC zStdio_Stdarg_HName[] =
3389 * File name selection pattern
3391 tSCC zStdio_Stdarg_HList[] =
3394 * Machine/OS name selection pattern
3396 #define apzStdio_Stdarg_HMachs (const char**)NULL
3399 * content bypass pattern - skip fix if pattern found
3401 tSCC zStdio_Stdarg_HBypass0[] =
3402 "include.*(stdarg.h|machine/ansi.h)";
3404 #define STDIO_STDARG_H_TEST_CT 1
3405 static tTestDesc aStdio_Stdarg_HTests[] = {
3406 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3409 * Fix Command Arguments for Stdio_Stdarg_H
3411 static const char* apzStdio_Stdarg_HPatch[] = {
3413 "#define __need___va_list\n\
3414 #include <stdarg.h>\n",
3417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3419 * Description of Stdio_Va_List fix
3421 tSCC zStdio_Va_ListName[] =
3425 * File name selection pattern
3427 tSCC zStdio_Va_ListList[] =
3430 * Machine/OS name selection pattern
3432 #define apzStdio_Va_ListMachs (const char**)NULL
3435 * content bypass pattern - skip fix if pattern found
3437 tSCC zStdio_Va_ListBypass0[] =
3438 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list";
3440 #define STDIO_VA_LIST_TEST_CT 1
3441 static tTestDesc aStdio_Va_ListTests[] = {
3442 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3445 * Fix Command Arguments for Stdio_Va_List
3447 static const char* apzStdio_Va_ListPatch[] = { "sed",
3448 "-e", "s@ va_list @ __gnuc_va_list @\n\
3449 s@ va_list)@ __gnuc_va_list)@\n\
3450 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3451 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
3452 s@ va_list@ __not_va_list__@\n\
3453 s@\\*va_list@*__not_va_list__@\n\
3454 s@ __va_list)@ __gnuc_va_list)@\n\
3455 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3456 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
3457 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3458 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3459 s@VA_LIST@DUMMY_VA_LIST@\n\
3460 s@_Va_LIST@_VA_LIST@",
3463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3465 * Description of Strict_Ansi_Not fix
3467 tSCC zStrict_Ansi_NotName[] =
3471 * File name selection pattern
3473 #define zStrict_Ansi_NotList (char*)NULL
3475 * Machine/OS name selection pattern
3477 #define apzStrict_Ansi_NotMachs (const char**)NULL
3480 * content selection pattern - do fix if pattern found
3482 tSCC zStrict_Ansi_NotSelect0[] =
3483 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
3486 * content bypass pattern - skip fix if pattern found
3488 tSCC zStrict_Ansi_NotBypass0[] =
3489 "GNU and MIPS C compilers define __STDC__ differently";
3492 * perform the C function call test
3494 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
3496 #define STRICT_ANSI_NOT_TEST_CT 3
3497 static tTestDesc aStrict_Ansi_NotTests[] = {
3498 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
3499 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
3500 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
3503 * Fix Command Arguments for Strict_Ansi_Not
3505 static const char* apzStrict_Ansi_NotPatch[] = {
3507 "%1 !defined(__STRICT_ANSI__)",
3510 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3512 * Description of Strict_Ansi_Not_Ctd fix
3514 tSCC zStrict_Ansi_Not_CtdName[] =
3515 "strict_ansi_not_ctd";
3518 * File name selection pattern
3520 tSCC zStrict_Ansi_Not_CtdList[] =
3521 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
3523 * Machine/OS name selection pattern
3525 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
3528 * content selection pattern - do fix if pattern found
3530 tSCC zStrict_Ansi_Not_CtdSelect0[] =
3531 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
3534 * perform the C function call test
3536 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
3538 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
3539 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
3540 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
3541 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
3544 * Fix Command Arguments for Strict_Ansi_Not_Ctd
3546 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
3548 "%1 !defined(__STRICT_ANSI__)",
3551 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3553 * Description of Strict_Ansi_Only fix
3555 tSCC zStrict_Ansi_OnlyName[] =
3559 * File name selection pattern
3561 #define zStrict_Ansi_OnlyList (char*)NULL
3563 * Machine/OS name selection pattern
3565 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
3568 * content selection pattern - do fix if pattern found
3570 tSCC zStrict_Ansi_OnlySelect0[] =
3571 "^([ \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)";
3574 * perform the C function call test
3576 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
3578 #define STRICT_ANSI_ONLY_TEST_CT 2
3579 static tTestDesc aStrict_Ansi_OnlyTests[] = {
3580 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
3581 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
3584 * Fix Command Arguments for Strict_Ansi_Only
3586 static const char* apzStrict_Ansi_OnlyPatch[] = {
3588 "%1 defined(__STRICT_ANSI__)",
3591 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3593 * Description of Struct_File fix
3595 tSCC zStruct_FileName[] =
3599 * File name selection pattern
3601 tSCC zStruct_FileList[] =
3604 * Machine/OS name selection pattern
3606 #define apzStruct_FileMachs (const char**)NULL
3609 * content selection pattern - do fix if pattern found
3611 tSCC zStruct_FileSelect0[] =
3612 "^.*xdrstdio_create.*struct __file_s";
3614 #define STRUCT_FILE_TEST_CT 1
3615 static tTestDesc aStruct_FileTests[] = {
3616 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
3619 * Fix Command Arguments for Struct_File
3621 static const char* apzStruct_FilePatch[] = {
3623 "struct __file_s;\n\
3627 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3629 * Description of Struct_Sockaddr fix
3631 tSCC zStruct_SockaddrName[] =
3635 * File name selection pattern
3637 tSCC zStruct_SockaddrList[] =
3640 * Machine/OS name selection pattern
3642 #define apzStruct_SockaddrMachs (const char**)NULL
3645 * content selection pattern - do fix if pattern found
3647 tSCC zStruct_SockaddrSelect0[] =
3648 "^.*authdes_create.*struct sockaddr";
3651 * content bypass pattern - skip fix if pattern found
3653 tSCC zStruct_SockaddrBypass0[] =
3656 #define STRUCT_SOCKADDR_TEST_CT 2
3657 static tTestDesc aStruct_SockaddrTests[] = {
3658 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
3659 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
3662 * Fix Command Arguments for Struct_Sockaddr
3664 static const char* apzStruct_SockaddrPatch[] = {
3666 "struct sockaddr;\n\
3670 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3672 * Description of Sun_Auth_Proto fix
3674 tSCC zSun_Auth_ProtoName[] =
3678 * File name selection pattern
3680 tSCC zSun_Auth_ProtoList[] =
3681 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
3683 * Machine/OS name selection pattern
3685 #define apzSun_Auth_ProtoMachs (const char**)NULL
3688 * content selection pattern - do fix if pattern found
3690 tSCC zSun_Auth_ProtoSelect0[] =
3691 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
3693 #define SUN_AUTH_PROTO_TEST_CT 1
3694 static tTestDesc aSun_Auth_ProtoTests[] = {
3695 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
3698 * Fix Command Arguments for Sun_Auth_Proto
3700 static const char* apzSun_Auth_ProtoPatch[] = {
3702 "#ifdef __cplusplus\n\
3707 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
3710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3712 * Description of Sun_Bogus_Ifdef fix
3714 tSCC zSun_Bogus_IfdefName[] =
3718 * File name selection pattern
3720 tSCC zSun_Bogus_IfdefList[] =
3721 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
3723 * Machine/OS name selection pattern
3725 #define apzSun_Bogus_IfdefMachs (const char**)NULL
3728 * content selection pattern - do fix if pattern found
3730 tSCC zSun_Bogus_IfdefSelect0[] =
3731 "#ifdef(.*\\|\\|.*)";
3733 #define SUN_BOGUS_IFDEF_TEST_CT 1
3734 static tTestDesc aSun_Bogus_IfdefTests[] = {
3735 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
3738 * Fix Command Arguments for Sun_Bogus_Ifdef
3740 static const char* apzSun_Bogus_IfdefPatch[] = {
3745 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3747 * Description of Sun_Catmacro fix
3749 tSCC zSun_CatmacroName[] =
3753 * File name selection pattern
3755 tSCC zSun_CatmacroList[] =
3756 "|pixrect/memvar.h|";
3758 * Machine/OS name selection pattern
3760 #define apzSun_CatmacroMachs (const char**)NULL
3763 * content selection pattern - do fix if pattern found
3765 tSCC zSun_CatmacroSelect0[] =
3766 "^#define[ \t]+CAT\\(a,b\\).*";
3768 #define SUN_CATMACRO_TEST_CT 1
3769 static tTestDesc aSun_CatmacroTests[] = {
3770 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
3773 * Fix Command Arguments for Sun_Catmacro
3775 static const char* apzSun_CatmacroPatch[] = {
3778 # define CAT(a,b) a##b\n\
3784 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3786 * Description of Sun_Malloc fix
3788 tSCC zSun_MallocName[] =
3792 * File name selection pattern
3794 tSCC zSun_MallocList[] =
3797 * Machine/OS name selection pattern
3799 #define apzSun_MallocMachs (const char**)NULL
3800 #define SUN_MALLOC_TEST_CT 0
3801 #define aSun_MallocTests (tTestDesc*)NULL
3804 * Fix Command Arguments for Sun_Malloc
3806 static const char* apzSun_MallocPatch[] = { "sed",
3807 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
3808 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
3809 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
3810 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
3811 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
3814 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3816 * Description of Sun_Rusers_Semi fix
3818 tSCC zSun_Rusers_SemiName[] =
3822 * File name selection pattern
3824 tSCC zSun_Rusers_SemiList[] =
3825 "|rpcsvc/rusers.h|";
3827 * Machine/OS name selection pattern
3829 #define apzSun_Rusers_SemiMachs (const char**)NULL
3832 * content selection pattern - do fix if pattern found
3834 tSCC zSun_Rusers_SemiSelect0[] =
3837 #define SUN_RUSERS_SEMI_TEST_CT 1
3838 static tTestDesc aSun_Rusers_SemiTests[] = {
3839 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
3842 * Fix Command Arguments for Sun_Rusers_Semi
3844 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
3845 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
3848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3850 * Description of Sun_Signal fix
3852 tSCC zSun_SignalName[] =
3856 * File name selection pattern
3858 tSCC zSun_SignalList[] =
3859 "|sys/signal.h|signal.h|";
3861 * Machine/OS name selection pattern
3863 #define apzSun_SignalMachs (const char**)NULL
3866 * content selection pattern - do fix if pattern found
3868 tSCC zSun_SignalSelect0[] =
3869 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
3871 #define SUN_SIGNAL_TEST_CT 1
3872 static tTestDesc aSun_SignalTests[] = {
3873 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
3876 * Fix Command Arguments for Sun_Signal
3878 static const char* apzSun_SignalPatch[] = {
3880 "#ifdef __cplusplus\n\
3881 void\t(*signal(...))(...);\n\
3887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3889 * Description of Sunos_Matherr_Decl fix
3891 tSCC zSunos_Matherr_DeclName[] =
3892 "sunos_matherr_decl";
3895 * File name selection pattern
3897 tSCC zSunos_Matherr_DeclList[] =
3900 * Machine/OS name selection pattern
3902 #define apzSunos_Matherr_DeclMachs (const char**)NULL
3905 * content selection pattern - do fix if pattern found
3907 tSCC zSunos_Matherr_DeclSelect0[] =
3911 * content bypass pattern - skip fix if pattern found
3913 tSCC zSunos_Matherr_DeclBypass0[] =
3914 "matherr.*(struct exception|__MATH_EXCEPTION)";
3916 #define SUNOS_MATHERR_DECL_TEST_CT 2
3917 static tTestDesc aSunos_Matherr_DeclTests[] = {
3918 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
3919 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
3922 * Fix Command Arguments for Sunos_Matherr_Decl
3924 static const char* apzSunos_Matherr_DeclPatch[] = {
3926 "struct exception;\n",
3929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3931 * Description of Sunos_Strlen fix
3933 tSCC zSunos_StrlenName[] =
3937 * File name selection pattern
3939 tSCC zSunos_StrlenList[] =
3942 * Machine/OS name selection pattern
3944 #define apzSunos_StrlenMachs (const char**)NULL
3947 * content selection pattern - do fix if pattern found
3949 tSCC zSunos_StrlenSelect0[] =
3950 "int[ \t]*strlen\\(\\);(.*)";
3952 #define SUNOS_STRLEN_TEST_CT 1
3953 static tTestDesc aSunos_StrlenTests[] = {
3954 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
3957 * Fix Command Arguments for Sunos_Strlen
3959 static const char* apzSunos_StrlenPatch[] = {
3961 "__SIZE_TYPE__ strlen();%1",
3964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3966 * Description of Svr4__P fix
3968 tSCC zSvr4__PName[] =
3972 * File name selection pattern
3974 tSCC zSvr4__PList[] =
3975 "|math.h|floatingpoint.h|";
3977 * Machine/OS name selection pattern
3979 #define apzSvr4__PMachs (const char**)NULL
3982 * content selection pattern - do fix if pattern found
3984 tSCC zSvr4__PSelect0[] =
3985 "^#define[ \t]+__P.*";
3987 #define SVR4__P_TEST_CT 1
3988 static tTestDesc aSvr4__PTests[] = {
3989 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
3992 * Fix Command Arguments for Svr4__P
3994 static const char* apzSvr4__PPatch[] = {
4001 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4003 * Description of Svr4_Getcwd fix
4005 tSCC zSvr4_GetcwdName[] =
4009 * File name selection pattern
4011 tSCC zSvr4_GetcwdList[] =
4012 "|stdlib.h|unistd.h|prototypes.h|";
4014 * Machine/OS name selection pattern
4016 #define apzSvr4_GetcwdMachs (const char**)NULL
4019 * content selection pattern - do fix if pattern found
4021 tSCC zSvr4_GetcwdSelect0[] =
4022 "getcwd\\(char \\*, int\\)";
4024 #define SVR4_GETCWD_TEST_CT 1
4025 static tTestDesc aSvr4_GetcwdTests[] = {
4026 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4029 * Fix Command Arguments for Svr4_Getcwd
4031 static const char* apzSvr4_GetcwdPatch[] = {
4033 "getcwd(char *, size_t)",
4036 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4038 * Description of Svr4_Profil fix
4040 tSCC zSvr4_ProfilName[] =
4044 * File name selection pattern
4046 tSCC zSvr4_ProfilList[] =
4047 "|stdlib.h|unistd.h|";
4049 * Machine/OS name selection pattern
4051 #define apzSvr4_ProfilMachs (const char**)NULL
4054 * content selection pattern - do fix if pattern found
4056 tSCC zSvr4_ProfilSelect0[] =
4057 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
4059 #define SVR4_PROFIL_TEST_CT 1
4060 static tTestDesc aSvr4_ProfilTests[] = {
4061 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
4064 * Fix Command Arguments for Svr4_Profil
4066 static const char* apzSvr4_ProfilPatch[] = {
4068 "profil(unsigned short *, size_t, int, unsigned int)",
4071 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4073 * Description of Sysv68_String fix
4075 tSCC zSysv68_StringName[] =
4079 * File name selection pattern
4081 tSCC zSysv68_StringList[] =
4082 "|testing.h|string.h|";
4084 * Machine/OS name selection pattern
4086 #define apzSysv68_StringMachs (const char**)NULL
4087 #define SYSV68_STRING_TEST_CT 0
4088 #define aSysv68_StringTests (tTestDesc*)NULL
4091 * Fix Command Arguments for Sysv68_String
4093 static const char* apzSysv68_StringPatch[] = { "sed",
4094 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4095 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4096 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4097 "-e", "/^extern char$/N",
4098 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4099 "-e", "/^extern int$/N",
4100 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4101 "-e", "/^\tstrncmp(),$/N",
4102 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4103 extern unsigned int\\\n\
4107 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4109 * Description of Sysz_Stdlib_For_Sun fix
4111 tSCC zSysz_Stdlib_For_SunName[] =
4112 "sysz_stdlib_for_sun";
4115 * File name selection pattern
4117 tSCC zSysz_Stdlib_For_SunList[] =
4120 * Machine/OS name selection pattern
4122 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4125 * content selection pattern - do fix if pattern found
4127 tSCC zSysz_Stdlib_For_SunSelect0[] =
4128 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
4130 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
4131 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
4132 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4135 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4137 static const char* apzSysz_Stdlib_For_SunPatch[] = {
4142 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4144 * Description of Thread_Keyword fix
4146 tSCC zThread_KeywordName[] =
4150 * File name selection pattern
4152 tSCC zThread_KeywordList[] =
4153 "|pthread.h|bits/sigthread.h|";
4155 * Machine/OS name selection pattern
4157 #define apzThread_KeywordMachs (const char**)NULL
4160 * content selection pattern - do fix if pattern found
4162 tSCC zThread_KeywordSelect0[] =
4163 "([* ])__thread([,)])";
4165 #define THREAD_KEYWORD_TEST_CT 1
4166 static tTestDesc aThread_KeywordTests[] = {
4167 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
4170 * Fix Command Arguments for Thread_Keyword
4172 static const char* apzThread_KeywordPatch[] = {
4177 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4179 * Description of Tinfo_Cplusplus fix
4181 tSCC zTinfo_CplusplusName[] =
4185 * File name selection pattern
4187 tSCC zTinfo_CplusplusList[] =
4190 * Machine/OS name selection pattern
4192 #define apzTinfo_CplusplusMachs (const char**)NULL
4195 * content selection pattern - do fix if pattern found
4197 tSCC zTinfo_CplusplusSelect0[] =
4200 #define TINFO_CPLUSPLUS_TEST_CT 1
4201 static tTestDesc aTinfo_CplusplusTests[] = {
4202 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4205 * Fix Command Arguments for Tinfo_Cplusplus
4207 static const char* apzTinfo_CplusplusPatch[] = {
4212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4214 * Description of Ultrix_Const fix
4216 tSCC zUltrix_ConstName[] =
4220 * File name selection pattern
4222 tSCC zUltrix_ConstList[] =
4225 * Machine/OS name selection pattern
4227 #define apzUltrix_ConstMachs (const char**)NULL
4230 * content selection pattern - do fix if pattern found
4232 tSCC zUltrix_ConstSelect0[] =
4233 "perror\\( char \\*";
4235 #define ULTRIX_CONST_TEST_CT 1
4236 static tTestDesc aUltrix_ConstTests[] = {
4237 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
4240 * Fix Command Arguments for Ultrix_Const
4242 static const char* apzUltrix_ConstPatch[] = {
4245 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
4248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4250 * Description of Ultrix_Const2 fix
4252 tSCC zUltrix_Const2Name[] =
4256 * File name selection pattern
4258 tSCC zUltrix_Const2List[] =
4261 * Machine/OS name selection pattern
4263 #define apzUltrix_Const2Machs (const char**)NULL
4266 * content selection pattern - do fix if pattern found
4268 tSCC zUltrix_Const2Select0[] =
4269 "\\*fopen\\( char \\*";
4271 #define ULTRIX_CONST2_TEST_CT 1
4272 static tTestDesc aUltrix_Const2Tests[] = {
4273 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
4276 * Fix Command Arguments for Ultrix_Const2
4278 static const char* apzUltrix_Const2Patch[] = {
4280 "%1( const char *%3, const char *",
4281 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
4284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4286 * Description of Undefine_Null fix
4288 tSCC zUndefine_NullName[] =
4292 * File name selection pattern
4294 #define zUndefine_NullList (char*)NULL
4296 * Machine/OS name selection pattern
4298 #define apzUndefine_NullMachs (const char**)NULL
4301 * content selection pattern - do fix if pattern found
4303 tSCC zUndefine_NullSelect0[] =
4304 "^#[ \t]*define[ \t]+NULL[ \t]";
4307 * content bypass pattern - skip fix if pattern found
4309 tSCC zUndefine_NullBypass0[] =
4310 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
4312 #define UNDEFINE_NULL_TEST_CT 2
4313 static tTestDesc aUndefine_NullTests[] = {
4314 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
4315 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
4318 * Fix Command Arguments for Undefine_Null
4320 static const char* apzUndefine_NullPatch[] = {
4325 "^#[ \t]*define[ \t]*[ \t]NULL([^\r\n\
4329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4331 * Description of Unicosmk_Restrict fix
4333 tSCC zUnicosmk_RestrictName[] =
4334 "unicosmk_restrict";
4337 * File name selection pattern
4339 tSCC zUnicosmk_RestrictList[] =
4340 "|stdio.h|stdlib.h|wchar.h|";
4342 * Machine/OS name selection pattern
4344 tSCC* apzUnicosmk_RestrictMachs[] = {
4346 (const char*)NULL };
4349 * content selection pattern - do fix if pattern found
4351 tSCC zUnicosmk_RestrictSelect0[] =
4352 "(\\*[ \t]*)restrict([ \t]+)";
4354 #define UNICOSMK_RESTRICT_TEST_CT 1
4355 static tTestDesc aUnicosmk_RestrictTests[] = {
4356 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
4359 * Fix Command Arguments for Unicosmk_Restrict
4361 static const char* apzUnicosmk_RestrictPatch[] = {
4366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4368 * Description of Uw7_Byteorder_Fix fix
4370 tSCC zUw7_Byteorder_FixName[] =
4371 "uw7_byteorder_fix";
4374 * File name selection pattern
4376 tSCC zUw7_Byteorder_FixList[] =
4379 * Machine/OS name selection pattern
4381 tSCC* apzUw7_Byteorder_FixMachs[] = {
4385 "i?86-*-solaris2.[0-4]",
4386 "powerpcle-*-solaris2.[0-4]",
4387 "sparc-*-solaris2.[0-4]",
4388 (const char*)NULL };
4391 * content selection pattern - do fix if pattern found
4393 tSCC zUw7_Byteorder_FixSelect0[] =
4397 * perform the 'test' shell command - do fix on success
4399 tSCC zUw7_Byteorder_FixTest0[] =
4400 "-f sys/byteorder.h";
4402 #define UW7_BYTEORDER_FIX_TEST_CT 2
4403 static tTestDesc aUw7_Byteorder_FixTests[] = {
4404 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
4405 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
4408 * Fix Command Arguments for Uw7_Byteorder_Fix
4410 static const char* apzUw7_Byteorder_FixPatch[] = {
4413 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
4416 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4418 * Description of Va_I960_Macro fix
4420 tSCC zVa_I960_MacroName[] =
4424 * File name selection pattern
4426 tSCC zVa_I960_MacroList[] =
4427 "|arch/i960/archI960.h|";
4429 * Machine/OS name selection pattern
4431 #define apzVa_I960_MacroMachs (const char**)NULL
4434 * content selection pattern - do fix if pattern found
4436 tSCC zVa_I960_MacroSelect0[] =
4437 "__(vsiz|vali|vpad|alignof__)";
4439 #define VA_I960_MACRO_TEST_CT 1
4440 static tTestDesc aVa_I960_MacroTests[] = {
4441 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
4444 * Fix Command Arguments for Va_I960_Macro
4446 static const char* apzVa_I960_MacroPatch[] = {
4451 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4453 * Description of Void_Null fix
4455 tSCC zVoid_NullName[] =
4459 * File name selection pattern
4461 tSCC zVoid_NullList[] =
4462 "|curses.h|dbm.h|locale.h|stdio.h|stdlib.h|string.h|time.h|unistd.h|sys/dir.h|sys/param.h|sys/types.h|";
4464 * Machine/OS name selection pattern
4466 #define apzVoid_NullMachs (const char**)NULL
4469 * content selection pattern - do fix if pattern found
4471 tSCC zVoid_NullSelect0[] =
4472 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
4474 #define VOID_NULL_TEST_CT 1
4475 static tTestDesc aVoid_NullTests[] = {
4476 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
4479 * Fix Command Arguments for Void_Null
4481 static const char* apzVoid_NullPatch[] = {
4486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4488 * Description of Vxworks_Gcc_Problem fix
4490 tSCC zVxworks_Gcc_ProblemName[] =
4491 "vxworks_gcc_problem";
4494 * File name selection pattern
4496 tSCC zVxworks_Gcc_ProblemList[] =
4497 "|types/vxTypesBase.h|";
4499 * Machine/OS name selection pattern
4501 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
4504 * content selection pattern - do fix if pattern found
4506 tSCC zVxworks_Gcc_ProblemSelect0[] =
4507 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
4509 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
4510 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
4511 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
4514 * Fix Command Arguments for Vxworks_Gcc_Problem
4516 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
4517 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
4518 "-e", "/[ \t]size_t/i\\\n\
4519 #ifndef _GCC_SIZE_T\\\n\
4520 #define _GCC_SIZE_T\n",
4521 "-e", "/[ \t]size_t/a\\\n\
4523 "-e", "/[ \t]ptrdiff_t/i\\\n\
4524 #ifndef _GCC_PTRDIFF_T\\\n\
4525 #define _GCC_PTRDIFF_T\n",
4526 "-e", "/[ \t]ptrdiff_t/a\\\n\
4528 "-e", "/[ \t]wchar_t/i\\\n\
4529 #ifndef _GCC_WCHAR_T\\\n\
4530 #define _GCC_WCHAR_T\n",
4531 "-e", "/[ \t]wchar_t/a\\\n\
4535 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4537 * Description of Vxworks_Needs_Vxtypes fix
4539 tSCC zVxworks_Needs_VxtypesName[] =
4540 "vxworks_needs_vxtypes";
4543 * File name selection pattern
4545 tSCC zVxworks_Needs_VxtypesList[] =
4548 * Machine/OS name selection pattern
4550 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
4553 * content selection pattern - do fix if pattern found
4555 tSCC zVxworks_Needs_VxtypesSelect0[] =
4556 "uint_t([ \t]+_clocks_per_sec)";
4558 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
4559 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
4560 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
4563 * Fix Command Arguments for Vxworks_Needs_Vxtypes
4565 static const char* apzVxworks_Needs_VxtypesPatch[] = {
4570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4572 * Description of Vxworks_Needs_Vxworks fix
4574 tSCC zVxworks_Needs_VxworksName[] =
4575 "vxworks_needs_vxworks";
4578 * File name selection pattern
4580 tSCC zVxworks_Needs_VxworksList[] =
4583 * Machine/OS name selection pattern
4585 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
4588 * content selection pattern - do fix if pattern found
4590 tSCC zVxworks_Needs_VxworksSelect0[] =
4591 "#[ \t]define[ \t]+__INCstath";
4594 * perform the 'test' shell command - do fix on success
4596 tSCC zVxworks_Needs_VxworksTest0[] =
4597 " -r types/vxTypesOld.h";
4598 tSCC zVxworks_Needs_VxworksTest1[] =
4599 " -n \"`egrep '#include' $file`\"";
4600 tSCC zVxworks_Needs_VxworksTest2[] =
4601 " -n \"`egrep ULONG $file`\"";
4603 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
4604 static tTestDesc aVxworks_Needs_VxworksTests[] = {
4605 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
4606 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
4607 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
4608 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
4611 * Fix Command Arguments for Vxworks_Needs_Vxworks
4613 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
4614 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
4615 #include <types/vxTypesOld.h>\n",
4618 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4620 * Description of Vxworks_Time fix
4622 tSCC zVxworks_TimeName[] =
4626 * File name selection pattern
4628 tSCC zVxworks_TimeList[] =
4631 * Machine/OS name selection pattern
4633 #define apzVxworks_TimeMachs (const char**)NULL
4636 * content selection pattern - do fix if pattern found
4638 tSCC zVxworks_TimeSelect0[] =
4639 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
4642 * perform the 'test' shell command - do fix on success
4644 tSCC zVxworks_TimeTest0[] =
4647 #define VXWORKS_TIME_TEST_CT 2
4648 static tTestDesc aVxworks_TimeTests[] = {
4649 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
4650 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
4653 * Fix Command Arguments for Vxworks_Time
4655 static const char* apzVxworks_TimePatch[] = {
4657 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
4658 #ifdef __cplusplus\n\
4659 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
4661 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
4663 #define __gcc_VOIDFUNCPTR_defined\n\
4665 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
4668 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4670 * Description of Windiss_Math1 fix
4672 tSCC zWindiss_Math1Name[] =
4676 * File name selection pattern
4678 tSCC zWindiss_Math1List[] =
4681 * Machine/OS name selection pattern
4683 tSCC* apzWindiss_Math1Machs[] = {
4685 (const char*)NULL };
4686 #define WINDISS_MATH1_TEST_CT 0
4687 #define aWindiss_Math1Tests (tTestDesc*)NULL
4690 * Fix Command Arguments for Windiss_Math1
4692 static const char* apzWindiss_Math1Patch[] = { "sed",
4693 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
4696 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4698 * Description of Windiss_Math2 fix
4700 tSCC zWindiss_Math2Name[] =
4704 * File name selection pattern
4706 tSCC zWindiss_Math2List[] =
4709 * Machine/OS name selection pattern
4711 tSCC* apzWindiss_Math2Machs[] = {
4713 (const char*)NULL };
4714 #define WINDISS_MATH2_TEST_CT 0
4715 #define aWindiss_Math2Tests (tTestDesc*)NULL
4718 * Fix Command Arguments for Windiss_Math2
4720 static const char* apzWindiss_Math2Patch[] = { "sed",
4721 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
4724 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4726 * Description of Windiss_Valist fix
4728 tSCC zWindiss_ValistName[] =
4732 * File name selection pattern
4734 #define zWindiss_ValistList (char*)NULL
4736 * Machine/OS name selection pattern
4738 tSCC* apzWindiss_ValistMachs[] = {
4740 (const char*)NULL };
4743 * content selection pattern - do fix if pattern found
4745 tSCC zWindiss_ValistSelect0[] =
4746 "(#include.*)diab/va_list.h";
4748 #define WINDISS_VALIST_TEST_CT 1
4749 static tTestDesc aWindiss_ValistTests[] = {
4750 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
4753 * Fix Command Arguments for Windiss_Valist
4755 static const char* apzWindiss_ValistPatch[] = { "sed",
4756 "-e", "s|diab/va_list.h|stdarg.h|",
4759 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4761 * Description of X11_Class fix
4763 tSCC zX11_ClassName[] =
4767 * File name selection pattern
4769 tSCC zX11_ClassList[] =
4772 * Machine/OS name selection pattern
4774 #define apzX11_ClassMachs (const char**)NULL
4777 * content selection pattern - do fix if pattern found
4779 tSCC zX11_ClassSelect0[] =
4780 "^([ \t]*char \\*)class;(.*)";
4783 * content bypass pattern - skip fix if pattern found
4785 tSCC zX11_ClassBypass0[] =
4788 #define X11_CLASS_TEST_CT 2
4789 static tTestDesc aX11_ClassTests[] = {
4790 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
4791 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
4794 * Fix Command Arguments for X11_Class
4796 static const char* apzX11_ClassPatch[] = {
4798 "#ifdef __cplusplus\n\
4805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4807 * Description of X11_Class_Usage fix
4809 tSCC zX11_Class_UsageName[] =
4813 * File name selection pattern
4815 tSCC zX11_Class_UsageList[] =
4816 "|Xm/BaseClassI.h|";
4818 * Machine/OS name selection pattern
4820 #define apzX11_Class_UsageMachs (const char**)NULL
4823 * content selection pattern - do fix if pattern found
4825 tSCC zX11_Class_UsageSelect0[] =
4829 * content bypass pattern - skip fix if pattern found
4831 tSCC zX11_Class_UsageBypass0[] =
4834 #define X11_CLASS_USAGE_TEST_CT 2
4835 static tTestDesc aX11_Class_UsageTests[] = {
4836 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
4837 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
4840 * Fix Command Arguments for X11_Class_Usage
4842 static const char* apzX11_Class_UsagePatch[] = {
4847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4849 * Description of X11_New fix
4851 tSCC zX11_NewName[] =
4855 * File name selection pattern
4857 tSCC zX11_NewList[] =
4860 * Machine/OS name selection pattern
4862 #define apzX11_NewMachs (const char**)NULL
4865 * content bypass pattern - skip fix if pattern found
4867 tSCC zX11_NewBypass0[] =
4870 #define X11_NEW_TEST_CT 1
4871 static tTestDesc aX11_NewTests[] = {
4872 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
4875 * Fix Command Arguments for X11_New
4877 static const char* apzX11_NewPatch[] = { "sed",
4878 "-e", "/Widget\told, new;/i\\\n\
4879 #ifdef __cplusplus\\\n\
4880 \tWidget\told, c_new;\\\n\
4882 "-e", "/Widget\told, new;/a\\\n\
4884 "-e", "s/Widget new,/Widget c_new,/g",
4887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4889 * Description of X11_Sprintf fix
4891 tSCC zX11_SprintfName[] =
4895 * File name selection pattern
4897 tSCC zX11_SprintfList[] =
4898 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
4900 * Machine/OS name selection pattern
4902 #define apzX11_SprintfMachs (const char**)NULL
4905 * content selection pattern - do fix if pattern found
4907 tSCC zX11_SprintfSelect0[] =
4908 "^extern char \\*\tsprintf\\(\\);$";
4910 #define X11_SPRINTF_TEST_CT 1
4911 static tTestDesc aX11_SprintfTests[] = {
4912 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
4915 * Fix Command Arguments for X11_Sprintf
4917 static const char* apzX11_SprintfPatch[] = {
4919 "#ifndef __STDC__\n\
4921 #endif /* !defined __STDC__ */",
4925 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4929 #define REGEX_COUNT 136
4930 #define MACH_LIST_SIZE_LIMIT 279
4931 #define FIX_COUNT 125
4934 * Enumerate the fixes
4937 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
4938 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
4939 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
4940 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
4941 AAB_SUN_MEMCPY_FIXIDX,
4942 AAB_SVR4_REPLACE_BYTEORDER_FIXIDX,
4944 AIX_SYSMACHINE_FIXIDX,
4946 AIX_VOLATILE_FIXIDX,
4947 ALPHA___ASSERT_FIXIDX,
4948 ALPHA_ASSERT_FIXIDX,
4949 ALPHA_GETOPT_FIXIDX,
4950 ALPHA_PARENS_FIXIDX,
4952 AVOID_BOOL_DEFINE_FIXIDX,
4953 AVOID_BOOL_TYPE_FIXIDX,
4954 AVOID_WCHAR_T_TYPE_FIXIDX,
4956 BAD_STRUCT_TERM_FIXIDX,
4958 BROKEN_ASSERT_STDIO_FIXIDX,
4959 BROKEN_ASSERT_STDLIB_FIXIDX,
4961 CTRL_QUOTES_DEF_FIXIDX,
4962 CTRL_QUOTES_USE_FIXIDX,
4964 DEC_INTERN_ASM_FIXIDX,
4965 DJGPP_WCHAR_H_FIXIDX,
4967 FREEBSD_GCC3_BREAKAGE_FIXIDX,
4971 HPUX10_CPP_POW_INLINE_FIXIDX,
4972 HPUX11_CPP_POW_INLINE_FIXIDX,
4974 HPUX11_FABSF_FIXIDX,
4975 HPUX11_SIZE_T_FIXIDX,
4976 HPUX11_UINT32_C_FIXIDX,
4977 HPUX11_VSNPRINTF_FIXIDX,
4978 HPUX8_BOGUS_INLINES_FIXIDX,
4980 HPUX_SYSTIME_FIXIDX,
4981 INT_ABORT_FREE_AND_EXIT_FIXIDX,
4982 IO_QUOTES_DEF_FIXIDX,
4983 IO_QUOTES_USE_FIXIDX,
4984 IP_MISSING_SEMI_FIXIDX,
4985 IRIX_ASM_APOSTROPHE_FIXIDX,
4986 IRIX_LIMITS_CONST_FIXIDX,
4987 IRIX_STDIO_VA_LIST_FIXIDX,
4989 ISC_OMITS_WITH_STDC_FIXIDX,
4990 KANDR_CONCAT_FIXIDX,
4991 LIBC1_G_VA_LIST_FIXIDX,
4992 LIBC1_IFDEFD_MEMX_FIXIDX,
4993 LIMITS_IFNDEFS_FIXIDX,
4994 LYNX_VOID_INT_FIXIDX,
4995 LYNXOS_FCNTL_PROTO_FIXIDX,
4996 MACHINE_ANSI_H_VA_LIST_FIXIDX,
4997 MACHINE_NAME_FIXIDX,
4998 MATH_EXCEPTION_FIXIDX,
4999 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
5000 MATH_HUGE_VAL_IFNDEF_FIXIDX,
5001 NESTED_AUTH_DES_FIXIDX,
5002 NESTED_MOTOROLA_FIXIDX,
5003 NESTED_SYS_LIMITS_FIXIDX,
5004 NEXT_MATH_PREFIX_FIXIDX,
5005 NEXT_TEMPLATE_FIXIDX,
5006 NEXT_VOLITILE_FIXIDX,
5007 NEXT_WAIT_UNION_FIXIDX,
5008 NODEENT_SYNTAX_FIXIDX,
5009 OSF_NAMESPACE_A_FIXIDX,
5010 OSF_NAMESPACE_C_FIXIDX,
5011 PTHREAD_PAGE_SIZE_FIXIDX,
5012 READ_RET_TYPE_FIXIDX,
5013 RS6000_DOUBLE_FIXIDX,
5014 RS6000_FCHMOD_FIXIDX,
5015 RS6000_PARAM_FIXIDX,
5016 SCO_STATIC_FUNC_FIXIDX,
5018 SOLARIS_MUTEX_INIT_FIXIDX,
5019 SOLARIS_STDIO_TAG_FIXIDX,
5020 SOLARIS_WIDEC_FIXIDX,
5022 STDIO_STDARG_H_FIXIDX,
5023 STDIO_VA_LIST_FIXIDX,
5024 STRICT_ANSI_NOT_FIXIDX,
5025 STRICT_ANSI_NOT_CTD_FIXIDX,
5026 STRICT_ANSI_ONLY_FIXIDX,
5028 STRUCT_SOCKADDR_FIXIDX,
5029 SUN_AUTH_PROTO_FIXIDX,
5030 SUN_BOGUS_IFDEF_FIXIDX,
5031 SUN_CATMACRO_FIXIDX,
5033 SUN_RUSERS_SEMI_FIXIDX,
5035 SUNOS_MATHERR_DECL_FIXIDX,
5036 SUNOS_STRLEN_FIXIDX,
5040 SYSV68_STRING_FIXIDX,
5041 SYSZ_STDLIB_FOR_SUN_FIXIDX,
5042 THREAD_KEYWORD_FIXIDX,
5043 TINFO_CPLUSPLUS_FIXIDX,
5044 ULTRIX_CONST_FIXIDX,
5045 ULTRIX_CONST2_FIXIDX,
5046 UNDEFINE_NULL_FIXIDX,
5047 UNICOSMK_RESTRICT_FIXIDX,
5048 UW7_BYTEORDER_FIX_FIXIDX,
5049 VA_I960_MACRO_FIXIDX,
5051 VXWORKS_GCC_PROBLEM_FIXIDX,
5052 VXWORKS_NEEDS_VXTYPES_FIXIDX,
5053 VXWORKS_NEEDS_VXWORKS_FIXIDX,
5054 VXWORKS_TIME_FIXIDX,
5055 WINDISS_MATH1_FIXIDX,
5056 WINDISS_MATH2_FIXIDX,
5057 WINDISS_VALIST_FIXIDX,
5059 X11_CLASS_USAGE_FIXIDX,
5064 tFixDesc fixDescList[ FIX_COUNT ] = {
5065 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
5066 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
5067 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5068 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
5070 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
5071 apzAab_Fd_Zero_Gnu_Types_HMachs,
5072 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5073 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
5075 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
5076 apzAab_Fd_Zero_Selectbits_HMachs,
5077 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5078 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
5080 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
5081 apzAab_Solaris_Sys_Varargs_HMachs,
5082 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5083 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
5085 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
5086 apzAab_Sun_MemcpyMachs,
5087 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5088 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
5090 { zAab_Svr4_Replace_ByteorderName, zAab_Svr4_Replace_ByteorderList,
5091 apzAab_Svr4_Replace_ByteorderMachs,
5092 AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5093 aAab_Svr4_Replace_ByteorderTests, apzAab_Svr4_Replace_ByteorderPatch, 0 },
5095 { zAix_PthreadName, zAix_PthreadList,
5096 apzAix_PthreadMachs,
5097 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5098 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
5100 { zAix_SysmachineName, zAix_SysmachineList,
5101 apzAix_SysmachineMachs,
5102 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5103 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
5105 { zAix_SyswaitName, zAix_SyswaitList,
5106 apzAix_SyswaitMachs,
5107 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5108 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
5110 { zAix_VolatileName, zAix_VolatileList,
5111 apzAix_VolatileMachs,
5112 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5113 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
5115 { zAlpha___AssertName, zAlpha___AssertList,
5116 apzAlpha___AssertMachs,
5117 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5118 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
5120 { zAlpha_AssertName, zAlpha_AssertList,
5121 apzAlpha_AssertMachs,
5122 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5123 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
5125 { zAlpha_GetoptName, zAlpha_GetoptList,
5126 apzAlpha_GetoptMachs,
5127 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5128 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
5130 { zAlpha_ParensName, zAlpha_ParensList,
5131 apzAlpha_ParensMachs,
5132 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5133 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
5135 { zAlpha_SbrkName, zAlpha_SbrkList,
5137 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5138 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
5140 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
5141 apzAvoid_Bool_DefineMachs,
5142 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5143 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
5145 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
5146 apzAvoid_Bool_TypeMachs,
5147 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5148 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
5150 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
5151 apzAvoid_Wchar_T_TypeMachs,
5152 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5153 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
5155 { zBad_LvalName, zBad_LvalList,
5157 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
5158 aBad_LvalTests, apzBad_LvalPatch, 0 },
5160 { zBad_Struct_TermName, zBad_Struct_TermList,
5161 apzBad_Struct_TermMachs,
5162 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5163 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
5165 { zBadquoteName, zBadquoteList,
5167 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5168 aBadquoteTests, apzBadquotePatch, 0 },
5170 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
5171 apzBroken_Assert_StdioMachs,
5172 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5173 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
5175 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
5176 apzBroken_Assert_StdlibMachs,
5177 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5178 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
5180 { zBroken_CabsName, zBroken_CabsList,
5181 apzBroken_CabsMachs,
5182 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5183 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
5185 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
5186 apzCtrl_Quotes_DefMachs,
5187 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5188 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
5190 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
5191 apzCtrl_Quotes_UseMachs,
5192 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5193 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
5195 { zCxx_UnreadyName, zCxx_UnreadyList,
5196 apzCxx_UnreadyMachs,
5197 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5198 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
5200 { zDec_Intern_AsmName, zDec_Intern_AsmList,
5201 apzDec_Intern_AsmMachs,
5202 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
5203 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
5205 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
5206 apzDjgpp_Wchar_HMachs,
5207 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5208 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
5210 { zEcd_CursorName, zEcd_CursorList,
5212 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5213 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
5215 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
5216 apzFreebsd_Gcc3_BreakageMachs,
5217 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5218 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
5220 { zGnu_TypesName, zGnu_TypesList,
5222 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5223 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
5225 { zHp_InlineName, zHp_InlineList,
5227 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5228 aHp_InlineTests, apzHp_InlinePatch, 0 },
5230 { zHp_SysfileName, zHp_SysfileList,
5232 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5233 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
5235 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
5236 apzHpux10_Cpp_Pow_InlineMachs,
5237 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5238 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
5240 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
5241 apzHpux11_Cpp_Pow_InlineMachs,
5242 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5243 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
5245 { zHpux11_AbsName, zHpux11_AbsList,
5247 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5248 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
5250 { zHpux11_FabsfName, zHpux11_FabsfList,
5251 apzHpux11_FabsfMachs,
5252 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5253 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
5255 { zHpux11_Size_TName, zHpux11_Size_TList,
5256 apzHpux11_Size_TMachs,
5257 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5258 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
5260 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
5261 apzHpux11_Uint32_CMachs,
5262 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5263 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
5265 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
5266 apzHpux11_VsnprintfMachs,
5267 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5268 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
5270 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
5271 apzHpux8_Bogus_InlinesMachs,
5272 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
5273 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
5275 { zHpux_MaxintName, zHpux_MaxintList,
5276 apzHpux_MaxintMachs,
5277 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5278 aHpux_MaxintTests, apzHpux_MaxintPatch, 0 },
5280 { zHpux_SystimeName, zHpux_SystimeList,
5281 apzHpux_SystimeMachs,
5282 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5283 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
5285 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
5286 apzInt_Abort_Free_And_ExitMachs,
5287 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5288 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
5290 { zIo_Quotes_DefName, zIo_Quotes_DefList,
5291 apzIo_Quotes_DefMachs,
5292 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5293 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
5295 { zIo_Quotes_UseName, zIo_Quotes_UseList,
5296 apzIo_Quotes_UseMachs,
5297 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5298 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
5300 { zIp_Missing_SemiName, zIp_Missing_SemiList,
5301 apzIp_Missing_SemiMachs,
5302 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
5303 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
5305 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
5306 apzIrix_Asm_ApostropheMachs,
5307 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5308 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
5310 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
5311 apzIrix_Limits_ConstMachs,
5312 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5313 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
5315 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
5316 apzIrix_Stdio_Va_ListMachs,
5317 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5318 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
5320 { zIsc_FmodName, zIsc_FmodList,
5322 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5323 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
5325 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
5326 apzIsc_Omits_With_StdcMachs,
5327 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5328 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
5330 { zKandr_ConcatName, zKandr_ConcatList,
5331 apzKandr_ConcatMachs,
5332 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5333 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
5335 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
5336 apzLibc1_G_Va_ListMachs,
5337 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5338 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
5340 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
5341 apzLibc1_Ifdefd_MemxMachs,
5342 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5343 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
5345 { zLimits_IfndefsName, zLimits_IfndefsList,
5346 apzLimits_IfndefsMachs,
5347 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5348 aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 },
5350 { zLynx_Void_IntName, zLynx_Void_IntList,
5351 apzLynx_Void_IntMachs,
5352 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5353 aLynx_Void_IntTests, apzLynx_Void_IntPatch, 0 },
5355 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
5356 apzLynxos_Fcntl_ProtoMachs,
5357 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5358 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch, 0 },
5360 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
5361 apzMachine_Ansi_H_Va_ListMachs,
5362 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5363 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
5365 { zMachine_NameName, zMachine_NameList,
5366 apzMachine_NameMachs,
5367 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5368 aMachine_NameTests, apzMachine_NamePatch, 0 },
5370 { zMath_ExceptionName, zMath_ExceptionList,
5371 apzMath_ExceptionMachs,
5372 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5373 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
5375 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
5376 apzMath_Huge_Val_From_Dbl_MaxMachs,
5377 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
5378 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
5380 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
5381 apzMath_Huge_Val_IfndefMachs,
5382 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5383 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch, 0 },
5385 { zNested_Auth_DesName, zNested_Auth_DesList,
5386 apzNested_Auth_DesMachs,
5387 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5388 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
5390 { zNested_MotorolaName, zNested_MotorolaList,
5391 apzNested_MotorolaMachs,
5392 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
5393 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
5395 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
5396 apzNested_Sys_LimitsMachs,
5397 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
5398 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
5400 { zNext_Math_PrefixName, zNext_Math_PrefixList,
5401 apzNext_Math_PrefixMachs,
5402 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5403 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
5405 { zNext_TemplateName, zNext_TemplateList,
5406 apzNext_TemplateMachs,
5407 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5408 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
5410 { zNext_VolitileName, zNext_VolitileList,
5411 apzNext_VolitileMachs,
5412 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5413 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
5415 { zNext_Wait_UnionName, zNext_Wait_UnionList,
5416 apzNext_Wait_UnionMachs,
5417 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5418 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
5420 { zNodeent_SyntaxName, zNodeent_SyntaxList,
5421 apzNodeent_SyntaxMachs,
5422 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5423 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
5425 { zOsf_Namespace_AName, zOsf_Namespace_AList,
5426 apzOsf_Namespace_AMachs,
5427 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5428 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
5430 { zOsf_Namespace_CName, zOsf_Namespace_CList,
5431 apzOsf_Namespace_CMachs,
5432 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5433 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
5435 { zPthread_Page_SizeName, zPthread_Page_SizeList,
5436 apzPthread_Page_SizeMachs,
5437 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5438 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
5440 { zRead_Ret_TypeName, zRead_Ret_TypeList,
5441 apzRead_Ret_TypeMachs,
5442 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5443 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
5445 { zRs6000_DoubleName, zRs6000_DoubleList,
5446 apzRs6000_DoubleMachs,
5447 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5448 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
5450 { zRs6000_FchmodName, zRs6000_FchmodList,
5451 apzRs6000_FchmodMachs,
5452 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5453 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
5455 { zRs6000_ParamName, zRs6000_ParamList,
5456 apzRs6000_ParamMachs,
5457 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5458 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
5460 { zSco_Static_FuncName, zSco_Static_FuncList,
5461 apzSco_Static_FuncMachs,
5462 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
5463 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
5465 { zSco_UtimeName, zSco_UtimeList,
5467 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5468 aSco_UtimeTests, apzSco_UtimePatch, 0 },
5470 { zSolaris_Mutex_InitName, zSolaris_Mutex_InitList,
5471 apzSolaris_Mutex_InitMachs,
5472 SOLARIS_MUTEX_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5473 aSolaris_Mutex_InitTests, apzSolaris_Mutex_InitPatch, 0 },
5475 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
5476 apzSolaris_Stdio_TagMachs,
5477 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
5478 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
5480 { zSolaris_WidecName, zSolaris_WidecList,
5481 apzSolaris_WidecMachs,
5482 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5483 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
5485 { zStatsswtchName, zStatsswtchList,
5487 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5488 aStatsswtchTests, apzStatsswtchPatch, 0 },
5490 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
5491 apzStdio_Stdarg_HMachs,
5492 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5493 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
5495 { zStdio_Va_ListName, zStdio_Va_ListList,
5496 apzStdio_Va_ListMachs,
5497 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
5498 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
5500 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
5501 apzStrict_Ansi_NotMachs,
5502 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5503 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
5505 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
5506 apzStrict_Ansi_Not_CtdMachs,
5507 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5508 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
5510 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
5511 apzStrict_Ansi_OnlyMachs,
5512 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5513 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
5515 { zStruct_FileName, zStruct_FileList,
5516 apzStruct_FileMachs,
5517 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5518 aStruct_FileTests, apzStruct_FilePatch, 0 },
5520 { zStruct_SockaddrName, zStruct_SockaddrList,
5521 apzStruct_SockaddrMachs,
5522 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5523 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
5525 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
5526 apzSun_Auth_ProtoMachs,
5527 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5528 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
5530 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
5531 apzSun_Bogus_IfdefMachs,
5532 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5533 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
5535 { zSun_CatmacroName, zSun_CatmacroList,
5536 apzSun_CatmacroMachs,
5537 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5538 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
5540 { zSun_MallocName, zSun_MallocList,
5542 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
5543 aSun_MallocTests, apzSun_MallocPatch, 0 },
5545 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
5546 apzSun_Rusers_SemiMachs,
5547 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
5548 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
5550 { zSun_SignalName, zSun_SignalList,
5552 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5553 aSun_SignalTests, apzSun_SignalPatch, 0 },
5555 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
5556 apzSunos_Matherr_DeclMachs,
5557 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5558 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch, 0 },
5560 { zSunos_StrlenName, zSunos_StrlenList,
5561 apzSunos_StrlenMachs,
5562 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5563 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
5565 { zSvr4__PName, zSvr4__PList,
5567 SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5568 aSvr4__PTests, apzSvr4__PPatch, 0 },
5570 { zSvr4_GetcwdName, zSvr4_GetcwdList,
5571 apzSvr4_GetcwdMachs,
5572 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5573 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
5575 { zSvr4_ProfilName, zSvr4_ProfilList,
5576 apzSvr4_ProfilMachs,
5577 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5578 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
5580 { zSysv68_StringName, zSysv68_StringList,
5581 apzSysv68_StringMachs,
5582 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
5583 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
5585 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
5586 apzSysz_Stdlib_For_SunMachs,
5587 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5588 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
5590 { zThread_KeywordName, zThread_KeywordList,
5591 apzThread_KeywordMachs,
5592 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5593 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
5595 { zTinfo_CplusplusName, zTinfo_CplusplusList,
5596 apzTinfo_CplusplusMachs,
5597 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5598 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
5600 { zUltrix_ConstName, zUltrix_ConstList,
5601 apzUltrix_ConstMachs,
5602 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5603 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
5605 { zUltrix_Const2Name, zUltrix_Const2List,
5606 apzUltrix_Const2Machs,
5607 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5608 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
5610 { zUndefine_NullName, zUndefine_NullList,
5611 apzUndefine_NullMachs,
5612 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5613 aUndefine_NullTests, apzUndefine_NullPatch, 0 },
5615 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
5616 apzUnicosmk_RestrictMachs,
5617 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5618 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
5620 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
5621 apzUw7_Byteorder_FixMachs,
5622 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5623 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
5625 { zVa_I960_MacroName, zVa_I960_MacroList,
5626 apzVa_I960_MacroMachs,
5627 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5628 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
5630 { zVoid_NullName, zVoid_NullList,
5632 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5633 aVoid_NullTests, apzVoid_NullPatch, 0 },
5635 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
5636 apzVxworks_Gcc_ProblemMachs,
5637 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
5638 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
5640 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
5641 apzVxworks_Needs_VxtypesMachs,
5642 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5643 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
5645 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
5646 apzVxworks_Needs_VxworksMachs,
5647 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
5648 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
5650 { zVxworks_TimeName, zVxworks_TimeList,
5651 apzVxworks_TimeMachs,
5652 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5653 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
5655 { zWindiss_Math1Name, zWindiss_Math1List,
5656 apzWindiss_Math1Machs,
5657 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
5658 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
5660 { zWindiss_Math2Name, zWindiss_Math2List,
5661 apzWindiss_Math2Machs,
5662 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
5663 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
5665 { zWindiss_ValistName, zWindiss_ValistList,
5666 apzWindiss_ValistMachs,
5667 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
5668 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
5670 { zX11_ClassName, zX11_ClassList,
5672 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5673 aX11_ClassTests, apzX11_ClassPatch, 0 },
5675 { zX11_Class_UsageName, zX11_Class_UsageList,
5676 apzX11_Class_UsageMachs,
5677 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5678 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
5680 { zX11_NewName, zX11_NewList,
5682 X11_NEW_TEST_CT, FD_MACH_ONLY,
5683 aX11_NewTests, apzX11_NewPatch, 0 },
5685 { zX11_SprintfName, zX11_SprintfList,
5686 apzX11_SprintfMachs,
5687 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5688 aX11_SprintfTests, apzX11_SprintfPatch, 0 }