1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Saturday November 13, 2004 at 08:30:08 PM UTC
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT CVS-MERGE THIS FILE, EITHER Sat Nov 13 20:30:09 UTC 2004
11 * You must regenerate it. Use the ./genfixes script.
14 * This is part of the fixincl program used to install modified versions of
15 * certain ANSI-incompatible system header files which are fixed to work
16 * correctly with ANSI C and placed in a directory that GNU C will search.
18 * This file contains 176 fixup descriptions.
20 * See README for more information.
22 * inclhack copyright (c) 1998, 1999, 2000, 2001
23 * The Free Software Foundation, Inc.
25 * inclhack is free software.
27 * You may redistribute it and/or modify it under the terms of the
28 * GNU General Public License, as published by the Free Software
29 * Foundation; either version 2, or (at your option) any later version.
31 * inclhack is distributed in the hope that it will be useful,
32 * but WITHOUT ANY WARRANTY; without even the implied warranty of
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34 * See the GNU General Public License for more details.
36 * You should have received a copy of the GNU General Public License
37 * along with inclhack. See the file "COPYING". If not,
38 * write to: The Free Software Foundation, Inc.,
39 * 59 Temple Place - Suite 330,
40 * Boston, MA 02111-1307, USA.
43 /* * * * * * * * * * * * * * * * * * * * * * * * * *
45 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
47 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
48 "AAB_fd_zero_asm_posix_types_h";
51 * File name selection pattern
53 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
54 "|asm/posix_types.h|";
56 * Machine/OS name selection pattern
58 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
59 "i[34567]86-*-linux*",
63 * content bypass pattern - skip fix if pattern found
65 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
68 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1
69 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
70 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
73 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
75 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
76 "/* This file fixes a bug in the __FD_ZERO macro\n\
77 for older versions of the Linux kernel. */\n\
78 #ifndef _POSIX_TYPES_H_WRAPPER\n\
79 #include <features.h>\n\
80 #include_next <asm/posix_types.h>\n\n\
81 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
83 #define __FD_ZERO(fdsetp) \\\n\
86 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
87 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
88 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
89 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
92 #define _POSIX_TYPES_H_WRAPPER\n\
93 #endif /* _POSIX_TYPES_H_WRAPPER */",
96 /* * * * * * * * * * * * * * * * * * * * * * * * * *
98 * Description of Aab_Fd_Zero_Gnu_Types_H fix
100 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
101 "AAB_fd_zero_gnu_types_h";
104 * File name selection pattern
106 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
109 * Machine/OS name selection pattern
111 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
112 "i[34567]86-*-linux*",
114 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
115 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
118 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
120 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
121 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
122 #ifndef _TYPES_H_WRAPPER\n\
123 #include <features.h>\n\
124 #include_next <gnu/types.h>\n\n\
125 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
127 # define __FD_ZERO(fdsetp) \\\\\n\
129 int __d0, __d1; \\\\\n\
130 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\\\n\
131 \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
132 \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\\\n\
133 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\\\n\
136 #define _TYPES_H_WRAPPER\n\
137 #endif /* _TYPES_H_WRAPPER */",
140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
142 * Description of Aab_Fd_Zero_Selectbits_H fix
144 tSCC zAab_Fd_Zero_Selectbits_HName[] =
145 "AAB_fd_zero_selectbits_h";
148 * File name selection pattern
150 tSCC zAab_Fd_Zero_Selectbits_HList[] =
153 * Machine/OS name selection pattern
155 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
156 "i[34567]86-*-linux*",
158 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
159 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
162 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
164 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
165 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
166 #ifndef _SELECTBITS_H_WRAPPER\n\
167 #include <features.h>\n\
168 #include_next <selectbits.h>\n\n\
169 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
170 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
171 && __GLIBC_MINOR__ == 0\n\
173 #define __FD_ZERO(fdsetp) \\\\\n\
175 int __d0, __d1; \\\\\n\
176 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
177 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
178 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
179 / sizeof (__fd_mask)), \\\\\n\
180 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
181 : \"memory\"); \\\\\n\
184 #define _SELECTBITS_H_WRAPPER\n\
185 #endif /* _SELECTBITS_H_WRAPPER */",
188 /* * * * * * * * * * * * * * * * * * * * * * * * * *
190 * Description of Aab_Solaris_Sys_Varargs_H fix
192 tSCC zAab_Solaris_Sys_Varargs_HName[] =
193 "AAB_solaris_sys_varargs_h";
196 * File name selection pattern
198 tSCC zAab_Solaris_Sys_Varargs_HList[] =
201 * Machine/OS name selection pattern
203 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
206 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
207 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
210 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
212 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
214 #include <stdarg.h>\n\
216 #include <varargs.h>\n\
220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
222 * Description of Aab_Sun_Memcpy fix
224 tSCC zAab_Sun_MemcpyName[] =
228 * File name selection pattern
230 tSCC zAab_Sun_MemcpyList[] =
233 * Machine/OS name selection pattern
235 #define apzAab_Sun_MemcpyMachs (const char**)NULL
238 * content selection pattern - do fix if pattern found
240 tSCC zAab_Sun_MemcpySelect0[] =
241 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
243 #define AAB_SUN_MEMCPY_TEST_CT 1
244 static tTestDesc aAab_Sun_MemcpyTests[] = {
245 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
248 * Fix Command Arguments for Aab_Sun_Memcpy
250 static const char* apzAab_Sun_MemcpyPatch[] = {
251 "/* This file was generated by fixincludes */\n\
252 #ifndef __memory_h__\n\
253 #define __memory_h__\n\n\
255 extern void *memccpy();\n\
256 extern void *memchr();\n\
257 extern void *memcpy();\n\
258 extern void *memset();\n\
260 extern char *memccpy();\n\
261 extern char *memchr();\n\
262 extern char *memcpy();\n\
263 extern char *memset();\n\
264 #endif /* __STDC__ */\n\n\
265 extern int memcmp();\n\n\
266 #endif /* __memory_h__ */\n\
270 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
271 * stdarg.h or varargs.h files as appropriate.\n\
275 hackname = AAB_svr4_no_varargs;\n\
276 files = sys/varargs.h;\n\
277 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
278 \"#ifndef _SYS_VARARGS_H\\n\"\n\
279 \"#define _SYS_VARARGS_H\\n\\n\"\n\n\
280 \"#ifdef __STDC__\\n\"\n\
281 \"#include <stdarg.h>\\n\"\n\
283 \"#include <varargs.h>\\n\"\n\
284 \"#endif\\n\\n\"\n\n\
285 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
289 * Completely replace <sys/byteorder.h> with a file that implements gcc's\n\
290 * optimized byteswapping. (The original probably implemented some\n\
291 * incompatible optimized byteswapping.)\n\
294 hackname = AAB_svr4_replace_byteorder;\n\
295 mach = \"*-*-sysv4*\";\n\
296 mach = \"i[34567]86-*-sysv5*\";\n\
297 mach = \"i[34567]86-*-sco3.2v5*\";\n\
298 mach = \"i[34567]86-*-udk*\";\n\
299 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
300 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
301 mach = \"sparc-*-solaris2.[0-4]\";\n\
302 mach = \"i[34567]86-sequent-ptx*\";\n\
303 files = sys/byteorder.h;\n\
304 replace = <<- _EndOfHeader_\n\
305 #ifndef _SYS_BYTEORDER_H\n\
306 #define _SYS_BYTEORDER_H\n\n\
307 /* Functions to convert `short' and `long' quantities from host byte order\n\
308 to (internet) network byte order (i.e. big-endian).\n\n\
309 Written by Ron Guilmette (rfg@ncd.com).\n\n\
310 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
311 For big-endian machines these functions are essentially no-ops.\n\n\
312 For little-endian machines, we define the functions using specialized\n\
313 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
314 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
315 #error You lose! This file is only useful with GNU compilers.\n\
317 #ifndef __BYTE_ORDER__\n\
318 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
319 double underscores added at the front and back. */\n\
320 #define __LITTLE_ENDIAN__ 1234\n\
321 #define __BIG_ENDIAN__ 4321\n\
322 #define __PDP_ENDIAN__ 3412\n\
325 static __inline__ unsigned long htonl (unsigned long);\n\
326 static __inline__ unsigned short htons (unsigned int);\n\
327 static __inline__ unsigned long ntohl (unsigned long);\n\
328 static __inline__ unsigned short ntohs (unsigned int);\n\
329 #endif /* defined (__STDC__) */\n\n\
330 #if defined (__i386__)\n\n\
331 #ifndef __BYTE_ORDER__\n\
332 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
334 /* Convert a host long to a network long. */\n\n\
335 /* We must use a new-style function definition, so that this will also\n\
336 be valid for C++. */\n\
337 static __inline__ unsigned long\n\
338 htonl (unsigned long __arg)\n\
340 register unsigned long __result;\n\n\
341 __asm__ (\"xchg%B0 %b0,%h0\n\
343 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
346 /* Convert a host short to a network short. */\n\n\
347 static __inline__ unsigned short\n\
348 htons (unsigned int __arg)\n\
350 register unsigned short __result;\n\n\
351 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
354 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
355 #ifndef __BYTE_ORDER__\n\
356 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
358 /* For other little-endian machines, using C code is just as efficient as\n\
359 using assembly code. */\n\n\
360 /* Convert a host long to a network long. */\n\n\
361 static __inline__ unsigned long\n\
362 htonl (unsigned long __arg)\n\
364 register unsigned long __result;\n\n\
365 __result = (__arg >> 24) & 0x000000ff;\n\
366 __result |= (__arg >> 8) & 0x0000ff00;\n\
367 __result |= (__arg << 8) & 0x00ff0000;\n\
368 __result |= (__arg << 24) & 0xff000000;\n\
371 /* Convert a host short to a network short. */\n\n\
372 static __inline__ unsigned short\n\
373 htons (unsigned int __arg)\n\
375 register unsigned short __result;\n\n\
376 __result = (__arg << 8) & 0xff00;\n\
377 __result |= (__arg >> 8) & 0x00ff;\n\
380 #else /* must be a big-endian machine */\n\n\
381 #ifndef __BYTE_ORDER__\n\
382 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
384 /* Convert a host long to a network long. */\n\n\
385 static __inline__ unsigned long\n\
386 htonl (unsigned long __arg)\n\
390 /* Convert a host short to a network short. */\n\n\
391 static __inline__ unsigned short\n\
392 htons (unsigned int __arg)\n\
396 #endif /* big-endian */\n\n\
397 /* Convert a network long to a host long. */\n\n\
398 static __inline__ unsigned long\n\
399 ntohl (unsigned long __arg)\n\
401 return htonl (__arg);\n\
403 /* Convert a network short to a host short. */\n\n\
404 static __inline__ unsigned short\n\
405 ntohs (unsigned int __arg)\n\
407 return htons (__arg);\n\
412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
414 * Description of Aab_Ultrix_Ansi_Compat fix
416 tSCC zAab_Ultrix_Ansi_CompatName[] =
417 "AAB_ultrix_ansi_compat";
420 * File name selection pattern
422 tSCC zAab_Ultrix_Ansi_CompatList[] =
425 * Machine/OS name selection pattern
427 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
430 * content selection pattern - do fix if pattern found
432 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
435 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
436 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
437 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
440 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
442 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
443 "/* This file intentionally left blank. */\n",
446 /* * * * * * * * * * * * * * * * * * * * * * * * * *
448 * Description of Aab_Ultrix_Limits fix
450 tSCC zAab_Ultrix_LimitsName[] =
454 * File name selection pattern
456 tSCC zAab_Ultrix_LimitsList[] =
459 * Machine/OS name selection pattern
461 tSCC* apzAab_Ultrix_LimitsMachs[] = {
464 #define AAB_ULTRIX_LIMITS_TEST_CT 0
465 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
468 * Fix Command Arguments for Aab_Ultrix_Limits
470 static const char* apzAab_Ultrix_LimitsPatch[] = {
471 "#ifndef _LIMITS_INCLUDED\n\
472 #define _LIMITS_INCLUDED\n\
473 #include <sys/limits.h>\n\
474 #endif /* _LIMITS_INCLUDED */",
477 /* * * * * * * * * * * * * * * * * * * * * * * * * *
479 * Description of Aab_Ultrix_Memory fix
481 tSCC zAab_Ultrix_MemoryName[] =
485 * File name selection pattern
487 tSCC zAab_Ultrix_MemoryList[] =
490 * Machine/OS name selection pattern
492 tSCC* apzAab_Ultrix_MemoryMachs[] = {
495 #define AAB_ULTRIX_MEMORY_TEST_CT 0
496 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
499 * Fix Command Arguments for Aab_Ultrix_Memory
501 static const char* apzAab_Ultrix_MemoryPatch[] = {
502 "#ifndef _MEMORY_INCLUDED\n\
503 #define _MEMORY_INCLUDED\n\
504 #include <strings.h>\n\
505 #endif /* _MEMORY_INCLUDED */",
508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
510 * Description of Aab_Ultrix_String fix
512 tSCC zAab_Ultrix_StringName[] =
516 * File name selection pattern
518 tSCC zAab_Ultrix_StringList[] =
521 * Machine/OS name selection pattern
523 tSCC* apzAab_Ultrix_StringMachs[] = {
526 #define AAB_ULTRIX_STRING_TEST_CT 0
527 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
530 * Fix Command Arguments for Aab_Ultrix_String
532 static const char* apzAab_Ultrix_StringPatch[] = {
533 "#ifndef _STRING_INCLUDED\n\
534 #define _STRING_INCLUDED\n\
535 #include <strings.h>\n\
536 #endif /* _STRING_INCLUDED */",
539 /* * * * * * * * * * * * * * * * * * * * * * * * * *
541 * Description of Aix_Pthread fix
543 tSCC zAix_PthreadName[] =
547 * File name selection pattern
549 tSCC zAix_PthreadList[] =
552 * Machine/OS name selection pattern
554 #define apzAix_PthreadMachs (const char**)NULL
557 * content selection pattern - do fix if pattern found
559 tSCC zAix_PthreadSelect0[] =
560 "(#define [A-Za-z_0-9]+)(\\\\\n\
564 #define AIX_PTHREAD_TEST_CT 1
565 static tTestDesc aAix_PthreadTests[] = {
566 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
569 * Fix Command Arguments for Aix_Pthread
571 static const char* apzAix_PthreadPatch[] = {
576 /* * * * * * * * * * * * * * * * * * * * * * * * * *
578 * Description of Aix_Sysmachine fix
580 tSCC zAix_SysmachineName[] =
584 * File name selection pattern
586 tSCC zAix_SysmachineList[] =
589 * Machine/OS name selection pattern
591 #define apzAix_SysmachineMachs (const char**)NULL
594 * content selection pattern - do fix if pattern found
596 tSCC zAix_SysmachineSelect0[] =
599 #define AIX_SYSMACHINE_TEST_CT 1
600 static tTestDesc aAix_SysmachineTests[] = {
601 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
604 * Fix Command Arguments for Aix_Sysmachine
606 static const char* apzAix_SysmachinePatch[] = {
611 /* * * * * * * * * * * * * * * * * * * * * * * * * *
613 * Description of Aix_Syswait fix
615 tSCC zAix_SyswaitName[] =
619 * File name selection pattern
621 tSCC zAix_SyswaitList[] =
624 * Machine/OS name selection pattern
626 #define apzAix_SyswaitMachs (const char**)NULL
629 * content selection pattern - do fix if pattern found
631 tSCC zAix_SyswaitSelect0[] =
632 "^extern pid_t wait3\\(\\);\n";
633 tSCC zAix_SyswaitSelect1[] =
636 #define AIX_SYSWAIT_TEST_CT 2
637 static tTestDesc aAix_SyswaitTests[] = {
638 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
639 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
642 * Fix Command Arguments for Aix_Syswait
644 static const char* apzAix_SyswaitPatch[] = {
650 /* * * * * * * * * * * * * * * * * * * * * * * * * *
652 * Description of Aix_Syswait_2 fix
654 tSCC zAix_Syswait_2Name[] =
658 * File name selection pattern
660 tSCC zAix_Syswait_2List[] =
663 * Machine/OS name selection pattern
665 #define apzAix_Syswait_2Machs (const char**)NULL
668 * content selection pattern - do fix if pattern found
670 tSCC zAix_Syswait_2Select0[] =
671 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
673 #define AIX_SYSWAIT_2_TEST_CT 1
674 static tTestDesc aAix_Syswait_2Tests[] = {
675 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
678 * Fix Command Arguments for Aix_Syswait_2
680 static const char* apzAix_Syswait_2Patch[] = {
685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
687 * Description of Aix_Volatile fix
689 tSCC zAix_VolatileName[] =
693 * File name selection pattern
695 tSCC zAix_VolatileList[] =
698 * Machine/OS name selection pattern
700 #define apzAix_VolatileMachs (const char**)NULL
703 * content selection pattern - do fix if pattern found
705 tSCC zAix_VolatileSelect0[] =
706 "typedef volatile int sig_atomic_t";
708 #define AIX_VOLATILE_TEST_CT 1
709 static tTestDesc aAix_VolatileTests[] = {
710 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
713 * Fix Command Arguments for Aix_Volatile
715 static const char* apzAix_VolatilePatch[] = {
717 "typedef int sig_atomic_t",
720 /* * * * * * * * * * * * * * * * * * * * * * * * * *
722 * Description of Alpha___Assert fix
724 tSCC zAlpha___AssertName[] =
728 * File name selection pattern
730 tSCC zAlpha___AssertList[] =
733 * Machine/OS name selection pattern
735 #define apzAlpha___AssertMachs (const char**)NULL
738 * content selection pattern - do fix if pattern found
740 tSCC zAlpha___AssertSelect0[] =
741 "__assert\\(char \\*, char \\*, int\\)";
743 #define ALPHA___ASSERT_TEST_CT 1
744 static tTestDesc aAlpha___AssertTests[] = {
745 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
748 * Fix Command Arguments for Alpha___Assert
750 static const char* apzAlpha___AssertPatch[] = {
752 "__assert(const char *, const char *, int)",
755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
757 * Description of Alpha___Extern_Prefix fix
759 tSCC zAlpha___Extern_PrefixName[] =
760 "alpha___extern_prefix";
763 * File name selection pattern
765 #define zAlpha___Extern_PrefixList (char*)NULL
767 * Machine/OS name selection pattern
769 tSCC* apzAlpha___Extern_PrefixMachs[] = {
774 * content selection pattern - do fix if pattern found
776 tSCC zAlpha___Extern_PrefixSelect0[] =
777 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
778 (#[ \t]*pragma[ \t]*extern_prefix.*)";
780 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
781 static tTestDesc aAlpha___Extern_PrefixTests[] = {
782 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
785 * Fix Command Arguments for Alpha___Extern_Prefix
787 static const char* apzAlpha___Extern_PrefixPatch[] = {
789 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
793 /* * * * * * * * * * * * * * * * * * * * * * * * * *
795 * Description of Alpha___Extern_Prefix_Standards fix
797 tSCC zAlpha___Extern_Prefix_StandardsName[] =
798 "alpha___extern_prefix_standards";
801 * File name selection pattern
803 tSCC zAlpha___Extern_Prefix_StandardsList[] =
806 * Machine/OS name selection pattern
808 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
813 * content selection pattern - do fix if pattern found
815 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
816 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
818 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
819 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
820 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
823 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
825 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
827 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
830 /* * * * * * * * * * * * * * * * * * * * * * * * * *
832 * Description of Alpha___Extern_Prefix_Sys_Stat fix
834 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
835 "alpha___extern_prefix_sys_stat";
838 * File name selection pattern
840 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
841 "|sys/stat.h|sys/mount.h|";
843 * Machine/OS name selection pattern
845 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
850 * content selection pattern - do fix if pattern found
852 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
853 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
855 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
856 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
857 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
860 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
862 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
864 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
869 * Description of Alpha_Assert fix
871 tSCC zAlpha_AssertName[] =
875 * File name selection pattern
877 tSCC zAlpha_AssertList[] =
880 * Machine/OS name selection pattern
882 #define apzAlpha_AssertMachs (const char**)NULL
885 * content selection pattern - do fix if pattern found
887 tSCC zAlpha_AssertSelect0[] =
888 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
890 #define ALPHA_ASSERT_TEST_CT 1
891 static tTestDesc aAlpha_AssertTests[] = {
892 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
895 * Fix Command Arguments for Alpha_Assert
897 static const char* apzAlpha_AssertPatch[] = {
902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
904 * Description of Alpha_Bad_Lval fix
906 tSCC zAlpha_Bad_LvalName[] =
910 * File name selection pattern
912 #define zAlpha_Bad_LvalList (char*)NULL
914 * Machine/OS name selection pattern
916 tSCC* apzAlpha_Bad_LvalMachs[] = {
921 * content selection pattern - do fix if pattern found
923 tSCC zAlpha_Bad_LvalSelect0[] =
924 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
926 #define ALPHA_BAD_LVAL_TEST_CT 1
927 static tTestDesc aAlpha_Bad_LvalTests[] = {
928 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
931 * Fix Command Arguments for Alpha_Bad_Lval
933 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
934 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
939 * Description of Alpha_Getopt fix
941 tSCC zAlpha_GetoptName[] =
945 * File name selection pattern
947 tSCC zAlpha_GetoptList[] =
948 "|stdio.h|stdlib.h|";
950 * Machine/OS name selection pattern
952 #define apzAlpha_GetoptMachs (const char**)NULL
955 * content selection pattern - do fix if pattern found
957 tSCC zAlpha_GetoptSelect0[] =
958 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
960 #define ALPHA_GETOPT_TEST_CT 1
961 static tTestDesc aAlpha_GetoptTests[] = {
962 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
965 * Fix Command Arguments for Alpha_Getopt
967 static const char* apzAlpha_GetoptPatch[] = {
969 "getopt(int, char *const[], const char *)",
972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
974 * Description of Alpha_Parens fix
976 tSCC zAlpha_ParensName[] =
980 * File name selection pattern
982 tSCC zAlpha_ParensList[] =
985 * Machine/OS name selection pattern
987 #define apzAlpha_ParensMachs (const char**)NULL
990 * content selection pattern - do fix if pattern found
992 tSCC zAlpha_ParensSelect0[] =
993 "#ifndef\\(__mips64\\)";
995 #define ALPHA_PARENS_TEST_CT 1
996 static tTestDesc aAlpha_ParensTests[] = {
997 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1000 * Fix Command Arguments for Alpha_Parens
1002 static const char* apzAlpha_ParensPatch[] = {
1007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1009 * Description of Alpha_Pthread fix
1011 tSCC zAlpha_PthreadName[] =
1015 * File name selection pattern
1017 tSCC zAlpha_PthreadList[] =
1020 * Machine/OS name selection pattern
1022 tSCC* apzAlpha_PthreadMachs[] = {
1024 (const char*)NULL };
1027 * content selection pattern - do fix if pattern found
1029 tSCC zAlpha_PthreadSelect0[] =
1030 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1031 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1033 #define ALPHA_PTHREAD_TEST_CT 1
1034 static tTestDesc aAlpha_PthreadTests[] = {
1035 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1038 * Fix Command Arguments for Alpha_Pthread
1040 static const char* apzAlpha_PthreadPatch[] = {
1042 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1048 * Description of Alpha_Pthread_Gcc fix
1050 tSCC zAlpha_Pthread_GccName[] =
1051 "alpha_pthread_gcc";
1054 * File name selection pattern
1056 tSCC zAlpha_Pthread_GccList[] =
1059 * Machine/OS name selection pattern
1061 tSCC* apzAlpha_Pthread_GccMachs[] = {
1063 (const char*)NULL };
1066 * content selection pattern - do fix if pattern found
1068 tSCC zAlpha_Pthread_GccSelect0[] =
1070 # error <pthread.h>: unrecognized compiler.";
1072 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1073 static tTestDesc aAlpha_Pthread_GccTests[] = {
1074 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1077 * Fix Command Arguments for Alpha_Pthread_Gcc
1079 static const char* apzAlpha_Pthread_GccPatch[] = {
1081 "#elif defined (__GNUC__)\n\
1082 # define _PTHREAD_ENV_GCC\n\
1086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1088 * Description of Alpha_Sbrk fix
1090 tSCC zAlpha_SbrkName[] =
1094 * File name selection pattern
1096 tSCC zAlpha_SbrkList[] =
1099 * Machine/OS name selection pattern
1101 #define apzAlpha_SbrkMachs (const char**)NULL
1104 * content selection pattern - do fix if pattern found
1106 tSCC zAlpha_SbrkSelect0[] =
1107 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1109 #define ALPHA_SBRK_TEST_CT 1
1110 static tTestDesc aAlpha_SbrkTests[] = {
1111 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1114 * Fix Command Arguments for Alpha_Sbrk
1116 static const char* apzAlpha_SbrkPatch[] = {
1121 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1123 * Description of Alpha_Wchar fix
1125 tSCC zAlpha_WcharName[] =
1129 * File name selection pattern
1131 tSCC zAlpha_WcharList[] =
1134 * Machine/OS name selection pattern
1136 tSCC* apzAlpha_WcharMachs[] = {
1138 (const char*)NULL };
1141 * content selection pattern - do fix if pattern found
1143 tSCC zAlpha_WcharSelect0[] =
1144 "#define wcstok wcstok_r";
1146 #define ALPHA_WCHAR_TEST_CT 1
1147 static tTestDesc aAlpha_WcharTests[] = {
1148 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1151 * Fix Command Arguments for Alpha_Wchar
1153 static const char* apzAlpha_WcharPatch[] = { "sed",
1154 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1155 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1160 * Description of Avoid_Bool_Define fix
1162 tSCC zAvoid_Bool_DefineName[] =
1163 "avoid_bool_define";
1166 * File name selection pattern
1168 tSCC zAvoid_Bool_DefineList[] =
1169 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1171 * Machine/OS name selection pattern
1173 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1176 * content selection pattern - do fix if pattern found
1178 tSCC zAvoid_Bool_DefineSelect0[] =
1179 "#[ \t]*define[ \t]+bool[ \t]";
1182 * content bypass pattern - skip fix if pattern found
1184 tSCC zAvoid_Bool_DefineBypass0[] =
1187 #define AVOID_BOOL_DEFINE_TEST_CT 2
1188 static tTestDesc aAvoid_Bool_DefineTests[] = {
1189 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1190 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1193 * Fix Command Arguments for Avoid_Bool_Define
1195 static const char* apzAvoid_Bool_DefinePatch[] = {
1197 "#ifndef __cplusplus\n\
1200 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1205 * Description of Avoid_Bool_Type fix
1207 tSCC zAvoid_Bool_TypeName[] =
1211 * File name selection pattern
1213 tSCC zAvoid_Bool_TypeList[] =
1214 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1216 * Machine/OS name selection pattern
1218 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1221 * content selection pattern - do fix if pattern found
1223 tSCC zAvoid_Bool_TypeSelect0[] =
1224 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1227 * content bypass pattern - skip fix if pattern found
1229 tSCC zAvoid_Bool_TypeBypass0[] =
1232 #define AVOID_BOOL_TYPE_TEST_CT 2
1233 static tTestDesc aAvoid_Bool_TypeTests[] = {
1234 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1235 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1238 * Fix Command Arguments for Avoid_Bool_Type
1240 static const char* apzAvoid_Bool_TypePatch[] = {
1242 "#ifndef __cplusplus\n\
1247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1249 * Description of Avoid_Wchar_T_Type fix
1251 tSCC zAvoid_Wchar_T_TypeName[] =
1252 "avoid_wchar_t_type";
1255 * File name selection pattern
1257 #define zAvoid_Wchar_T_TypeList (char*)NULL
1259 * Machine/OS name selection pattern
1261 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1264 * content selection pattern - do fix if pattern found
1266 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1267 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1270 * content bypass pattern - skip fix if pattern found
1272 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1274 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1276 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1277 "XFree86: xc/lib/X11/Xlib\\.h";
1279 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1280 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1281 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1282 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1283 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1284 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1287 * Fix Command Arguments for Avoid_Wchar_T_Type
1289 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1291 "#ifndef __cplusplus\n\
1296 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1298 * Description of Bad_Struct_Term fix
1300 tSCC zBad_Struct_TermName[] =
1304 * File name selection pattern
1306 tSCC zBad_Struct_TermList[] =
1309 * Machine/OS name selection pattern
1311 #define apzBad_Struct_TermMachs (const char**)NULL
1314 * content selection pattern - do fix if pattern found
1316 tSCC zBad_Struct_TermSelect0[] =
1317 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1319 #define BAD_STRUCT_TERM_TEST_CT 1
1320 static tTestDesc aBad_Struct_TermTests[] = {
1321 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1324 * Fix Command Arguments for Bad_Struct_Term
1326 static const char* apzBad_Struct_TermPatch[] = {
1331 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1333 * Description of Badquote fix
1335 tSCC zBadquoteName[] =
1339 * File name selection pattern
1341 tSCC zBadquoteList[] =
1342 "|sundev/vuid_event.h|";
1344 * Machine/OS name selection pattern
1346 #define apzBadquoteMachs (const char**)NULL
1349 * content selection pattern - do fix if pattern found
1351 tSCC zBadquoteSelect0[] =
1354 #define BADQUOTE_TEST_CT 1
1355 static tTestDesc aBadquoteTests[] = {
1356 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1359 * Fix Command Arguments for Badquote
1361 static const char* apzBadquotePatch[] = {
1366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1368 * Description of Broken_Assert_Stdio fix
1370 tSCC zBroken_Assert_StdioName[] =
1371 "broken_assert_stdio";
1374 * File name selection pattern
1376 tSCC zBroken_Assert_StdioList[] =
1379 * Machine/OS name selection pattern
1381 #define apzBroken_Assert_StdioMachs (const char**)NULL
1384 * content selection pattern - do fix if pattern found
1386 tSCC zBroken_Assert_StdioSelect0[] =
1390 * content bypass pattern - skip fix if pattern found
1392 tSCC zBroken_Assert_StdioBypass0[] =
1393 "include.*stdio\\.h";
1395 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1396 static tTestDesc aBroken_Assert_StdioTests[] = {
1397 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1398 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1401 * Fix Command Arguments for Broken_Assert_Stdio
1403 static const char* apzBroken_Assert_StdioPatch[] = {
1405 "#include <stdio.h>\n",
1408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1410 * Description of Broken_Assert_Stdlib fix
1412 tSCC zBroken_Assert_StdlibName[] =
1413 "broken_assert_stdlib";
1416 * File name selection pattern
1418 tSCC zBroken_Assert_StdlibList[] =
1421 * Machine/OS name selection pattern
1423 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1426 * content selection pattern - do fix if pattern found
1428 tSCC zBroken_Assert_StdlibSelect0[] =
1429 "exit *\\(|abort *\\(";
1432 * content bypass pattern - skip fix if pattern found
1434 tSCC zBroken_Assert_StdlibBypass0[] =
1435 "include.*stdlib\\.h";
1437 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1438 static tTestDesc aBroken_Assert_StdlibTests[] = {
1439 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1440 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1443 * Fix Command Arguments for Broken_Assert_Stdlib
1445 static const char* apzBroken_Assert_StdlibPatch[] = {
1447 "#ifdef __cplusplus\n\
1448 #include <stdlib.h>\n\
1452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1454 * Description of Broken_Cabs fix
1456 tSCC zBroken_CabsName[] =
1460 * File name selection pattern
1462 tSCC zBroken_CabsList[] =
1463 "|math.h|architecture/ppc/math.h|architecture/i386/math.h|";
1465 * Machine/OS name selection pattern
1467 #define apzBroken_CabsMachs (const char**)NULL
1470 * content selection pattern - do fix if pattern found
1472 tSCC zBroken_CabsSelect0[] =
1473 "^extern[ \\t]+double[ \\t]+cabs";
1475 #define BROKEN_CABS_TEST_CT 1
1476 static tTestDesc aBroken_CabsTests[] = {
1477 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1480 * Fix Command Arguments for Broken_Cabs
1482 static const char* apzBroken_CabsPatch[] = {
1485 "^extern[ \t]+double[ \t]+cabs[ \t]*\\([^\\)]*\\);",
1488 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1490 * Description of Bsd_Stdio_Attrs_Conflict fix
1492 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1493 "bsd_stdio_attrs_conflict";
1496 * File name selection pattern
1498 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1501 * Machine/OS name selection pattern
1503 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1506 (const char*)NULL };
1509 * content selection pattern - do fix if pattern found
1511 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1512 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1514 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1515 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1516 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1519 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1521 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1523 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1524 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1525 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1530 * Description of Ctrl_Quotes_Def fix
1532 tSCC zCtrl_Quotes_DefName[] =
1536 * File name selection pattern
1538 #define zCtrl_Quotes_DefList (char*)NULL
1540 * Machine/OS name selection pattern
1542 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1545 * content selection pattern - do fix if pattern found
1547 tSCC zCtrl_Quotes_DefSelect0[] =
1548 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1550 #define CTRL_QUOTES_DEF_TEST_CT 1
1551 static tTestDesc aCtrl_Quotes_DefTests[] = {
1552 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1555 * Fix Command Arguments for Ctrl_Quotes_Def
1557 static const char* apzCtrl_Quotes_DefPatch[] = {
1562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1564 * Description of Ctrl_Quotes_Use fix
1566 tSCC zCtrl_Quotes_UseName[] =
1570 * File name selection pattern
1572 #define zCtrl_Quotes_UseList (char*)NULL
1574 * Machine/OS name selection pattern
1576 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1579 * content selection pattern - do fix if pattern found
1581 tSCC zCtrl_Quotes_UseSelect0[] =
1582 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1584 #define CTRL_QUOTES_USE_TEST_CT 1
1585 static tTestDesc aCtrl_Quotes_UseTests[] = {
1586 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1589 * Fix Command Arguments for Ctrl_Quotes_Use
1591 static const char* apzCtrl_Quotes_UsePatch[] = {
1596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1598 * Description of Cxx_Unready fix
1600 tSCC zCxx_UnreadyName[] =
1604 * File name selection pattern
1606 tSCC zCxx_UnreadyList[] =
1607 "|sys/mman.h|rpc/types.h|";
1609 * Machine/OS name selection pattern
1611 #define apzCxx_UnreadyMachs (const char**)NULL
1614 * content selection pattern - do fix if pattern found
1616 tSCC zCxx_UnreadySelect0[] =
1620 * content bypass pattern - skip fix if pattern found
1622 tSCC zCxx_UnreadyBypass0[] =
1623 "\"C\"|__BEGIN_DECLS";
1625 #define CXX_UNREADY_TEST_CT 2
1626 static tTestDesc aCxx_UnreadyTests[] = {
1627 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1628 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1631 * Fix Command Arguments for Cxx_Unready
1633 static const char* apzCxx_UnreadyPatch[] = {
1635 "#ifdef __cplusplus\n\
1638 "#ifdef __cplusplus\n\
1643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1645 * Description of Darwin_Gcc4_Breakage fix
1647 tSCC zDarwin_Gcc4_BreakageName[] =
1648 "darwin_gcc4_breakage";
1651 * File name selection pattern
1653 tSCC zDarwin_Gcc4_BreakageList[] =
1654 "|AvailabilityMacros.h|";
1656 * Machine/OS name selection pattern
1658 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1660 (const char*)NULL };
1663 * content selection pattern - do fix if pattern found
1665 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1666 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1668 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1669 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1670 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1673 * Fix Command Arguments for Darwin_Gcc4_Breakage
1675 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1677 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1680 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1682 * Description of Darwin_Private_Extern fix
1684 tSCC zDarwin_Private_ExternName[] =
1685 "darwin_private_extern";
1688 * File name selection pattern
1690 tSCC zDarwin_Private_ExternList[] =
1693 * Machine/OS name selection pattern
1695 tSCC* apzDarwin_Private_ExternMachs[] = {
1697 (const char*)NULL };
1700 * content selection pattern - do fix if pattern found
1702 tSCC zDarwin_Private_ExternSelect0[] =
1703 "__private_extern__ [a-z_]+ _dyld_";
1705 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1706 static tTestDesc aDarwin_Private_ExternTests[] = {
1707 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1710 * Fix Command Arguments for Darwin_Private_Extern
1712 static const char* apzDarwin_Private_ExternPatch[] = {
1715 "__private_extern__",
1718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1720 * Description of Dec_Intern_Asm fix
1722 tSCC zDec_Intern_AsmName[] =
1726 * File name selection pattern
1728 tSCC zDec_Intern_AsmList[] =
1731 * Machine/OS name selection pattern
1733 #define apzDec_Intern_AsmMachs (const char**)NULL
1734 #define DEC_INTERN_ASM_TEST_CT 0
1735 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1738 * Fix Command Arguments for Dec_Intern_Asm
1740 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1741 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1743 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1747 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1749 * Description of Djgpp_Wchar_H fix
1751 tSCC zDjgpp_Wchar_HName[] =
1755 * File name selection pattern
1757 #define zDjgpp_Wchar_HList (char*)NULL
1759 * Machine/OS name selection pattern
1761 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1764 * content selection pattern - do fix if pattern found
1766 tSCC zDjgpp_Wchar_HSelect0[] =
1770 * content bypass pattern - skip fix if pattern found
1772 tSCC zDjgpp_Wchar_HBypass0[] =
1775 #define DJGPP_WCHAR_H_TEST_CT 2
1776 static tTestDesc aDjgpp_Wchar_HTests[] = {
1777 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1778 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1781 * Fix Command Arguments for Djgpp_Wchar_H
1783 static const char* apzDjgpp_Wchar_HPatch[] = {
1786 #include <sys/djtypes.h>",
1787 "#include <stddef.h>",
1790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1792 * Description of Ecd_Cursor fix
1794 tSCC zEcd_CursorName[] =
1798 * File name selection pattern
1800 tSCC zEcd_CursorList[] =
1801 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1803 * Machine/OS name selection pattern
1805 #define apzEcd_CursorMachs (const char**)NULL
1808 * content selection pattern - do fix if pattern found
1810 tSCC zEcd_CursorSelect0[] =
1813 #define ECD_CURSOR_TEST_CT 1
1814 static tTestDesc aEcd_CursorTests[] = {
1815 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1818 * Fix Command Arguments for Ecd_Cursor
1820 static const char* apzEcd_CursorPatch[] = {
1825 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1827 * Description of Exception_Structure fix
1829 tSCC zException_StructureName[] =
1830 "exception_structure";
1833 * File name selection pattern
1835 tSCC zException_StructureList[] =
1838 * Machine/OS name selection pattern
1840 #define apzException_StructureMachs (const char**)NULL
1843 * content selection pattern - do fix if pattern found
1845 tSCC zException_StructureSelect0[] =
1849 * content bypass pattern - skip fix if pattern found
1851 tSCC zException_StructureBypass0[] =
1852 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
1854 #define EXCEPTION_STRUCTURE_TEST_CT 2
1855 static tTestDesc aException_StructureTests[] = {
1856 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
1857 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
1860 * Fix Command Arguments for Exception_Structure
1862 static const char* apzException_StructurePatch[] = {
1864 "struct exception;\n",
1867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1869 * Description of Freebsd_Gcc3_Breakage fix
1871 tSCC zFreebsd_Gcc3_BreakageName[] =
1872 "freebsd_gcc3_breakage";
1875 * File name selection pattern
1877 tSCC zFreebsd_Gcc3_BreakageList[] =
1880 * Machine/OS name selection pattern
1882 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1884 (const char*)NULL };
1887 * content selection pattern - do fix if pattern found
1889 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1890 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1893 * content bypass pattern - skip fix if pattern found
1895 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1896 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1898 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1899 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1900 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1901 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1904 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1906 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1908 "%0 || __GNUC__ >= 3",
1911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1913 * Description of Freebsd_Gcc4_Breakage fix
1915 tSCC zFreebsd_Gcc4_BreakageName[] =
1916 "freebsd_gcc4_breakage";
1919 * File name selection pattern
1921 tSCC zFreebsd_Gcc4_BreakageList[] =
1924 * Machine/OS name selection pattern
1926 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
1928 (const char*)NULL };
1931 * content selection pattern - do fix if pattern found
1933 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
1934 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
1936 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
1937 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
1938 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1941 * Fix Command Arguments for Freebsd_Gcc4_Breakage
1943 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
1945 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
1948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1950 * Description of Gnu_Types fix
1952 tSCC zGnu_TypesName[] =
1956 * File name selection pattern
1958 tSCC zGnu_TypesList[] =
1959 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1961 * Machine/OS name selection pattern
1963 #define apzGnu_TypesMachs (const char**)NULL
1966 * content selection pattern - do fix if pattern found
1968 tSCC zGnu_TypesSelect0[] =
1969 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1972 * content bypass pattern - skip fix if pattern found
1974 tSCC zGnu_TypesBypass0[] =
1975 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1977 #define GNU_TYPES_TEST_CT 2
1978 static tTestDesc aGnu_TypesTests[] = {
1979 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
1980 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
1983 * Fix Command Arguments for Gnu_Types
1985 static const char* apzGnu_TypesPatch[] = {
1989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1991 * Description of Hp_Inline fix
1993 tSCC zHp_InlineName[] =
1997 * File name selection pattern
1999 tSCC zHp_InlineList[] =
2000 "|sys/spinlock.h|machine/machparam.h|";
2002 * Machine/OS name selection pattern
2004 #define apzHp_InlineMachs (const char**)NULL
2007 * content selection pattern - do fix if pattern found
2009 tSCC zHp_InlineSelect0[] =
2010 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2012 #define HP_INLINE_TEST_CT 1
2013 static tTestDesc aHp_InlineTests[] = {
2014 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2017 * Fix Command Arguments for Hp_Inline
2019 static const char* apzHp_InlinePatch[] = {
2022 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2027 * Description of Hp_Sysfile fix
2029 tSCC zHp_SysfileName[] =
2033 * File name selection pattern
2035 tSCC zHp_SysfileList[] =
2038 * Machine/OS name selection pattern
2040 #define apzHp_SysfileMachs (const char**)NULL
2043 * content selection pattern - do fix if pattern found
2045 tSCC zHp_SysfileSelect0[] =
2048 #define HP_SYSFILE_TEST_CT 1
2049 static tTestDesc aHp_SysfileTests[] = {
2050 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2053 * Fix Command Arguments for Hp_Sysfile
2055 static const char* apzHp_SysfilePatch[] = {
2057 "(struct file *, ...)",
2061 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2063 * Description of Hpux10_Cpp_Pow_Inline fix
2065 tSCC zHpux10_Cpp_Pow_InlineName[] =
2066 "hpux10_cpp_pow_inline";
2069 * File name selection pattern
2071 tSCC zHpux10_Cpp_Pow_InlineList[] =
2072 "|fixinc-test-limits.h|math.h|";
2074 * Machine/OS name selection pattern
2076 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2079 * content selection pattern - do fix if pattern found
2081 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2082 "^# +ifdef +__cplusplus\n\
2084 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2085 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2087 +extern +\"C\" +\\{\n\
2091 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2092 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2093 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2096 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2098 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2103 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2105 * Description of Hpux11_Cpp_Pow_Inline fix
2107 tSCC zHpux11_Cpp_Pow_InlineName[] =
2108 "hpux11_cpp_pow_inline";
2111 * File name selection pattern
2113 tSCC zHpux11_Cpp_Pow_InlineList[] =
2116 * Machine/OS name selection pattern
2118 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2121 * content selection pattern - do fix if pattern found
2123 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2124 " +inline double pow\\(double d,int expon\\) \\{\n\
2125 +return pow\\(d, \\(double\\)expon\\);\n\
2128 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2129 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2130 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2133 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2135 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2142 * Description of Hpux10_Ctype_Declarations1 fix
2144 tSCC zHpux10_Ctype_Declarations1Name[] =
2145 "hpux10_ctype_declarations1";
2148 * File name selection pattern
2150 tSCC zHpux10_Ctype_Declarations1List[] =
2153 * Machine/OS name selection pattern
2155 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2158 * content selection pattern - do fix if pattern found
2160 tSCC zHpux10_Ctype_Declarations1Select0[] =
2161 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2164 * content bypass pattern - skip fix if pattern found
2166 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2167 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2169 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2170 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2171 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2172 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2175 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2177 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2179 "#ifdef _PROTOTYPES\n\
2180 extern int __tolower(int);\n\
2181 extern int __toupper(int);\n\
2182 #else /* NOT _PROTOTYPES */\n\
2183 extern int __tolower();\n\
2184 extern int __toupper();\n\
2185 #endif /* _PROTOTYPES */\n\n\
2189 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2191 * Description of Hpux10_Ctype_Declarations2 fix
2193 tSCC zHpux10_Ctype_Declarations2Name[] =
2194 "hpux10_ctype_declarations2";
2197 * File name selection pattern
2199 tSCC zHpux10_Ctype_Declarations2List[] =
2202 * Machine/OS name selection pattern
2204 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2207 * content selection pattern - do fix if pattern found
2209 tSCC zHpux10_Ctype_Declarations2Select0[] =
2210 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2213 * content bypass pattern - skip fix if pattern found
2215 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2216 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2218 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2219 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2220 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2221 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2224 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2226 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2229 #ifdef _PROTOTYPES\n\
2230 extern int _isalnum(int);\n\
2231 extern int _isalpha(int);\n\
2232 extern int _iscntrl(int);\n\
2233 extern int _isdigit(int);\n\
2234 extern int _isgraph(int);\n\
2235 extern int _islower(int);\n\
2236 extern int _isprint(int);\n\
2237 extern int _ispunct(int);\n\
2238 extern int _isspace(int);\n\
2239 extern int _isupper(int);\n\
2240 extern int _isxdigit(int);\n\
2241 # else /* not _PROTOTYPES */\n\
2242 extern int _isalnum();\n\
2243 extern int _isalpha();\n\
2244 extern int _iscntrl();\n\
2245 extern int _isdigit();\n\
2246 extern int _isgraph();\n\
2247 extern int _islower();\n\
2248 extern int _isprint();\n\
2249 extern int _ispunct();\n\
2250 extern int _isspace();\n\
2251 extern int _isupper();\n\
2252 extern int _isxdigit();\n\
2253 #endif /* _PROTOTYPES */\n",
2256 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2258 * Description of Hpux10_Stdio_Declarations fix
2260 tSCC zHpux10_Stdio_DeclarationsName[] =
2261 "hpux10_stdio_declarations";
2264 * File name selection pattern
2266 tSCC zHpux10_Stdio_DeclarationsList[] =
2269 * Machine/OS name selection pattern
2271 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2274 * content selection pattern - do fix if pattern found
2276 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2277 "^#[ \t]*define _iob[ \t]*__iob";
2280 * content bypass pattern - skip fix if pattern found
2282 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2283 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2285 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2286 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2287 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2288 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2291 * Fix Command Arguments for Hpux10_Stdio_Declarations
2293 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2296 # if defined(__STDC__) || defined(__cplusplus)\n\
2297 extern int snprintf(char *, size_t, const char *, ...);\n\
2298 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2299 # else /* not __STDC__) || __cplusplus */\n\
2300 extern int snprintf();\n\
2301 extern int vsnprintf();\n\
2302 # endif /* __STDC__) || __cplusplus */\n",
2305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2307 * Description of Hpux11_Abs fix
2309 tSCC zHpux11_AbsName[] =
2313 * File name selection pattern
2315 tSCC zHpux11_AbsList[] =
2318 * Machine/OS name selection pattern
2320 tSCC* apzHpux11_AbsMachs[] = {
2322 (const char*)NULL };
2325 * content selection pattern - do fix if pattern found
2327 tSCC zHpux11_AbsSelect0[] =
2328 "ifndef _MATH_INCLUDED";
2330 #define HPUX11_ABS_TEST_CT 1
2331 static tTestDesc aHpux11_AbsTests[] = {
2332 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2335 * Fix Command Arguments for Hpux11_Abs
2337 static const char* apzHpux11_AbsPatch[] = {
2339 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2342 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2344 * Description of Hpux11_Fabsf fix
2346 tSCC zHpux11_FabsfName[] =
2350 * File name selection pattern
2352 tSCC zHpux11_FabsfList[] =
2355 * Machine/OS name selection pattern
2357 #define apzHpux11_FabsfMachs (const char**)NULL
2360 * content selection pattern - do fix if pattern found
2362 tSCC zHpux11_FabsfSelect0[] =
2363 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2366 * content bypass pattern - skip fix if pattern found
2368 tSCC zHpux11_FabsfBypass0[] =
2371 #define HPUX11_FABSF_TEST_CT 2
2372 static tTestDesc aHpux11_FabsfTests[] = {
2373 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2374 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2377 * Fix Command Arguments for Hpux11_Fabsf
2379 static const char* apzHpux11_FabsfPatch[] = {
2381 "#ifndef __cplusplus\n\
2386 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2388 * Description of Hpux11_Size_T fix
2390 tSCC zHpux11_Size_TName[] =
2394 * File name selection pattern
2396 #define zHpux11_Size_TList (char*)NULL
2398 * Machine/OS name selection pattern
2400 tSCC* apzHpux11_Size_TMachs[] = {
2402 (const char*)NULL };
2405 * content selection pattern - do fix if pattern found
2407 tSCC zHpux11_Size_TSelect0[] =
2410 #define HPUX11_SIZE_T_TEST_CT 1
2411 static tTestDesc aHpux11_Size_TTests[] = {
2412 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2415 * Fix Command Arguments for Hpux11_Size_T
2417 static const char* apzHpux11_Size_TPatch[] = {
2422 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2424 * Description of Hpux11_Snprintf fix
2426 tSCC zHpux11_SnprintfName[] =
2430 * File name selection pattern
2432 tSCC zHpux11_SnprintfList[] =
2435 * Machine/OS name selection pattern
2437 #define apzHpux11_SnprintfMachs (const char**)NULL
2440 * content selection pattern - do fix if pattern found
2442 tSCC zHpux11_SnprintfSelect0[] =
2443 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2445 #define HPUX11_SNPRINTF_TEST_CT 1
2446 static tTestDesc aHpux11_SnprintfTests[] = {
2447 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2450 * Fix Command Arguments for Hpux11_Snprintf
2452 static const char* apzHpux11_SnprintfPatch[] = {
2457 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2459 * Description of Hpux11_Uint32_C fix
2461 tSCC zHpux11_Uint32_CName[] =
2465 * File name selection pattern
2467 tSCC zHpux11_Uint32_CList[] =
2470 * Machine/OS name selection pattern
2472 #define apzHpux11_Uint32_CMachs (const char**)NULL
2475 * content selection pattern - do fix if pattern found
2477 tSCC zHpux11_Uint32_CSelect0[] =
2478 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2480 #define HPUX11_UINT32_C_TEST_CT 1
2481 static tTestDesc aHpux11_Uint32_CTests[] = {
2482 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2485 * Fix Command Arguments for Hpux11_Uint32_C
2487 static const char* apzHpux11_Uint32_CPatch[] = {
2489 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2492 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2494 * Description of Hpux11_Vsnprintf fix
2496 tSCC zHpux11_VsnprintfName[] =
2500 * File name selection pattern
2502 tSCC zHpux11_VsnprintfList[] =
2505 * Machine/OS name selection pattern
2507 #define apzHpux11_VsnprintfMachs (const char**)NULL
2510 * content selection pattern - do fix if pattern found
2512 tSCC zHpux11_VsnprintfSelect0[] =
2513 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2515 #define HPUX11_VSNPRINTF_TEST_CT 1
2516 static tTestDesc aHpux11_VsnprintfTests[] = {
2517 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2520 * Fix Command Arguments for Hpux11_Vsnprintf
2522 static const char* apzHpux11_VsnprintfPatch[] = {
2527 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2529 * Description of Hpux8_Bogus_Inlines fix
2531 tSCC zHpux8_Bogus_InlinesName[] =
2532 "hpux8_bogus_inlines";
2535 * File name selection pattern
2537 tSCC zHpux8_Bogus_InlinesList[] =
2540 * Machine/OS name selection pattern
2542 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2545 * content selection pattern - do fix if pattern found
2547 tSCC zHpux8_Bogus_InlinesSelect0[] =
2551 * content bypass pattern - skip fix if pattern found
2553 tSCC zHpux8_Bogus_InlinesBypass0[] =
2556 #define HPUX8_BOGUS_INLINES_TEST_CT 2
2557 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2558 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
2559 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2562 * Fix Command Arguments for Hpux8_Bogus_Inlines
2564 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2565 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2566 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2567 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2568 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2573 * Description of Hpux_Ctype_Macros fix
2575 tSCC zHpux_Ctype_MacrosName[] =
2576 "hpux_ctype_macros";
2579 * File name selection pattern
2581 tSCC zHpux_Ctype_MacrosList[] =
2584 * Machine/OS name selection pattern
2586 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2589 * content selection pattern - do fix if pattern found
2591 tSCC zHpux_Ctype_MacrosSelect0[] =
2592 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2594 #define HPUX_CTYPE_MACROS_TEST_CT 1
2595 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2596 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
2599 * Fix Command Arguments for Hpux_Ctype_Macros
2601 static const char* apzHpux_Ctype_MacrosPatch[] = {
2606 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2608 * Description of Hpux_Long_Double fix
2610 tSCC zHpux_Long_DoubleName[] =
2614 * File name selection pattern
2616 tSCC zHpux_Long_DoubleList[] =
2619 * Machine/OS name selection pattern
2621 #define apzHpux_Long_DoubleMachs (const char**)NULL
2624 * content selection pattern - do fix if pattern found
2626 tSCC zHpux_Long_DoubleSelect0[] =
2627 "extern[ \t]long_double[ \t]strtold";
2630 * content bypass pattern - skip fix if pattern found
2632 tSCC zHpux_Long_DoubleBypass0[] =
2635 #define HPUX_LONG_DOUBLE_TEST_CT 2
2636 static tTestDesc aHpux_Long_DoubleTests[] = {
2637 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
2638 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
2641 * Fix Command Arguments for Hpux_Long_Double
2643 static const char* apzHpux_Long_DoublePatch[] = { "sed",
2644 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
2645 "-e", "s/long_double/long double/g",
2648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2650 * Description of Hpux_Systime fix
2652 tSCC zHpux_SystimeName[] =
2656 * File name selection pattern
2658 tSCC zHpux_SystimeList[] =
2661 * Machine/OS name selection pattern
2663 #define apzHpux_SystimeMachs (const char**)NULL
2666 * content selection pattern - do fix if pattern found
2668 tSCC zHpux_SystimeSelect0[] =
2669 "^extern struct sigevent;";
2671 #define HPUX_SYSTIME_TEST_CT 1
2672 static tTestDesc aHpux_SystimeTests[] = {
2673 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2676 * Fix Command Arguments for Hpux_Systime
2678 static const char* apzHpux_SystimePatch[] = {
2683 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2685 * Description of Int_Abort_Free_And_Exit fix
2687 tSCC zInt_Abort_Free_And_ExitName[] =
2688 "int_abort_free_and_exit";
2691 * File name selection pattern
2693 tSCC zInt_Abort_Free_And_ExitList[] =
2696 * Machine/OS name selection pattern
2698 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2701 * content selection pattern - do fix if pattern found
2703 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2704 "int[ \t]+(abort|free|exit)[ \t]*\\(";
2707 * content bypass pattern - skip fix if pattern found
2709 tSCC zInt_Abort_Free_And_ExitBypass0[] =
2710 "_CLASSIC_ANSI_TYPES";
2712 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
2713 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2714 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
2715 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2718 * Fix Command Arguments for Int_Abort_Free_And_Exit
2720 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2725 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2727 * Description of Io_Quotes_Def fix
2729 tSCC zIo_Quotes_DefName[] =
2733 * File name selection pattern
2735 #define zIo_Quotes_DefList (char*)NULL
2737 * Machine/OS name selection pattern
2739 #define apzIo_Quotes_DefMachs (const char**)NULL
2742 * content selection pattern - do fix if pattern found
2744 tSCC zIo_Quotes_DefSelect0[] =
2745 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2747 #define IO_QUOTES_DEF_TEST_CT 1
2748 static tTestDesc aIo_Quotes_DefTests[] = {
2749 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2752 * Fix Command Arguments for Io_Quotes_Def
2754 static const char* apzIo_Quotes_DefPatch[] = {
2759 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2761 * Description of Io_Quotes_Use fix
2763 tSCC zIo_Quotes_UseName[] =
2767 * File name selection pattern
2769 #define zIo_Quotes_UseList (char*)NULL
2771 * Machine/OS name selection pattern
2773 #define apzIo_Quotes_UseMachs (const char**)NULL
2776 * content selection pattern - do fix if pattern found
2778 tSCC zIo_Quotes_UseSelect0[] =
2779 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2781 #define IO_QUOTES_USE_TEST_CT 1
2782 static tTestDesc aIo_Quotes_UseTests[] = {
2783 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2786 * Fix Command Arguments for Io_Quotes_Use
2788 static const char* apzIo_Quotes_UsePatch[] = {
2793 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2795 * Description of Ip_Missing_Semi fix
2797 tSCC zIp_Missing_SemiName[] =
2801 * File name selection pattern
2803 tSCC zIp_Missing_SemiList[] =
2806 * Machine/OS name selection pattern
2808 #define apzIp_Missing_SemiMachs (const char**)NULL
2811 * content selection pattern - do fix if pattern found
2813 tSCC zIp_Missing_SemiSelect0[] =
2816 #define IP_MISSING_SEMI_TEST_CT 1
2817 static tTestDesc aIp_Missing_SemiTests[] = {
2818 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2821 * Fix Command Arguments for Ip_Missing_Semi
2823 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2824 "-e", "/^struct/,/^};/s/}$/};/",
2827 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2829 * Description of Irix___Restrict fix
2831 tSCC zIrix___RestrictName[] =
2835 * File name selection pattern
2837 tSCC zIrix___RestrictList[] =
2838 "|internal/sgimacros.h|";
2840 * Machine/OS name selection pattern
2842 tSCC* apzIrix___RestrictMachs[] = {
2844 (const char*)NULL };
2847 * content selection pattern - do fix if pattern found
2849 tSCC zIrix___RestrictSelect0[] =
2851 )(#[ \t]*define __restrict restrict)";
2853 #define IRIX___RESTRICT_TEST_CT 1
2854 static tTestDesc aIrix___RestrictTests[] = {
2855 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
2858 * Fix Command Arguments for Irix___Restrict
2860 static const char* apzIrix___RestrictPatch[] = {
2862 "%1# ifndef __cplusplus\n\
2867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2869 * Description of Irix___Generic1 fix
2871 tSCC zIrix___Generic1Name[] =
2875 * File name selection pattern
2877 tSCC zIrix___Generic1List[] =
2878 "|internal/math_core.h|";
2880 * Machine/OS name selection pattern
2882 tSCC* apzIrix___Generic1Machs[] = {
2884 (const char*)NULL };
2887 * content selection pattern - do fix if pattern found
2889 tSCC zIrix___Generic1Select0[] =
2890 "#define ([a-z]+)\\(x\\) *__generic.*";
2892 #define IRIX___GENERIC1_TEST_CT 1
2893 static tTestDesc aIrix___Generic1Tests[] = {
2894 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
2897 * Fix Command Arguments for Irix___Generic1
2899 static const char* apzIrix___Generic1Patch[] = {
2901 "extern int %1(double);\n\
2902 extern int %1f(float);\n\
2903 extern int %1l(long double);\n\
2904 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
2905 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
2909 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2911 * Description of Irix___Generic2 fix
2913 tSCC zIrix___Generic2Name[] =
2917 * File name selection pattern
2919 tSCC zIrix___Generic2List[] =
2920 "|internal/math_core.h|";
2922 * Machine/OS name selection pattern
2924 tSCC* apzIrix___Generic2Machs[] = {
2926 (const char*)NULL };
2929 * content selection pattern - do fix if pattern found
2931 tSCC zIrix___Generic2Select0[] =
2932 "#define ([a-z]+)\\(x,y\\) *__generic.*";
2934 #define IRIX___GENERIC2_TEST_CT 1
2935 static tTestDesc aIrix___Generic2Tests[] = {
2936 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
2939 * Fix Command Arguments for Irix___Generic2
2941 static const char* apzIrix___Generic2Patch[] = {
2943 "#define %1(x,y) \\\n\
2944 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
2945 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
2949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2951 * Description of Irix_Asm_Apostrophe fix
2953 tSCC zIrix_Asm_ApostropheName[] =
2954 "irix_asm_apostrophe";
2957 * File name selection pattern
2959 tSCC zIrix_Asm_ApostropheList[] =
2962 * Machine/OS name selection pattern
2964 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2967 * content selection pattern - do fix if pattern found
2969 tSCC zIrix_Asm_ApostropheSelect0[] =
2970 "^[ \t]*#.*[Ww]e're";
2972 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2973 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2974 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2977 * Fix Command Arguments for Irix_Asm_Apostrophe
2979 static const char* apzIrix_Asm_ApostrophePatch[] = {
2982 "^([ \t]*#.*[Ww]e)'re",
2985 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2987 * Description of Irix_Limits_Const fix
2989 tSCC zIrix_Limits_ConstName[] =
2990 "irix_limits_const";
2993 * File name selection pattern
2995 tSCC zIrix_Limits_ConstList[] =
2996 "|fixinc-test-limits.h|limits.h|";
2998 * Machine/OS name selection pattern
3000 #define apzIrix_Limits_ConstMachs (const char**)NULL
3003 * content selection pattern - do fix if pattern found
3005 tSCC zIrix_Limits_ConstSelect0[] =
3008 #define IRIX_LIMITS_CONST_TEST_CT 1
3009 static tTestDesc aIrix_Limits_ConstTests[] = {
3010 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3013 * Fix Command Arguments for Irix_Limits_Const
3015 static const char* apzIrix_Limits_ConstPatch[] = {
3020 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3022 * Description of Irix_Socklen_T fix
3024 tSCC zIrix_Socklen_TName[] =
3028 * File name selection pattern
3030 tSCC zIrix_Socklen_TList[] =
3033 * Machine/OS name selection pattern
3035 tSCC* apzIrix_Socklen_TMachs[] = {
3037 (const char*)NULL };
3040 * content selection pattern - do fix if pattern found
3042 tSCC zIrix_Socklen_TSelect0[] =
3043 "(#define _SOCKLEN_T\n\
3044 )(typedef u_int32_t socklen_t;)";
3046 #define IRIX_SOCKLEN_T_TEST_CT 1
3047 static tTestDesc aIrix_Socklen_TTests[] = {
3048 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3051 * Fix Command Arguments for Irix_Socklen_T
3053 static const char* apzIrix_Socklen_TPatch[] = {
3055 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3056 typedef int socklen_t;\n\
3059 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
3062 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3064 * Description of Irix_Stdio_Va_List fix
3066 tSCC zIrix_Stdio_Va_ListName[] =
3067 "irix_stdio_va_list";
3070 * File name selection pattern
3072 tSCC zIrix_Stdio_Va_ListList[] =
3073 "|stdio.h|internal/stdio_core.h|";
3075 * Machine/OS name selection pattern
3077 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
3080 * content selection pattern - do fix if pattern found
3082 tSCC zIrix_Stdio_Va_ListSelect0[] =
3083 "/\\* va_list \\*/ char \\*";
3085 #define IRIX_STDIO_VA_LIST_TEST_CT 1
3086 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
3087 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
3090 * Fix Command Arguments for Irix_Stdio_Va_List
3092 static const char* apzIrix_Stdio_Va_ListPatch[] = {
3097 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3099 * Description of Irix_Wcsftime fix
3101 tSCC zIrix_WcsftimeName[] =
3105 * File name selection pattern
3107 tSCC zIrix_WcsftimeList[] =
3108 "|internal/wchar_core.h|";
3110 * Machine/OS name selection pattern
3112 tSCC* apzIrix_WcsftimeMachs[] = {
3114 (const char*)NULL };
3117 * content selection pattern - do fix if pattern found
3119 tSCC zIrix_WcsftimeSelect0[] =
3121 (extern size_t[ \t]+wcsftime.*const char *.*)";
3123 #define IRIX_WCSFTIME_TEST_CT 1
3124 static tTestDesc aIrix_WcsftimeTests[] = {
3125 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
3128 * Fix Command Arguments for Irix_Wcsftime
3130 static const char* apzIrix_WcsftimePatch[] = {
3132 "#if _NO_XOPEN5 && !defined(__c99)\n\
3136 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3138 * Description of Isc_Fmod fix
3140 tSCC zIsc_FmodName[] =
3144 * File name selection pattern
3146 tSCC zIsc_FmodList[] =
3149 * Machine/OS name selection pattern
3151 #define apzIsc_FmodMachs (const char**)NULL
3154 * content selection pattern - do fix if pattern found
3156 tSCC zIsc_FmodSelect0[] =
3159 #define ISC_FMOD_TEST_CT 1
3160 static tTestDesc aIsc_FmodTests[] = {
3161 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
3164 * Fix Command Arguments for Isc_Fmod
3166 static const char* apzIsc_FmodPatch[] = {
3168 "fmod(double, double)",
3171 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3173 * Description of Isc_Omits_With_Stdc fix
3175 tSCC zIsc_Omits_With_StdcName[] =
3176 "isc_omits_with_stdc";
3179 * File name selection pattern
3181 tSCC zIsc_Omits_With_StdcList[] =
3182 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
3184 * Machine/OS name selection pattern
3186 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
3189 * content selection pattern - do fix if pattern found
3191 tSCC zIsc_Omits_With_StdcSelect0[] =
3192 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
3194 #define ISC_OMITS_WITH_STDC_TEST_CT 1
3195 static tTestDesc aIsc_Omits_With_StdcTests[] = {
3196 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
3199 * Fix Command Arguments for Isc_Omits_With_Stdc
3201 static const char* apzIsc_Omits_With_StdcPatch[] = {
3203 "!defined(_POSIX_SOURCE)",
3206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3208 * Description of Kandr_Concat fix
3210 tSCC zKandr_ConcatName[] =
3214 * File name selection pattern
3216 tSCC zKandr_ConcatList[] =
3217 "|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|";
3219 * Machine/OS name selection pattern
3221 #define apzKandr_ConcatMachs (const char**)NULL
3224 * content selection pattern - do fix if pattern found
3226 tSCC zKandr_ConcatSelect0[] =
3229 #define KANDR_CONCAT_TEST_CT 1
3230 static tTestDesc aKandr_ConcatTests[] = {
3231 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
3234 * Fix Command Arguments for Kandr_Concat
3236 static const char* apzKandr_ConcatPatch[] = {
3241 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3243 * Description of Libc1_G_Va_List fix
3245 tSCC zLibc1_G_Va_ListName[] =
3249 * File name selection pattern
3251 tSCC zLibc1_G_Va_ListList[] =
3254 * Machine/OS name selection pattern
3256 tSCC* apzLibc1_G_Va_ListMachs[] = {
3258 (const char*)NULL };
3261 * content selection pattern - do fix if pattern found
3263 tSCC zLibc1_G_Va_ListSelect0[] =
3264 "typedef void \\* _G_va_list;";
3266 #define LIBC1_G_VA_LIST_TEST_CT 1
3267 static tTestDesc aLibc1_G_Va_ListTests[] = {
3268 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
3271 * Fix Command Arguments for Libc1_G_Va_List
3273 static const char* apzLibc1_G_Va_ListPatch[] = {
3275 "typedef __builtin_va_list _G_va_list;",
3278 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3280 * Description of Libc1_Ifdefd_Memx fix
3282 tSCC zLibc1_Ifdefd_MemxName[] =
3283 "libc1_ifdefd_memx";
3286 * File name selection pattern
3288 tSCC zLibc1_Ifdefd_MemxList[] =
3289 "|testing.h|string.h|";
3291 * Machine/OS name selection pattern
3293 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
3296 * content selection pattern - do fix if pattern found
3298 tSCC zLibc1_Ifdefd_MemxSelect0[] =
3299 "' is a built-in function for gcc 2\\.x\\. \\*/";
3302 * content bypass pattern - skip fix if pattern found
3304 tSCC zLibc1_Ifdefd_MemxBypass0[] =
3307 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
3308 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
3309 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
3310 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
3313 * Fix Command Arguments for Libc1_Ifdefd_Memx
3315 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
3318 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
3319 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
3321 extern [a-z_]+ mem.*(\n\
3326 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3328 * Description of Linux_Ia64_Ucontext fix
3330 tSCC zLinux_Ia64_UcontextName[] =
3331 "linux_ia64_ucontext";
3334 * File name selection pattern
3336 tSCC zLinux_Ia64_UcontextList[] =
3339 * Machine/OS name selection pattern
3341 tSCC* apzLinux_Ia64_UcontextMachs[] = {
3343 (const char*)NULL };
3346 * content selection pattern - do fix if pattern found
3348 tSCC zLinux_Ia64_UcontextSelect0[] =
3349 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
3351 #define LINUX_IA64_UCONTEXT_TEST_CT 1
3352 static tTestDesc aLinux_Ia64_UcontextTests[] = {
3353 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
3356 * Fix Command Arguments for Linux_Ia64_Ucontext
3358 static const char* apzLinux_Ia64_UcontextPatch[] = {
3360 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
3363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3365 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
3367 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
3368 "lynxos_no_warning_in_sys_time_h";
3371 * File name selection pattern
3373 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
3376 * Machine/OS name selection pattern
3378 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
3381 * content selection pattern - do fix if pattern found
3383 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
3384 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
3386 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
3387 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
3388 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
3391 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
3393 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
3398 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3400 * Description of Lynxos_Missing_Putenv fix
3402 tSCC zLynxos_Missing_PutenvName[] =
3403 "lynxos_missing_putenv";
3406 * File name selection pattern
3408 tSCC zLynxos_Missing_PutenvList[] =
3411 * Machine/OS name selection pattern
3413 tSCC* apzLynxos_Missing_PutenvMachs[] = {
3415 (const char*)NULL };
3418 * content selection pattern - do fix if pattern found
3420 tSCC zLynxos_Missing_PutenvSelect0[] =
3421 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
3424 * content bypass pattern - skip fix if pattern found
3426 tSCC zLynxos_Missing_PutenvBypass0[] =
3429 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
3430 static tTestDesc aLynxos_Missing_PutenvTests[] = {
3431 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
3432 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
3435 * Fix Command Arguments for Lynxos_Missing_Putenv
3437 static const char* apzLynxos_Missing_PutenvPatch[] = {
3440 extern int putenv\t\t\t\t_AP((char *));",
3441 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
3444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3446 * Description of Machine_Ansi_H_Va_List fix
3448 tSCC zMachine_Ansi_H_Va_ListName[] =
3449 "machine_ansi_h_va_list";
3452 * File name selection pattern
3454 #define zMachine_Ansi_H_Va_ListList (char*)NULL
3456 * Machine/OS name selection pattern
3458 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
3461 * content selection pattern - do fix if pattern found
3463 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
3464 "define[ \t]+_BSD_VA_LIST_[ \t]";
3467 * content bypass pattern - skip fix if pattern found
3469 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
3470 "__builtin_va_list";
3472 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
3473 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
3474 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
3475 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
3478 * Fix Command Arguments for Machine_Ansi_H_Va_List
3480 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
3482 "%1__builtin_va_list",
3483 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
3486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3488 * Description of Machine_Name fix
3490 tSCC zMachine_NameName[] =
3494 * File name selection pattern
3496 #define zMachine_NameList (char*)NULL
3498 * Machine/OS name selection pattern
3500 #define apzMachine_NameMachs (const char**)NULL
3503 * perform the C function call test
3505 tSCC zMachine_NameFTst0[] = "machine_name";
3507 #define MACHINE_NAME_TEST_CT 1
3508 static tTestDesc aMachine_NameTests[] = {
3509 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
3512 * Fix Command Arguments for Machine_Name
3514 static const char* apzMachine_NamePatch[] = {
3518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3520 * Description of Math_Exception fix
3522 tSCC zMath_ExceptionName[] =
3526 * File name selection pattern
3528 tSCC zMath_ExceptionList[] =
3531 * Machine/OS name selection pattern
3533 #define apzMath_ExceptionMachs (const char**)NULL
3536 * content selection pattern - do fix if pattern found
3538 tSCC zMath_ExceptionSelect0[] =
3542 * content bypass pattern - skip fix if pattern found
3544 tSCC zMath_ExceptionBypass0[] =
3545 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
3547 #define MATH_EXCEPTION_TEST_CT 2
3548 static tTestDesc aMath_ExceptionTests[] = {
3549 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
3550 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
3553 * Fix Command Arguments for Math_Exception
3555 static const char* apzMath_ExceptionPatch[] = {
3557 "#ifdef __cplusplus\n\
3558 #define exception __math_exception\n\
3560 "#ifdef __cplusplus\n\
3565 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3567 * Description of Math_Huge_Val_From_Dbl_Max fix
3569 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
3570 "math_huge_val_from_dbl_max";
3573 * File name selection pattern
3575 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
3578 * Machine/OS name selection pattern
3580 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
3583 * content selection pattern - do fix if pattern found
3585 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
3586 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
3589 * content bypass pattern - skip fix if pattern found
3591 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
3592 "define[ \t]+DBL_MAX";
3594 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
3595 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
3596 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
3597 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
3600 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
3602 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
3603 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
3604 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
3605 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
3610 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3612 * Description of Nested_Auth_Des fix
3614 tSCC zNested_Auth_DesName[] =
3618 * File name selection pattern
3620 tSCC zNested_Auth_DesList[] =
3623 * Machine/OS name selection pattern
3625 #define apzNested_Auth_DesMachs (const char**)NULL
3628 * content selection pattern - do fix if pattern found
3630 tSCC zNested_Auth_DesSelect0[] =
3631 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
3633 #define NESTED_AUTH_DES_TEST_CT 1
3634 static tTestDesc aNested_Auth_DesTests[] = {
3635 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
3638 * Fix Command Arguments for Nested_Auth_Des
3640 static const char* apzNested_Auth_DesPatch[] = {
3645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3647 * Description of Nested_Motorola fix
3649 tSCC zNested_MotorolaName[] =
3653 * File name selection pattern
3655 tSCC zNested_MotorolaList[] =
3656 "|sys/limits.h|limits.h|";
3658 * Machine/OS name selection pattern
3660 tSCC* apzNested_MotorolaMachs[] = {
3661 "m68k-motorola-sysv*",
3662 (const char*)NULL };
3665 * content selection pattern - do fix if pattern found
3667 tSCC zNested_MotorolaSelect0[] =
3668 "max # bytes atomic in write|error value returned by Math lib";
3670 #define NESTED_MOTOROLA_TEST_CT 1
3671 static tTestDesc aNested_MotorolaTests[] = {
3672 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
3675 * Fix Command Arguments for Nested_Motorola
3677 static const char* apzNested_MotorolaPatch[] = { "sed",
3678 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3679 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3682 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3684 * Description of Nested_Sys_Limits fix
3686 tSCC zNested_Sys_LimitsName[] =
3687 "nested_sys_limits";
3690 * File name selection pattern
3692 tSCC zNested_Sys_LimitsList[] =
3695 * Machine/OS name selection pattern
3697 #define apzNested_Sys_LimitsMachs (const char**)NULL
3700 * content selection pattern - do fix if pattern found
3702 tSCC zNested_Sys_LimitsSelect0[] =
3705 #define NESTED_SYS_LIMITS_TEST_CT 1
3706 static tTestDesc aNested_Sys_LimitsTests[] = {
3707 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3710 * Fix Command Arguments for Nested_Sys_Limits
3712 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3713 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3714 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3719 * Description of Netbsd_Extra_Semicolon fix
3721 tSCC zNetbsd_Extra_SemicolonName[] =
3722 "netbsd_extra_semicolon";
3725 * File name selection pattern
3727 tSCC zNetbsd_Extra_SemicolonList[] =
3730 * Machine/OS name selection pattern
3732 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
3734 (const char*)NULL };
3737 * content selection pattern - do fix if pattern found
3739 tSCC zNetbsd_Extra_SemicolonSelect0[] =
3740 "#define[ \t]*__END_DECLS[ \t]*};";
3742 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
3743 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
3744 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
3747 * Fix Command Arguments for Netbsd_Extra_Semicolon
3749 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
3751 "#define __END_DECLS }",
3754 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3756 * Description of Next_Math_Prefix fix
3758 tSCC zNext_Math_PrefixName[] =
3762 * File name selection pattern
3764 tSCC zNext_Math_PrefixList[] =
3767 * Machine/OS name selection pattern
3769 #define apzNext_Math_PrefixMachs (const char**)NULL
3772 * content selection pattern - do fix if pattern found
3774 tSCC zNext_Math_PrefixSelect0[] =
3775 "^extern[ \t]+double[ \t]+__const__[ \t]";
3777 #define NEXT_MATH_PREFIX_TEST_CT 1
3778 static tTestDesc aNext_Math_PrefixTests[] = {
3779 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3782 * Fix Command Arguments for Next_Math_Prefix
3784 static const char* apzNext_Math_PrefixPatch[] = {
3786 "extern double %1(",
3787 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3792 * Description of Next_Template fix
3794 tSCC zNext_TemplateName[] =
3798 * File name selection pattern
3800 tSCC zNext_TemplateList[] =
3803 * Machine/OS name selection pattern
3805 #define apzNext_TemplateMachs (const char**)NULL
3808 * content selection pattern - do fix if pattern found
3810 tSCC zNext_TemplateSelect0[] =
3813 #define NEXT_TEMPLATE_TEST_CT 1
3814 static tTestDesc aNext_TemplateTests[] = {
3815 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
3818 * Fix Command Arguments for Next_Template
3820 static const char* apzNext_TemplatePatch[] = {
3823 "\\(([^)]*)[ \t]template\\)",
3826 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3828 * Description of Next_Volitile fix
3830 tSCC zNext_VolitileName[] =
3834 * File name selection pattern
3836 tSCC zNext_VolitileList[] =
3839 * Machine/OS name selection pattern
3841 #define apzNext_VolitileMachs (const char**)NULL
3844 * content selection pattern - do fix if pattern found
3846 tSCC zNext_VolitileSelect0[] =
3847 "^extern[ \t]+volatile[ \t]+void[ \t]";
3849 #define NEXT_VOLITILE_TEST_CT 1
3850 static tTestDesc aNext_VolitileTests[] = {
3851 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
3854 * Fix Command Arguments for Next_Volitile
3856 static const char* apzNext_VolitilePatch[] = {
3859 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3862 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3864 * Description of Next_Wait_Union fix
3866 tSCC zNext_Wait_UnionName[] =
3870 * File name selection pattern
3872 tSCC zNext_Wait_UnionList[] =
3875 * Machine/OS name selection pattern
3877 #define apzNext_Wait_UnionMachs (const char**)NULL
3880 * content selection pattern - do fix if pattern found
3882 tSCC zNext_Wait_UnionSelect0[] =
3883 "wait\\(union wait";
3885 #define NEXT_WAIT_UNION_TEST_CT 1
3886 static tTestDesc aNext_Wait_UnionTests[] = {
3887 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3890 * Fix Command Arguments for Next_Wait_Union
3892 static const char* apzNext_Wait_UnionPatch[] = {
3897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3899 * Description of Nodeent_Syntax fix
3901 tSCC zNodeent_SyntaxName[] =
3905 * File name selection pattern
3907 tSCC zNodeent_SyntaxList[] =
3908 "|netdnet/dnetdb.h|";
3910 * Machine/OS name selection pattern
3912 #define apzNodeent_SyntaxMachs (const char**)NULL
3915 * content selection pattern - do fix if pattern found
3917 tSCC zNodeent_SyntaxSelect0[] =
3918 "char[ \t]*\\*na_addr[ \t]*$";
3920 #define NODEENT_SYNTAX_TEST_CT 1
3921 static tTestDesc aNodeent_SyntaxTests[] = {
3922 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3925 * Fix Command Arguments for Nodeent_Syntax
3927 static const char* apzNodeent_SyntaxPatch[] = {
3932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3934 * Description of Obstack_Lvalue_Cast fix
3936 tSCC zObstack_Lvalue_CastName[] =
3937 "obstack_lvalue_cast";
3940 * File name selection pattern
3942 tSCC zObstack_Lvalue_CastList[] =
3945 * Machine/OS name selection pattern
3947 #define apzObstack_Lvalue_CastMachs (const char**)NULL
3950 * content selection pattern - do fix if pattern found
3952 tSCC zObstack_Lvalue_CastSelect0[] =
3953 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
3955 #define OBSTACK_LVALUE_CAST_TEST_CT 1
3956 static tTestDesc aObstack_Lvalue_CastTests[] = {
3957 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
3960 * Fix Command Arguments for Obstack_Lvalue_Cast
3962 static const char* apzObstack_Lvalue_CastPatch[] = {
3964 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
3967 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3969 * Description of Osf_Namespace_A fix
3971 tSCC zOsf_Namespace_AName[] =
3975 * File name selection pattern
3977 tSCC zOsf_Namespace_AList[] =
3978 "|reg_types.h|sys/lc_core.h|";
3980 * Machine/OS name selection pattern
3982 #define apzOsf_Namespace_AMachs (const char**)NULL
3985 * perform the 'test' shell command - do fix on success
3987 tSCC zOsf_Namespace_ATest0[] =
3989 tSCC zOsf_Namespace_ATest1[] =
3990 " -r sys/lc_core.h";
3991 tSCC zOsf_Namespace_ATest2[] =
3992 " -n \"`grep '} regex_t;' reg_types.h`\"";
3993 tSCC zOsf_Namespace_ATest3[] =
3994 " -z \"`grep __regex_t regex.h`\"";
3996 #define OSF_NAMESPACE_A_TEST_CT 4
3997 static tTestDesc aOsf_Namespace_ATests[] = {
3998 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3999 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
4000 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
4001 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
4004 * Fix Command Arguments for Osf_Namespace_A
4006 static const char* apzOsf_Namespace_APatch[] = {
4009 "reg(ex|off|match)_t",
4012 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4014 * Description of Osf_Namespace_C fix
4016 tSCC zOsf_Namespace_CName[] =
4020 * File name selection pattern
4022 tSCC zOsf_Namespace_CList[] =
4025 * Machine/OS name selection pattern
4027 #define apzOsf_Namespace_CMachs (const char**)NULL
4030 * content selection pattern - do fix if pattern found
4032 tSCC zOsf_Namespace_CSelect0[] =
4033 "#include <reg_types.h>.*";
4036 * perform the 'test' shell command - do fix on success
4038 tSCC zOsf_Namespace_CTest0[] =
4040 tSCC zOsf_Namespace_CTest1[] =
4041 " -r sys/lc_core.h";
4042 tSCC zOsf_Namespace_CTest2[] =
4043 " -n \"`grep '} regex_t;' reg_types.h`\"";
4044 tSCC zOsf_Namespace_CTest3[] =
4045 " -z \"`grep __regex_t regex.h`\"";
4047 #define OSF_NAMESPACE_C_TEST_CT 5
4048 static tTestDesc aOsf_Namespace_CTests[] = {
4049 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
4050 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
4051 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
4052 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
4053 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
4056 * Fix Command Arguments for Osf_Namespace_C
4058 static const char* apzOsf_Namespace_CPatch[] = {
4061 typedef __regex_t\tregex_t;\n\
4062 typedef __regoff_t\tregoff_t;\n\
4063 typedef __regmatch_t\tregmatch_t;",
4066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4068 * Description of Pthread_Page_Size fix
4070 tSCC zPthread_Page_SizeName[] =
4071 "pthread_page_size";
4074 * File name selection pattern
4076 tSCC zPthread_Page_SizeList[] =
4079 * Machine/OS name selection pattern
4081 #define apzPthread_Page_SizeMachs (const char**)NULL
4084 * content selection pattern - do fix if pattern found
4086 tSCC zPthread_Page_SizeSelect0[] =
4089 #define PTHREAD_PAGE_SIZE_TEST_CT 1
4090 static tTestDesc aPthread_Page_SizeTests[] = {
4091 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
4094 * Fix Command Arguments for Pthread_Page_Size
4096 static const char* apzPthread_Page_SizePatch[] = {
4101 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4103 * Description of Read_Ret_Type fix
4105 tSCC zRead_Ret_TypeName[] =
4109 * File name selection pattern
4111 tSCC zRead_Ret_TypeList[] =
4114 * Machine/OS name selection pattern
4116 #define apzRead_Ret_TypeMachs (const char**)NULL
4119 * content selection pattern - do fix if pattern found
4121 tSCC zRead_Ret_TypeSelect0[] =
4122 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
4124 #define READ_RET_TYPE_TEST_CT 1
4125 static tTestDesc aRead_Ret_TypeTests[] = {
4126 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
4129 * Fix Command Arguments for Read_Ret_Type
4131 static const char* apzRead_Ret_TypePatch[] = {
4133 "extern unsigned int fread(), fwrite();\n\
4135 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
4138 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4140 * Description of Rpc_Xdr_Lvalue_Cast_A fix
4142 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
4143 "rpc_xdr_lvalue_cast_a";
4146 * File name selection pattern
4148 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
4151 * Machine/OS name selection pattern
4153 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
4156 * content selection pattern - do fix if pattern found
4158 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
4159 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
4162 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
4163 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
4164 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
4167 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
4169 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
4171 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
4174 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4176 * Description of Rpc_Xdr_Lvalue_Cast_B fix
4178 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
4179 "rpc_xdr_lvalue_cast_b";
4182 * File name selection pattern
4184 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
4187 * Machine/OS name selection pattern
4189 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
4192 * content selection pattern - do fix if pattern found
4194 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
4195 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
4198 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
4199 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
4200 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
4203 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
4205 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
4207 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
4210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4212 * Description of Rs6000_Double fix
4214 tSCC zRs6000_DoubleName[] =
4218 * File name selection pattern
4220 tSCC zRs6000_DoubleList[] =
4223 * Machine/OS name selection pattern
4225 #define apzRs6000_DoubleMachs (const char**)NULL
4228 * content selection pattern - do fix if pattern found
4230 tSCC zRs6000_DoubleSelect0[] =
4231 "[^a-zA-Z_]class\\(";
4233 #define RS6000_DOUBLE_TEST_CT 1
4234 static tTestDesc aRs6000_DoubleTests[] = {
4235 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
4238 * Fix Command Arguments for Rs6000_Double
4240 static const char* apzRs6000_DoublePatch[] = {
4242 "#ifndef __cplusplus\n\
4245 "^.*[^a-zA-Z_]class\\(.*",
4248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4250 * Description of Rs6000_Fchmod fix
4252 tSCC zRs6000_FchmodName[] =
4256 * File name selection pattern
4258 tSCC zRs6000_FchmodList[] =
4261 * Machine/OS name selection pattern
4263 #define apzRs6000_FchmodMachs (const char**)NULL
4266 * content selection pattern - do fix if pattern found
4268 tSCC zRs6000_FchmodSelect0[] =
4269 "fchmod\\(char \\*";
4271 #define RS6000_FCHMOD_TEST_CT 1
4272 static tTestDesc aRs6000_FchmodTests[] = {
4273 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
4276 * Fix Command Arguments for Rs6000_Fchmod
4278 static const char* apzRs6000_FchmodPatch[] = {
4283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4285 * Description of Rs6000_Param fix
4287 tSCC zRs6000_ParamName[] =
4291 * File name selection pattern
4293 tSCC zRs6000_ParamList[] =
4294 "|stdio.h|unistd.h|";
4296 * Machine/OS name selection pattern
4298 #define apzRs6000_ParamMachs (const char**)NULL
4301 * content selection pattern - do fix if pattern found
4303 tSCC zRs6000_ParamSelect0[] =
4304 "rename\\(const char \\*old, const char \\*new\\)";
4306 #define RS6000_PARAM_TEST_CT 1
4307 static tTestDesc aRs6000_ParamTests[] = {
4308 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
4311 * Fix Command Arguments for Rs6000_Param
4313 static const char* apzRs6000_ParamPatch[] = {
4315 "rename(const char *_old, const char *_new)",
4318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4320 * Description of Sco_Math fix
4322 tSCC zSco_MathName[] =
4326 * File name selection pattern
4328 tSCC zSco_MathList[] =
4329 "|math.h|ansi/math.h|posix/math.h|xpg4/math.h|xpg4v2/math.h|xpg4plus/math.h|ods_30_compat/math.h|oldstyle/math.h|";
4331 * Machine/OS name selection pattern
4333 #define apzSco_MathMachs (const char**)NULL
4336 * content selection pattern - do fix if pattern found
4338 tSCC zSco_MathSelect0[] =
4339 "inline double abs";
4342 * content bypass pattern - skip fix if pattern found
4344 tSCC zSco_MathBypass0[] =
4347 #define SCO_MATH_TEST_CT 2
4348 static tTestDesc aSco_MathTests[] = {
4349 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
4350 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
4353 * Fix Command Arguments for Sco_Math
4355 static const char* apzSco_MathPatch[] = { "sed",
4356 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
4357 #ifndef __GNUC__\n",
4358 "-e", "/.*__builtin_generic/a\\\n\
4360 #define __fp_class(a) \\\\\\\n\
4361 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
4362 __fpclassifyl(a), \\\\\\\n\
4363 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
4364 __fpclassifyf(a),__fpclassify(a)))\\\n\
4366 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
4367 #ifndef __GNUC__\n",
4368 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
4369 #endif /* ! __GNUC__ */",
4372 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4374 * Description of Sco_Regset fix
4376 tSCC zSco_RegsetName[] =
4380 * File name selection pattern
4382 tSCC zSco_RegsetList[] =
4385 * Machine/OS name selection pattern
4387 tSCC* apzSco_RegsetMachs[] = {
4389 (const char*)NULL };
4392 * content selection pattern - do fix if pattern found
4394 tSCC zSco_RegsetSelect0[] =
4395 "(struct[ \t]+.*)fpstate";
4397 #define SCO_REGSET_TEST_CT 1
4398 static tTestDesc aSco_RegsetTests[] = {
4399 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
4402 * Fix Command Arguments for Sco_Regset
4404 static const char* apzSco_RegsetPatch[] = {
4409 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4411 * Description of Sco_Static_Func fix
4413 tSCC zSco_Static_FuncName[] =
4417 * File name selection pattern
4419 tSCC zSco_Static_FuncList[] =
4422 * Machine/OS name selection pattern
4424 tSCC* apzSco_Static_FuncMachs[] = {
4426 (const char*)NULL };
4429 * content selection pattern - do fix if pattern found
4431 tSCC zSco_Static_FuncSelect0[] =
4434 #define SCO_STATIC_FUNC_TEST_CT 1
4435 static tTestDesc aSco_Static_FuncTests[] = {
4436 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
4439 * Fix Command Arguments for Sco_Static_Func
4441 static const char* apzSco_Static_FuncPatch[] = { "sed",
4442 "-e", "/^static int/i\\\n\
4443 #if __cplusplus\\\n\
4445 #endif /* __cplusplus */",
4447 #if __cplusplus\\\n\
4449 #endif /* __cplusplus */",
4452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4454 * Description of Sco_Utime fix
4456 tSCC zSco_UtimeName[] =
4460 * File name selection pattern
4462 tSCC zSco_UtimeList[] =
4465 * Machine/OS name selection pattern
4467 tSCC* apzSco_UtimeMachs[] = {
4469 (const char*)NULL };
4472 * content selection pattern - do fix if pattern found
4474 tSCC zSco_UtimeSelect0[] =
4475 "\\(const char \\*, struct utimbuf \\*\\);";
4477 #define SCO_UTIME_TEST_CT 1
4478 static tTestDesc aSco_UtimeTests[] = {
4479 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
4482 * Fix Command Arguments for Sco_Utime
4484 static const char* apzSco_UtimePatch[] = {
4486 "(const char *, const struct utimbuf *);",
4489 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4491 * Description of Solaris_Mutex_Init_1 fix
4493 tSCC zSolaris_Mutex_Init_1Name[] =
4494 "solaris_mutex_init_1";
4497 * File name selection pattern
4499 tSCC zSolaris_Mutex_Init_1List[] =
4502 * Machine/OS name selection pattern
4504 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
4507 * content selection pattern - do fix if pattern found
4509 tSCC zSolaris_Mutex_Init_1Select0[] =
4510 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
4512 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
4513 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
4514 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
4517 * Fix Command Arguments for Solaris_Mutex_Init_1
4519 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
4520 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
4521 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
4524 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4526 * Description of Solaris_Mutex_Init_2 fix
4528 tSCC zSolaris_Mutex_Init_2Name[] =
4529 "solaris_mutex_init_2";
4532 * File name selection pattern
4534 tSCC zSolaris_Mutex_Init_2List[] =
4537 * Machine/OS name selection pattern
4539 #define apzSolaris_Mutex_Init_2Machs (const char**)NULL
4542 * content selection pattern - do fix if pattern found
4544 tSCC zSolaris_Mutex_Init_2Select0[] =
4545 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
4547 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
4548 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
4549 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
4552 * Fix Command Arguments for Solaris_Mutex_Init_2
4554 static const char* apzSolaris_Mutex_Init_2Patch[] = {
4556 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
4561 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+\\{.*),[ \t]*0\\}(|[ \t].*)$",
4564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4566 * Description of Solaris_Socket fix
4568 tSCC zSolaris_SocketName[] =
4572 * File name selection pattern
4574 tSCC zSolaris_SocketList[] =
4577 * Machine/OS name selection pattern
4579 #define apzSolaris_SocketMachs (const char**)NULL
4582 * content selection pattern - do fix if pattern found
4584 tSCC zSolaris_SocketSelect0[] =
4585 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
4587 #define SOLARIS_SOCKET_TEST_CT 1
4588 static tTestDesc aSolaris_SocketTests[] = {
4589 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
4592 * Fix Command Arguments for Solaris_Socket
4594 static const char* apzSolaris_SocketPatch[] = {
4596 "extern int %1(int, %2void *, int, int);",
4597 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
4600 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4602 * Description of Solaris_Stdio_Tag fix
4604 tSCC zSolaris_Stdio_TagName[] =
4605 "solaris_stdio_tag";
4608 * File name selection pattern
4610 tSCC zSolaris_Stdio_TagList[] =
4613 * Machine/OS name selection pattern
4615 #define apzSolaris_Stdio_TagMachs (const char**)NULL
4618 * content selection pattern - do fix if pattern found
4620 tSCC zSolaris_Stdio_TagSelect0[] =
4621 "__cplusplus < 54321L";
4623 #define SOLARIS_STDIO_TAG_TEST_CT 1
4624 static tTestDesc aSolaris_Stdio_TagTests[] = {
4625 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
4628 * Fix Command Arguments for Solaris_Stdio_Tag
4630 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
4631 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
4634 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4636 * Description of Solaris_Unistd fix
4638 tSCC zSolaris_UnistdName[] =
4642 * File name selection pattern
4644 tSCC zSolaris_UnistdList[] =
4647 * Machine/OS name selection pattern
4649 #define apzSolaris_UnistdMachs (const char**)NULL
4652 * content selection pattern - do fix if pattern found
4654 tSCC zSolaris_UnistdSelect0[] =
4655 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
4658 * content bypass pattern - skip fix if pattern found
4660 tSCC zSolaris_UnistdBypass0[] =
4663 #define SOLARIS_UNISTD_TEST_CT 2
4664 static tTestDesc aSolaris_UnistdTests[] = {
4665 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
4666 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
4669 * Fix Command Arguments for Solaris_Unistd
4671 static const char* apzSolaris_UnistdPatch[] = {
4673 "extern int getpagesize();\n\
4675 "^extern (pid_t|int) getpgid\\(.*\\);",
4678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4680 * Description of Solaris_Widec fix
4682 tSCC zSolaris_WidecName[] =
4686 * File name selection pattern
4688 tSCC zSolaris_WidecList[] =
4691 * Machine/OS name selection pattern
4693 tSCC* apzSolaris_WidecMachs[] = {
4694 "*-*-solaris2.[0-5]",
4695 "*-*-solaris2.[0-5].*",
4696 (const char*)NULL };
4699 * content selection pattern - do fix if pattern found
4701 tSCC zSolaris_WidecSelect0[] =
4705 * content bypass pattern - skip fix if pattern found
4707 tSCC zSolaris_WidecBypass0[] =
4708 "include.*wchar\\.h";
4710 #define SOLARIS_WIDEC_TEST_CT 2
4711 static tTestDesc aSolaris_WidecTests[] = {
4712 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
4713 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
4716 * Fix Command Arguments for Solaris_Widec
4718 static const char* apzSolaris_WidecPatch[] = {
4721 #include <wchar.h>",
4724 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4726 * Description of Statsswtch fix
4728 tSCC zStatsswtchName[] =
4732 * File name selection pattern
4734 tSCC zStatsswtchList[] =
4737 * Machine/OS name selection pattern
4739 #define apzStatsswtchMachs (const char**)NULL
4742 * content selection pattern - do fix if pattern found
4744 tSCC zStatsswtchSelect0[] =
4747 #define STATSSWTCH_TEST_CT 1
4748 static tTestDesc aStatsswtchTests[] = {
4749 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
4752 * Fix Command Arguments for Statsswtch
4754 static const char* apzStatsswtchPatch[] = {
4759 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4761 * Description of Stdio_Stdarg_H fix
4763 tSCC zStdio_Stdarg_HName[] =
4767 * File name selection pattern
4769 tSCC zStdio_Stdarg_HList[] =
4772 * Machine/OS name selection pattern
4774 #define apzStdio_Stdarg_HMachs (const char**)NULL
4777 * content bypass pattern - skip fix if pattern found
4779 tSCC zStdio_Stdarg_HBypass0[] =
4780 "include.*(stdarg.h|machine/ansi.h)";
4782 #define STDIO_STDARG_H_TEST_CT 1
4783 static tTestDesc aStdio_Stdarg_HTests[] = {
4784 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
4787 * Fix Command Arguments for Stdio_Stdarg_H
4789 static const char* apzStdio_Stdarg_HPatch[] = {
4791 "#define __need___va_list\n\
4792 #include <stdarg.h>\n",
4795 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4797 * Description of Stdio_Va_List fix
4799 tSCC zStdio_Va_ListName[] =
4803 * File name selection pattern
4805 tSCC zStdio_Va_ListList[] =
4806 "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|";
4808 * Machine/OS name selection pattern
4810 #define apzStdio_Va_ListMachs (const char**)NULL
4813 * content bypass pattern - skip fix if pattern found
4815 tSCC zStdio_Va_ListBypass0[] =
4816 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
4818 #define STDIO_VA_LIST_TEST_CT 1
4819 static tTestDesc aStdio_Va_ListTests[] = {
4820 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
4823 * Fix Command Arguments for Stdio_Va_List
4825 static const char* apzStdio_Va_ListPatch[] = { "sed",
4826 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
4827 s@(va_list)&@(__gnuc_va_list)\\&@\n\
4828 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
4829 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
4830 s@ va_list@ __not_va_list__@\n\
4831 s@\\*va_list@*__not_va_list__@\n\
4832 s@ __va_list)@ __gnuc_va_list)@\n\
4833 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
4834 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
4835 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
4836 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
4837 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
4838 s@VA_LIST@DUMMY_VA_LIST@\n\
4839 s@_Va_LIST@_VA_LIST@",
4842 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4844 * Description of Stdio_Va_List_Clients fix
4846 tSCC zStdio_Va_List_ClientsName[] =
4847 "stdio_va_list_clients";
4850 * File name selection pattern
4852 tSCC zStdio_Va_List_ClientsList[] =
4853 "|com_err.h|cps.h|curses.h|krb5.h|lc_core.h|pfmt.h|wchar.h|curses_colr/curses.h|";
4855 * Machine/OS name selection pattern
4857 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
4860 * content bypass pattern - skip fix if pattern found
4862 tSCC zStdio_Va_List_ClientsBypass0[] =
4863 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
4864 tSCC zStdio_Va_List_ClientsBypass1[] =
4865 "include <stdarg\\.h>|#ifdef va_start";
4867 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
4868 static tTestDesc aStdio_Va_List_ClientsTests[] = {
4869 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
4870 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
4873 * Fix Command Arguments for Stdio_Va_List_Clients
4875 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
4876 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
4877 s@(va_list)&@(__gnuc_va_list)\\&@\n\
4878 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
4879 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
4880 s@ va_list@ __not_va_list__@\n\
4881 s@\\*va_list@*__not_va_list__@\n\
4882 s@ __va_list)@ __gnuc_va_list)@\n\
4883 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
4884 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
4885 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
4886 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
4887 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
4888 s@VA_LIST@DUMMY_VA_LIST@\n\
4889 s@_Va_LIST@_VA_LIST@",
4892 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4894 * Description of Strict_Ansi_Not fix
4896 tSCC zStrict_Ansi_NotName[] =
4900 * File name selection pattern
4902 #define zStrict_Ansi_NotList (char*)NULL
4904 * Machine/OS name selection pattern
4906 #define apzStrict_Ansi_NotMachs (const char**)NULL
4909 * content selection pattern - do fix if pattern found
4911 tSCC zStrict_Ansi_NotSelect0[] =
4912 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
4915 * content bypass pattern - skip fix if pattern found
4917 tSCC zStrict_Ansi_NotBypass0[] =
4918 "GNU and MIPS C compilers define __STDC__ differently";
4919 tSCC zStrict_Ansi_NotBypass1[] =
4920 "__SCO_VERSION__.*__STDC__ != 1";
4923 * perform the C function call test
4925 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
4927 #define STRICT_ANSI_NOT_TEST_CT 4
4928 static tTestDesc aStrict_Ansi_NotTests[] = {
4929 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
4930 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
4931 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
4932 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
4935 * Fix Command Arguments for Strict_Ansi_Not
4937 static const char* apzStrict_Ansi_NotPatch[] = {
4939 "%1 !defined(__STRICT_ANSI__)",
4942 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4944 * Description of Strict_Ansi_Not_Ctd fix
4946 tSCC zStrict_Ansi_Not_CtdName[] =
4947 "strict_ansi_not_ctd";
4950 * File name selection pattern
4952 tSCC zStrict_Ansi_Not_CtdList[] =
4953 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
4955 * Machine/OS name selection pattern
4957 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
4960 * content selection pattern - do fix if pattern found
4962 tSCC zStrict_Ansi_Not_CtdSelect0[] =
4963 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
4966 * perform the C function call test
4968 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
4970 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
4971 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
4972 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
4973 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
4976 * Fix Command Arguments for Strict_Ansi_Not_Ctd
4978 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
4980 "%1 !defined(__STRICT_ANSI__)",
4983 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4985 * Description of Strict_Ansi_Only fix
4987 tSCC zStrict_Ansi_OnlyName[] =
4991 * File name selection pattern
4993 #define zStrict_Ansi_OnlyList (char*)NULL
4995 * Machine/OS name selection pattern
4997 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
5000 * content selection pattern - do fix if pattern found
5002 tSCC zStrict_Ansi_OnlySelect0[] =
5003 "^([ \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)";
5006 * perform the C function call test
5008 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
5010 #define STRICT_ANSI_ONLY_TEST_CT 2
5011 static tTestDesc aStrict_Ansi_OnlyTests[] = {
5012 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
5013 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
5016 * Fix Command Arguments for Strict_Ansi_Only
5018 static const char* apzStrict_Ansi_OnlyPatch[] = {
5020 "%1 defined(__STRICT_ANSI__)",
5023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5025 * Description of Struct_File fix
5027 tSCC zStruct_FileName[] =
5031 * File name selection pattern
5033 tSCC zStruct_FileList[] =
5036 * Machine/OS name selection pattern
5038 #define apzStruct_FileMachs (const char**)NULL
5041 * content selection pattern - do fix if pattern found
5043 tSCC zStruct_FileSelect0[] =
5044 "^.*xdrstdio_create.*struct __file_s";
5046 #define STRUCT_FILE_TEST_CT 1
5047 static tTestDesc aStruct_FileTests[] = {
5048 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
5051 * Fix Command Arguments for Struct_File
5053 static const char* apzStruct_FilePatch[] = {
5055 "struct __file_s;\n\
5059 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5061 * Description of Struct_Sockaddr fix
5063 tSCC zStruct_SockaddrName[] =
5067 * File name selection pattern
5069 tSCC zStruct_SockaddrList[] =
5072 * Machine/OS name selection pattern
5074 #define apzStruct_SockaddrMachs (const char**)NULL
5077 * content selection pattern - do fix if pattern found
5079 tSCC zStruct_SockaddrSelect0[] =
5080 "^.*authdes_create.*struct sockaddr[^_]";
5083 * content bypass pattern - skip fix if pattern found
5085 tSCC zStruct_SockaddrBypass0[] =
5087 tSCC zStruct_SockaddrBypass1[] =
5088 "struct sockaddr;\n";
5090 #define STRUCT_SOCKADDR_TEST_CT 3
5091 static tTestDesc aStruct_SockaddrTests[] = {
5092 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
5093 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
5094 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
5097 * Fix Command Arguments for Struct_Sockaddr
5099 static const char* apzStruct_SockaddrPatch[] = {
5101 "struct sockaddr;\n\
5105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5107 * Description of Sun_Auth_Proto fix
5109 tSCC zSun_Auth_ProtoName[] =
5113 * File name selection pattern
5115 tSCC zSun_Auth_ProtoList[] =
5116 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
5118 * Machine/OS name selection pattern
5120 #define apzSun_Auth_ProtoMachs (const char**)NULL
5123 * content selection pattern - do fix if pattern found
5125 tSCC zSun_Auth_ProtoSelect0[] =
5126 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
5129 * content bypass pattern - skip fix if pattern found
5131 tSCC zSun_Auth_ProtoBypass0[] =
5134 #define SUN_AUTH_PROTO_TEST_CT 2
5135 static tTestDesc aSun_Auth_ProtoTests[] = {
5136 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
5137 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
5140 * Fix Command Arguments for Sun_Auth_Proto
5142 static const char* apzSun_Auth_ProtoPatch[] = {
5144 "#ifdef __cplusplus\n\
5149 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
5152 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5154 * Description of Sun_Bogus_Ifdef fix
5156 tSCC zSun_Bogus_IfdefName[] =
5160 * File name selection pattern
5162 tSCC zSun_Bogus_IfdefList[] =
5163 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
5165 * Machine/OS name selection pattern
5167 #define apzSun_Bogus_IfdefMachs (const char**)NULL
5170 * content selection pattern - do fix if pattern found
5172 tSCC zSun_Bogus_IfdefSelect0[] =
5173 "#ifdef(.*\\|\\|.*)";
5175 #define SUN_BOGUS_IFDEF_TEST_CT 1
5176 static tTestDesc aSun_Bogus_IfdefTests[] = {
5177 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
5180 * Fix Command Arguments for Sun_Bogus_Ifdef
5182 static const char* apzSun_Bogus_IfdefPatch[] = {
5187 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5189 * Description of Sun_Catmacro fix
5191 tSCC zSun_CatmacroName[] =
5195 * File name selection pattern
5197 tSCC zSun_CatmacroList[] =
5198 "|pixrect/memvar.h|";
5200 * Machine/OS name selection pattern
5202 #define apzSun_CatmacroMachs (const char**)NULL
5205 * content selection pattern - do fix if pattern found
5207 tSCC zSun_CatmacroSelect0[] =
5208 "^#define[ \t]+CAT\\(a,b\\).*";
5210 #define SUN_CATMACRO_TEST_CT 1
5211 static tTestDesc aSun_CatmacroTests[] = {
5212 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
5215 * Fix Command Arguments for Sun_Catmacro
5217 static const char* apzSun_CatmacroPatch[] = {
5220 # define CAT(a,b) a##b\n\
5226 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5228 * Description of Sun_Malloc fix
5230 tSCC zSun_MallocName[] =
5234 * File name selection pattern
5236 tSCC zSun_MallocList[] =
5239 * Machine/OS name selection pattern
5241 #define apzSun_MallocMachs (const char**)NULL
5244 * content bypass pattern - skip fix if pattern found
5246 tSCC zSun_MallocBypass0[] =
5247 "_CLASSIC_ANSI_TYPES";
5249 #define SUN_MALLOC_TEST_CT 1
5250 static tTestDesc aSun_MallocTests[] = {
5251 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
5254 * Fix Command Arguments for Sun_Malloc
5256 static const char* apzSun_MallocPatch[] = { "sed",
5257 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
5258 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
5259 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
5260 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
5261 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
5264 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5266 * Description of Sun_Rusers_Semi fix
5268 tSCC zSun_Rusers_SemiName[] =
5272 * File name selection pattern
5274 tSCC zSun_Rusers_SemiList[] =
5275 "|rpcsvc/rusers.h|";
5277 * Machine/OS name selection pattern
5279 #define apzSun_Rusers_SemiMachs (const char**)NULL
5282 * content selection pattern - do fix if pattern found
5284 tSCC zSun_Rusers_SemiSelect0[] =
5287 #define SUN_RUSERS_SEMI_TEST_CT 1
5288 static tTestDesc aSun_Rusers_SemiTests[] = {
5289 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
5292 * Fix Command Arguments for Sun_Rusers_Semi
5294 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
5295 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
5298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5300 * Description of Sun_Signal fix
5302 tSCC zSun_SignalName[] =
5306 * File name selection pattern
5308 tSCC zSun_SignalList[] =
5309 "|sys/signal.h|signal.h|";
5311 * Machine/OS name selection pattern
5313 #define apzSun_SignalMachs (const char**)NULL
5316 * content selection pattern - do fix if pattern found
5318 tSCC zSun_SignalSelect0[] =
5319 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
5321 #define SUN_SIGNAL_TEST_CT 1
5322 static tTestDesc aSun_SignalTests[] = {
5323 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
5326 * Fix Command Arguments for Sun_Signal
5328 static const char* apzSun_SignalPatch[] = {
5330 "#ifdef __cplusplus\n\
5331 void\t(*signal(...))(...);\n\
5337 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5339 * Description of Sunos_Strlen fix
5341 tSCC zSunos_StrlenName[] =
5345 * File name selection pattern
5347 tSCC zSunos_StrlenList[] =
5350 * Machine/OS name selection pattern
5352 #define apzSunos_StrlenMachs (const char**)NULL
5355 * content selection pattern - do fix if pattern found
5357 tSCC zSunos_StrlenSelect0[] =
5358 "int[ \t]*strlen\\(\\);(.*)";
5360 #define SUNOS_STRLEN_TEST_CT 1
5361 static tTestDesc aSunos_StrlenTests[] = {
5362 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
5365 * Fix Command Arguments for Sunos_Strlen
5367 static const char* apzSunos_StrlenPatch[] = {
5369 "__SIZE_TYPE__ strlen();%1",
5372 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5374 * Description of Svr4_Disable_Opt fix
5376 tSCC zSvr4_Disable_OptName[] =
5380 * File name selection pattern
5382 tSCC zSvr4_Disable_OptList[] =
5385 * Machine/OS name selection pattern
5387 #define apzSvr4_Disable_OptMachs (const char**)NULL
5390 * content selection pattern - do fix if pattern found
5392 tSCC zSvr4_Disable_OptSelect0[] =
5393 "#define.*__std_hdr_";
5395 #define SVR4_DISABLE_OPT_TEST_CT 1
5396 static tTestDesc aSvr4_Disable_OptTests[] = {
5397 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
5400 * Fix Command Arguments for Svr4_Disable_Opt
5402 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
5403 "-e", "/#define.*__std_hdr_/d",
5406 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5408 * Description of Svr4_Getcwd fix
5410 tSCC zSvr4_GetcwdName[] =
5414 * File name selection pattern
5416 tSCC zSvr4_GetcwdList[] =
5417 "|stdlib.h|unistd.h|prototypes.h|";
5419 * Machine/OS name selection pattern
5421 #define apzSvr4_GetcwdMachs (const char**)NULL
5424 * content selection pattern - do fix if pattern found
5426 tSCC zSvr4_GetcwdSelect0[] =
5427 "getcwd\\(char \\*, int\\)";
5429 #define SVR4_GETCWD_TEST_CT 1
5430 static tTestDesc aSvr4_GetcwdTests[] = {
5431 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
5434 * Fix Command Arguments for Svr4_Getcwd
5436 static const char* apzSvr4_GetcwdPatch[] = {
5438 "getcwd(char *, size_t)",
5441 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5443 * Description of Svr4_Krnl fix
5445 tSCC zSvr4_KrnlName[] =
5449 * File name selection pattern
5451 tSCC zSvr4_KrnlList[] =
5452 "|fs/rfs/rf_cache.h|sys/erec.h|sys/err.h|sys/char.h|sys/getpages.h|sys/map.h|sys/cmn_err.h|sys/kdebugger.h|";
5454 * Machine/OS name selection pattern
5456 tSCC* apzSvr4_KrnlMachs[] = {
5458 "i?86-sequent-ptx*",
5459 (const char*)NULL };
5462 * content bypass pattern - skip fix if pattern found
5464 tSCC zSvr4_KrnlBypass0[] =
5467 #define SVR4_KRNL_TEST_CT 1
5468 static tTestDesc aSvr4_KrnlTests[] = {
5469 { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, };
5472 * Fix Command Arguments for Svr4_Krnl
5474 static const char* apzSvr4_KrnlPatch[] = {
5477 "#endif /* _KERNEL */\n",
5480 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5482 * Description of Svr4_Profil fix
5484 tSCC zSvr4_ProfilName[] =
5488 * File name selection pattern
5490 tSCC zSvr4_ProfilList[] =
5491 "|stdlib.h|unistd.h|";
5493 * Machine/OS name selection pattern
5495 #define apzSvr4_ProfilMachs (const char**)NULL
5498 * content selection pattern - do fix if pattern found
5500 tSCC zSvr4_ProfilSelect0[] =
5501 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
5504 * content bypass pattern - skip fix if pattern found
5506 tSCC zSvr4_ProfilBypass0[] =
5509 #define SVR4_PROFIL_TEST_CT 2
5510 static tTestDesc aSvr4_ProfilTests[] = {
5511 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
5512 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
5515 * Fix Command Arguments for Svr4_Profil
5517 static const char* apzSvr4_ProfilPatch[] = {
5519 "profil(unsigned short *, size_t, int, unsigned int)",
5522 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5524 * Description of Svr4_Sighandler_Type fix
5526 tSCC zSvr4_Sighandler_TypeName[] =
5527 "svr4_sighandler_type";
5530 * File name selection pattern
5532 tSCC zSvr4_Sighandler_TypeList[] =
5535 * Machine/OS name selection pattern
5537 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
5540 * content selection pattern - do fix if pattern found
5542 tSCC zSvr4_Sighandler_TypeSelect0[] =
5543 "void *\\(\\*\\)\\(\\)";
5545 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
5546 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
5547 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
5550 * Fix Command Arguments for Svr4_Sighandler_Type
5552 static const char* apzSvr4_Sighandler_TypePatch[] = {
5557 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5559 * Description of Svr4_Undeclared_Getrnge fix
5561 tSCC zSvr4_Undeclared_GetrngeName[] =
5562 "svr4_undeclared_getrnge";
5565 * File name selection pattern
5567 tSCC zSvr4_Undeclared_GetrngeList[] =
5570 * Machine/OS name selection pattern
5572 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
5575 * content selection pattern - do fix if pattern found
5577 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
5581 * content bypass pattern - skip fix if pattern found
5583 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
5584 "static void getrnge";
5586 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
5587 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
5588 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
5589 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
5592 * Fix Command Arguments for Svr4_Undeclared_Getrnge
5594 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
5597 static int getrnge ();",
5598 "^static int[ \t]+size;",
5601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5603 * Description of Sysv68_String fix
5605 tSCC zSysv68_StringName[] =
5609 * File name selection pattern
5611 tSCC zSysv68_StringList[] =
5612 "|testing.h|string.h|";
5614 * Machine/OS name selection pattern
5616 #define apzSysv68_StringMachs (const char**)NULL
5619 * content bypass pattern - skip fix if pattern found
5621 tSCC zSysv68_StringBypass0[] =
5622 "_CLASSIC_ANSI_TYPES";
5624 #define SYSV68_STRING_TEST_CT 1
5625 static tTestDesc aSysv68_StringTests[] = {
5626 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
5629 * Fix Command Arguments for Sysv68_String
5631 static const char* apzSysv68_StringPatch[] = { "sed",
5632 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
5633 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
5634 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
5635 "-e", "/^extern char$/N",
5636 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
5637 "-e", "/^extern int$/N",
5638 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
5639 "-e", "/^\tstrncmp(),$/N",
5640 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
5641 extern unsigned int\\\n\
5645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5647 * Description of Sysz_Stdlib_For_Sun fix
5649 tSCC zSysz_Stdlib_For_SunName[] =
5650 "sysz_stdlib_for_sun";
5653 * File name selection pattern
5655 tSCC zSysz_Stdlib_For_SunList[] =
5658 * Machine/OS name selection pattern
5660 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
5663 * content selection pattern - do fix if pattern found
5665 tSCC zSysz_Stdlib_For_SunSelect0[] =
5666 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
5669 * content bypass pattern - skip fix if pattern found
5671 tSCC zSysz_Stdlib_For_SunBypass0[] =
5672 "_CLASSIC_ANSI_TYPES";
5674 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
5675 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
5676 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
5677 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
5680 * Fix Command Arguments for Sysz_Stdlib_For_Sun
5682 static const char* apzSysz_Stdlib_For_SunPatch[] = {
5687 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5689 * Description of Thread_Keyword fix
5691 tSCC zThread_KeywordName[] =
5695 * File name selection pattern
5697 tSCC zThread_KeywordList[] =
5698 "|pthread.h|bits/sigthread.h|";
5700 * Machine/OS name selection pattern
5702 #define apzThread_KeywordMachs (const char**)NULL
5705 * content selection pattern - do fix if pattern found
5707 tSCC zThread_KeywordSelect0[] =
5708 "([* ])__thread([,)])";
5710 #define THREAD_KEYWORD_TEST_CT 1
5711 static tTestDesc aThread_KeywordTests[] = {
5712 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
5715 * Fix Command Arguments for Thread_Keyword
5717 static const char* apzThread_KeywordPatch[] = {
5722 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5724 * Description of Tinfo_Cplusplus fix
5726 tSCC zTinfo_CplusplusName[] =
5730 * File name selection pattern
5732 tSCC zTinfo_CplusplusList[] =
5735 * Machine/OS name selection pattern
5737 #define apzTinfo_CplusplusMachs (const char**)NULL
5740 * content selection pattern - do fix if pattern found
5742 tSCC zTinfo_CplusplusSelect0[] =
5745 #define TINFO_CPLUSPLUS_TEST_CT 1
5746 static tTestDesc aTinfo_CplusplusTests[] = {
5747 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
5750 * Fix Command Arguments for Tinfo_Cplusplus
5752 static const char* apzTinfo_CplusplusPatch[] = {
5757 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5759 * Description of Ultrix_Atexit_Param fix
5761 tSCC zUltrix_Atexit_ParamName[] =
5762 "ultrix_atexit_param";
5765 * File name selection pattern
5767 tSCC zUltrix_Atexit_ParamList[] =
5770 * Machine/OS name selection pattern
5772 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
5775 * content selection pattern - do fix if pattern found
5777 tSCC zUltrix_Atexit_ParamSelect0[] =
5778 "atexit\\(.*\\(\\)";
5780 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
5781 static tTestDesc aUltrix_Atexit_ParamTests[] = {
5782 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
5785 * Fix Command Arguments for Ultrix_Atexit_Param
5787 static const char* apzUltrix_Atexit_ParamPatch[] = {
5789 "atexit( void (*__func)( void )",
5792 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5794 * Description of Ultrix_Atof_Param fix
5796 tSCC zUltrix_Atof_ParamName[] =
5797 "ultrix_atof_param";
5800 * File name selection pattern
5802 tSCC zUltrix_Atof_ParamList[] =
5805 * Machine/OS name selection pattern
5807 #define apzUltrix_Atof_ParamMachs (const char**)NULL
5810 * content selection pattern - do fix if pattern found
5812 tSCC zUltrix_Atof_ParamSelect0[] =
5813 "atof\\([ \t]*char";
5815 #define ULTRIX_ATOF_PARAM_TEST_CT 1
5816 static tTestDesc aUltrix_Atof_ParamTests[] = {
5817 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
5820 * Fix Command Arguments for Ultrix_Atof_Param
5822 static const char* apzUltrix_Atof_ParamPatch[] = {
5827 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5829 * Description of Ultrix_Const fix
5831 tSCC zUltrix_ConstName[] =
5835 * File name selection pattern
5837 tSCC zUltrix_ConstList[] =
5840 * Machine/OS name selection pattern
5842 #define apzUltrix_ConstMachs (const char**)NULL
5845 * content selection pattern - do fix if pattern found
5847 tSCC zUltrix_ConstSelect0[] =
5848 "perror\\( char \\*";
5850 #define ULTRIX_CONST_TEST_CT 1
5851 static tTestDesc aUltrix_ConstTests[] = {
5852 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
5855 * Fix Command Arguments for Ultrix_Const
5857 static const char* apzUltrix_ConstPatch[] = {
5860 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
5863 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5865 * Description of Ultrix_Const2 fix
5867 tSCC zUltrix_Const2Name[] =
5871 * File name selection pattern
5873 tSCC zUltrix_Const2List[] =
5876 * Machine/OS name selection pattern
5878 #define apzUltrix_Const2Machs (const char**)NULL
5881 * content selection pattern - do fix if pattern found
5883 tSCC zUltrix_Const2Select0[] =
5884 "\\*fopen\\( char \\*";
5886 #define ULTRIX_CONST2_TEST_CT 1
5887 static tTestDesc aUltrix_Const2Tests[] = {
5888 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
5891 * Fix Command Arguments for Ultrix_Const2
5893 static const char* apzUltrix_Const2Patch[] = {
5895 "%1( const char *%3, const char *",
5896 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
5899 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5901 * Description of Ultrix_Const3 fix
5903 tSCC zUltrix_Const3Name[] =
5907 * File name selection pattern
5909 tSCC zUltrix_Const3List[] =
5912 * Machine/OS name selection pattern
5914 #define apzUltrix_Const3Machs (const char**)NULL
5917 * content selection pattern - do fix if pattern found
5919 tSCC zUltrix_Const3Select0[] =
5920 "fdopen\\( .*, char \\*";
5922 #define ULTRIX_CONST3_TEST_CT 1
5923 static tTestDesc aUltrix_Const3Tests[] = {
5924 { TT_EGREP, zUltrix_Const3Select0, (regex_t*)NULL }, };
5927 * Fix Command Arguments for Ultrix_Const3
5929 static const char* apzUltrix_Const3Patch[] = {
5932 "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
5935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5937 * Description of Ultrix_Fix_Fixproto fix
5939 tSCC zUltrix_Fix_FixprotoName[] =
5940 "ultrix_fix_fixproto";
5943 * File name selection pattern
5945 tSCC zUltrix_Fix_FixprotoList[] =
5948 * Machine/OS name selection pattern
5950 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
5953 * content selection pattern - do fix if pattern found
5955 tSCC zUltrix_Fix_FixprotoSelect0[] =
5958 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
5959 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
5960 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
5963 * Fix Command Arguments for Ultrix_Fix_Fixproto
5965 static const char* apzUltrix_Fix_FixprotoPatch[] = {
5969 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
5972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5974 * Description of Ultrix_Ifdef fix
5976 tSCC zUltrix_IfdefName[] =
5980 * File name selection pattern
5982 tSCC zUltrix_IfdefList[] =
5985 * Machine/OS name selection pattern
5987 #define apzUltrix_IfdefMachs (const char**)NULL
5990 * content selection pattern - do fix if pattern found
5992 tSCC zUltrix_IfdefSelect0[] =
5993 "^#ifdef KERNEL[ \t]+&&";
5995 #define ULTRIX_IFDEF_TEST_CT 1
5996 static tTestDesc aUltrix_IfdefTests[] = {
5997 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
6000 * Fix Command Arguments for Ultrix_Ifdef
6002 static const char* apzUltrix_IfdefPatch[] = {
6004 "#if defined(KERNEL) &&",
6007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6009 * Description of Ultrix_Locale fix
6011 tSCC zUltrix_LocaleName[] =
6015 * File name selection pattern
6017 tSCC zUltrix_LocaleList[] =
6020 * Machine/OS name selection pattern
6022 #define apzUltrix_LocaleMachs (const char**)NULL
6025 * content selection pattern - do fix if pattern found
6027 tSCC zUltrix_LocaleSelect0[] =
6028 "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
6030 #define ULTRIX_LOCALE_TEST_CT 1
6031 static tTestDesc aUltrix_LocaleTests[] = {
6032 { TT_EGREP, zUltrix_LocaleSelect0, (regex_t*)NULL }, };
6035 * Fix Command Arguments for Ultrix_Locale
6037 static const char* apzUltrix_LocalePatch[] = {
6041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6043 * Description of Ultrix_Math_Ifdef fix
6045 tSCC zUltrix_Math_IfdefName[] =
6046 "ultrix_math_ifdef";
6049 * File name selection pattern
6051 tSCC zUltrix_Math_IfdefList[] =
6052 "|sys/limits.h|float.h|math.h|";
6054 * Machine/OS name selection pattern
6056 #define apzUltrix_Math_IfdefMachs (const char**)NULL
6059 * content selection pattern - do fix if pattern found
6061 tSCC zUltrix_Math_IfdefSelect0[] =
6062 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
6064 #define ULTRIX_MATH_IFDEF_TEST_CT 1
6065 static tTestDesc aUltrix_Math_IfdefTests[] = {
6066 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
6069 * Fix Command Arguments for Ultrix_Math_Ifdef
6071 static const char* apzUltrix_Math_IfdefPatch[] = {
6076 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6078 * Description of Ultrix_Nested_Ioctl fix
6080 tSCC zUltrix_Nested_IoctlName[] =
6081 "ultrix_nested_ioctl";
6084 * File name selection pattern
6086 tSCC zUltrix_Nested_IoctlList[] =
6089 * Machine/OS name selection pattern
6091 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
6094 * content selection pattern - do fix if pattern found
6096 tSCC zUltrix_Nested_IoctlSelect0[] =
6097 "^/\\* #define SIOCSCREEN";
6099 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
6100 static tTestDesc aUltrix_Nested_IoctlTests[] = {
6101 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
6104 * Fix Command Arguments for Ultrix_Nested_Ioctl
6106 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
6107 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
6110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6112 * Description of Ultrix_Nested_Svc fix
6114 tSCC zUltrix_Nested_SvcName[] =
6115 "ultrix_nested_svc";
6118 * File name selection pattern
6120 tSCC zUltrix_Nested_SvcList[] =
6123 * Machine/OS name selection pattern
6125 #define apzUltrix_Nested_SvcMachs (const char**)NULL
6128 * content selection pattern - do fix if pattern found
6130 tSCC zUltrix_Nested_SvcSelect0[] =
6131 "^ \\*[ \t]*int protocol; */\\*";
6133 #define ULTRIX_NESTED_SVC_TEST_CT 1
6134 static tTestDesc aUltrix_Nested_SvcTests[] = {
6135 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
6138 * Fix Command Arguments for Ultrix_Nested_Svc
6140 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
6141 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
6144 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6146 * Description of Ultrix_Stat fix
6148 tSCC zUltrix_StatName[] =
6152 * File name selection pattern
6154 tSCC zUltrix_StatList[] =
6157 * Machine/OS name selection pattern
6159 #define apzUltrix_StatMachs (const char**)NULL
6162 * content selection pattern - do fix if pattern found
6164 tSCC zUltrix_StatSelect0[] =
6165 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
6167 #define ULTRIX_STAT_TEST_CT 1
6168 static tTestDesc aUltrix_StatTests[] = {
6169 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
6172 * Fix Command Arguments for Ultrix_Stat
6174 static const char* apzUltrix_StatPatch[] = { "sed",
6175 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
6177 /* macro to test for symbolic link */\\\n\
6178 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
6179 "-e", "/^[ \t]*fstat(),$/a\\\n\
6183 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6185 * Description of Ultrix_Static fix
6187 tSCC zUltrix_StaticName[] =
6191 * File name selection pattern
6193 tSCC zUltrix_StaticList[] =
6196 * Machine/OS name selection pattern
6198 #define apzUltrix_StaticMachs (const char**)NULL
6201 * content selection pattern - do fix if pattern found
6203 tSCC zUltrix_StaticSelect0[] =
6204 "#include \"r[34]_cpu";
6206 #define ULTRIX_STATIC_TEST_CT 1
6207 static tTestDesc aUltrix_StaticTests[] = {
6208 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
6211 * Fix Command Arguments for Ultrix_Static
6213 static const char* apzUltrix_StaticPatch[] = { "sed",
6214 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
6215 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
6216 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
6219 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6221 * Description of Ultrix_Stdlib fix
6223 tSCC zUltrix_StdlibName[] =
6227 * File name selection pattern
6229 tSCC zUltrix_StdlibList[] =
6232 * Machine/OS name selection pattern
6234 #define apzUltrix_StdlibMachs (const char**)NULL
6237 * content selection pattern - do fix if pattern found
6239 tSCC zUltrix_StdlibSelect0[] =
6240 "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
6242 #define ULTRIX_STDLIB_TEST_CT 1
6243 static tTestDesc aUltrix_StdlibTests[] = {
6244 { TT_EGREP, zUltrix_StdlibSelect0, (regex_t*)NULL }, };
6247 * Fix Command Arguments for Ultrix_Stdlib
6249 static const char* apzUltrix_StdlibPatch[] = { "sed",
6250 "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
6251 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
6252 void\t\tunsetenv( const char *__name );\\\n\
6253 int\t\tputenv( char *__s );\n",
6254 "-e", "/^char.*getenv();.*$/a\\\n\
6256 void\tunsetenv();\\\n\
6260 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6262 * Description of Ultrix_Strings fix
6264 tSCC zUltrix_StringsName[] =
6268 * File name selection pattern
6270 tSCC zUltrix_StringsList[] =
6273 * Machine/OS name selection pattern
6275 #define apzUltrix_StringsMachs (const char**)NULL
6278 * content selection pattern - do fix if pattern found
6280 tSCC zUltrix_StringsSelect0[] =
6281 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
6283 #define ULTRIX_STRINGS_TEST_CT 1
6284 static tTestDesc aUltrix_StringsTests[] = {
6285 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
6288 * Fix Command Arguments for Ultrix_Strings
6290 static const char* apzUltrix_StringsPatch[] = {
6294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6296 * Description of Ultrix_Strings2 fix
6298 tSCC zUltrix_Strings2Name[] =
6302 * File name selection pattern
6304 tSCC zUltrix_Strings2List[] =
6307 * Machine/OS name selection pattern
6309 #define apzUltrix_Strings2Machs (const char**)NULL
6312 * content selection pattern - do fix if pattern found
6314 tSCC zUltrix_Strings2Select0[] =
6315 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
6317 #define ULTRIX_STRINGS2_TEST_CT 1
6318 static tTestDesc aUltrix_Strings2Tests[] = {
6319 { TT_EGREP, zUltrix_Strings2Select0, (regex_t*)NULL }, };
6322 * Fix Command Arguments for Ultrix_Strings2
6324 static const char* apzUltrix_Strings2Patch[] = { "sed",
6325 "-e", "/^.*strncmp( const .* );.*/a\\\n\
6328 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
6329 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
6330 "-e", "/^.*strncmp();.*/a\\\n\
6332 \tstrcasecmp(),\\\n\
6333 \tstrncasecmp();\n",
6336 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6338 * Description of Ultrix_Sys_Time fix
6340 tSCC zUltrix_Sys_TimeName[] =
6344 * File name selection pattern
6346 tSCC zUltrix_Sys_TimeList[] =
6349 * Machine/OS name selection pattern
6351 #define apzUltrix_Sys_TimeMachs (const char**)NULL
6354 * content selection pattern - do fix if pattern found
6356 tSCC zUltrix_Sys_TimeSelect0[] =
6357 "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
6359 #define ULTRIX_SYS_TIME_TEST_CT 1
6360 static tTestDesc aUltrix_Sys_TimeTests[] = {
6361 { TT_EGREP, zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
6364 * Fix Command Arguments for Ultrix_Sys_Time
6366 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
6367 "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
6369 extern int adjtime(struct timeval *, struct timeval *);\\\n\
6370 extern int getitimer(int, struct itimerval *);\\\n\
6371 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
6372 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
6373 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
6374 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
6375 extern int stime(const time_t *);\\\n\
6376 extern int utimes(const char *, const struct timeval[2]);\\\n\
6377 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
6378 "-e", "/^extern.*double.*difftime();.*$/a\\\n\
6379 extern\tint adjtime();\\\n\
6380 extern\tint getitimer();\\\n\
6381 extern\tint setitimer();\\\n\
6382 extern\tint gettimeofday();\\\n\
6383 extern\tint settimeofday();\\\n\
6384 extern\tvoid profil();\\\n\
6385 extern\tint stime();\\\n\
6386 extern\tint utimes();\\\n\
6387 extern\tint select();\n",
6390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6392 * Description of Ultrix_Unistd fix
6394 tSCC zUltrix_UnistdName[] =
6398 * File name selection pattern
6400 tSCC zUltrix_UnistdList[] =
6403 * Machine/OS name selection pattern
6405 #define apzUltrix_UnistdMachs (const char**)NULL
6408 * content selection pattern - do fix if pattern found
6410 tSCC zUltrix_UnistdSelect0[] =
6411 "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
6413 #define ULTRIX_UNISTD_TEST_CT 1
6414 static tTestDesc aUltrix_UnistdTests[] = {
6415 { TT_EGREP, zUltrix_UnistdSelect0, (regex_t*)NULL }, };
6418 * Fix Command Arguments for Ultrix_Unistd
6420 static const char* apzUltrix_UnistdPatch[] = { "sed",
6421 "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
6422 \tgetpagesize(),\n",
6423 "-e", "/^[ \t]*fork(),.*$/a\\\n\
6427 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6429 * Description of Unicosmk_Restrict fix
6431 tSCC zUnicosmk_RestrictName[] =
6432 "unicosmk_restrict";
6435 * File name selection pattern
6437 tSCC zUnicosmk_RestrictList[] =
6438 "|stdio.h|stdlib.h|wchar.h|";
6440 * Machine/OS name selection pattern
6442 tSCC* apzUnicosmk_RestrictMachs[] = {
6444 (const char*)NULL };
6447 * content selection pattern - do fix if pattern found
6449 tSCC zUnicosmk_RestrictSelect0[] =
6450 "(\\*[ \t]*)restrict([ \t]+)";
6452 #define UNICOSMK_RESTRICT_TEST_CT 1
6453 static tTestDesc aUnicosmk_RestrictTests[] = {
6454 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
6457 * Fix Command Arguments for Unicosmk_Restrict
6459 static const char* apzUnicosmk_RestrictPatch[] = {
6464 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6466 * Description of Uw7_Byteorder_Fix fix
6468 tSCC zUw7_Byteorder_FixName[] =
6469 "uw7_byteorder_fix";
6472 * File name selection pattern
6474 tSCC zUw7_Byteorder_FixList[] =
6477 * Machine/OS name selection pattern
6479 tSCC* apzUw7_Byteorder_FixMachs[] = {
6483 "i?86-*-solaris2.[0-4]",
6484 "powerpcle-*-solaris2.[0-4]",
6485 "sparc-*-solaris2.[0-4]",
6486 (const char*)NULL };
6489 * content selection pattern - do fix if pattern found
6491 tSCC zUw7_Byteorder_FixSelect0[] =
6495 * perform the 'test' shell command - do fix on success
6497 tSCC zUw7_Byteorder_FixTest0[] =
6498 "-f sys/byteorder.h";
6500 #define UW7_BYTEORDER_FIX_TEST_CT 2
6501 static tTestDesc aUw7_Byteorder_FixTests[] = {
6502 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
6503 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
6506 * Fix Command Arguments for Uw7_Byteorder_Fix
6508 static const char* apzUw7_Byteorder_FixPatch[] = {
6511 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
6514 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6516 * Description of Va_I960_Macro fix
6518 tSCC zVa_I960_MacroName[] =
6522 * File name selection pattern
6524 tSCC zVa_I960_MacroList[] =
6525 "|arch/i960/archI960.h|";
6527 * Machine/OS name selection pattern
6529 #define apzVa_I960_MacroMachs (const char**)NULL
6532 * content selection pattern - do fix if pattern found
6534 tSCC zVa_I960_MacroSelect0[] =
6535 "__(vsiz|vali|vpad|alignof__)";
6537 #define VA_I960_MACRO_TEST_CT 1
6538 static tTestDesc aVa_I960_MacroTests[] = {
6539 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
6542 * Fix Command Arguments for Va_I960_Macro
6544 static const char* apzVa_I960_MacroPatch[] = {
6549 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6551 * Description of Void_Null fix
6553 tSCC zVoid_NullName[] =
6557 * File name selection pattern
6559 tSCC zVoid_NullList[] =
6560 "|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|";
6562 * Machine/OS name selection pattern
6564 #define apzVoid_NullMachs (const char**)NULL
6567 * content selection pattern - do fix if pattern found
6569 tSCC zVoid_NullSelect0[] =
6570 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
6573 * content bypass pattern - skip fix if pattern found
6575 tSCC zVoid_NullBypass0[] =
6578 #define VOID_NULL_TEST_CT 2
6579 static tTestDesc aVoid_NullTests[] = {
6580 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
6581 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
6584 * Fix Command Arguments for Void_Null
6586 static const char* apzVoid_NullPatch[] = {
6591 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6593 * Description of Vxworks_Gcc_Problem fix
6595 tSCC zVxworks_Gcc_ProblemName[] =
6596 "vxworks_gcc_problem";
6599 * File name selection pattern
6601 tSCC zVxworks_Gcc_ProblemList[] =
6602 "|types/vxTypesBase.h|";
6604 * Machine/OS name selection pattern
6606 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
6609 * content selection pattern - do fix if pattern found
6611 tSCC zVxworks_Gcc_ProblemSelect0[] =
6612 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
6614 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
6615 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
6616 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
6619 * Fix Command Arguments for Vxworks_Gcc_Problem
6621 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
6622 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
6623 "-e", "/[ \t]size_t/i\\\n\
6624 #ifndef _GCC_SIZE_T\\\n\
6625 #define _GCC_SIZE_T\n",
6626 "-e", "/[ \t]size_t/a\\\n\
6628 "-e", "/[ \t]ptrdiff_t/i\\\n\
6629 #ifndef _GCC_PTRDIFF_T\\\n\
6630 #define _GCC_PTRDIFF_T\n",
6631 "-e", "/[ \t]ptrdiff_t/a\\\n\
6633 "-e", "/[ \t]wchar_t/i\\\n\
6634 #ifndef _GCC_WCHAR_T\\\n\
6635 #define _GCC_WCHAR_T\n",
6636 "-e", "/[ \t]wchar_t/a\\\n\
6640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6642 * Description of Vxworks_Needs_Vxtypes fix
6644 tSCC zVxworks_Needs_VxtypesName[] =
6645 "vxworks_needs_vxtypes";
6648 * File name selection pattern
6650 tSCC zVxworks_Needs_VxtypesList[] =
6653 * Machine/OS name selection pattern
6655 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
6658 * content selection pattern - do fix if pattern found
6660 tSCC zVxworks_Needs_VxtypesSelect0[] =
6661 "uint_t([ \t]+_clocks_per_sec)";
6663 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
6664 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
6665 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
6668 * Fix Command Arguments for Vxworks_Needs_Vxtypes
6670 static const char* apzVxworks_Needs_VxtypesPatch[] = {
6675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6677 * Description of Vxworks_Needs_Vxworks fix
6679 tSCC zVxworks_Needs_VxworksName[] =
6680 "vxworks_needs_vxworks";
6683 * File name selection pattern
6685 tSCC zVxworks_Needs_VxworksList[] =
6688 * Machine/OS name selection pattern
6690 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
6693 * content selection pattern - do fix if pattern found
6695 tSCC zVxworks_Needs_VxworksSelect0[] =
6696 "#[ \t]define[ \t]+__INCstath";
6699 * perform the 'test' shell command - do fix on success
6701 tSCC zVxworks_Needs_VxworksTest0[] =
6702 " -r types/vxTypesOld.h";
6703 tSCC zVxworks_Needs_VxworksTest1[] =
6704 " -n \"`egrep '#include' $file`\"";
6705 tSCC zVxworks_Needs_VxworksTest2[] =
6706 " -n \"`egrep ULONG $file`\"";
6708 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
6709 static tTestDesc aVxworks_Needs_VxworksTests[] = {
6710 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
6711 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
6712 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
6713 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
6716 * Fix Command Arguments for Vxworks_Needs_Vxworks
6718 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
6719 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
6720 #include <types/vxTypesOld.h>\n",
6723 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6725 * Description of Vxworks_Time fix
6727 tSCC zVxworks_TimeName[] =
6731 * File name selection pattern
6733 tSCC zVxworks_TimeList[] =
6736 * Machine/OS name selection pattern
6738 #define apzVxworks_TimeMachs (const char**)NULL
6741 * content selection pattern - do fix if pattern found
6743 tSCC zVxworks_TimeSelect0[] =
6744 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
6747 * perform the 'test' shell command - do fix on success
6749 tSCC zVxworks_TimeTest0[] =
6752 #define VXWORKS_TIME_TEST_CT 2
6753 static tTestDesc aVxworks_TimeTests[] = {
6754 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
6755 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
6758 * Fix Command Arguments for Vxworks_Time
6760 static const char* apzVxworks_TimePatch[] = {
6762 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
6763 #ifdef __cplusplus\n\
6764 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
6766 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
6768 #define __gcc_VOIDFUNCPTR_defined\n\
6770 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
6773 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6775 * Description of Windiss_Math1 fix
6777 tSCC zWindiss_Math1Name[] =
6781 * File name selection pattern
6783 tSCC zWindiss_Math1List[] =
6786 * Machine/OS name selection pattern
6788 tSCC* apzWindiss_Math1Machs[] = {
6790 (const char*)NULL };
6791 #define WINDISS_MATH1_TEST_CT 0
6792 #define aWindiss_Math1Tests (tTestDesc*)NULL
6795 * Fix Command Arguments for Windiss_Math1
6797 static const char* apzWindiss_Math1Patch[] = { "sed",
6798 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
6801 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6803 * Description of Windiss_Math2 fix
6805 tSCC zWindiss_Math2Name[] =
6809 * File name selection pattern
6811 tSCC zWindiss_Math2List[] =
6814 * Machine/OS name selection pattern
6816 tSCC* apzWindiss_Math2Machs[] = {
6818 (const char*)NULL };
6819 #define WINDISS_MATH2_TEST_CT 0
6820 #define aWindiss_Math2Tests (tTestDesc*)NULL
6823 * Fix Command Arguments for Windiss_Math2
6825 static const char* apzWindiss_Math2Patch[] = { "sed",
6826 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
6829 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6831 * Description of Windiss_Valist fix
6833 tSCC zWindiss_ValistName[] =
6837 * File name selection pattern
6839 #define zWindiss_ValistList (char*)NULL
6841 * Machine/OS name selection pattern
6843 tSCC* apzWindiss_ValistMachs[] = {
6845 (const char*)NULL };
6848 * content selection pattern - do fix if pattern found
6850 tSCC zWindiss_ValistSelect0[] =
6851 "(#include.*)diab/va_list.h";
6853 #define WINDISS_VALIST_TEST_CT 1
6854 static tTestDesc aWindiss_ValistTests[] = {
6855 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
6858 * Fix Command Arguments for Windiss_Valist
6860 static const char* apzWindiss_ValistPatch[] = { "sed",
6861 "-e", "s|diab/va_list.h|stdarg.h|",
6864 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6866 * Description of X11_Class fix
6868 tSCC zX11_ClassName[] =
6872 * File name selection pattern
6874 tSCC zX11_ClassList[] =
6877 * Machine/OS name selection pattern
6879 #define apzX11_ClassMachs (const char**)NULL
6882 * content selection pattern - do fix if pattern found
6884 tSCC zX11_ClassSelect0[] =
6885 "^([ \t]*char \\*)class;(.*)";
6888 * content bypass pattern - skip fix if pattern found
6890 tSCC zX11_ClassBypass0[] =
6893 #define X11_CLASS_TEST_CT 2
6894 static tTestDesc aX11_ClassTests[] = {
6895 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
6896 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
6899 * Fix Command Arguments for X11_Class
6901 static const char* apzX11_ClassPatch[] = {
6903 "#ifdef __cplusplus\n\
6910 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6912 * Description of X11_Class_Usage fix
6914 tSCC zX11_Class_UsageName[] =
6918 * File name selection pattern
6920 tSCC zX11_Class_UsageList[] =
6921 "|Xm/BaseClassI.h|";
6923 * Machine/OS name selection pattern
6925 #define apzX11_Class_UsageMachs (const char**)NULL
6928 * content selection pattern - do fix if pattern found
6930 tSCC zX11_Class_UsageSelect0[] =
6934 * content bypass pattern - skip fix if pattern found
6936 tSCC zX11_Class_UsageBypass0[] =
6939 #define X11_CLASS_USAGE_TEST_CT 2
6940 static tTestDesc aX11_Class_UsageTests[] = {
6941 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
6942 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
6945 * Fix Command Arguments for X11_Class_Usage
6947 static const char* apzX11_Class_UsagePatch[] = {
6952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6954 * Description of X11_New fix
6956 tSCC zX11_NewName[] =
6960 * File name selection pattern
6962 tSCC zX11_NewList[] =
6965 * Machine/OS name selection pattern
6967 #define apzX11_NewMachs (const char**)NULL
6970 * content bypass pattern - skip fix if pattern found
6972 tSCC zX11_NewBypass0[] =
6975 #define X11_NEW_TEST_CT 1
6976 static tTestDesc aX11_NewTests[] = {
6977 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
6980 * Fix Command Arguments for X11_New
6982 static const char* apzX11_NewPatch[] = { "sed",
6983 "-e", "/Widget\told, new;/i\\\n\
6984 #ifdef __cplusplus\\\n\
6985 \tWidget\told, c_new;\\\n\
6987 "-e", "/Widget\told, new;/a\\\n\
6989 "-e", "s/Widget new,/Widget c_new,/g",
6992 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6994 * Description of X11_Sprintf fix
6996 tSCC zX11_SprintfName[] =
7000 * File name selection pattern
7002 tSCC zX11_SprintfList[] =
7003 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
7005 * Machine/OS name selection pattern
7007 #define apzX11_SprintfMachs (const char**)NULL
7010 * content selection pattern - do fix if pattern found
7012 tSCC zX11_SprintfSelect0[] =
7013 "^extern char \\*\tsprintf\\(\\);$";
7015 #define X11_SPRINTF_TEST_CT 1
7016 static tTestDesc aX11_SprintfTests[] = {
7017 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
7020 * Fix Command Arguments for X11_Sprintf
7022 static const char* apzX11_SprintfPatch[] = {
7024 "#ifndef __STDC__\n\
7026 #endif /* !defined __STDC__ */",
7030 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7034 #define REGEX_COUNT 205
7035 #define MACH_LIST_SIZE_LIMIT 261
7036 #define FIX_COUNT 176
7039 * Enumerate the fixes
7042 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
7043 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
7044 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
7045 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
7046 AAB_SUN_MEMCPY_FIXIDX,
7047 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
7048 AAB_ULTRIX_LIMITS_FIXIDX,
7049 AAB_ULTRIX_MEMORY_FIXIDX,
7050 AAB_ULTRIX_STRING_FIXIDX,
7052 AIX_SYSMACHINE_FIXIDX,
7054 AIX_SYSWAIT_2_FIXIDX,
7055 AIX_VOLATILE_FIXIDX,
7056 ALPHA___ASSERT_FIXIDX,
7057 ALPHA___EXTERN_PREFIX_FIXIDX,
7058 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
7059 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
7060 ALPHA_ASSERT_FIXIDX,
7061 ALPHA_BAD_LVAL_FIXIDX,
7062 ALPHA_GETOPT_FIXIDX,
7063 ALPHA_PARENS_FIXIDX,
7064 ALPHA_PTHREAD_FIXIDX,
7065 ALPHA_PTHREAD_GCC_FIXIDX,
7068 AVOID_BOOL_DEFINE_FIXIDX,
7069 AVOID_BOOL_TYPE_FIXIDX,
7070 AVOID_WCHAR_T_TYPE_FIXIDX,
7071 BAD_STRUCT_TERM_FIXIDX,
7073 BROKEN_ASSERT_STDIO_FIXIDX,
7074 BROKEN_ASSERT_STDLIB_FIXIDX,
7076 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
7077 CTRL_QUOTES_DEF_FIXIDX,
7078 CTRL_QUOTES_USE_FIXIDX,
7080 DARWIN_GCC4_BREAKAGE_FIXIDX,
7081 DARWIN_PRIVATE_EXTERN_FIXIDX,
7082 DEC_INTERN_ASM_FIXIDX,
7083 DJGPP_WCHAR_H_FIXIDX,
7085 EXCEPTION_STRUCTURE_FIXIDX,
7086 FREEBSD_GCC3_BREAKAGE_FIXIDX,
7087 FREEBSD_GCC4_BREAKAGE_FIXIDX,
7091 HPUX10_CPP_POW_INLINE_FIXIDX,
7092 HPUX11_CPP_POW_INLINE_FIXIDX,
7093 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
7094 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
7095 HPUX10_STDIO_DECLARATIONS_FIXIDX,
7097 HPUX11_FABSF_FIXIDX,
7098 HPUX11_SIZE_T_FIXIDX,
7099 HPUX11_SNPRINTF_FIXIDX,
7100 HPUX11_UINT32_C_FIXIDX,
7101 HPUX11_VSNPRINTF_FIXIDX,
7102 HPUX8_BOGUS_INLINES_FIXIDX,
7103 HPUX_CTYPE_MACROS_FIXIDX,
7104 HPUX_LONG_DOUBLE_FIXIDX,
7105 HPUX_SYSTIME_FIXIDX,
7106 INT_ABORT_FREE_AND_EXIT_FIXIDX,
7107 IO_QUOTES_DEF_FIXIDX,
7108 IO_QUOTES_USE_FIXIDX,
7109 IP_MISSING_SEMI_FIXIDX,
7110 IRIX___RESTRICT_FIXIDX,
7111 IRIX___GENERIC1_FIXIDX,
7112 IRIX___GENERIC2_FIXIDX,
7113 IRIX_ASM_APOSTROPHE_FIXIDX,
7114 IRIX_LIMITS_CONST_FIXIDX,
7115 IRIX_SOCKLEN_T_FIXIDX,
7116 IRIX_STDIO_VA_LIST_FIXIDX,
7117 IRIX_WCSFTIME_FIXIDX,
7119 ISC_OMITS_WITH_STDC_FIXIDX,
7120 KANDR_CONCAT_FIXIDX,
7121 LIBC1_G_VA_LIST_FIXIDX,
7122 LIBC1_IFDEFD_MEMX_FIXIDX,
7123 LINUX_IA64_UCONTEXT_FIXIDX,
7124 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
7125 LYNXOS_MISSING_PUTENV_FIXIDX,
7126 MACHINE_ANSI_H_VA_LIST_FIXIDX,
7127 MACHINE_NAME_FIXIDX,
7128 MATH_EXCEPTION_FIXIDX,
7129 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
7130 NESTED_AUTH_DES_FIXIDX,
7131 NESTED_MOTOROLA_FIXIDX,
7132 NESTED_SYS_LIMITS_FIXIDX,
7133 NETBSD_EXTRA_SEMICOLON_FIXIDX,
7134 NEXT_MATH_PREFIX_FIXIDX,
7135 NEXT_TEMPLATE_FIXIDX,
7136 NEXT_VOLITILE_FIXIDX,
7137 NEXT_WAIT_UNION_FIXIDX,
7138 NODEENT_SYNTAX_FIXIDX,
7139 OBSTACK_LVALUE_CAST_FIXIDX,
7140 OSF_NAMESPACE_A_FIXIDX,
7141 OSF_NAMESPACE_C_FIXIDX,
7142 PTHREAD_PAGE_SIZE_FIXIDX,
7143 READ_RET_TYPE_FIXIDX,
7144 RPC_XDR_LVALUE_CAST_A_FIXIDX,
7145 RPC_XDR_LVALUE_CAST_B_FIXIDX,
7146 RS6000_DOUBLE_FIXIDX,
7147 RS6000_FCHMOD_FIXIDX,
7148 RS6000_PARAM_FIXIDX,
7151 SCO_STATIC_FUNC_FIXIDX,
7153 SOLARIS_MUTEX_INIT_1_FIXIDX,
7154 SOLARIS_MUTEX_INIT_2_FIXIDX,
7155 SOLARIS_SOCKET_FIXIDX,
7156 SOLARIS_STDIO_TAG_FIXIDX,
7157 SOLARIS_UNISTD_FIXIDX,
7158 SOLARIS_WIDEC_FIXIDX,
7160 STDIO_STDARG_H_FIXIDX,
7161 STDIO_VA_LIST_FIXIDX,
7162 STDIO_VA_LIST_CLIENTS_FIXIDX,
7163 STRICT_ANSI_NOT_FIXIDX,
7164 STRICT_ANSI_NOT_CTD_FIXIDX,
7165 STRICT_ANSI_ONLY_FIXIDX,
7167 STRUCT_SOCKADDR_FIXIDX,
7168 SUN_AUTH_PROTO_FIXIDX,
7169 SUN_BOGUS_IFDEF_FIXIDX,
7170 SUN_CATMACRO_FIXIDX,
7172 SUN_RUSERS_SEMI_FIXIDX,
7174 SUNOS_STRLEN_FIXIDX,
7175 SVR4_DISABLE_OPT_FIXIDX,
7179 SVR4_SIGHANDLER_TYPE_FIXIDX,
7180 SVR4_UNDECLARED_GETRNGE_FIXIDX,
7181 SYSV68_STRING_FIXIDX,
7182 SYSZ_STDLIB_FOR_SUN_FIXIDX,
7183 THREAD_KEYWORD_FIXIDX,
7184 TINFO_CPLUSPLUS_FIXIDX,
7185 ULTRIX_ATEXIT_PARAM_FIXIDX,
7186 ULTRIX_ATOF_PARAM_FIXIDX,
7187 ULTRIX_CONST_FIXIDX,
7188 ULTRIX_CONST2_FIXIDX,
7189 ULTRIX_CONST3_FIXIDX,
7190 ULTRIX_FIX_FIXPROTO_FIXIDX,
7191 ULTRIX_IFDEF_FIXIDX,
7192 ULTRIX_LOCALE_FIXIDX,
7193 ULTRIX_MATH_IFDEF_FIXIDX,
7194 ULTRIX_NESTED_IOCTL_FIXIDX,
7195 ULTRIX_NESTED_SVC_FIXIDX,
7197 ULTRIX_STATIC_FIXIDX,
7198 ULTRIX_STDLIB_FIXIDX,
7199 ULTRIX_STRINGS_FIXIDX,
7200 ULTRIX_STRINGS2_FIXIDX,
7201 ULTRIX_SYS_TIME_FIXIDX,
7202 ULTRIX_UNISTD_FIXIDX,
7203 UNICOSMK_RESTRICT_FIXIDX,
7204 UW7_BYTEORDER_FIX_FIXIDX,
7205 VA_I960_MACRO_FIXIDX,
7207 VXWORKS_GCC_PROBLEM_FIXIDX,
7208 VXWORKS_NEEDS_VXTYPES_FIXIDX,
7209 VXWORKS_NEEDS_VXWORKS_FIXIDX,
7210 VXWORKS_TIME_FIXIDX,
7211 WINDISS_MATH1_FIXIDX,
7212 WINDISS_MATH2_FIXIDX,
7213 WINDISS_VALIST_FIXIDX,
7215 X11_CLASS_USAGE_FIXIDX,
7220 tFixDesc fixDescList[ FIX_COUNT ] = {
7221 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
7222 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
7223 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7224 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
7226 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
7227 apzAab_Fd_Zero_Gnu_Types_HMachs,
7228 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7229 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
7231 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
7232 apzAab_Fd_Zero_Selectbits_HMachs,
7233 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7234 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
7236 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
7237 apzAab_Solaris_Sys_Varargs_HMachs,
7238 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7239 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
7241 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
7242 apzAab_Sun_MemcpyMachs,
7243 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7244 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
7246 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
7247 apzAab_Ultrix_Ansi_CompatMachs,
7248 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7249 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
7251 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
7252 apzAab_Ultrix_LimitsMachs,
7253 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7254 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
7256 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
7257 apzAab_Ultrix_MemoryMachs,
7258 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7259 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
7261 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
7262 apzAab_Ultrix_StringMachs,
7263 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7264 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
7266 { zAix_PthreadName, zAix_PthreadList,
7267 apzAix_PthreadMachs,
7268 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7269 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
7271 { zAix_SysmachineName, zAix_SysmachineList,
7272 apzAix_SysmachineMachs,
7273 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7274 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
7276 { zAix_SyswaitName, zAix_SyswaitList,
7277 apzAix_SyswaitMachs,
7278 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7279 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
7281 { zAix_Syswait_2Name, zAix_Syswait_2List,
7282 apzAix_Syswait_2Machs,
7283 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7284 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
7286 { zAix_VolatileName, zAix_VolatileList,
7287 apzAix_VolatileMachs,
7288 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7289 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
7291 { zAlpha___AssertName, zAlpha___AssertList,
7292 apzAlpha___AssertMachs,
7293 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7294 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
7296 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
7297 apzAlpha___Extern_PrefixMachs,
7298 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7299 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
7301 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
7302 apzAlpha___Extern_Prefix_StandardsMachs,
7303 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7304 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
7306 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
7307 apzAlpha___Extern_Prefix_Sys_StatMachs,
7308 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7309 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
7311 { zAlpha_AssertName, zAlpha_AssertList,
7312 apzAlpha_AssertMachs,
7313 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7314 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
7316 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
7317 apzAlpha_Bad_LvalMachs,
7318 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
7319 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
7321 { zAlpha_GetoptName, zAlpha_GetoptList,
7322 apzAlpha_GetoptMachs,
7323 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7324 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
7326 { zAlpha_ParensName, zAlpha_ParensList,
7327 apzAlpha_ParensMachs,
7328 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7329 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
7331 { zAlpha_PthreadName, zAlpha_PthreadList,
7332 apzAlpha_PthreadMachs,
7333 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7334 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
7336 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
7337 apzAlpha_Pthread_GccMachs,
7338 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7339 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
7341 { zAlpha_SbrkName, zAlpha_SbrkList,
7343 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7344 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
7346 { zAlpha_WcharName, zAlpha_WcharList,
7347 apzAlpha_WcharMachs,
7348 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
7349 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
7351 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
7352 apzAvoid_Bool_DefineMachs,
7353 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7354 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
7356 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
7357 apzAvoid_Bool_TypeMachs,
7358 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7359 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
7361 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
7362 apzAvoid_Wchar_T_TypeMachs,
7363 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7364 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
7366 { zBad_Struct_TermName, zBad_Struct_TermList,
7367 apzBad_Struct_TermMachs,
7368 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7369 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
7371 { zBadquoteName, zBadquoteList,
7373 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7374 aBadquoteTests, apzBadquotePatch, 0 },
7376 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
7377 apzBroken_Assert_StdioMachs,
7378 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7379 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
7381 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
7382 apzBroken_Assert_StdlibMachs,
7383 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7384 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
7386 { zBroken_CabsName, zBroken_CabsList,
7387 apzBroken_CabsMachs,
7388 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7389 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
7391 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
7392 apzBsd_Stdio_Attrs_ConflictMachs,
7393 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7394 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
7396 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
7397 apzCtrl_Quotes_DefMachs,
7398 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7399 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
7401 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
7402 apzCtrl_Quotes_UseMachs,
7403 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7404 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
7406 { zCxx_UnreadyName, zCxx_UnreadyList,
7407 apzCxx_UnreadyMachs,
7408 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7409 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
7411 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
7412 apzDarwin_Gcc4_BreakageMachs,
7413 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7414 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
7416 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
7417 apzDarwin_Private_ExternMachs,
7418 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7419 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
7421 { zDec_Intern_AsmName, zDec_Intern_AsmList,
7422 apzDec_Intern_AsmMachs,
7423 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
7424 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
7426 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
7427 apzDjgpp_Wchar_HMachs,
7428 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7429 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
7431 { zEcd_CursorName, zEcd_CursorList,
7433 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7434 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
7436 { zException_StructureName, zException_StructureList,
7437 apzException_StructureMachs,
7438 EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7439 aException_StructureTests, apzException_StructurePatch, 0 },
7441 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
7442 apzFreebsd_Gcc3_BreakageMachs,
7443 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7444 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
7446 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
7447 apzFreebsd_Gcc4_BreakageMachs,
7448 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7449 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
7451 { zGnu_TypesName, zGnu_TypesList,
7453 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7454 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
7456 { zHp_InlineName, zHp_InlineList,
7458 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7459 aHp_InlineTests, apzHp_InlinePatch, 0 },
7461 { zHp_SysfileName, zHp_SysfileList,
7463 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7464 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
7466 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
7467 apzHpux10_Cpp_Pow_InlineMachs,
7468 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7469 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
7471 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
7472 apzHpux11_Cpp_Pow_InlineMachs,
7473 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7474 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
7476 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
7477 apzHpux10_Ctype_Declarations1Machs,
7478 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7479 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
7481 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
7482 apzHpux10_Ctype_Declarations2Machs,
7483 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7484 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
7486 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
7487 apzHpux10_Stdio_DeclarationsMachs,
7488 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7489 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
7491 { zHpux11_AbsName, zHpux11_AbsList,
7493 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7494 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
7496 { zHpux11_FabsfName, zHpux11_FabsfList,
7497 apzHpux11_FabsfMachs,
7498 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7499 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
7501 { zHpux11_Size_TName, zHpux11_Size_TList,
7502 apzHpux11_Size_TMachs,
7503 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7504 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
7506 { zHpux11_SnprintfName, zHpux11_SnprintfList,
7507 apzHpux11_SnprintfMachs,
7508 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7509 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
7511 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
7512 apzHpux11_Uint32_CMachs,
7513 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7514 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
7516 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
7517 apzHpux11_VsnprintfMachs,
7518 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7519 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
7521 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
7522 apzHpux8_Bogus_InlinesMachs,
7523 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
7524 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
7526 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
7527 apzHpux_Ctype_MacrosMachs,
7528 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7529 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
7531 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
7532 apzHpux_Long_DoubleMachs,
7533 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
7534 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
7536 { zHpux_SystimeName, zHpux_SystimeList,
7537 apzHpux_SystimeMachs,
7538 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7539 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
7541 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
7542 apzInt_Abort_Free_And_ExitMachs,
7543 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7544 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
7546 { zIo_Quotes_DefName, zIo_Quotes_DefList,
7547 apzIo_Quotes_DefMachs,
7548 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7549 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
7551 { zIo_Quotes_UseName, zIo_Quotes_UseList,
7552 apzIo_Quotes_UseMachs,
7553 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7554 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
7556 { zIp_Missing_SemiName, zIp_Missing_SemiList,
7557 apzIp_Missing_SemiMachs,
7558 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
7559 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
7561 { zIrix___RestrictName, zIrix___RestrictList,
7562 apzIrix___RestrictMachs,
7563 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7564 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
7566 { zIrix___Generic1Name, zIrix___Generic1List,
7567 apzIrix___Generic1Machs,
7568 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7569 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
7571 { zIrix___Generic2Name, zIrix___Generic2List,
7572 apzIrix___Generic2Machs,
7573 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7574 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
7576 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
7577 apzIrix_Asm_ApostropheMachs,
7578 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7579 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
7581 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
7582 apzIrix_Limits_ConstMachs,
7583 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7584 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
7586 { zIrix_Socklen_TName, zIrix_Socklen_TList,
7587 apzIrix_Socklen_TMachs,
7588 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7589 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
7591 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
7592 apzIrix_Stdio_Va_ListMachs,
7593 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7594 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
7596 { zIrix_WcsftimeName, zIrix_WcsftimeList,
7597 apzIrix_WcsftimeMachs,
7598 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7599 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
7601 { zIsc_FmodName, zIsc_FmodList,
7603 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7604 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
7606 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
7607 apzIsc_Omits_With_StdcMachs,
7608 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7609 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
7611 { zKandr_ConcatName, zKandr_ConcatList,
7612 apzKandr_ConcatMachs,
7613 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7614 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
7616 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
7617 apzLibc1_G_Va_ListMachs,
7618 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7619 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
7621 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
7622 apzLibc1_Ifdefd_MemxMachs,
7623 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7624 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
7626 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
7627 apzLinux_Ia64_UcontextMachs,
7628 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7629 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
7631 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
7632 apzLynxos_No_Warning_In_Sys_Time_HMachs,
7633 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7634 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
7636 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
7637 apzLynxos_Missing_PutenvMachs,
7638 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7639 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
7641 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
7642 apzMachine_Ansi_H_Va_ListMachs,
7643 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7644 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
7646 { zMachine_NameName, zMachine_NameList,
7647 apzMachine_NameMachs,
7648 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7649 aMachine_NameTests, apzMachine_NamePatch, 0 },
7651 { zMath_ExceptionName, zMath_ExceptionList,
7652 apzMath_ExceptionMachs,
7653 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7654 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
7656 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
7657 apzMath_Huge_Val_From_Dbl_MaxMachs,
7658 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
7659 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
7661 { zNested_Auth_DesName, zNested_Auth_DesList,
7662 apzNested_Auth_DesMachs,
7663 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7664 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
7666 { zNested_MotorolaName, zNested_MotorolaList,
7667 apzNested_MotorolaMachs,
7668 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
7669 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
7671 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
7672 apzNested_Sys_LimitsMachs,
7673 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
7674 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
7676 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
7677 apzNetbsd_Extra_SemicolonMachs,
7678 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7679 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
7681 { zNext_Math_PrefixName, zNext_Math_PrefixList,
7682 apzNext_Math_PrefixMachs,
7683 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7684 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
7686 { zNext_TemplateName, zNext_TemplateList,
7687 apzNext_TemplateMachs,
7688 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7689 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
7691 { zNext_VolitileName, zNext_VolitileList,
7692 apzNext_VolitileMachs,
7693 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7694 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
7696 { zNext_Wait_UnionName, zNext_Wait_UnionList,
7697 apzNext_Wait_UnionMachs,
7698 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7699 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
7701 { zNodeent_SyntaxName, zNodeent_SyntaxList,
7702 apzNodeent_SyntaxMachs,
7703 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7704 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
7706 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
7707 apzObstack_Lvalue_CastMachs,
7708 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7709 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
7711 { zOsf_Namespace_AName, zOsf_Namespace_AList,
7712 apzOsf_Namespace_AMachs,
7713 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7714 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
7716 { zOsf_Namespace_CName, zOsf_Namespace_CList,
7717 apzOsf_Namespace_CMachs,
7718 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7719 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
7721 { zPthread_Page_SizeName, zPthread_Page_SizeList,
7722 apzPthread_Page_SizeMachs,
7723 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7724 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
7726 { zRead_Ret_TypeName, zRead_Ret_TypeList,
7727 apzRead_Ret_TypeMachs,
7728 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7729 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
7731 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
7732 apzRpc_Xdr_Lvalue_Cast_AMachs,
7733 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7734 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
7736 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
7737 apzRpc_Xdr_Lvalue_Cast_BMachs,
7738 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7739 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
7741 { zRs6000_DoubleName, zRs6000_DoubleList,
7742 apzRs6000_DoubleMachs,
7743 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7744 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
7746 { zRs6000_FchmodName, zRs6000_FchmodList,
7747 apzRs6000_FchmodMachs,
7748 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7749 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
7751 { zRs6000_ParamName, zRs6000_ParamList,
7752 apzRs6000_ParamMachs,
7753 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7754 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
7756 { zSco_MathName, zSco_MathList,
7758 SCO_MATH_TEST_CT, FD_MACH_ONLY,
7759 aSco_MathTests, apzSco_MathPatch, 0 },
7761 { zSco_RegsetName, zSco_RegsetList,
7763 SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7764 aSco_RegsetTests, apzSco_RegsetPatch, 0 },
7766 { zSco_Static_FuncName, zSco_Static_FuncList,
7767 apzSco_Static_FuncMachs,
7768 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
7769 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
7771 { zSco_UtimeName, zSco_UtimeList,
7773 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7774 aSco_UtimeTests, apzSco_UtimePatch, 0 },
7776 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List,
7777 apzSolaris_Mutex_Init_1Machs,
7778 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
7779 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 },
7781 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
7782 apzSolaris_Mutex_Init_2Machs,
7783 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7784 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
7786 { zSolaris_SocketName, zSolaris_SocketList,
7787 apzSolaris_SocketMachs,
7788 SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7789 aSolaris_SocketTests, apzSolaris_SocketPatch, 0 },
7791 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
7792 apzSolaris_Stdio_TagMachs,
7793 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
7794 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
7796 { zSolaris_UnistdName, zSolaris_UnistdList,
7797 apzSolaris_UnistdMachs,
7798 SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7799 aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 },
7801 { zSolaris_WidecName, zSolaris_WidecList,
7802 apzSolaris_WidecMachs,
7803 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7804 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
7806 { zStatsswtchName, zStatsswtchList,
7808 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7809 aStatsswtchTests, apzStatsswtchPatch, 0 },
7811 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
7812 apzStdio_Stdarg_HMachs,
7813 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7814 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
7816 { zStdio_Va_ListName, zStdio_Va_ListList,
7817 apzStdio_Va_ListMachs,
7818 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
7819 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
7821 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
7822 apzStdio_Va_List_ClientsMachs,
7823 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
7824 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
7826 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
7827 apzStrict_Ansi_NotMachs,
7828 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7829 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
7831 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
7832 apzStrict_Ansi_Not_CtdMachs,
7833 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7834 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
7836 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
7837 apzStrict_Ansi_OnlyMachs,
7838 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7839 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
7841 { zStruct_FileName, zStruct_FileList,
7842 apzStruct_FileMachs,
7843 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7844 aStruct_FileTests, apzStruct_FilePatch, 0 },
7846 { zStruct_SockaddrName, zStruct_SockaddrList,
7847 apzStruct_SockaddrMachs,
7848 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7849 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
7851 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
7852 apzSun_Auth_ProtoMachs,
7853 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7854 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
7856 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
7857 apzSun_Bogus_IfdefMachs,
7858 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7859 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
7861 { zSun_CatmacroName, zSun_CatmacroList,
7862 apzSun_CatmacroMachs,
7863 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7864 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
7866 { zSun_MallocName, zSun_MallocList,
7868 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
7869 aSun_MallocTests, apzSun_MallocPatch, 0 },
7871 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
7872 apzSun_Rusers_SemiMachs,
7873 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
7874 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
7876 { zSun_SignalName, zSun_SignalList,
7878 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7879 aSun_SignalTests, apzSun_SignalPatch, 0 },
7881 { zSunos_StrlenName, zSunos_StrlenList,
7882 apzSunos_StrlenMachs,
7883 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7884 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
7886 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
7887 apzSvr4_Disable_OptMachs,
7888 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
7889 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
7891 { zSvr4_GetcwdName, zSvr4_GetcwdList,
7892 apzSvr4_GetcwdMachs,
7893 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7894 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
7896 { zSvr4_KrnlName, zSvr4_KrnlList,
7898 SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7899 aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 },
7901 { zSvr4_ProfilName, zSvr4_ProfilList,
7902 apzSvr4_ProfilMachs,
7903 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7904 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
7906 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
7907 apzSvr4_Sighandler_TypeMachs,
7908 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7909 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
7911 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
7912 apzSvr4_Undeclared_GetrngeMachs,
7913 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7914 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
7916 { zSysv68_StringName, zSysv68_StringList,
7917 apzSysv68_StringMachs,
7918 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
7919 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
7921 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
7922 apzSysz_Stdlib_For_SunMachs,
7923 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7924 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
7926 { zThread_KeywordName, zThread_KeywordList,
7927 apzThread_KeywordMachs,
7928 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7929 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
7931 { zTinfo_CplusplusName, zTinfo_CplusplusList,
7932 apzTinfo_CplusplusMachs,
7933 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7934 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
7936 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
7937 apzUltrix_Atexit_ParamMachs,
7938 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7939 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
7941 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
7942 apzUltrix_Atof_ParamMachs,
7943 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7944 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
7946 { zUltrix_ConstName, zUltrix_ConstList,
7947 apzUltrix_ConstMachs,
7948 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7949 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
7951 { zUltrix_Const2Name, zUltrix_Const2List,
7952 apzUltrix_Const2Machs,
7953 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7954 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
7956 { zUltrix_Const3Name, zUltrix_Const3List,
7957 apzUltrix_Const3Machs,
7958 ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7959 aUltrix_Const3Tests, apzUltrix_Const3Patch, 0 },
7961 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
7962 apzUltrix_Fix_FixprotoMachs,
7963 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7964 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
7966 { zUltrix_IfdefName, zUltrix_IfdefList,
7967 apzUltrix_IfdefMachs,
7968 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7969 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
7971 { zUltrix_LocaleName, zUltrix_LocaleList,
7972 apzUltrix_LocaleMachs,
7973 ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7974 aUltrix_LocaleTests, apzUltrix_LocalePatch, 0 },
7976 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
7977 apzUltrix_Math_IfdefMachs,
7978 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7979 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
7981 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
7982 apzUltrix_Nested_IoctlMachs,
7983 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
7984 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
7986 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
7987 apzUltrix_Nested_SvcMachs,
7988 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
7989 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
7991 { zUltrix_StatName, zUltrix_StatList,
7992 apzUltrix_StatMachs,
7993 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
7994 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
7996 { zUltrix_StaticName, zUltrix_StaticList,
7997 apzUltrix_StaticMachs,
7998 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
7999 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
8001 { zUltrix_StdlibName, zUltrix_StdlibList,
8002 apzUltrix_StdlibMachs,
8003 ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
8004 aUltrix_StdlibTests, apzUltrix_StdlibPatch, 0 },
8006 { zUltrix_StringsName, zUltrix_StringsList,
8007 apzUltrix_StringsMachs,
8008 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8009 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
8011 { zUltrix_Strings2Name, zUltrix_Strings2List,
8012 apzUltrix_Strings2Machs,
8013 ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
8014 aUltrix_Strings2Tests, apzUltrix_Strings2Patch, 0 },
8016 { zUltrix_Sys_TimeName, zUltrix_Sys_TimeList,
8017 apzUltrix_Sys_TimeMachs,
8018 ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
8019 aUltrix_Sys_TimeTests, apzUltrix_Sys_TimePatch, 0 },
8021 { zUltrix_UnistdName, zUltrix_UnistdList,
8022 apzUltrix_UnistdMachs,
8023 ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
8024 aUltrix_UnistdTests, apzUltrix_UnistdPatch, 0 },
8026 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
8027 apzUnicosmk_RestrictMachs,
8028 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8029 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
8031 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
8032 apzUw7_Byteorder_FixMachs,
8033 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8034 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
8036 { zVa_I960_MacroName, zVa_I960_MacroList,
8037 apzVa_I960_MacroMachs,
8038 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8039 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
8041 { zVoid_NullName, zVoid_NullList,
8043 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8044 aVoid_NullTests, apzVoid_NullPatch, 0 },
8046 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
8047 apzVxworks_Gcc_ProblemMachs,
8048 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
8049 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
8051 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
8052 apzVxworks_Needs_VxtypesMachs,
8053 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8054 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
8056 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
8057 apzVxworks_Needs_VxworksMachs,
8058 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
8059 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
8061 { zVxworks_TimeName, zVxworks_TimeList,
8062 apzVxworks_TimeMachs,
8063 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8064 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
8066 { zWindiss_Math1Name, zWindiss_Math1List,
8067 apzWindiss_Math1Machs,
8068 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
8069 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
8071 { zWindiss_Math2Name, zWindiss_Math2List,
8072 apzWindiss_Math2Machs,
8073 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
8074 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
8076 { zWindiss_ValistName, zWindiss_ValistList,
8077 apzWindiss_ValistMachs,
8078 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
8079 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
8081 { zX11_ClassName, zX11_ClassList,
8083 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8084 aX11_ClassTests, apzX11_ClassPatch, 0 },
8086 { zX11_Class_UsageName, zX11_Class_UsageList,
8087 apzX11_Class_UsageMachs,
8088 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8089 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
8091 { zX11_NewName, zX11_NewList,
8093 X11_NEW_TEST_CT, FD_MACH_ONLY,
8094 aX11_NewTests, apzX11_NewPatch, 0 },
8096 { zX11_SprintfName, zX11_SprintfList,
8097 apzX11_SprintfMachs,
8098 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8099 aX11_SprintfTests, apzX11_SprintfPatch, 0 }