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 138 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_Assert fix
716 tSCC zAlpha_AssertName[] =
720 * File name selection pattern
722 tSCC zAlpha_AssertList[] =
725 * Machine/OS name selection pattern
727 #define apzAlpha_AssertMachs (const char**)NULL
730 * content selection pattern - do fix if pattern found
732 tSCC zAlpha_AssertSelect0[] =
733 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
735 #define ALPHA_ASSERT_TEST_CT 1
736 static tTestDesc aAlpha_AssertTests[] = {
737 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
740 * Fix Command Arguments for Alpha_Assert
742 static const char* apzAlpha_AssertPatch[] = {
747 /* * * * * * * * * * * * * * * * * * * * * * * * * *
749 * Description of Alpha_Getopt fix
751 tSCC zAlpha_GetoptName[] =
755 * File name selection pattern
757 tSCC zAlpha_GetoptList[] =
758 "|stdio.h|stdlib.h|";
760 * Machine/OS name selection pattern
762 #define apzAlpha_GetoptMachs (const char**)NULL
765 * content selection pattern - do fix if pattern found
767 tSCC zAlpha_GetoptSelect0[] =
768 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
770 #define ALPHA_GETOPT_TEST_CT 1
771 static tTestDesc aAlpha_GetoptTests[] = {
772 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
775 * Fix Command Arguments for Alpha_Getopt
777 static const char* apzAlpha_GetoptPatch[] = {
779 "getopt(int, char *const[], const char *)",
782 /* * * * * * * * * * * * * * * * * * * * * * * * * *
784 * Description of Alpha_Parens fix
786 tSCC zAlpha_ParensName[] =
790 * File name selection pattern
792 tSCC zAlpha_ParensList[] =
795 * Machine/OS name selection pattern
797 #define apzAlpha_ParensMachs (const char**)NULL
800 * content selection pattern - do fix if pattern found
802 tSCC zAlpha_ParensSelect0[] =
803 "#ifndef\\(__mips64\\)";
805 #define ALPHA_PARENS_TEST_CT 1
806 static tTestDesc aAlpha_ParensTests[] = {
807 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
810 * Fix Command Arguments for Alpha_Parens
812 static const char* apzAlpha_ParensPatch[] = {
817 /* * * * * * * * * * * * * * * * * * * * * * * * * *
819 * Description of Alpha_Sbrk fix
821 tSCC zAlpha_SbrkName[] =
825 * File name selection pattern
827 tSCC zAlpha_SbrkList[] =
830 * Machine/OS name selection pattern
832 #define apzAlpha_SbrkMachs (const char**)NULL
835 * content selection pattern - do fix if pattern found
837 tSCC zAlpha_SbrkSelect0[] =
838 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
840 #define ALPHA_SBRK_TEST_CT 1
841 static tTestDesc aAlpha_SbrkTests[] = {
842 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
845 * Fix Command Arguments for Alpha_Sbrk
847 static const char* apzAlpha_SbrkPatch[] = {
852 /* * * * * * * * * * * * * * * * * * * * * * * * * *
854 * Description of Avoid_Bool_Define fix
856 tSCC zAvoid_Bool_DefineName[] =
860 * File name selection pattern
862 tSCC zAvoid_Bool_DefineList[] =
863 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
865 * Machine/OS name selection pattern
867 #define apzAvoid_Bool_DefineMachs (const char**)NULL
870 * content selection pattern - do fix if pattern found
872 tSCC zAvoid_Bool_DefineSelect0[] =
873 "#[ \t]*define[ \t]+bool[ \t]";
876 * content bypass pattern - skip fix if pattern found
878 tSCC zAvoid_Bool_DefineBypass0[] =
879 "we must use the C\\+\\+ compiler's type";
881 #define AVOID_BOOL_DEFINE_TEST_CT 2
882 static tTestDesc aAvoid_Bool_DefineTests[] = {
883 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
884 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
887 * Fix Command Arguments for Avoid_Bool_Define
889 static const char* apzAvoid_Bool_DefinePatch[] = {
891 "#ifndef __cplusplus\n\
894 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
899 * Description of Avoid_Bool_Type fix
901 tSCC zAvoid_Bool_TypeName[] =
905 * File name selection pattern
907 tSCC zAvoid_Bool_TypeList[] =
908 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
910 * Machine/OS name selection pattern
912 #define apzAvoid_Bool_TypeMachs (const char**)NULL
915 * content selection pattern - do fix if pattern found
917 tSCC zAvoid_Bool_TypeSelect0[] =
918 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
921 * content bypass pattern - skip fix if pattern found
923 tSCC zAvoid_Bool_TypeBypass0[] =
924 "we must use the C\\+\\+ compiler's type";
926 #define AVOID_BOOL_TYPE_TEST_CT 2
927 static tTestDesc aAvoid_Bool_TypeTests[] = {
928 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
929 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
932 * Fix Command Arguments for Avoid_Bool_Type
934 static const char* apzAvoid_Bool_TypePatch[] = {
936 "#ifndef __cplusplus\n\
941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
943 * Description of Avoid_Wchar_T_Type fix
945 tSCC zAvoid_Wchar_T_TypeName[] =
946 "avoid_wchar_t_type";
949 * File name selection pattern
951 #define zAvoid_Wchar_T_TypeList (char*)NULL
953 * Machine/OS name selection pattern
955 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
958 * content selection pattern - do fix if pattern found
960 tSCC zAvoid_Wchar_T_TypeSelect0[] =
961 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
963 #define AVOID_WCHAR_T_TYPE_TEST_CT 1
964 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
965 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
968 * Fix Command Arguments for Avoid_Wchar_T_Type
970 static const char* apzAvoid_Wchar_T_TypePatch[] = {
972 "#ifndef __cplusplus\n\
977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
979 * Description of Bad_Lval fix
981 tSCC zBad_LvalName[] =
985 * File name selection pattern
987 tSCC zBad_LvalList[] =
988 "|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|";
990 * Machine/OS name selection pattern
992 #define apzBad_LvalMachs (const char**)NULL
995 * content selection pattern - do fix if pattern found
997 tSCC zBad_LvalSelect0[] =
998 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1000 #define BAD_LVAL_TEST_CT 1
1001 static tTestDesc aBad_LvalTests[] = {
1002 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
1005 * Fix Command Arguments for Bad_Lval
1007 static const char* apzBad_LvalPatch[] = { "sed",
1008 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1013 * Description of Bad_Struct_Term fix
1015 tSCC zBad_Struct_TermName[] =
1019 * File name selection pattern
1021 tSCC zBad_Struct_TermList[] =
1024 * Machine/OS name selection pattern
1026 #define apzBad_Struct_TermMachs (const char**)NULL
1029 * content selection pattern - do fix if pattern found
1031 tSCC zBad_Struct_TermSelect0[] =
1032 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1034 #define BAD_STRUCT_TERM_TEST_CT 1
1035 static tTestDesc aBad_Struct_TermTests[] = {
1036 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1039 * Fix Command Arguments for Bad_Struct_Term
1041 static const char* apzBad_Struct_TermPatch[] = {
1046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1048 * Description of Badquote fix
1050 tSCC zBadquoteName[] =
1054 * File name selection pattern
1056 tSCC zBadquoteList[] =
1057 "|sundev/vuid_event.h|";
1059 * Machine/OS name selection pattern
1061 #define apzBadquoteMachs (const char**)NULL
1064 * content selection pattern - do fix if pattern found
1066 tSCC zBadquoteSelect0[] =
1069 #define BADQUOTE_TEST_CT 1
1070 static tTestDesc aBadquoteTests[] = {
1071 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1074 * Fix Command Arguments for Badquote
1076 static const char* apzBadquotePatch[] = {
1081 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1083 * Description of Broken_Assert_Stdio fix
1085 tSCC zBroken_Assert_StdioName[] =
1086 "broken_assert_stdio";
1089 * File name selection pattern
1091 tSCC zBroken_Assert_StdioList[] =
1094 * Machine/OS name selection pattern
1096 #define apzBroken_Assert_StdioMachs (const char**)NULL
1099 * content selection pattern - do fix if pattern found
1101 tSCC zBroken_Assert_StdioSelect0[] =
1105 * content bypass pattern - skip fix if pattern found
1107 tSCC zBroken_Assert_StdioBypass0[] =
1108 "include.*stdio\\.h";
1110 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1111 static tTestDesc aBroken_Assert_StdioTests[] = {
1112 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1113 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1116 * Fix Command Arguments for Broken_Assert_Stdio
1118 static const char* apzBroken_Assert_StdioPatch[] = {
1120 "#include <stdio.h>\n",
1123 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1125 * Description of Broken_Assert_Stdlib fix
1127 tSCC zBroken_Assert_StdlibName[] =
1128 "broken_assert_stdlib";
1131 * File name selection pattern
1133 tSCC zBroken_Assert_StdlibList[] =
1136 * Machine/OS name selection pattern
1138 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1141 * content selection pattern - do fix if pattern found
1143 tSCC zBroken_Assert_StdlibSelect0[] =
1144 "exit *\\(|abort *\\(";
1147 * content bypass pattern - skip fix if pattern found
1149 tSCC zBroken_Assert_StdlibBypass0[] =
1150 "include.*stdlib\\.h";
1152 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1153 static tTestDesc aBroken_Assert_StdlibTests[] = {
1154 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1155 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1158 * Fix Command Arguments for Broken_Assert_Stdlib
1160 static const char* apzBroken_Assert_StdlibPatch[] = {
1162 "#ifdef __cplusplus\n\
1163 #include <stdlib.h>\n\
1167 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1169 * Description of Broken_Cabs fix
1171 tSCC zBroken_CabsName[] =
1175 * File name selection pattern
1177 tSCC zBroken_CabsList[] =
1180 * Machine/OS name selection pattern
1182 #define apzBroken_CabsMachs (const char**)NULL
1185 * content selection pattern - do fix if pattern found
1187 tSCC zBroken_CabsSelect0[] =
1188 "^extern[ \\t]+double[ \\t]+cabs";
1190 #define BROKEN_CABS_TEST_CT 1
1191 static tTestDesc aBroken_CabsTests[] = {
1192 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1195 * Fix Command Arguments for Broken_Cabs
1197 static const char* apzBroken_CabsPatch[] = {
1200 "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);",
1203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1205 * Description of Ctrl_Quotes_Def fix
1207 tSCC zCtrl_Quotes_DefName[] =
1211 * File name selection pattern
1213 #define zCtrl_Quotes_DefList (char*)NULL
1215 * Machine/OS name selection pattern
1217 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1220 * content selection pattern - do fix if pattern found
1222 tSCC zCtrl_Quotes_DefSelect0[] =
1223 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1225 #define CTRL_QUOTES_DEF_TEST_CT 1
1226 static tTestDesc aCtrl_Quotes_DefTests[] = {
1227 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1230 * Fix Command Arguments for Ctrl_Quotes_Def
1232 static const char* apzCtrl_Quotes_DefPatch[] = {
1237 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1239 * Description of Ctrl_Quotes_Use fix
1241 tSCC zCtrl_Quotes_UseName[] =
1245 * File name selection pattern
1247 #define zCtrl_Quotes_UseList (char*)NULL
1249 * Machine/OS name selection pattern
1251 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1254 * content selection pattern - do fix if pattern found
1256 tSCC zCtrl_Quotes_UseSelect0[] =
1257 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1259 #define CTRL_QUOTES_USE_TEST_CT 1
1260 static tTestDesc aCtrl_Quotes_UseTests[] = {
1261 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1264 * Fix Command Arguments for Ctrl_Quotes_Use
1266 static const char* apzCtrl_Quotes_UsePatch[] = {
1271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1273 * Description of Cxx_Unready fix
1275 tSCC zCxx_UnreadyName[] =
1279 * File name selection pattern
1281 tSCC zCxx_UnreadyList[] =
1282 "|sys/mman.h|rpc/types.h|";
1284 * Machine/OS name selection pattern
1286 #define apzCxx_UnreadyMachs (const char**)NULL
1289 * content selection pattern - do fix if pattern found
1291 tSCC zCxx_UnreadySelect0[] =
1295 * content bypass pattern - skip fix if pattern found
1297 tSCC zCxx_UnreadyBypass0[] =
1298 "\"C\"|__BEGIN_DECLS";
1300 #define CXX_UNREADY_TEST_CT 2
1301 static tTestDesc aCxx_UnreadyTests[] = {
1302 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1303 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1306 * Fix Command Arguments for Cxx_Unready
1308 static const char* apzCxx_UnreadyPatch[] = {
1310 "#ifdef __cplusplus\n\
1313 "#ifdef __cplusplus\n\
1318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1320 * Description of Dec_Intern_Asm fix
1322 tSCC zDec_Intern_AsmName[] =
1326 * File name selection pattern
1328 tSCC zDec_Intern_AsmList[] =
1331 * Machine/OS name selection pattern
1333 #define apzDec_Intern_AsmMachs (const char**)NULL
1334 #define DEC_INTERN_ASM_TEST_CT 0
1335 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1338 * Fix Command Arguments for Dec_Intern_Asm
1340 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1341 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1343 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1349 * Description of Djgpp_Wchar_H fix
1351 tSCC zDjgpp_Wchar_HName[] =
1355 * File name selection pattern
1357 #define zDjgpp_Wchar_HList (char*)NULL
1359 * Machine/OS name selection pattern
1361 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1364 * content selection pattern - do fix if pattern found
1366 tSCC zDjgpp_Wchar_HSelect0[] =
1370 * content bypass pattern - skip fix if pattern found
1372 tSCC zDjgpp_Wchar_HBypass0[] =
1375 #define DJGPP_WCHAR_H_TEST_CT 2
1376 static tTestDesc aDjgpp_Wchar_HTests[] = {
1377 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1378 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1381 * Fix Command Arguments for Djgpp_Wchar_H
1383 static const char* apzDjgpp_Wchar_HPatch[] = {
1386 #include <sys/djtypes.h>",
1387 "#include <stddef.h>",
1390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1392 * Description of Ecd_Cursor fix
1394 tSCC zEcd_CursorName[] =
1398 * File name selection pattern
1400 tSCC zEcd_CursorList[] =
1401 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1403 * Machine/OS name selection pattern
1405 #define apzEcd_CursorMachs (const char**)NULL
1408 * content selection pattern - do fix if pattern found
1410 tSCC zEcd_CursorSelect0[] =
1413 #define ECD_CURSOR_TEST_CT 1
1414 static tTestDesc aEcd_CursorTests[] = {
1415 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1418 * Fix Command Arguments for Ecd_Cursor
1420 static const char* apzEcd_CursorPatch[] = {
1425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1427 * Description of Freebsd_Gcc3_Breakage fix
1429 tSCC zFreebsd_Gcc3_BreakageName[] =
1430 "freebsd_gcc3_breakage";
1433 * File name selection pattern
1435 tSCC zFreebsd_Gcc3_BreakageList[] =
1438 * Machine/OS name selection pattern
1440 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1442 (const char*)NULL };
1445 * content selection pattern - do fix if pattern found
1447 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1448 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1451 * content bypass pattern - skip fix if pattern found
1453 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1454 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1456 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1457 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1458 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1459 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1462 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1464 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1466 "%0 || __GNUC__ >= 3",
1469 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1471 * Description of Gnu_Types fix
1473 tSCC zGnu_TypesName[] =
1477 * File name selection pattern
1479 tSCC zGnu_TypesList[] =
1480 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1482 * Machine/OS name selection pattern
1484 #define apzGnu_TypesMachs (const char**)NULL
1487 * content selection pattern - do fix if pattern found
1489 tSCC zGnu_TypesSelect0[] =
1490 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1493 * content bypass pattern - skip fix if pattern found
1495 tSCC zGnu_TypesBypass0[] =
1496 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1498 #define GNU_TYPES_TEST_CT 2
1499 static tTestDesc aGnu_TypesTests[] = {
1500 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
1501 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
1504 * Fix Command Arguments for Gnu_Types
1506 static const char* apzGnu_TypesPatch[] = {
1510 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1512 * Description of Hp_Inline fix
1514 tSCC zHp_InlineName[] =
1518 * File name selection pattern
1520 tSCC zHp_InlineList[] =
1521 "|sys/spinlock.h|machine/machparam.h|";
1523 * Machine/OS name selection pattern
1525 #define apzHp_InlineMachs (const char**)NULL
1528 * content selection pattern - do fix if pattern found
1530 tSCC zHp_InlineSelect0[] =
1531 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1533 #define HP_INLINE_TEST_CT 1
1534 static tTestDesc aHp_InlineTests[] = {
1535 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1538 * Fix Command Arguments for Hp_Inline
1540 static const char* apzHp_InlinePatch[] = {
1543 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1546 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1548 * Description of Hp_Sysfile fix
1550 tSCC zHp_SysfileName[] =
1554 * File name selection pattern
1556 tSCC zHp_SysfileList[] =
1559 * Machine/OS name selection pattern
1561 #define apzHp_SysfileMachs (const char**)NULL
1564 * content selection pattern - do fix if pattern found
1566 tSCC zHp_SysfileSelect0[] =
1569 #define HP_SYSFILE_TEST_CT 1
1570 static tTestDesc aHp_SysfileTests[] = {
1571 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1574 * Fix Command Arguments for Hp_Sysfile
1576 static const char* apzHp_SysfilePatch[] = {
1578 "(struct file *, ...)",
1582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1584 * Description of Hpux10_Cpp_Pow_Inline fix
1586 tSCC zHpux10_Cpp_Pow_InlineName[] =
1587 "hpux10_cpp_pow_inline";
1590 * File name selection pattern
1592 tSCC zHpux10_Cpp_Pow_InlineList[] =
1593 "|fixinc-test-limits.h|math.h|";
1595 * Machine/OS name selection pattern
1597 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
1600 * content selection pattern - do fix if pattern found
1602 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
1603 "^# +ifdef +__cplusplus\n\
1605 +inline +double +pow\\(double +__d,int +__expon\\) +{\n\
1606 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
1608 +extern +\"C\" +{\n\
1612 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
1613 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
1614 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1617 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
1619 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
1624 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1626 * Description of Hpux11_Cpp_Pow_Inline fix
1628 tSCC zHpux11_Cpp_Pow_InlineName[] =
1629 "hpux11_cpp_pow_inline";
1632 * File name selection pattern
1634 tSCC zHpux11_Cpp_Pow_InlineList[] =
1637 * Machine/OS name selection pattern
1639 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
1642 * content selection pattern - do fix if pattern found
1644 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
1645 " +inline double pow\\(double d,int expon\\) {\n\
1646 +return pow\\(d, \\(double\\)expon\\);\n\
1649 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
1650 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
1651 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1654 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
1656 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
1661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1663 * Description of Hpux11_Abs fix
1665 tSCC zHpux11_AbsName[] =
1669 * File name selection pattern
1671 tSCC zHpux11_AbsList[] =
1674 * Machine/OS name selection pattern
1676 tSCC* apzHpux11_AbsMachs[] = {
1678 (const char*)NULL };
1681 * content selection pattern - do fix if pattern found
1683 tSCC zHpux11_AbsSelect0[] =
1684 "ifndef _MATH_INCLUDED";
1686 #define HPUX11_ABS_TEST_CT 1
1687 static tTestDesc aHpux11_AbsTests[] = {
1688 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
1691 * Fix Command Arguments for Hpux11_Abs
1693 static const char* apzHpux11_AbsPatch[] = {
1695 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
1698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1700 * Description of Hpux11_Fabsf fix
1702 tSCC zHpux11_FabsfName[] =
1706 * File name selection pattern
1708 tSCC zHpux11_FabsfList[] =
1711 * Machine/OS name selection pattern
1713 #define apzHpux11_FabsfMachs (const char**)NULL
1716 * content selection pattern - do fix if pattern found
1718 tSCC zHpux11_FabsfSelect0[] =
1719 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
1722 * content bypass pattern - skip fix if pattern found
1724 tSCC zHpux11_FabsfBypass0[] =
1727 #define HPUX11_FABSF_TEST_CT 2
1728 static tTestDesc aHpux11_FabsfTests[] = {
1729 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
1730 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
1733 * Fix Command Arguments for Hpux11_Fabsf
1735 static const char* apzHpux11_FabsfPatch[] = {
1737 "#ifndef __cplusplus\n\
1742 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1744 * Description of Hpux11_Size_T fix
1746 tSCC zHpux11_Size_TName[] =
1750 * File name selection pattern
1752 #define zHpux11_Size_TList (char*)NULL
1754 * Machine/OS name selection pattern
1756 tSCC* apzHpux11_Size_TMachs[] = {
1758 (const char*)NULL };
1761 * content selection pattern - do fix if pattern found
1763 tSCC zHpux11_Size_TSelect0[] =
1766 #define HPUX11_SIZE_T_TEST_CT 1
1767 static tTestDesc aHpux11_Size_TTests[] = {
1768 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
1771 * Fix Command Arguments for Hpux11_Size_T
1773 static const char* apzHpux11_Size_TPatch[] = {
1778 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1780 * Description of Hpux11_Uint32_C fix
1782 tSCC zHpux11_Uint32_CName[] =
1786 * File name selection pattern
1788 tSCC zHpux11_Uint32_CList[] =
1791 * Machine/OS name selection pattern
1793 #define apzHpux11_Uint32_CMachs (const char**)NULL
1796 * content selection pattern - do fix if pattern found
1798 tSCC zHpux11_Uint32_CSelect0[] =
1799 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1801 #define HPUX11_UINT32_C_TEST_CT 1
1802 static tTestDesc aHpux11_Uint32_CTests[] = {
1803 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1806 * Fix Command Arguments for Hpux11_Uint32_C
1808 static const char* apzHpux11_Uint32_CPatch[] = {
1810 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
1813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1815 * Description of Hpux11_Vsnprintf fix
1817 tSCC zHpux11_VsnprintfName[] =
1821 * File name selection pattern
1823 tSCC zHpux11_VsnprintfList[] =
1826 * Machine/OS name selection pattern
1828 #define apzHpux11_VsnprintfMachs (const char**)NULL
1831 * content selection pattern - do fix if pattern found
1833 tSCC zHpux11_VsnprintfSelect0[] =
1834 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
1836 #define HPUX11_VSNPRINTF_TEST_CT 1
1837 static tTestDesc aHpux11_VsnprintfTests[] = {
1838 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
1841 * Fix Command Arguments for Hpux11_Vsnprintf
1843 static const char* apzHpux11_VsnprintfPatch[] = {
1848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1850 * Description of Hpux8_Bogus_Inlines fix
1852 tSCC zHpux8_Bogus_InlinesName[] =
1853 "hpux8_bogus_inlines";
1856 * File name selection pattern
1858 tSCC zHpux8_Bogus_InlinesList[] =
1861 * Machine/OS name selection pattern
1863 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
1866 * content selection pattern - do fix if pattern found
1868 tSCC zHpux8_Bogus_InlinesSelect0[] =
1871 #define HPUX8_BOGUS_INLINES_TEST_CT 1
1872 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
1873 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
1876 * Fix Command Arguments for Hpux8_Bogus_Inlines
1878 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
1879 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
1880 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
1881 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
1882 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
1885 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1887 * Description of Hpux_Maxint fix
1889 tSCC zHpux_MaxintName[] =
1893 * File name selection pattern
1895 tSCC zHpux_MaxintList[] =
1896 "|sys/param.h|values.h|";
1898 * Machine/OS name selection pattern
1900 #define apzHpux_MaxintMachs (const char**)NULL
1903 * content selection pattern - do fix if pattern found
1905 tSCC zHpux_MaxintSelect0[] =
1906 "^#[ \t]*define[ \t]+MAXINT[ \t]";
1909 * content bypass pattern - skip fix if pattern found
1911 tSCC zHpux_MaxintBypass0[] =
1912 "^#[ \t]*ifndef[ \t]+MAXINT";
1915 * perform the 'test' shell command - do fix on success
1917 tSCC zHpux_MaxintTest0[] =
1918 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
1920 #define HPUX_MAXINT_TEST_CT 3
1921 static tTestDesc aHpux_MaxintTests[] = {
1922 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
1923 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
1924 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
1927 * Fix Command Arguments for Hpux_Maxint
1929 static const char* apzHpux_MaxintPatch[] = {
1934 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
1937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1939 * Description of Hpux_Systime fix
1941 tSCC zHpux_SystimeName[] =
1945 * File name selection pattern
1947 tSCC zHpux_SystimeList[] =
1950 * Machine/OS name selection pattern
1952 #define apzHpux_SystimeMachs (const char**)NULL
1955 * content selection pattern - do fix if pattern found
1957 tSCC zHpux_SystimeSelect0[] =
1958 "^extern struct sigevent;";
1960 #define HPUX_SYSTIME_TEST_CT 1
1961 static tTestDesc aHpux_SystimeTests[] = {
1962 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
1965 * Fix Command Arguments for Hpux_Systime
1967 static const char* apzHpux_SystimePatch[] = {
1972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1974 * Description of Int_Abort_Free_And_Exit fix
1976 tSCC zInt_Abort_Free_And_ExitName[] =
1977 "int_abort_free_and_exit";
1980 * File name selection pattern
1982 tSCC zInt_Abort_Free_And_ExitList[] =
1985 * Machine/OS name selection pattern
1987 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
1990 * content selection pattern - do fix if pattern found
1992 tSCC zInt_Abort_Free_And_ExitSelect0[] =
1993 "int[ \t]+(abort|free|exit)[ \t]*\\(";
1995 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
1996 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
1997 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2000 * Fix Command Arguments for Int_Abort_Free_And_Exit
2002 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2009 * Description of Io_Quotes_Def fix
2011 tSCC zIo_Quotes_DefName[] =
2015 * File name selection pattern
2017 #define zIo_Quotes_DefList (char*)NULL
2019 * Machine/OS name selection pattern
2021 #define apzIo_Quotes_DefMachs (const char**)NULL
2024 * content selection pattern - do fix if pattern found
2026 tSCC zIo_Quotes_DefSelect0[] =
2027 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2029 #define IO_QUOTES_DEF_TEST_CT 1
2030 static tTestDesc aIo_Quotes_DefTests[] = {
2031 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2034 * Fix Command Arguments for Io_Quotes_Def
2036 static const char* apzIo_Quotes_DefPatch[] = {
2041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2043 * Description of Io_Quotes_Use fix
2045 tSCC zIo_Quotes_UseName[] =
2049 * File name selection pattern
2051 #define zIo_Quotes_UseList (char*)NULL
2053 * Machine/OS name selection pattern
2055 #define apzIo_Quotes_UseMachs (const char**)NULL
2058 * content selection pattern - do fix if pattern found
2060 tSCC zIo_Quotes_UseSelect0[] =
2061 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2063 #define IO_QUOTES_USE_TEST_CT 1
2064 static tTestDesc aIo_Quotes_UseTests[] = {
2065 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2068 * Fix Command Arguments for Io_Quotes_Use
2070 static const char* apzIo_Quotes_UsePatch[] = {
2075 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2077 * Description of Ip_Missing_Semi fix
2079 tSCC zIp_Missing_SemiName[] =
2083 * File name selection pattern
2085 tSCC zIp_Missing_SemiList[] =
2088 * Machine/OS name selection pattern
2090 #define apzIp_Missing_SemiMachs (const char**)NULL
2093 * content selection pattern - do fix if pattern found
2095 tSCC zIp_Missing_SemiSelect0[] =
2098 #define IP_MISSING_SEMI_TEST_CT 1
2099 static tTestDesc aIp_Missing_SemiTests[] = {
2100 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2103 * Fix Command Arguments for Ip_Missing_Semi
2105 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2106 "-e", "/^struct/,/^};/s/}$/};/",
2109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2111 * Description of Irix_Asm_Apostrophe fix
2113 tSCC zIrix_Asm_ApostropheName[] =
2114 "irix_asm_apostrophe";
2117 * File name selection pattern
2119 tSCC zIrix_Asm_ApostropheList[] =
2122 * Machine/OS name selection pattern
2124 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2127 * content selection pattern - do fix if pattern found
2129 tSCC zIrix_Asm_ApostropheSelect0[] =
2130 "^[ \t]*#.*[Ww]e're";
2132 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2133 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2134 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2137 * Fix Command Arguments for Irix_Asm_Apostrophe
2139 static const char* apzIrix_Asm_ApostrophePatch[] = {
2142 "^([ \t]*#.*[Ww]e)'re",
2145 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2147 * Description of Irix_Limits_Const fix
2149 tSCC zIrix_Limits_ConstName[] =
2150 "irix_limits_const";
2153 * File name selection pattern
2155 tSCC zIrix_Limits_ConstList[] =
2156 "|fixinc-test-limits.h|limits.h|";
2158 * Machine/OS name selection pattern
2160 #define apzIrix_Limits_ConstMachs (const char**)NULL
2163 * content selection pattern - do fix if pattern found
2165 tSCC zIrix_Limits_ConstSelect0[] =
2168 #define IRIX_LIMITS_CONST_TEST_CT 1
2169 static tTestDesc aIrix_Limits_ConstTests[] = {
2170 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2173 * Fix Command Arguments for Irix_Limits_Const
2175 static const char* apzIrix_Limits_ConstPatch[] = {
2180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2182 * Description of Irix_Stdio_Va_List fix
2184 tSCC zIrix_Stdio_Va_ListName[] =
2185 "irix_stdio_va_list";
2188 * File name selection pattern
2190 tSCC zIrix_Stdio_Va_ListList[] =
2193 * Machine/OS name selection pattern
2195 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2198 * content selection pattern - do fix if pattern found
2200 tSCC zIrix_Stdio_Va_ListSelect0[] =
2201 "(printf\\(.*), /\\* va_list \\*/ char \\*";
2203 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2204 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2205 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2208 * Fix Command Arguments for Irix_Stdio_Va_List
2210 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2212 "%1, __gnuc_va_list",
2215 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2217 * Description of Isc_Fmod fix
2219 tSCC zIsc_FmodName[] =
2223 * File name selection pattern
2225 tSCC zIsc_FmodList[] =
2228 * Machine/OS name selection pattern
2230 #define apzIsc_FmodMachs (const char**)NULL
2233 * content selection pattern - do fix if pattern found
2235 tSCC zIsc_FmodSelect0[] =
2238 #define ISC_FMOD_TEST_CT 1
2239 static tTestDesc aIsc_FmodTests[] = {
2240 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2243 * Fix Command Arguments for Isc_Fmod
2245 static const char* apzIsc_FmodPatch[] = {
2247 "fmod(double, double)",
2250 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2252 * Description of Isc_Omits_With_Stdc fix
2254 tSCC zIsc_Omits_With_StdcName[] =
2255 "isc_omits_with_stdc";
2258 * File name selection pattern
2260 tSCC zIsc_Omits_With_StdcList[] =
2261 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2263 * Machine/OS name selection pattern
2265 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2268 * content selection pattern - do fix if pattern found
2270 tSCC zIsc_Omits_With_StdcSelect0[] =
2271 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2273 #define ISC_OMITS_WITH_STDC_TEST_CT 1
2274 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2275 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2278 * Fix Command Arguments for Isc_Omits_With_Stdc
2280 static const char* apzIsc_Omits_With_StdcPatch[] = {
2282 "!defined(_POSIX_SOURCE)",
2285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2287 * Description of Kandr_Concat fix
2289 tSCC zKandr_ConcatName[] =
2293 * File name selection pattern
2295 tSCC zKandr_ConcatList[] =
2296 "|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|";
2298 * Machine/OS name selection pattern
2300 #define apzKandr_ConcatMachs (const char**)NULL
2303 * content selection pattern - do fix if pattern found
2305 tSCC zKandr_ConcatSelect0[] =
2308 #define KANDR_CONCAT_TEST_CT 1
2309 static tTestDesc aKandr_ConcatTests[] = {
2310 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2313 * Fix Command Arguments for Kandr_Concat
2315 static const char* apzKandr_ConcatPatch[] = {
2320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2322 * Description of Libc1_G_Va_List fix
2324 tSCC zLibc1_G_Va_ListName[] =
2328 * File name selection pattern
2330 tSCC zLibc1_G_Va_ListList[] =
2333 * Machine/OS name selection pattern
2335 tSCC* apzLibc1_G_Va_ListMachs[] = {
2337 (const char*)NULL };
2340 * content selection pattern - do fix if pattern found
2342 tSCC zLibc1_G_Va_ListSelect0[] =
2343 "typedef void \\* _G_va_list;";
2345 #define LIBC1_G_VA_LIST_TEST_CT 1
2346 static tTestDesc aLibc1_G_Va_ListTests[] = {
2347 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
2350 * Fix Command Arguments for Libc1_G_Va_List
2352 static const char* apzLibc1_G_Va_ListPatch[] = {
2354 "typedef __builtin_va_list _G_va_list;",
2357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2359 * Description of Libc1_Ifdefd_Memx fix
2361 tSCC zLibc1_Ifdefd_MemxName[] =
2362 "libc1_ifdefd_memx";
2365 * File name selection pattern
2367 tSCC zLibc1_Ifdefd_MemxList[] =
2368 "|testing.h|string.h|";
2370 * Machine/OS name selection pattern
2372 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2375 * content selection pattern - do fix if pattern found
2377 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2378 "' is a built-in function for gcc 2\\.x\\. \\*/";
2381 * content bypass pattern - skip fix if pattern found
2383 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2386 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2387 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2388 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2389 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2392 * Fix Command Arguments for Libc1_Ifdefd_Memx
2394 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2397 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2398 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2400 extern [a-z_]+ mem.*(\n\
2405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2407 * Description of Limits_Ifndefs fix
2409 tSCC zLimits_IfndefsName[] =
2413 * File name selection pattern
2415 tSCC zLimits_IfndefsList[] =
2416 "|sys/limits.h|limits.h|";
2418 * Machine/OS name selection pattern
2420 #define apzLimits_IfndefsMachs (const char**)NULL
2423 * content bypass pattern - skip fix if pattern found
2425 tSCC zLimits_IfndefsBypass0[] =
2426 "ifndef[ \t]+FLT_MIN";
2428 #define LIMITS_IFNDEFS_TEST_CT 1
2429 static tTestDesc aLimits_IfndefsTests[] = {
2430 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2433 * Fix Command Arguments for Limits_Ifndefs
2435 static const char* apzLimits_IfndefsPatch[] = {
2440 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2443 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2445 * Description of Lynx_Void_Int fix
2447 tSCC zLynx_Void_IntName[] =
2451 * File name selection pattern
2453 tSCC zLynx_Void_IntList[] =
2456 * Machine/OS name selection pattern
2458 #define apzLynx_Void_IntMachs (const char**)NULL
2461 * content selection pattern - do fix if pattern found
2463 tSCC zLynx_Void_IntSelect0[] =
2464 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2466 #define LYNX_VOID_INT_TEST_CT 1
2467 static tTestDesc aLynx_Void_IntTests[] = {
2468 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2471 * Fix Command Arguments for Lynx_Void_Int
2473 static const char* apzLynx_Void_IntPatch[] = {
2478 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2480 * Description of Lynxos_Fcntl_Proto fix
2482 tSCC zLynxos_Fcntl_ProtoName[] =
2483 "lynxos_fcntl_proto";
2486 * File name selection pattern
2488 tSCC zLynxos_Fcntl_ProtoList[] =
2491 * Machine/OS name selection pattern
2493 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2496 * content selection pattern - do fix if pattern found
2498 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2499 "fcntl[ \t]*\\(int, int, int\\)";
2501 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2502 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2503 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2506 * Fix Command Arguments for Lynxos_Fcntl_Proto
2508 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
2511 "(fcntl[ \t]*\\(int, int, )int\\)",
2514 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2516 * Description of Machine_Ansi_H_Va_List fix
2518 tSCC zMachine_Ansi_H_Va_ListName[] =
2519 "machine_ansi_h_va_list";
2522 * File name selection pattern
2524 #define zMachine_Ansi_H_Va_ListList (char*)NULL
2526 * Machine/OS name selection pattern
2528 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2531 * content selection pattern - do fix if pattern found
2533 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2534 "define[ \t]+_BSD_VA_LIST_[ \t]";
2537 * content bypass pattern - skip fix if pattern found
2539 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2540 "__builtin_va_list";
2542 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2543 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2544 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2545 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2548 * Fix Command Arguments for Machine_Ansi_H_Va_List
2550 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2552 "%1__builtin_va_list",
2553 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2556 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2558 * Description of Machine_Name fix
2560 tSCC zMachine_NameName[] =
2564 * File name selection pattern
2566 #define zMachine_NameList (char*)NULL
2568 * Machine/OS name selection pattern
2570 #define apzMachine_NameMachs (const char**)NULL
2573 * perform the C function call test
2575 tSCC zMachine_NameFTst0[] = "machine_name";
2577 #define MACHINE_NAME_TEST_CT 1
2578 static tTestDesc aMachine_NameTests[] = {
2579 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2582 * Fix Command Arguments for Machine_Name
2584 static const char* apzMachine_NamePatch[] = {
2588 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2590 * Description of Math_Exception fix
2592 tSCC zMath_ExceptionName[] =
2596 * File name selection pattern
2598 tSCC zMath_ExceptionList[] =
2601 * Machine/OS name selection pattern
2603 #define apzMath_ExceptionMachs (const char**)NULL
2606 * content selection pattern - do fix if pattern found
2608 tSCC zMath_ExceptionSelect0[] =
2612 * content bypass pattern - skip fix if pattern found
2614 tSCC zMath_ExceptionBypass0[] =
2615 "We have a problem when using C\\+\\+";
2617 #define MATH_EXCEPTION_TEST_CT 2
2618 static tTestDesc aMath_ExceptionTests[] = {
2619 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2620 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2623 * Fix Command Arguments for Math_Exception
2625 static const char* apzMath_ExceptionPatch[] = {
2627 "#ifdef __cplusplus\n\
2628 #define exception __math_exception\n\
2630 "#ifdef __cplusplus\n\
2635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2637 * Description of Math_Huge_Val_From_Dbl_Max fix
2639 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2640 "math_huge_val_from_dbl_max";
2643 * File name selection pattern
2645 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2648 * Machine/OS name selection pattern
2650 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2653 * content selection pattern - do fix if pattern found
2655 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2656 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
2659 * content bypass pattern - skip fix if pattern found
2661 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2662 "define[ \t]+DBL_MAX";
2664 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2665 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2666 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2667 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2670 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2672 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2673 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
2674 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2675 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
2680 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2682 * Description of Math_Huge_Val_Ifndef fix
2684 tSCC zMath_Huge_Val_IfndefName[] =
2685 "math_huge_val_ifndef";
2688 * File name selection pattern
2690 tSCC zMath_Huge_Val_IfndefList[] =
2691 "|math.h|math/math.h|";
2693 * Machine/OS name selection pattern
2695 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2698 * content selection pattern - do fix if pattern found
2700 tSCC zMath_Huge_Val_IfndefSelect0[] =
2701 "define[ \t]+HUGE_VAL";
2703 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2704 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
2705 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2708 * Fix Command Arguments for Math_Huge_Val_Ifndef
2710 static const char* apzMath_Huge_Val_IfndefPatch[] = {
2712 "#ifndef HUGE_VAL\n\
2715 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
2718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2720 * Description of Nested_Auth_Des fix
2722 tSCC zNested_Auth_DesName[] =
2726 * File name selection pattern
2728 tSCC zNested_Auth_DesList[] =
2731 * Machine/OS name selection pattern
2733 #define apzNested_Auth_DesMachs (const char**)NULL
2736 * content selection pattern - do fix if pattern found
2738 tSCC zNested_Auth_DesSelect0[] =
2739 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
2741 #define NESTED_AUTH_DES_TEST_CT 1
2742 static tTestDesc aNested_Auth_DesTests[] = {
2743 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
2746 * Fix Command Arguments for Nested_Auth_Des
2748 static const char* apzNested_Auth_DesPatch[] = {
2753 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2755 * Description of Nested_Motorola fix
2757 tSCC zNested_MotorolaName[] =
2761 * File name selection pattern
2763 tSCC zNested_MotorolaList[] =
2764 "|sys/limits.h|limits.h|";
2766 * Machine/OS name selection pattern
2768 tSCC* apzNested_MotorolaMachs[] = {
2769 "m68k-motorola-sysv*",
2770 (const char*)NULL };
2773 * content selection pattern - do fix if pattern found
2775 tSCC zNested_MotorolaSelect0[] =
2776 "max # bytes atomic in write|error value returned by Math lib";
2778 #define NESTED_MOTOROLA_TEST_CT 1
2779 static tTestDesc aNested_MotorolaTests[] = {
2780 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
2783 * Fix Command Arguments for Nested_Motorola
2785 static const char* apzNested_MotorolaPatch[] = { "sed",
2786 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
2787 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
2790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2792 * Description of Nested_Sys_Limits fix
2794 tSCC zNested_Sys_LimitsName[] =
2795 "nested_sys_limits";
2798 * File name selection pattern
2800 tSCC zNested_Sys_LimitsList[] =
2803 * Machine/OS name selection pattern
2805 #define apzNested_Sys_LimitsMachs (const char**)NULL
2808 * content selection pattern - do fix if pattern found
2810 tSCC zNested_Sys_LimitsSelect0[] =
2813 #define NESTED_SYS_LIMITS_TEST_CT 1
2814 static tTestDesc aNested_Sys_LimitsTests[] = {
2815 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
2818 * Fix Command Arguments for Nested_Sys_Limits
2820 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
2821 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
2822 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
2825 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2827 * Description of Next_Math_Prefix fix
2829 tSCC zNext_Math_PrefixName[] =
2833 * File name selection pattern
2835 tSCC zNext_Math_PrefixList[] =
2838 * Machine/OS name selection pattern
2840 #define apzNext_Math_PrefixMachs (const char**)NULL
2843 * content selection pattern - do fix if pattern found
2845 tSCC zNext_Math_PrefixSelect0[] =
2846 "^extern[ \t]+double[ \t]+__const__[ \t]";
2848 #define NEXT_MATH_PREFIX_TEST_CT 1
2849 static tTestDesc aNext_Math_PrefixTests[] = {
2850 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
2853 * Fix Command Arguments for Next_Math_Prefix
2855 static const char* apzNext_Math_PrefixPatch[] = {
2857 "extern double %1(",
2858 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
2861 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2863 * Description of Next_Template fix
2865 tSCC zNext_TemplateName[] =
2869 * File name selection pattern
2871 tSCC zNext_TemplateList[] =
2874 * Machine/OS name selection pattern
2876 #define apzNext_TemplateMachs (const char**)NULL
2879 * content selection pattern - do fix if pattern found
2881 tSCC zNext_TemplateSelect0[] =
2884 #define NEXT_TEMPLATE_TEST_CT 1
2885 static tTestDesc aNext_TemplateTests[] = {
2886 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
2889 * Fix Command Arguments for Next_Template
2891 static const char* apzNext_TemplatePatch[] = {
2894 "\\(([^)]*)[ \t]template\\)",
2897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2899 * Description of Next_Volitile fix
2901 tSCC zNext_VolitileName[] =
2905 * File name selection pattern
2907 tSCC zNext_VolitileList[] =
2910 * Machine/OS name selection pattern
2912 #define apzNext_VolitileMachs (const char**)NULL
2915 * content selection pattern - do fix if pattern found
2917 tSCC zNext_VolitileSelect0[] =
2918 "^extern[ \t]+volatile[ \t]+void[ \t]";
2920 #define NEXT_VOLITILE_TEST_CT 1
2921 static tTestDesc aNext_VolitileTests[] = {
2922 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
2925 * Fix Command Arguments for Next_Volitile
2927 static const char* apzNext_VolitilePatch[] = {
2930 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
2933 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2935 * Description of Next_Wait_Union fix
2937 tSCC zNext_Wait_UnionName[] =
2941 * File name selection pattern
2943 tSCC zNext_Wait_UnionList[] =
2946 * Machine/OS name selection pattern
2948 #define apzNext_Wait_UnionMachs (const char**)NULL
2951 * content selection pattern - do fix if pattern found
2953 tSCC zNext_Wait_UnionSelect0[] =
2954 "wait\\(union wait";
2956 #define NEXT_WAIT_UNION_TEST_CT 1
2957 static tTestDesc aNext_Wait_UnionTests[] = {
2958 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
2961 * Fix Command Arguments for Next_Wait_Union
2963 static const char* apzNext_Wait_UnionPatch[] = {
2968 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2970 * Description of Nodeent_Syntax fix
2972 tSCC zNodeent_SyntaxName[] =
2976 * File name selection pattern
2978 tSCC zNodeent_SyntaxList[] =
2979 "|netdnet/dnetdb.h|";
2981 * Machine/OS name selection pattern
2983 #define apzNodeent_SyntaxMachs (const char**)NULL
2986 * content selection pattern - do fix if pattern found
2988 tSCC zNodeent_SyntaxSelect0[] =
2989 "char[ \t]*\\*na_addr[ \t]*$";
2991 #define NODEENT_SYNTAX_TEST_CT 1
2992 static tTestDesc aNodeent_SyntaxTests[] = {
2993 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
2996 * Fix Command Arguments for Nodeent_Syntax
2998 static const char* apzNodeent_SyntaxPatch[] = {
3003 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3005 * Description of Osf_Namespace_A fix
3007 tSCC zOsf_Namespace_AName[] =
3011 * File name selection pattern
3013 tSCC zOsf_Namespace_AList[] =
3014 "|reg_types.h|sys/lc_core.h|";
3016 * Machine/OS name selection pattern
3018 #define apzOsf_Namespace_AMachs (const char**)NULL
3021 * perform the 'test' shell command - do fix on success
3023 tSCC zOsf_Namespace_ATest0[] =
3025 tSCC zOsf_Namespace_ATest1[] =
3026 " -r sys/lc_core.h";
3027 tSCC zOsf_Namespace_ATest2[] =
3028 " -n \"`grep '} regex_t;' reg_types.h`\"";
3029 tSCC zOsf_Namespace_ATest3[] =
3030 " -z \"`grep __regex_t regex.h`\"";
3032 #define OSF_NAMESPACE_A_TEST_CT 4
3033 static tTestDesc aOsf_Namespace_ATests[] = {
3034 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3035 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3036 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3037 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3040 * Fix Command Arguments for Osf_Namespace_A
3042 static const char* apzOsf_Namespace_APatch[] = {
3045 "reg(ex|off|match)_t",
3048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3050 * Description of Osf_Namespace_C fix
3052 tSCC zOsf_Namespace_CName[] =
3056 * File name selection pattern
3058 tSCC zOsf_Namespace_CList[] =
3061 * Machine/OS name selection pattern
3063 #define apzOsf_Namespace_CMachs (const char**)NULL
3066 * content selection pattern - do fix if pattern found
3068 tSCC zOsf_Namespace_CSelect0[] =
3069 "#include <reg_types.h>.*";
3072 * perform the 'test' shell command - do fix on success
3074 tSCC zOsf_Namespace_CTest0[] =
3076 tSCC zOsf_Namespace_CTest1[] =
3077 " -r sys/lc_core.h";
3078 tSCC zOsf_Namespace_CTest2[] =
3079 " -n \"`grep '} regex_t;' reg_types.h`\"";
3080 tSCC zOsf_Namespace_CTest3[] =
3081 " -z \"`grep __regex_t regex.h`\"";
3083 #define OSF_NAMESPACE_C_TEST_CT 5
3084 static tTestDesc aOsf_Namespace_CTests[] = {
3085 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3086 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3087 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3088 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3089 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3092 * Fix Command Arguments for Osf_Namespace_C
3094 static const char* apzOsf_Namespace_CPatch[] = {
3097 typedef __regex_t\tregex_t;\n\
3098 typedef __regoff_t\tregoff_t;\n\
3099 typedef __regmatch_t\tregmatch_t;",
3102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3104 * Description of Pthread_Page_Size fix
3106 tSCC zPthread_Page_SizeName[] =
3107 "pthread_page_size";
3110 * File name selection pattern
3112 tSCC zPthread_Page_SizeList[] =
3115 * Machine/OS name selection pattern
3117 #define apzPthread_Page_SizeMachs (const char**)NULL
3120 * content selection pattern - do fix if pattern found
3122 tSCC zPthread_Page_SizeSelect0[] =
3125 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3126 static tTestDesc aPthread_Page_SizeTests[] = {
3127 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3130 * Fix Command Arguments for Pthread_Page_Size
3132 static const char* apzPthread_Page_SizePatch[] = {
3137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3139 * Description of Read_Ret_Type fix
3141 tSCC zRead_Ret_TypeName[] =
3145 * File name selection pattern
3147 tSCC zRead_Ret_TypeList[] =
3150 * Machine/OS name selection pattern
3152 #define apzRead_Ret_TypeMachs (const char**)NULL
3155 * content selection pattern - do fix if pattern found
3157 tSCC zRead_Ret_TypeSelect0[] =
3158 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3160 #define READ_RET_TYPE_TEST_CT 1
3161 static tTestDesc aRead_Ret_TypeTests[] = {
3162 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3165 * Fix Command Arguments for Read_Ret_Type
3167 static const char* apzRead_Ret_TypePatch[] = {
3169 "extern unsigned int fread(), fwrite();\n\
3171 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3174 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3176 * Description of Rs6000_Double fix
3178 tSCC zRs6000_DoubleName[] =
3182 * File name selection pattern
3184 tSCC zRs6000_DoubleList[] =
3187 * Machine/OS name selection pattern
3189 #define apzRs6000_DoubleMachs (const char**)NULL
3192 * content selection pattern - do fix if pattern found
3194 tSCC zRs6000_DoubleSelect0[] =
3195 "[^a-zA-Z_]class\\(";
3197 #define RS6000_DOUBLE_TEST_CT 1
3198 static tTestDesc aRs6000_DoubleTests[] = {
3199 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3202 * Fix Command Arguments for Rs6000_Double
3204 static const char* apzRs6000_DoublePatch[] = {
3206 "#ifndef __cplusplus\n\
3209 "^.*[^a-zA-Z_]class\\(.*",
3212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3214 * Description of Rs6000_Fchmod fix
3216 tSCC zRs6000_FchmodName[] =
3220 * File name selection pattern
3222 tSCC zRs6000_FchmodList[] =
3225 * Machine/OS name selection pattern
3227 #define apzRs6000_FchmodMachs (const char**)NULL
3230 * content selection pattern - do fix if pattern found
3232 tSCC zRs6000_FchmodSelect0[] =
3233 "fchmod\\(char \\*";
3235 #define RS6000_FCHMOD_TEST_CT 1
3236 static tTestDesc aRs6000_FchmodTests[] = {
3237 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3240 * Fix Command Arguments for Rs6000_Fchmod
3242 static const char* apzRs6000_FchmodPatch[] = {
3247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3249 * Description of Rs6000_Param fix
3251 tSCC zRs6000_ParamName[] =
3255 * File name selection pattern
3257 tSCC zRs6000_ParamList[] =
3258 "|stdio.h|unistd.h|";
3260 * Machine/OS name selection pattern
3262 #define apzRs6000_ParamMachs (const char**)NULL
3265 * content selection pattern - do fix if pattern found
3267 tSCC zRs6000_ParamSelect0[] =
3268 "rename\\(const char \\*old, const char \\*new\\)";
3270 #define RS6000_PARAM_TEST_CT 1
3271 static tTestDesc aRs6000_ParamTests[] = {
3272 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3275 * Fix Command Arguments for Rs6000_Param
3277 static const char* apzRs6000_ParamPatch[] = {
3279 "rename(const char *_old, const char *_new)",
3282 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3284 * Description of Sco_Static_Func fix
3286 tSCC zSco_Static_FuncName[] =
3290 * File name selection pattern
3292 tSCC zSco_Static_FuncList[] =
3295 * Machine/OS name selection pattern
3297 tSCC* apzSco_Static_FuncMachs[] = {
3299 (const char*)NULL };
3302 * content selection pattern - do fix if pattern found
3304 tSCC zSco_Static_FuncSelect0[] =
3307 #define SCO_STATIC_FUNC_TEST_CT 1
3308 static tTestDesc aSco_Static_FuncTests[] = {
3309 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3312 * Fix Command Arguments for Sco_Static_Func
3314 static const char* apzSco_Static_FuncPatch[] = { "sed",
3315 "-e", "/^static int/i\\\n\
3316 #if __cplusplus\\\n\
3318 #endif /* __cplusplus */",
3320 #if __cplusplus\\\n\
3322 #endif /* __cplusplus */",
3325 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3327 * Description of Sco_Utime fix
3329 tSCC zSco_UtimeName[] =
3333 * File name selection pattern
3335 tSCC zSco_UtimeList[] =
3338 * Machine/OS name selection pattern
3340 tSCC* apzSco_UtimeMachs[] = {
3342 (const char*)NULL };
3345 * content selection pattern - do fix if pattern found
3347 tSCC zSco_UtimeSelect0[] =
3348 "\\(const char \\*, struct utimbuf \\*\\);";
3350 #define SCO_UTIME_TEST_CT 1
3351 static tTestDesc aSco_UtimeTests[] = {
3352 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3355 * Fix Command Arguments for Sco_Utime
3357 static const char* apzSco_UtimePatch[] = {
3359 "(const char *, const struct utimbuf *);",
3362 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3364 * Description of Solaris_Mutex_Init fix
3366 tSCC zSolaris_Mutex_InitName[] =
3367 "solaris_mutex_init";
3370 * File name selection pattern
3372 tSCC zSolaris_Mutex_InitList[] =
3375 * Machine/OS name selection pattern
3377 #define apzSolaris_Mutex_InitMachs (const char**)NULL
3380 * content selection pattern - do fix if pattern found
3382 tSCC zSolaris_Mutex_InitSelect0[] =
3383 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
3385 #define SOLARIS_MUTEX_INIT_TEST_CT 1
3386 static tTestDesc aSolaris_Mutex_InitTests[] = {
3387 { TT_EGREP, zSolaris_Mutex_InitSelect0, (regex_t*)NULL }, };
3390 * Fix Command Arguments for Solaris_Mutex_Init
3392 static const char* apzSolaris_Mutex_InitPatch[] = {
3394 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
3399 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
3402 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3404 * Description of Solaris_Stdio_Tag fix
3406 tSCC zSolaris_Stdio_TagName[] =
3407 "solaris_stdio_tag";
3410 * File name selection pattern
3412 tSCC zSolaris_Stdio_TagList[] =
3415 * Machine/OS name selection pattern
3417 #define apzSolaris_Stdio_TagMachs (const char**)NULL
3420 * content selection pattern - do fix if pattern found
3422 tSCC zSolaris_Stdio_TagSelect0[] =
3423 "__cplusplus < 54321L";
3425 #define SOLARIS_STDIO_TAG_TEST_CT 1
3426 static tTestDesc aSolaris_Stdio_TagTests[] = {
3427 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
3430 * Fix Command Arguments for Solaris_Stdio_Tag
3432 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
3433 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
3436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3438 * Description of Solaris_Widec fix
3440 tSCC zSolaris_WidecName[] =
3444 * File name selection pattern
3446 tSCC zSolaris_WidecList[] =
3449 * Machine/OS name selection pattern
3451 tSCC* apzSolaris_WidecMachs[] = {
3452 "*-*-solaris2.[0-5]*",
3453 (const char*)NULL };
3456 * content selection pattern - do fix if pattern found
3458 tSCC zSolaris_WidecSelect0[] =
3462 * content bypass pattern - skip fix if pattern found
3464 tSCC zSolaris_WidecBypass0[] =
3465 "include.*wchar\\.h";
3467 #define SOLARIS_WIDEC_TEST_CT 2
3468 static tTestDesc aSolaris_WidecTests[] = {
3469 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
3470 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
3473 * Fix Command Arguments for Solaris_Widec
3475 static const char* apzSolaris_WidecPatch[] = {
3478 #include <wchar.h>",
3481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3483 * Description of Statsswtch fix
3485 tSCC zStatsswtchName[] =
3489 * File name selection pattern
3491 tSCC zStatsswtchList[] =
3494 * Machine/OS name selection pattern
3496 #define apzStatsswtchMachs (const char**)NULL
3499 * content selection pattern - do fix if pattern found
3501 tSCC zStatsswtchSelect0[] =
3504 #define STATSSWTCH_TEST_CT 1
3505 static tTestDesc aStatsswtchTests[] = {
3506 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3509 * Fix Command Arguments for Statsswtch
3511 static const char* apzStatsswtchPatch[] = {
3516 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3518 * Description of Stdio_Stdarg_H fix
3520 tSCC zStdio_Stdarg_HName[] =
3524 * File name selection pattern
3526 tSCC zStdio_Stdarg_HList[] =
3529 * Machine/OS name selection pattern
3531 #define apzStdio_Stdarg_HMachs (const char**)NULL
3534 * content bypass pattern - skip fix if pattern found
3536 tSCC zStdio_Stdarg_HBypass0[] =
3537 "include.*(stdarg.h|machine/ansi.h)";
3539 #define STDIO_STDARG_H_TEST_CT 1
3540 static tTestDesc aStdio_Stdarg_HTests[] = {
3541 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3544 * Fix Command Arguments for Stdio_Stdarg_H
3546 static const char* apzStdio_Stdarg_HPatch[] = {
3548 "#define __need___va_list\n\
3549 #include <stdarg.h>\n",
3552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3554 * Description of Stdio_Va_List fix
3556 tSCC zStdio_Va_ListName[] =
3560 * File name selection pattern
3562 tSCC zStdio_Va_ListList[] =
3565 * Machine/OS name selection pattern
3567 #define apzStdio_Va_ListMachs (const char**)NULL
3570 * content bypass pattern - skip fix if pattern found
3572 tSCC zStdio_Va_ListBypass0[] =
3573 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list";
3575 #define STDIO_VA_LIST_TEST_CT 1
3576 static tTestDesc aStdio_Va_ListTests[] = {
3577 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3580 * Fix Command Arguments for Stdio_Va_List
3582 static const char* apzStdio_Va_ListPatch[] = { "sed",
3583 "-e", "s@ va_list @ __gnuc_va_list @\n\
3584 s@ va_list)@ __gnuc_va_list)@\n\
3585 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3586 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
3587 s@ va_list@ __not_va_list__@\n\
3588 s@\\*va_list@*__not_va_list__@\n\
3589 s@ __va_list)@ __gnuc_va_list)@\n\
3590 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3591 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
3592 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3593 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3594 s@VA_LIST@DUMMY_VA_LIST@\n\
3595 s@_Va_LIST@_VA_LIST@",
3598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3600 * Description of Strict_Ansi_Not fix
3602 tSCC zStrict_Ansi_NotName[] =
3606 * File name selection pattern
3608 #define zStrict_Ansi_NotList (char*)NULL
3610 * Machine/OS name selection pattern
3612 #define apzStrict_Ansi_NotMachs (const char**)NULL
3615 * content selection pattern - do fix if pattern found
3617 tSCC zStrict_Ansi_NotSelect0[] =
3618 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
3621 * content bypass pattern - skip fix if pattern found
3623 tSCC zStrict_Ansi_NotBypass0[] =
3624 "GNU and MIPS C compilers define __STDC__ differently";
3627 * perform the C function call test
3629 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
3631 #define STRICT_ANSI_NOT_TEST_CT 3
3632 static tTestDesc aStrict_Ansi_NotTests[] = {
3633 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
3634 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
3635 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
3638 * Fix Command Arguments for Strict_Ansi_Not
3640 static const char* apzStrict_Ansi_NotPatch[] = {
3642 "%1 !defined(__STRICT_ANSI__)",
3645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3647 * Description of Strict_Ansi_Not_Ctd fix
3649 tSCC zStrict_Ansi_Not_CtdName[] =
3650 "strict_ansi_not_ctd";
3653 * File name selection pattern
3655 tSCC zStrict_Ansi_Not_CtdList[] =
3656 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
3658 * Machine/OS name selection pattern
3660 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
3663 * content selection pattern - do fix if pattern found
3665 tSCC zStrict_Ansi_Not_CtdSelect0[] =
3666 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
3669 * perform the C function call test
3671 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
3673 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
3674 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
3675 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
3676 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
3679 * Fix Command Arguments for Strict_Ansi_Not_Ctd
3681 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
3683 "%1 !defined(__STRICT_ANSI__)",
3686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3688 * Description of Strict_Ansi_Only fix
3690 tSCC zStrict_Ansi_OnlyName[] =
3694 * File name selection pattern
3696 #define zStrict_Ansi_OnlyList (char*)NULL
3698 * Machine/OS name selection pattern
3700 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
3703 * content selection pattern - do fix if pattern found
3705 tSCC zStrict_Ansi_OnlySelect0[] =
3706 "^([ \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)";
3709 * perform the C function call test
3711 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
3713 #define STRICT_ANSI_ONLY_TEST_CT 2
3714 static tTestDesc aStrict_Ansi_OnlyTests[] = {
3715 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
3716 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
3719 * Fix Command Arguments for Strict_Ansi_Only
3721 static const char* apzStrict_Ansi_OnlyPatch[] = {
3723 "%1 defined(__STRICT_ANSI__)",
3726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3728 * Description of Struct_File fix
3730 tSCC zStruct_FileName[] =
3734 * File name selection pattern
3736 tSCC zStruct_FileList[] =
3739 * Machine/OS name selection pattern
3741 #define apzStruct_FileMachs (const char**)NULL
3744 * content selection pattern - do fix if pattern found
3746 tSCC zStruct_FileSelect0[] =
3747 "^.*xdrstdio_create.*struct __file_s";
3749 #define STRUCT_FILE_TEST_CT 1
3750 static tTestDesc aStruct_FileTests[] = {
3751 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
3754 * Fix Command Arguments for Struct_File
3756 static const char* apzStruct_FilePatch[] = {
3758 "struct __file_s;\n\
3762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3764 * Description of Struct_Sockaddr fix
3766 tSCC zStruct_SockaddrName[] =
3770 * File name selection pattern
3772 tSCC zStruct_SockaddrList[] =
3775 * Machine/OS name selection pattern
3777 #define apzStruct_SockaddrMachs (const char**)NULL
3780 * content selection pattern - do fix if pattern found
3782 tSCC zStruct_SockaddrSelect0[] =
3783 "^.*authdes_create.*struct sockaddr";
3786 * content bypass pattern - skip fix if pattern found
3788 tSCC zStruct_SockaddrBypass0[] =
3791 #define STRUCT_SOCKADDR_TEST_CT 2
3792 static tTestDesc aStruct_SockaddrTests[] = {
3793 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
3794 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
3797 * Fix Command Arguments for Struct_Sockaddr
3799 static const char* apzStruct_SockaddrPatch[] = {
3801 "struct sockaddr;\n\
3805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3807 * Description of Sun_Auth_Proto fix
3809 tSCC zSun_Auth_ProtoName[] =
3813 * File name selection pattern
3815 tSCC zSun_Auth_ProtoList[] =
3816 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
3818 * Machine/OS name selection pattern
3820 #define apzSun_Auth_ProtoMachs (const char**)NULL
3823 * content selection pattern - do fix if pattern found
3825 tSCC zSun_Auth_ProtoSelect0[] =
3826 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
3828 #define SUN_AUTH_PROTO_TEST_CT 1
3829 static tTestDesc aSun_Auth_ProtoTests[] = {
3830 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
3833 * Fix Command Arguments for Sun_Auth_Proto
3835 static const char* apzSun_Auth_ProtoPatch[] = {
3837 "#ifdef __cplusplus\n\
3842 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
3845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3847 * Description of Sun_Bogus_Ifdef fix
3849 tSCC zSun_Bogus_IfdefName[] =
3853 * File name selection pattern
3855 tSCC zSun_Bogus_IfdefList[] =
3856 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
3858 * Machine/OS name selection pattern
3860 #define apzSun_Bogus_IfdefMachs (const char**)NULL
3863 * content selection pattern - do fix if pattern found
3865 tSCC zSun_Bogus_IfdefSelect0[] =
3866 "#ifdef(.*\\|\\|.*)";
3868 #define SUN_BOGUS_IFDEF_TEST_CT 1
3869 static tTestDesc aSun_Bogus_IfdefTests[] = {
3870 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
3873 * Fix Command Arguments for Sun_Bogus_Ifdef
3875 static const char* apzSun_Bogus_IfdefPatch[] = {
3880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3882 * Description of Sun_Catmacro fix
3884 tSCC zSun_CatmacroName[] =
3888 * File name selection pattern
3890 tSCC zSun_CatmacroList[] =
3891 "|pixrect/memvar.h|";
3893 * Machine/OS name selection pattern
3895 #define apzSun_CatmacroMachs (const char**)NULL
3898 * content selection pattern - do fix if pattern found
3900 tSCC zSun_CatmacroSelect0[] =
3901 "^#define[ \t]+CAT\\(a,b\\).*";
3903 #define SUN_CATMACRO_TEST_CT 1
3904 static tTestDesc aSun_CatmacroTests[] = {
3905 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
3908 * Fix Command Arguments for Sun_Catmacro
3910 static const char* apzSun_CatmacroPatch[] = {
3913 # define CAT(a,b) a##b\n\
3919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3921 * Description of Sun_Malloc fix
3923 tSCC zSun_MallocName[] =
3927 * File name selection pattern
3929 tSCC zSun_MallocList[] =
3932 * Machine/OS name selection pattern
3934 #define apzSun_MallocMachs (const char**)NULL
3935 #define SUN_MALLOC_TEST_CT 0
3936 #define aSun_MallocTests (tTestDesc*)NULL
3939 * Fix Command Arguments for Sun_Malloc
3941 static const char* apzSun_MallocPatch[] = { "sed",
3942 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
3943 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
3944 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
3945 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
3946 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
3949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3951 * Description of Sun_Rusers_Semi fix
3953 tSCC zSun_Rusers_SemiName[] =
3957 * File name selection pattern
3959 tSCC zSun_Rusers_SemiList[] =
3960 "|rpcsvc/rusers.h|";
3962 * Machine/OS name selection pattern
3964 #define apzSun_Rusers_SemiMachs (const char**)NULL
3967 * content selection pattern - do fix if pattern found
3969 tSCC zSun_Rusers_SemiSelect0[] =
3972 #define SUN_RUSERS_SEMI_TEST_CT 1
3973 static tTestDesc aSun_Rusers_SemiTests[] = {
3974 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
3977 * Fix Command Arguments for Sun_Rusers_Semi
3979 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
3980 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
3983 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3985 * Description of Sun_Signal fix
3987 tSCC zSun_SignalName[] =
3991 * File name selection pattern
3993 tSCC zSun_SignalList[] =
3994 "|sys/signal.h|signal.h|";
3996 * Machine/OS name selection pattern
3998 #define apzSun_SignalMachs (const char**)NULL
4001 * content selection pattern - do fix if pattern found
4003 tSCC zSun_SignalSelect0[] =
4004 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
4006 #define SUN_SIGNAL_TEST_CT 1
4007 static tTestDesc aSun_SignalTests[] = {
4008 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
4011 * Fix Command Arguments for Sun_Signal
4013 static const char* apzSun_SignalPatch[] = {
4015 "#ifdef __cplusplus\n\
4016 void\t(*signal(...))(...);\n\
4022 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4024 * Description of Sunos_Matherr_Decl fix
4026 tSCC zSunos_Matherr_DeclName[] =
4027 "sunos_matherr_decl";
4030 * File name selection pattern
4032 tSCC zSunos_Matherr_DeclList[] =
4035 * Machine/OS name selection pattern
4037 #define apzSunos_Matherr_DeclMachs (const char**)NULL
4040 * content selection pattern - do fix if pattern found
4042 tSCC zSunos_Matherr_DeclSelect0[] =
4046 * content bypass pattern - skip fix if pattern found
4048 tSCC zSunos_Matherr_DeclBypass0[] =
4049 "matherr.*(struct exception|__MATH_EXCEPTION)";
4051 #define SUNOS_MATHERR_DECL_TEST_CT 2
4052 static tTestDesc aSunos_Matherr_DeclTests[] = {
4053 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
4054 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
4057 * Fix Command Arguments for Sunos_Matherr_Decl
4059 static const char* apzSunos_Matherr_DeclPatch[] = {
4061 "struct exception;\n",
4064 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4066 * Description of Sunos_Strlen fix
4068 tSCC zSunos_StrlenName[] =
4072 * File name selection pattern
4074 tSCC zSunos_StrlenList[] =
4077 * Machine/OS name selection pattern
4079 #define apzSunos_StrlenMachs (const char**)NULL
4082 * content selection pattern - do fix if pattern found
4084 tSCC zSunos_StrlenSelect0[] =
4085 "int[ \t]*strlen\\(\\);(.*)";
4087 #define SUNOS_STRLEN_TEST_CT 1
4088 static tTestDesc aSunos_StrlenTests[] = {
4089 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
4092 * Fix Command Arguments for Sunos_Strlen
4094 static const char* apzSunos_StrlenPatch[] = {
4096 "__SIZE_TYPE__ strlen();%1",
4099 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4101 * Description of Svr4__P fix
4103 tSCC zSvr4__PName[] =
4107 * File name selection pattern
4109 tSCC zSvr4__PList[] =
4110 "|math.h|floatingpoint.h|";
4112 * Machine/OS name selection pattern
4114 #define apzSvr4__PMachs (const char**)NULL
4117 * content selection pattern - do fix if pattern found
4119 tSCC zSvr4__PSelect0[] =
4120 "^#define[ \t]+__P.*";
4122 #define SVR4__P_TEST_CT 1
4123 static tTestDesc aSvr4__PTests[] = {
4124 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
4127 * Fix Command Arguments for Svr4__P
4129 static const char* apzSvr4__PPatch[] = {
4136 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4138 * Description of Svr4_Getcwd fix
4140 tSCC zSvr4_GetcwdName[] =
4144 * File name selection pattern
4146 tSCC zSvr4_GetcwdList[] =
4147 "|stdlib.h|unistd.h|prototypes.h|";
4149 * Machine/OS name selection pattern
4151 #define apzSvr4_GetcwdMachs (const char**)NULL
4154 * content selection pattern - do fix if pattern found
4156 tSCC zSvr4_GetcwdSelect0[] =
4157 "getcwd\\(char \\*, int\\)";
4159 #define SVR4_GETCWD_TEST_CT 1
4160 static tTestDesc aSvr4_GetcwdTests[] = {
4161 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4164 * Fix Command Arguments for Svr4_Getcwd
4166 static const char* apzSvr4_GetcwdPatch[] = {
4168 "getcwd(char *, size_t)",
4171 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4173 * Description of Svr4_Profil fix
4175 tSCC zSvr4_ProfilName[] =
4179 * File name selection pattern
4181 tSCC zSvr4_ProfilList[] =
4182 "|stdlib.h|unistd.h|";
4184 * Machine/OS name selection pattern
4186 #define apzSvr4_ProfilMachs (const char**)NULL
4189 * content selection pattern - do fix if pattern found
4191 tSCC zSvr4_ProfilSelect0[] =
4192 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
4194 #define SVR4_PROFIL_TEST_CT 1
4195 static tTestDesc aSvr4_ProfilTests[] = {
4196 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
4199 * Fix Command Arguments for Svr4_Profil
4201 static const char* apzSvr4_ProfilPatch[] = {
4203 "profil(unsigned short *, size_t, int, unsigned int)",
4206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4208 * Description of Sysv68_String fix
4210 tSCC zSysv68_StringName[] =
4214 * File name selection pattern
4216 tSCC zSysv68_StringList[] =
4217 "|testing.h|string.h|";
4219 * Machine/OS name selection pattern
4221 #define apzSysv68_StringMachs (const char**)NULL
4222 #define SYSV68_STRING_TEST_CT 0
4223 #define aSysv68_StringTests (tTestDesc*)NULL
4226 * Fix Command Arguments for Sysv68_String
4228 static const char* apzSysv68_StringPatch[] = { "sed",
4229 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4230 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4231 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4232 "-e", "/^extern char$/N",
4233 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4234 "-e", "/^extern int$/N",
4235 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4236 "-e", "/^\tstrncmp(),$/N",
4237 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4238 extern unsigned int\\\n\
4242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4244 * Description of Sysz_Stdlib_For_Sun fix
4246 tSCC zSysz_Stdlib_For_SunName[] =
4247 "sysz_stdlib_for_sun";
4250 * File name selection pattern
4252 tSCC zSysz_Stdlib_For_SunList[] =
4255 * Machine/OS name selection pattern
4257 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4260 * content selection pattern - do fix if pattern found
4262 tSCC zSysz_Stdlib_For_SunSelect0[] =
4263 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
4265 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
4266 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
4267 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4270 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4272 static const char* apzSysz_Stdlib_For_SunPatch[] = {
4277 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4279 * Description of Thread_Keyword fix
4281 tSCC zThread_KeywordName[] =
4285 * File name selection pattern
4287 tSCC zThread_KeywordList[] =
4288 "|pthread.h|bits/sigthread.h|";
4290 * Machine/OS name selection pattern
4292 #define apzThread_KeywordMachs (const char**)NULL
4295 * content selection pattern - do fix if pattern found
4297 tSCC zThread_KeywordSelect0[] =
4298 "([* ])__thread([,)])";
4300 #define THREAD_KEYWORD_TEST_CT 1
4301 static tTestDesc aThread_KeywordTests[] = {
4302 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
4305 * Fix Command Arguments for Thread_Keyword
4307 static const char* apzThread_KeywordPatch[] = {
4312 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4314 * Description of Tinfo_Cplusplus fix
4316 tSCC zTinfo_CplusplusName[] =
4320 * File name selection pattern
4322 tSCC zTinfo_CplusplusList[] =
4325 * Machine/OS name selection pattern
4327 #define apzTinfo_CplusplusMachs (const char**)NULL
4330 * content selection pattern - do fix if pattern found
4332 tSCC zTinfo_CplusplusSelect0[] =
4335 #define TINFO_CPLUSPLUS_TEST_CT 1
4336 static tTestDesc aTinfo_CplusplusTests[] = {
4337 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4340 * Fix Command Arguments for Tinfo_Cplusplus
4342 static const char* apzTinfo_CplusplusPatch[] = {
4347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4349 * Description of Ultrix_Atexit_Param fix
4351 tSCC zUltrix_Atexit_ParamName[] =
4352 "ultrix_atexit_param";
4355 * File name selection pattern
4357 tSCC zUltrix_Atexit_ParamList[] =
4360 * Machine/OS name selection pattern
4362 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
4365 * content selection pattern - do fix if pattern found
4367 tSCC zUltrix_Atexit_ParamSelect0[] =
4368 "atexit\\(.*\\(\\)";
4370 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
4371 static tTestDesc aUltrix_Atexit_ParamTests[] = {
4372 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
4375 * Fix Command Arguments for Ultrix_Atexit_Param
4377 static const char* apzUltrix_Atexit_ParamPatch[] = {
4379 "atexit( void (*__func)( void )",
4382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4384 * Description of Ultrix_Atof_Param fix
4386 tSCC zUltrix_Atof_ParamName[] =
4387 "ultrix_atof_param";
4390 * File name selection pattern
4392 tSCC zUltrix_Atof_ParamList[] =
4395 * Machine/OS name selection pattern
4397 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4400 * content selection pattern - do fix if pattern found
4402 tSCC zUltrix_Atof_ParamSelect0[] =
4403 "atof\\([ \t]*char";
4405 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4406 static tTestDesc aUltrix_Atof_ParamTests[] = {
4407 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4410 * Fix Command Arguments for Ultrix_Atof_Param
4412 static const char* apzUltrix_Atof_ParamPatch[] = {
4417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4419 * Description of Ultrix_Const fix
4421 tSCC zUltrix_ConstName[] =
4425 * File name selection pattern
4427 tSCC zUltrix_ConstList[] =
4430 * Machine/OS name selection pattern
4432 #define apzUltrix_ConstMachs (const char**)NULL
4435 * content selection pattern - do fix if pattern found
4437 tSCC zUltrix_ConstSelect0[] =
4438 "perror\\( char \\*";
4440 #define ULTRIX_CONST_TEST_CT 1
4441 static tTestDesc aUltrix_ConstTests[] = {
4442 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
4445 * Fix Command Arguments for Ultrix_Const
4447 static const char* apzUltrix_ConstPatch[] = {
4450 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
4453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4455 * Description of Ultrix_Const2 fix
4457 tSCC zUltrix_Const2Name[] =
4461 * File name selection pattern
4463 tSCC zUltrix_Const2List[] =
4466 * Machine/OS name selection pattern
4468 #define apzUltrix_Const2Machs (const char**)NULL
4471 * content selection pattern - do fix if pattern found
4473 tSCC zUltrix_Const2Select0[] =
4474 "\\*fopen\\( char \\*";
4476 #define ULTRIX_CONST2_TEST_CT 1
4477 static tTestDesc aUltrix_Const2Tests[] = {
4478 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
4481 * Fix Command Arguments for Ultrix_Const2
4483 static const char* apzUltrix_Const2Patch[] = {
4485 "%1( const char *%3, const char *",
4486 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
4489 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4491 * Description of Ultrix_Fix_Fixproto fix
4493 tSCC zUltrix_Fix_FixprotoName[] =
4494 "ultrix_fix_fixproto";
4497 * File name selection pattern
4499 tSCC zUltrix_Fix_FixprotoList[] =
4502 * Machine/OS name selection pattern
4504 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4507 * content selection pattern - do fix if pattern found
4509 tSCC zUltrix_Fix_FixprotoSelect0[] =
4512 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4513 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
4514 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4517 * Fix Command Arguments for Ultrix_Fix_Fixproto
4519 static const char* apzUltrix_Fix_FixprotoPatch[] = {
4523 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
4526 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4528 * Description of Ultrix_Ifdef fix
4530 tSCC zUltrix_IfdefName[] =
4534 * File name selection pattern
4536 tSCC zUltrix_IfdefList[] =
4539 * Machine/OS name selection pattern
4541 #define apzUltrix_IfdefMachs (const char**)NULL
4544 * content selection pattern - do fix if pattern found
4546 tSCC zUltrix_IfdefSelect0[] =
4547 "^#ifdef KERNEL[ \t]+&&";
4549 #define ULTRIX_IFDEF_TEST_CT 1
4550 static tTestDesc aUltrix_IfdefTests[] = {
4551 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4554 * Fix Command Arguments for Ultrix_Ifdef
4556 static const char* apzUltrix_IfdefPatch[] = {
4558 "#if defined(KERNEL) &&",
4561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4563 * Description of Ultrix_Math_Ifdef fix
4565 tSCC zUltrix_Math_IfdefName[] =
4566 "ultrix_math_ifdef";
4569 * File name selection pattern
4571 tSCC zUltrix_Math_IfdefList[] =
4572 "|sys/limits.h|float.h|math.h|";
4574 * Machine/OS name selection pattern
4576 #define apzUltrix_Math_IfdefMachs (const char**)NULL
4579 * content selection pattern - do fix if pattern found
4581 tSCC zUltrix_Math_IfdefSelect0[] =
4582 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
4584 #define ULTRIX_MATH_IFDEF_TEST_CT 1
4585 static tTestDesc aUltrix_Math_IfdefTests[] = {
4586 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
4589 * Fix Command Arguments for Ultrix_Math_Ifdef
4591 static const char* apzUltrix_Math_IfdefPatch[] = {
4596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4598 * Description of Ultrix_Nested_Ioctl fix
4600 tSCC zUltrix_Nested_IoctlName[] =
4601 "ultrix_nested_ioctl";
4604 * File name selection pattern
4606 tSCC zUltrix_Nested_IoctlList[] =
4609 * Machine/OS name selection pattern
4611 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
4614 * content selection pattern - do fix if pattern found
4616 tSCC zUltrix_Nested_IoctlSelect0[] =
4617 "^/\\* #define SIOCSCREEN";
4619 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
4620 static tTestDesc aUltrix_Nested_IoctlTests[] = {
4621 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
4624 * Fix Command Arguments for Ultrix_Nested_Ioctl
4626 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
4627 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
4630 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4632 * Description of Ultrix_Nested_Svc fix
4634 tSCC zUltrix_Nested_SvcName[] =
4635 "ultrix_nested_svc";
4638 * File name selection pattern
4640 tSCC zUltrix_Nested_SvcList[] =
4643 * Machine/OS name selection pattern
4645 #define apzUltrix_Nested_SvcMachs (const char**)NULL
4648 * content selection pattern - do fix if pattern found
4650 tSCC zUltrix_Nested_SvcSelect0[] =
4651 "^ \\*[ \t]*int protocol; */\\*";
4653 #define ULTRIX_NESTED_SVC_TEST_CT 1
4654 static tTestDesc aUltrix_Nested_SvcTests[] = {
4655 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
4658 * Fix Command Arguments for Ultrix_Nested_Svc
4660 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
4661 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
4664 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4666 * Description of Ultrix_Stat fix
4668 tSCC zUltrix_StatName[] =
4672 * File name selection pattern
4674 tSCC zUltrix_StatList[] =
4677 * Machine/OS name selection pattern
4679 #define apzUltrix_StatMachs (const char**)NULL
4682 * content selection pattern - do fix if pattern found
4684 tSCC zUltrix_StatSelect0[] =
4685 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
4687 #define ULTRIX_STAT_TEST_CT 1
4688 static tTestDesc aUltrix_StatTests[] = {
4689 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
4692 * Fix Command Arguments for Ultrix_Stat
4694 static const char* apzUltrix_StatPatch[] = { "sed",
4695 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
4697 /* macro to test for symbolic link */\\\n\
4698 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
4699 "-e", "/^[ \t]*fstat(),$/a\\\n\
4703 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4705 * Description of Ultrix_Static fix
4707 tSCC zUltrix_StaticName[] =
4711 * File name selection pattern
4713 tSCC zUltrix_StaticList[] =
4716 * Machine/OS name selection pattern
4718 #define apzUltrix_StaticMachs (const char**)NULL
4721 * content selection pattern - do fix if pattern found
4723 tSCC zUltrix_StaticSelect0[] =
4724 "#include \"r[34]_cpu";
4726 #define ULTRIX_STATIC_TEST_CT 1
4727 static tTestDesc aUltrix_StaticTests[] = {
4728 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
4731 * Fix Command Arguments for Ultrix_Static
4733 static const char* apzUltrix_StaticPatch[] = { "sed",
4734 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
4735 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
4736 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
4739 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4741 * Description of Ultrix_Strings fix
4743 tSCC zUltrix_StringsName[] =
4747 * File name selection pattern
4749 tSCC zUltrix_StringsList[] =
4752 * Machine/OS name selection pattern
4754 #define apzUltrix_StringsMachs (const char**)NULL
4757 * content selection pattern - do fix if pattern found
4759 tSCC zUltrix_StringsSelect0[] =
4760 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
4762 #define ULTRIX_STRINGS_TEST_CT 1
4763 static tTestDesc aUltrix_StringsTests[] = {
4764 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
4767 * Fix Command Arguments for Ultrix_Strings
4769 static const char* apzUltrix_StringsPatch[] = {
4773 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4775 * Description of Undefine_Null fix
4777 tSCC zUndefine_NullName[] =
4781 * File name selection pattern
4783 #define zUndefine_NullList (char*)NULL
4785 * Machine/OS name selection pattern
4787 #define apzUndefine_NullMachs (const char**)NULL
4790 * content selection pattern - do fix if pattern found
4792 tSCC zUndefine_NullSelect0[] =
4793 "^#[ \t]*define[ \t]+NULL[ \t]";
4796 * content bypass pattern - skip fix if pattern found
4798 tSCC zUndefine_NullBypass0[] =
4799 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
4801 #define UNDEFINE_NULL_TEST_CT 2
4802 static tTestDesc aUndefine_NullTests[] = {
4803 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
4804 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
4807 * Fix Command Arguments for Undefine_Null
4809 static const char* apzUndefine_NullPatch[] = {
4814 "^#[ \t]*define[ \t]*[ \t]NULL([^\r\n\
4818 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4820 * Description of Unicosmk_Restrict fix
4822 tSCC zUnicosmk_RestrictName[] =
4823 "unicosmk_restrict";
4826 * File name selection pattern
4828 tSCC zUnicosmk_RestrictList[] =
4829 "|stdio.h|stdlib.h|wchar.h|";
4831 * Machine/OS name selection pattern
4833 tSCC* apzUnicosmk_RestrictMachs[] = {
4835 (const char*)NULL };
4838 * content selection pattern - do fix if pattern found
4840 tSCC zUnicosmk_RestrictSelect0[] =
4841 "(\\*[ \t]*)restrict([ \t]+)";
4843 #define UNICOSMK_RESTRICT_TEST_CT 1
4844 static tTestDesc aUnicosmk_RestrictTests[] = {
4845 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
4848 * Fix Command Arguments for Unicosmk_Restrict
4850 static const char* apzUnicosmk_RestrictPatch[] = {
4855 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4857 * Description of Uw7_Byteorder_Fix fix
4859 tSCC zUw7_Byteorder_FixName[] =
4860 "uw7_byteorder_fix";
4863 * File name selection pattern
4865 tSCC zUw7_Byteorder_FixList[] =
4868 * Machine/OS name selection pattern
4870 tSCC* apzUw7_Byteorder_FixMachs[] = {
4874 "i?86-*-solaris2.[0-4]",
4875 "powerpcle-*-solaris2.[0-4]",
4876 "sparc-*-solaris2.[0-4]",
4877 (const char*)NULL };
4880 * content selection pattern - do fix if pattern found
4882 tSCC zUw7_Byteorder_FixSelect0[] =
4886 * perform the 'test' shell command - do fix on success
4888 tSCC zUw7_Byteorder_FixTest0[] =
4889 "-f sys/byteorder.h";
4891 #define UW7_BYTEORDER_FIX_TEST_CT 2
4892 static tTestDesc aUw7_Byteorder_FixTests[] = {
4893 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
4894 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
4897 * Fix Command Arguments for Uw7_Byteorder_Fix
4899 static const char* apzUw7_Byteorder_FixPatch[] = {
4902 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
4905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4907 * Description of Va_I960_Macro fix
4909 tSCC zVa_I960_MacroName[] =
4913 * File name selection pattern
4915 tSCC zVa_I960_MacroList[] =
4916 "|arch/i960/archI960.h|";
4918 * Machine/OS name selection pattern
4920 #define apzVa_I960_MacroMachs (const char**)NULL
4923 * content selection pattern - do fix if pattern found
4925 tSCC zVa_I960_MacroSelect0[] =
4926 "__(vsiz|vali|vpad|alignof__)";
4928 #define VA_I960_MACRO_TEST_CT 1
4929 static tTestDesc aVa_I960_MacroTests[] = {
4930 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
4933 * Fix Command Arguments for Va_I960_Macro
4935 static const char* apzVa_I960_MacroPatch[] = {
4940 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4942 * Description of Void_Null fix
4944 tSCC zVoid_NullName[] =
4948 * File name selection pattern
4950 tSCC zVoid_NullList[] =
4951 "|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|";
4953 * Machine/OS name selection pattern
4955 #define apzVoid_NullMachs (const char**)NULL
4958 * content selection pattern - do fix if pattern found
4960 tSCC zVoid_NullSelect0[] =
4961 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
4963 #define VOID_NULL_TEST_CT 1
4964 static tTestDesc aVoid_NullTests[] = {
4965 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
4968 * Fix Command Arguments for Void_Null
4970 static const char* apzVoid_NullPatch[] = {
4975 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4977 * Description of Vxworks_Gcc_Problem fix
4979 tSCC zVxworks_Gcc_ProblemName[] =
4980 "vxworks_gcc_problem";
4983 * File name selection pattern
4985 tSCC zVxworks_Gcc_ProblemList[] =
4986 "|types/vxTypesBase.h|";
4988 * Machine/OS name selection pattern
4990 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
4993 * content selection pattern - do fix if pattern found
4995 tSCC zVxworks_Gcc_ProblemSelect0[] =
4996 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
4998 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
4999 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
5000 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
5003 * Fix Command Arguments for Vxworks_Gcc_Problem
5005 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
5006 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
5007 "-e", "/[ \t]size_t/i\\\n\
5008 #ifndef _GCC_SIZE_T\\\n\
5009 #define _GCC_SIZE_T\n",
5010 "-e", "/[ \t]size_t/a\\\n\
5012 "-e", "/[ \t]ptrdiff_t/i\\\n\
5013 #ifndef _GCC_PTRDIFF_T\\\n\
5014 #define _GCC_PTRDIFF_T\n",
5015 "-e", "/[ \t]ptrdiff_t/a\\\n\
5017 "-e", "/[ \t]wchar_t/i\\\n\
5018 #ifndef _GCC_WCHAR_T\\\n\
5019 #define _GCC_WCHAR_T\n",
5020 "-e", "/[ \t]wchar_t/a\\\n\
5024 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5026 * Description of Vxworks_Needs_Vxtypes fix
5028 tSCC zVxworks_Needs_VxtypesName[] =
5029 "vxworks_needs_vxtypes";
5032 * File name selection pattern
5034 tSCC zVxworks_Needs_VxtypesList[] =
5037 * Machine/OS name selection pattern
5039 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
5042 * content selection pattern - do fix if pattern found
5044 tSCC zVxworks_Needs_VxtypesSelect0[] =
5045 "uint_t([ \t]+_clocks_per_sec)";
5047 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
5048 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
5049 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
5052 * Fix Command Arguments for Vxworks_Needs_Vxtypes
5054 static const char* apzVxworks_Needs_VxtypesPatch[] = {
5059 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5061 * Description of Vxworks_Needs_Vxworks fix
5063 tSCC zVxworks_Needs_VxworksName[] =
5064 "vxworks_needs_vxworks";
5067 * File name selection pattern
5069 tSCC zVxworks_Needs_VxworksList[] =
5072 * Machine/OS name selection pattern
5074 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
5077 * content selection pattern - do fix if pattern found
5079 tSCC zVxworks_Needs_VxworksSelect0[] =
5080 "#[ \t]define[ \t]+__INCstath";
5083 * perform the 'test' shell command - do fix on success
5085 tSCC zVxworks_Needs_VxworksTest0[] =
5086 " -r types/vxTypesOld.h";
5087 tSCC zVxworks_Needs_VxworksTest1[] =
5088 " -n \"`egrep '#include' $file`\"";
5089 tSCC zVxworks_Needs_VxworksTest2[] =
5090 " -n \"`egrep ULONG $file`\"";
5092 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
5093 static tTestDesc aVxworks_Needs_VxworksTests[] = {
5094 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
5095 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
5096 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
5097 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
5100 * Fix Command Arguments for Vxworks_Needs_Vxworks
5102 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
5103 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
5104 #include <types/vxTypesOld.h>\n",
5107 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5109 * Description of Vxworks_Time fix
5111 tSCC zVxworks_TimeName[] =
5115 * File name selection pattern
5117 tSCC zVxworks_TimeList[] =
5120 * Machine/OS name selection pattern
5122 #define apzVxworks_TimeMachs (const char**)NULL
5125 * content selection pattern - do fix if pattern found
5127 tSCC zVxworks_TimeSelect0[] =
5128 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
5131 * perform the 'test' shell command - do fix on success
5133 tSCC zVxworks_TimeTest0[] =
5136 #define VXWORKS_TIME_TEST_CT 2
5137 static tTestDesc aVxworks_TimeTests[] = {
5138 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
5139 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
5142 * Fix Command Arguments for Vxworks_Time
5144 static const char* apzVxworks_TimePatch[] = {
5146 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
5147 #ifdef __cplusplus\n\
5148 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
5150 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
5152 #define __gcc_VOIDFUNCPTR_defined\n\
5154 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
5157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5159 * Description of Windiss_Math1 fix
5161 tSCC zWindiss_Math1Name[] =
5165 * File name selection pattern
5167 tSCC zWindiss_Math1List[] =
5170 * Machine/OS name selection pattern
5172 tSCC* apzWindiss_Math1Machs[] = {
5174 (const char*)NULL };
5175 #define WINDISS_MATH1_TEST_CT 0
5176 #define aWindiss_Math1Tests (tTestDesc*)NULL
5179 * Fix Command Arguments for Windiss_Math1
5181 static const char* apzWindiss_Math1Patch[] = { "sed",
5182 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
5185 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5187 * Description of Windiss_Math2 fix
5189 tSCC zWindiss_Math2Name[] =
5193 * File name selection pattern
5195 tSCC zWindiss_Math2List[] =
5198 * Machine/OS name selection pattern
5200 tSCC* apzWindiss_Math2Machs[] = {
5202 (const char*)NULL };
5203 #define WINDISS_MATH2_TEST_CT 0
5204 #define aWindiss_Math2Tests (tTestDesc*)NULL
5207 * Fix Command Arguments for Windiss_Math2
5209 static const char* apzWindiss_Math2Patch[] = { "sed",
5210 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
5213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5215 * Description of Windiss_Valist fix
5217 tSCC zWindiss_ValistName[] =
5221 * File name selection pattern
5223 #define zWindiss_ValistList (char*)NULL
5225 * Machine/OS name selection pattern
5227 tSCC* apzWindiss_ValistMachs[] = {
5229 (const char*)NULL };
5232 * content selection pattern - do fix if pattern found
5234 tSCC zWindiss_ValistSelect0[] =
5235 "(#include.*)diab/va_list.h";
5237 #define WINDISS_VALIST_TEST_CT 1
5238 static tTestDesc aWindiss_ValistTests[] = {
5239 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
5242 * Fix Command Arguments for Windiss_Valist
5244 static const char* apzWindiss_ValistPatch[] = { "sed",
5245 "-e", "s|diab/va_list.h|stdarg.h|",
5248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5250 * Description of X11_Class fix
5252 tSCC zX11_ClassName[] =
5256 * File name selection pattern
5258 tSCC zX11_ClassList[] =
5261 * Machine/OS name selection pattern
5263 #define apzX11_ClassMachs (const char**)NULL
5266 * content selection pattern - do fix if pattern found
5268 tSCC zX11_ClassSelect0[] =
5269 "^([ \t]*char \\*)class;(.*)";
5272 * content bypass pattern - skip fix if pattern found
5274 tSCC zX11_ClassBypass0[] =
5277 #define X11_CLASS_TEST_CT 2
5278 static tTestDesc aX11_ClassTests[] = {
5279 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
5280 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
5283 * Fix Command Arguments for X11_Class
5285 static const char* apzX11_ClassPatch[] = {
5287 "#ifdef __cplusplus\n\
5294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5296 * Description of X11_Class_Usage fix
5298 tSCC zX11_Class_UsageName[] =
5302 * File name selection pattern
5304 tSCC zX11_Class_UsageList[] =
5305 "|Xm/BaseClassI.h|";
5307 * Machine/OS name selection pattern
5309 #define apzX11_Class_UsageMachs (const char**)NULL
5312 * content selection pattern - do fix if pattern found
5314 tSCC zX11_Class_UsageSelect0[] =
5318 * content bypass pattern - skip fix if pattern found
5320 tSCC zX11_Class_UsageBypass0[] =
5323 #define X11_CLASS_USAGE_TEST_CT 2
5324 static tTestDesc aX11_Class_UsageTests[] = {
5325 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
5326 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
5329 * Fix Command Arguments for X11_Class_Usage
5331 static const char* apzX11_Class_UsagePatch[] = {
5336 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5338 * Description of X11_New fix
5340 tSCC zX11_NewName[] =
5344 * File name selection pattern
5346 tSCC zX11_NewList[] =
5349 * Machine/OS name selection pattern
5351 #define apzX11_NewMachs (const char**)NULL
5354 * content bypass pattern - skip fix if pattern found
5356 tSCC zX11_NewBypass0[] =
5359 #define X11_NEW_TEST_CT 1
5360 static tTestDesc aX11_NewTests[] = {
5361 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
5364 * Fix Command Arguments for X11_New
5366 static const char* apzX11_NewPatch[] = { "sed",
5367 "-e", "/Widget\told, new;/i\\\n\
5368 #ifdef __cplusplus\\\n\
5369 \tWidget\told, c_new;\\\n\
5371 "-e", "/Widget\told, new;/a\\\n\
5373 "-e", "s/Widget new,/Widget c_new,/g",
5376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5378 * Description of X11_Sprintf fix
5380 tSCC zX11_SprintfName[] =
5384 * File name selection pattern
5386 tSCC zX11_SprintfList[] =
5387 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
5389 * Machine/OS name selection pattern
5391 #define apzX11_SprintfMachs (const char**)NULL
5394 * content selection pattern - do fix if pattern found
5396 tSCC zX11_SprintfSelect0[] =
5397 "^extern char \\*\tsprintf\\(\\);$";
5399 #define X11_SPRINTF_TEST_CT 1
5400 static tTestDesc aX11_SprintfTests[] = {
5401 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
5404 * Fix Command Arguments for X11_Sprintf
5406 static const char* apzX11_SprintfPatch[] = {
5408 "#ifndef __STDC__\n\
5410 #endif /* !defined __STDC__ */",
5414 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5418 #define REGEX_COUNT 147
5419 #define MACH_LIST_SIZE_LIMIT 261
5420 #define FIX_COUNT 138
5423 * Enumerate the fixes
5426 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
5427 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
5428 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
5429 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
5430 AAB_SUN_MEMCPY_FIXIDX,
5431 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
5432 AAB_ULTRIX_LIMITS_FIXIDX,
5433 AAB_ULTRIX_MEMORY_FIXIDX,
5434 AAB_ULTRIX_STRING_FIXIDX,
5436 AIX_SYSMACHINE_FIXIDX,
5438 AIX_VOLATILE_FIXIDX,
5439 ALPHA___ASSERT_FIXIDX,
5440 ALPHA_ASSERT_FIXIDX,
5441 ALPHA_GETOPT_FIXIDX,
5442 ALPHA_PARENS_FIXIDX,
5444 AVOID_BOOL_DEFINE_FIXIDX,
5445 AVOID_BOOL_TYPE_FIXIDX,
5446 AVOID_WCHAR_T_TYPE_FIXIDX,
5448 BAD_STRUCT_TERM_FIXIDX,
5450 BROKEN_ASSERT_STDIO_FIXIDX,
5451 BROKEN_ASSERT_STDLIB_FIXIDX,
5453 CTRL_QUOTES_DEF_FIXIDX,
5454 CTRL_QUOTES_USE_FIXIDX,
5456 DEC_INTERN_ASM_FIXIDX,
5457 DJGPP_WCHAR_H_FIXIDX,
5459 FREEBSD_GCC3_BREAKAGE_FIXIDX,
5463 HPUX10_CPP_POW_INLINE_FIXIDX,
5464 HPUX11_CPP_POW_INLINE_FIXIDX,
5466 HPUX11_FABSF_FIXIDX,
5467 HPUX11_SIZE_T_FIXIDX,
5468 HPUX11_UINT32_C_FIXIDX,
5469 HPUX11_VSNPRINTF_FIXIDX,
5470 HPUX8_BOGUS_INLINES_FIXIDX,
5472 HPUX_SYSTIME_FIXIDX,
5473 INT_ABORT_FREE_AND_EXIT_FIXIDX,
5474 IO_QUOTES_DEF_FIXIDX,
5475 IO_QUOTES_USE_FIXIDX,
5476 IP_MISSING_SEMI_FIXIDX,
5477 IRIX_ASM_APOSTROPHE_FIXIDX,
5478 IRIX_LIMITS_CONST_FIXIDX,
5479 IRIX_STDIO_VA_LIST_FIXIDX,
5481 ISC_OMITS_WITH_STDC_FIXIDX,
5482 KANDR_CONCAT_FIXIDX,
5483 LIBC1_G_VA_LIST_FIXIDX,
5484 LIBC1_IFDEFD_MEMX_FIXIDX,
5485 LIMITS_IFNDEFS_FIXIDX,
5486 LYNX_VOID_INT_FIXIDX,
5487 LYNXOS_FCNTL_PROTO_FIXIDX,
5488 MACHINE_ANSI_H_VA_LIST_FIXIDX,
5489 MACHINE_NAME_FIXIDX,
5490 MATH_EXCEPTION_FIXIDX,
5491 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
5492 MATH_HUGE_VAL_IFNDEF_FIXIDX,
5493 NESTED_AUTH_DES_FIXIDX,
5494 NESTED_MOTOROLA_FIXIDX,
5495 NESTED_SYS_LIMITS_FIXIDX,
5496 NEXT_MATH_PREFIX_FIXIDX,
5497 NEXT_TEMPLATE_FIXIDX,
5498 NEXT_VOLITILE_FIXIDX,
5499 NEXT_WAIT_UNION_FIXIDX,
5500 NODEENT_SYNTAX_FIXIDX,
5501 OSF_NAMESPACE_A_FIXIDX,
5502 OSF_NAMESPACE_C_FIXIDX,
5503 PTHREAD_PAGE_SIZE_FIXIDX,
5504 READ_RET_TYPE_FIXIDX,
5505 RS6000_DOUBLE_FIXIDX,
5506 RS6000_FCHMOD_FIXIDX,
5507 RS6000_PARAM_FIXIDX,
5508 SCO_STATIC_FUNC_FIXIDX,
5510 SOLARIS_MUTEX_INIT_FIXIDX,
5511 SOLARIS_STDIO_TAG_FIXIDX,
5512 SOLARIS_WIDEC_FIXIDX,
5514 STDIO_STDARG_H_FIXIDX,
5515 STDIO_VA_LIST_FIXIDX,
5516 STRICT_ANSI_NOT_FIXIDX,
5517 STRICT_ANSI_NOT_CTD_FIXIDX,
5518 STRICT_ANSI_ONLY_FIXIDX,
5520 STRUCT_SOCKADDR_FIXIDX,
5521 SUN_AUTH_PROTO_FIXIDX,
5522 SUN_BOGUS_IFDEF_FIXIDX,
5523 SUN_CATMACRO_FIXIDX,
5525 SUN_RUSERS_SEMI_FIXIDX,
5527 SUNOS_MATHERR_DECL_FIXIDX,
5528 SUNOS_STRLEN_FIXIDX,
5532 SYSV68_STRING_FIXIDX,
5533 SYSZ_STDLIB_FOR_SUN_FIXIDX,
5534 THREAD_KEYWORD_FIXIDX,
5535 TINFO_CPLUSPLUS_FIXIDX,
5536 ULTRIX_ATEXIT_PARAM_FIXIDX,
5537 ULTRIX_ATOF_PARAM_FIXIDX,
5538 ULTRIX_CONST_FIXIDX,
5539 ULTRIX_CONST2_FIXIDX,
5540 ULTRIX_FIX_FIXPROTO_FIXIDX,
5541 ULTRIX_IFDEF_FIXIDX,
5542 ULTRIX_MATH_IFDEF_FIXIDX,
5543 ULTRIX_NESTED_IOCTL_FIXIDX,
5544 ULTRIX_NESTED_SVC_FIXIDX,
5546 ULTRIX_STATIC_FIXIDX,
5547 ULTRIX_STRINGS_FIXIDX,
5548 UNDEFINE_NULL_FIXIDX,
5549 UNICOSMK_RESTRICT_FIXIDX,
5550 UW7_BYTEORDER_FIX_FIXIDX,
5551 VA_I960_MACRO_FIXIDX,
5553 VXWORKS_GCC_PROBLEM_FIXIDX,
5554 VXWORKS_NEEDS_VXTYPES_FIXIDX,
5555 VXWORKS_NEEDS_VXWORKS_FIXIDX,
5556 VXWORKS_TIME_FIXIDX,
5557 WINDISS_MATH1_FIXIDX,
5558 WINDISS_MATH2_FIXIDX,
5559 WINDISS_VALIST_FIXIDX,
5561 X11_CLASS_USAGE_FIXIDX,
5566 tFixDesc fixDescList[ FIX_COUNT ] = {
5567 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
5568 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
5569 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5570 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
5572 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
5573 apzAab_Fd_Zero_Gnu_Types_HMachs,
5574 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5575 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
5577 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
5578 apzAab_Fd_Zero_Selectbits_HMachs,
5579 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5580 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
5582 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
5583 apzAab_Solaris_Sys_Varargs_HMachs,
5584 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5585 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
5587 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
5588 apzAab_Sun_MemcpyMachs,
5589 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5590 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
5592 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
5593 apzAab_Ultrix_Ansi_CompatMachs,
5594 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5595 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
5597 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
5598 apzAab_Ultrix_LimitsMachs,
5599 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5600 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
5602 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
5603 apzAab_Ultrix_MemoryMachs,
5604 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5605 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
5607 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
5608 apzAab_Ultrix_StringMachs,
5609 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5610 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
5612 { zAix_PthreadName, zAix_PthreadList,
5613 apzAix_PthreadMachs,
5614 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5615 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
5617 { zAix_SysmachineName, zAix_SysmachineList,
5618 apzAix_SysmachineMachs,
5619 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5620 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
5622 { zAix_SyswaitName, zAix_SyswaitList,
5623 apzAix_SyswaitMachs,
5624 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5625 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
5627 { zAix_VolatileName, zAix_VolatileList,
5628 apzAix_VolatileMachs,
5629 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5630 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
5632 { zAlpha___AssertName, zAlpha___AssertList,
5633 apzAlpha___AssertMachs,
5634 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5635 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
5637 { zAlpha_AssertName, zAlpha_AssertList,
5638 apzAlpha_AssertMachs,
5639 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5640 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
5642 { zAlpha_GetoptName, zAlpha_GetoptList,
5643 apzAlpha_GetoptMachs,
5644 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5645 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
5647 { zAlpha_ParensName, zAlpha_ParensList,
5648 apzAlpha_ParensMachs,
5649 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5650 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
5652 { zAlpha_SbrkName, zAlpha_SbrkList,
5654 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5655 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
5657 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
5658 apzAvoid_Bool_DefineMachs,
5659 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5660 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
5662 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
5663 apzAvoid_Bool_TypeMachs,
5664 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5665 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
5667 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
5668 apzAvoid_Wchar_T_TypeMachs,
5669 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5670 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
5672 { zBad_LvalName, zBad_LvalList,
5674 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
5675 aBad_LvalTests, apzBad_LvalPatch, 0 },
5677 { zBad_Struct_TermName, zBad_Struct_TermList,
5678 apzBad_Struct_TermMachs,
5679 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5680 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
5682 { zBadquoteName, zBadquoteList,
5684 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5685 aBadquoteTests, apzBadquotePatch, 0 },
5687 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
5688 apzBroken_Assert_StdioMachs,
5689 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5690 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
5692 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
5693 apzBroken_Assert_StdlibMachs,
5694 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5695 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
5697 { zBroken_CabsName, zBroken_CabsList,
5698 apzBroken_CabsMachs,
5699 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5700 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
5702 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
5703 apzCtrl_Quotes_DefMachs,
5704 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5705 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
5707 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
5708 apzCtrl_Quotes_UseMachs,
5709 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5710 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
5712 { zCxx_UnreadyName, zCxx_UnreadyList,
5713 apzCxx_UnreadyMachs,
5714 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5715 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
5717 { zDec_Intern_AsmName, zDec_Intern_AsmList,
5718 apzDec_Intern_AsmMachs,
5719 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
5720 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
5722 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
5723 apzDjgpp_Wchar_HMachs,
5724 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5725 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
5727 { zEcd_CursorName, zEcd_CursorList,
5729 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5730 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
5732 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
5733 apzFreebsd_Gcc3_BreakageMachs,
5734 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5735 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
5737 { zGnu_TypesName, zGnu_TypesList,
5739 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5740 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
5742 { zHp_InlineName, zHp_InlineList,
5744 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5745 aHp_InlineTests, apzHp_InlinePatch, 0 },
5747 { zHp_SysfileName, zHp_SysfileList,
5749 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5750 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
5752 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
5753 apzHpux10_Cpp_Pow_InlineMachs,
5754 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5755 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
5757 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
5758 apzHpux11_Cpp_Pow_InlineMachs,
5759 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5760 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
5762 { zHpux11_AbsName, zHpux11_AbsList,
5764 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5765 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
5767 { zHpux11_FabsfName, zHpux11_FabsfList,
5768 apzHpux11_FabsfMachs,
5769 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5770 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
5772 { zHpux11_Size_TName, zHpux11_Size_TList,
5773 apzHpux11_Size_TMachs,
5774 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5775 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
5777 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
5778 apzHpux11_Uint32_CMachs,
5779 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5780 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
5782 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
5783 apzHpux11_VsnprintfMachs,
5784 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5785 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
5787 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
5788 apzHpux8_Bogus_InlinesMachs,
5789 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
5790 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
5792 { zHpux_MaxintName, zHpux_MaxintList,
5793 apzHpux_MaxintMachs,
5794 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5795 aHpux_MaxintTests, apzHpux_MaxintPatch, 0 },
5797 { zHpux_SystimeName, zHpux_SystimeList,
5798 apzHpux_SystimeMachs,
5799 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5800 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
5802 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
5803 apzInt_Abort_Free_And_ExitMachs,
5804 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5805 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
5807 { zIo_Quotes_DefName, zIo_Quotes_DefList,
5808 apzIo_Quotes_DefMachs,
5809 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5810 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
5812 { zIo_Quotes_UseName, zIo_Quotes_UseList,
5813 apzIo_Quotes_UseMachs,
5814 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5815 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
5817 { zIp_Missing_SemiName, zIp_Missing_SemiList,
5818 apzIp_Missing_SemiMachs,
5819 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
5820 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
5822 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
5823 apzIrix_Asm_ApostropheMachs,
5824 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5825 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
5827 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
5828 apzIrix_Limits_ConstMachs,
5829 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5830 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
5832 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
5833 apzIrix_Stdio_Va_ListMachs,
5834 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5835 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
5837 { zIsc_FmodName, zIsc_FmodList,
5839 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5840 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
5842 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
5843 apzIsc_Omits_With_StdcMachs,
5844 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5845 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
5847 { zKandr_ConcatName, zKandr_ConcatList,
5848 apzKandr_ConcatMachs,
5849 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5850 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
5852 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
5853 apzLibc1_G_Va_ListMachs,
5854 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5855 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
5857 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
5858 apzLibc1_Ifdefd_MemxMachs,
5859 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5860 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
5862 { zLimits_IfndefsName, zLimits_IfndefsList,
5863 apzLimits_IfndefsMachs,
5864 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5865 aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 },
5867 { zLynx_Void_IntName, zLynx_Void_IntList,
5868 apzLynx_Void_IntMachs,
5869 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5870 aLynx_Void_IntTests, apzLynx_Void_IntPatch, 0 },
5872 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
5873 apzLynxos_Fcntl_ProtoMachs,
5874 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5875 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch, 0 },
5877 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
5878 apzMachine_Ansi_H_Va_ListMachs,
5879 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5880 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
5882 { zMachine_NameName, zMachine_NameList,
5883 apzMachine_NameMachs,
5884 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5885 aMachine_NameTests, apzMachine_NamePatch, 0 },
5887 { zMath_ExceptionName, zMath_ExceptionList,
5888 apzMath_ExceptionMachs,
5889 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5890 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
5892 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
5893 apzMath_Huge_Val_From_Dbl_MaxMachs,
5894 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
5895 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
5897 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
5898 apzMath_Huge_Val_IfndefMachs,
5899 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5900 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch, 0 },
5902 { zNested_Auth_DesName, zNested_Auth_DesList,
5903 apzNested_Auth_DesMachs,
5904 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5905 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
5907 { zNested_MotorolaName, zNested_MotorolaList,
5908 apzNested_MotorolaMachs,
5909 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
5910 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
5912 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
5913 apzNested_Sys_LimitsMachs,
5914 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
5915 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
5917 { zNext_Math_PrefixName, zNext_Math_PrefixList,
5918 apzNext_Math_PrefixMachs,
5919 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5920 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
5922 { zNext_TemplateName, zNext_TemplateList,
5923 apzNext_TemplateMachs,
5924 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5925 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
5927 { zNext_VolitileName, zNext_VolitileList,
5928 apzNext_VolitileMachs,
5929 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5930 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
5932 { zNext_Wait_UnionName, zNext_Wait_UnionList,
5933 apzNext_Wait_UnionMachs,
5934 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5935 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
5937 { zNodeent_SyntaxName, zNodeent_SyntaxList,
5938 apzNodeent_SyntaxMachs,
5939 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5940 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
5942 { zOsf_Namespace_AName, zOsf_Namespace_AList,
5943 apzOsf_Namespace_AMachs,
5944 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5945 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
5947 { zOsf_Namespace_CName, zOsf_Namespace_CList,
5948 apzOsf_Namespace_CMachs,
5949 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5950 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
5952 { zPthread_Page_SizeName, zPthread_Page_SizeList,
5953 apzPthread_Page_SizeMachs,
5954 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5955 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
5957 { zRead_Ret_TypeName, zRead_Ret_TypeList,
5958 apzRead_Ret_TypeMachs,
5959 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5960 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
5962 { zRs6000_DoubleName, zRs6000_DoubleList,
5963 apzRs6000_DoubleMachs,
5964 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5965 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
5967 { zRs6000_FchmodName, zRs6000_FchmodList,
5968 apzRs6000_FchmodMachs,
5969 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5970 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
5972 { zRs6000_ParamName, zRs6000_ParamList,
5973 apzRs6000_ParamMachs,
5974 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5975 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
5977 { zSco_Static_FuncName, zSco_Static_FuncList,
5978 apzSco_Static_FuncMachs,
5979 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
5980 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
5982 { zSco_UtimeName, zSco_UtimeList,
5984 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5985 aSco_UtimeTests, apzSco_UtimePatch, 0 },
5987 { zSolaris_Mutex_InitName, zSolaris_Mutex_InitList,
5988 apzSolaris_Mutex_InitMachs,
5989 SOLARIS_MUTEX_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5990 aSolaris_Mutex_InitTests, apzSolaris_Mutex_InitPatch, 0 },
5992 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
5993 apzSolaris_Stdio_TagMachs,
5994 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
5995 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
5997 { zSolaris_WidecName, zSolaris_WidecList,
5998 apzSolaris_WidecMachs,
5999 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6000 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
6002 { zStatsswtchName, zStatsswtchList,
6004 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6005 aStatsswtchTests, apzStatsswtchPatch, 0 },
6007 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
6008 apzStdio_Stdarg_HMachs,
6009 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6010 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
6012 { zStdio_Va_ListName, zStdio_Va_ListList,
6013 apzStdio_Va_ListMachs,
6014 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
6015 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
6017 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
6018 apzStrict_Ansi_NotMachs,
6019 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6020 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
6022 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
6023 apzStrict_Ansi_Not_CtdMachs,
6024 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6025 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
6027 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
6028 apzStrict_Ansi_OnlyMachs,
6029 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6030 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
6032 { zStruct_FileName, zStruct_FileList,
6033 apzStruct_FileMachs,
6034 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6035 aStruct_FileTests, apzStruct_FilePatch, 0 },
6037 { zStruct_SockaddrName, zStruct_SockaddrList,
6038 apzStruct_SockaddrMachs,
6039 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6040 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
6042 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
6043 apzSun_Auth_ProtoMachs,
6044 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6045 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
6047 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
6048 apzSun_Bogus_IfdefMachs,
6049 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6050 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
6052 { zSun_CatmacroName, zSun_CatmacroList,
6053 apzSun_CatmacroMachs,
6054 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6055 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
6057 { zSun_MallocName, zSun_MallocList,
6059 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
6060 aSun_MallocTests, apzSun_MallocPatch, 0 },
6062 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
6063 apzSun_Rusers_SemiMachs,
6064 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
6065 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
6067 { zSun_SignalName, zSun_SignalList,
6069 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6070 aSun_SignalTests, apzSun_SignalPatch, 0 },
6072 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
6073 apzSunos_Matherr_DeclMachs,
6074 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6075 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch, 0 },
6077 { zSunos_StrlenName, zSunos_StrlenList,
6078 apzSunos_StrlenMachs,
6079 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6080 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
6082 { zSvr4__PName, zSvr4__PList,
6084 SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6085 aSvr4__PTests, apzSvr4__PPatch, 0 },
6087 { zSvr4_GetcwdName, zSvr4_GetcwdList,
6088 apzSvr4_GetcwdMachs,
6089 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6090 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
6092 { zSvr4_ProfilName, zSvr4_ProfilList,
6093 apzSvr4_ProfilMachs,
6094 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6095 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
6097 { zSysv68_StringName, zSysv68_StringList,
6098 apzSysv68_StringMachs,
6099 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
6100 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
6102 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
6103 apzSysz_Stdlib_For_SunMachs,
6104 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6105 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
6107 { zThread_KeywordName, zThread_KeywordList,
6108 apzThread_KeywordMachs,
6109 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6110 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
6112 { zTinfo_CplusplusName, zTinfo_CplusplusList,
6113 apzTinfo_CplusplusMachs,
6114 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6115 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
6117 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
6118 apzUltrix_Atexit_ParamMachs,
6119 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6120 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
6122 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
6123 apzUltrix_Atof_ParamMachs,
6124 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6125 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
6127 { zUltrix_ConstName, zUltrix_ConstList,
6128 apzUltrix_ConstMachs,
6129 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6130 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
6132 { zUltrix_Const2Name, zUltrix_Const2List,
6133 apzUltrix_Const2Machs,
6134 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6135 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
6137 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
6138 apzUltrix_Fix_FixprotoMachs,
6139 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6140 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
6142 { zUltrix_IfdefName, zUltrix_IfdefList,
6143 apzUltrix_IfdefMachs,
6144 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6145 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
6147 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
6148 apzUltrix_Math_IfdefMachs,
6149 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6150 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
6152 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
6153 apzUltrix_Nested_IoctlMachs,
6154 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
6155 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
6157 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
6158 apzUltrix_Nested_SvcMachs,
6159 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
6160 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
6162 { zUltrix_StatName, zUltrix_StatList,
6163 apzUltrix_StatMachs,
6164 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
6165 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
6167 { zUltrix_StaticName, zUltrix_StaticList,
6168 apzUltrix_StaticMachs,
6169 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
6170 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
6172 { zUltrix_StringsName, zUltrix_StringsList,
6173 apzUltrix_StringsMachs,
6174 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6175 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
6177 { zUndefine_NullName, zUndefine_NullList,
6178 apzUndefine_NullMachs,
6179 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6180 aUndefine_NullTests, apzUndefine_NullPatch, 0 },
6182 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
6183 apzUnicosmk_RestrictMachs,
6184 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6185 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
6187 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
6188 apzUw7_Byteorder_FixMachs,
6189 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6190 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
6192 { zVa_I960_MacroName, zVa_I960_MacroList,
6193 apzVa_I960_MacroMachs,
6194 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6195 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
6197 { zVoid_NullName, zVoid_NullList,
6199 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6200 aVoid_NullTests, apzVoid_NullPatch, 0 },
6202 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
6203 apzVxworks_Gcc_ProblemMachs,
6204 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
6205 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
6207 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
6208 apzVxworks_Needs_VxtypesMachs,
6209 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6210 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
6212 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
6213 apzVxworks_Needs_VxworksMachs,
6214 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
6215 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
6217 { zVxworks_TimeName, zVxworks_TimeList,
6218 apzVxworks_TimeMachs,
6219 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6220 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
6222 { zWindiss_Math1Name, zWindiss_Math1List,
6223 apzWindiss_Math1Machs,
6224 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
6225 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
6227 { zWindiss_Math2Name, zWindiss_Math2List,
6228 apzWindiss_Math2Machs,
6229 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
6230 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
6232 { zWindiss_ValistName, zWindiss_ValistList,
6233 apzWindiss_ValistMachs,
6234 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
6235 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
6237 { zX11_ClassName, zX11_ClassList,
6239 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6240 aX11_ClassTests, apzX11_ClassPatch, 0 },
6242 { zX11_Class_UsageName, zX11_Class_UsageList,
6243 apzX11_Class_UsageMachs,
6244 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6245 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
6247 { zX11_NewName, zX11_NewList,
6249 X11_NEW_TEST_CT, FD_MACH_ONLY,
6250 aX11_NewTests, apzX11_NewPatch, 0 },
6252 { zX11_SprintfName, zX11_SprintfList,
6253 apzX11_SprintfMachs,
6254 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6255 aX11_SprintfTests, apzX11_SprintfPatch, 0 }