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 147 fixup descriptions.
10 * See README for more information.
12 * inclhack copyright (c) 1998, 1999, 2000, 2001
13 * The Free Software Foundation, Inc.
15 * inclhack is free software.
17 * You may redistribute it and/or modify it under the terms of the
18 * GNU General Public License, as published by the Free Software
19 * Foundation; either version 2, or (at your option) any later version.
21 * inclhack is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 * See the GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with inclhack. See the file "COPYING". If not,
28 * write to: The Free Software Foundation, Inc.,
29 * 59 Temple Place - Suite 330,
30 * Boston, MA 02111-1307, USA.
33 /* * * * * * * * * * * * * * * * * * * * * * * * * *
35 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
37 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
38 "AAB_fd_zero_asm_posix_types_h";
41 * File name selection pattern
43 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
44 "|asm/posix_types.h|";
46 * Machine/OS name selection pattern
48 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
49 "i[34567]86-*-linux*",
53 * content bypass pattern - skip fix if pattern found
55 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
58 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1
59 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
60 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
63 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
65 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
66 "/* This file fixes a bug in the __FD_ZERO macro\n\
67 for older versions of the Linux kernel. */\n\
68 #ifndef _POSIX_TYPES_H_WRAPPER\n\
69 #include <features.h>\n\
70 #include_next <asm/posix_types.h>\n\n\
71 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
73 #define __FD_ZERO(fdsetp) \\\n\
76 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
77 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
78 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
79 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
82 #define _POSIX_TYPES_H_WRAPPER\n\
83 #endif /* _POSIX_TYPES_H_WRAPPER */",
86 /* * * * * * * * * * * * * * * * * * * * * * * * * *
88 * Description of Aab_Fd_Zero_Gnu_Types_H fix
90 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
91 "AAB_fd_zero_gnu_types_h";
94 * File name selection pattern
96 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
99 * Machine/OS name selection pattern
101 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
102 "i[34567]86-*-linux*",
104 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
105 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
108 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
110 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
111 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
112 #ifndef _TYPES_H_WRAPPER\n\
113 #include <features.h>\n\
114 #include_next <gnu/types.h>\n\n\
115 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
117 # define __FD_ZERO(fdsetp) \\\\\n\
119 int __d0, __d1; \\\\\n\
120 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\\\n\
121 \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
122 \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\\\n\
123 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\\\n\
126 #define _TYPES_H_WRAPPER\n\
127 #endif /* _TYPES_H_WRAPPER */",
130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
132 * Description of Aab_Fd_Zero_Selectbits_H fix
134 tSCC zAab_Fd_Zero_Selectbits_HName[] =
135 "AAB_fd_zero_selectbits_h";
138 * File name selection pattern
140 tSCC zAab_Fd_Zero_Selectbits_HList[] =
143 * Machine/OS name selection pattern
145 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
146 "i[34567]86-*-linux*",
148 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
149 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
152 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
154 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
155 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
156 #ifndef _SELECTBITS_H_WRAPPER\n\
157 #include <features.h>\n\
158 #include_next <selectbits.h>\n\n\
159 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
160 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
161 && __GLIBC_MINOR__ == 0\n\
163 #define __FD_ZERO(fdsetp) \\\\\n\
165 int __d0, __d1; \\\\\n\
166 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
167 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
168 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
169 / sizeof (__fd_mask)), \\\\\n\
170 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
171 : \"memory\"); \\\\\n\
174 #define _SELECTBITS_H_WRAPPER\n\
175 #endif /* _SELECTBITS_H_WRAPPER */",
178 /* * * * * * * * * * * * * * * * * * * * * * * * * *
180 * Description of Aab_Solaris_Sys_Varargs_H fix
182 tSCC zAab_Solaris_Sys_Varargs_HName[] =
183 "AAB_solaris_sys_varargs_h";
186 * File name selection pattern
188 tSCC zAab_Solaris_Sys_Varargs_HList[] =
191 * Machine/OS name selection pattern
193 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
196 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
197 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
200 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
202 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
204 #include <stdarg.h>\n\
206 #include <varargs.h>\n\
210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
212 * Description of Aab_Sun_Memcpy fix
214 tSCC zAab_Sun_MemcpyName[] =
218 * File name selection pattern
220 tSCC zAab_Sun_MemcpyList[] =
223 * Machine/OS name selection pattern
225 #define apzAab_Sun_MemcpyMachs (const char**)NULL
228 * content selection pattern - do fix if pattern found
230 tSCC zAab_Sun_MemcpySelect0[] =
231 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
233 #define AAB_SUN_MEMCPY_TEST_CT 1
234 static tTestDesc aAab_Sun_MemcpyTests[] = {
235 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
238 * Fix Command Arguments for Aab_Sun_Memcpy
240 static const char* apzAab_Sun_MemcpyPatch[] = {
241 "/* This file was generated by fixincludes */\n\
242 #ifndef __memory_h__\n\
243 #define __memory_h__\n\n\
245 extern void *memccpy();\n\
246 extern void *memchr();\n\
247 extern void *memcpy();\n\
248 extern void *memset();\n\
250 extern char *memccpy();\n\
251 extern char *memchr();\n\
252 extern char *memcpy();\n\
253 extern char *memset();\n\
254 #endif /* __STDC__ */\n\n\
255 extern int memcmp();\n\n\
256 #endif /* __memory_h__ */\n\
260 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
261 * stdarg.h or varargs.h files as appropriate.\n\
265 hackname = AAB_svr4_no_varargs;\n\
266 files = sys/varargs.h;\n\
267 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
268 \"#ifndef _SYS_VARARGS_H\\n\"\n\
269 \"#define _SYS_VARARGS_H\\n\\n\"\n\
271 \"#ifdef __STDC__\\n\"\n\
272 \"#include <stdarg.h>\\n\"\n\
274 \"#include <varargs.h>\\n\"\n\
277 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
281 * Completely replace <sys/byteorder.h>; with a file that implements gcc's\n\
282 * optimized byteswapping. Restricted to \"SVR4\" machines until either\n\
283 * it is shown to be safe to replace this file always, or we get bolder ;-)\n\
286 hackname = AAB_svr4_replace_byteorder;\n\
288 mach = \"*-*-sysv4*\";\n\
289 mach = \"i[34567]86-*-sysv5*\";\n\
290 mach = \"i[34567]86-*-udk*\";\n\
291 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
292 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
293 mach = \"sparc-*-solaris2.[0-4]\";\n\
295 files = sys/byteorder.h;\n\
296 replace = <<- _EndOfHeader_\n\
297 #ifndef _SYS_BYTEORDER_H\n\
298 #define _SYS_BYTEORDER_H\n\n\
299 /* Functions to convert `short' and `long' quantities from host byte order\n\
300 to (internet) network byte order (i.e. big-endian).\n\n\
301 Written by Ron Guilmette (rfg@ncd.com).\n\n\
302 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
303 For big-endian machines these functions are essentially no-ops.\n\n\
304 For little-endian machines, we define the functions using specialized\n\
305 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
306 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
307 #error You lose! This file is only useful with GNU compilers.\n\
309 #ifndef __BYTE_ORDER__\n\
310 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
311 double underscores added at the front and back. */\n\
312 #define __LITTLE_ENDIAN__ 1234\n\
313 #define __BIG_ENDIAN__ 4321\n\
314 #define __PDP_ENDIAN__ 3412\n\
317 static __inline__ unsigned long htonl (unsigned long);\n\
318 static __inline__ unsigned short htons (unsigned int);\n\
319 static __inline__ unsigned long ntohl (unsigned long);\n\
320 static __inline__ unsigned short ntohs (unsigned int);\n\
321 #endif /* defined (__STDC__) */\n\n\
322 #if defined (__i386__)\n\n\
323 #ifndef __BYTE_ORDER__\n\
324 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
326 /* Convert a host long to a network long. */\n\n\
327 /* We must use a new-style function definition, so that this will also\n\
328 be valid for C++. */\n\
329 static __inline__ unsigned long\n\
330 htonl (unsigned long __arg)\n\
332 register unsigned long __result;\n\n\
333 __asm__ (\"xchg%B0 %b0,%h0\n\
335 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
338 /* Convert a host short to a network short. */\n\n\
339 static __inline__ unsigned short\n\
340 htons (unsigned int __arg)\n\
342 register unsigned short __result;\n\n\
343 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
346 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
347 #ifndef __BYTE_ORDER__\n\
348 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
350 /* For other little-endian machines, using C code is just as efficient as\n\
351 using assembly code. */\n\n\
352 /* Convert a host long to a network long. */\n\n\
353 static __inline__ unsigned long\n\
354 htonl (unsigned long __arg)\n\
356 register unsigned long __result;\n\n\
357 __result = (__arg >> 24) & 0x000000ff;\n\
358 __result |= (__arg >> 8) & 0x0000ff00;\n\
359 __result |= (__arg << 8) & 0x00ff0000;\n\
360 __result |= (__arg << 24) & 0xff000000;\n\
363 /* Convert a host short to a network short. */\n\n\
364 static __inline__ unsigned short\n\
365 htons (unsigned int __arg)\n\
367 register unsigned short __result;\n\n\
368 __result = (__arg << 8) & 0xff00;\n\
369 __result |= (__arg >> 8) & 0x00ff;\n\
372 #else /* must be a big-endian machine */\n\n\
373 #ifndef __BYTE_ORDER__\n\
374 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
376 /* Convert a host long to a network long. */\n\n\
377 static __inline__ unsigned long\n\
378 htonl (unsigned long __arg)\n\
382 /* Convert a host short to a network short. */\n\n\
383 static __inline__ unsigned short\n\
384 htons (unsigned int __arg)\n\
388 #endif /* big-endian */\n\n\
389 /* Convert a network long to a host long. */\n\n\
390 static __inline__ unsigned long\n\
391 ntohl (unsigned long __arg)\n\
393 return htonl (__arg);\n\
395 /* Convert a network short to a host short. */\n\n\
396 static __inline__ unsigned short\n\
397 ntohs (unsigned int __arg)\n\
399 return htons (__arg);\n\
404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
406 * Description of Aab_Ultrix_Ansi_Compat fix
408 tSCC zAab_Ultrix_Ansi_CompatName[] =
409 "AAB_ultrix_ansi_compat";
412 * File name selection pattern
414 tSCC zAab_Ultrix_Ansi_CompatList[] =
417 * Machine/OS name selection pattern
419 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
422 * content selection pattern - do fix if pattern found
424 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
427 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
428 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
429 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
432 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
434 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
435 "/* This file intentionally left blank. */\n",
438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
440 * Description of Aab_Ultrix_Limits fix
442 tSCC zAab_Ultrix_LimitsName[] =
446 * File name selection pattern
448 tSCC zAab_Ultrix_LimitsList[] =
451 * Machine/OS name selection pattern
453 tSCC* apzAab_Ultrix_LimitsMachs[] = {
456 #define AAB_ULTRIX_LIMITS_TEST_CT 0
457 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
460 * Fix Command Arguments for Aab_Ultrix_Limits
462 static const char* apzAab_Ultrix_LimitsPatch[] = {
463 "#ifndef _LIMITS_INCLUDED\n\
464 #define _LIMITS_INCLUDED\n\
465 #include <sys/limits.h>\n\
466 #endif /* _LIMITS_INCLUDED */",
469 /* * * * * * * * * * * * * * * * * * * * * * * * * *
471 * Description of Aab_Ultrix_Memory fix
473 tSCC zAab_Ultrix_MemoryName[] =
477 * File name selection pattern
479 tSCC zAab_Ultrix_MemoryList[] =
482 * Machine/OS name selection pattern
484 tSCC* apzAab_Ultrix_MemoryMachs[] = {
487 #define AAB_ULTRIX_MEMORY_TEST_CT 0
488 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
491 * Fix Command Arguments for Aab_Ultrix_Memory
493 static const char* apzAab_Ultrix_MemoryPatch[] = {
494 "#ifndef _MEMORY_INCLUDED\n\
495 #define _MEMORY_INCLUDED\n\
496 #include <strings.h>\n\
497 #endif /* _MEMORY_INCLUDED */",
500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
502 * Description of Aab_Ultrix_String fix
504 tSCC zAab_Ultrix_StringName[] =
508 * File name selection pattern
510 tSCC zAab_Ultrix_StringList[] =
513 * Machine/OS name selection pattern
515 tSCC* apzAab_Ultrix_StringMachs[] = {
518 #define AAB_ULTRIX_STRING_TEST_CT 0
519 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
522 * Fix Command Arguments for Aab_Ultrix_String
524 static const char* apzAab_Ultrix_StringPatch[] = {
525 "#ifndef _STRING_INCLUDED\n\
526 #define _STRING_INCLUDED\n\
527 #include <strings.h>\n\
528 #endif /* _STRING_INCLUDED */",
531 /* * * * * * * * * * * * * * * * * * * * * * * * * *
533 * Description of Aix_Pthread fix
535 tSCC zAix_PthreadName[] =
539 * File name selection pattern
541 tSCC zAix_PthreadList[] =
544 * Machine/OS name selection pattern
546 #define apzAix_PthreadMachs (const char**)NULL
549 * content selection pattern - do fix if pattern found
551 tSCC zAix_PthreadSelect0[] =
552 "(#define [A-Za-z_0-9]+)(\\\\\n\
556 #define AIX_PTHREAD_TEST_CT 1
557 static tTestDesc aAix_PthreadTests[] = {
558 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
561 * Fix Command Arguments for Aix_Pthread
563 static const char* apzAix_PthreadPatch[] = {
568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
570 * Description of Aix_Sysmachine fix
572 tSCC zAix_SysmachineName[] =
576 * File name selection pattern
578 tSCC zAix_SysmachineList[] =
581 * Machine/OS name selection pattern
583 #define apzAix_SysmachineMachs (const char**)NULL
586 * content selection pattern - do fix if pattern found
588 tSCC zAix_SysmachineSelect0[] =
591 #define AIX_SYSMACHINE_TEST_CT 1
592 static tTestDesc aAix_SysmachineTests[] = {
593 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
596 * Fix Command Arguments for Aix_Sysmachine
598 static const char* apzAix_SysmachinePatch[] = {
603 /* * * * * * * * * * * * * * * * * * * * * * * * * *
605 * Description of Aix_Syswait fix
607 tSCC zAix_SyswaitName[] =
611 * File name selection pattern
613 tSCC zAix_SyswaitList[] =
616 * Machine/OS name selection pattern
618 #define apzAix_SyswaitMachs (const char**)NULL
621 * content selection pattern - do fix if pattern found
623 tSCC zAix_SyswaitSelect0[] =
624 "^extern pid_t wait3\\(\\);\n";
625 tSCC zAix_SyswaitSelect1[] =
628 #define AIX_SYSWAIT_TEST_CT 2
629 static tTestDesc aAix_SyswaitTests[] = {
630 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
631 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
634 * Fix Command Arguments for Aix_Syswait
636 static const char* apzAix_SyswaitPatch[] = {
642 /* * * * * * * * * * * * * * * * * * * * * * * * * *
644 * Description of Aix_Volatile fix
646 tSCC zAix_VolatileName[] =
650 * File name selection pattern
652 tSCC zAix_VolatileList[] =
655 * Machine/OS name selection pattern
657 #define apzAix_VolatileMachs (const char**)NULL
660 * content selection pattern - do fix if pattern found
662 tSCC zAix_VolatileSelect0[] =
663 "typedef volatile int sig_atomic_t";
665 #define AIX_VOLATILE_TEST_CT 1
666 static tTestDesc aAix_VolatileTests[] = {
667 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
670 * Fix Command Arguments for Aix_Volatile
672 static const char* apzAix_VolatilePatch[] = {
674 "typedef int sig_atomic_t",
677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
679 * Description of Alpha___Assert fix
681 tSCC zAlpha___AssertName[] =
685 * File name selection pattern
687 tSCC zAlpha___AssertList[] =
690 * Machine/OS name selection pattern
692 #define apzAlpha___AssertMachs (const char**)NULL
695 * content selection pattern - do fix if pattern found
697 tSCC zAlpha___AssertSelect0[] =
698 "__assert\\(char \\*, char \\*, int\\)";
700 #define ALPHA___ASSERT_TEST_CT 1
701 static tTestDesc aAlpha___AssertTests[] = {
702 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
705 * Fix Command Arguments for Alpha___Assert
707 static const char* apzAlpha___AssertPatch[] = {
709 "__assert(const char *, const char *, int)",
712 /* * * * * * * * * * * * * * * * * * * * * * * * * *
714 * Description of Alpha___Extern_Prefix fix
716 tSCC zAlpha___Extern_PrefixName[] =
717 "alpha___extern_prefix";
720 * File name selection pattern
722 tSCC zAlpha___Extern_PrefixList[] =
725 * Machine/OS name selection pattern
727 tSCC* apzAlpha___Extern_PrefixMachs[] = {
732 * content selection pattern - do fix if pattern found
734 tSCC zAlpha___Extern_PrefixSelect0[] =
735 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
737 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
738 static tTestDesc aAlpha___Extern_PrefixTests[] = {
739 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
742 * Fix Command Arguments for Alpha___Extern_Prefix
744 static const char* apzAlpha___Extern_PrefixPatch[] = {
746 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
749 /* * * * * * * * * * * * * * * * * * * * * * * * * *
751 * Description of Alpha_Assert fix
753 tSCC zAlpha_AssertName[] =
757 * File name selection pattern
759 tSCC zAlpha_AssertList[] =
762 * Machine/OS name selection pattern
764 #define apzAlpha_AssertMachs (const char**)NULL
767 * content selection pattern - do fix if pattern found
769 tSCC zAlpha_AssertSelect0[] =
770 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
772 #define ALPHA_ASSERT_TEST_CT 1
773 static tTestDesc aAlpha_AssertTests[] = {
774 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
777 * Fix Command Arguments for Alpha_Assert
779 static const char* apzAlpha_AssertPatch[] = {
784 /* * * * * * * * * * * * * * * * * * * * * * * * * *
786 * Description of Alpha_Getopt fix
788 tSCC zAlpha_GetoptName[] =
792 * File name selection pattern
794 tSCC zAlpha_GetoptList[] =
795 "|stdio.h|stdlib.h|";
797 * Machine/OS name selection pattern
799 #define apzAlpha_GetoptMachs (const char**)NULL
802 * content selection pattern - do fix if pattern found
804 tSCC zAlpha_GetoptSelect0[] =
805 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
807 #define ALPHA_GETOPT_TEST_CT 1
808 static tTestDesc aAlpha_GetoptTests[] = {
809 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
812 * Fix Command Arguments for Alpha_Getopt
814 static const char* apzAlpha_GetoptPatch[] = {
816 "getopt(int, char *const[], const char *)",
819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
821 * Description of Alpha_Parens fix
823 tSCC zAlpha_ParensName[] =
827 * File name selection pattern
829 tSCC zAlpha_ParensList[] =
832 * Machine/OS name selection pattern
834 #define apzAlpha_ParensMachs (const char**)NULL
837 * content selection pattern - do fix if pattern found
839 tSCC zAlpha_ParensSelect0[] =
840 "#ifndef\\(__mips64\\)";
842 #define ALPHA_PARENS_TEST_CT 1
843 static tTestDesc aAlpha_ParensTests[] = {
844 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
847 * Fix Command Arguments for Alpha_Parens
849 static const char* apzAlpha_ParensPatch[] = {
854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
856 * Description of Alpha_Sbrk fix
858 tSCC zAlpha_SbrkName[] =
862 * File name selection pattern
864 tSCC zAlpha_SbrkList[] =
867 * Machine/OS name selection pattern
869 #define apzAlpha_SbrkMachs (const char**)NULL
872 * content selection pattern - do fix if pattern found
874 tSCC zAlpha_SbrkSelect0[] =
875 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
877 #define ALPHA_SBRK_TEST_CT 1
878 static tTestDesc aAlpha_SbrkTests[] = {
879 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
882 * Fix Command Arguments for Alpha_Sbrk
884 static const char* apzAlpha_SbrkPatch[] = {
889 /* * * * * * * * * * * * * * * * * * * * * * * * * *
891 * Description of Avoid_Bool_Define fix
893 tSCC zAvoid_Bool_DefineName[] =
897 * File name selection pattern
899 tSCC zAvoid_Bool_DefineList[] =
900 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
902 * Machine/OS name selection pattern
904 #define apzAvoid_Bool_DefineMachs (const char**)NULL
907 * content selection pattern - do fix if pattern found
909 tSCC zAvoid_Bool_DefineSelect0[] =
910 "#[ \t]*define[ \t]+bool[ \t]";
913 * content bypass pattern - skip fix if pattern found
915 tSCC zAvoid_Bool_DefineBypass0[] =
916 "we must use the C\\+\\+ compiler's type";
918 #define AVOID_BOOL_DEFINE_TEST_CT 2
919 static tTestDesc aAvoid_Bool_DefineTests[] = {
920 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
921 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
924 * Fix Command Arguments for Avoid_Bool_Define
926 static const char* apzAvoid_Bool_DefinePatch[] = {
928 "#ifndef __cplusplus\n\
931 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
934 /* * * * * * * * * * * * * * * * * * * * * * * * * *
936 * Description of Avoid_Bool_Type fix
938 tSCC zAvoid_Bool_TypeName[] =
942 * File name selection pattern
944 tSCC zAvoid_Bool_TypeList[] =
945 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
947 * Machine/OS name selection pattern
949 #define apzAvoid_Bool_TypeMachs (const char**)NULL
952 * content selection pattern - do fix if pattern found
954 tSCC zAvoid_Bool_TypeSelect0[] =
955 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
958 * content bypass pattern - skip fix if pattern found
960 tSCC zAvoid_Bool_TypeBypass0[] =
961 "we must use the C\\+\\+ compiler's type";
963 #define AVOID_BOOL_TYPE_TEST_CT 2
964 static tTestDesc aAvoid_Bool_TypeTests[] = {
965 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
966 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
969 * Fix Command Arguments for Avoid_Bool_Type
971 static const char* apzAvoid_Bool_TypePatch[] = {
973 "#ifndef __cplusplus\n\
978 /* * * * * * * * * * * * * * * * * * * * * * * * * *
980 * Description of Avoid_Wchar_T_Type fix
982 tSCC zAvoid_Wchar_T_TypeName[] =
983 "avoid_wchar_t_type";
986 * File name selection pattern
988 #define zAvoid_Wchar_T_TypeList (char*)NULL
990 * Machine/OS name selection pattern
992 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
995 * content selection pattern - do fix if pattern found
997 tSCC zAvoid_Wchar_T_TypeSelect0[] =
998 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1000 #define AVOID_WCHAR_T_TYPE_TEST_CT 1
1001 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1002 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1005 * Fix Command Arguments for Avoid_Wchar_T_Type
1007 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1009 "#ifndef __cplusplus\n\
1014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1016 * Description of Bad_Lval fix
1018 tSCC zBad_LvalName[] =
1022 * File name selection pattern
1024 tSCC zBad_LvalList[] =
1025 "|libgen.h|dirent.h|ftw.h|grp.h|ndbm.h|pthread.h|pwd.h|signal.h|standards.h|stdlib.h|string.h|stropts.h|time.h|unistd.h|";
1027 * Machine/OS name selection pattern
1029 #define apzBad_LvalMachs (const char**)NULL
1032 * content selection pattern - do fix if pattern found
1034 tSCC zBad_LvalSelect0[] =
1035 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1037 #define BAD_LVAL_TEST_CT 1
1038 static tTestDesc aBad_LvalTests[] = {
1039 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
1042 * Fix Command Arguments for Bad_Lval
1044 static const char* apzBad_LvalPatch[] = { "sed",
1045 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1050 * Description of Bad_Struct_Term fix
1052 tSCC zBad_Struct_TermName[] =
1056 * File name selection pattern
1058 tSCC zBad_Struct_TermList[] =
1061 * Machine/OS name selection pattern
1063 #define apzBad_Struct_TermMachs (const char**)NULL
1066 * content selection pattern - do fix if pattern found
1068 tSCC zBad_Struct_TermSelect0[] =
1069 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1071 #define BAD_STRUCT_TERM_TEST_CT 1
1072 static tTestDesc aBad_Struct_TermTests[] = {
1073 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1076 * Fix Command Arguments for Bad_Struct_Term
1078 static const char* apzBad_Struct_TermPatch[] = {
1083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1085 * Description of Badquote fix
1087 tSCC zBadquoteName[] =
1091 * File name selection pattern
1093 tSCC zBadquoteList[] =
1094 "|sundev/vuid_event.h|";
1096 * Machine/OS name selection pattern
1098 #define apzBadquoteMachs (const char**)NULL
1101 * content selection pattern - do fix if pattern found
1103 tSCC zBadquoteSelect0[] =
1106 #define BADQUOTE_TEST_CT 1
1107 static tTestDesc aBadquoteTests[] = {
1108 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1111 * Fix Command Arguments for Badquote
1113 static const char* apzBadquotePatch[] = {
1118 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1120 * Description of Broken_Assert_Stdio fix
1122 tSCC zBroken_Assert_StdioName[] =
1123 "broken_assert_stdio";
1126 * File name selection pattern
1128 tSCC zBroken_Assert_StdioList[] =
1131 * Machine/OS name selection pattern
1133 #define apzBroken_Assert_StdioMachs (const char**)NULL
1136 * content selection pattern - do fix if pattern found
1138 tSCC zBroken_Assert_StdioSelect0[] =
1142 * content bypass pattern - skip fix if pattern found
1144 tSCC zBroken_Assert_StdioBypass0[] =
1145 "include.*stdio\\.h";
1147 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1148 static tTestDesc aBroken_Assert_StdioTests[] = {
1149 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1150 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1153 * Fix Command Arguments for Broken_Assert_Stdio
1155 static const char* apzBroken_Assert_StdioPatch[] = {
1157 "#include <stdio.h>\n",
1160 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1162 * Description of Broken_Assert_Stdlib fix
1164 tSCC zBroken_Assert_StdlibName[] =
1165 "broken_assert_stdlib";
1168 * File name selection pattern
1170 tSCC zBroken_Assert_StdlibList[] =
1173 * Machine/OS name selection pattern
1175 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1178 * content selection pattern - do fix if pattern found
1180 tSCC zBroken_Assert_StdlibSelect0[] =
1181 "exit *\\(|abort *\\(";
1184 * content bypass pattern - skip fix if pattern found
1186 tSCC zBroken_Assert_StdlibBypass0[] =
1187 "include.*stdlib\\.h";
1189 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1190 static tTestDesc aBroken_Assert_StdlibTests[] = {
1191 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1192 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1195 * Fix Command Arguments for Broken_Assert_Stdlib
1197 static const char* apzBroken_Assert_StdlibPatch[] = {
1199 "#ifdef __cplusplus\n\
1200 #include <stdlib.h>\n\
1204 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1206 * Description of Broken_Cabs fix
1208 tSCC zBroken_CabsName[] =
1212 * File name selection pattern
1214 tSCC zBroken_CabsList[] =
1217 * Machine/OS name selection pattern
1219 #define apzBroken_CabsMachs (const char**)NULL
1222 * content selection pattern - do fix if pattern found
1224 tSCC zBroken_CabsSelect0[] =
1225 "^extern[ \\t]+double[ \\t]+cabs";
1227 #define BROKEN_CABS_TEST_CT 1
1228 static tTestDesc aBroken_CabsTests[] = {
1229 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1232 * Fix Command Arguments for Broken_Cabs
1234 static const char* apzBroken_CabsPatch[] = {
1237 "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);",
1240 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1242 * Description of Ctrl_Quotes_Def fix
1244 tSCC zCtrl_Quotes_DefName[] =
1248 * File name selection pattern
1250 #define zCtrl_Quotes_DefList (char*)NULL
1252 * Machine/OS name selection pattern
1254 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1257 * content selection pattern - do fix if pattern found
1259 tSCC zCtrl_Quotes_DefSelect0[] =
1260 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1262 #define CTRL_QUOTES_DEF_TEST_CT 1
1263 static tTestDesc aCtrl_Quotes_DefTests[] = {
1264 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1267 * Fix Command Arguments for Ctrl_Quotes_Def
1269 static const char* apzCtrl_Quotes_DefPatch[] = {
1274 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1276 * Description of Ctrl_Quotes_Use fix
1278 tSCC zCtrl_Quotes_UseName[] =
1282 * File name selection pattern
1284 #define zCtrl_Quotes_UseList (char*)NULL
1286 * Machine/OS name selection pattern
1288 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1291 * content selection pattern - do fix if pattern found
1293 tSCC zCtrl_Quotes_UseSelect0[] =
1294 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1296 #define CTRL_QUOTES_USE_TEST_CT 1
1297 static tTestDesc aCtrl_Quotes_UseTests[] = {
1298 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1301 * Fix Command Arguments for Ctrl_Quotes_Use
1303 static const char* apzCtrl_Quotes_UsePatch[] = {
1308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1310 * Description of Cxx_Unready fix
1312 tSCC zCxx_UnreadyName[] =
1316 * File name selection pattern
1318 tSCC zCxx_UnreadyList[] =
1319 "|sys/mman.h|rpc/types.h|";
1321 * Machine/OS name selection pattern
1323 #define apzCxx_UnreadyMachs (const char**)NULL
1326 * content selection pattern - do fix if pattern found
1328 tSCC zCxx_UnreadySelect0[] =
1332 * content bypass pattern - skip fix if pattern found
1334 tSCC zCxx_UnreadyBypass0[] =
1335 "\"C\"|__BEGIN_DECLS";
1337 #define CXX_UNREADY_TEST_CT 2
1338 static tTestDesc aCxx_UnreadyTests[] = {
1339 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1340 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1343 * Fix Command Arguments for Cxx_Unready
1345 static const char* apzCxx_UnreadyPatch[] = {
1347 "#ifdef __cplusplus\n\
1350 "#ifdef __cplusplus\n\
1355 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1357 * Description of Dec_Intern_Asm fix
1359 tSCC zDec_Intern_AsmName[] =
1363 * File name selection pattern
1365 tSCC zDec_Intern_AsmList[] =
1368 * Machine/OS name selection pattern
1370 #define apzDec_Intern_AsmMachs (const char**)NULL
1371 #define DEC_INTERN_ASM_TEST_CT 0
1372 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1375 * Fix Command Arguments for Dec_Intern_Asm
1377 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1378 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1380 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1384 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1386 * Description of Djgpp_Wchar_H fix
1388 tSCC zDjgpp_Wchar_HName[] =
1392 * File name selection pattern
1394 #define zDjgpp_Wchar_HList (char*)NULL
1396 * Machine/OS name selection pattern
1398 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1401 * content selection pattern - do fix if pattern found
1403 tSCC zDjgpp_Wchar_HSelect0[] =
1407 * content bypass pattern - skip fix if pattern found
1409 tSCC zDjgpp_Wchar_HBypass0[] =
1412 #define DJGPP_WCHAR_H_TEST_CT 2
1413 static tTestDesc aDjgpp_Wchar_HTests[] = {
1414 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1415 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1418 * Fix Command Arguments for Djgpp_Wchar_H
1420 static const char* apzDjgpp_Wchar_HPatch[] = {
1423 #include <sys/djtypes.h>",
1424 "#include <stddef.h>",
1427 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1429 * Description of Ecd_Cursor fix
1431 tSCC zEcd_CursorName[] =
1435 * File name selection pattern
1437 tSCC zEcd_CursorList[] =
1438 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1440 * Machine/OS name selection pattern
1442 #define apzEcd_CursorMachs (const char**)NULL
1445 * content selection pattern - do fix if pattern found
1447 tSCC zEcd_CursorSelect0[] =
1450 #define ECD_CURSOR_TEST_CT 1
1451 static tTestDesc aEcd_CursorTests[] = {
1452 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1455 * Fix Command Arguments for Ecd_Cursor
1457 static const char* apzEcd_CursorPatch[] = {
1462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1464 * Description of Freebsd_Gcc3_Breakage fix
1466 tSCC zFreebsd_Gcc3_BreakageName[] =
1467 "freebsd_gcc3_breakage";
1470 * File name selection pattern
1472 tSCC zFreebsd_Gcc3_BreakageList[] =
1475 * Machine/OS name selection pattern
1477 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1479 (const char*)NULL };
1482 * content selection pattern - do fix if pattern found
1484 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1485 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1488 * content bypass pattern - skip fix if pattern found
1490 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1491 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1493 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1494 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1495 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1496 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1499 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1501 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1503 "%0 || __GNUC__ >= 3",
1506 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1508 * Description of Gnu_Types fix
1510 tSCC zGnu_TypesName[] =
1514 * File name selection pattern
1516 tSCC zGnu_TypesList[] =
1517 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1519 * Machine/OS name selection pattern
1521 #define apzGnu_TypesMachs (const char**)NULL
1524 * content selection pattern - do fix if pattern found
1526 tSCC zGnu_TypesSelect0[] =
1527 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1530 * content bypass pattern - skip fix if pattern found
1532 tSCC zGnu_TypesBypass0[] =
1533 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1535 #define GNU_TYPES_TEST_CT 2
1536 static tTestDesc aGnu_TypesTests[] = {
1537 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
1538 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
1541 * Fix Command Arguments for Gnu_Types
1543 static const char* apzGnu_TypesPatch[] = {
1547 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1549 * Description of Hp_Inline fix
1551 tSCC zHp_InlineName[] =
1555 * File name selection pattern
1557 tSCC zHp_InlineList[] =
1558 "|sys/spinlock.h|machine/machparam.h|";
1560 * Machine/OS name selection pattern
1562 #define apzHp_InlineMachs (const char**)NULL
1565 * content selection pattern - do fix if pattern found
1567 tSCC zHp_InlineSelect0[] =
1568 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1570 #define HP_INLINE_TEST_CT 1
1571 static tTestDesc aHp_InlineTests[] = {
1572 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1575 * Fix Command Arguments for Hp_Inline
1577 static const char* apzHp_InlinePatch[] = {
1580 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1583 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1585 * Description of Hp_Sysfile fix
1587 tSCC zHp_SysfileName[] =
1591 * File name selection pattern
1593 tSCC zHp_SysfileList[] =
1596 * Machine/OS name selection pattern
1598 #define apzHp_SysfileMachs (const char**)NULL
1601 * content selection pattern - do fix if pattern found
1603 tSCC zHp_SysfileSelect0[] =
1606 #define HP_SYSFILE_TEST_CT 1
1607 static tTestDesc aHp_SysfileTests[] = {
1608 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1611 * Fix Command Arguments for Hp_Sysfile
1613 static const char* apzHp_SysfilePatch[] = {
1615 "(struct file *, ...)",
1619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1621 * Description of Hpux10_Cpp_Pow_Inline fix
1623 tSCC zHpux10_Cpp_Pow_InlineName[] =
1624 "hpux10_cpp_pow_inline";
1627 * File name selection pattern
1629 tSCC zHpux10_Cpp_Pow_InlineList[] =
1630 "|fixinc-test-limits.h|math.h|";
1632 * Machine/OS name selection pattern
1634 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
1637 * content selection pattern - do fix if pattern found
1639 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
1640 "^# +ifdef +__cplusplus\n\
1642 +inline +double +pow\\(double +__d,int +__expon\\) +{\n\
1643 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
1645 +extern +\"C\" +{\n\
1649 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
1650 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
1651 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1654 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
1656 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
1661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1663 * Description of Hpux11_Cpp_Pow_Inline fix
1665 tSCC zHpux11_Cpp_Pow_InlineName[] =
1666 "hpux11_cpp_pow_inline";
1669 * File name selection pattern
1671 tSCC zHpux11_Cpp_Pow_InlineList[] =
1674 * Machine/OS name selection pattern
1676 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
1679 * content selection pattern - do fix if pattern found
1681 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
1682 " +inline double pow\\(double d,int expon\\) {\n\
1683 +return pow\\(d, \\(double\\)expon\\);\n\
1686 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
1687 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
1688 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1691 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
1693 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
1698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1700 * Description of Hpux10_Ctype_Declarations1 fix
1702 tSCC zHpux10_Ctype_Declarations1Name[] =
1703 "hpux10_ctype_declarations1";
1706 * File name selection pattern
1708 tSCC zHpux10_Ctype_Declarations1List[] =
1711 * Machine/OS name selection pattern
1713 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
1716 * content selection pattern - do fix if pattern found
1718 tSCC zHpux10_Ctype_Declarations1Select0[] =
1719 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
1722 * content bypass pattern - skip fix if pattern found
1724 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
1725 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
1727 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
1728 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
1729 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
1730 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
1733 * Fix Command Arguments for Hpux10_Ctype_Declarations1
1735 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
1737 "#ifdef _PROTOTYPES\n\
1738 extern int __tolower(int);\n\
1739 extern int __toupper(int);\n\
1740 #else /* NOT _PROTOTYPES */\n\
1741 extern int __tolower();\n\
1742 extern int __toupper();\n\
1743 #endif /* _PROTOTYPES */\n\n\
1747 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1749 * Description of Hpux10_Ctype_Declarations2 fix
1751 tSCC zHpux10_Ctype_Declarations2Name[] =
1752 "hpux10_ctype_declarations2";
1755 * File name selection pattern
1757 tSCC zHpux10_Ctype_Declarations2List[] =
1760 * Machine/OS name selection pattern
1762 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
1765 * content selection pattern - do fix if pattern found
1767 tSCC zHpux10_Ctype_Declarations2Select0[] =
1768 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
1771 * content bypass pattern - skip fix if pattern found
1773 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
1774 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
1776 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
1777 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
1778 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
1779 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
1782 * Fix Command Arguments for Hpux10_Ctype_Declarations2
1784 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
1787 #ifdef _PROTOTYPES\n\
1788 extern int _isalnum(int);\n\
1789 extern int _isalpha(int);\n\
1790 extern int _iscntrl(int);\n\
1791 extern int _isdigit(int);\n\
1792 extern int _isgraph(int);\n\
1793 extern int _islower(int);\n\
1794 extern int _isprint(int);\n\
1795 extern int _ispunct(int);\n\
1796 extern int _isspace(int);\n\
1797 extern int _isupper(int);\n\
1798 extern int _isxdigit(int);\n\
1799 # else /* not _PROTOTYPES */\n\
1800 extern int _isalnum();\n\
1801 extern int _isalpha();\n\
1802 extern int _iscntrl();\n\
1803 extern int _isdigit();\n\
1804 extern int _isgraph();\n\
1805 extern int _islower();\n\
1806 extern int _isprint();\n\
1807 extern int _ispunct();\n\
1808 extern int _isspace();\n\
1809 extern int _isupper();\n\
1810 extern int _isxdigit();\n\
1811 #endif /* _PROTOTYPES */\n",
1814 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1816 * Description of Hpux11_Abs fix
1818 tSCC zHpux11_AbsName[] =
1822 * File name selection pattern
1824 tSCC zHpux11_AbsList[] =
1827 * Machine/OS name selection pattern
1829 tSCC* apzHpux11_AbsMachs[] = {
1831 (const char*)NULL };
1834 * content selection pattern - do fix if pattern found
1836 tSCC zHpux11_AbsSelect0[] =
1837 "ifndef _MATH_INCLUDED";
1839 #define HPUX11_ABS_TEST_CT 1
1840 static tTestDesc aHpux11_AbsTests[] = {
1841 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
1844 * Fix Command Arguments for Hpux11_Abs
1846 static const char* apzHpux11_AbsPatch[] = {
1848 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
1851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1853 * Description of Hpux11_Fabsf fix
1855 tSCC zHpux11_FabsfName[] =
1859 * File name selection pattern
1861 tSCC zHpux11_FabsfList[] =
1864 * Machine/OS name selection pattern
1866 #define apzHpux11_FabsfMachs (const char**)NULL
1869 * content selection pattern - do fix if pattern found
1871 tSCC zHpux11_FabsfSelect0[] =
1872 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
1875 * content bypass pattern - skip fix if pattern found
1877 tSCC zHpux11_FabsfBypass0[] =
1880 #define HPUX11_FABSF_TEST_CT 2
1881 static tTestDesc aHpux11_FabsfTests[] = {
1882 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
1883 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
1886 * Fix Command Arguments for Hpux11_Fabsf
1888 static const char* apzHpux11_FabsfPatch[] = {
1890 "#ifndef __cplusplus\n\
1895 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1897 * Description of Hpux11_Size_T fix
1899 tSCC zHpux11_Size_TName[] =
1903 * File name selection pattern
1905 #define zHpux11_Size_TList (char*)NULL
1907 * Machine/OS name selection pattern
1909 tSCC* apzHpux11_Size_TMachs[] = {
1911 (const char*)NULL };
1914 * content selection pattern - do fix if pattern found
1916 tSCC zHpux11_Size_TSelect0[] =
1919 #define HPUX11_SIZE_T_TEST_CT 1
1920 static tTestDesc aHpux11_Size_TTests[] = {
1921 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
1924 * Fix Command Arguments for Hpux11_Size_T
1926 static const char* apzHpux11_Size_TPatch[] = {
1931 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1933 * Description of Hpux11_Uint32_C fix
1935 tSCC zHpux11_Uint32_CName[] =
1939 * File name selection pattern
1941 tSCC zHpux11_Uint32_CList[] =
1944 * Machine/OS name selection pattern
1946 #define apzHpux11_Uint32_CMachs (const char**)NULL
1949 * content selection pattern - do fix if pattern found
1951 tSCC zHpux11_Uint32_CSelect0[] =
1952 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1954 #define HPUX11_UINT32_C_TEST_CT 1
1955 static tTestDesc aHpux11_Uint32_CTests[] = {
1956 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1959 * Fix Command Arguments for Hpux11_Uint32_C
1961 static const char* apzHpux11_Uint32_CPatch[] = {
1963 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
1966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1968 * Description of Hpux11_Vsnprintf fix
1970 tSCC zHpux11_VsnprintfName[] =
1974 * File name selection pattern
1976 tSCC zHpux11_VsnprintfList[] =
1979 * Machine/OS name selection pattern
1981 #define apzHpux11_VsnprintfMachs (const char**)NULL
1984 * content selection pattern - do fix if pattern found
1986 tSCC zHpux11_VsnprintfSelect0[] =
1987 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
1989 #define HPUX11_VSNPRINTF_TEST_CT 1
1990 static tTestDesc aHpux11_VsnprintfTests[] = {
1991 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
1994 * Fix Command Arguments for Hpux11_Vsnprintf
1996 static const char* apzHpux11_VsnprintfPatch[] = {
2001 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2003 * Description of Hpux8_Bogus_Inlines fix
2005 tSCC zHpux8_Bogus_InlinesName[] =
2006 "hpux8_bogus_inlines";
2009 * File name selection pattern
2011 tSCC zHpux8_Bogus_InlinesList[] =
2014 * Machine/OS name selection pattern
2016 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2019 * content selection pattern - do fix if pattern found
2021 tSCC zHpux8_Bogus_InlinesSelect0[] =
2024 #define HPUX8_BOGUS_INLINES_TEST_CT 1
2025 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2026 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2029 * Fix Command Arguments for Hpux8_Bogus_Inlines
2031 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2032 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2033 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2034 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2035 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2038 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2040 * Description of Hpux_Ctype_Macros fix
2042 tSCC zHpux_Ctype_MacrosName[] =
2043 "hpux_ctype_macros";
2046 * File name selection pattern
2048 tSCC zHpux_Ctype_MacrosList[] =
2051 * Machine/OS name selection pattern
2053 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2056 * content selection pattern - do fix if pattern found
2058 tSCC zHpux_Ctype_MacrosSelect0[] =
2059 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2061 #define HPUX_CTYPE_MACROS_TEST_CT 1
2062 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2063 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
2066 * Fix Command Arguments for Hpux_Ctype_Macros
2068 static const char* apzHpux_Ctype_MacrosPatch[] = {
2073 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2075 * Description of Hpux_Long_Double fix
2077 tSCC zHpux_Long_DoubleName[] =
2081 * File name selection pattern
2083 tSCC zHpux_Long_DoubleList[] =
2086 * Machine/OS name selection pattern
2088 #define apzHpux_Long_DoubleMachs (const char**)NULL
2091 * content selection pattern - do fix if pattern found
2093 tSCC zHpux_Long_DoubleSelect0[] =
2094 "extern[ \t]long_double[ \t]strtold";
2097 * content bypass pattern - skip fix if pattern found
2099 tSCC zHpux_Long_DoubleBypass0[] =
2102 #define HPUX_LONG_DOUBLE_TEST_CT 2
2103 static tTestDesc aHpux_Long_DoubleTests[] = {
2104 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
2105 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
2108 * Fix Command Arguments for Hpux_Long_Double
2110 static const char* apzHpux_Long_DoublePatch[] = { "sed",
2111 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
2112 "-e", "s/long_double/long double/g",
2115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2117 * Description of Hpux_Maxint fix
2119 tSCC zHpux_MaxintName[] =
2123 * File name selection pattern
2125 tSCC zHpux_MaxintList[] =
2126 "|sys/param.h|values.h|";
2128 * Machine/OS name selection pattern
2130 #define apzHpux_MaxintMachs (const char**)NULL
2133 * content selection pattern - do fix if pattern found
2135 tSCC zHpux_MaxintSelect0[] =
2136 "^#[ \t]*define[ \t]+MAXINT[ \t]";
2139 * content bypass pattern - skip fix if pattern found
2141 tSCC zHpux_MaxintBypass0[] =
2142 "^#[ \t]*ifndef[ \t]+MAXINT";
2145 * perform the 'test' shell command - do fix on success
2147 tSCC zHpux_MaxintTest0[] =
2148 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
2150 #define HPUX_MAXINT_TEST_CT 3
2151 static tTestDesc aHpux_MaxintTests[] = {
2152 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
2153 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
2154 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
2157 * Fix Command Arguments for Hpux_Maxint
2159 static const char* apzHpux_MaxintPatch[] = {
2164 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
2167 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2169 * Description of Hpux_Systime fix
2171 tSCC zHpux_SystimeName[] =
2175 * File name selection pattern
2177 tSCC zHpux_SystimeList[] =
2180 * Machine/OS name selection pattern
2182 #define apzHpux_SystimeMachs (const char**)NULL
2185 * content selection pattern - do fix if pattern found
2187 tSCC zHpux_SystimeSelect0[] =
2188 "^extern struct sigevent;";
2190 #define HPUX_SYSTIME_TEST_CT 1
2191 static tTestDesc aHpux_SystimeTests[] = {
2192 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2195 * Fix Command Arguments for Hpux_Systime
2197 static const char* apzHpux_SystimePatch[] = {
2202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2204 * Description of Int_Abort_Free_And_Exit fix
2206 tSCC zInt_Abort_Free_And_ExitName[] =
2207 "int_abort_free_and_exit";
2210 * File name selection pattern
2212 tSCC zInt_Abort_Free_And_ExitList[] =
2215 * Machine/OS name selection pattern
2217 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2220 * content selection pattern - do fix if pattern found
2222 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2223 "int[ \t]+(abort|free|exit)[ \t]*\\(";
2225 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
2226 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2227 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2230 * Fix Command Arguments for Int_Abort_Free_And_Exit
2232 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2237 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2239 * Description of Io_Quotes_Def fix
2241 tSCC zIo_Quotes_DefName[] =
2245 * File name selection pattern
2247 #define zIo_Quotes_DefList (char*)NULL
2249 * Machine/OS name selection pattern
2251 #define apzIo_Quotes_DefMachs (const char**)NULL
2254 * content selection pattern - do fix if pattern found
2256 tSCC zIo_Quotes_DefSelect0[] =
2257 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2259 #define IO_QUOTES_DEF_TEST_CT 1
2260 static tTestDesc aIo_Quotes_DefTests[] = {
2261 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2264 * Fix Command Arguments for Io_Quotes_Def
2266 static const char* apzIo_Quotes_DefPatch[] = {
2271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2273 * Description of Io_Quotes_Use fix
2275 tSCC zIo_Quotes_UseName[] =
2279 * File name selection pattern
2281 #define zIo_Quotes_UseList (char*)NULL
2283 * Machine/OS name selection pattern
2285 #define apzIo_Quotes_UseMachs (const char**)NULL
2288 * content selection pattern - do fix if pattern found
2290 tSCC zIo_Quotes_UseSelect0[] =
2291 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2293 #define IO_QUOTES_USE_TEST_CT 1
2294 static tTestDesc aIo_Quotes_UseTests[] = {
2295 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2298 * Fix Command Arguments for Io_Quotes_Use
2300 static const char* apzIo_Quotes_UsePatch[] = {
2305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2307 * Description of Ip_Missing_Semi fix
2309 tSCC zIp_Missing_SemiName[] =
2313 * File name selection pattern
2315 tSCC zIp_Missing_SemiList[] =
2318 * Machine/OS name selection pattern
2320 #define apzIp_Missing_SemiMachs (const char**)NULL
2323 * content selection pattern - do fix if pattern found
2325 tSCC zIp_Missing_SemiSelect0[] =
2328 #define IP_MISSING_SEMI_TEST_CT 1
2329 static tTestDesc aIp_Missing_SemiTests[] = {
2330 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2333 * Fix Command Arguments for Ip_Missing_Semi
2335 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2336 "-e", "/^struct/,/^};/s/}$/};/",
2339 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2341 * Description of Irix_Asm_Apostrophe fix
2343 tSCC zIrix_Asm_ApostropheName[] =
2344 "irix_asm_apostrophe";
2347 * File name selection pattern
2349 tSCC zIrix_Asm_ApostropheList[] =
2352 * Machine/OS name selection pattern
2354 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2357 * content selection pattern - do fix if pattern found
2359 tSCC zIrix_Asm_ApostropheSelect0[] =
2360 "^[ \t]*#.*[Ww]e're";
2362 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2363 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2364 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2367 * Fix Command Arguments for Irix_Asm_Apostrophe
2369 static const char* apzIrix_Asm_ApostrophePatch[] = {
2372 "^([ \t]*#.*[Ww]e)'re",
2375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2377 * Description of Irix_Limits_Const fix
2379 tSCC zIrix_Limits_ConstName[] =
2380 "irix_limits_const";
2383 * File name selection pattern
2385 tSCC zIrix_Limits_ConstList[] =
2386 "|fixinc-test-limits.h|limits.h|";
2388 * Machine/OS name selection pattern
2390 #define apzIrix_Limits_ConstMachs (const char**)NULL
2393 * content selection pattern - do fix if pattern found
2395 tSCC zIrix_Limits_ConstSelect0[] =
2398 #define IRIX_LIMITS_CONST_TEST_CT 1
2399 static tTestDesc aIrix_Limits_ConstTests[] = {
2400 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2403 * Fix Command Arguments for Irix_Limits_Const
2405 static const char* apzIrix_Limits_ConstPatch[] = {
2410 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2412 * Description of Irix___Restrict fix
2414 tSCC zIrix___RestrictName[] =
2418 * File name selection pattern
2420 tSCC zIrix___RestrictList[] =
2421 "|internal/sgimacros.h|";
2423 * Machine/OS name selection pattern
2425 tSCC* apzIrix___RestrictMachs[] = {
2427 (const char*)NULL };
2430 * content selection pattern - do fix if pattern found
2432 tSCC zIrix___RestrictSelect0[] =
2434 )(#[ \t]*define __restrict restrict)";
2436 #define IRIX___RESTRICT_TEST_CT 1
2437 static tTestDesc aIrix___RestrictTests[] = {
2438 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
2441 * Fix Command Arguments for Irix___Restrict
2443 static const char* apzIrix___RestrictPatch[] = {
2445 "%1# ifndef __cplusplus\n\
2450 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2452 * Description of Irix_Socklen_T fix
2454 tSCC zIrix_Socklen_TName[] =
2458 * File name selection pattern
2460 tSCC zIrix_Socklen_TList[] =
2463 * Machine/OS name selection pattern
2465 tSCC* apzIrix_Socklen_TMachs[] = {
2467 (const char*)NULL };
2470 * content selection pattern - do fix if pattern found
2472 tSCC zIrix_Socklen_TSelect0[] =
2473 "(#define _SOCKLEN_T\n\
2474 )(typedef u_int32_t socklen_t;)";
2476 #define IRIX_SOCKLEN_T_TEST_CT 1
2477 static tTestDesc aIrix_Socklen_TTests[] = {
2478 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
2481 * Fix Command Arguments for Irix_Socklen_T
2483 static const char* apzIrix_Socklen_TPatch[] = {
2485 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
2486 typedef int socklen_t;\n\
2489 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
2492 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2494 * Description of Irix_Stdio_Va_List fix
2496 tSCC zIrix_Stdio_Va_ListName[] =
2497 "irix_stdio_va_list";
2500 * File name selection pattern
2502 tSCC zIrix_Stdio_Va_ListList[] =
2505 * Machine/OS name selection pattern
2507 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2510 * content selection pattern - do fix if pattern found
2512 tSCC zIrix_Stdio_Va_ListSelect0[] =
2513 "(printf\\(.*), /\\* va_list \\*/ char \\*";
2515 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2516 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2517 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2520 * Fix Command Arguments for Irix_Stdio_Va_List
2522 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2524 "%1, __gnuc_va_list",
2527 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2529 * Description of Irix_Wcsftime fix
2531 tSCC zIrix_WcsftimeName[] =
2535 * File name selection pattern
2537 tSCC zIrix_WcsftimeList[] =
2538 "|internal/wchar_core.h|";
2540 * Machine/OS name selection pattern
2542 tSCC* apzIrix_WcsftimeMachs[] = {
2544 (const char*)NULL };
2547 * content selection pattern - do fix if pattern found
2549 tSCC zIrix_WcsftimeSelect0[] =
2551 (extern size_t[ \t]+wcsftime.*const char *.*)";
2553 #define IRIX_WCSFTIME_TEST_CT 1
2554 static tTestDesc aIrix_WcsftimeTests[] = {
2555 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
2558 * Fix Command Arguments for Irix_Wcsftime
2560 static const char* apzIrix_WcsftimePatch[] = {
2562 "#if _NO_XOPEN5 && !defined(__c99)\n\
2566 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2568 * Description of Isc_Fmod fix
2570 tSCC zIsc_FmodName[] =
2574 * File name selection pattern
2576 tSCC zIsc_FmodList[] =
2579 * Machine/OS name selection pattern
2581 #define apzIsc_FmodMachs (const char**)NULL
2584 * content selection pattern - do fix if pattern found
2586 tSCC zIsc_FmodSelect0[] =
2589 #define ISC_FMOD_TEST_CT 1
2590 static tTestDesc aIsc_FmodTests[] = {
2591 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2594 * Fix Command Arguments for Isc_Fmod
2596 static const char* apzIsc_FmodPatch[] = {
2598 "fmod(double, double)",
2601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2603 * Description of Isc_Omits_With_Stdc fix
2605 tSCC zIsc_Omits_With_StdcName[] =
2606 "isc_omits_with_stdc";
2609 * File name selection pattern
2611 tSCC zIsc_Omits_With_StdcList[] =
2612 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2614 * Machine/OS name selection pattern
2616 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2619 * content selection pattern - do fix if pattern found
2621 tSCC zIsc_Omits_With_StdcSelect0[] =
2622 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2624 #define ISC_OMITS_WITH_STDC_TEST_CT 1
2625 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2626 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2629 * Fix Command Arguments for Isc_Omits_With_Stdc
2631 static const char* apzIsc_Omits_With_StdcPatch[] = {
2633 "!defined(_POSIX_SOURCE)",
2636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2638 * Description of Kandr_Concat fix
2640 tSCC zKandr_ConcatName[] =
2644 * File name selection pattern
2646 tSCC zKandr_ConcatList[] =
2647 "|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|";
2649 * Machine/OS name selection pattern
2651 #define apzKandr_ConcatMachs (const char**)NULL
2654 * content selection pattern - do fix if pattern found
2656 tSCC zKandr_ConcatSelect0[] =
2659 #define KANDR_CONCAT_TEST_CT 1
2660 static tTestDesc aKandr_ConcatTests[] = {
2661 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2664 * Fix Command Arguments for Kandr_Concat
2666 static const char* apzKandr_ConcatPatch[] = {
2671 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2673 * Description of Libc1_G_Va_List fix
2675 tSCC zLibc1_G_Va_ListName[] =
2679 * File name selection pattern
2681 tSCC zLibc1_G_Va_ListList[] =
2684 * Machine/OS name selection pattern
2686 tSCC* apzLibc1_G_Va_ListMachs[] = {
2688 (const char*)NULL };
2691 * content selection pattern - do fix if pattern found
2693 tSCC zLibc1_G_Va_ListSelect0[] =
2694 "typedef void \\* _G_va_list;";
2696 #define LIBC1_G_VA_LIST_TEST_CT 1
2697 static tTestDesc aLibc1_G_Va_ListTests[] = {
2698 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
2701 * Fix Command Arguments for Libc1_G_Va_List
2703 static const char* apzLibc1_G_Va_ListPatch[] = {
2705 "typedef __builtin_va_list _G_va_list;",
2708 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2710 * Description of Libc1_Ifdefd_Memx fix
2712 tSCC zLibc1_Ifdefd_MemxName[] =
2713 "libc1_ifdefd_memx";
2716 * File name selection pattern
2718 tSCC zLibc1_Ifdefd_MemxList[] =
2719 "|testing.h|string.h|";
2721 * Machine/OS name selection pattern
2723 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2726 * content selection pattern - do fix if pattern found
2728 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2729 "' is a built-in function for gcc 2\\.x\\. \\*/";
2732 * content bypass pattern - skip fix if pattern found
2734 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2737 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2738 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2739 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2740 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2743 * Fix Command Arguments for Libc1_Ifdefd_Memx
2745 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2748 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2749 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2751 extern [a-z_]+ mem.*(\n\
2756 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2758 * Description of Limits_Ifndefs fix
2760 tSCC zLimits_IfndefsName[] =
2764 * File name selection pattern
2766 tSCC zLimits_IfndefsList[] =
2767 "|sys/limits.h|limits.h|";
2769 * Machine/OS name selection pattern
2771 #define apzLimits_IfndefsMachs (const char**)NULL
2774 * content bypass pattern - skip fix if pattern found
2776 tSCC zLimits_IfndefsBypass0[] =
2777 "ifndef[ \t]+FLT_(MIN|MAX)";
2779 #define LIMITS_IFNDEFS_TEST_CT 1
2780 static tTestDesc aLimits_IfndefsTests[] = {
2781 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2784 * Fix Command Arguments for Limits_Ifndefs
2786 static const char* apzLimits_IfndefsPatch[] = {
2791 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2794 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2796 * Description of Lynx_Void_Int fix
2798 tSCC zLynx_Void_IntName[] =
2802 * File name selection pattern
2804 tSCC zLynx_Void_IntList[] =
2807 * Machine/OS name selection pattern
2809 #define apzLynx_Void_IntMachs (const char**)NULL
2812 * content selection pattern - do fix if pattern found
2814 tSCC zLynx_Void_IntSelect0[] =
2815 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2817 #define LYNX_VOID_INT_TEST_CT 1
2818 static tTestDesc aLynx_Void_IntTests[] = {
2819 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2822 * Fix Command Arguments for Lynx_Void_Int
2824 static const char* apzLynx_Void_IntPatch[] = {
2829 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2831 * Description of Lynxos_Fcntl_Proto fix
2833 tSCC zLynxos_Fcntl_ProtoName[] =
2834 "lynxos_fcntl_proto";
2837 * File name selection pattern
2839 tSCC zLynxos_Fcntl_ProtoList[] =
2842 * Machine/OS name selection pattern
2844 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2847 * content selection pattern - do fix if pattern found
2849 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2850 "fcntl[ \t]*\\(int, int, int\\)";
2852 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2853 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2854 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2857 * Fix Command Arguments for Lynxos_Fcntl_Proto
2859 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
2862 "(fcntl[ \t]*\\(int, int, )int\\)",
2865 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2867 * Description of Machine_Ansi_H_Va_List fix
2869 tSCC zMachine_Ansi_H_Va_ListName[] =
2870 "machine_ansi_h_va_list";
2873 * File name selection pattern
2875 #define zMachine_Ansi_H_Va_ListList (char*)NULL
2877 * Machine/OS name selection pattern
2879 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2882 * content selection pattern - do fix if pattern found
2884 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2885 "define[ \t]+_BSD_VA_LIST_[ \t]";
2888 * content bypass pattern - skip fix if pattern found
2890 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2891 "__builtin_va_list";
2893 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2894 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2895 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2896 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2899 * Fix Command Arguments for Machine_Ansi_H_Va_List
2901 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2903 "%1__builtin_va_list",
2904 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2907 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2909 * Description of Machine_Name fix
2911 tSCC zMachine_NameName[] =
2915 * File name selection pattern
2917 #define zMachine_NameList (char*)NULL
2919 * Machine/OS name selection pattern
2921 #define apzMachine_NameMachs (const char**)NULL
2924 * perform the C function call test
2926 tSCC zMachine_NameFTst0[] = "machine_name";
2928 #define MACHINE_NAME_TEST_CT 1
2929 static tTestDesc aMachine_NameTests[] = {
2930 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2933 * Fix Command Arguments for Machine_Name
2935 static const char* apzMachine_NamePatch[] = {
2939 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2941 * Description of Math_Exception fix
2943 tSCC zMath_ExceptionName[] =
2947 * File name selection pattern
2949 tSCC zMath_ExceptionList[] =
2952 * Machine/OS name selection pattern
2954 #define apzMath_ExceptionMachs (const char**)NULL
2957 * content selection pattern - do fix if pattern found
2959 tSCC zMath_ExceptionSelect0[] =
2963 * content bypass pattern - skip fix if pattern found
2965 tSCC zMath_ExceptionBypass0[] =
2966 "We have a problem when using C\\+\\+";
2968 #define MATH_EXCEPTION_TEST_CT 2
2969 static tTestDesc aMath_ExceptionTests[] = {
2970 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2971 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2974 * Fix Command Arguments for Math_Exception
2976 static const char* apzMath_ExceptionPatch[] = {
2978 "#ifdef __cplusplus\n\
2979 #define exception __math_exception\n\
2981 "#ifdef __cplusplus\n\
2986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2988 * Description of Math_Huge_Val_From_Dbl_Max fix
2990 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2991 "math_huge_val_from_dbl_max";
2994 * File name selection pattern
2996 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2999 * Machine/OS name selection pattern
3001 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
3004 * content selection pattern - do fix if pattern found
3006 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
3007 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
3010 * content bypass pattern - skip fix if pattern found
3012 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
3013 "define[ \t]+DBL_MAX";
3015 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
3016 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
3017 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
3018 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
3021 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
3023 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
3024 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
3025 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
3026 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
3031 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3033 * Description of Math_Huge_Val_Ifndef fix
3035 tSCC zMath_Huge_Val_IfndefName[] =
3036 "math_huge_val_ifndef";
3039 * File name selection pattern
3041 tSCC zMath_Huge_Val_IfndefList[] =
3042 "|math.h|math/math.h|";
3044 * Machine/OS name selection pattern
3046 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
3049 * content selection pattern - do fix if pattern found
3051 tSCC zMath_Huge_Val_IfndefSelect0[] =
3052 "define[ \t]+HUGE_VAL";
3054 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
3055 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
3056 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
3059 * Fix Command Arguments for Math_Huge_Val_Ifndef
3061 static const char* apzMath_Huge_Val_IfndefPatch[] = {
3063 "#ifndef HUGE_VAL\n\
3066 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
3069 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3071 * Description of Nested_Auth_Des fix
3073 tSCC zNested_Auth_DesName[] =
3077 * File name selection pattern
3079 tSCC zNested_Auth_DesList[] =
3082 * Machine/OS name selection pattern
3084 #define apzNested_Auth_DesMachs (const char**)NULL
3087 * content selection pattern - do fix if pattern found
3089 tSCC zNested_Auth_DesSelect0[] =
3090 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
3092 #define NESTED_AUTH_DES_TEST_CT 1
3093 static tTestDesc aNested_Auth_DesTests[] = {
3094 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
3097 * Fix Command Arguments for Nested_Auth_Des
3099 static const char* apzNested_Auth_DesPatch[] = {
3104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3106 * Description of Nested_Motorola fix
3108 tSCC zNested_MotorolaName[] =
3112 * File name selection pattern
3114 tSCC zNested_MotorolaList[] =
3115 "|sys/limits.h|limits.h|";
3117 * Machine/OS name selection pattern
3119 tSCC* apzNested_MotorolaMachs[] = {
3120 "m68k-motorola-sysv*",
3121 (const char*)NULL };
3124 * content selection pattern - do fix if pattern found
3126 tSCC zNested_MotorolaSelect0[] =
3127 "max # bytes atomic in write|error value returned by Math lib";
3129 #define NESTED_MOTOROLA_TEST_CT 1
3130 static tTestDesc aNested_MotorolaTests[] = {
3131 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
3134 * Fix Command Arguments for Nested_Motorola
3136 static const char* apzNested_MotorolaPatch[] = { "sed",
3137 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3138 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3143 * Description of Nested_Sys_Limits fix
3145 tSCC zNested_Sys_LimitsName[] =
3146 "nested_sys_limits";
3149 * File name selection pattern
3151 tSCC zNested_Sys_LimitsList[] =
3154 * Machine/OS name selection pattern
3156 #define apzNested_Sys_LimitsMachs (const char**)NULL
3159 * content selection pattern - do fix if pattern found
3161 tSCC zNested_Sys_LimitsSelect0[] =
3164 #define NESTED_SYS_LIMITS_TEST_CT 1
3165 static tTestDesc aNested_Sys_LimitsTests[] = {
3166 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3169 * Fix Command Arguments for Nested_Sys_Limits
3171 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3172 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3173 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3178 * Description of Netbsd_Extra_Semicolon fix
3180 tSCC zNetbsd_Extra_SemicolonName[] =
3181 "netbsd_extra_semicolon";
3184 * File name selection pattern
3186 tSCC zNetbsd_Extra_SemicolonList[] =
3189 * Machine/OS name selection pattern
3191 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
3193 (const char*)NULL };
3196 * content selection pattern - do fix if pattern found
3198 tSCC zNetbsd_Extra_SemicolonSelect0[] =
3199 "#define[ \t]*__END_DECLS[ \t]*};";
3201 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
3202 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
3203 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
3206 * Fix Command Arguments for Netbsd_Extra_Semicolon
3208 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
3210 "#define __END_DECLS }",
3213 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3215 * Description of Next_Math_Prefix fix
3217 tSCC zNext_Math_PrefixName[] =
3221 * File name selection pattern
3223 tSCC zNext_Math_PrefixList[] =
3226 * Machine/OS name selection pattern
3228 #define apzNext_Math_PrefixMachs (const char**)NULL
3231 * content selection pattern - do fix if pattern found
3233 tSCC zNext_Math_PrefixSelect0[] =
3234 "^extern[ \t]+double[ \t]+__const__[ \t]";
3236 #define NEXT_MATH_PREFIX_TEST_CT 1
3237 static tTestDesc aNext_Math_PrefixTests[] = {
3238 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3241 * Fix Command Arguments for Next_Math_Prefix
3243 static const char* apzNext_Math_PrefixPatch[] = {
3245 "extern double %1(",
3246 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3251 * Description of Next_Template fix
3253 tSCC zNext_TemplateName[] =
3257 * File name selection pattern
3259 tSCC zNext_TemplateList[] =
3262 * Machine/OS name selection pattern
3264 #define apzNext_TemplateMachs (const char**)NULL
3267 * content selection pattern - do fix if pattern found
3269 tSCC zNext_TemplateSelect0[] =
3272 #define NEXT_TEMPLATE_TEST_CT 1
3273 static tTestDesc aNext_TemplateTests[] = {
3274 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
3277 * Fix Command Arguments for Next_Template
3279 static const char* apzNext_TemplatePatch[] = {
3282 "\\(([^)]*)[ \t]template\\)",
3285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3287 * Description of Next_Volitile fix
3289 tSCC zNext_VolitileName[] =
3293 * File name selection pattern
3295 tSCC zNext_VolitileList[] =
3298 * Machine/OS name selection pattern
3300 #define apzNext_VolitileMachs (const char**)NULL
3303 * content selection pattern - do fix if pattern found
3305 tSCC zNext_VolitileSelect0[] =
3306 "^extern[ \t]+volatile[ \t]+void[ \t]";
3308 #define NEXT_VOLITILE_TEST_CT 1
3309 static tTestDesc aNext_VolitileTests[] = {
3310 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
3313 * Fix Command Arguments for Next_Volitile
3315 static const char* apzNext_VolitilePatch[] = {
3318 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3321 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3323 * Description of Next_Wait_Union fix
3325 tSCC zNext_Wait_UnionName[] =
3329 * File name selection pattern
3331 tSCC zNext_Wait_UnionList[] =
3334 * Machine/OS name selection pattern
3336 #define apzNext_Wait_UnionMachs (const char**)NULL
3339 * content selection pattern - do fix if pattern found
3341 tSCC zNext_Wait_UnionSelect0[] =
3342 "wait\\(union wait";
3344 #define NEXT_WAIT_UNION_TEST_CT 1
3345 static tTestDesc aNext_Wait_UnionTests[] = {
3346 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3349 * Fix Command Arguments for Next_Wait_Union
3351 static const char* apzNext_Wait_UnionPatch[] = {
3356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3358 * Description of Nodeent_Syntax fix
3360 tSCC zNodeent_SyntaxName[] =
3364 * File name selection pattern
3366 tSCC zNodeent_SyntaxList[] =
3367 "|netdnet/dnetdb.h|";
3369 * Machine/OS name selection pattern
3371 #define apzNodeent_SyntaxMachs (const char**)NULL
3374 * content selection pattern - do fix if pattern found
3376 tSCC zNodeent_SyntaxSelect0[] =
3377 "char[ \t]*\\*na_addr[ \t]*$";
3379 #define NODEENT_SYNTAX_TEST_CT 1
3380 static tTestDesc aNodeent_SyntaxTests[] = {
3381 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3384 * Fix Command Arguments for Nodeent_Syntax
3386 static const char* apzNodeent_SyntaxPatch[] = {
3391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3393 * Description of Osf_Namespace_A fix
3395 tSCC zOsf_Namespace_AName[] =
3399 * File name selection pattern
3401 tSCC zOsf_Namespace_AList[] =
3402 "|reg_types.h|sys/lc_core.h|";
3404 * Machine/OS name selection pattern
3406 #define apzOsf_Namespace_AMachs (const char**)NULL
3409 * perform the 'test' shell command - do fix on success
3411 tSCC zOsf_Namespace_ATest0[] =
3413 tSCC zOsf_Namespace_ATest1[] =
3414 " -r sys/lc_core.h";
3415 tSCC zOsf_Namespace_ATest2[] =
3416 " -n \"`grep '} regex_t;' reg_types.h`\"";
3417 tSCC zOsf_Namespace_ATest3[] =
3418 " -z \"`grep __regex_t regex.h`\"";
3420 #define OSF_NAMESPACE_A_TEST_CT 4
3421 static tTestDesc aOsf_Namespace_ATests[] = {
3422 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3423 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3424 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3425 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3428 * Fix Command Arguments for Osf_Namespace_A
3430 static const char* apzOsf_Namespace_APatch[] = {
3433 "reg(ex|off|match)_t",
3436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3438 * Description of Osf_Namespace_C fix
3440 tSCC zOsf_Namespace_CName[] =
3444 * File name selection pattern
3446 tSCC zOsf_Namespace_CList[] =
3449 * Machine/OS name selection pattern
3451 #define apzOsf_Namespace_CMachs (const char**)NULL
3454 * content selection pattern - do fix if pattern found
3456 tSCC zOsf_Namespace_CSelect0[] =
3457 "#include <reg_types.h>.*";
3460 * perform the 'test' shell command - do fix on success
3462 tSCC zOsf_Namespace_CTest0[] =
3464 tSCC zOsf_Namespace_CTest1[] =
3465 " -r sys/lc_core.h";
3466 tSCC zOsf_Namespace_CTest2[] =
3467 " -n \"`grep '} regex_t;' reg_types.h`\"";
3468 tSCC zOsf_Namespace_CTest3[] =
3469 " -z \"`grep __regex_t regex.h`\"";
3471 #define OSF_NAMESPACE_C_TEST_CT 5
3472 static tTestDesc aOsf_Namespace_CTests[] = {
3473 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3474 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3475 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3476 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3477 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3480 * Fix Command Arguments for Osf_Namespace_C
3482 static const char* apzOsf_Namespace_CPatch[] = {
3485 typedef __regex_t\tregex_t;\n\
3486 typedef __regoff_t\tregoff_t;\n\
3487 typedef __regmatch_t\tregmatch_t;",
3490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3492 * Description of Pthread_Page_Size fix
3494 tSCC zPthread_Page_SizeName[] =
3495 "pthread_page_size";
3498 * File name selection pattern
3500 tSCC zPthread_Page_SizeList[] =
3503 * Machine/OS name selection pattern
3505 #define apzPthread_Page_SizeMachs (const char**)NULL
3508 * content selection pattern - do fix if pattern found
3510 tSCC zPthread_Page_SizeSelect0[] =
3513 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3514 static tTestDesc aPthread_Page_SizeTests[] = {
3515 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3518 * Fix Command Arguments for Pthread_Page_Size
3520 static const char* apzPthread_Page_SizePatch[] = {
3525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3527 * Description of Read_Ret_Type fix
3529 tSCC zRead_Ret_TypeName[] =
3533 * File name selection pattern
3535 tSCC zRead_Ret_TypeList[] =
3538 * Machine/OS name selection pattern
3540 #define apzRead_Ret_TypeMachs (const char**)NULL
3543 * content selection pattern - do fix if pattern found
3545 tSCC zRead_Ret_TypeSelect0[] =
3546 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3548 #define READ_RET_TYPE_TEST_CT 1
3549 static tTestDesc aRead_Ret_TypeTests[] = {
3550 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3553 * Fix Command Arguments for Read_Ret_Type
3555 static const char* apzRead_Ret_TypePatch[] = {
3557 "extern unsigned int fread(), fwrite();\n\
3559 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3564 * Description of Rs6000_Double fix
3566 tSCC zRs6000_DoubleName[] =
3570 * File name selection pattern
3572 tSCC zRs6000_DoubleList[] =
3575 * Machine/OS name selection pattern
3577 #define apzRs6000_DoubleMachs (const char**)NULL
3580 * content selection pattern - do fix if pattern found
3582 tSCC zRs6000_DoubleSelect0[] =
3583 "[^a-zA-Z_]class\\(";
3585 #define RS6000_DOUBLE_TEST_CT 1
3586 static tTestDesc aRs6000_DoubleTests[] = {
3587 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3590 * Fix Command Arguments for Rs6000_Double
3592 static const char* apzRs6000_DoublePatch[] = {
3594 "#ifndef __cplusplus\n\
3597 "^.*[^a-zA-Z_]class\\(.*",
3600 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3602 * Description of Rs6000_Fchmod fix
3604 tSCC zRs6000_FchmodName[] =
3608 * File name selection pattern
3610 tSCC zRs6000_FchmodList[] =
3613 * Machine/OS name selection pattern
3615 #define apzRs6000_FchmodMachs (const char**)NULL
3618 * content selection pattern - do fix if pattern found
3620 tSCC zRs6000_FchmodSelect0[] =
3621 "fchmod\\(char \\*";
3623 #define RS6000_FCHMOD_TEST_CT 1
3624 static tTestDesc aRs6000_FchmodTests[] = {
3625 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3628 * Fix Command Arguments for Rs6000_Fchmod
3630 static const char* apzRs6000_FchmodPatch[] = {
3635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3637 * Description of Rs6000_Param fix
3639 tSCC zRs6000_ParamName[] =
3643 * File name selection pattern
3645 tSCC zRs6000_ParamList[] =
3646 "|stdio.h|unistd.h|";
3648 * Machine/OS name selection pattern
3650 #define apzRs6000_ParamMachs (const char**)NULL
3653 * content selection pattern - do fix if pattern found
3655 tSCC zRs6000_ParamSelect0[] =
3656 "rename\\(const char \\*old, const char \\*new\\)";
3658 #define RS6000_PARAM_TEST_CT 1
3659 static tTestDesc aRs6000_ParamTests[] = {
3660 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3663 * Fix Command Arguments for Rs6000_Param
3665 static const char* apzRs6000_ParamPatch[] = {
3667 "rename(const char *_old, const char *_new)",
3670 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3672 * Description of Sco_Static_Func fix
3674 tSCC zSco_Static_FuncName[] =
3678 * File name selection pattern
3680 tSCC zSco_Static_FuncList[] =
3683 * Machine/OS name selection pattern
3685 tSCC* apzSco_Static_FuncMachs[] = {
3687 (const char*)NULL };
3690 * content selection pattern - do fix if pattern found
3692 tSCC zSco_Static_FuncSelect0[] =
3695 #define SCO_STATIC_FUNC_TEST_CT 1
3696 static tTestDesc aSco_Static_FuncTests[] = {
3697 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3700 * Fix Command Arguments for Sco_Static_Func
3702 static const char* apzSco_Static_FuncPatch[] = { "sed",
3703 "-e", "/^static int/i\\\n\
3704 #if __cplusplus\\\n\
3706 #endif /* __cplusplus */",
3708 #if __cplusplus\\\n\
3710 #endif /* __cplusplus */",
3713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3715 * Description of Sco_Utime fix
3717 tSCC zSco_UtimeName[] =
3721 * File name selection pattern
3723 tSCC zSco_UtimeList[] =
3726 * Machine/OS name selection pattern
3728 tSCC* apzSco_UtimeMachs[] = {
3730 (const char*)NULL };
3733 * content selection pattern - do fix if pattern found
3735 tSCC zSco_UtimeSelect0[] =
3736 "\\(const char \\*, struct utimbuf \\*\\);";
3738 #define SCO_UTIME_TEST_CT 1
3739 static tTestDesc aSco_UtimeTests[] = {
3740 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3743 * Fix Command Arguments for Sco_Utime
3745 static const char* apzSco_UtimePatch[] = {
3747 "(const char *, const struct utimbuf *);",
3750 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3752 * Description of Solaris_Mutex_Init fix
3754 tSCC zSolaris_Mutex_InitName[] =
3755 "solaris_mutex_init";
3758 * File name selection pattern
3760 tSCC zSolaris_Mutex_InitList[] =
3763 * Machine/OS name selection pattern
3765 #define apzSolaris_Mutex_InitMachs (const char**)NULL
3768 * content selection pattern - do fix if pattern found
3770 tSCC zSolaris_Mutex_InitSelect0[] =
3771 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
3773 #define SOLARIS_MUTEX_INIT_TEST_CT 1
3774 static tTestDesc aSolaris_Mutex_InitTests[] = {
3775 { TT_EGREP, zSolaris_Mutex_InitSelect0, (regex_t*)NULL }, };
3778 * Fix Command Arguments for Solaris_Mutex_Init
3780 static const char* apzSolaris_Mutex_InitPatch[] = {
3782 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
3787 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
3790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3792 * Description of Solaris_Stdio_Tag fix
3794 tSCC zSolaris_Stdio_TagName[] =
3795 "solaris_stdio_tag";
3798 * File name selection pattern
3800 tSCC zSolaris_Stdio_TagList[] =
3803 * Machine/OS name selection pattern
3805 #define apzSolaris_Stdio_TagMachs (const char**)NULL
3808 * content selection pattern - do fix if pattern found
3810 tSCC zSolaris_Stdio_TagSelect0[] =
3811 "__cplusplus < 54321L";
3813 #define SOLARIS_STDIO_TAG_TEST_CT 1
3814 static tTestDesc aSolaris_Stdio_TagTests[] = {
3815 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
3818 * Fix Command Arguments for Solaris_Stdio_Tag
3820 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
3821 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
3824 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3826 * Description of Solaris_Widec fix
3828 tSCC zSolaris_WidecName[] =
3832 * File name selection pattern
3834 tSCC zSolaris_WidecList[] =
3837 * Machine/OS name selection pattern
3839 tSCC* apzSolaris_WidecMachs[] = {
3840 "*-*-solaris2.[0-5]*",
3841 (const char*)NULL };
3844 * content selection pattern - do fix if pattern found
3846 tSCC zSolaris_WidecSelect0[] =
3850 * content bypass pattern - skip fix if pattern found
3852 tSCC zSolaris_WidecBypass0[] =
3853 "include.*wchar\\.h";
3855 #define SOLARIS_WIDEC_TEST_CT 2
3856 static tTestDesc aSolaris_WidecTests[] = {
3857 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
3858 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
3861 * Fix Command Arguments for Solaris_Widec
3863 static const char* apzSolaris_WidecPatch[] = {
3866 #include <wchar.h>",
3869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3871 * Description of Statsswtch fix
3873 tSCC zStatsswtchName[] =
3877 * File name selection pattern
3879 tSCC zStatsswtchList[] =
3882 * Machine/OS name selection pattern
3884 #define apzStatsswtchMachs (const char**)NULL
3887 * content selection pattern - do fix if pattern found
3889 tSCC zStatsswtchSelect0[] =
3892 #define STATSSWTCH_TEST_CT 1
3893 static tTestDesc aStatsswtchTests[] = {
3894 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3897 * Fix Command Arguments for Statsswtch
3899 static const char* apzStatsswtchPatch[] = {
3904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3906 * Description of Stdio_Stdarg_H fix
3908 tSCC zStdio_Stdarg_HName[] =
3912 * File name selection pattern
3914 tSCC zStdio_Stdarg_HList[] =
3917 * Machine/OS name selection pattern
3919 #define apzStdio_Stdarg_HMachs (const char**)NULL
3922 * content bypass pattern - skip fix if pattern found
3924 tSCC zStdio_Stdarg_HBypass0[] =
3925 "include.*(stdarg.h|machine/ansi.h)";
3927 #define STDIO_STDARG_H_TEST_CT 1
3928 static tTestDesc aStdio_Stdarg_HTests[] = {
3929 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3932 * Fix Command Arguments for Stdio_Stdarg_H
3934 static const char* apzStdio_Stdarg_HPatch[] = {
3936 "#define __need___va_list\n\
3937 #include <stdarg.h>\n",
3940 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3942 * Description of Stdio_Va_List fix
3944 tSCC zStdio_Va_ListName[] =
3948 * File name selection pattern
3950 tSCC zStdio_Va_ListList[] =
3953 * Machine/OS name selection pattern
3955 #define apzStdio_Va_ListMachs (const char**)NULL
3958 * content bypass pattern - skip fix if pattern found
3960 tSCC zStdio_Va_ListBypass0[] =
3961 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list";
3963 #define STDIO_VA_LIST_TEST_CT 1
3964 static tTestDesc aStdio_Va_ListTests[] = {
3965 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3968 * Fix Command Arguments for Stdio_Va_List
3970 static const char* apzStdio_Va_ListPatch[] = { "sed",
3971 "-e", "s@ va_list @ __gnuc_va_list @\n\
3972 s@ va_list)@ __gnuc_va_list)@\n\
3973 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3974 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
3975 s@ va_list@ __not_va_list__@\n\
3976 s@\\*va_list@*__not_va_list__@\n\
3977 s@ __va_list)@ __gnuc_va_list)@\n\
3978 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3979 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
3980 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3981 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3982 s@VA_LIST@DUMMY_VA_LIST@\n\
3983 s@_Va_LIST@_VA_LIST@",
3986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3988 * Description of Strict_Ansi_Not fix
3990 tSCC zStrict_Ansi_NotName[] =
3994 * File name selection pattern
3996 #define zStrict_Ansi_NotList (char*)NULL
3998 * Machine/OS name selection pattern
4000 #define apzStrict_Ansi_NotMachs (const char**)NULL
4003 * content selection pattern - do fix if pattern found
4005 tSCC zStrict_Ansi_NotSelect0[] =
4006 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
4009 * content bypass pattern - skip fix if pattern found
4011 tSCC zStrict_Ansi_NotBypass0[] =
4012 "GNU and MIPS C compilers define __STDC__ differently";
4015 * perform the C function call test
4017 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
4019 #define STRICT_ANSI_NOT_TEST_CT 3
4020 static tTestDesc aStrict_Ansi_NotTests[] = {
4021 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
4022 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
4023 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
4026 * Fix Command Arguments for Strict_Ansi_Not
4028 static const char* apzStrict_Ansi_NotPatch[] = {
4030 "%1 !defined(__STRICT_ANSI__)",
4033 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4035 * Description of Strict_Ansi_Not_Ctd fix
4037 tSCC zStrict_Ansi_Not_CtdName[] =
4038 "strict_ansi_not_ctd";
4041 * File name selection pattern
4043 tSCC zStrict_Ansi_Not_CtdList[] =
4044 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
4046 * Machine/OS name selection pattern
4048 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
4051 * content selection pattern - do fix if pattern found
4053 tSCC zStrict_Ansi_Not_CtdSelect0[] =
4054 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
4057 * perform the C function call test
4059 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
4061 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
4062 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
4063 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
4064 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
4067 * Fix Command Arguments for Strict_Ansi_Not_Ctd
4069 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
4071 "%1 !defined(__STRICT_ANSI__)",
4074 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4076 * Description of Strict_Ansi_Only fix
4078 tSCC zStrict_Ansi_OnlyName[] =
4082 * File name selection pattern
4084 #define zStrict_Ansi_OnlyList (char*)NULL
4086 * Machine/OS name selection pattern
4088 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
4091 * content selection pattern - do fix if pattern found
4093 tSCC zStrict_Ansi_OnlySelect0[] =
4094 "^([ \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)";
4097 * perform the C function call test
4099 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
4101 #define STRICT_ANSI_ONLY_TEST_CT 2
4102 static tTestDesc aStrict_Ansi_OnlyTests[] = {
4103 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
4104 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
4107 * Fix Command Arguments for Strict_Ansi_Only
4109 static const char* apzStrict_Ansi_OnlyPatch[] = {
4111 "%1 defined(__STRICT_ANSI__)",
4114 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4116 * Description of Struct_File fix
4118 tSCC zStruct_FileName[] =
4122 * File name selection pattern
4124 tSCC zStruct_FileList[] =
4127 * Machine/OS name selection pattern
4129 #define apzStruct_FileMachs (const char**)NULL
4132 * content selection pattern - do fix if pattern found
4134 tSCC zStruct_FileSelect0[] =
4135 "^.*xdrstdio_create.*struct __file_s";
4137 #define STRUCT_FILE_TEST_CT 1
4138 static tTestDesc aStruct_FileTests[] = {
4139 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
4142 * Fix Command Arguments for Struct_File
4144 static const char* apzStruct_FilePatch[] = {
4146 "struct __file_s;\n\
4150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4152 * Description of Struct_Sockaddr fix
4154 tSCC zStruct_SockaddrName[] =
4158 * File name selection pattern
4160 tSCC zStruct_SockaddrList[] =
4163 * Machine/OS name selection pattern
4165 #define apzStruct_SockaddrMachs (const char**)NULL
4168 * content selection pattern - do fix if pattern found
4170 tSCC zStruct_SockaddrSelect0[] =
4171 "^.*authdes_create.*struct sockaddr";
4174 * content bypass pattern - skip fix if pattern found
4176 tSCC zStruct_SockaddrBypass0[] =
4179 #define STRUCT_SOCKADDR_TEST_CT 2
4180 static tTestDesc aStruct_SockaddrTests[] = {
4181 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
4182 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
4185 * Fix Command Arguments for Struct_Sockaddr
4187 static const char* apzStruct_SockaddrPatch[] = {
4189 "struct sockaddr;\n\
4193 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4195 * Description of Sun_Auth_Proto fix
4197 tSCC zSun_Auth_ProtoName[] =
4201 * File name selection pattern
4203 tSCC zSun_Auth_ProtoList[] =
4204 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
4206 * Machine/OS name selection pattern
4208 #define apzSun_Auth_ProtoMachs (const char**)NULL
4211 * content selection pattern - do fix if pattern found
4213 tSCC zSun_Auth_ProtoSelect0[] =
4214 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
4216 #define SUN_AUTH_PROTO_TEST_CT 1
4217 static tTestDesc aSun_Auth_ProtoTests[] = {
4218 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
4221 * Fix Command Arguments for Sun_Auth_Proto
4223 static const char* apzSun_Auth_ProtoPatch[] = {
4225 "#ifdef __cplusplus\n\
4230 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
4233 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4235 * Description of Sun_Bogus_Ifdef fix
4237 tSCC zSun_Bogus_IfdefName[] =
4241 * File name selection pattern
4243 tSCC zSun_Bogus_IfdefList[] =
4244 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
4246 * Machine/OS name selection pattern
4248 #define apzSun_Bogus_IfdefMachs (const char**)NULL
4251 * content selection pattern - do fix if pattern found
4253 tSCC zSun_Bogus_IfdefSelect0[] =
4254 "#ifdef(.*\\|\\|.*)";
4256 #define SUN_BOGUS_IFDEF_TEST_CT 1
4257 static tTestDesc aSun_Bogus_IfdefTests[] = {
4258 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
4261 * Fix Command Arguments for Sun_Bogus_Ifdef
4263 static const char* apzSun_Bogus_IfdefPatch[] = {
4268 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4270 * Description of Sun_Catmacro fix
4272 tSCC zSun_CatmacroName[] =
4276 * File name selection pattern
4278 tSCC zSun_CatmacroList[] =
4279 "|pixrect/memvar.h|";
4281 * Machine/OS name selection pattern
4283 #define apzSun_CatmacroMachs (const char**)NULL
4286 * content selection pattern - do fix if pattern found
4288 tSCC zSun_CatmacroSelect0[] =
4289 "^#define[ \t]+CAT\\(a,b\\).*";
4291 #define SUN_CATMACRO_TEST_CT 1
4292 static tTestDesc aSun_CatmacroTests[] = {
4293 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
4296 * Fix Command Arguments for Sun_Catmacro
4298 static const char* apzSun_CatmacroPatch[] = {
4301 # define CAT(a,b) a##b\n\
4307 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4309 * Description of Sun_Malloc fix
4311 tSCC zSun_MallocName[] =
4315 * File name selection pattern
4317 tSCC zSun_MallocList[] =
4320 * Machine/OS name selection pattern
4322 #define apzSun_MallocMachs (const char**)NULL
4323 #define SUN_MALLOC_TEST_CT 0
4324 #define aSun_MallocTests (tTestDesc*)NULL
4327 * Fix Command Arguments for Sun_Malloc
4329 static const char* apzSun_MallocPatch[] = { "sed",
4330 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
4331 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
4332 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
4333 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
4334 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
4337 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4339 * Description of Sun_Rusers_Semi fix
4341 tSCC zSun_Rusers_SemiName[] =
4345 * File name selection pattern
4347 tSCC zSun_Rusers_SemiList[] =
4348 "|rpcsvc/rusers.h|";
4350 * Machine/OS name selection pattern
4352 #define apzSun_Rusers_SemiMachs (const char**)NULL
4355 * content selection pattern - do fix if pattern found
4357 tSCC zSun_Rusers_SemiSelect0[] =
4360 #define SUN_RUSERS_SEMI_TEST_CT 1
4361 static tTestDesc aSun_Rusers_SemiTests[] = {
4362 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
4365 * Fix Command Arguments for Sun_Rusers_Semi
4367 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
4368 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
4371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4373 * Description of Sun_Signal fix
4375 tSCC zSun_SignalName[] =
4379 * File name selection pattern
4381 tSCC zSun_SignalList[] =
4382 "|sys/signal.h|signal.h|";
4384 * Machine/OS name selection pattern
4386 #define apzSun_SignalMachs (const char**)NULL
4389 * content selection pattern - do fix if pattern found
4391 tSCC zSun_SignalSelect0[] =
4392 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
4394 #define SUN_SIGNAL_TEST_CT 1
4395 static tTestDesc aSun_SignalTests[] = {
4396 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
4399 * Fix Command Arguments for Sun_Signal
4401 static const char* apzSun_SignalPatch[] = {
4403 "#ifdef __cplusplus\n\
4404 void\t(*signal(...))(...);\n\
4410 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4412 * Description of Sunos_Matherr_Decl fix
4414 tSCC zSunos_Matherr_DeclName[] =
4415 "sunos_matherr_decl";
4418 * File name selection pattern
4420 tSCC zSunos_Matherr_DeclList[] =
4423 * Machine/OS name selection pattern
4425 #define apzSunos_Matherr_DeclMachs (const char**)NULL
4428 * content selection pattern - do fix if pattern found
4430 tSCC zSunos_Matherr_DeclSelect0[] =
4434 * content bypass pattern - skip fix if pattern found
4436 tSCC zSunos_Matherr_DeclBypass0[] =
4437 "matherr.*(struct exception|__MATH_EXCEPTION)";
4439 #define SUNOS_MATHERR_DECL_TEST_CT 2
4440 static tTestDesc aSunos_Matherr_DeclTests[] = {
4441 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
4442 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
4445 * Fix Command Arguments for Sunos_Matherr_Decl
4447 static const char* apzSunos_Matherr_DeclPatch[] = {
4449 "struct exception;\n",
4452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4454 * Description of Sunos_Strlen fix
4456 tSCC zSunos_StrlenName[] =
4460 * File name selection pattern
4462 tSCC zSunos_StrlenList[] =
4465 * Machine/OS name selection pattern
4467 #define apzSunos_StrlenMachs (const char**)NULL
4470 * content selection pattern - do fix if pattern found
4472 tSCC zSunos_StrlenSelect0[] =
4473 "int[ \t]*strlen\\(\\);(.*)";
4475 #define SUNOS_STRLEN_TEST_CT 1
4476 static tTestDesc aSunos_StrlenTests[] = {
4477 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
4480 * Fix Command Arguments for Sunos_Strlen
4482 static const char* apzSunos_StrlenPatch[] = {
4484 "__SIZE_TYPE__ strlen();%1",
4487 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4489 * Description of Svr4__P fix
4491 tSCC zSvr4__PName[] =
4495 * File name selection pattern
4497 tSCC zSvr4__PList[] =
4498 "|math.h|floatingpoint.h|";
4500 * Machine/OS name selection pattern
4502 #define apzSvr4__PMachs (const char**)NULL
4505 * content selection pattern - do fix if pattern found
4507 tSCC zSvr4__PSelect0[] =
4508 "^#define[ \t]+__P.*";
4510 #define SVR4__P_TEST_CT 1
4511 static tTestDesc aSvr4__PTests[] = {
4512 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
4515 * Fix Command Arguments for Svr4__P
4517 static const char* apzSvr4__PPatch[] = {
4524 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4526 * Description of Svr4_Getcwd fix
4528 tSCC zSvr4_GetcwdName[] =
4532 * File name selection pattern
4534 tSCC zSvr4_GetcwdList[] =
4535 "|stdlib.h|unistd.h|prototypes.h|";
4537 * Machine/OS name selection pattern
4539 #define apzSvr4_GetcwdMachs (const char**)NULL
4542 * content selection pattern - do fix if pattern found
4544 tSCC zSvr4_GetcwdSelect0[] =
4545 "getcwd\\(char \\*, int\\)";
4547 #define SVR4_GETCWD_TEST_CT 1
4548 static tTestDesc aSvr4_GetcwdTests[] = {
4549 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4552 * Fix Command Arguments for Svr4_Getcwd
4554 static const char* apzSvr4_GetcwdPatch[] = {
4556 "getcwd(char *, size_t)",
4559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4561 * Description of Svr4_Profil fix
4563 tSCC zSvr4_ProfilName[] =
4567 * File name selection pattern
4569 tSCC zSvr4_ProfilList[] =
4570 "|stdlib.h|unistd.h|";
4572 * Machine/OS name selection pattern
4574 #define apzSvr4_ProfilMachs (const char**)NULL
4577 * content selection pattern - do fix if pattern found
4579 tSCC zSvr4_ProfilSelect0[] =
4580 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
4582 #define SVR4_PROFIL_TEST_CT 1
4583 static tTestDesc aSvr4_ProfilTests[] = {
4584 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
4587 * Fix Command Arguments for Svr4_Profil
4589 static const char* apzSvr4_ProfilPatch[] = {
4591 "profil(unsigned short *, size_t, int, unsigned int)",
4594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4596 * Description of Sysv68_String fix
4598 tSCC zSysv68_StringName[] =
4602 * File name selection pattern
4604 tSCC zSysv68_StringList[] =
4605 "|testing.h|string.h|";
4607 * Machine/OS name selection pattern
4609 #define apzSysv68_StringMachs (const char**)NULL
4610 #define SYSV68_STRING_TEST_CT 0
4611 #define aSysv68_StringTests (tTestDesc*)NULL
4614 * Fix Command Arguments for Sysv68_String
4616 static const char* apzSysv68_StringPatch[] = { "sed",
4617 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4618 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4619 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4620 "-e", "/^extern char$/N",
4621 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4622 "-e", "/^extern int$/N",
4623 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4624 "-e", "/^\tstrncmp(),$/N",
4625 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4626 extern unsigned int\\\n\
4630 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4632 * Description of Sysz_Stdlib_For_Sun fix
4634 tSCC zSysz_Stdlib_For_SunName[] =
4635 "sysz_stdlib_for_sun";
4638 * File name selection pattern
4640 tSCC zSysz_Stdlib_For_SunList[] =
4643 * Machine/OS name selection pattern
4645 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4648 * content selection pattern - do fix if pattern found
4650 tSCC zSysz_Stdlib_For_SunSelect0[] =
4651 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
4653 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
4654 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
4655 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4658 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4660 static const char* apzSysz_Stdlib_For_SunPatch[] = {
4665 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4667 * Description of Thread_Keyword fix
4669 tSCC zThread_KeywordName[] =
4673 * File name selection pattern
4675 tSCC zThread_KeywordList[] =
4676 "|pthread.h|bits/sigthread.h|";
4678 * Machine/OS name selection pattern
4680 #define apzThread_KeywordMachs (const char**)NULL
4683 * content selection pattern - do fix if pattern found
4685 tSCC zThread_KeywordSelect0[] =
4686 "([* ])__thread([,)])";
4688 #define THREAD_KEYWORD_TEST_CT 1
4689 static tTestDesc aThread_KeywordTests[] = {
4690 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
4693 * Fix Command Arguments for Thread_Keyword
4695 static const char* apzThread_KeywordPatch[] = {
4700 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4702 * Description of Tinfo_Cplusplus fix
4704 tSCC zTinfo_CplusplusName[] =
4708 * File name selection pattern
4710 tSCC zTinfo_CplusplusList[] =
4713 * Machine/OS name selection pattern
4715 #define apzTinfo_CplusplusMachs (const char**)NULL
4718 * content selection pattern - do fix if pattern found
4720 tSCC zTinfo_CplusplusSelect0[] =
4723 #define TINFO_CPLUSPLUS_TEST_CT 1
4724 static tTestDesc aTinfo_CplusplusTests[] = {
4725 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4728 * Fix Command Arguments for Tinfo_Cplusplus
4730 static const char* apzTinfo_CplusplusPatch[] = {
4735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4737 * Description of Ultrix_Atexit_Param fix
4739 tSCC zUltrix_Atexit_ParamName[] =
4740 "ultrix_atexit_param";
4743 * File name selection pattern
4745 tSCC zUltrix_Atexit_ParamList[] =
4748 * Machine/OS name selection pattern
4750 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
4753 * content selection pattern - do fix if pattern found
4755 tSCC zUltrix_Atexit_ParamSelect0[] =
4756 "atexit\\(.*\\(\\)";
4758 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
4759 static tTestDesc aUltrix_Atexit_ParamTests[] = {
4760 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
4763 * Fix Command Arguments for Ultrix_Atexit_Param
4765 static const char* apzUltrix_Atexit_ParamPatch[] = {
4767 "atexit( void (*__func)( void )",
4770 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4772 * Description of Ultrix_Atof_Param fix
4774 tSCC zUltrix_Atof_ParamName[] =
4775 "ultrix_atof_param";
4778 * File name selection pattern
4780 tSCC zUltrix_Atof_ParamList[] =
4783 * Machine/OS name selection pattern
4785 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4788 * content selection pattern - do fix if pattern found
4790 tSCC zUltrix_Atof_ParamSelect0[] =
4791 "atof\\([ \t]*char";
4793 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4794 static tTestDesc aUltrix_Atof_ParamTests[] = {
4795 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4798 * Fix Command Arguments for Ultrix_Atof_Param
4800 static const char* apzUltrix_Atof_ParamPatch[] = {
4805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4807 * Description of Ultrix_Const fix
4809 tSCC zUltrix_ConstName[] =
4813 * File name selection pattern
4815 tSCC zUltrix_ConstList[] =
4818 * Machine/OS name selection pattern
4820 #define apzUltrix_ConstMachs (const char**)NULL
4823 * content selection pattern - do fix if pattern found
4825 tSCC zUltrix_ConstSelect0[] =
4826 "perror\\( char \\*";
4828 #define ULTRIX_CONST_TEST_CT 1
4829 static tTestDesc aUltrix_ConstTests[] = {
4830 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
4833 * Fix Command Arguments for Ultrix_Const
4835 static const char* apzUltrix_ConstPatch[] = {
4838 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
4841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4843 * Description of Ultrix_Const2 fix
4845 tSCC zUltrix_Const2Name[] =
4849 * File name selection pattern
4851 tSCC zUltrix_Const2List[] =
4854 * Machine/OS name selection pattern
4856 #define apzUltrix_Const2Machs (const char**)NULL
4859 * content selection pattern - do fix if pattern found
4861 tSCC zUltrix_Const2Select0[] =
4862 "\\*fopen\\( char \\*";
4864 #define ULTRIX_CONST2_TEST_CT 1
4865 static tTestDesc aUltrix_Const2Tests[] = {
4866 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
4869 * Fix Command Arguments for Ultrix_Const2
4871 static const char* apzUltrix_Const2Patch[] = {
4873 "%1( const char *%3, const char *",
4874 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
4877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4879 * Description of Ultrix_Fix_Fixproto fix
4881 tSCC zUltrix_Fix_FixprotoName[] =
4882 "ultrix_fix_fixproto";
4885 * File name selection pattern
4887 tSCC zUltrix_Fix_FixprotoList[] =
4890 * Machine/OS name selection pattern
4892 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4895 * content selection pattern - do fix if pattern found
4897 tSCC zUltrix_Fix_FixprotoSelect0[] =
4900 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4901 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
4902 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4905 * Fix Command Arguments for Ultrix_Fix_Fixproto
4907 static const char* apzUltrix_Fix_FixprotoPatch[] = {
4911 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
4914 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4916 * Description of Ultrix_Ifdef fix
4918 tSCC zUltrix_IfdefName[] =
4922 * File name selection pattern
4924 tSCC zUltrix_IfdefList[] =
4927 * Machine/OS name selection pattern
4929 #define apzUltrix_IfdefMachs (const char**)NULL
4932 * content selection pattern - do fix if pattern found
4934 tSCC zUltrix_IfdefSelect0[] =
4935 "^#ifdef KERNEL[ \t]+&&";
4937 #define ULTRIX_IFDEF_TEST_CT 1
4938 static tTestDesc aUltrix_IfdefTests[] = {
4939 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4942 * Fix Command Arguments for Ultrix_Ifdef
4944 static const char* apzUltrix_IfdefPatch[] = {
4946 "#if defined(KERNEL) &&",
4949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4951 * Description of Ultrix_Math_Ifdef fix
4953 tSCC zUltrix_Math_IfdefName[] =
4954 "ultrix_math_ifdef";
4957 * File name selection pattern
4959 tSCC zUltrix_Math_IfdefList[] =
4960 "|sys/limits.h|float.h|math.h|";
4962 * Machine/OS name selection pattern
4964 #define apzUltrix_Math_IfdefMachs (const char**)NULL
4967 * content selection pattern - do fix if pattern found
4969 tSCC zUltrix_Math_IfdefSelect0[] =
4970 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
4972 #define ULTRIX_MATH_IFDEF_TEST_CT 1
4973 static tTestDesc aUltrix_Math_IfdefTests[] = {
4974 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
4977 * Fix Command Arguments for Ultrix_Math_Ifdef
4979 static const char* apzUltrix_Math_IfdefPatch[] = {
4984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4986 * Description of Ultrix_Nested_Ioctl fix
4988 tSCC zUltrix_Nested_IoctlName[] =
4989 "ultrix_nested_ioctl";
4992 * File name selection pattern
4994 tSCC zUltrix_Nested_IoctlList[] =
4997 * Machine/OS name selection pattern
4999 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
5002 * content selection pattern - do fix if pattern found
5004 tSCC zUltrix_Nested_IoctlSelect0[] =
5005 "^/\\* #define SIOCSCREEN";
5007 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
5008 static tTestDesc aUltrix_Nested_IoctlTests[] = {
5009 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
5012 * Fix Command Arguments for Ultrix_Nested_Ioctl
5014 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
5015 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
5018 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5020 * Description of Ultrix_Nested_Svc fix
5022 tSCC zUltrix_Nested_SvcName[] =
5023 "ultrix_nested_svc";
5026 * File name selection pattern
5028 tSCC zUltrix_Nested_SvcList[] =
5031 * Machine/OS name selection pattern
5033 #define apzUltrix_Nested_SvcMachs (const char**)NULL
5036 * content selection pattern - do fix if pattern found
5038 tSCC zUltrix_Nested_SvcSelect0[] =
5039 "^ \\*[ \t]*int protocol; */\\*";
5041 #define ULTRIX_NESTED_SVC_TEST_CT 1
5042 static tTestDesc aUltrix_Nested_SvcTests[] = {
5043 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
5046 * Fix Command Arguments for Ultrix_Nested_Svc
5048 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
5049 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
5052 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5054 * Description of Ultrix_Stat fix
5056 tSCC zUltrix_StatName[] =
5060 * File name selection pattern
5062 tSCC zUltrix_StatList[] =
5065 * Machine/OS name selection pattern
5067 #define apzUltrix_StatMachs (const char**)NULL
5070 * content selection pattern - do fix if pattern found
5072 tSCC zUltrix_StatSelect0[] =
5073 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
5075 #define ULTRIX_STAT_TEST_CT 1
5076 static tTestDesc aUltrix_StatTests[] = {
5077 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
5080 * Fix Command Arguments for Ultrix_Stat
5082 static const char* apzUltrix_StatPatch[] = { "sed",
5083 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
5085 /* macro to test for symbolic link */\\\n\
5086 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
5087 "-e", "/^[ \t]*fstat(),$/a\\\n\
5091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5093 * Description of Ultrix_Static fix
5095 tSCC zUltrix_StaticName[] =
5099 * File name selection pattern
5101 tSCC zUltrix_StaticList[] =
5104 * Machine/OS name selection pattern
5106 #define apzUltrix_StaticMachs (const char**)NULL
5109 * content selection pattern - do fix if pattern found
5111 tSCC zUltrix_StaticSelect0[] =
5112 "#include \"r[34]_cpu";
5114 #define ULTRIX_STATIC_TEST_CT 1
5115 static tTestDesc aUltrix_StaticTests[] = {
5116 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
5119 * Fix Command Arguments for Ultrix_Static
5121 static const char* apzUltrix_StaticPatch[] = { "sed",
5122 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
5123 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
5124 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
5127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5129 * Description of Ultrix_Strings fix
5131 tSCC zUltrix_StringsName[] =
5135 * File name selection pattern
5137 tSCC zUltrix_StringsList[] =
5140 * Machine/OS name selection pattern
5142 #define apzUltrix_StringsMachs (const char**)NULL
5145 * content selection pattern - do fix if pattern found
5147 tSCC zUltrix_StringsSelect0[] =
5148 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
5150 #define ULTRIX_STRINGS_TEST_CT 1
5151 static tTestDesc aUltrix_StringsTests[] = {
5152 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
5155 * Fix Command Arguments for Ultrix_Strings
5157 static const char* apzUltrix_StringsPatch[] = {
5161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5163 * Description of Undefine_Null fix
5165 tSCC zUndefine_NullName[] =
5169 * File name selection pattern
5171 #define zUndefine_NullList (char*)NULL
5173 * Machine/OS name selection pattern
5175 #define apzUndefine_NullMachs (const char**)NULL
5178 * content selection pattern - do fix if pattern found
5180 tSCC zUndefine_NullSelect0[] =
5181 "^#[ \t]*define[ \t]+NULL[ \t]";
5184 * content bypass pattern - skip fix if pattern found
5186 tSCC zUndefine_NullBypass0[] =
5187 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
5189 #define UNDEFINE_NULL_TEST_CT 2
5190 static tTestDesc aUndefine_NullTests[] = {
5191 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
5192 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
5195 * Fix Command Arguments for Undefine_Null
5197 static const char* apzUndefine_NullPatch[] = {
5202 "^#[ \t]*define[ \t]*[ \t]NULL([^\r\n\
5206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5208 * Description of Unicosmk_Restrict fix
5210 tSCC zUnicosmk_RestrictName[] =
5211 "unicosmk_restrict";
5214 * File name selection pattern
5216 tSCC zUnicosmk_RestrictList[] =
5217 "|stdio.h|stdlib.h|wchar.h|";
5219 * Machine/OS name selection pattern
5221 tSCC* apzUnicosmk_RestrictMachs[] = {
5223 (const char*)NULL };
5226 * content selection pattern - do fix if pattern found
5228 tSCC zUnicosmk_RestrictSelect0[] =
5229 "(\\*[ \t]*)restrict([ \t]+)";
5231 #define UNICOSMK_RESTRICT_TEST_CT 1
5232 static tTestDesc aUnicosmk_RestrictTests[] = {
5233 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
5236 * Fix Command Arguments for Unicosmk_Restrict
5238 static const char* apzUnicosmk_RestrictPatch[] = {
5243 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5245 * Description of Uw7_Byteorder_Fix fix
5247 tSCC zUw7_Byteorder_FixName[] =
5248 "uw7_byteorder_fix";
5251 * File name selection pattern
5253 tSCC zUw7_Byteorder_FixList[] =
5256 * Machine/OS name selection pattern
5258 tSCC* apzUw7_Byteorder_FixMachs[] = {
5262 "i?86-*-solaris2.[0-4]",
5263 "powerpcle-*-solaris2.[0-4]",
5264 "sparc-*-solaris2.[0-4]",
5265 (const char*)NULL };
5268 * content selection pattern - do fix if pattern found
5270 tSCC zUw7_Byteorder_FixSelect0[] =
5274 * perform the 'test' shell command - do fix on success
5276 tSCC zUw7_Byteorder_FixTest0[] =
5277 "-f sys/byteorder.h";
5279 #define UW7_BYTEORDER_FIX_TEST_CT 2
5280 static tTestDesc aUw7_Byteorder_FixTests[] = {
5281 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
5282 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
5285 * Fix Command Arguments for Uw7_Byteorder_Fix
5287 static const char* apzUw7_Byteorder_FixPatch[] = {
5290 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
5293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5295 * Description of Va_I960_Macro fix
5297 tSCC zVa_I960_MacroName[] =
5301 * File name selection pattern
5303 tSCC zVa_I960_MacroList[] =
5304 "|arch/i960/archI960.h|";
5306 * Machine/OS name selection pattern
5308 #define apzVa_I960_MacroMachs (const char**)NULL
5311 * content selection pattern - do fix if pattern found
5313 tSCC zVa_I960_MacroSelect0[] =
5314 "__(vsiz|vali|vpad|alignof__)";
5316 #define VA_I960_MACRO_TEST_CT 1
5317 static tTestDesc aVa_I960_MacroTests[] = {
5318 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
5321 * Fix Command Arguments for Va_I960_Macro
5323 static const char* apzVa_I960_MacroPatch[] = {
5328 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5330 * Description of Void_Null fix
5332 tSCC zVoid_NullName[] =
5336 * File name selection pattern
5338 tSCC zVoid_NullList[] =
5339 "|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|";
5341 * Machine/OS name selection pattern
5343 #define apzVoid_NullMachs (const char**)NULL
5346 * content selection pattern - do fix if pattern found
5348 tSCC zVoid_NullSelect0[] =
5349 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
5351 #define VOID_NULL_TEST_CT 1
5352 static tTestDesc aVoid_NullTests[] = {
5353 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
5356 * Fix Command Arguments for Void_Null
5358 static const char* apzVoid_NullPatch[] = {
5363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5365 * Description of Vxworks_Gcc_Problem fix
5367 tSCC zVxworks_Gcc_ProblemName[] =
5368 "vxworks_gcc_problem";
5371 * File name selection pattern
5373 tSCC zVxworks_Gcc_ProblemList[] =
5374 "|types/vxTypesBase.h|";
5376 * Machine/OS name selection pattern
5378 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
5381 * content selection pattern - do fix if pattern found
5383 tSCC zVxworks_Gcc_ProblemSelect0[] =
5384 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
5386 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
5387 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
5388 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
5391 * Fix Command Arguments for Vxworks_Gcc_Problem
5393 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
5394 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
5395 "-e", "/[ \t]size_t/i\\\n\
5396 #ifndef _GCC_SIZE_T\\\n\
5397 #define _GCC_SIZE_T\n",
5398 "-e", "/[ \t]size_t/a\\\n\
5400 "-e", "/[ \t]ptrdiff_t/i\\\n\
5401 #ifndef _GCC_PTRDIFF_T\\\n\
5402 #define _GCC_PTRDIFF_T\n",
5403 "-e", "/[ \t]ptrdiff_t/a\\\n\
5405 "-e", "/[ \t]wchar_t/i\\\n\
5406 #ifndef _GCC_WCHAR_T\\\n\
5407 #define _GCC_WCHAR_T\n",
5408 "-e", "/[ \t]wchar_t/a\\\n\
5412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5414 * Description of Vxworks_Needs_Vxtypes fix
5416 tSCC zVxworks_Needs_VxtypesName[] =
5417 "vxworks_needs_vxtypes";
5420 * File name selection pattern
5422 tSCC zVxworks_Needs_VxtypesList[] =
5425 * Machine/OS name selection pattern
5427 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
5430 * content selection pattern - do fix if pattern found
5432 tSCC zVxworks_Needs_VxtypesSelect0[] =
5433 "uint_t([ \t]+_clocks_per_sec)";
5435 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
5436 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
5437 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
5440 * Fix Command Arguments for Vxworks_Needs_Vxtypes
5442 static const char* apzVxworks_Needs_VxtypesPatch[] = {
5447 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5449 * Description of Vxworks_Needs_Vxworks fix
5451 tSCC zVxworks_Needs_VxworksName[] =
5452 "vxworks_needs_vxworks";
5455 * File name selection pattern
5457 tSCC zVxworks_Needs_VxworksList[] =
5460 * Machine/OS name selection pattern
5462 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
5465 * content selection pattern - do fix if pattern found
5467 tSCC zVxworks_Needs_VxworksSelect0[] =
5468 "#[ \t]define[ \t]+__INCstath";
5471 * perform the 'test' shell command - do fix on success
5473 tSCC zVxworks_Needs_VxworksTest0[] =
5474 " -r types/vxTypesOld.h";
5475 tSCC zVxworks_Needs_VxworksTest1[] =
5476 " -n \"`egrep '#include' $file`\"";
5477 tSCC zVxworks_Needs_VxworksTest2[] =
5478 " -n \"`egrep ULONG $file`\"";
5480 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
5481 static tTestDesc aVxworks_Needs_VxworksTests[] = {
5482 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
5483 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
5484 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
5485 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
5488 * Fix Command Arguments for Vxworks_Needs_Vxworks
5490 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
5491 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
5492 #include <types/vxTypesOld.h>\n",
5495 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5497 * Description of Vxworks_Time fix
5499 tSCC zVxworks_TimeName[] =
5503 * File name selection pattern
5505 tSCC zVxworks_TimeList[] =
5508 * Machine/OS name selection pattern
5510 #define apzVxworks_TimeMachs (const char**)NULL
5513 * content selection pattern - do fix if pattern found
5515 tSCC zVxworks_TimeSelect0[] =
5516 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
5519 * perform the 'test' shell command - do fix on success
5521 tSCC zVxworks_TimeTest0[] =
5524 #define VXWORKS_TIME_TEST_CT 2
5525 static tTestDesc aVxworks_TimeTests[] = {
5526 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
5527 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
5530 * Fix Command Arguments for Vxworks_Time
5532 static const char* apzVxworks_TimePatch[] = {
5534 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
5535 #ifdef __cplusplus\n\
5536 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
5538 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
5540 #define __gcc_VOIDFUNCPTR_defined\n\
5542 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
5545 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5547 * Description of Windiss_Math1 fix
5549 tSCC zWindiss_Math1Name[] =
5553 * File name selection pattern
5555 tSCC zWindiss_Math1List[] =
5558 * Machine/OS name selection pattern
5560 tSCC* apzWindiss_Math1Machs[] = {
5562 (const char*)NULL };
5563 #define WINDISS_MATH1_TEST_CT 0
5564 #define aWindiss_Math1Tests (tTestDesc*)NULL
5567 * Fix Command Arguments for Windiss_Math1
5569 static const char* apzWindiss_Math1Patch[] = { "sed",
5570 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
5573 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5575 * Description of Windiss_Math2 fix
5577 tSCC zWindiss_Math2Name[] =
5581 * File name selection pattern
5583 tSCC zWindiss_Math2List[] =
5586 * Machine/OS name selection pattern
5588 tSCC* apzWindiss_Math2Machs[] = {
5590 (const char*)NULL };
5591 #define WINDISS_MATH2_TEST_CT 0
5592 #define aWindiss_Math2Tests (tTestDesc*)NULL
5595 * Fix Command Arguments for Windiss_Math2
5597 static const char* apzWindiss_Math2Patch[] = { "sed",
5598 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
5601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5603 * Description of Windiss_Valist fix
5605 tSCC zWindiss_ValistName[] =
5609 * File name selection pattern
5611 #define zWindiss_ValistList (char*)NULL
5613 * Machine/OS name selection pattern
5615 tSCC* apzWindiss_ValistMachs[] = {
5617 (const char*)NULL };
5620 * content selection pattern - do fix if pattern found
5622 tSCC zWindiss_ValistSelect0[] =
5623 "(#include.*)diab/va_list.h";
5625 #define WINDISS_VALIST_TEST_CT 1
5626 static tTestDesc aWindiss_ValistTests[] = {
5627 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
5630 * Fix Command Arguments for Windiss_Valist
5632 static const char* apzWindiss_ValistPatch[] = { "sed",
5633 "-e", "s|diab/va_list.h|stdarg.h|",
5636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5638 * Description of X11_Class fix
5640 tSCC zX11_ClassName[] =
5644 * File name selection pattern
5646 tSCC zX11_ClassList[] =
5649 * Machine/OS name selection pattern
5651 #define apzX11_ClassMachs (const char**)NULL
5654 * content selection pattern - do fix if pattern found
5656 tSCC zX11_ClassSelect0[] =
5657 "^([ \t]*char \\*)class;(.*)";
5660 * content bypass pattern - skip fix if pattern found
5662 tSCC zX11_ClassBypass0[] =
5665 #define X11_CLASS_TEST_CT 2
5666 static tTestDesc aX11_ClassTests[] = {
5667 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
5668 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
5671 * Fix Command Arguments for X11_Class
5673 static const char* apzX11_ClassPatch[] = {
5675 "#ifdef __cplusplus\n\
5682 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5684 * Description of X11_Class_Usage fix
5686 tSCC zX11_Class_UsageName[] =
5690 * File name selection pattern
5692 tSCC zX11_Class_UsageList[] =
5693 "|Xm/BaseClassI.h|";
5695 * Machine/OS name selection pattern
5697 #define apzX11_Class_UsageMachs (const char**)NULL
5700 * content selection pattern - do fix if pattern found
5702 tSCC zX11_Class_UsageSelect0[] =
5706 * content bypass pattern - skip fix if pattern found
5708 tSCC zX11_Class_UsageBypass0[] =
5711 #define X11_CLASS_USAGE_TEST_CT 2
5712 static tTestDesc aX11_Class_UsageTests[] = {
5713 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
5714 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
5717 * Fix Command Arguments for X11_Class_Usage
5719 static const char* apzX11_Class_UsagePatch[] = {
5724 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5726 * Description of X11_New fix
5728 tSCC zX11_NewName[] =
5732 * File name selection pattern
5734 tSCC zX11_NewList[] =
5737 * Machine/OS name selection pattern
5739 #define apzX11_NewMachs (const char**)NULL
5742 * content bypass pattern - skip fix if pattern found
5744 tSCC zX11_NewBypass0[] =
5747 #define X11_NEW_TEST_CT 1
5748 static tTestDesc aX11_NewTests[] = {
5749 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
5752 * Fix Command Arguments for X11_New
5754 static const char* apzX11_NewPatch[] = { "sed",
5755 "-e", "/Widget\told, new;/i\\\n\
5756 #ifdef __cplusplus\\\n\
5757 \tWidget\told, c_new;\\\n\
5759 "-e", "/Widget\told, new;/a\\\n\
5761 "-e", "s/Widget new,/Widget c_new,/g",
5764 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5766 * Description of X11_Sprintf fix
5768 tSCC zX11_SprintfName[] =
5772 * File name selection pattern
5774 tSCC zX11_SprintfList[] =
5775 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
5777 * Machine/OS name selection pattern
5779 #define apzX11_SprintfMachs (const char**)NULL
5782 * content selection pattern - do fix if pattern found
5784 tSCC zX11_SprintfSelect0[] =
5785 "^extern char \\*\tsprintf\\(\\);$";
5787 #define X11_SPRINTF_TEST_CT 1
5788 static tTestDesc aX11_SprintfTests[] = {
5789 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
5792 * Fix Command Arguments for X11_Sprintf
5794 static const char* apzX11_SprintfPatch[] = {
5796 "#ifndef __STDC__\n\
5798 #endif /* !defined __STDC__ */",
5802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5806 #define REGEX_COUNT 159
5807 #define MACH_LIST_SIZE_LIMIT 261
5808 #define FIX_COUNT 147
5811 * Enumerate the fixes
5814 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
5815 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
5816 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
5817 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
5818 AAB_SUN_MEMCPY_FIXIDX,
5819 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
5820 AAB_ULTRIX_LIMITS_FIXIDX,
5821 AAB_ULTRIX_MEMORY_FIXIDX,
5822 AAB_ULTRIX_STRING_FIXIDX,
5824 AIX_SYSMACHINE_FIXIDX,
5826 AIX_VOLATILE_FIXIDX,
5827 ALPHA___ASSERT_FIXIDX,
5828 ALPHA___EXTERN_PREFIX_FIXIDX,
5829 ALPHA_ASSERT_FIXIDX,
5830 ALPHA_GETOPT_FIXIDX,
5831 ALPHA_PARENS_FIXIDX,
5833 AVOID_BOOL_DEFINE_FIXIDX,
5834 AVOID_BOOL_TYPE_FIXIDX,
5835 AVOID_WCHAR_T_TYPE_FIXIDX,
5837 BAD_STRUCT_TERM_FIXIDX,
5839 BROKEN_ASSERT_STDIO_FIXIDX,
5840 BROKEN_ASSERT_STDLIB_FIXIDX,
5842 CTRL_QUOTES_DEF_FIXIDX,
5843 CTRL_QUOTES_USE_FIXIDX,
5845 DEC_INTERN_ASM_FIXIDX,
5846 DJGPP_WCHAR_H_FIXIDX,
5848 FREEBSD_GCC3_BREAKAGE_FIXIDX,
5852 HPUX10_CPP_POW_INLINE_FIXIDX,
5853 HPUX11_CPP_POW_INLINE_FIXIDX,
5854 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
5855 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
5857 HPUX11_FABSF_FIXIDX,
5858 HPUX11_SIZE_T_FIXIDX,
5859 HPUX11_UINT32_C_FIXIDX,
5860 HPUX11_VSNPRINTF_FIXIDX,
5861 HPUX8_BOGUS_INLINES_FIXIDX,
5862 HPUX_CTYPE_MACROS_FIXIDX,
5863 HPUX_LONG_DOUBLE_FIXIDX,
5865 HPUX_SYSTIME_FIXIDX,
5866 INT_ABORT_FREE_AND_EXIT_FIXIDX,
5867 IO_QUOTES_DEF_FIXIDX,
5868 IO_QUOTES_USE_FIXIDX,
5869 IP_MISSING_SEMI_FIXIDX,
5870 IRIX_ASM_APOSTROPHE_FIXIDX,
5871 IRIX_LIMITS_CONST_FIXIDX,
5872 IRIX___RESTRICT_FIXIDX,
5873 IRIX_SOCKLEN_T_FIXIDX,
5874 IRIX_STDIO_VA_LIST_FIXIDX,
5875 IRIX_WCSFTIME_FIXIDX,
5877 ISC_OMITS_WITH_STDC_FIXIDX,
5878 KANDR_CONCAT_FIXIDX,
5879 LIBC1_G_VA_LIST_FIXIDX,
5880 LIBC1_IFDEFD_MEMX_FIXIDX,
5881 LIMITS_IFNDEFS_FIXIDX,
5882 LYNX_VOID_INT_FIXIDX,
5883 LYNXOS_FCNTL_PROTO_FIXIDX,
5884 MACHINE_ANSI_H_VA_LIST_FIXIDX,
5885 MACHINE_NAME_FIXIDX,
5886 MATH_EXCEPTION_FIXIDX,
5887 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
5888 MATH_HUGE_VAL_IFNDEF_FIXIDX,
5889 NESTED_AUTH_DES_FIXIDX,
5890 NESTED_MOTOROLA_FIXIDX,
5891 NESTED_SYS_LIMITS_FIXIDX,
5892 NETBSD_EXTRA_SEMICOLON_FIXIDX,
5893 NEXT_MATH_PREFIX_FIXIDX,
5894 NEXT_TEMPLATE_FIXIDX,
5895 NEXT_VOLITILE_FIXIDX,
5896 NEXT_WAIT_UNION_FIXIDX,
5897 NODEENT_SYNTAX_FIXIDX,
5898 OSF_NAMESPACE_A_FIXIDX,
5899 OSF_NAMESPACE_C_FIXIDX,
5900 PTHREAD_PAGE_SIZE_FIXIDX,
5901 READ_RET_TYPE_FIXIDX,
5902 RS6000_DOUBLE_FIXIDX,
5903 RS6000_FCHMOD_FIXIDX,
5904 RS6000_PARAM_FIXIDX,
5905 SCO_STATIC_FUNC_FIXIDX,
5907 SOLARIS_MUTEX_INIT_FIXIDX,
5908 SOLARIS_STDIO_TAG_FIXIDX,
5909 SOLARIS_WIDEC_FIXIDX,
5911 STDIO_STDARG_H_FIXIDX,
5912 STDIO_VA_LIST_FIXIDX,
5913 STRICT_ANSI_NOT_FIXIDX,
5914 STRICT_ANSI_NOT_CTD_FIXIDX,
5915 STRICT_ANSI_ONLY_FIXIDX,
5917 STRUCT_SOCKADDR_FIXIDX,
5918 SUN_AUTH_PROTO_FIXIDX,
5919 SUN_BOGUS_IFDEF_FIXIDX,
5920 SUN_CATMACRO_FIXIDX,
5922 SUN_RUSERS_SEMI_FIXIDX,
5924 SUNOS_MATHERR_DECL_FIXIDX,
5925 SUNOS_STRLEN_FIXIDX,
5929 SYSV68_STRING_FIXIDX,
5930 SYSZ_STDLIB_FOR_SUN_FIXIDX,
5931 THREAD_KEYWORD_FIXIDX,
5932 TINFO_CPLUSPLUS_FIXIDX,
5933 ULTRIX_ATEXIT_PARAM_FIXIDX,
5934 ULTRIX_ATOF_PARAM_FIXIDX,
5935 ULTRIX_CONST_FIXIDX,
5936 ULTRIX_CONST2_FIXIDX,
5937 ULTRIX_FIX_FIXPROTO_FIXIDX,
5938 ULTRIX_IFDEF_FIXIDX,
5939 ULTRIX_MATH_IFDEF_FIXIDX,
5940 ULTRIX_NESTED_IOCTL_FIXIDX,
5941 ULTRIX_NESTED_SVC_FIXIDX,
5943 ULTRIX_STATIC_FIXIDX,
5944 ULTRIX_STRINGS_FIXIDX,
5945 UNDEFINE_NULL_FIXIDX,
5946 UNICOSMK_RESTRICT_FIXIDX,
5947 UW7_BYTEORDER_FIX_FIXIDX,
5948 VA_I960_MACRO_FIXIDX,
5950 VXWORKS_GCC_PROBLEM_FIXIDX,
5951 VXWORKS_NEEDS_VXTYPES_FIXIDX,
5952 VXWORKS_NEEDS_VXWORKS_FIXIDX,
5953 VXWORKS_TIME_FIXIDX,
5954 WINDISS_MATH1_FIXIDX,
5955 WINDISS_MATH2_FIXIDX,
5956 WINDISS_VALIST_FIXIDX,
5958 X11_CLASS_USAGE_FIXIDX,
5963 tFixDesc fixDescList[ FIX_COUNT ] = {
5964 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
5965 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
5966 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5967 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
5969 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
5970 apzAab_Fd_Zero_Gnu_Types_HMachs,
5971 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5972 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
5974 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
5975 apzAab_Fd_Zero_Selectbits_HMachs,
5976 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5977 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
5979 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
5980 apzAab_Solaris_Sys_Varargs_HMachs,
5981 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5982 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
5984 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
5985 apzAab_Sun_MemcpyMachs,
5986 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5987 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
5989 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
5990 apzAab_Ultrix_Ansi_CompatMachs,
5991 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5992 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
5994 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
5995 apzAab_Ultrix_LimitsMachs,
5996 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5997 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
5999 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
6000 apzAab_Ultrix_MemoryMachs,
6001 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6002 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
6004 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
6005 apzAab_Ultrix_StringMachs,
6006 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6007 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
6009 { zAix_PthreadName, zAix_PthreadList,
6010 apzAix_PthreadMachs,
6011 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6012 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
6014 { zAix_SysmachineName, zAix_SysmachineList,
6015 apzAix_SysmachineMachs,
6016 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6017 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
6019 { zAix_SyswaitName, zAix_SyswaitList,
6020 apzAix_SyswaitMachs,
6021 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6022 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
6024 { zAix_VolatileName, zAix_VolatileList,
6025 apzAix_VolatileMachs,
6026 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6027 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
6029 { zAlpha___AssertName, zAlpha___AssertList,
6030 apzAlpha___AssertMachs,
6031 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6032 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
6034 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
6035 apzAlpha___Extern_PrefixMachs,
6036 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6037 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
6039 { zAlpha_AssertName, zAlpha_AssertList,
6040 apzAlpha_AssertMachs,
6041 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6042 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
6044 { zAlpha_GetoptName, zAlpha_GetoptList,
6045 apzAlpha_GetoptMachs,
6046 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6047 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
6049 { zAlpha_ParensName, zAlpha_ParensList,
6050 apzAlpha_ParensMachs,
6051 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6052 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
6054 { zAlpha_SbrkName, zAlpha_SbrkList,
6056 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6057 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
6059 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
6060 apzAvoid_Bool_DefineMachs,
6061 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6062 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
6064 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
6065 apzAvoid_Bool_TypeMachs,
6066 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6067 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
6069 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
6070 apzAvoid_Wchar_T_TypeMachs,
6071 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6072 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
6074 { zBad_LvalName, zBad_LvalList,
6076 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
6077 aBad_LvalTests, apzBad_LvalPatch, 0 },
6079 { zBad_Struct_TermName, zBad_Struct_TermList,
6080 apzBad_Struct_TermMachs,
6081 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6082 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
6084 { zBadquoteName, zBadquoteList,
6086 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6087 aBadquoteTests, apzBadquotePatch, 0 },
6089 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
6090 apzBroken_Assert_StdioMachs,
6091 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6092 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
6094 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
6095 apzBroken_Assert_StdlibMachs,
6096 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6097 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
6099 { zBroken_CabsName, zBroken_CabsList,
6100 apzBroken_CabsMachs,
6101 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6102 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
6104 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
6105 apzCtrl_Quotes_DefMachs,
6106 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6107 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
6109 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
6110 apzCtrl_Quotes_UseMachs,
6111 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6112 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
6114 { zCxx_UnreadyName, zCxx_UnreadyList,
6115 apzCxx_UnreadyMachs,
6116 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6117 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
6119 { zDec_Intern_AsmName, zDec_Intern_AsmList,
6120 apzDec_Intern_AsmMachs,
6121 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
6122 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
6124 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
6125 apzDjgpp_Wchar_HMachs,
6126 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6127 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
6129 { zEcd_CursorName, zEcd_CursorList,
6131 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6132 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
6134 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
6135 apzFreebsd_Gcc3_BreakageMachs,
6136 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6137 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
6139 { zGnu_TypesName, zGnu_TypesList,
6141 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6142 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
6144 { zHp_InlineName, zHp_InlineList,
6146 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6147 aHp_InlineTests, apzHp_InlinePatch, 0 },
6149 { zHp_SysfileName, zHp_SysfileList,
6151 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6152 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
6154 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
6155 apzHpux10_Cpp_Pow_InlineMachs,
6156 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6157 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
6159 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
6160 apzHpux11_Cpp_Pow_InlineMachs,
6161 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6162 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
6164 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
6165 apzHpux10_Ctype_Declarations1Machs,
6166 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6167 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
6169 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
6170 apzHpux10_Ctype_Declarations2Machs,
6171 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6172 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
6174 { zHpux11_AbsName, zHpux11_AbsList,
6176 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6177 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
6179 { zHpux11_FabsfName, zHpux11_FabsfList,
6180 apzHpux11_FabsfMachs,
6181 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6182 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
6184 { zHpux11_Size_TName, zHpux11_Size_TList,
6185 apzHpux11_Size_TMachs,
6186 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6187 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
6189 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
6190 apzHpux11_Uint32_CMachs,
6191 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6192 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
6194 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
6195 apzHpux11_VsnprintfMachs,
6196 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6197 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
6199 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
6200 apzHpux8_Bogus_InlinesMachs,
6201 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
6202 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
6204 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
6205 apzHpux_Ctype_MacrosMachs,
6206 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6207 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
6209 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
6210 apzHpux_Long_DoubleMachs,
6211 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
6212 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
6214 { zHpux_MaxintName, zHpux_MaxintList,
6215 apzHpux_MaxintMachs,
6216 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6217 aHpux_MaxintTests, apzHpux_MaxintPatch, 0 },
6219 { zHpux_SystimeName, zHpux_SystimeList,
6220 apzHpux_SystimeMachs,
6221 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6222 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
6224 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
6225 apzInt_Abort_Free_And_ExitMachs,
6226 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6227 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
6229 { zIo_Quotes_DefName, zIo_Quotes_DefList,
6230 apzIo_Quotes_DefMachs,
6231 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6232 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
6234 { zIo_Quotes_UseName, zIo_Quotes_UseList,
6235 apzIo_Quotes_UseMachs,
6236 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6237 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
6239 { zIp_Missing_SemiName, zIp_Missing_SemiList,
6240 apzIp_Missing_SemiMachs,
6241 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
6242 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
6244 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
6245 apzIrix_Asm_ApostropheMachs,
6246 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6247 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
6249 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
6250 apzIrix_Limits_ConstMachs,
6251 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6252 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
6254 { zIrix___RestrictName, zIrix___RestrictList,
6255 apzIrix___RestrictMachs,
6256 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6257 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
6259 { zIrix_Socklen_TName, zIrix_Socklen_TList,
6260 apzIrix_Socklen_TMachs,
6261 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6262 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
6264 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
6265 apzIrix_Stdio_Va_ListMachs,
6266 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6267 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
6269 { zIrix_WcsftimeName, zIrix_WcsftimeList,
6270 apzIrix_WcsftimeMachs,
6271 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6272 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
6274 { zIsc_FmodName, zIsc_FmodList,
6276 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6277 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
6279 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
6280 apzIsc_Omits_With_StdcMachs,
6281 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6282 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
6284 { zKandr_ConcatName, zKandr_ConcatList,
6285 apzKandr_ConcatMachs,
6286 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6287 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
6289 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
6290 apzLibc1_G_Va_ListMachs,
6291 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6292 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
6294 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
6295 apzLibc1_Ifdefd_MemxMachs,
6296 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6297 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
6299 { zLimits_IfndefsName, zLimits_IfndefsList,
6300 apzLimits_IfndefsMachs,
6301 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6302 aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 },
6304 { zLynx_Void_IntName, zLynx_Void_IntList,
6305 apzLynx_Void_IntMachs,
6306 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6307 aLynx_Void_IntTests, apzLynx_Void_IntPatch, 0 },
6309 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
6310 apzLynxos_Fcntl_ProtoMachs,
6311 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6312 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch, 0 },
6314 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
6315 apzMachine_Ansi_H_Va_ListMachs,
6316 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6317 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
6319 { zMachine_NameName, zMachine_NameList,
6320 apzMachine_NameMachs,
6321 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6322 aMachine_NameTests, apzMachine_NamePatch, 0 },
6324 { zMath_ExceptionName, zMath_ExceptionList,
6325 apzMath_ExceptionMachs,
6326 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6327 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
6329 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
6330 apzMath_Huge_Val_From_Dbl_MaxMachs,
6331 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
6332 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
6334 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
6335 apzMath_Huge_Val_IfndefMachs,
6336 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6337 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch, 0 },
6339 { zNested_Auth_DesName, zNested_Auth_DesList,
6340 apzNested_Auth_DesMachs,
6341 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6342 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
6344 { zNested_MotorolaName, zNested_MotorolaList,
6345 apzNested_MotorolaMachs,
6346 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
6347 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
6349 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
6350 apzNested_Sys_LimitsMachs,
6351 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
6352 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
6354 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
6355 apzNetbsd_Extra_SemicolonMachs,
6356 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6357 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
6359 { zNext_Math_PrefixName, zNext_Math_PrefixList,
6360 apzNext_Math_PrefixMachs,
6361 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6362 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
6364 { zNext_TemplateName, zNext_TemplateList,
6365 apzNext_TemplateMachs,
6366 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6367 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
6369 { zNext_VolitileName, zNext_VolitileList,
6370 apzNext_VolitileMachs,
6371 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6372 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
6374 { zNext_Wait_UnionName, zNext_Wait_UnionList,
6375 apzNext_Wait_UnionMachs,
6376 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6377 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
6379 { zNodeent_SyntaxName, zNodeent_SyntaxList,
6380 apzNodeent_SyntaxMachs,
6381 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6382 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
6384 { zOsf_Namespace_AName, zOsf_Namespace_AList,
6385 apzOsf_Namespace_AMachs,
6386 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6387 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
6389 { zOsf_Namespace_CName, zOsf_Namespace_CList,
6390 apzOsf_Namespace_CMachs,
6391 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6392 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
6394 { zPthread_Page_SizeName, zPthread_Page_SizeList,
6395 apzPthread_Page_SizeMachs,
6396 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6397 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
6399 { zRead_Ret_TypeName, zRead_Ret_TypeList,
6400 apzRead_Ret_TypeMachs,
6401 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6402 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
6404 { zRs6000_DoubleName, zRs6000_DoubleList,
6405 apzRs6000_DoubleMachs,
6406 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6407 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
6409 { zRs6000_FchmodName, zRs6000_FchmodList,
6410 apzRs6000_FchmodMachs,
6411 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6412 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
6414 { zRs6000_ParamName, zRs6000_ParamList,
6415 apzRs6000_ParamMachs,
6416 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6417 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
6419 { zSco_Static_FuncName, zSco_Static_FuncList,
6420 apzSco_Static_FuncMachs,
6421 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
6422 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
6424 { zSco_UtimeName, zSco_UtimeList,
6426 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6427 aSco_UtimeTests, apzSco_UtimePatch, 0 },
6429 { zSolaris_Mutex_InitName, zSolaris_Mutex_InitList,
6430 apzSolaris_Mutex_InitMachs,
6431 SOLARIS_MUTEX_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6432 aSolaris_Mutex_InitTests, apzSolaris_Mutex_InitPatch, 0 },
6434 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
6435 apzSolaris_Stdio_TagMachs,
6436 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
6437 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
6439 { zSolaris_WidecName, zSolaris_WidecList,
6440 apzSolaris_WidecMachs,
6441 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6442 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
6444 { zStatsswtchName, zStatsswtchList,
6446 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6447 aStatsswtchTests, apzStatsswtchPatch, 0 },
6449 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
6450 apzStdio_Stdarg_HMachs,
6451 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6452 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
6454 { zStdio_Va_ListName, zStdio_Va_ListList,
6455 apzStdio_Va_ListMachs,
6456 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
6457 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
6459 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
6460 apzStrict_Ansi_NotMachs,
6461 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6462 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
6464 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
6465 apzStrict_Ansi_Not_CtdMachs,
6466 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6467 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
6469 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
6470 apzStrict_Ansi_OnlyMachs,
6471 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6472 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
6474 { zStruct_FileName, zStruct_FileList,
6475 apzStruct_FileMachs,
6476 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6477 aStruct_FileTests, apzStruct_FilePatch, 0 },
6479 { zStruct_SockaddrName, zStruct_SockaddrList,
6480 apzStruct_SockaddrMachs,
6481 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6482 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
6484 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
6485 apzSun_Auth_ProtoMachs,
6486 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6487 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
6489 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
6490 apzSun_Bogus_IfdefMachs,
6491 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6492 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
6494 { zSun_CatmacroName, zSun_CatmacroList,
6495 apzSun_CatmacroMachs,
6496 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6497 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
6499 { zSun_MallocName, zSun_MallocList,
6501 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
6502 aSun_MallocTests, apzSun_MallocPatch, 0 },
6504 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
6505 apzSun_Rusers_SemiMachs,
6506 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
6507 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
6509 { zSun_SignalName, zSun_SignalList,
6511 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6512 aSun_SignalTests, apzSun_SignalPatch, 0 },
6514 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
6515 apzSunos_Matherr_DeclMachs,
6516 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6517 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch, 0 },
6519 { zSunos_StrlenName, zSunos_StrlenList,
6520 apzSunos_StrlenMachs,
6521 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6522 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
6524 { zSvr4__PName, zSvr4__PList,
6526 SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6527 aSvr4__PTests, apzSvr4__PPatch, 0 },
6529 { zSvr4_GetcwdName, zSvr4_GetcwdList,
6530 apzSvr4_GetcwdMachs,
6531 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6532 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
6534 { zSvr4_ProfilName, zSvr4_ProfilList,
6535 apzSvr4_ProfilMachs,
6536 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6537 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
6539 { zSysv68_StringName, zSysv68_StringList,
6540 apzSysv68_StringMachs,
6541 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
6542 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
6544 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
6545 apzSysz_Stdlib_For_SunMachs,
6546 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6547 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
6549 { zThread_KeywordName, zThread_KeywordList,
6550 apzThread_KeywordMachs,
6551 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6552 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
6554 { zTinfo_CplusplusName, zTinfo_CplusplusList,
6555 apzTinfo_CplusplusMachs,
6556 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6557 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
6559 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
6560 apzUltrix_Atexit_ParamMachs,
6561 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6562 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
6564 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
6565 apzUltrix_Atof_ParamMachs,
6566 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6567 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
6569 { zUltrix_ConstName, zUltrix_ConstList,
6570 apzUltrix_ConstMachs,
6571 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6572 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
6574 { zUltrix_Const2Name, zUltrix_Const2List,
6575 apzUltrix_Const2Machs,
6576 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6577 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
6579 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
6580 apzUltrix_Fix_FixprotoMachs,
6581 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6582 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
6584 { zUltrix_IfdefName, zUltrix_IfdefList,
6585 apzUltrix_IfdefMachs,
6586 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6587 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
6589 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
6590 apzUltrix_Math_IfdefMachs,
6591 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6592 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
6594 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
6595 apzUltrix_Nested_IoctlMachs,
6596 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
6597 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
6599 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
6600 apzUltrix_Nested_SvcMachs,
6601 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
6602 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
6604 { zUltrix_StatName, zUltrix_StatList,
6605 apzUltrix_StatMachs,
6606 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
6607 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
6609 { zUltrix_StaticName, zUltrix_StaticList,
6610 apzUltrix_StaticMachs,
6611 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
6612 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
6614 { zUltrix_StringsName, zUltrix_StringsList,
6615 apzUltrix_StringsMachs,
6616 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6617 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
6619 { zUndefine_NullName, zUndefine_NullList,
6620 apzUndefine_NullMachs,
6621 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6622 aUndefine_NullTests, apzUndefine_NullPatch, 0 },
6624 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
6625 apzUnicosmk_RestrictMachs,
6626 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6627 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
6629 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
6630 apzUw7_Byteorder_FixMachs,
6631 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6632 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
6634 { zVa_I960_MacroName, zVa_I960_MacroList,
6635 apzVa_I960_MacroMachs,
6636 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6637 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
6639 { zVoid_NullName, zVoid_NullList,
6641 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6642 aVoid_NullTests, apzVoid_NullPatch, 0 },
6644 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
6645 apzVxworks_Gcc_ProblemMachs,
6646 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
6647 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
6649 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
6650 apzVxworks_Needs_VxtypesMachs,
6651 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6652 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
6654 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
6655 apzVxworks_Needs_VxworksMachs,
6656 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
6657 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
6659 { zVxworks_TimeName, zVxworks_TimeList,
6660 apzVxworks_TimeMachs,
6661 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6662 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
6664 { zWindiss_Math1Name, zWindiss_Math1List,
6665 apzWindiss_Math1Machs,
6666 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
6667 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
6669 { zWindiss_Math2Name, zWindiss_Math2List,
6670 apzWindiss_Math2Machs,
6671 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
6672 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
6674 { zWindiss_ValistName, zWindiss_ValistList,
6675 apzWindiss_ValistMachs,
6676 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
6677 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
6679 { zX11_ClassName, zX11_ClassList,
6681 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6682 aX11_ClassTests, apzX11_ClassPatch, 0 },
6684 { zX11_Class_UsageName, zX11_Class_UsageList,
6685 apzX11_Class_UsageMachs,
6686 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6687 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
6689 { zX11_NewName, zX11_NewList,
6691 X11_NEW_TEST_CT, FD_MACH_ONLY,
6692 aX11_NewTests, apzX11_NewPatch, 0 },
6694 { zX11_SprintfName, zX11_SprintfList,
6695 apzX11_SprintfMachs,
6696 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6697 aX11_SprintfTests, apzX11_SprintfPatch, 0 }