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 149 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 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\\\n\
121 \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
122 \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\\\n\
123 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\\\n\
126 #define _TYPES_H_WRAPPER\n\
127 #endif /* _TYPES_H_WRAPPER */",
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 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
161 && __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\
171 : \"memory\"); \\\\\n\
174 #define _SELECTBITS_H_WRAPPER\n\
175 #endif /* _SELECTBITS_H_WRAPPER */",
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__ */\n\
260 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
261 * stdarg.h or varargs.h files as appropriate.\n\
265 hackname = AAB_svr4_no_varargs;\n\
266 files = sys/varargs.h;\n\
267 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
268 \"#ifndef _SYS_VARARGS_H\\n\"\n\
269 \"#define _SYS_VARARGS_H\\n\\n\"\n\
271 \"#ifdef __STDC__\\n\"\n\
272 \"#include <stdarg.h>\\n\"\n\
274 \"#include <varargs.h>\\n\"\n\
277 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
281 * Completely replace <sys/byteorder.h>; with a file that implements gcc's\n\
282 * optimized byteswapping. Restricted to \"SVR4\" machines until either\n\
283 * it is shown to be safe to replace this file always, or we get bolder ;-)\n\
286 hackname = AAB_svr4_replace_byteorder;\n\
288 mach = \"*-*-sysv4*\";\n\
289 mach = \"i[34567]86-*-sysv5*\";\n\
290 mach = \"i[34567]86-*-udk*\";\n\
291 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
292 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
293 mach = \"sparc-*-solaris2.[0-4]\";\n\
295 files = sys/byteorder.h;\n\
296 replace = <<- _EndOfHeader_\n\
297 #ifndef _SYS_BYTEORDER_H\n\
298 #define _SYS_BYTEORDER_H\n\n\
299 /* Functions to convert `short' and `long' quantities from host byte order\n\
300 to (internet) network byte order (i.e. big-endian).\n\n\
301 Written by Ron Guilmette (rfg@ncd.com).\n\n\
302 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
303 For big-endian machines these functions are essentially no-ops.\n\n\
304 For little-endian machines, we define the functions using specialized\n\
305 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
306 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
307 #error You lose! This file is only useful with GNU compilers.\n\
309 #ifndef __BYTE_ORDER__\n\
310 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
311 double underscores added at the front and back. */\n\
312 #define __LITTLE_ENDIAN__ 1234\n\
313 #define __BIG_ENDIAN__ 4321\n\
314 #define __PDP_ENDIAN__ 3412\n\
317 static __inline__ unsigned long htonl (unsigned long);\n\
318 static __inline__ unsigned short htons (unsigned int);\n\
319 static __inline__ unsigned long ntohl (unsigned long);\n\
320 static __inline__ unsigned short ntohs (unsigned int);\n\
321 #endif /* defined (__STDC__) */\n\n\
322 #if defined (__i386__)\n\n\
323 #ifndef __BYTE_ORDER__\n\
324 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
326 /* Convert a host long to a network long. */\n\n\
327 /* We must use a new-style function definition, so that this will also\n\
328 be valid for C++. */\n\
329 static __inline__ unsigned long\n\
330 htonl (unsigned long __arg)\n\
332 register unsigned long __result;\n\n\
333 __asm__ (\"xchg%B0 %b0,%h0\n\
335 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
338 /* Convert a host short to a network short. */\n\n\
339 static __inline__ unsigned short\n\
340 htons (unsigned int __arg)\n\
342 register unsigned short __result;\n\n\
343 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
346 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
347 #ifndef __BYTE_ORDER__\n\
348 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
350 /* For other little-endian machines, using C code is just as efficient as\n\
351 using assembly code. */\n\n\
352 /* Convert a host long to a network long. */\n\n\
353 static __inline__ unsigned long\n\
354 htonl (unsigned long __arg)\n\
356 register unsigned long __result;\n\n\
357 __result = (__arg >> 24) & 0x000000ff;\n\
358 __result |= (__arg >> 8) & 0x0000ff00;\n\
359 __result |= (__arg << 8) & 0x00ff0000;\n\
360 __result |= (__arg << 24) & 0xff000000;\n\
363 /* Convert a host short to a network short. */\n\n\
364 static __inline__ unsigned short\n\
365 htons (unsigned int __arg)\n\
367 register unsigned short __result;\n\n\
368 __result = (__arg << 8) & 0xff00;\n\
369 __result |= (__arg >> 8) & 0x00ff;\n\
372 #else /* must be a big-endian machine */\n\n\
373 #ifndef __BYTE_ORDER__\n\
374 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
376 /* Convert a host long to a network long. */\n\n\
377 static __inline__ unsigned long\n\
378 htonl (unsigned long __arg)\n\
382 /* Convert a host short to a network short. */\n\n\
383 static __inline__ unsigned short\n\
384 htons (unsigned int __arg)\n\
388 #endif /* big-endian */\n\n\
389 /* Convert a network long to a host long. */\n\n\
390 static __inline__ unsigned long\n\
391 ntohl (unsigned long __arg)\n\
393 return htonl (__arg);\n\
395 /* Convert a network short to a host short. */\n\n\
396 static __inline__ unsigned short\n\
397 ntohs (unsigned int __arg)\n\
399 return htons (__arg);\n\
404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
406 * Description of Aab_Ultrix_Ansi_Compat fix
408 tSCC zAab_Ultrix_Ansi_CompatName[] =
409 "AAB_ultrix_ansi_compat";
412 * File name selection pattern
414 tSCC zAab_Ultrix_Ansi_CompatList[] =
417 * Machine/OS name selection pattern
419 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
422 * content selection pattern - do fix if pattern found
424 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
427 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
428 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
429 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
432 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
434 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
435 "/* This file intentionally left blank. */\n",
438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
440 * Description of Aab_Ultrix_Limits fix
442 tSCC zAab_Ultrix_LimitsName[] =
446 * File name selection pattern
448 tSCC zAab_Ultrix_LimitsList[] =
451 * Machine/OS name selection pattern
453 tSCC* apzAab_Ultrix_LimitsMachs[] = {
456 #define AAB_ULTRIX_LIMITS_TEST_CT 0
457 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
460 * Fix Command Arguments for Aab_Ultrix_Limits
462 static const char* apzAab_Ultrix_LimitsPatch[] = {
463 "#ifndef _LIMITS_INCLUDED\n\
464 #define _LIMITS_INCLUDED\n\
465 #include <sys/limits.h>\n\
466 #endif /* _LIMITS_INCLUDED */",
469 /* * * * * * * * * * * * * * * * * * * * * * * * * *
471 * Description of Aab_Ultrix_Memory fix
473 tSCC zAab_Ultrix_MemoryName[] =
477 * File name selection pattern
479 tSCC zAab_Ultrix_MemoryList[] =
482 * Machine/OS name selection pattern
484 tSCC* apzAab_Ultrix_MemoryMachs[] = {
487 #define AAB_ULTRIX_MEMORY_TEST_CT 0
488 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
491 * Fix Command Arguments for Aab_Ultrix_Memory
493 static const char* apzAab_Ultrix_MemoryPatch[] = {
494 "#ifndef _MEMORY_INCLUDED\n\
495 #define _MEMORY_INCLUDED\n\
496 #include <strings.h>\n\
497 #endif /* _MEMORY_INCLUDED */",
500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
502 * Description of Aab_Ultrix_String fix
504 tSCC zAab_Ultrix_StringName[] =
508 * File name selection pattern
510 tSCC zAab_Ultrix_StringList[] =
513 * Machine/OS name selection pattern
515 tSCC* apzAab_Ultrix_StringMachs[] = {
518 #define AAB_ULTRIX_STRING_TEST_CT 0
519 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
522 * Fix Command Arguments for Aab_Ultrix_String
524 static const char* apzAab_Ultrix_StringPatch[] = {
525 "#ifndef _STRING_INCLUDED\n\
526 #define _STRING_INCLUDED\n\
527 #include <strings.h>\n\
528 #endif /* _STRING_INCLUDED */",
531 /* * * * * * * * * * * * * * * * * * * * * * * * * *
533 * Description of Aix_Pthread fix
535 tSCC zAix_PthreadName[] =
539 * File name selection pattern
541 tSCC zAix_PthreadList[] =
544 * Machine/OS name selection pattern
546 #define apzAix_PthreadMachs (const char**)NULL
549 * content selection pattern - do fix if pattern found
551 tSCC zAix_PthreadSelect0[] =
552 "(#define [A-Za-z_0-9]+)(\\\\\n\
556 #define AIX_PTHREAD_TEST_CT 1
557 static tTestDesc aAix_PthreadTests[] = {
558 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
561 * Fix Command Arguments for Aix_Pthread
563 static const char* apzAix_PthreadPatch[] = {
568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
570 * Description of Aix_Sysmachine fix
572 tSCC zAix_SysmachineName[] =
576 * File name selection pattern
578 tSCC zAix_SysmachineList[] =
581 * Machine/OS name selection pattern
583 #define apzAix_SysmachineMachs (const char**)NULL
586 * content selection pattern - do fix if pattern found
588 tSCC zAix_SysmachineSelect0[] =
591 #define AIX_SYSMACHINE_TEST_CT 1
592 static tTestDesc aAix_SysmachineTests[] = {
593 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
596 * Fix Command Arguments for Aix_Sysmachine
598 static const char* apzAix_SysmachinePatch[] = {
603 /* * * * * * * * * * * * * * * * * * * * * * * * * *
605 * Description of Aix_Syswait fix
607 tSCC zAix_SyswaitName[] =
611 * File name selection pattern
613 tSCC zAix_SyswaitList[] =
616 * Machine/OS name selection pattern
618 #define apzAix_SyswaitMachs (const char**)NULL
621 * content selection pattern - do fix if pattern found
623 tSCC zAix_SyswaitSelect0[] =
624 "^extern pid_t wait3\\(\\);\n";
625 tSCC zAix_SyswaitSelect1[] =
628 #define AIX_SYSWAIT_TEST_CT 2
629 static tTestDesc aAix_SyswaitTests[] = {
630 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
631 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
634 * Fix Command Arguments for Aix_Syswait
636 static const char* apzAix_SyswaitPatch[] = {
642 /* * * * * * * * * * * * * * * * * * * * * * * * * *
644 * Description of Aix_Volatile fix
646 tSCC zAix_VolatileName[] =
650 * File name selection pattern
652 tSCC zAix_VolatileList[] =
655 * Machine/OS name selection pattern
657 #define apzAix_VolatileMachs (const char**)NULL
660 * content selection pattern - do fix if pattern found
662 tSCC zAix_VolatileSelect0[] =
663 "typedef volatile int sig_atomic_t";
665 #define AIX_VOLATILE_TEST_CT 1
666 static tTestDesc aAix_VolatileTests[] = {
667 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
670 * Fix Command Arguments for Aix_Volatile
672 static const char* apzAix_VolatilePatch[] = {
674 "typedef int sig_atomic_t",
677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
679 * Description of Alpha___Assert fix
681 tSCC zAlpha___AssertName[] =
685 * File name selection pattern
687 tSCC zAlpha___AssertList[] =
690 * Machine/OS name selection pattern
692 #define apzAlpha___AssertMachs (const char**)NULL
695 * content selection pattern - do fix if pattern found
697 tSCC zAlpha___AssertSelect0[] =
698 "__assert\\(char \\*, char \\*, int\\)";
700 #define ALPHA___ASSERT_TEST_CT 1
701 static tTestDesc aAlpha___AssertTests[] = {
702 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
705 * Fix Command Arguments for Alpha___Assert
707 static const char* apzAlpha___AssertPatch[] = {
709 "__assert(const char *, const char *, int)",
712 /* * * * * * * * * * * * * * * * * * * * * * * * * *
714 * Description of Alpha___Extern_Prefix fix
716 tSCC zAlpha___Extern_PrefixName[] =
717 "alpha___extern_prefix";
720 * File name selection pattern
722 tSCC zAlpha___Extern_PrefixList[] =
725 * Machine/OS name selection pattern
727 tSCC* apzAlpha___Extern_PrefixMachs[] = {
732 * content selection pattern - do fix if pattern found
734 tSCC zAlpha___Extern_PrefixSelect0[] =
735 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
737 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
738 static tTestDesc aAlpha___Extern_PrefixTests[] = {
739 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
742 * Fix Command Arguments for Alpha___Extern_Prefix
744 static const char* apzAlpha___Extern_PrefixPatch[] = {
746 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
749 /* * * * * * * * * * * * * * * * * * * * * * * * * *
751 * Description of Alpha_Assert fix
753 tSCC zAlpha_AssertName[] =
757 * File name selection pattern
759 tSCC zAlpha_AssertList[] =
762 * Machine/OS name selection pattern
764 #define apzAlpha_AssertMachs (const char**)NULL
767 * content selection pattern - do fix if pattern found
769 tSCC zAlpha_AssertSelect0[] =
770 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
772 #define ALPHA_ASSERT_TEST_CT 1
773 static tTestDesc aAlpha_AssertTests[] = {
774 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
777 * Fix Command Arguments for Alpha_Assert
779 static const char* apzAlpha_AssertPatch[] = {
784 /* * * * * * * * * * * * * * * * * * * * * * * * * *
786 * Description of Alpha_Getopt fix
788 tSCC zAlpha_GetoptName[] =
792 * File name selection pattern
794 tSCC zAlpha_GetoptList[] =
795 "|stdio.h|stdlib.h|";
797 * Machine/OS name selection pattern
799 #define apzAlpha_GetoptMachs (const char**)NULL
802 * content selection pattern - do fix if pattern found
804 tSCC zAlpha_GetoptSelect0[] =
805 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
807 #define ALPHA_GETOPT_TEST_CT 1
808 static tTestDesc aAlpha_GetoptTests[] = {
809 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
812 * Fix Command Arguments for Alpha_Getopt
814 static const char* apzAlpha_GetoptPatch[] = {
816 "getopt(int, char *const[], const char *)",
819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
821 * Description of Alpha_Parens fix
823 tSCC zAlpha_ParensName[] =
827 * File name selection pattern
829 tSCC zAlpha_ParensList[] =
832 * Machine/OS name selection pattern
834 #define apzAlpha_ParensMachs (const char**)NULL
837 * content selection pattern - do fix if pattern found
839 tSCC zAlpha_ParensSelect0[] =
840 "#ifndef\\(__mips64\\)";
842 #define ALPHA_PARENS_TEST_CT 1
843 static tTestDesc aAlpha_ParensTests[] = {
844 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
847 * Fix Command Arguments for Alpha_Parens
849 static const char* apzAlpha_ParensPatch[] = {
854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
856 * Description of Alpha_Sbrk fix
858 tSCC zAlpha_SbrkName[] =
862 * File name selection pattern
864 tSCC zAlpha_SbrkList[] =
867 * Machine/OS name selection pattern
869 #define apzAlpha_SbrkMachs (const char**)NULL
872 * content selection pattern - do fix if pattern found
874 tSCC zAlpha_SbrkSelect0[] =
875 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
877 #define ALPHA_SBRK_TEST_CT 1
878 static tTestDesc aAlpha_SbrkTests[] = {
879 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
882 * Fix Command Arguments for Alpha_Sbrk
884 static const char* apzAlpha_SbrkPatch[] = {
889 /* * * * * * * * * * * * * * * * * * * * * * * * * *
891 * Description of Avoid_Bool_Define fix
893 tSCC zAvoid_Bool_DefineName[] =
897 * File name selection pattern
899 tSCC zAvoid_Bool_DefineList[] =
900 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
902 * Machine/OS name selection pattern
904 #define apzAvoid_Bool_DefineMachs (const char**)NULL
907 * content selection pattern - do fix if pattern found
909 tSCC zAvoid_Bool_DefineSelect0[] =
910 "#[ \t]*define[ \t]+bool[ \t]";
913 * content bypass pattern - skip fix if pattern found
915 tSCC zAvoid_Bool_DefineBypass0[] =
916 "we must use the C\\+\\+ compiler's type";
918 #define AVOID_BOOL_DEFINE_TEST_CT 2
919 static tTestDesc aAvoid_Bool_DefineTests[] = {
920 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
921 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
924 * Fix Command Arguments for Avoid_Bool_Define
926 static const char* apzAvoid_Bool_DefinePatch[] = {
928 "#ifndef __cplusplus\n\
931 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
934 /* * * * * * * * * * * * * * * * * * * * * * * * * *
936 * Description of Avoid_Bool_Type fix
938 tSCC zAvoid_Bool_TypeName[] =
942 * File name selection pattern
944 tSCC zAvoid_Bool_TypeList[] =
945 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
947 * Machine/OS name selection pattern
949 #define apzAvoid_Bool_TypeMachs (const char**)NULL
952 * content selection pattern - do fix if pattern found
954 tSCC zAvoid_Bool_TypeSelect0[] =
955 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
958 * content bypass pattern - skip fix if pattern found
960 tSCC zAvoid_Bool_TypeBypass0[] =
961 "we must use the C\\+\\+ compiler's type";
963 #define AVOID_BOOL_TYPE_TEST_CT 2
964 static tTestDesc aAvoid_Bool_TypeTests[] = {
965 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
966 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
969 * Fix Command Arguments for Avoid_Bool_Type
971 static const char* apzAvoid_Bool_TypePatch[] = {
973 "#ifndef __cplusplus\n\
978 /* * * * * * * * * * * * * * * * * * * * * * * * * *
980 * Description of Avoid_Wchar_T_Type fix
982 tSCC zAvoid_Wchar_T_TypeName[] =
983 "avoid_wchar_t_type";
986 * File name selection pattern
988 #define zAvoid_Wchar_T_TypeList (char*)NULL
990 * Machine/OS name selection pattern
992 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
995 * content selection pattern - do fix if pattern found
997 tSCC zAvoid_Wchar_T_TypeSelect0[] =
998 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1000 #define AVOID_WCHAR_T_TYPE_TEST_CT 1
1001 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1002 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1005 * Fix Command Arguments for Avoid_Wchar_T_Type
1007 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1009 "#ifndef __cplusplus\n\
1014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1016 * Description of Bad_Lval fix
1018 tSCC zBad_LvalName[] =
1022 * File name selection pattern
1024 tSCC zBad_LvalList[] =
1025 "|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|";
1027 * Machine/OS name selection pattern
1029 #define apzBad_LvalMachs (const char**)NULL
1032 * content selection pattern - do fix if pattern found
1034 tSCC zBad_LvalSelect0[] =
1035 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1037 #define BAD_LVAL_TEST_CT 1
1038 static tTestDesc aBad_LvalTests[] = {
1039 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
1042 * Fix Command Arguments for Bad_Lval
1044 static const char* apzBad_LvalPatch[] = { "sed",
1045 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1050 * Description of Bad_Struct_Term fix
1052 tSCC zBad_Struct_TermName[] =
1056 * File name selection pattern
1058 tSCC zBad_Struct_TermList[] =
1061 * Machine/OS name selection pattern
1063 #define apzBad_Struct_TermMachs (const char**)NULL
1066 * content selection pattern - do fix if pattern found
1068 tSCC zBad_Struct_TermSelect0[] =
1069 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1071 #define BAD_STRUCT_TERM_TEST_CT 1
1072 static tTestDesc aBad_Struct_TermTests[] = {
1073 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1076 * Fix Command Arguments for Bad_Struct_Term
1078 static const char* apzBad_Struct_TermPatch[] = {
1083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1085 * Description of Badquote fix
1087 tSCC zBadquoteName[] =
1091 * File name selection pattern
1093 tSCC zBadquoteList[] =
1094 "|sundev/vuid_event.h|";
1096 * Machine/OS name selection pattern
1098 #define apzBadquoteMachs (const char**)NULL
1101 * content selection pattern - do fix if pattern found
1103 tSCC zBadquoteSelect0[] =
1106 #define BADQUOTE_TEST_CT 1
1107 static tTestDesc aBadquoteTests[] = {
1108 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1111 * Fix Command Arguments for Badquote
1113 static const char* apzBadquotePatch[] = {
1118 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1120 * Description of Bsd_Stdio_Attrs_Conflict fix
1122 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1123 "bsd_stdio_attrs_conflict";
1126 * File name selection pattern
1128 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1131 * Machine/OS name selection pattern
1133 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1136 (const char*)NULL };
1139 * content selection pattern - do fix if pattern found
1141 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1142 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1144 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1145 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1146 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1149 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1151 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1153 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1154 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1155 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1160 * Description of Broken_Assert_Stdio fix
1162 tSCC zBroken_Assert_StdioName[] =
1163 "broken_assert_stdio";
1166 * File name selection pattern
1168 tSCC zBroken_Assert_StdioList[] =
1171 * Machine/OS name selection pattern
1173 #define apzBroken_Assert_StdioMachs (const char**)NULL
1176 * content selection pattern - do fix if pattern found
1178 tSCC zBroken_Assert_StdioSelect0[] =
1182 * content bypass pattern - skip fix if pattern found
1184 tSCC zBroken_Assert_StdioBypass0[] =
1185 "include.*stdio\\.h";
1187 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1188 static tTestDesc aBroken_Assert_StdioTests[] = {
1189 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1190 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1193 * Fix Command Arguments for Broken_Assert_Stdio
1195 static const char* apzBroken_Assert_StdioPatch[] = {
1197 "#include <stdio.h>\n",
1200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1202 * Description of Broken_Assert_Stdlib fix
1204 tSCC zBroken_Assert_StdlibName[] =
1205 "broken_assert_stdlib";
1208 * File name selection pattern
1210 tSCC zBroken_Assert_StdlibList[] =
1213 * Machine/OS name selection pattern
1215 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1218 * content selection pattern - do fix if pattern found
1220 tSCC zBroken_Assert_StdlibSelect0[] =
1221 "exit *\\(|abort *\\(";
1224 * content bypass pattern - skip fix if pattern found
1226 tSCC zBroken_Assert_StdlibBypass0[] =
1227 "include.*stdlib\\.h";
1229 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1230 static tTestDesc aBroken_Assert_StdlibTests[] = {
1231 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1232 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1235 * Fix Command Arguments for Broken_Assert_Stdlib
1237 static const char* apzBroken_Assert_StdlibPatch[] = {
1239 "#ifdef __cplusplus\n\
1240 #include <stdlib.h>\n\
1244 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1246 * Description of Broken_Cabs fix
1248 tSCC zBroken_CabsName[] =
1252 * File name selection pattern
1254 tSCC zBroken_CabsList[] =
1257 * Machine/OS name selection pattern
1259 #define apzBroken_CabsMachs (const char**)NULL
1262 * content selection pattern - do fix if pattern found
1264 tSCC zBroken_CabsSelect0[] =
1265 "^extern[ \\t]+double[ \\t]+cabs";
1267 #define BROKEN_CABS_TEST_CT 1
1268 static tTestDesc aBroken_CabsTests[] = {
1269 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1272 * Fix Command Arguments for Broken_Cabs
1274 static const char* apzBroken_CabsPatch[] = {
1277 "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);",
1280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1282 * Description of Ctrl_Quotes_Def fix
1284 tSCC zCtrl_Quotes_DefName[] =
1288 * File name selection pattern
1290 #define zCtrl_Quotes_DefList (char*)NULL
1292 * Machine/OS name selection pattern
1294 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1297 * content selection pattern - do fix if pattern found
1299 tSCC zCtrl_Quotes_DefSelect0[] =
1300 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1302 #define CTRL_QUOTES_DEF_TEST_CT 1
1303 static tTestDesc aCtrl_Quotes_DefTests[] = {
1304 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1307 * Fix Command Arguments for Ctrl_Quotes_Def
1309 static const char* apzCtrl_Quotes_DefPatch[] = {
1314 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1316 * Description of Ctrl_Quotes_Use fix
1318 tSCC zCtrl_Quotes_UseName[] =
1322 * File name selection pattern
1324 #define zCtrl_Quotes_UseList (char*)NULL
1326 * Machine/OS name selection pattern
1328 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1331 * content selection pattern - do fix if pattern found
1333 tSCC zCtrl_Quotes_UseSelect0[] =
1334 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1336 #define CTRL_QUOTES_USE_TEST_CT 1
1337 static tTestDesc aCtrl_Quotes_UseTests[] = {
1338 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1341 * Fix Command Arguments for Ctrl_Quotes_Use
1343 static const char* apzCtrl_Quotes_UsePatch[] = {
1348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1350 * Description of Cxx_Unready fix
1352 tSCC zCxx_UnreadyName[] =
1356 * File name selection pattern
1358 tSCC zCxx_UnreadyList[] =
1359 "|sys/mman.h|rpc/types.h|";
1361 * Machine/OS name selection pattern
1363 #define apzCxx_UnreadyMachs (const char**)NULL
1366 * content selection pattern - do fix if pattern found
1368 tSCC zCxx_UnreadySelect0[] =
1372 * content bypass pattern - skip fix if pattern found
1374 tSCC zCxx_UnreadyBypass0[] =
1375 "\"C\"|__BEGIN_DECLS";
1377 #define CXX_UNREADY_TEST_CT 2
1378 static tTestDesc aCxx_UnreadyTests[] = {
1379 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1380 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1383 * Fix Command Arguments for Cxx_Unready
1385 static const char* apzCxx_UnreadyPatch[] = {
1387 "#ifdef __cplusplus\n\
1390 "#ifdef __cplusplus\n\
1395 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1397 * Description of Dec_Intern_Asm fix
1399 tSCC zDec_Intern_AsmName[] =
1403 * File name selection pattern
1405 tSCC zDec_Intern_AsmList[] =
1408 * Machine/OS name selection pattern
1410 #define apzDec_Intern_AsmMachs (const char**)NULL
1411 #define DEC_INTERN_ASM_TEST_CT 0
1412 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1415 * Fix Command Arguments for Dec_Intern_Asm
1417 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1418 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1420 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1426 * Description of Djgpp_Wchar_H fix
1428 tSCC zDjgpp_Wchar_HName[] =
1432 * File name selection pattern
1434 #define zDjgpp_Wchar_HList (char*)NULL
1436 * Machine/OS name selection pattern
1438 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1441 * content selection pattern - do fix if pattern found
1443 tSCC zDjgpp_Wchar_HSelect0[] =
1447 * content bypass pattern - skip fix if pattern found
1449 tSCC zDjgpp_Wchar_HBypass0[] =
1452 #define DJGPP_WCHAR_H_TEST_CT 2
1453 static tTestDesc aDjgpp_Wchar_HTests[] = {
1454 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1455 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1458 * Fix Command Arguments for Djgpp_Wchar_H
1460 static const char* apzDjgpp_Wchar_HPatch[] = {
1463 #include <sys/djtypes.h>",
1464 "#include <stddef.h>",
1467 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1469 * Description of Ecd_Cursor fix
1471 tSCC zEcd_CursorName[] =
1475 * File name selection pattern
1477 tSCC zEcd_CursorList[] =
1478 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1480 * Machine/OS name selection pattern
1482 #define apzEcd_CursorMachs (const char**)NULL
1485 * content selection pattern - do fix if pattern found
1487 tSCC zEcd_CursorSelect0[] =
1490 #define ECD_CURSOR_TEST_CT 1
1491 static tTestDesc aEcd_CursorTests[] = {
1492 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1495 * Fix Command Arguments for Ecd_Cursor
1497 static const char* apzEcd_CursorPatch[] = {
1502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1504 * Description of Freebsd_Gcc3_Breakage fix
1506 tSCC zFreebsd_Gcc3_BreakageName[] =
1507 "freebsd_gcc3_breakage";
1510 * File name selection pattern
1512 tSCC zFreebsd_Gcc3_BreakageList[] =
1515 * Machine/OS name selection pattern
1517 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1519 (const char*)NULL };
1522 * content selection pattern - do fix if pattern found
1524 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1525 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1528 * content bypass pattern - skip fix if pattern found
1530 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1531 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1533 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1534 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1535 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1536 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1539 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1541 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1543 "%0 || __GNUC__ >= 3",
1546 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1548 * Description of Gnu_Types fix
1550 tSCC zGnu_TypesName[] =
1554 * File name selection pattern
1556 tSCC zGnu_TypesList[] =
1557 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1559 * Machine/OS name selection pattern
1561 #define apzGnu_TypesMachs (const char**)NULL
1564 * content selection pattern - do fix if pattern found
1566 tSCC zGnu_TypesSelect0[] =
1567 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1570 * content bypass pattern - skip fix if pattern found
1572 tSCC zGnu_TypesBypass0[] =
1573 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1575 #define GNU_TYPES_TEST_CT 2
1576 static tTestDesc aGnu_TypesTests[] = {
1577 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
1578 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
1581 * Fix Command Arguments for Gnu_Types
1583 static const char* apzGnu_TypesPatch[] = {
1587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1589 * Description of Hp_Inline fix
1591 tSCC zHp_InlineName[] =
1595 * File name selection pattern
1597 tSCC zHp_InlineList[] =
1598 "|sys/spinlock.h|machine/machparam.h|";
1600 * Machine/OS name selection pattern
1602 #define apzHp_InlineMachs (const char**)NULL
1605 * content selection pattern - do fix if pattern found
1607 tSCC zHp_InlineSelect0[] =
1608 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1610 #define HP_INLINE_TEST_CT 1
1611 static tTestDesc aHp_InlineTests[] = {
1612 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1615 * Fix Command Arguments for Hp_Inline
1617 static const char* apzHp_InlinePatch[] = {
1620 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1623 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1625 * Description of Hp_Sysfile fix
1627 tSCC zHp_SysfileName[] =
1631 * File name selection pattern
1633 tSCC zHp_SysfileList[] =
1636 * Machine/OS name selection pattern
1638 #define apzHp_SysfileMachs (const char**)NULL
1641 * content selection pattern - do fix if pattern found
1643 tSCC zHp_SysfileSelect0[] =
1646 #define HP_SYSFILE_TEST_CT 1
1647 static tTestDesc aHp_SysfileTests[] = {
1648 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1651 * Fix Command Arguments for Hp_Sysfile
1653 static const char* apzHp_SysfilePatch[] = {
1655 "(struct file *, ...)",
1659 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1661 * Description of Hpux10_Cpp_Pow_Inline fix
1663 tSCC zHpux10_Cpp_Pow_InlineName[] =
1664 "hpux10_cpp_pow_inline";
1667 * File name selection pattern
1669 tSCC zHpux10_Cpp_Pow_InlineList[] =
1670 "|fixinc-test-limits.h|math.h|";
1672 * Machine/OS name selection pattern
1674 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
1677 * content selection pattern - do fix if pattern found
1679 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
1680 "^# +ifdef +__cplusplus\n\
1682 +inline +double +pow\\(double +__d,int +__expon\\) +{\n\
1683 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
1685 +extern +\"C\" +{\n\
1689 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
1690 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
1691 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1694 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
1696 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
1701 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1703 * Description of Hpux11_Cpp_Pow_Inline fix
1705 tSCC zHpux11_Cpp_Pow_InlineName[] =
1706 "hpux11_cpp_pow_inline";
1709 * File name selection pattern
1711 tSCC zHpux11_Cpp_Pow_InlineList[] =
1714 * Machine/OS name selection pattern
1716 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
1719 * content selection pattern - do fix if pattern found
1721 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
1722 " +inline double pow\\(double d,int expon\\) {\n\
1723 +return pow\\(d, \\(double\\)expon\\);\n\
1726 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
1727 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
1728 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1731 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
1733 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
1738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1740 * Description of Hpux10_Ctype_Declarations1 fix
1742 tSCC zHpux10_Ctype_Declarations1Name[] =
1743 "hpux10_ctype_declarations1";
1746 * File name selection pattern
1748 tSCC zHpux10_Ctype_Declarations1List[] =
1751 * Machine/OS name selection pattern
1753 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
1756 * content selection pattern - do fix if pattern found
1758 tSCC zHpux10_Ctype_Declarations1Select0[] =
1759 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
1762 * content bypass pattern - skip fix if pattern found
1764 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
1765 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
1767 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
1768 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
1769 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
1770 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
1773 * Fix Command Arguments for Hpux10_Ctype_Declarations1
1775 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
1777 "#ifdef _PROTOTYPES\n\
1778 extern int __tolower(int);\n\
1779 extern int __toupper(int);\n\
1780 #else /* NOT _PROTOTYPES */\n\
1781 extern int __tolower();\n\
1782 extern int __toupper();\n\
1783 #endif /* _PROTOTYPES */\n\n\
1787 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1789 * Description of Hpux10_Ctype_Declarations2 fix
1791 tSCC zHpux10_Ctype_Declarations2Name[] =
1792 "hpux10_ctype_declarations2";
1795 * File name selection pattern
1797 tSCC zHpux10_Ctype_Declarations2List[] =
1800 * Machine/OS name selection pattern
1802 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
1805 * content selection pattern - do fix if pattern found
1807 tSCC zHpux10_Ctype_Declarations2Select0[] =
1808 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
1811 * content bypass pattern - skip fix if pattern found
1813 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
1814 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
1816 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
1817 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
1818 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
1819 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
1822 * Fix Command Arguments for Hpux10_Ctype_Declarations2
1824 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
1827 #ifdef _PROTOTYPES\n\
1828 extern int _isalnum(int);\n\
1829 extern int _isalpha(int);\n\
1830 extern int _iscntrl(int);\n\
1831 extern int _isdigit(int);\n\
1832 extern int _isgraph(int);\n\
1833 extern int _islower(int);\n\
1834 extern int _isprint(int);\n\
1835 extern int _ispunct(int);\n\
1836 extern int _isspace(int);\n\
1837 extern int _isupper(int);\n\
1838 extern int _isxdigit(int);\n\
1839 # else /* not _PROTOTYPES */\n\
1840 extern int _isalnum();\n\
1841 extern int _isalpha();\n\
1842 extern int _iscntrl();\n\
1843 extern int _isdigit();\n\
1844 extern int _isgraph();\n\
1845 extern int _islower();\n\
1846 extern int _isprint();\n\
1847 extern int _ispunct();\n\
1848 extern int _isspace();\n\
1849 extern int _isupper();\n\
1850 extern int _isxdigit();\n\
1851 #endif /* _PROTOTYPES */\n",
1854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1856 * Description of Hpux11_Abs fix
1858 tSCC zHpux11_AbsName[] =
1862 * File name selection pattern
1864 tSCC zHpux11_AbsList[] =
1867 * Machine/OS name selection pattern
1869 tSCC* apzHpux11_AbsMachs[] = {
1871 (const char*)NULL };
1874 * content selection pattern - do fix if pattern found
1876 tSCC zHpux11_AbsSelect0[] =
1877 "ifndef _MATH_INCLUDED";
1879 #define HPUX11_ABS_TEST_CT 1
1880 static tTestDesc aHpux11_AbsTests[] = {
1881 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
1884 * Fix Command Arguments for Hpux11_Abs
1886 static const char* apzHpux11_AbsPatch[] = {
1888 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
1891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1893 * Description of Hpux11_Fabsf fix
1895 tSCC zHpux11_FabsfName[] =
1899 * File name selection pattern
1901 tSCC zHpux11_FabsfList[] =
1904 * Machine/OS name selection pattern
1906 #define apzHpux11_FabsfMachs (const char**)NULL
1909 * content selection pattern - do fix if pattern found
1911 tSCC zHpux11_FabsfSelect0[] =
1912 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
1915 * content bypass pattern - skip fix if pattern found
1917 tSCC zHpux11_FabsfBypass0[] =
1920 #define HPUX11_FABSF_TEST_CT 2
1921 static tTestDesc aHpux11_FabsfTests[] = {
1922 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
1923 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
1926 * Fix Command Arguments for Hpux11_Fabsf
1928 static const char* apzHpux11_FabsfPatch[] = {
1930 "#ifndef __cplusplus\n\
1935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1937 * Description of Hpux11_Size_T fix
1939 tSCC zHpux11_Size_TName[] =
1943 * File name selection pattern
1945 #define zHpux11_Size_TList (char*)NULL
1947 * Machine/OS name selection pattern
1949 tSCC* apzHpux11_Size_TMachs[] = {
1951 (const char*)NULL };
1954 * content selection pattern - do fix if pattern found
1956 tSCC zHpux11_Size_TSelect0[] =
1959 #define HPUX11_SIZE_T_TEST_CT 1
1960 static tTestDesc aHpux11_Size_TTests[] = {
1961 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
1964 * Fix Command Arguments for Hpux11_Size_T
1966 static const char* apzHpux11_Size_TPatch[] = {
1971 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1973 * Description of Hpux11_Uint32_C fix
1975 tSCC zHpux11_Uint32_CName[] =
1979 * File name selection pattern
1981 tSCC zHpux11_Uint32_CList[] =
1984 * Machine/OS name selection pattern
1986 #define apzHpux11_Uint32_CMachs (const char**)NULL
1989 * content selection pattern - do fix if pattern found
1991 tSCC zHpux11_Uint32_CSelect0[] =
1992 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1994 #define HPUX11_UINT32_C_TEST_CT 1
1995 static tTestDesc aHpux11_Uint32_CTests[] = {
1996 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1999 * Fix Command Arguments for Hpux11_Uint32_C
2001 static const char* apzHpux11_Uint32_CPatch[] = {
2003 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2006 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2008 * Description of Hpux11_Vsnprintf fix
2010 tSCC zHpux11_VsnprintfName[] =
2014 * File name selection pattern
2016 tSCC zHpux11_VsnprintfList[] =
2019 * Machine/OS name selection pattern
2021 #define apzHpux11_VsnprintfMachs (const char**)NULL
2024 * content selection pattern - do fix if pattern found
2026 tSCC zHpux11_VsnprintfSelect0[] =
2027 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2029 #define HPUX11_VSNPRINTF_TEST_CT 1
2030 static tTestDesc aHpux11_VsnprintfTests[] = {
2031 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2034 * Fix Command Arguments for Hpux11_Vsnprintf
2036 static const char* apzHpux11_VsnprintfPatch[] = {
2041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2043 * Description of Hpux8_Bogus_Inlines fix
2045 tSCC zHpux8_Bogus_InlinesName[] =
2046 "hpux8_bogus_inlines";
2049 * File name selection pattern
2051 tSCC zHpux8_Bogus_InlinesList[] =
2054 * Machine/OS name selection pattern
2056 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2059 * content selection pattern - do fix if pattern found
2061 tSCC zHpux8_Bogus_InlinesSelect0[] =
2064 #define HPUX8_BOGUS_INLINES_TEST_CT 1
2065 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2066 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2069 * Fix Command Arguments for Hpux8_Bogus_Inlines
2071 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2072 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2073 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2074 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2075 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2078 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2080 * Description of Hpux_Ctype_Macros fix
2082 tSCC zHpux_Ctype_MacrosName[] =
2083 "hpux_ctype_macros";
2086 * File name selection pattern
2088 tSCC zHpux_Ctype_MacrosList[] =
2091 * Machine/OS name selection pattern
2093 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2096 * content selection pattern - do fix if pattern found
2098 tSCC zHpux_Ctype_MacrosSelect0[] =
2099 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2101 #define HPUX_CTYPE_MACROS_TEST_CT 1
2102 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2103 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
2106 * Fix Command Arguments for Hpux_Ctype_Macros
2108 static const char* apzHpux_Ctype_MacrosPatch[] = {
2113 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2115 * Description of Hpux_Long_Double fix
2117 tSCC zHpux_Long_DoubleName[] =
2121 * File name selection pattern
2123 tSCC zHpux_Long_DoubleList[] =
2126 * Machine/OS name selection pattern
2128 #define apzHpux_Long_DoubleMachs (const char**)NULL
2131 * content selection pattern - do fix if pattern found
2133 tSCC zHpux_Long_DoubleSelect0[] =
2134 "extern[ \t]long_double[ \t]strtold";
2137 * content bypass pattern - skip fix if pattern found
2139 tSCC zHpux_Long_DoubleBypass0[] =
2142 #define HPUX_LONG_DOUBLE_TEST_CT 2
2143 static tTestDesc aHpux_Long_DoubleTests[] = {
2144 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
2145 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
2148 * Fix Command Arguments for Hpux_Long_Double
2150 static const char* apzHpux_Long_DoublePatch[] = { "sed",
2151 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
2152 "-e", "s/long_double/long double/g",
2155 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2157 * Description of Hpux_Maxint fix
2159 tSCC zHpux_MaxintName[] =
2163 * File name selection pattern
2165 tSCC zHpux_MaxintList[] =
2166 "|sys/param.h|values.h|";
2168 * Machine/OS name selection pattern
2170 #define apzHpux_MaxintMachs (const char**)NULL
2173 * content selection pattern - do fix if pattern found
2175 tSCC zHpux_MaxintSelect0[] =
2176 "^#[ \t]*define[ \t]+MAXINT[ \t]";
2179 * content bypass pattern - skip fix if pattern found
2181 tSCC zHpux_MaxintBypass0[] =
2182 "^#[ \t]*ifndef[ \t]+MAXINT";
2185 * perform the 'test' shell command - do fix on success
2187 tSCC zHpux_MaxintTest0[] =
2188 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
2190 #define HPUX_MAXINT_TEST_CT 3
2191 static tTestDesc aHpux_MaxintTests[] = {
2192 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
2193 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
2194 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
2197 * Fix Command Arguments for Hpux_Maxint
2199 static const char* apzHpux_MaxintPatch[] = {
2204 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
2207 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2209 * Description of Hpux_Systime fix
2211 tSCC zHpux_SystimeName[] =
2215 * File name selection pattern
2217 tSCC zHpux_SystimeList[] =
2220 * Machine/OS name selection pattern
2222 #define apzHpux_SystimeMachs (const char**)NULL
2225 * content selection pattern - do fix if pattern found
2227 tSCC zHpux_SystimeSelect0[] =
2228 "^extern struct sigevent;";
2230 #define HPUX_SYSTIME_TEST_CT 1
2231 static tTestDesc aHpux_SystimeTests[] = {
2232 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2235 * Fix Command Arguments for Hpux_Systime
2237 static const char* apzHpux_SystimePatch[] = {
2242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2244 * Description of Int_Abort_Free_And_Exit fix
2246 tSCC zInt_Abort_Free_And_ExitName[] =
2247 "int_abort_free_and_exit";
2250 * File name selection pattern
2252 tSCC zInt_Abort_Free_And_ExitList[] =
2255 * Machine/OS name selection pattern
2257 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2260 * content selection pattern - do fix if pattern found
2262 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2263 "int[ \t]+(abort|free|exit)[ \t]*\\(";
2265 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
2266 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2267 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2270 * Fix Command Arguments for Int_Abort_Free_And_Exit
2272 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2277 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2279 * Description of Io_Quotes_Def fix
2281 tSCC zIo_Quotes_DefName[] =
2285 * File name selection pattern
2287 #define zIo_Quotes_DefList (char*)NULL
2289 * Machine/OS name selection pattern
2291 #define apzIo_Quotes_DefMachs (const char**)NULL
2294 * content selection pattern - do fix if pattern found
2296 tSCC zIo_Quotes_DefSelect0[] =
2297 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2299 #define IO_QUOTES_DEF_TEST_CT 1
2300 static tTestDesc aIo_Quotes_DefTests[] = {
2301 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2304 * Fix Command Arguments for Io_Quotes_Def
2306 static const char* apzIo_Quotes_DefPatch[] = {
2311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2313 * Description of Io_Quotes_Use fix
2315 tSCC zIo_Quotes_UseName[] =
2319 * File name selection pattern
2321 #define zIo_Quotes_UseList (char*)NULL
2323 * Machine/OS name selection pattern
2325 #define apzIo_Quotes_UseMachs (const char**)NULL
2328 * content selection pattern - do fix if pattern found
2330 tSCC zIo_Quotes_UseSelect0[] =
2331 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2333 #define IO_QUOTES_USE_TEST_CT 1
2334 static tTestDesc aIo_Quotes_UseTests[] = {
2335 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2338 * Fix Command Arguments for Io_Quotes_Use
2340 static const char* apzIo_Quotes_UsePatch[] = {
2345 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2347 * Description of Ip_Missing_Semi fix
2349 tSCC zIp_Missing_SemiName[] =
2353 * File name selection pattern
2355 tSCC zIp_Missing_SemiList[] =
2358 * Machine/OS name selection pattern
2360 #define apzIp_Missing_SemiMachs (const char**)NULL
2363 * content selection pattern - do fix if pattern found
2365 tSCC zIp_Missing_SemiSelect0[] =
2368 #define IP_MISSING_SEMI_TEST_CT 1
2369 static tTestDesc aIp_Missing_SemiTests[] = {
2370 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2373 * Fix Command Arguments for Ip_Missing_Semi
2375 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2376 "-e", "/^struct/,/^};/s/}$/};/",
2379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2381 * Description of Irix___Restrict fix
2383 tSCC zIrix___RestrictName[] =
2387 * File name selection pattern
2389 tSCC zIrix___RestrictList[] =
2390 "|internal/sgimacros.h|";
2392 * Machine/OS name selection pattern
2394 tSCC* apzIrix___RestrictMachs[] = {
2396 (const char*)NULL };
2399 * content selection pattern - do fix if pattern found
2401 tSCC zIrix___RestrictSelect0[] =
2403 )(#[ \t]*define __restrict restrict)";
2405 #define IRIX___RESTRICT_TEST_CT 1
2406 static tTestDesc aIrix___RestrictTests[] = {
2407 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
2410 * Fix Command Arguments for Irix___Restrict
2412 static const char* apzIrix___RestrictPatch[] = {
2414 "%1# ifndef __cplusplus\n\
2419 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2421 * Description of Irix_Asm_Apostrophe fix
2423 tSCC zIrix_Asm_ApostropheName[] =
2424 "irix_asm_apostrophe";
2427 * File name selection pattern
2429 tSCC zIrix_Asm_ApostropheList[] =
2432 * Machine/OS name selection pattern
2434 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2437 * content selection pattern - do fix if pattern found
2439 tSCC zIrix_Asm_ApostropheSelect0[] =
2440 "^[ \t]*#.*[Ww]e're";
2442 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2443 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2444 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2447 * Fix Command Arguments for Irix_Asm_Apostrophe
2449 static const char* apzIrix_Asm_ApostrophePatch[] = {
2452 "^([ \t]*#.*[Ww]e)'re",
2455 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2457 * Description of Irix_Limits_Const fix
2459 tSCC zIrix_Limits_ConstName[] =
2460 "irix_limits_const";
2463 * File name selection pattern
2465 tSCC zIrix_Limits_ConstList[] =
2466 "|fixinc-test-limits.h|limits.h|";
2468 * Machine/OS name selection pattern
2470 #define apzIrix_Limits_ConstMachs (const char**)NULL
2473 * content selection pattern - do fix if pattern found
2475 tSCC zIrix_Limits_ConstSelect0[] =
2478 #define IRIX_LIMITS_CONST_TEST_CT 1
2479 static tTestDesc aIrix_Limits_ConstTests[] = {
2480 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2483 * Fix Command Arguments for Irix_Limits_Const
2485 static const char* apzIrix_Limits_ConstPatch[] = {
2490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2492 * Description of Irix_Socklen_T fix
2494 tSCC zIrix_Socklen_TName[] =
2498 * File name selection pattern
2500 tSCC zIrix_Socklen_TList[] =
2503 * Machine/OS name selection pattern
2505 tSCC* apzIrix_Socklen_TMachs[] = {
2507 (const char*)NULL };
2510 * content selection pattern - do fix if pattern found
2512 tSCC zIrix_Socklen_TSelect0[] =
2513 "(#define _SOCKLEN_T\n\
2514 )(typedef u_int32_t socklen_t;)";
2516 #define IRIX_SOCKLEN_T_TEST_CT 1
2517 static tTestDesc aIrix_Socklen_TTests[] = {
2518 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
2521 * Fix Command Arguments for Irix_Socklen_T
2523 static const char* apzIrix_Socklen_TPatch[] = {
2525 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
2526 typedef int socklen_t;\n\
2529 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
2532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2534 * Description of Irix_Stdio_Va_List fix
2536 tSCC zIrix_Stdio_Va_ListName[] =
2537 "irix_stdio_va_list";
2540 * File name selection pattern
2542 tSCC zIrix_Stdio_Va_ListList[] =
2545 * Machine/OS name selection pattern
2547 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2550 * content selection pattern - do fix if pattern found
2552 tSCC zIrix_Stdio_Va_ListSelect0[] =
2553 "(printf\\(.*), /\\* va_list \\*/ char \\*";
2555 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2556 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2557 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2560 * Fix Command Arguments for Irix_Stdio_Va_List
2562 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2564 "%1, __gnuc_va_list",
2567 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2569 * Description of Irix_Wcsftime fix
2571 tSCC zIrix_WcsftimeName[] =
2575 * File name selection pattern
2577 tSCC zIrix_WcsftimeList[] =
2578 "|internal/wchar_core.h|";
2580 * Machine/OS name selection pattern
2582 tSCC* apzIrix_WcsftimeMachs[] = {
2584 (const char*)NULL };
2587 * content selection pattern - do fix if pattern found
2589 tSCC zIrix_WcsftimeSelect0[] =
2591 (extern size_t[ \t]+wcsftime.*const char *.*)";
2593 #define IRIX_WCSFTIME_TEST_CT 1
2594 static tTestDesc aIrix_WcsftimeTests[] = {
2595 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
2598 * Fix Command Arguments for Irix_Wcsftime
2600 static const char* apzIrix_WcsftimePatch[] = {
2602 "#if _NO_XOPEN5 && !defined(__c99)\n\
2606 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2608 * Description of Isc_Fmod fix
2610 tSCC zIsc_FmodName[] =
2614 * File name selection pattern
2616 tSCC zIsc_FmodList[] =
2619 * Machine/OS name selection pattern
2621 #define apzIsc_FmodMachs (const char**)NULL
2624 * content selection pattern - do fix if pattern found
2626 tSCC zIsc_FmodSelect0[] =
2629 #define ISC_FMOD_TEST_CT 1
2630 static tTestDesc aIsc_FmodTests[] = {
2631 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2634 * Fix Command Arguments for Isc_Fmod
2636 static const char* apzIsc_FmodPatch[] = {
2638 "fmod(double, double)",
2641 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2643 * Description of Isc_Omits_With_Stdc fix
2645 tSCC zIsc_Omits_With_StdcName[] =
2646 "isc_omits_with_stdc";
2649 * File name selection pattern
2651 tSCC zIsc_Omits_With_StdcList[] =
2652 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2654 * Machine/OS name selection pattern
2656 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2659 * content selection pattern - do fix if pattern found
2661 tSCC zIsc_Omits_With_StdcSelect0[] =
2662 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2664 #define ISC_OMITS_WITH_STDC_TEST_CT 1
2665 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2666 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2669 * Fix Command Arguments for Isc_Omits_With_Stdc
2671 static const char* apzIsc_Omits_With_StdcPatch[] = {
2673 "!defined(_POSIX_SOURCE)",
2676 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2678 * Description of Kandr_Concat fix
2680 tSCC zKandr_ConcatName[] =
2684 * File name selection pattern
2686 tSCC zKandr_ConcatList[] =
2687 "|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|";
2689 * Machine/OS name selection pattern
2691 #define apzKandr_ConcatMachs (const char**)NULL
2694 * content selection pattern - do fix if pattern found
2696 tSCC zKandr_ConcatSelect0[] =
2699 #define KANDR_CONCAT_TEST_CT 1
2700 static tTestDesc aKandr_ConcatTests[] = {
2701 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2704 * Fix Command Arguments for Kandr_Concat
2706 static const char* apzKandr_ConcatPatch[] = {
2711 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2713 * Description of Libc1_G_Va_List fix
2715 tSCC zLibc1_G_Va_ListName[] =
2719 * File name selection pattern
2721 tSCC zLibc1_G_Va_ListList[] =
2724 * Machine/OS name selection pattern
2726 tSCC* apzLibc1_G_Va_ListMachs[] = {
2728 (const char*)NULL };
2731 * content selection pattern - do fix if pattern found
2733 tSCC zLibc1_G_Va_ListSelect0[] =
2734 "typedef void \\* _G_va_list;";
2736 #define LIBC1_G_VA_LIST_TEST_CT 1
2737 static tTestDesc aLibc1_G_Va_ListTests[] = {
2738 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
2741 * Fix Command Arguments for Libc1_G_Va_List
2743 static const char* apzLibc1_G_Va_ListPatch[] = {
2745 "typedef __builtin_va_list _G_va_list;",
2748 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2750 * Description of Libc1_Ifdefd_Memx fix
2752 tSCC zLibc1_Ifdefd_MemxName[] =
2753 "libc1_ifdefd_memx";
2756 * File name selection pattern
2758 tSCC zLibc1_Ifdefd_MemxList[] =
2759 "|testing.h|string.h|";
2761 * Machine/OS name selection pattern
2763 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2766 * content selection pattern - do fix if pattern found
2768 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2769 "' is a built-in function for gcc 2\\.x\\. \\*/";
2772 * content bypass pattern - skip fix if pattern found
2774 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2777 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2778 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2779 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2780 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2783 * Fix Command Arguments for Libc1_Ifdefd_Memx
2785 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2788 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2789 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2791 extern [a-z_]+ mem.*(\n\
2796 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2798 * Description of Limits_Ifndefs fix
2800 tSCC zLimits_IfndefsName[] =
2804 * File name selection pattern
2806 tSCC zLimits_IfndefsList[] =
2807 "|sys/limits.h|limits.h|";
2809 * Machine/OS name selection pattern
2811 #define apzLimits_IfndefsMachs (const char**)NULL
2814 * content bypass pattern - skip fix if pattern found
2816 tSCC zLimits_IfndefsBypass0[] =
2817 "ifndef[ \t]+FLT_(MIN|MAX)";
2819 #define LIMITS_IFNDEFS_TEST_CT 1
2820 static tTestDesc aLimits_IfndefsTests[] = {
2821 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2824 * Fix Command Arguments for Limits_Ifndefs
2826 static const char* apzLimits_IfndefsPatch[] = {
2831 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2836 * Description of Lynx_Void_Int fix
2838 tSCC zLynx_Void_IntName[] =
2842 * File name selection pattern
2844 tSCC zLynx_Void_IntList[] =
2847 * Machine/OS name selection pattern
2849 #define apzLynx_Void_IntMachs (const char**)NULL
2852 * content selection pattern - do fix if pattern found
2854 tSCC zLynx_Void_IntSelect0[] =
2855 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2857 #define LYNX_VOID_INT_TEST_CT 1
2858 static tTestDesc aLynx_Void_IntTests[] = {
2859 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2862 * Fix Command Arguments for Lynx_Void_Int
2864 static const char* apzLynx_Void_IntPatch[] = {
2869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2871 * Description of Lynxos_Fcntl_Proto fix
2873 tSCC zLynxos_Fcntl_ProtoName[] =
2874 "lynxos_fcntl_proto";
2877 * File name selection pattern
2879 tSCC zLynxos_Fcntl_ProtoList[] =
2882 * Machine/OS name selection pattern
2884 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2887 * content selection pattern - do fix if pattern found
2889 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2890 "fcntl[ \t]*\\(int, int, int\\)";
2892 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2893 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2894 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2897 * Fix Command Arguments for Lynxos_Fcntl_Proto
2899 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
2902 "(fcntl[ \t]*\\(int, int, )int\\)",
2905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2907 * Description of Machine_Ansi_H_Va_List fix
2909 tSCC zMachine_Ansi_H_Va_ListName[] =
2910 "machine_ansi_h_va_list";
2913 * File name selection pattern
2915 #define zMachine_Ansi_H_Va_ListList (char*)NULL
2917 * Machine/OS name selection pattern
2919 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2922 * content selection pattern - do fix if pattern found
2924 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2925 "define[ \t]+_BSD_VA_LIST_[ \t]";
2928 * content bypass pattern - skip fix if pattern found
2930 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2931 "__builtin_va_list";
2933 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2934 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2935 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2936 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2939 * Fix Command Arguments for Machine_Ansi_H_Va_List
2941 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2943 "%1__builtin_va_list",
2944 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2947 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2949 * Description of Machine_Name fix
2951 tSCC zMachine_NameName[] =
2955 * File name selection pattern
2957 #define zMachine_NameList (char*)NULL
2959 * Machine/OS name selection pattern
2961 #define apzMachine_NameMachs (const char**)NULL
2964 * perform the C function call test
2966 tSCC zMachine_NameFTst0[] = "machine_name";
2968 #define MACHINE_NAME_TEST_CT 1
2969 static tTestDesc aMachine_NameTests[] = {
2970 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2973 * Fix Command Arguments for Machine_Name
2975 static const char* apzMachine_NamePatch[] = {
2979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2981 * Description of Math_Exception fix
2983 tSCC zMath_ExceptionName[] =
2987 * File name selection pattern
2989 tSCC zMath_ExceptionList[] =
2992 * Machine/OS name selection pattern
2994 #define apzMath_ExceptionMachs (const char**)NULL
2997 * content selection pattern - do fix if pattern found
2999 tSCC zMath_ExceptionSelect0[] =
3003 * content bypass pattern - skip fix if pattern found
3005 tSCC zMath_ExceptionBypass0[] =
3006 "We have a problem when using C\\+\\+";
3008 #define MATH_EXCEPTION_TEST_CT 2
3009 static tTestDesc aMath_ExceptionTests[] = {
3010 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
3011 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
3014 * Fix Command Arguments for Math_Exception
3016 static const char* apzMath_ExceptionPatch[] = {
3018 "#ifdef __cplusplus\n\
3019 #define exception __math_exception\n\
3021 "#ifdef __cplusplus\n\
3026 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3028 * Description of Math_Huge_Val_From_Dbl_Max fix
3030 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
3031 "math_huge_val_from_dbl_max";
3034 * File name selection pattern
3036 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
3039 * Machine/OS name selection pattern
3041 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
3044 * content selection pattern - do fix if pattern found
3046 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
3047 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
3050 * content bypass pattern - skip fix if pattern found
3052 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
3053 "define[ \t]+DBL_MAX";
3055 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
3056 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
3057 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
3058 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
3061 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
3063 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
3064 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
3065 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
3066 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
3071 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3073 * Description of Math_Huge_Val_Ifndef fix
3075 tSCC zMath_Huge_Val_IfndefName[] =
3076 "math_huge_val_ifndef";
3079 * File name selection pattern
3081 tSCC zMath_Huge_Val_IfndefList[] =
3082 "|math.h|math/math.h|";
3084 * Machine/OS name selection pattern
3086 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
3089 * content selection pattern - do fix if pattern found
3091 tSCC zMath_Huge_Val_IfndefSelect0[] =
3092 "define[ \t]+HUGE_VAL";
3094 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
3095 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
3096 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
3099 * Fix Command Arguments for Math_Huge_Val_Ifndef
3101 static const char* apzMath_Huge_Val_IfndefPatch[] = {
3103 "#ifndef HUGE_VAL\n\
3106 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
3109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3111 * Description of Nested_Auth_Des fix
3113 tSCC zNested_Auth_DesName[] =
3117 * File name selection pattern
3119 tSCC zNested_Auth_DesList[] =
3122 * Machine/OS name selection pattern
3124 #define apzNested_Auth_DesMachs (const char**)NULL
3127 * content selection pattern - do fix if pattern found
3129 tSCC zNested_Auth_DesSelect0[] =
3130 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
3132 #define NESTED_AUTH_DES_TEST_CT 1
3133 static tTestDesc aNested_Auth_DesTests[] = {
3134 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
3137 * Fix Command Arguments for Nested_Auth_Des
3139 static const char* apzNested_Auth_DesPatch[] = {
3144 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3146 * Description of Nested_Motorola fix
3148 tSCC zNested_MotorolaName[] =
3152 * File name selection pattern
3154 tSCC zNested_MotorolaList[] =
3155 "|sys/limits.h|limits.h|";
3157 * Machine/OS name selection pattern
3159 tSCC* apzNested_MotorolaMachs[] = {
3160 "m68k-motorola-sysv*",
3161 (const char*)NULL };
3164 * content selection pattern - do fix if pattern found
3166 tSCC zNested_MotorolaSelect0[] =
3167 "max # bytes atomic in write|error value returned by Math lib";
3169 #define NESTED_MOTOROLA_TEST_CT 1
3170 static tTestDesc aNested_MotorolaTests[] = {
3171 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
3174 * Fix Command Arguments for Nested_Motorola
3176 static const char* apzNested_MotorolaPatch[] = { "sed",
3177 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3178 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3181 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3183 * Description of Nested_Sys_Limits fix
3185 tSCC zNested_Sys_LimitsName[] =
3186 "nested_sys_limits";
3189 * File name selection pattern
3191 tSCC zNested_Sys_LimitsList[] =
3194 * Machine/OS name selection pattern
3196 #define apzNested_Sys_LimitsMachs (const char**)NULL
3199 * content selection pattern - do fix if pattern found
3201 tSCC zNested_Sys_LimitsSelect0[] =
3204 #define NESTED_SYS_LIMITS_TEST_CT 1
3205 static tTestDesc aNested_Sys_LimitsTests[] = {
3206 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3209 * Fix Command Arguments for Nested_Sys_Limits
3211 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3212 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3213 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3218 * Description of Netbsd_Extra_Semicolon fix
3220 tSCC zNetbsd_Extra_SemicolonName[] =
3221 "netbsd_extra_semicolon";
3224 * File name selection pattern
3226 tSCC zNetbsd_Extra_SemicolonList[] =
3229 * Machine/OS name selection pattern
3231 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
3233 (const char*)NULL };
3236 * content selection pattern - do fix if pattern found
3238 tSCC zNetbsd_Extra_SemicolonSelect0[] =
3239 "#define[ \t]*__END_DECLS[ \t]*};";
3241 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
3242 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
3243 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
3246 * Fix Command Arguments for Netbsd_Extra_Semicolon
3248 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
3250 "#define __END_DECLS }",
3253 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3255 * Description of Next_Math_Prefix fix
3257 tSCC zNext_Math_PrefixName[] =
3261 * File name selection pattern
3263 tSCC zNext_Math_PrefixList[] =
3266 * Machine/OS name selection pattern
3268 #define apzNext_Math_PrefixMachs (const char**)NULL
3271 * content selection pattern - do fix if pattern found
3273 tSCC zNext_Math_PrefixSelect0[] =
3274 "^extern[ \t]+double[ \t]+__const__[ \t]";
3276 #define NEXT_MATH_PREFIX_TEST_CT 1
3277 static tTestDesc aNext_Math_PrefixTests[] = {
3278 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3281 * Fix Command Arguments for Next_Math_Prefix
3283 static const char* apzNext_Math_PrefixPatch[] = {
3285 "extern double %1(",
3286 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3289 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3291 * Description of Next_Template fix
3293 tSCC zNext_TemplateName[] =
3297 * File name selection pattern
3299 tSCC zNext_TemplateList[] =
3302 * Machine/OS name selection pattern
3304 #define apzNext_TemplateMachs (const char**)NULL
3307 * content selection pattern - do fix if pattern found
3309 tSCC zNext_TemplateSelect0[] =
3312 #define NEXT_TEMPLATE_TEST_CT 1
3313 static tTestDesc aNext_TemplateTests[] = {
3314 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
3317 * Fix Command Arguments for Next_Template
3319 static const char* apzNext_TemplatePatch[] = {
3322 "\\(([^)]*)[ \t]template\\)",
3325 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3327 * Description of Next_Volitile fix
3329 tSCC zNext_VolitileName[] =
3333 * File name selection pattern
3335 tSCC zNext_VolitileList[] =
3338 * Machine/OS name selection pattern
3340 #define apzNext_VolitileMachs (const char**)NULL
3343 * content selection pattern - do fix if pattern found
3345 tSCC zNext_VolitileSelect0[] =
3346 "^extern[ \t]+volatile[ \t]+void[ \t]";
3348 #define NEXT_VOLITILE_TEST_CT 1
3349 static tTestDesc aNext_VolitileTests[] = {
3350 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
3353 * Fix Command Arguments for Next_Volitile
3355 static const char* apzNext_VolitilePatch[] = {
3358 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3361 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3363 * Description of Next_Wait_Union fix
3365 tSCC zNext_Wait_UnionName[] =
3369 * File name selection pattern
3371 tSCC zNext_Wait_UnionList[] =
3374 * Machine/OS name selection pattern
3376 #define apzNext_Wait_UnionMachs (const char**)NULL
3379 * content selection pattern - do fix if pattern found
3381 tSCC zNext_Wait_UnionSelect0[] =
3382 "wait\\(union wait";
3384 #define NEXT_WAIT_UNION_TEST_CT 1
3385 static tTestDesc aNext_Wait_UnionTests[] = {
3386 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3389 * Fix Command Arguments for Next_Wait_Union
3391 static const char* apzNext_Wait_UnionPatch[] = {
3396 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3398 * Description of Nodeent_Syntax fix
3400 tSCC zNodeent_SyntaxName[] =
3404 * File name selection pattern
3406 tSCC zNodeent_SyntaxList[] =
3407 "|netdnet/dnetdb.h|";
3409 * Machine/OS name selection pattern
3411 #define apzNodeent_SyntaxMachs (const char**)NULL
3414 * content selection pattern - do fix if pattern found
3416 tSCC zNodeent_SyntaxSelect0[] =
3417 "char[ \t]*\\*na_addr[ \t]*$";
3419 #define NODEENT_SYNTAX_TEST_CT 1
3420 static tTestDesc aNodeent_SyntaxTests[] = {
3421 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3424 * Fix Command Arguments for Nodeent_Syntax
3426 static const char* apzNodeent_SyntaxPatch[] = {
3431 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3433 * Description of Osf_Namespace_A fix
3435 tSCC zOsf_Namespace_AName[] =
3439 * File name selection pattern
3441 tSCC zOsf_Namespace_AList[] =
3442 "|reg_types.h|sys/lc_core.h|";
3444 * Machine/OS name selection pattern
3446 #define apzOsf_Namespace_AMachs (const char**)NULL
3449 * perform the 'test' shell command - do fix on success
3451 tSCC zOsf_Namespace_ATest0[] =
3453 tSCC zOsf_Namespace_ATest1[] =
3454 " -r sys/lc_core.h";
3455 tSCC zOsf_Namespace_ATest2[] =
3456 " -n \"`grep '} regex_t;' reg_types.h`\"";
3457 tSCC zOsf_Namespace_ATest3[] =
3458 " -z \"`grep __regex_t regex.h`\"";
3460 #define OSF_NAMESPACE_A_TEST_CT 4
3461 static tTestDesc aOsf_Namespace_ATests[] = {
3462 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3463 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3464 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3465 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3468 * Fix Command Arguments for Osf_Namespace_A
3470 static const char* apzOsf_Namespace_APatch[] = {
3473 "reg(ex|off|match)_t",
3476 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3478 * Description of Osf_Namespace_C fix
3480 tSCC zOsf_Namespace_CName[] =
3484 * File name selection pattern
3486 tSCC zOsf_Namespace_CList[] =
3489 * Machine/OS name selection pattern
3491 #define apzOsf_Namespace_CMachs (const char**)NULL
3494 * content selection pattern - do fix if pattern found
3496 tSCC zOsf_Namespace_CSelect0[] =
3497 "#include <reg_types.h>.*";
3500 * perform the 'test' shell command - do fix on success
3502 tSCC zOsf_Namespace_CTest0[] =
3504 tSCC zOsf_Namespace_CTest1[] =
3505 " -r sys/lc_core.h";
3506 tSCC zOsf_Namespace_CTest2[] =
3507 " -n \"`grep '} regex_t;' reg_types.h`\"";
3508 tSCC zOsf_Namespace_CTest3[] =
3509 " -z \"`grep __regex_t regex.h`\"";
3511 #define OSF_NAMESPACE_C_TEST_CT 5
3512 static tTestDesc aOsf_Namespace_CTests[] = {
3513 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3514 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3515 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3516 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3517 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3520 * Fix Command Arguments for Osf_Namespace_C
3522 static const char* apzOsf_Namespace_CPatch[] = {
3525 typedef __regex_t\tregex_t;\n\
3526 typedef __regoff_t\tregoff_t;\n\
3527 typedef __regmatch_t\tregmatch_t;",
3530 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3532 * Description of Pthread_Page_Size fix
3534 tSCC zPthread_Page_SizeName[] =
3535 "pthread_page_size";
3538 * File name selection pattern
3540 tSCC zPthread_Page_SizeList[] =
3543 * Machine/OS name selection pattern
3545 #define apzPthread_Page_SizeMachs (const char**)NULL
3548 * content selection pattern - do fix if pattern found
3550 tSCC zPthread_Page_SizeSelect0[] =
3553 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3554 static tTestDesc aPthread_Page_SizeTests[] = {
3555 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3558 * Fix Command Arguments for Pthread_Page_Size
3560 static const char* apzPthread_Page_SizePatch[] = {
3565 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3567 * Description of Read_Ret_Type fix
3569 tSCC zRead_Ret_TypeName[] =
3573 * File name selection pattern
3575 tSCC zRead_Ret_TypeList[] =
3578 * Machine/OS name selection pattern
3580 #define apzRead_Ret_TypeMachs (const char**)NULL
3583 * content selection pattern - do fix if pattern found
3585 tSCC zRead_Ret_TypeSelect0[] =
3586 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3588 #define READ_RET_TYPE_TEST_CT 1
3589 static tTestDesc aRead_Ret_TypeTests[] = {
3590 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3593 * Fix Command Arguments for Read_Ret_Type
3595 static const char* apzRead_Ret_TypePatch[] = {
3597 "extern unsigned int fread(), fwrite();\n\
3599 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3602 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3604 * Description of Rs6000_Double fix
3606 tSCC zRs6000_DoubleName[] =
3610 * File name selection pattern
3612 tSCC zRs6000_DoubleList[] =
3615 * Machine/OS name selection pattern
3617 #define apzRs6000_DoubleMachs (const char**)NULL
3620 * content selection pattern - do fix if pattern found
3622 tSCC zRs6000_DoubleSelect0[] =
3623 "[^a-zA-Z_]class\\(";
3625 #define RS6000_DOUBLE_TEST_CT 1
3626 static tTestDesc aRs6000_DoubleTests[] = {
3627 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3630 * Fix Command Arguments for Rs6000_Double
3632 static const char* apzRs6000_DoublePatch[] = {
3634 "#ifndef __cplusplus\n\
3637 "^.*[^a-zA-Z_]class\\(.*",
3640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3642 * Description of Rs6000_Fchmod fix
3644 tSCC zRs6000_FchmodName[] =
3648 * File name selection pattern
3650 tSCC zRs6000_FchmodList[] =
3653 * Machine/OS name selection pattern
3655 #define apzRs6000_FchmodMachs (const char**)NULL
3658 * content selection pattern - do fix if pattern found
3660 tSCC zRs6000_FchmodSelect0[] =
3661 "fchmod\\(char \\*";
3663 #define RS6000_FCHMOD_TEST_CT 1
3664 static tTestDesc aRs6000_FchmodTests[] = {
3665 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3668 * Fix Command Arguments for Rs6000_Fchmod
3670 static const char* apzRs6000_FchmodPatch[] = {
3675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3677 * Description of Rs6000_Param fix
3679 tSCC zRs6000_ParamName[] =
3683 * File name selection pattern
3685 tSCC zRs6000_ParamList[] =
3686 "|stdio.h|unistd.h|";
3688 * Machine/OS name selection pattern
3690 #define apzRs6000_ParamMachs (const char**)NULL
3693 * content selection pattern - do fix if pattern found
3695 tSCC zRs6000_ParamSelect0[] =
3696 "rename\\(const char \\*old, const char \\*new\\)";
3698 #define RS6000_PARAM_TEST_CT 1
3699 static tTestDesc aRs6000_ParamTests[] = {
3700 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3703 * Fix Command Arguments for Rs6000_Param
3705 static const char* apzRs6000_ParamPatch[] = {
3707 "rename(const char *_old, const char *_new)",
3710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3712 * Description of Sco_Static_Func fix
3714 tSCC zSco_Static_FuncName[] =
3718 * File name selection pattern
3720 tSCC zSco_Static_FuncList[] =
3723 * Machine/OS name selection pattern
3725 tSCC* apzSco_Static_FuncMachs[] = {
3727 (const char*)NULL };
3730 * content selection pattern - do fix if pattern found
3732 tSCC zSco_Static_FuncSelect0[] =
3735 #define SCO_STATIC_FUNC_TEST_CT 1
3736 static tTestDesc aSco_Static_FuncTests[] = {
3737 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3740 * Fix Command Arguments for Sco_Static_Func
3742 static const char* apzSco_Static_FuncPatch[] = { "sed",
3743 "-e", "/^static int/i\\\n\
3744 #if __cplusplus\\\n\
3746 #endif /* __cplusplus */",
3748 #if __cplusplus\\\n\
3750 #endif /* __cplusplus */",
3753 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3755 * Description of Sco_Utime fix
3757 tSCC zSco_UtimeName[] =
3761 * File name selection pattern
3763 tSCC zSco_UtimeList[] =
3766 * Machine/OS name selection pattern
3768 tSCC* apzSco_UtimeMachs[] = {
3770 (const char*)NULL };
3773 * content selection pattern - do fix if pattern found
3775 tSCC zSco_UtimeSelect0[] =
3776 "\\(const char \\*, struct utimbuf \\*\\);";
3778 #define SCO_UTIME_TEST_CT 1
3779 static tTestDesc aSco_UtimeTests[] = {
3780 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3783 * Fix Command Arguments for Sco_Utime
3785 static const char* apzSco_UtimePatch[] = {
3787 "(const char *, const struct utimbuf *);",
3790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3792 * Description of Solaris_Mutex_Init_1 fix
3794 tSCC zSolaris_Mutex_Init_1Name[] =
3795 "solaris_mutex_init_1";
3798 * File name selection pattern
3800 tSCC zSolaris_Mutex_Init_1List[] =
3803 * Machine/OS name selection pattern
3805 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
3808 * content selection pattern - do fix if pattern found
3810 tSCC zSolaris_Mutex_Init_1Select0[] =
3811 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
3813 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
3814 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
3815 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
3818 * Fix Command Arguments for Solaris_Mutex_Init_1
3820 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
3821 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
3822 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
3825 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3827 * Description of Solaris_Mutex_Init_2 fix
3829 tSCC zSolaris_Mutex_Init_2Name[] =
3830 "solaris_mutex_init_2";
3833 * File name selection pattern
3835 tSCC zSolaris_Mutex_Init_2List[] =
3838 * Machine/OS name selection pattern
3840 #define apzSolaris_Mutex_Init_2Machs (const char**)NULL
3843 * content selection pattern - do fix if pattern found
3845 tSCC zSolaris_Mutex_Init_2Select0[] =
3846 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
3848 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
3849 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
3850 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
3853 * Fix Command Arguments for Solaris_Mutex_Init_2
3855 static const char* apzSolaris_Mutex_Init_2Patch[] = {
3857 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
3862 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
3865 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3867 * Description of Solaris_Stdio_Tag fix
3869 tSCC zSolaris_Stdio_TagName[] =
3870 "solaris_stdio_tag";
3873 * File name selection pattern
3875 tSCC zSolaris_Stdio_TagList[] =
3878 * Machine/OS name selection pattern
3880 #define apzSolaris_Stdio_TagMachs (const char**)NULL
3883 * content selection pattern - do fix if pattern found
3885 tSCC zSolaris_Stdio_TagSelect0[] =
3886 "__cplusplus < 54321L";
3888 #define SOLARIS_STDIO_TAG_TEST_CT 1
3889 static tTestDesc aSolaris_Stdio_TagTests[] = {
3890 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
3893 * Fix Command Arguments for Solaris_Stdio_Tag
3895 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
3896 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
3899 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3901 * Description of Solaris_Widec fix
3903 tSCC zSolaris_WidecName[] =
3907 * File name selection pattern
3909 tSCC zSolaris_WidecList[] =
3912 * Machine/OS name selection pattern
3914 tSCC* apzSolaris_WidecMachs[] = {
3915 "*-*-solaris2.[0-5]*",
3916 (const char*)NULL };
3919 * content selection pattern - do fix if pattern found
3921 tSCC zSolaris_WidecSelect0[] =
3925 * content bypass pattern - skip fix if pattern found
3927 tSCC zSolaris_WidecBypass0[] =
3928 "include.*wchar\\.h";
3930 #define SOLARIS_WIDEC_TEST_CT 2
3931 static tTestDesc aSolaris_WidecTests[] = {
3932 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
3933 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
3936 * Fix Command Arguments for Solaris_Widec
3938 static const char* apzSolaris_WidecPatch[] = {
3941 #include <wchar.h>",
3944 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3946 * Description of Statsswtch fix
3948 tSCC zStatsswtchName[] =
3952 * File name selection pattern
3954 tSCC zStatsswtchList[] =
3957 * Machine/OS name selection pattern
3959 #define apzStatsswtchMachs (const char**)NULL
3962 * content selection pattern - do fix if pattern found
3964 tSCC zStatsswtchSelect0[] =
3967 #define STATSSWTCH_TEST_CT 1
3968 static tTestDesc aStatsswtchTests[] = {
3969 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3972 * Fix Command Arguments for Statsswtch
3974 static const char* apzStatsswtchPatch[] = {
3979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3981 * Description of Stdio_Stdarg_H fix
3983 tSCC zStdio_Stdarg_HName[] =
3987 * File name selection pattern
3989 tSCC zStdio_Stdarg_HList[] =
3992 * Machine/OS name selection pattern
3994 #define apzStdio_Stdarg_HMachs (const char**)NULL
3997 * content bypass pattern - skip fix if pattern found
3999 tSCC zStdio_Stdarg_HBypass0[] =
4000 "include.*(stdarg.h|machine/ansi.h)";
4002 #define STDIO_STDARG_H_TEST_CT 1
4003 static tTestDesc aStdio_Stdarg_HTests[] = {
4004 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
4007 * Fix Command Arguments for Stdio_Stdarg_H
4009 static const char* apzStdio_Stdarg_HPatch[] = {
4011 "#define __need___va_list\n\
4012 #include <stdarg.h>\n",
4015 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4017 * Description of Stdio_Va_List fix
4019 tSCC zStdio_Va_ListName[] =
4023 * File name selection pattern
4025 tSCC zStdio_Va_ListList[] =
4028 * Machine/OS name selection pattern
4030 #define apzStdio_Va_ListMachs (const char**)NULL
4033 * content bypass pattern - skip fix if pattern found
4035 tSCC zStdio_Va_ListBypass0[] =
4036 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list";
4038 #define STDIO_VA_LIST_TEST_CT 1
4039 static tTestDesc aStdio_Va_ListTests[] = {
4040 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
4043 * Fix Command Arguments for Stdio_Va_List
4045 static const char* apzStdio_Va_ListPatch[] = { "sed",
4046 "-e", "s@ va_list @ __gnuc_va_list @\n\
4047 s@ va_list)@ __gnuc_va_list)@\n\
4048 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
4049 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
4050 s@ va_list@ __not_va_list__@\n\
4051 s@\\*va_list@*__not_va_list__@\n\
4052 s@ __va_list)@ __gnuc_va_list)@\n\
4053 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
4054 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
4055 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
4056 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
4057 s@VA_LIST@DUMMY_VA_LIST@\n\
4058 s@_Va_LIST@_VA_LIST@",
4061 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4063 * Description of Strict_Ansi_Not fix
4065 tSCC zStrict_Ansi_NotName[] =
4069 * File name selection pattern
4071 #define zStrict_Ansi_NotList (char*)NULL
4073 * Machine/OS name selection pattern
4075 #define apzStrict_Ansi_NotMachs (const char**)NULL
4078 * content selection pattern - do fix if pattern found
4080 tSCC zStrict_Ansi_NotSelect0[] =
4081 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
4084 * content bypass pattern - skip fix if pattern found
4086 tSCC zStrict_Ansi_NotBypass0[] =
4087 "GNU and MIPS C compilers define __STDC__ differently";
4090 * perform the C function call test
4092 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
4094 #define STRICT_ANSI_NOT_TEST_CT 3
4095 static tTestDesc aStrict_Ansi_NotTests[] = {
4096 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
4097 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
4098 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
4101 * Fix Command Arguments for Strict_Ansi_Not
4103 static const char* apzStrict_Ansi_NotPatch[] = {
4105 "%1 !defined(__STRICT_ANSI__)",
4108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4110 * Description of Strict_Ansi_Not_Ctd fix
4112 tSCC zStrict_Ansi_Not_CtdName[] =
4113 "strict_ansi_not_ctd";
4116 * File name selection pattern
4118 tSCC zStrict_Ansi_Not_CtdList[] =
4119 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
4121 * Machine/OS name selection pattern
4123 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
4126 * content selection pattern - do fix if pattern found
4128 tSCC zStrict_Ansi_Not_CtdSelect0[] =
4129 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
4132 * perform the C function call test
4134 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
4136 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
4137 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
4138 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
4139 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
4142 * Fix Command Arguments for Strict_Ansi_Not_Ctd
4144 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
4146 "%1 !defined(__STRICT_ANSI__)",
4149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4151 * Description of Strict_Ansi_Only fix
4153 tSCC zStrict_Ansi_OnlyName[] =
4157 * File name selection pattern
4159 #define zStrict_Ansi_OnlyList (char*)NULL
4161 * Machine/OS name selection pattern
4163 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
4166 * content selection pattern - do fix if pattern found
4168 tSCC zStrict_Ansi_OnlySelect0[] =
4169 "^([ \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)";
4172 * perform the C function call test
4174 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
4176 #define STRICT_ANSI_ONLY_TEST_CT 2
4177 static tTestDesc aStrict_Ansi_OnlyTests[] = {
4178 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
4179 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
4182 * Fix Command Arguments for Strict_Ansi_Only
4184 static const char* apzStrict_Ansi_OnlyPatch[] = {
4186 "%1 defined(__STRICT_ANSI__)",
4189 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4191 * Description of Struct_File fix
4193 tSCC zStruct_FileName[] =
4197 * File name selection pattern
4199 tSCC zStruct_FileList[] =
4202 * Machine/OS name selection pattern
4204 #define apzStruct_FileMachs (const char**)NULL
4207 * content selection pattern - do fix if pattern found
4209 tSCC zStruct_FileSelect0[] =
4210 "^.*xdrstdio_create.*struct __file_s";
4212 #define STRUCT_FILE_TEST_CT 1
4213 static tTestDesc aStruct_FileTests[] = {
4214 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
4217 * Fix Command Arguments for Struct_File
4219 static const char* apzStruct_FilePatch[] = {
4221 "struct __file_s;\n\
4225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4227 * Description of Struct_Sockaddr fix
4229 tSCC zStruct_SockaddrName[] =
4233 * File name selection pattern
4235 tSCC zStruct_SockaddrList[] =
4238 * Machine/OS name selection pattern
4240 #define apzStruct_SockaddrMachs (const char**)NULL
4243 * content selection pattern - do fix if pattern found
4245 tSCC zStruct_SockaddrSelect0[] =
4246 "^.*authdes_create.*struct sockaddr";
4249 * content bypass pattern - skip fix if pattern found
4251 tSCC zStruct_SockaddrBypass0[] =
4254 #define STRUCT_SOCKADDR_TEST_CT 2
4255 static tTestDesc aStruct_SockaddrTests[] = {
4256 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
4257 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
4260 * Fix Command Arguments for Struct_Sockaddr
4262 static const char* apzStruct_SockaddrPatch[] = {
4264 "struct sockaddr;\n\
4268 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4270 * Description of Sun_Auth_Proto fix
4272 tSCC zSun_Auth_ProtoName[] =
4276 * File name selection pattern
4278 tSCC zSun_Auth_ProtoList[] =
4279 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
4281 * Machine/OS name selection pattern
4283 #define apzSun_Auth_ProtoMachs (const char**)NULL
4286 * content selection pattern - do fix if pattern found
4288 tSCC zSun_Auth_ProtoSelect0[] =
4289 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
4291 #define SUN_AUTH_PROTO_TEST_CT 1
4292 static tTestDesc aSun_Auth_ProtoTests[] = {
4293 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
4296 * Fix Command Arguments for Sun_Auth_Proto
4298 static const char* apzSun_Auth_ProtoPatch[] = {
4300 "#ifdef __cplusplus\n\
4305 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
4308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4310 * Description of Sun_Bogus_Ifdef fix
4312 tSCC zSun_Bogus_IfdefName[] =
4316 * File name selection pattern
4318 tSCC zSun_Bogus_IfdefList[] =
4319 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
4321 * Machine/OS name selection pattern
4323 #define apzSun_Bogus_IfdefMachs (const char**)NULL
4326 * content selection pattern - do fix if pattern found
4328 tSCC zSun_Bogus_IfdefSelect0[] =
4329 "#ifdef(.*\\|\\|.*)";
4331 #define SUN_BOGUS_IFDEF_TEST_CT 1
4332 static tTestDesc aSun_Bogus_IfdefTests[] = {
4333 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
4336 * Fix Command Arguments for Sun_Bogus_Ifdef
4338 static const char* apzSun_Bogus_IfdefPatch[] = {
4343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4345 * Description of Sun_Catmacro fix
4347 tSCC zSun_CatmacroName[] =
4351 * File name selection pattern
4353 tSCC zSun_CatmacroList[] =
4354 "|pixrect/memvar.h|";
4356 * Machine/OS name selection pattern
4358 #define apzSun_CatmacroMachs (const char**)NULL
4361 * content selection pattern - do fix if pattern found
4363 tSCC zSun_CatmacroSelect0[] =
4364 "^#define[ \t]+CAT\\(a,b\\).*";
4366 #define SUN_CATMACRO_TEST_CT 1
4367 static tTestDesc aSun_CatmacroTests[] = {
4368 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
4371 * Fix Command Arguments for Sun_Catmacro
4373 static const char* apzSun_CatmacroPatch[] = {
4376 # define CAT(a,b) a##b\n\
4382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4384 * Description of Sun_Malloc fix
4386 tSCC zSun_MallocName[] =
4390 * File name selection pattern
4392 tSCC zSun_MallocList[] =
4395 * Machine/OS name selection pattern
4397 #define apzSun_MallocMachs (const char**)NULL
4398 #define SUN_MALLOC_TEST_CT 0
4399 #define aSun_MallocTests (tTestDesc*)NULL
4402 * Fix Command Arguments for Sun_Malloc
4404 static const char* apzSun_MallocPatch[] = { "sed",
4405 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
4406 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
4407 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
4408 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
4409 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
4412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4414 * Description of Sun_Rusers_Semi fix
4416 tSCC zSun_Rusers_SemiName[] =
4420 * File name selection pattern
4422 tSCC zSun_Rusers_SemiList[] =
4423 "|rpcsvc/rusers.h|";
4425 * Machine/OS name selection pattern
4427 #define apzSun_Rusers_SemiMachs (const char**)NULL
4430 * content selection pattern - do fix if pattern found
4432 tSCC zSun_Rusers_SemiSelect0[] =
4435 #define SUN_RUSERS_SEMI_TEST_CT 1
4436 static tTestDesc aSun_Rusers_SemiTests[] = {
4437 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
4440 * Fix Command Arguments for Sun_Rusers_Semi
4442 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
4443 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
4446 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4448 * Description of Sun_Signal fix
4450 tSCC zSun_SignalName[] =
4454 * File name selection pattern
4456 tSCC zSun_SignalList[] =
4457 "|sys/signal.h|signal.h|";
4459 * Machine/OS name selection pattern
4461 #define apzSun_SignalMachs (const char**)NULL
4464 * content selection pattern - do fix if pattern found
4466 tSCC zSun_SignalSelect0[] =
4467 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
4469 #define SUN_SIGNAL_TEST_CT 1
4470 static tTestDesc aSun_SignalTests[] = {
4471 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
4474 * Fix Command Arguments for Sun_Signal
4476 static const char* apzSun_SignalPatch[] = {
4478 "#ifdef __cplusplus\n\
4479 void\t(*signal(...))(...);\n\
4485 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4487 * Description of Sunos_Matherr_Decl fix
4489 tSCC zSunos_Matherr_DeclName[] =
4490 "sunos_matherr_decl";
4493 * File name selection pattern
4495 tSCC zSunos_Matherr_DeclList[] =
4498 * Machine/OS name selection pattern
4500 #define apzSunos_Matherr_DeclMachs (const char**)NULL
4503 * content selection pattern - do fix if pattern found
4505 tSCC zSunos_Matherr_DeclSelect0[] =
4509 * content bypass pattern - skip fix if pattern found
4511 tSCC zSunos_Matherr_DeclBypass0[] =
4512 "matherr.*(struct exception|__MATH_EXCEPTION)";
4514 #define SUNOS_MATHERR_DECL_TEST_CT 2
4515 static tTestDesc aSunos_Matherr_DeclTests[] = {
4516 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
4517 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
4520 * Fix Command Arguments for Sunos_Matherr_Decl
4522 static const char* apzSunos_Matherr_DeclPatch[] = {
4524 "struct exception;\n",
4527 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4529 * Description of Sunos_Strlen fix
4531 tSCC zSunos_StrlenName[] =
4535 * File name selection pattern
4537 tSCC zSunos_StrlenList[] =
4540 * Machine/OS name selection pattern
4542 #define apzSunos_StrlenMachs (const char**)NULL
4545 * content selection pattern - do fix if pattern found
4547 tSCC zSunos_StrlenSelect0[] =
4548 "int[ \t]*strlen\\(\\);(.*)";
4550 #define SUNOS_STRLEN_TEST_CT 1
4551 static tTestDesc aSunos_StrlenTests[] = {
4552 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
4555 * Fix Command Arguments for Sunos_Strlen
4557 static const char* apzSunos_StrlenPatch[] = {
4559 "__SIZE_TYPE__ strlen();%1",
4562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4564 * Description of Svr4__P fix
4566 tSCC zSvr4__PName[] =
4570 * File name selection pattern
4572 tSCC zSvr4__PList[] =
4573 "|math.h|floatingpoint.h|";
4575 * Machine/OS name selection pattern
4577 #define apzSvr4__PMachs (const char**)NULL
4580 * content selection pattern - do fix if pattern found
4582 tSCC zSvr4__PSelect0[] =
4583 "^#define[ \t]+__P.*";
4585 #define SVR4__P_TEST_CT 1
4586 static tTestDesc aSvr4__PTests[] = {
4587 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
4590 * Fix Command Arguments for Svr4__P
4592 static const char* apzSvr4__PPatch[] = {
4599 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4601 * Description of Svr4_Getcwd fix
4603 tSCC zSvr4_GetcwdName[] =
4607 * File name selection pattern
4609 tSCC zSvr4_GetcwdList[] =
4610 "|stdlib.h|unistd.h|prototypes.h|";
4612 * Machine/OS name selection pattern
4614 #define apzSvr4_GetcwdMachs (const char**)NULL
4617 * content selection pattern - do fix if pattern found
4619 tSCC zSvr4_GetcwdSelect0[] =
4620 "getcwd\\(char \\*, int\\)";
4622 #define SVR4_GETCWD_TEST_CT 1
4623 static tTestDesc aSvr4_GetcwdTests[] = {
4624 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4627 * Fix Command Arguments for Svr4_Getcwd
4629 static const char* apzSvr4_GetcwdPatch[] = {
4631 "getcwd(char *, size_t)",
4634 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4636 * Description of Svr4_Profil fix
4638 tSCC zSvr4_ProfilName[] =
4642 * File name selection pattern
4644 tSCC zSvr4_ProfilList[] =
4645 "|stdlib.h|unistd.h|";
4647 * Machine/OS name selection pattern
4649 #define apzSvr4_ProfilMachs (const char**)NULL
4652 * content selection pattern - do fix if pattern found
4654 tSCC zSvr4_ProfilSelect0[] =
4655 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
4657 #define SVR4_PROFIL_TEST_CT 1
4658 static tTestDesc aSvr4_ProfilTests[] = {
4659 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
4662 * Fix Command Arguments for Svr4_Profil
4664 static const char* apzSvr4_ProfilPatch[] = {
4666 "profil(unsigned short *, size_t, int, unsigned int)",
4669 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4671 * Description of Sysv68_String fix
4673 tSCC zSysv68_StringName[] =
4677 * File name selection pattern
4679 tSCC zSysv68_StringList[] =
4680 "|testing.h|string.h|";
4682 * Machine/OS name selection pattern
4684 #define apzSysv68_StringMachs (const char**)NULL
4685 #define SYSV68_STRING_TEST_CT 0
4686 #define aSysv68_StringTests (tTestDesc*)NULL
4689 * Fix Command Arguments for Sysv68_String
4691 static const char* apzSysv68_StringPatch[] = { "sed",
4692 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4693 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4694 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4695 "-e", "/^extern char$/N",
4696 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4697 "-e", "/^extern int$/N",
4698 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4699 "-e", "/^\tstrncmp(),$/N",
4700 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4701 extern unsigned int\\\n\
4705 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4707 * Description of Sysz_Stdlib_For_Sun fix
4709 tSCC zSysz_Stdlib_For_SunName[] =
4710 "sysz_stdlib_for_sun";
4713 * File name selection pattern
4715 tSCC zSysz_Stdlib_For_SunList[] =
4718 * Machine/OS name selection pattern
4720 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4723 * content selection pattern - do fix if pattern found
4725 tSCC zSysz_Stdlib_For_SunSelect0[] =
4726 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
4728 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
4729 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
4730 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4733 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4735 static const char* apzSysz_Stdlib_For_SunPatch[] = {
4740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4742 * Description of Thread_Keyword fix
4744 tSCC zThread_KeywordName[] =
4748 * File name selection pattern
4750 tSCC zThread_KeywordList[] =
4751 "|pthread.h|bits/sigthread.h|";
4753 * Machine/OS name selection pattern
4755 #define apzThread_KeywordMachs (const char**)NULL
4758 * content selection pattern - do fix if pattern found
4760 tSCC zThread_KeywordSelect0[] =
4761 "([* ])__thread([,)])";
4763 #define THREAD_KEYWORD_TEST_CT 1
4764 static tTestDesc aThread_KeywordTests[] = {
4765 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
4768 * Fix Command Arguments for Thread_Keyword
4770 static const char* apzThread_KeywordPatch[] = {
4775 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4777 * Description of Tinfo_Cplusplus fix
4779 tSCC zTinfo_CplusplusName[] =
4783 * File name selection pattern
4785 tSCC zTinfo_CplusplusList[] =
4788 * Machine/OS name selection pattern
4790 #define apzTinfo_CplusplusMachs (const char**)NULL
4793 * content selection pattern - do fix if pattern found
4795 tSCC zTinfo_CplusplusSelect0[] =
4798 #define TINFO_CPLUSPLUS_TEST_CT 1
4799 static tTestDesc aTinfo_CplusplusTests[] = {
4800 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4803 * Fix Command Arguments for Tinfo_Cplusplus
4805 static const char* apzTinfo_CplusplusPatch[] = {
4810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4812 * Description of Ultrix_Atexit_Param fix
4814 tSCC zUltrix_Atexit_ParamName[] =
4815 "ultrix_atexit_param";
4818 * File name selection pattern
4820 tSCC zUltrix_Atexit_ParamList[] =
4823 * Machine/OS name selection pattern
4825 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
4828 * content selection pattern - do fix if pattern found
4830 tSCC zUltrix_Atexit_ParamSelect0[] =
4831 "atexit\\(.*\\(\\)";
4833 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
4834 static tTestDesc aUltrix_Atexit_ParamTests[] = {
4835 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
4838 * Fix Command Arguments for Ultrix_Atexit_Param
4840 static const char* apzUltrix_Atexit_ParamPatch[] = {
4842 "atexit( void (*__func)( void )",
4845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4847 * Description of Ultrix_Atof_Param fix
4849 tSCC zUltrix_Atof_ParamName[] =
4850 "ultrix_atof_param";
4853 * File name selection pattern
4855 tSCC zUltrix_Atof_ParamList[] =
4858 * Machine/OS name selection pattern
4860 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4863 * content selection pattern - do fix if pattern found
4865 tSCC zUltrix_Atof_ParamSelect0[] =
4866 "atof\\([ \t]*char";
4868 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4869 static tTestDesc aUltrix_Atof_ParamTests[] = {
4870 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4873 * Fix Command Arguments for Ultrix_Atof_Param
4875 static const char* apzUltrix_Atof_ParamPatch[] = {
4880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4882 * Description of Ultrix_Const fix
4884 tSCC zUltrix_ConstName[] =
4888 * File name selection pattern
4890 tSCC zUltrix_ConstList[] =
4893 * Machine/OS name selection pattern
4895 #define apzUltrix_ConstMachs (const char**)NULL
4898 * content selection pattern - do fix if pattern found
4900 tSCC zUltrix_ConstSelect0[] =
4901 "perror\\( char \\*";
4903 #define ULTRIX_CONST_TEST_CT 1
4904 static tTestDesc aUltrix_ConstTests[] = {
4905 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
4908 * Fix Command Arguments for Ultrix_Const
4910 static const char* apzUltrix_ConstPatch[] = {
4913 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
4916 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4918 * Description of Ultrix_Const2 fix
4920 tSCC zUltrix_Const2Name[] =
4924 * File name selection pattern
4926 tSCC zUltrix_Const2List[] =
4929 * Machine/OS name selection pattern
4931 #define apzUltrix_Const2Machs (const char**)NULL
4934 * content selection pattern - do fix if pattern found
4936 tSCC zUltrix_Const2Select0[] =
4937 "\\*fopen\\( char \\*";
4939 #define ULTRIX_CONST2_TEST_CT 1
4940 static tTestDesc aUltrix_Const2Tests[] = {
4941 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
4944 * Fix Command Arguments for Ultrix_Const2
4946 static const char* apzUltrix_Const2Patch[] = {
4948 "%1( const char *%3, const char *",
4949 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
4952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4954 * Description of Ultrix_Fix_Fixproto fix
4956 tSCC zUltrix_Fix_FixprotoName[] =
4957 "ultrix_fix_fixproto";
4960 * File name selection pattern
4962 tSCC zUltrix_Fix_FixprotoList[] =
4965 * Machine/OS name selection pattern
4967 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4970 * content selection pattern - do fix if pattern found
4972 tSCC zUltrix_Fix_FixprotoSelect0[] =
4975 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4976 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
4977 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4980 * Fix Command Arguments for Ultrix_Fix_Fixproto
4982 static const char* apzUltrix_Fix_FixprotoPatch[] = {
4986 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
4989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4991 * Description of Ultrix_Ifdef fix
4993 tSCC zUltrix_IfdefName[] =
4997 * File name selection pattern
4999 tSCC zUltrix_IfdefList[] =
5002 * Machine/OS name selection pattern
5004 #define apzUltrix_IfdefMachs (const char**)NULL
5007 * content selection pattern - do fix if pattern found
5009 tSCC zUltrix_IfdefSelect0[] =
5010 "^#ifdef KERNEL[ \t]+&&";
5012 #define ULTRIX_IFDEF_TEST_CT 1
5013 static tTestDesc aUltrix_IfdefTests[] = {
5014 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
5017 * Fix Command Arguments for Ultrix_Ifdef
5019 static const char* apzUltrix_IfdefPatch[] = {
5021 "#if defined(KERNEL) &&",
5024 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5026 * Description of Ultrix_Math_Ifdef fix
5028 tSCC zUltrix_Math_IfdefName[] =
5029 "ultrix_math_ifdef";
5032 * File name selection pattern
5034 tSCC zUltrix_Math_IfdefList[] =
5035 "|sys/limits.h|float.h|math.h|";
5037 * Machine/OS name selection pattern
5039 #define apzUltrix_Math_IfdefMachs (const char**)NULL
5042 * content selection pattern - do fix if pattern found
5044 tSCC zUltrix_Math_IfdefSelect0[] =
5045 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
5047 #define ULTRIX_MATH_IFDEF_TEST_CT 1
5048 static tTestDesc aUltrix_Math_IfdefTests[] = {
5049 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
5052 * Fix Command Arguments for Ultrix_Math_Ifdef
5054 static const char* apzUltrix_Math_IfdefPatch[] = {
5059 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5061 * Description of Ultrix_Nested_Ioctl fix
5063 tSCC zUltrix_Nested_IoctlName[] =
5064 "ultrix_nested_ioctl";
5067 * File name selection pattern
5069 tSCC zUltrix_Nested_IoctlList[] =
5072 * Machine/OS name selection pattern
5074 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
5077 * content selection pattern - do fix if pattern found
5079 tSCC zUltrix_Nested_IoctlSelect0[] =
5080 "^/\\* #define SIOCSCREEN";
5082 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
5083 static tTestDesc aUltrix_Nested_IoctlTests[] = {
5084 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
5087 * Fix Command Arguments for Ultrix_Nested_Ioctl
5089 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
5090 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
5093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5095 * Description of Ultrix_Nested_Svc fix
5097 tSCC zUltrix_Nested_SvcName[] =
5098 "ultrix_nested_svc";
5101 * File name selection pattern
5103 tSCC zUltrix_Nested_SvcList[] =
5106 * Machine/OS name selection pattern
5108 #define apzUltrix_Nested_SvcMachs (const char**)NULL
5111 * content selection pattern - do fix if pattern found
5113 tSCC zUltrix_Nested_SvcSelect0[] =
5114 "^ \\*[ \t]*int protocol; */\\*";
5116 #define ULTRIX_NESTED_SVC_TEST_CT 1
5117 static tTestDesc aUltrix_Nested_SvcTests[] = {
5118 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
5121 * Fix Command Arguments for Ultrix_Nested_Svc
5123 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
5124 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
5127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5129 * Description of Ultrix_Stat fix
5131 tSCC zUltrix_StatName[] =
5135 * File name selection pattern
5137 tSCC zUltrix_StatList[] =
5140 * Machine/OS name selection pattern
5142 #define apzUltrix_StatMachs (const char**)NULL
5145 * content selection pattern - do fix if pattern found
5147 tSCC zUltrix_StatSelect0[] =
5148 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
5150 #define ULTRIX_STAT_TEST_CT 1
5151 static tTestDesc aUltrix_StatTests[] = {
5152 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
5155 * Fix Command Arguments for Ultrix_Stat
5157 static const char* apzUltrix_StatPatch[] = { "sed",
5158 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
5160 /* macro to test for symbolic link */\\\n\
5161 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
5162 "-e", "/^[ \t]*fstat(),$/a\\\n\
5166 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5168 * Description of Ultrix_Static fix
5170 tSCC zUltrix_StaticName[] =
5174 * File name selection pattern
5176 tSCC zUltrix_StaticList[] =
5179 * Machine/OS name selection pattern
5181 #define apzUltrix_StaticMachs (const char**)NULL
5184 * content selection pattern - do fix if pattern found
5186 tSCC zUltrix_StaticSelect0[] =
5187 "#include \"r[34]_cpu";
5189 #define ULTRIX_STATIC_TEST_CT 1
5190 static tTestDesc aUltrix_StaticTests[] = {
5191 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
5194 * Fix Command Arguments for Ultrix_Static
5196 static const char* apzUltrix_StaticPatch[] = { "sed",
5197 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
5198 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
5199 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
5202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5204 * Description of Ultrix_Strings fix
5206 tSCC zUltrix_StringsName[] =
5210 * File name selection pattern
5212 tSCC zUltrix_StringsList[] =
5215 * Machine/OS name selection pattern
5217 #define apzUltrix_StringsMachs (const char**)NULL
5220 * content selection pattern - do fix if pattern found
5222 tSCC zUltrix_StringsSelect0[] =
5223 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
5225 #define ULTRIX_STRINGS_TEST_CT 1
5226 static tTestDesc aUltrix_StringsTests[] = {
5227 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
5230 * Fix Command Arguments for Ultrix_Strings
5232 static const char* apzUltrix_StringsPatch[] = {
5236 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5238 * Description of Undefine_Null fix
5240 tSCC zUndefine_NullName[] =
5244 * File name selection pattern
5246 #define zUndefine_NullList (char*)NULL
5248 * Machine/OS name selection pattern
5250 #define apzUndefine_NullMachs (const char**)NULL
5253 * content selection pattern - do fix if pattern found
5255 tSCC zUndefine_NullSelect0[] =
5256 "^#[ \t]*define[ \t]+NULL[ \t]";
5259 * content bypass pattern - skip fix if pattern found
5261 tSCC zUndefine_NullBypass0[] =
5262 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
5264 #define UNDEFINE_NULL_TEST_CT 2
5265 static tTestDesc aUndefine_NullTests[] = {
5266 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
5267 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
5270 * Fix Command Arguments for Undefine_Null
5272 static const char* apzUndefine_NullPatch[] = {
5277 "^#[ \t]*define[ \t]*[ \t]NULL([^\r\n\
5281 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5283 * Description of Unicosmk_Restrict fix
5285 tSCC zUnicosmk_RestrictName[] =
5286 "unicosmk_restrict";
5289 * File name selection pattern
5291 tSCC zUnicosmk_RestrictList[] =
5292 "|stdio.h|stdlib.h|wchar.h|";
5294 * Machine/OS name selection pattern
5296 tSCC* apzUnicosmk_RestrictMachs[] = {
5298 (const char*)NULL };
5301 * content selection pattern - do fix if pattern found
5303 tSCC zUnicosmk_RestrictSelect0[] =
5304 "(\\*[ \t]*)restrict([ \t]+)";
5306 #define UNICOSMK_RESTRICT_TEST_CT 1
5307 static tTestDesc aUnicosmk_RestrictTests[] = {
5308 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
5311 * Fix Command Arguments for Unicosmk_Restrict
5313 static const char* apzUnicosmk_RestrictPatch[] = {
5318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5320 * Description of Uw7_Byteorder_Fix fix
5322 tSCC zUw7_Byteorder_FixName[] =
5323 "uw7_byteorder_fix";
5326 * File name selection pattern
5328 tSCC zUw7_Byteorder_FixList[] =
5331 * Machine/OS name selection pattern
5333 tSCC* apzUw7_Byteorder_FixMachs[] = {
5337 "i?86-*-solaris2.[0-4]",
5338 "powerpcle-*-solaris2.[0-4]",
5339 "sparc-*-solaris2.[0-4]",
5340 (const char*)NULL };
5343 * content selection pattern - do fix if pattern found
5345 tSCC zUw7_Byteorder_FixSelect0[] =
5349 * perform the 'test' shell command - do fix on success
5351 tSCC zUw7_Byteorder_FixTest0[] =
5352 "-f sys/byteorder.h";
5354 #define UW7_BYTEORDER_FIX_TEST_CT 2
5355 static tTestDesc aUw7_Byteorder_FixTests[] = {
5356 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
5357 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
5360 * Fix Command Arguments for Uw7_Byteorder_Fix
5362 static const char* apzUw7_Byteorder_FixPatch[] = {
5365 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
5368 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5370 * Description of Va_I960_Macro fix
5372 tSCC zVa_I960_MacroName[] =
5376 * File name selection pattern
5378 tSCC zVa_I960_MacroList[] =
5379 "|arch/i960/archI960.h|";
5381 * Machine/OS name selection pattern
5383 #define apzVa_I960_MacroMachs (const char**)NULL
5386 * content selection pattern - do fix if pattern found
5388 tSCC zVa_I960_MacroSelect0[] =
5389 "__(vsiz|vali|vpad|alignof__)";
5391 #define VA_I960_MACRO_TEST_CT 1
5392 static tTestDesc aVa_I960_MacroTests[] = {
5393 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
5396 * Fix Command Arguments for Va_I960_Macro
5398 static const char* apzVa_I960_MacroPatch[] = {
5403 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5405 * Description of Void_Null fix
5407 tSCC zVoid_NullName[] =
5411 * File name selection pattern
5413 tSCC zVoid_NullList[] =
5414 "|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|";
5416 * Machine/OS name selection pattern
5418 #define apzVoid_NullMachs (const char**)NULL
5421 * content selection pattern - do fix if pattern found
5423 tSCC zVoid_NullSelect0[] =
5424 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
5426 #define VOID_NULL_TEST_CT 1
5427 static tTestDesc aVoid_NullTests[] = {
5428 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
5431 * Fix Command Arguments for Void_Null
5433 static const char* apzVoid_NullPatch[] = {
5438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5440 * Description of Vxworks_Gcc_Problem fix
5442 tSCC zVxworks_Gcc_ProblemName[] =
5443 "vxworks_gcc_problem";
5446 * File name selection pattern
5448 tSCC zVxworks_Gcc_ProblemList[] =
5449 "|types/vxTypesBase.h|";
5451 * Machine/OS name selection pattern
5453 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
5456 * content selection pattern - do fix if pattern found
5458 tSCC zVxworks_Gcc_ProblemSelect0[] =
5459 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
5461 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
5462 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
5463 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
5466 * Fix Command Arguments for Vxworks_Gcc_Problem
5468 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
5469 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
5470 "-e", "/[ \t]size_t/i\\\n\
5471 #ifndef _GCC_SIZE_T\\\n\
5472 #define _GCC_SIZE_T\n",
5473 "-e", "/[ \t]size_t/a\\\n\
5475 "-e", "/[ \t]ptrdiff_t/i\\\n\
5476 #ifndef _GCC_PTRDIFF_T\\\n\
5477 #define _GCC_PTRDIFF_T\n",
5478 "-e", "/[ \t]ptrdiff_t/a\\\n\
5480 "-e", "/[ \t]wchar_t/i\\\n\
5481 #ifndef _GCC_WCHAR_T\\\n\
5482 #define _GCC_WCHAR_T\n",
5483 "-e", "/[ \t]wchar_t/a\\\n\
5487 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5489 * Description of Vxworks_Needs_Vxtypes fix
5491 tSCC zVxworks_Needs_VxtypesName[] =
5492 "vxworks_needs_vxtypes";
5495 * File name selection pattern
5497 tSCC zVxworks_Needs_VxtypesList[] =
5500 * Machine/OS name selection pattern
5502 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
5505 * content selection pattern - do fix if pattern found
5507 tSCC zVxworks_Needs_VxtypesSelect0[] =
5508 "uint_t([ \t]+_clocks_per_sec)";
5510 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
5511 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
5512 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
5515 * Fix Command Arguments for Vxworks_Needs_Vxtypes
5517 static const char* apzVxworks_Needs_VxtypesPatch[] = {
5522 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5524 * Description of Vxworks_Needs_Vxworks fix
5526 tSCC zVxworks_Needs_VxworksName[] =
5527 "vxworks_needs_vxworks";
5530 * File name selection pattern
5532 tSCC zVxworks_Needs_VxworksList[] =
5535 * Machine/OS name selection pattern
5537 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
5540 * content selection pattern - do fix if pattern found
5542 tSCC zVxworks_Needs_VxworksSelect0[] =
5543 "#[ \t]define[ \t]+__INCstath";
5546 * perform the 'test' shell command - do fix on success
5548 tSCC zVxworks_Needs_VxworksTest0[] =
5549 " -r types/vxTypesOld.h";
5550 tSCC zVxworks_Needs_VxworksTest1[] =
5551 " -n \"`egrep '#include' $file`\"";
5552 tSCC zVxworks_Needs_VxworksTest2[] =
5553 " -n \"`egrep ULONG $file`\"";
5555 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
5556 static tTestDesc aVxworks_Needs_VxworksTests[] = {
5557 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
5558 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
5559 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
5560 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
5563 * Fix Command Arguments for Vxworks_Needs_Vxworks
5565 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
5566 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
5567 #include <types/vxTypesOld.h>\n",
5570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5572 * Description of Vxworks_Time fix
5574 tSCC zVxworks_TimeName[] =
5578 * File name selection pattern
5580 tSCC zVxworks_TimeList[] =
5583 * Machine/OS name selection pattern
5585 #define apzVxworks_TimeMachs (const char**)NULL
5588 * content selection pattern - do fix if pattern found
5590 tSCC zVxworks_TimeSelect0[] =
5591 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
5594 * perform the 'test' shell command - do fix on success
5596 tSCC zVxworks_TimeTest0[] =
5599 #define VXWORKS_TIME_TEST_CT 2
5600 static tTestDesc aVxworks_TimeTests[] = {
5601 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
5602 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
5605 * Fix Command Arguments for Vxworks_Time
5607 static const char* apzVxworks_TimePatch[] = {
5609 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
5610 #ifdef __cplusplus\n\
5611 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
5613 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
5615 #define __gcc_VOIDFUNCPTR_defined\n\
5617 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
5620 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5622 * Description of Windiss_Math1 fix
5624 tSCC zWindiss_Math1Name[] =
5628 * File name selection pattern
5630 tSCC zWindiss_Math1List[] =
5633 * Machine/OS name selection pattern
5635 tSCC* apzWindiss_Math1Machs[] = {
5637 (const char*)NULL };
5638 #define WINDISS_MATH1_TEST_CT 0
5639 #define aWindiss_Math1Tests (tTestDesc*)NULL
5642 * Fix Command Arguments for Windiss_Math1
5644 static const char* apzWindiss_Math1Patch[] = { "sed",
5645 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
5648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5650 * Description of Windiss_Math2 fix
5652 tSCC zWindiss_Math2Name[] =
5656 * File name selection pattern
5658 tSCC zWindiss_Math2List[] =
5661 * Machine/OS name selection pattern
5663 tSCC* apzWindiss_Math2Machs[] = {
5665 (const char*)NULL };
5666 #define WINDISS_MATH2_TEST_CT 0
5667 #define aWindiss_Math2Tests (tTestDesc*)NULL
5670 * Fix Command Arguments for Windiss_Math2
5672 static const char* apzWindiss_Math2Patch[] = { "sed",
5673 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
5676 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5678 * Description of Windiss_Valist fix
5680 tSCC zWindiss_ValistName[] =
5684 * File name selection pattern
5686 #define zWindiss_ValistList (char*)NULL
5688 * Machine/OS name selection pattern
5690 tSCC* apzWindiss_ValistMachs[] = {
5692 (const char*)NULL };
5695 * content selection pattern - do fix if pattern found
5697 tSCC zWindiss_ValistSelect0[] =
5698 "(#include.*)diab/va_list.h";
5700 #define WINDISS_VALIST_TEST_CT 1
5701 static tTestDesc aWindiss_ValistTests[] = {
5702 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
5705 * Fix Command Arguments for Windiss_Valist
5707 static const char* apzWindiss_ValistPatch[] = { "sed",
5708 "-e", "s|diab/va_list.h|stdarg.h|",
5711 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5713 * Description of X11_Class fix
5715 tSCC zX11_ClassName[] =
5719 * File name selection pattern
5721 tSCC zX11_ClassList[] =
5724 * Machine/OS name selection pattern
5726 #define apzX11_ClassMachs (const char**)NULL
5729 * content selection pattern - do fix if pattern found
5731 tSCC zX11_ClassSelect0[] =
5732 "^([ \t]*char \\*)class;(.*)";
5735 * content bypass pattern - skip fix if pattern found
5737 tSCC zX11_ClassBypass0[] =
5740 #define X11_CLASS_TEST_CT 2
5741 static tTestDesc aX11_ClassTests[] = {
5742 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
5743 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
5746 * Fix Command Arguments for X11_Class
5748 static const char* apzX11_ClassPatch[] = {
5750 "#ifdef __cplusplus\n\
5757 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5759 * Description of X11_Class_Usage fix
5761 tSCC zX11_Class_UsageName[] =
5765 * File name selection pattern
5767 tSCC zX11_Class_UsageList[] =
5768 "|Xm/BaseClassI.h|";
5770 * Machine/OS name selection pattern
5772 #define apzX11_Class_UsageMachs (const char**)NULL
5775 * content selection pattern - do fix if pattern found
5777 tSCC zX11_Class_UsageSelect0[] =
5781 * content bypass pattern - skip fix if pattern found
5783 tSCC zX11_Class_UsageBypass0[] =
5786 #define X11_CLASS_USAGE_TEST_CT 2
5787 static tTestDesc aX11_Class_UsageTests[] = {
5788 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
5789 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
5792 * Fix Command Arguments for X11_Class_Usage
5794 static const char* apzX11_Class_UsagePatch[] = {
5799 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5801 * Description of X11_New fix
5803 tSCC zX11_NewName[] =
5807 * File name selection pattern
5809 tSCC zX11_NewList[] =
5812 * Machine/OS name selection pattern
5814 #define apzX11_NewMachs (const char**)NULL
5817 * content bypass pattern - skip fix if pattern found
5819 tSCC zX11_NewBypass0[] =
5822 #define X11_NEW_TEST_CT 1
5823 static tTestDesc aX11_NewTests[] = {
5824 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
5827 * Fix Command Arguments for X11_New
5829 static const char* apzX11_NewPatch[] = { "sed",
5830 "-e", "/Widget\told, new;/i\\\n\
5831 #ifdef __cplusplus\\\n\
5832 \tWidget\told, c_new;\\\n\
5834 "-e", "/Widget\told, new;/a\\\n\
5836 "-e", "s/Widget new,/Widget c_new,/g",
5839 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5841 * Description of X11_Sprintf fix
5843 tSCC zX11_SprintfName[] =
5847 * File name selection pattern
5849 tSCC zX11_SprintfList[] =
5850 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
5852 * Machine/OS name selection pattern
5854 #define apzX11_SprintfMachs (const char**)NULL
5857 * content selection pattern - do fix if pattern found
5859 tSCC zX11_SprintfSelect0[] =
5860 "^extern char \\*\tsprintf\\(\\);$";
5862 #define X11_SPRINTF_TEST_CT 1
5863 static tTestDesc aX11_SprintfTests[] = {
5864 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
5867 * Fix Command Arguments for X11_Sprintf
5869 static const char* apzX11_SprintfPatch[] = {
5871 "#ifndef __STDC__\n\
5873 #endif /* !defined __STDC__ */",
5877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5881 #define REGEX_COUNT 161
5882 #define MACH_LIST_SIZE_LIMIT 261
5883 #define FIX_COUNT 149
5886 * Enumerate the fixes
5889 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
5890 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
5891 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
5892 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
5893 AAB_SUN_MEMCPY_FIXIDX,
5894 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
5895 AAB_ULTRIX_LIMITS_FIXIDX,
5896 AAB_ULTRIX_MEMORY_FIXIDX,
5897 AAB_ULTRIX_STRING_FIXIDX,
5899 AIX_SYSMACHINE_FIXIDX,
5901 AIX_VOLATILE_FIXIDX,
5902 ALPHA___ASSERT_FIXIDX,
5903 ALPHA___EXTERN_PREFIX_FIXIDX,
5904 ALPHA_ASSERT_FIXIDX,
5905 ALPHA_GETOPT_FIXIDX,
5906 ALPHA_PARENS_FIXIDX,
5908 AVOID_BOOL_DEFINE_FIXIDX,
5909 AVOID_BOOL_TYPE_FIXIDX,
5910 AVOID_WCHAR_T_TYPE_FIXIDX,
5912 BAD_STRUCT_TERM_FIXIDX,
5914 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
5915 BROKEN_ASSERT_STDIO_FIXIDX,
5916 BROKEN_ASSERT_STDLIB_FIXIDX,
5918 CTRL_QUOTES_DEF_FIXIDX,
5919 CTRL_QUOTES_USE_FIXIDX,
5921 DEC_INTERN_ASM_FIXIDX,
5922 DJGPP_WCHAR_H_FIXIDX,
5924 FREEBSD_GCC3_BREAKAGE_FIXIDX,
5928 HPUX10_CPP_POW_INLINE_FIXIDX,
5929 HPUX11_CPP_POW_INLINE_FIXIDX,
5930 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
5931 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
5933 HPUX11_FABSF_FIXIDX,
5934 HPUX11_SIZE_T_FIXIDX,
5935 HPUX11_UINT32_C_FIXIDX,
5936 HPUX11_VSNPRINTF_FIXIDX,
5937 HPUX8_BOGUS_INLINES_FIXIDX,
5938 HPUX_CTYPE_MACROS_FIXIDX,
5939 HPUX_LONG_DOUBLE_FIXIDX,
5941 HPUX_SYSTIME_FIXIDX,
5942 INT_ABORT_FREE_AND_EXIT_FIXIDX,
5943 IO_QUOTES_DEF_FIXIDX,
5944 IO_QUOTES_USE_FIXIDX,
5945 IP_MISSING_SEMI_FIXIDX,
5946 IRIX___RESTRICT_FIXIDX,
5947 IRIX_ASM_APOSTROPHE_FIXIDX,
5948 IRIX_LIMITS_CONST_FIXIDX,
5949 IRIX_SOCKLEN_T_FIXIDX,
5950 IRIX_STDIO_VA_LIST_FIXIDX,
5951 IRIX_WCSFTIME_FIXIDX,
5953 ISC_OMITS_WITH_STDC_FIXIDX,
5954 KANDR_CONCAT_FIXIDX,
5955 LIBC1_G_VA_LIST_FIXIDX,
5956 LIBC1_IFDEFD_MEMX_FIXIDX,
5957 LIMITS_IFNDEFS_FIXIDX,
5958 LYNX_VOID_INT_FIXIDX,
5959 LYNXOS_FCNTL_PROTO_FIXIDX,
5960 MACHINE_ANSI_H_VA_LIST_FIXIDX,
5961 MACHINE_NAME_FIXIDX,
5962 MATH_EXCEPTION_FIXIDX,
5963 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
5964 MATH_HUGE_VAL_IFNDEF_FIXIDX,
5965 NESTED_AUTH_DES_FIXIDX,
5966 NESTED_MOTOROLA_FIXIDX,
5967 NESTED_SYS_LIMITS_FIXIDX,
5968 NETBSD_EXTRA_SEMICOLON_FIXIDX,
5969 NEXT_MATH_PREFIX_FIXIDX,
5970 NEXT_TEMPLATE_FIXIDX,
5971 NEXT_VOLITILE_FIXIDX,
5972 NEXT_WAIT_UNION_FIXIDX,
5973 NODEENT_SYNTAX_FIXIDX,
5974 OSF_NAMESPACE_A_FIXIDX,
5975 OSF_NAMESPACE_C_FIXIDX,
5976 PTHREAD_PAGE_SIZE_FIXIDX,
5977 READ_RET_TYPE_FIXIDX,
5978 RS6000_DOUBLE_FIXIDX,
5979 RS6000_FCHMOD_FIXIDX,
5980 RS6000_PARAM_FIXIDX,
5981 SCO_STATIC_FUNC_FIXIDX,
5983 SOLARIS_MUTEX_INIT_1_FIXIDX,
5984 SOLARIS_MUTEX_INIT_2_FIXIDX,
5985 SOLARIS_STDIO_TAG_FIXIDX,
5986 SOLARIS_WIDEC_FIXIDX,
5988 STDIO_STDARG_H_FIXIDX,
5989 STDIO_VA_LIST_FIXIDX,
5990 STRICT_ANSI_NOT_FIXIDX,
5991 STRICT_ANSI_NOT_CTD_FIXIDX,
5992 STRICT_ANSI_ONLY_FIXIDX,
5994 STRUCT_SOCKADDR_FIXIDX,
5995 SUN_AUTH_PROTO_FIXIDX,
5996 SUN_BOGUS_IFDEF_FIXIDX,
5997 SUN_CATMACRO_FIXIDX,
5999 SUN_RUSERS_SEMI_FIXIDX,
6001 SUNOS_MATHERR_DECL_FIXIDX,
6002 SUNOS_STRLEN_FIXIDX,
6006 SYSV68_STRING_FIXIDX,
6007 SYSZ_STDLIB_FOR_SUN_FIXIDX,
6008 THREAD_KEYWORD_FIXIDX,
6009 TINFO_CPLUSPLUS_FIXIDX,
6010 ULTRIX_ATEXIT_PARAM_FIXIDX,
6011 ULTRIX_ATOF_PARAM_FIXIDX,
6012 ULTRIX_CONST_FIXIDX,
6013 ULTRIX_CONST2_FIXIDX,
6014 ULTRIX_FIX_FIXPROTO_FIXIDX,
6015 ULTRIX_IFDEF_FIXIDX,
6016 ULTRIX_MATH_IFDEF_FIXIDX,
6017 ULTRIX_NESTED_IOCTL_FIXIDX,
6018 ULTRIX_NESTED_SVC_FIXIDX,
6020 ULTRIX_STATIC_FIXIDX,
6021 ULTRIX_STRINGS_FIXIDX,
6022 UNDEFINE_NULL_FIXIDX,
6023 UNICOSMK_RESTRICT_FIXIDX,
6024 UW7_BYTEORDER_FIX_FIXIDX,
6025 VA_I960_MACRO_FIXIDX,
6027 VXWORKS_GCC_PROBLEM_FIXIDX,
6028 VXWORKS_NEEDS_VXTYPES_FIXIDX,
6029 VXWORKS_NEEDS_VXWORKS_FIXIDX,
6030 VXWORKS_TIME_FIXIDX,
6031 WINDISS_MATH1_FIXIDX,
6032 WINDISS_MATH2_FIXIDX,
6033 WINDISS_VALIST_FIXIDX,
6035 X11_CLASS_USAGE_FIXIDX,
6040 tFixDesc fixDescList[ FIX_COUNT ] = {
6041 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
6042 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
6043 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6044 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
6046 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
6047 apzAab_Fd_Zero_Gnu_Types_HMachs,
6048 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6049 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
6051 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
6052 apzAab_Fd_Zero_Selectbits_HMachs,
6053 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6054 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
6056 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
6057 apzAab_Solaris_Sys_Varargs_HMachs,
6058 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6059 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
6061 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
6062 apzAab_Sun_MemcpyMachs,
6063 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6064 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
6066 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
6067 apzAab_Ultrix_Ansi_CompatMachs,
6068 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6069 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
6071 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
6072 apzAab_Ultrix_LimitsMachs,
6073 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6074 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
6076 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
6077 apzAab_Ultrix_MemoryMachs,
6078 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6079 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
6081 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
6082 apzAab_Ultrix_StringMachs,
6083 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6084 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
6086 { zAix_PthreadName, zAix_PthreadList,
6087 apzAix_PthreadMachs,
6088 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6089 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
6091 { zAix_SysmachineName, zAix_SysmachineList,
6092 apzAix_SysmachineMachs,
6093 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6094 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
6096 { zAix_SyswaitName, zAix_SyswaitList,
6097 apzAix_SyswaitMachs,
6098 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6099 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
6101 { zAix_VolatileName, zAix_VolatileList,
6102 apzAix_VolatileMachs,
6103 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6104 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
6106 { zAlpha___AssertName, zAlpha___AssertList,
6107 apzAlpha___AssertMachs,
6108 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6109 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
6111 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
6112 apzAlpha___Extern_PrefixMachs,
6113 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6114 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
6116 { zAlpha_AssertName, zAlpha_AssertList,
6117 apzAlpha_AssertMachs,
6118 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6119 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
6121 { zAlpha_GetoptName, zAlpha_GetoptList,
6122 apzAlpha_GetoptMachs,
6123 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6124 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
6126 { zAlpha_ParensName, zAlpha_ParensList,
6127 apzAlpha_ParensMachs,
6128 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6129 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
6131 { zAlpha_SbrkName, zAlpha_SbrkList,
6133 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6134 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
6136 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
6137 apzAvoid_Bool_DefineMachs,
6138 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6139 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
6141 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
6142 apzAvoid_Bool_TypeMachs,
6143 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6144 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
6146 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
6147 apzAvoid_Wchar_T_TypeMachs,
6148 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6149 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
6151 { zBad_LvalName, zBad_LvalList,
6153 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
6154 aBad_LvalTests, apzBad_LvalPatch, 0 },
6156 { zBad_Struct_TermName, zBad_Struct_TermList,
6157 apzBad_Struct_TermMachs,
6158 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6159 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
6161 { zBadquoteName, zBadquoteList,
6163 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6164 aBadquoteTests, apzBadquotePatch, 0 },
6166 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
6167 apzBsd_Stdio_Attrs_ConflictMachs,
6168 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6169 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
6171 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
6172 apzBroken_Assert_StdioMachs,
6173 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6174 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
6176 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
6177 apzBroken_Assert_StdlibMachs,
6178 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6179 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
6181 { zBroken_CabsName, zBroken_CabsList,
6182 apzBroken_CabsMachs,
6183 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6184 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
6186 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
6187 apzCtrl_Quotes_DefMachs,
6188 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6189 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
6191 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
6192 apzCtrl_Quotes_UseMachs,
6193 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6194 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
6196 { zCxx_UnreadyName, zCxx_UnreadyList,
6197 apzCxx_UnreadyMachs,
6198 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6199 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
6201 { zDec_Intern_AsmName, zDec_Intern_AsmList,
6202 apzDec_Intern_AsmMachs,
6203 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
6204 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
6206 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
6207 apzDjgpp_Wchar_HMachs,
6208 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6209 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
6211 { zEcd_CursorName, zEcd_CursorList,
6213 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6214 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
6216 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
6217 apzFreebsd_Gcc3_BreakageMachs,
6218 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6219 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
6221 { zGnu_TypesName, zGnu_TypesList,
6223 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6224 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
6226 { zHp_InlineName, zHp_InlineList,
6228 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6229 aHp_InlineTests, apzHp_InlinePatch, 0 },
6231 { zHp_SysfileName, zHp_SysfileList,
6233 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6234 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
6236 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
6237 apzHpux10_Cpp_Pow_InlineMachs,
6238 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6239 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
6241 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
6242 apzHpux11_Cpp_Pow_InlineMachs,
6243 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6244 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
6246 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
6247 apzHpux10_Ctype_Declarations1Machs,
6248 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6249 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
6251 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
6252 apzHpux10_Ctype_Declarations2Machs,
6253 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6254 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
6256 { zHpux11_AbsName, zHpux11_AbsList,
6258 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6259 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
6261 { zHpux11_FabsfName, zHpux11_FabsfList,
6262 apzHpux11_FabsfMachs,
6263 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6264 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
6266 { zHpux11_Size_TName, zHpux11_Size_TList,
6267 apzHpux11_Size_TMachs,
6268 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6269 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
6271 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
6272 apzHpux11_Uint32_CMachs,
6273 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6274 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
6276 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
6277 apzHpux11_VsnprintfMachs,
6278 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6279 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
6281 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
6282 apzHpux8_Bogus_InlinesMachs,
6283 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
6284 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
6286 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
6287 apzHpux_Ctype_MacrosMachs,
6288 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6289 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
6291 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
6292 apzHpux_Long_DoubleMachs,
6293 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
6294 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
6296 { zHpux_MaxintName, zHpux_MaxintList,
6297 apzHpux_MaxintMachs,
6298 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6299 aHpux_MaxintTests, apzHpux_MaxintPatch, 0 },
6301 { zHpux_SystimeName, zHpux_SystimeList,
6302 apzHpux_SystimeMachs,
6303 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6304 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
6306 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
6307 apzInt_Abort_Free_And_ExitMachs,
6308 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6309 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
6311 { zIo_Quotes_DefName, zIo_Quotes_DefList,
6312 apzIo_Quotes_DefMachs,
6313 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6314 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
6316 { zIo_Quotes_UseName, zIo_Quotes_UseList,
6317 apzIo_Quotes_UseMachs,
6318 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6319 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
6321 { zIp_Missing_SemiName, zIp_Missing_SemiList,
6322 apzIp_Missing_SemiMachs,
6323 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
6324 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
6326 { zIrix___RestrictName, zIrix___RestrictList,
6327 apzIrix___RestrictMachs,
6328 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6329 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
6331 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
6332 apzIrix_Asm_ApostropheMachs,
6333 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6334 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
6336 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
6337 apzIrix_Limits_ConstMachs,
6338 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6339 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
6341 { zIrix_Socklen_TName, zIrix_Socklen_TList,
6342 apzIrix_Socklen_TMachs,
6343 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6344 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
6346 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
6347 apzIrix_Stdio_Va_ListMachs,
6348 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6349 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
6351 { zIrix_WcsftimeName, zIrix_WcsftimeList,
6352 apzIrix_WcsftimeMachs,
6353 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6354 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
6356 { zIsc_FmodName, zIsc_FmodList,
6358 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6359 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
6361 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
6362 apzIsc_Omits_With_StdcMachs,
6363 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6364 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
6366 { zKandr_ConcatName, zKandr_ConcatList,
6367 apzKandr_ConcatMachs,
6368 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6369 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
6371 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
6372 apzLibc1_G_Va_ListMachs,
6373 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6374 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
6376 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
6377 apzLibc1_Ifdefd_MemxMachs,
6378 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6379 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
6381 { zLimits_IfndefsName, zLimits_IfndefsList,
6382 apzLimits_IfndefsMachs,
6383 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6384 aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 },
6386 { zLynx_Void_IntName, zLynx_Void_IntList,
6387 apzLynx_Void_IntMachs,
6388 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6389 aLynx_Void_IntTests, apzLynx_Void_IntPatch, 0 },
6391 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
6392 apzLynxos_Fcntl_ProtoMachs,
6393 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6394 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch, 0 },
6396 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
6397 apzMachine_Ansi_H_Va_ListMachs,
6398 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6399 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
6401 { zMachine_NameName, zMachine_NameList,
6402 apzMachine_NameMachs,
6403 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6404 aMachine_NameTests, apzMachine_NamePatch, 0 },
6406 { zMath_ExceptionName, zMath_ExceptionList,
6407 apzMath_ExceptionMachs,
6408 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6409 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
6411 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
6412 apzMath_Huge_Val_From_Dbl_MaxMachs,
6413 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
6414 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
6416 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
6417 apzMath_Huge_Val_IfndefMachs,
6418 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6419 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch, 0 },
6421 { zNested_Auth_DesName, zNested_Auth_DesList,
6422 apzNested_Auth_DesMachs,
6423 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6424 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
6426 { zNested_MotorolaName, zNested_MotorolaList,
6427 apzNested_MotorolaMachs,
6428 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
6429 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
6431 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
6432 apzNested_Sys_LimitsMachs,
6433 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
6434 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
6436 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
6437 apzNetbsd_Extra_SemicolonMachs,
6438 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6439 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
6441 { zNext_Math_PrefixName, zNext_Math_PrefixList,
6442 apzNext_Math_PrefixMachs,
6443 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6444 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
6446 { zNext_TemplateName, zNext_TemplateList,
6447 apzNext_TemplateMachs,
6448 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6449 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
6451 { zNext_VolitileName, zNext_VolitileList,
6452 apzNext_VolitileMachs,
6453 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6454 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
6456 { zNext_Wait_UnionName, zNext_Wait_UnionList,
6457 apzNext_Wait_UnionMachs,
6458 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6459 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
6461 { zNodeent_SyntaxName, zNodeent_SyntaxList,
6462 apzNodeent_SyntaxMachs,
6463 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6464 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
6466 { zOsf_Namespace_AName, zOsf_Namespace_AList,
6467 apzOsf_Namespace_AMachs,
6468 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6469 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
6471 { zOsf_Namespace_CName, zOsf_Namespace_CList,
6472 apzOsf_Namespace_CMachs,
6473 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6474 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
6476 { zPthread_Page_SizeName, zPthread_Page_SizeList,
6477 apzPthread_Page_SizeMachs,
6478 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6479 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
6481 { zRead_Ret_TypeName, zRead_Ret_TypeList,
6482 apzRead_Ret_TypeMachs,
6483 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6484 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
6486 { zRs6000_DoubleName, zRs6000_DoubleList,
6487 apzRs6000_DoubleMachs,
6488 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6489 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
6491 { zRs6000_FchmodName, zRs6000_FchmodList,
6492 apzRs6000_FchmodMachs,
6493 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6494 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
6496 { zRs6000_ParamName, zRs6000_ParamList,
6497 apzRs6000_ParamMachs,
6498 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6499 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
6501 { zSco_Static_FuncName, zSco_Static_FuncList,
6502 apzSco_Static_FuncMachs,
6503 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
6504 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
6506 { zSco_UtimeName, zSco_UtimeList,
6508 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6509 aSco_UtimeTests, apzSco_UtimePatch, 0 },
6511 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List,
6512 apzSolaris_Mutex_Init_1Machs,
6513 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
6514 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 },
6516 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
6517 apzSolaris_Mutex_Init_2Machs,
6518 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6519 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
6521 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
6522 apzSolaris_Stdio_TagMachs,
6523 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
6524 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
6526 { zSolaris_WidecName, zSolaris_WidecList,
6527 apzSolaris_WidecMachs,
6528 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6529 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
6531 { zStatsswtchName, zStatsswtchList,
6533 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6534 aStatsswtchTests, apzStatsswtchPatch, 0 },
6536 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
6537 apzStdio_Stdarg_HMachs,
6538 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6539 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
6541 { zStdio_Va_ListName, zStdio_Va_ListList,
6542 apzStdio_Va_ListMachs,
6543 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
6544 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
6546 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
6547 apzStrict_Ansi_NotMachs,
6548 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6549 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
6551 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
6552 apzStrict_Ansi_Not_CtdMachs,
6553 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6554 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
6556 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
6557 apzStrict_Ansi_OnlyMachs,
6558 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6559 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
6561 { zStruct_FileName, zStruct_FileList,
6562 apzStruct_FileMachs,
6563 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6564 aStruct_FileTests, apzStruct_FilePatch, 0 },
6566 { zStruct_SockaddrName, zStruct_SockaddrList,
6567 apzStruct_SockaddrMachs,
6568 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6569 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
6571 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
6572 apzSun_Auth_ProtoMachs,
6573 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6574 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
6576 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
6577 apzSun_Bogus_IfdefMachs,
6578 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6579 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
6581 { zSun_CatmacroName, zSun_CatmacroList,
6582 apzSun_CatmacroMachs,
6583 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6584 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
6586 { zSun_MallocName, zSun_MallocList,
6588 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
6589 aSun_MallocTests, apzSun_MallocPatch, 0 },
6591 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
6592 apzSun_Rusers_SemiMachs,
6593 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
6594 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
6596 { zSun_SignalName, zSun_SignalList,
6598 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6599 aSun_SignalTests, apzSun_SignalPatch, 0 },
6601 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
6602 apzSunos_Matherr_DeclMachs,
6603 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6604 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch, 0 },
6606 { zSunos_StrlenName, zSunos_StrlenList,
6607 apzSunos_StrlenMachs,
6608 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6609 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
6611 { zSvr4__PName, zSvr4__PList,
6613 SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6614 aSvr4__PTests, apzSvr4__PPatch, 0 },
6616 { zSvr4_GetcwdName, zSvr4_GetcwdList,
6617 apzSvr4_GetcwdMachs,
6618 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6619 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
6621 { zSvr4_ProfilName, zSvr4_ProfilList,
6622 apzSvr4_ProfilMachs,
6623 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6624 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
6626 { zSysv68_StringName, zSysv68_StringList,
6627 apzSysv68_StringMachs,
6628 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
6629 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
6631 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
6632 apzSysz_Stdlib_For_SunMachs,
6633 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6634 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
6636 { zThread_KeywordName, zThread_KeywordList,
6637 apzThread_KeywordMachs,
6638 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6639 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
6641 { zTinfo_CplusplusName, zTinfo_CplusplusList,
6642 apzTinfo_CplusplusMachs,
6643 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6644 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
6646 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
6647 apzUltrix_Atexit_ParamMachs,
6648 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6649 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
6651 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
6652 apzUltrix_Atof_ParamMachs,
6653 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6654 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
6656 { zUltrix_ConstName, zUltrix_ConstList,
6657 apzUltrix_ConstMachs,
6658 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6659 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
6661 { zUltrix_Const2Name, zUltrix_Const2List,
6662 apzUltrix_Const2Machs,
6663 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6664 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
6666 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
6667 apzUltrix_Fix_FixprotoMachs,
6668 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6669 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
6671 { zUltrix_IfdefName, zUltrix_IfdefList,
6672 apzUltrix_IfdefMachs,
6673 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6674 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
6676 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
6677 apzUltrix_Math_IfdefMachs,
6678 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6679 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
6681 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
6682 apzUltrix_Nested_IoctlMachs,
6683 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
6684 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
6686 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
6687 apzUltrix_Nested_SvcMachs,
6688 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
6689 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
6691 { zUltrix_StatName, zUltrix_StatList,
6692 apzUltrix_StatMachs,
6693 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
6694 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
6696 { zUltrix_StaticName, zUltrix_StaticList,
6697 apzUltrix_StaticMachs,
6698 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
6699 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
6701 { zUltrix_StringsName, zUltrix_StringsList,
6702 apzUltrix_StringsMachs,
6703 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6704 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
6706 { zUndefine_NullName, zUndefine_NullList,
6707 apzUndefine_NullMachs,
6708 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6709 aUndefine_NullTests, apzUndefine_NullPatch, 0 },
6711 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
6712 apzUnicosmk_RestrictMachs,
6713 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6714 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
6716 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
6717 apzUw7_Byteorder_FixMachs,
6718 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6719 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
6721 { zVa_I960_MacroName, zVa_I960_MacroList,
6722 apzVa_I960_MacroMachs,
6723 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6724 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
6726 { zVoid_NullName, zVoid_NullList,
6728 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6729 aVoid_NullTests, apzVoid_NullPatch, 0 },
6731 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
6732 apzVxworks_Gcc_ProblemMachs,
6733 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
6734 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
6736 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
6737 apzVxworks_Needs_VxtypesMachs,
6738 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6739 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
6741 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
6742 apzVxworks_Needs_VxworksMachs,
6743 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
6744 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
6746 { zVxworks_TimeName, zVxworks_TimeList,
6747 apzVxworks_TimeMachs,
6748 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6749 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
6751 { zWindiss_Math1Name, zWindiss_Math1List,
6752 apzWindiss_Math1Machs,
6753 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
6754 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
6756 { zWindiss_Math2Name, zWindiss_Math2List,
6757 apzWindiss_Math2Machs,
6758 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
6759 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
6761 { zWindiss_ValistName, zWindiss_ValistList,
6762 apzWindiss_ValistMachs,
6763 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
6764 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
6766 { zX11_ClassName, zX11_ClassList,
6768 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6769 aX11_ClassTests, apzX11_ClassPatch, 0 },
6771 { zX11_Class_UsageName, zX11_Class_UsageList,
6772 apzX11_Class_UsageMachs,
6773 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6774 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
6776 { zX11_NewName, zX11_NewList,
6778 X11_NEW_TEST_CT, FD_MACH_ONLY,
6779 aX11_NewTests, apzX11_NewPatch, 0 },
6781 { zX11_SprintfName, zX11_SprintfList,
6782 apzX11_SprintfMachs,
6783 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6784 aX11_SprintfTests, apzX11_SprintfPatch, 0 }