2 * DO NOT EDIT THIS FILE - it has been generated
4 * Install modified versions of certain ANSI-incompatible system header
5 * files which are fixed to work correctly with ANSI C and placed in a
6 * directory that GNU C will search.
8 * This file contains 141 fixup descriptions.
10 * See README for more information.
12 * inclhack copyright (c) 1998, 1999, 2000, 2001
13 * The Free Software Foundation, Inc.
15 * inclhack is free software.
17 * You may redistribute it and/or modify it under the terms of the
18 * GNU General Public License, as published by the Free Software
19 * Foundation; either version 2, or (at your option) any later version.
21 * inclhack is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 * See the GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with inclhack. See the file "COPYING". If not,
28 * write to: The Free Software Foundation, Inc.,
29 * 59 Temple Place - Suite 330,
30 * Boston, MA 02111-1307, USA.
33 /* * * * * * * * * * * * * * * * * * * * * * * * * *
35 * Description of Aab_Dgux_Int_Varargs fix
37 tSCC zAab_Dgux_Int_VarargsName[] =
38 "AAB_dgux_int_varargs";
41 * File name selection pattern
43 tSCC zAab_Dgux_Int_VarargsList[] =
46 * Machine/OS name selection pattern
48 #define apzAab_Dgux_Int_VarargsMachs (const char**)NULL
49 #define AAB_DGUX_INT_VARARGS_TEST_CT 0
50 #define aAab_Dgux_Int_VarargsTests (tTestDesc*)NULL
53 * Fix Command Arguments for Aab_Dgux_Int_Varargs
55 static const char* apzAab_Dgux_Int_VarargsPatch[] = {
56 "#ifndef __INT_VARARGS_H\n\
57 #define __INT_VARARGS_H\n\n\
58 /********************************************************/\n\
59 /* Define the common stuff for varargs/stdarg/stdio. */\n\
60 /********************************************************/\n\n\
62 ** This file is a DG internal header. Never include this\n\
65 #ifndef ___int_features_h\n\
66 #include <sys/_int_features.h>\n\
68 #if !(defined(_VA_LIST) || defined(_VA_LIST_))\n\
70 #define _VA_LIST_\n\n\
73 typedef void * va_list;\n\
75 typedef char * va_list;\n\
79 #if defined(__DCC__)\n\n\
85 #else /* ! defined(__DCC__) */\n\n\
87 int __va_arg; /* argument number */\n\
88 int *__va_stk; /* start of args passed on stack */\n\
89 int *__va_reg; /* start of args passed in regs */\n\
91 #endif /* ! defined(__DCC__) */\n\n\
93 #if defined(__GNUC__) || defined(__STDC__)\n\
94 typedef void * va_list;\n\
96 typedef char * va_list;\n\
98 #endif /* _IX86_ANY */\n\n\
99 #endif /* __LINT__ */\n\
100 #endif /* !(defined(_VA_LIST) || defined(_VA_LIST_)) */\n\
101 #endif /* #ifndef __INT_VARARGS_H */",
104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
106 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
108 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
109 "AAB_fd_zero_asm_posix_types_h";
112 * File name selection pattern
114 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
115 "|asm/posix_types.h|";
117 * Machine/OS name selection pattern
119 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
120 "i[34567]86-*-linux*",
124 * content bypass pattern - skip fix if pattern found
126 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
129 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1
130 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
131 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
134 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
136 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
137 "/* This file fixes a bug in the __FD_ZERO macro\n\
138 for older versions of the Linux kernel. */\n\
139 #ifndef _POSIX_TYPES_H_WRAPPER\n\
140 #include <features.h>\n\
141 #include_next <asm/posix_types.h>\n\n\
142 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
144 #define __FD_ZERO(fdsetp) \\\n\
146 int __d0, __d1; \\\n\
147 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
148 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
149 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
150 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
153 #define _POSIX_TYPES_H_WRAPPER\n\
154 #endif /* _POSIX_TYPES_H_WRAPPER */",
157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
159 * Description of Aab_Fd_Zero_Gnu_Types_H fix
161 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
162 "AAB_fd_zero_gnu_types_h";
165 * File name selection pattern
167 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
170 * Machine/OS name selection pattern
172 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
173 "i[34567]86-*-linux*",
175 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
176 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
179 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
181 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
182 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
183 #ifndef _TYPES_H_WRAPPER\n\
184 #include <features.h>\n\
185 #include_next <gnu/types.h>\n\n\
186 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
188 # define __FD_ZERO(fdsetp) \\\n\
190 int __d0, __d1; \\\n\
191 \t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
192 \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
193 \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
194 \t\t \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
197 #define _TYPES_H_WRAPPER\n\
198 #endif /* _TYPES_H_WRAPPER */\n",
201 /* * * * * * * * * * * * * * * * * * * * * * * * * *
203 * Description of Aab_Fd_Zero_Selectbits_H fix
205 tSCC zAab_Fd_Zero_Selectbits_HName[] =
206 "AAB_fd_zero_selectbits_h";
209 * File name selection pattern
211 tSCC zAab_Fd_Zero_Selectbits_HList[] =
214 * Machine/OS name selection pattern
216 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
217 "i[34567]86-*-linux*",
219 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
220 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
223 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
225 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
226 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
227 #ifndef _SELECTBITS_H_WRAPPER\n\
228 #include <features.h>\n\
229 #include_next <selectbits.h>\n\n\
230 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\n\
231 \t&& defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\n\
232 \t&& __GLIBC_MINOR__ == 0\n\
234 #define __FD_ZERO(fdsetp) \\\n\
236 int __d0, __d1; \\\n\
237 __asm__ __volatile__ (\"cld; rep; stosl\" \\\n\
238 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
239 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\n\
240 / sizeof (__fd_mask)), \\\n\
241 \"1\" ((__fd_mask *) (fdsetp)) \\\n\
245 #define _SELECTBITS_H_WRAPPER\n\
246 #endif /* _SELECTBITS_H_WRAPPER */\n",
249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
251 * Description of Aab_Sun_Memcpy fix
253 tSCC zAab_Sun_MemcpyName[] =
257 * File name selection pattern
259 tSCC zAab_Sun_MemcpyList[] =
262 * Machine/OS name selection pattern
264 #define apzAab_Sun_MemcpyMachs (const char**)NULL
267 * content selection pattern - do fix if pattern found
269 tSCC zAab_Sun_MemcpySelect0[] =
270 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
272 #define AAB_SUN_MEMCPY_TEST_CT 1
273 static tTestDesc aAab_Sun_MemcpyTests[] = {
274 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
277 * Fix Command Arguments for Aab_Sun_Memcpy
279 static const char* apzAab_Sun_MemcpyPatch[] = {
280 "/* This file was generated by fixincludes */\n\
281 #ifndef __memory_h__\n\
282 #define __memory_h__\n\n\
284 extern void *memccpy();\n\
285 extern void *memchr();\n\
286 extern void *memcpy();\n\
287 extern void *memset();\n\
289 extern char *memccpy();\n\
290 extern char *memchr();\n\
291 extern char *memcpy();\n\
292 extern char *memset();\n\
293 #endif /* __STDC__ */\n\n\
294 extern int memcmp();\n\n\
295 #endif /* __memory_h__ */\n",
298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
300 * Description of Aab_Svr4_Replace_Byteorder fix
302 tSCC zAab_Svr4_Replace_ByteorderName[] =
303 "AAB_svr4_replace_byteorder";
306 * File name selection pattern
308 tSCC zAab_Svr4_Replace_ByteorderList[] =
311 * Machine/OS name selection pattern
313 tSCC* apzAab_Svr4_Replace_ByteorderMachs[] = {
315 "i[34567]86-*-sysv5*",
317 "i[34567]86-*-solaris2.[0-4]",
318 "powerpcle-*-solaris2.[0-4]",
319 "sparc-*-solaris2.[0-4]",
321 #define AAB_SVR4_REPLACE_BYTEORDER_TEST_CT 0
322 #define aAab_Svr4_Replace_ByteorderTests (tTestDesc*)NULL
325 * Fix Command Arguments for Aab_Svr4_Replace_Byteorder
327 static const char* apzAab_Svr4_Replace_ByteorderPatch[] = {
328 "#ifndef _SYS_BYTEORDER_H\n\
329 #define _SYS_BYTEORDER_H\n\n\
330 /* Functions to convert `short' and `long' quantities from host byte order\n\
331 to (internet) network byte order (i.e. big-endian).\n\n\
332 Written by Ron Guilmette (rfg@ncd.com).\n\n\
333 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
334 For big-endian machines these functions are essentially no-ops.\n\n\
335 For little-endian machines, we define the functions using specialized\n\
336 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
337 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
338 #error You lose! This file is only useful with GNU compilers.\n\
340 #ifndef __BYTE_ORDER__\n\
341 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
342 double underscores added at the front and back. */\n\
343 #define __LITTLE_ENDIAN__ 1234\n\
344 #define __BIG_ENDIAN__ 4321\n\
345 #define __PDP_ENDIAN__ 3412\n\
348 static __inline__ unsigned long htonl (unsigned long);\n\
349 static __inline__ unsigned short htons (unsigned int);\n\
350 static __inline__ unsigned long ntohl (unsigned long);\n\
351 static __inline__ unsigned short ntohs (unsigned int);\n\
352 #endif /* defined (__STDC__) */\n\n\
353 #if defined (__i386__)\n\n\
354 #ifndef __BYTE_ORDER__\n\
355 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
357 /* Convert a host long to a network long. */\n\n\
358 /* We must use a new-style function definition, so that this will also\n\
359 be valid for C++. */\n\
360 static __inline__ unsigned long\n\
361 htonl (unsigned long __arg)\n\
363 register unsigned long __result;\n\n\
364 __asm__ (\"xchg%B0 %b0,%h0\n\
366 \txchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
369 /* Convert a host short to a network short. */\n\n\
370 static __inline__ unsigned short\n\
371 htons (unsigned int __arg)\n\
373 register unsigned short __result;\n\n\
374 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
377 #elif ((defined (__i860__) && !defined (__i860_big_endian__))\t\\\n\
378 || defined (__ns32k__) || defined (__vax__)\t\t\\\n\
379 || defined (__spur__) || defined (__arm__))\n\n\
380 #ifndef __BYTE_ORDER__\n\
381 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
383 /* For other little-endian machines, using C code is just as efficient as\n\
384 using assembly code. */\n\n\
385 /* Convert a host long to a network long. */\n\n\
386 static __inline__ unsigned long\n\
387 htonl (unsigned long __arg)\n\
389 register unsigned long __result;\n\n\
390 __result = (__arg >> 24) & 0x000000ff;\n\
391 __result |= (__arg >> 8) & 0x0000ff00;\n\
392 __result |= (__arg << 8) & 0x00ff0000;\n\
393 __result |= (__arg << 24) & 0xff000000;\n\
396 /* Convert a host short to a network short. */\n\n\
397 static __inline__ unsigned short\n\
398 htons (unsigned int __arg)\n\
400 register unsigned short __result;\n\n\
401 __result = (__arg << 8) & 0xff00;\n\
402 __result |= (__arg >> 8) & 0x00ff;\n\
405 #else /* must be a big-endian machine */\n\n\
406 #ifndef __BYTE_ORDER__\n\
407 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
409 /* Convert a host long to a network long. */\n\n\
410 static __inline__ unsigned long\n\
411 htonl (unsigned long __arg)\n\
415 /* Convert a host short to a network short. */\n\n\
416 static __inline__ unsigned short\n\
417 htons (unsigned int __arg)\n\
421 #endif /* big-endian */\n\n\
422 /* Convert a network long to a host long. */\n\n\
423 static __inline__ unsigned long\n\
424 ntohl (unsigned long __arg)\n\
426 return htonl (__arg);\n\
428 /* Convert a network short to a host short. */\n\n\
429 static __inline__ unsigned short\n\
430 ntohs (unsigned int __arg)\n\
432 return htons (__arg);\n\
437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
439 * Description of Aab_Ultrix_Ansi_Compat fix
441 tSCC zAab_Ultrix_Ansi_CompatName[] =
442 "AAB_ultrix_ansi_compat";
445 * File name selection pattern
447 tSCC zAab_Ultrix_Ansi_CompatList[] =
450 * Machine/OS name selection pattern
452 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
455 * content selection pattern - do fix if pattern found
457 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
460 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
461 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
462 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
465 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
467 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
468 "/* This file intentionally left blank. */\n",
471 /* * * * * * * * * * * * * * * * * * * * * * * * * *
473 * Description of Aab_Ultrix_Limits fix
475 tSCC zAab_Ultrix_LimitsName[] =
479 * File name selection pattern
481 tSCC zAab_Ultrix_LimitsList[] =
484 * Machine/OS name selection pattern
486 tSCC* apzAab_Ultrix_LimitsMachs[] = {
489 #define AAB_ULTRIX_LIMITS_TEST_CT 0
490 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
493 * Fix Command Arguments for Aab_Ultrix_Limits
495 static const char* apzAab_Ultrix_LimitsPatch[] = {
496 "#ifndef _LIMITS_INCLUDED\n\
497 #define _LIMITS_INCLUDED\n\
498 #include <sys/limits.h>\n\
499 #endif /* _LIMITS_INCLUDED */\n",
502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
504 * Description of Aab_Ultrix_Memory fix
506 tSCC zAab_Ultrix_MemoryName[] =
510 * File name selection pattern
512 tSCC zAab_Ultrix_MemoryList[] =
515 * Machine/OS name selection pattern
517 tSCC* apzAab_Ultrix_MemoryMachs[] = {
520 #define AAB_ULTRIX_MEMORY_TEST_CT 0
521 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
524 * Fix Command Arguments for Aab_Ultrix_Memory
526 static const char* apzAab_Ultrix_MemoryPatch[] = {
527 "#ifndef _MEMORY_INCLUDED\n\
528 #define _MEMORY_INCLUDED\n\
529 #include <strings.h>\n\
530 #endif /* _MEMORY_INCLUDED */\n",
533 /* * * * * * * * * * * * * * * * * * * * * * * * * *
535 * Description of Aab_Ultrix_String fix
537 tSCC zAab_Ultrix_StringName[] =
541 * File name selection pattern
543 tSCC zAab_Ultrix_StringList[] =
546 * Machine/OS name selection pattern
548 tSCC* apzAab_Ultrix_StringMachs[] = {
551 #define AAB_ULTRIX_STRING_TEST_CT 0
552 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
555 * Fix Command Arguments for Aab_Ultrix_String
557 static const char* apzAab_Ultrix_StringPatch[] = {
558 "#ifndef _STRING_INCLUDED\n\
559 #define _STRING_INCLUDED\n\
560 #include <strings.h>\n\
561 #endif /* _STRING_INCLUDED */\n",
564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
566 * Description of Aix_Pthread fix
568 tSCC zAix_PthreadName[] =
572 * File name selection pattern
574 tSCC zAix_PthreadList[] =
577 * Machine/OS name selection pattern
579 #define apzAix_PthreadMachs (const char**)NULL
582 * content selection pattern - do fix if pattern found
584 tSCC zAix_PthreadSelect0[] =
585 "(#define [A-Za-z_0-9]+)(\\\\\n\
589 #define AIX_PTHREAD_TEST_CT 1
590 static tTestDesc aAix_PthreadTests[] = {
591 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
594 * Fix Command Arguments for Aix_Pthread
596 static const char* apzAix_PthreadPatch[] = {
601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
603 * Description of Aix_Sysmachine fix
605 tSCC zAix_SysmachineName[] =
609 * File name selection pattern
611 tSCC zAix_SysmachineList[] =
614 * Machine/OS name selection pattern
616 #define apzAix_SysmachineMachs (const char**)NULL
619 * content selection pattern - do fix if pattern found
621 tSCC zAix_SysmachineSelect0[] =
624 #define AIX_SYSMACHINE_TEST_CT 1
625 static tTestDesc aAix_SysmachineTests[] = {
626 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
629 * Fix Command Arguments for Aix_Sysmachine
631 static const char* apzAix_SysmachinePatch[] = {
636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
638 * Description of Aix_Syswait fix
640 tSCC zAix_SyswaitName[] =
644 * File name selection pattern
646 tSCC zAix_SyswaitList[] =
649 * Machine/OS name selection pattern
651 #define apzAix_SyswaitMachs (const char**)NULL
654 * content selection pattern - do fix if pattern found
656 tSCC zAix_SyswaitSelect0[] =
657 "^extern pid_t wait3\\(\\);\n";
658 tSCC zAix_SyswaitSelect1[] =
661 #define AIX_SYSWAIT_TEST_CT 2
662 static tTestDesc aAix_SyswaitTests[] = {
663 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
664 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
667 * Fix Command Arguments for Aix_Syswait
669 static const char* apzAix_SyswaitPatch[] = {
675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
677 * Description of Aix_Volatile fix
679 tSCC zAix_VolatileName[] =
683 * File name selection pattern
685 tSCC zAix_VolatileList[] =
688 * Machine/OS name selection pattern
690 #define apzAix_VolatileMachs (const char**)NULL
693 * content selection pattern - do fix if pattern found
695 tSCC zAix_VolatileSelect0[] =
696 "typedef volatile int sig_atomic_t";
698 #define AIX_VOLATILE_TEST_CT 1
699 static tTestDesc aAix_VolatileTests[] = {
700 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
703 * Fix Command Arguments for Aix_Volatile
705 static const char* apzAix_VolatilePatch[] = {
707 "typedef int sig_atomic_t",
710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
712 * Description of Alpha___Assert fix
714 tSCC zAlpha___AssertName[] =
718 * File name selection pattern
720 tSCC zAlpha___AssertList[] =
723 * Machine/OS name selection pattern
725 #define apzAlpha___AssertMachs (const char**)NULL
728 * content selection pattern - do fix if pattern found
730 tSCC zAlpha___AssertSelect0[] =
731 "__assert\\(char \\*, char \\*, int\\)";
733 #define ALPHA___ASSERT_TEST_CT 1
734 static tTestDesc aAlpha___AssertTests[] = {
735 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
738 * Fix Command Arguments for Alpha___Assert
740 static const char* apzAlpha___AssertPatch[] = {
742 "__assert(const char *, const char *, int)",
745 /* * * * * * * * * * * * * * * * * * * * * * * * * *
747 * Description of Alpha_Assert fix
749 tSCC zAlpha_AssertName[] =
753 * File name selection pattern
755 tSCC zAlpha_AssertList[] =
758 * Machine/OS name selection pattern
760 #define apzAlpha_AssertMachs (const char**)NULL
763 * content selection pattern - do fix if pattern found
765 tSCC zAlpha_AssertSelect0[] =
766 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
768 #define ALPHA_ASSERT_TEST_CT 1
769 static tTestDesc aAlpha_AssertTests[] = {
770 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
773 * Fix Command Arguments for Alpha_Assert
775 static const char* apzAlpha_AssertPatch[] = {
780 /* * * * * * * * * * * * * * * * * * * * * * * * * *
782 * Description of Alpha_Getopt fix
784 tSCC zAlpha_GetoptName[] =
788 * File name selection pattern
790 tSCC zAlpha_GetoptList[] =
791 "|stdio.h|stdlib.h|";
793 * Machine/OS name selection pattern
795 #define apzAlpha_GetoptMachs (const char**)NULL
798 * content selection pattern - do fix if pattern found
800 tSCC zAlpha_GetoptSelect0[] =
801 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
803 #define ALPHA_GETOPT_TEST_CT 1
804 static tTestDesc aAlpha_GetoptTests[] = {
805 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
808 * Fix Command Arguments for Alpha_Getopt
810 static const char* apzAlpha_GetoptPatch[] = {
812 "getopt(int, char *const[], const char *)",
815 /* * * * * * * * * * * * * * * * * * * * * * * * * *
817 * Description of Alpha_Parens fix
819 tSCC zAlpha_ParensName[] =
823 * File name selection pattern
825 tSCC zAlpha_ParensList[] =
828 * Machine/OS name selection pattern
830 #define apzAlpha_ParensMachs (const char**)NULL
833 * content selection pattern - do fix if pattern found
835 tSCC zAlpha_ParensSelect0[] =
836 "#ifndef\\(__mips64\\)";
838 #define ALPHA_PARENS_TEST_CT 1
839 static tTestDesc aAlpha_ParensTests[] = {
840 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
843 * Fix Command Arguments for Alpha_Parens
845 static const char* apzAlpha_ParensPatch[] = {
850 /* * * * * * * * * * * * * * * * * * * * * * * * * *
852 * Description of Alpha_Sbrk fix
854 tSCC zAlpha_SbrkName[] =
858 * File name selection pattern
860 tSCC zAlpha_SbrkList[] =
863 * Machine/OS name selection pattern
865 #define apzAlpha_SbrkMachs (const char**)NULL
868 * content selection pattern - do fix if pattern found
870 tSCC zAlpha_SbrkSelect0[] =
871 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
873 #define ALPHA_SBRK_TEST_CT 1
874 static tTestDesc aAlpha_SbrkTests[] = {
875 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
878 * Fix Command Arguments for Alpha_Sbrk
880 static const char* apzAlpha_SbrkPatch[] = {
885 /* * * * * * * * * * * * * * * * * * * * * * * * * *
887 * Description of Arm_Norcroft_Hint fix
889 tSCC zArm_Norcroft_HintName[] =
893 * File name selection pattern
895 tSCC zArm_Norcroft_HintList[] =
898 * Machine/OS name selection pattern
900 #define apzArm_Norcroft_HintMachs (const char**)NULL
903 * content selection pattern - do fix if pattern found
905 tSCC zArm_Norcroft_HintSelect0[] =
908 #define ARM_NORCROFT_HINT_TEST_CT 1
909 static tTestDesc aArm_Norcroft_HintTests[] = {
910 { TT_EGREP, zArm_Norcroft_HintSelect0, (regex_t*)NULL }, };
913 * Fix Command Arguments for Arm_Norcroft_Hint
915 static const char* apzArm_Norcroft_HintPatch[] = {
920 /* * * * * * * * * * * * * * * * * * * * * * * * * *
922 * Description of Arm_Wchar fix
924 tSCC zArm_WcharName[] =
928 * File name selection pattern
930 tSCC zArm_WcharList[] =
933 * Machine/OS name selection pattern
935 #define apzArm_WcharMachs (const char**)NULL
938 * content selection pattern - do fix if pattern found
940 tSCC zArm_WcharSelect0[] =
941 "#[ \t]*define[ \t]*__wchar_t";
943 #define ARM_WCHAR_TEST_CT 1
944 static tTestDesc aArm_WcharTests[] = {
945 { TT_EGREP, zArm_WcharSelect0, (regex_t*)NULL }, };
948 * Fix Command Arguments for Arm_Wchar
950 static const char* apzArm_WcharPatch[] = {
953 "(#[ \t]*(ifndef|define)[ \t]+)__wchar_t",
956 /* * * * * * * * * * * * * * * * * * * * * * * * * *
958 * Description of Aux_Asm fix
960 tSCC zAux_AsmName[] =
964 * File name selection pattern
966 tSCC zAux_AsmList[] =
969 * Machine/OS name selection pattern
971 #define apzAux_AsmMachs (const char**)NULL
974 * content selection pattern - do fix if pattern found
976 tSCC zAux_AsmSelect0[] =
979 #define AUX_ASM_TEST_CT 1
980 static tTestDesc aAux_AsmTests[] = {
981 { TT_EGREP, zAux_AsmSelect0, (regex_t*)NULL }, };
984 * Fix Command Arguments for Aux_Asm
986 static const char* apzAux_AsmPatch[] = {
988 "#if !defined(NOINLINE) && !defined(__GNUC__)",
991 /* * * * * * * * * * * * * * * * * * * * * * * * * *
993 * Description of Avoid_Bool_Define fix
995 tSCC zAvoid_Bool_DefineName[] =
999 * File name selection pattern
1001 tSCC zAvoid_Bool_DefineList[] =
1002 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1004 * Machine/OS name selection pattern
1006 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1009 * content selection pattern - do fix if pattern found
1011 tSCC zAvoid_Bool_DefineSelect0[] =
1012 "#[ \t]*define[ \t]+bool[ \t]";
1015 * content bypass pattern - skip fix if pattern found
1017 tSCC zAvoid_Bool_DefineBypass0[] =
1018 "we must use the C\\+\\+ compiler's type";
1020 #define AVOID_BOOL_DEFINE_TEST_CT 2
1021 static tTestDesc aAvoid_Bool_DefineTests[] = {
1022 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1023 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1026 * Fix Command Arguments for Avoid_Bool_Define
1028 static const char* apzAvoid_Bool_DefinePatch[] = {
1030 "#ifndef __cplusplus\n\
1033 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1036 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1038 * Description of Avoid_Bool_Type fix
1040 tSCC zAvoid_Bool_TypeName[] =
1044 * File name selection pattern
1046 tSCC zAvoid_Bool_TypeList[] =
1047 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1049 * Machine/OS name selection pattern
1051 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1054 * content selection pattern - do fix if pattern found
1056 tSCC zAvoid_Bool_TypeSelect0[] =
1057 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1060 * content bypass pattern - skip fix if pattern found
1062 tSCC zAvoid_Bool_TypeBypass0[] =
1063 "we must use the C\\+\\+ compiler's type";
1065 #define AVOID_BOOL_TYPE_TEST_CT 2
1066 static tTestDesc aAvoid_Bool_TypeTests[] = {
1067 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1068 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1071 * Fix Command Arguments for Avoid_Bool_Type
1073 static const char* apzAvoid_Bool_TypePatch[] = {
1075 "#ifndef __cplusplus\n\
1080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1082 * Description of Avoid_Wchar_T_Type fix
1084 tSCC zAvoid_Wchar_T_TypeName[] =
1085 "avoid_wchar_t_type";
1088 * File name selection pattern
1090 #define zAvoid_Wchar_T_TypeList (char*)NULL
1092 * Machine/OS name selection pattern
1094 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1097 * content selection pattern - do fix if pattern found
1099 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1100 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1102 #define AVOID_WCHAR_T_TYPE_TEST_CT 1
1103 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1104 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1107 * Fix Command Arguments for Avoid_Wchar_T_Type
1109 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1111 "#ifndef __cplusplus\n\
1116 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1118 * Description of Bad_Lval fix
1120 tSCC zBad_LvalName[] =
1124 * File name selection pattern
1126 tSCC zBad_LvalList[] =
1127 "|libgen.h|dirent.h|ftw.h|grp.h|ndbm.h|pthread.h|pwd.h|signal.h|standards.h|stdlib.h|string.h|stropts.h|time.h|unistd.h|";
1129 * Machine/OS name selection pattern
1131 #define apzBad_LvalMachs (const char**)NULL
1134 * content selection pattern - do fix if pattern found
1136 tSCC zBad_LvalSelect0[] =
1137 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1139 #define BAD_LVAL_TEST_CT 1
1140 static tTestDesc aBad_LvalTests[] = {
1141 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
1144 * Fix Command Arguments for Bad_Lval
1146 static const char* apzBad_LvalPatch[] = { "sed",
1147 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1152 * Description of Bad_Struct_Term fix
1154 tSCC zBad_Struct_TermName[] =
1158 * File name selection pattern
1160 tSCC zBad_Struct_TermList[] =
1163 * Machine/OS name selection pattern
1165 #define apzBad_Struct_TermMachs (const char**)NULL
1168 * content selection pattern - do fix if pattern found
1170 tSCC zBad_Struct_TermSelect0[] =
1171 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1173 #define BAD_STRUCT_TERM_TEST_CT 1
1174 static tTestDesc aBad_Struct_TermTests[] = {
1175 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1178 * Fix Command Arguments for Bad_Struct_Term
1180 static const char* apzBad_Struct_TermPatch[] = {
1185 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1187 * Description of Badquote fix
1189 tSCC zBadquoteName[] =
1193 * File name selection pattern
1195 tSCC zBadquoteList[] =
1196 "|sundev/vuid_event.h|";
1198 * Machine/OS name selection pattern
1200 #define apzBadquoteMachs (const char**)NULL
1203 * content selection pattern - do fix if pattern found
1205 tSCC zBadquoteSelect0[] =
1208 #define BADQUOTE_TEST_CT 1
1209 static tTestDesc aBadquoteTests[] = {
1210 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1213 * Fix Command Arguments for Badquote
1215 static const char* apzBadquotePatch[] = {
1220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1222 * Description of Broken_Assert_Stdio fix
1224 tSCC zBroken_Assert_StdioName[] =
1225 "broken_assert_stdio";
1228 * File name selection pattern
1230 tSCC zBroken_Assert_StdioList[] =
1233 * Machine/OS name selection pattern
1235 #define apzBroken_Assert_StdioMachs (const char**)NULL
1238 * content selection pattern - do fix if pattern found
1240 tSCC zBroken_Assert_StdioSelect0[] =
1244 * content bypass pattern - skip fix if pattern found
1246 tSCC zBroken_Assert_StdioBypass0[] =
1247 "include.*stdio\\.h";
1249 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1250 static tTestDesc aBroken_Assert_StdioTests[] = {
1251 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1252 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1255 * Fix Command Arguments for Broken_Assert_Stdio
1257 static const char* apzBroken_Assert_StdioPatch[] = {
1259 "#include <stdio.h>\n",
1262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1264 * Description of Broken_Assert_Stdlib fix
1266 tSCC zBroken_Assert_StdlibName[] =
1267 "broken_assert_stdlib";
1270 * File name selection pattern
1272 tSCC zBroken_Assert_StdlibList[] =
1275 * Machine/OS name selection pattern
1277 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1280 * content selection pattern - do fix if pattern found
1282 tSCC zBroken_Assert_StdlibSelect0[] =
1283 "exit *\\(|abort *\\(";
1286 * content bypass pattern - skip fix if pattern found
1288 tSCC zBroken_Assert_StdlibBypass0[] =
1289 "include.*stdlib\\.h";
1291 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1292 static tTestDesc aBroken_Assert_StdlibTests[] = {
1293 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1294 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1297 * Fix Command Arguments for Broken_Assert_Stdlib
1299 static const char* apzBroken_Assert_StdlibPatch[] = {
1301 "#ifdef __cplusplus\n\
1302 #include <stdlib.h>\n\
1306 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1308 * Description of Broken_Cabs fix
1310 tSCC zBroken_CabsName[] =
1314 * File name selection pattern
1316 tSCC zBroken_CabsList[] =
1319 * Machine/OS name selection pattern
1321 #define apzBroken_CabsMachs (const char**)NULL
1324 * content selection pattern - do fix if pattern found
1326 tSCC zBroken_CabsSelect0[] =
1327 "^extern[ \\t]+double[ \\t]+cabs";
1329 #define BROKEN_CABS_TEST_CT 1
1330 static tTestDesc aBroken_CabsTests[] = {
1331 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1334 * Fix Command Arguments for Broken_Cabs
1336 static const char* apzBroken_CabsPatch[] = {
1339 "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);",
1342 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1344 * Description of Ctrl_Quotes_Def fix
1346 tSCC zCtrl_Quotes_DefName[] =
1350 * File name selection pattern
1352 #define zCtrl_Quotes_DefList (char*)NULL
1354 * Machine/OS name selection pattern
1356 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1359 * content selection pattern - do fix if pattern found
1361 tSCC zCtrl_Quotes_DefSelect0[] =
1362 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1364 #define CTRL_QUOTES_DEF_TEST_CT 1
1365 static tTestDesc aCtrl_Quotes_DefTests[] = {
1366 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1369 * Fix Command Arguments for Ctrl_Quotes_Def
1371 static const char* apzCtrl_Quotes_DefPatch[] = {
1376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1378 * Description of Ctrl_Quotes_Use fix
1380 tSCC zCtrl_Quotes_UseName[] =
1384 * File name selection pattern
1386 #define zCtrl_Quotes_UseList (char*)NULL
1388 * Machine/OS name selection pattern
1390 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1393 * content selection pattern - do fix if pattern found
1395 tSCC zCtrl_Quotes_UseSelect0[] =
1396 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1398 #define CTRL_QUOTES_USE_TEST_CT 1
1399 static tTestDesc aCtrl_Quotes_UseTests[] = {
1400 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1403 * Fix Command Arguments for Ctrl_Quotes_Use
1405 static const char* apzCtrl_Quotes_UsePatch[] = {
1410 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1412 * Description of Cxx_Unready fix
1414 tSCC zCxx_UnreadyName[] =
1418 * File name selection pattern
1420 tSCC zCxx_UnreadyList[] =
1421 "|sys/mman.h|rpc/types.h|";
1423 * Machine/OS name selection pattern
1425 #define apzCxx_UnreadyMachs (const char**)NULL
1428 * content selection pattern - do fix if pattern found
1430 tSCC zCxx_UnreadySelect0[] =
1434 * content bypass pattern - skip fix if pattern found
1436 tSCC zCxx_UnreadyBypass0[] =
1437 "\"C\"|__BEGIN_DECLS";
1439 #define CXX_UNREADY_TEST_CT 2
1440 static tTestDesc aCxx_UnreadyTests[] = {
1441 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1442 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1445 * Fix Command Arguments for Cxx_Unready
1447 static const char* apzCxx_UnreadyPatch[] = {
1449 "#ifdef __cplusplus\n\
1452 "#ifdef __cplusplus\n\
1457 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1459 * Description of Dec_Intern_Asm fix
1461 tSCC zDec_Intern_AsmName[] =
1465 * File name selection pattern
1467 tSCC zDec_Intern_AsmList[] =
1470 * Machine/OS name selection pattern
1472 #define apzDec_Intern_AsmMachs (const char**)NULL
1473 #define DEC_INTERN_ASM_TEST_CT 0
1474 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1477 * Fix Command Arguments for Dec_Intern_Asm
1479 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1480 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1482 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1488 * Description of Djgpp_Wchar_H fix
1490 tSCC zDjgpp_Wchar_HName[] =
1494 * File name selection pattern
1496 #define zDjgpp_Wchar_HList (char*)NULL
1498 * Machine/OS name selection pattern
1500 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1503 * content selection pattern - do fix if pattern found
1505 tSCC zDjgpp_Wchar_HSelect0[] =
1509 * content bypass pattern - skip fix if pattern found
1511 tSCC zDjgpp_Wchar_HBypass0[] =
1514 #define DJGPP_WCHAR_H_TEST_CT 2
1515 static tTestDesc aDjgpp_Wchar_HTests[] = {
1516 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1517 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1520 * Fix Command Arguments for Djgpp_Wchar_H
1522 static const char* apzDjgpp_Wchar_HPatch[] = {
1525 #include <sys/djtypes.h>",
1526 "#include <stddef.h>",
1529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1531 * Description of Ecd_Cursor fix
1533 tSCC zEcd_CursorName[] =
1537 * File name selection pattern
1539 tSCC zEcd_CursorList[] =
1540 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1542 * Machine/OS name selection pattern
1544 #define apzEcd_CursorMachs (const char**)NULL
1547 * content selection pattern - do fix if pattern found
1549 tSCC zEcd_CursorSelect0[] =
1552 #define ECD_CURSOR_TEST_CT 1
1553 static tTestDesc aEcd_CursorTests[] = {
1554 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1557 * Fix Command Arguments for Ecd_Cursor
1559 static const char* apzEcd_CursorPatch[] = {
1564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1566 * Description of Fix_Header_Breakage fix
1568 tSCC zFix_Header_BreakageName[] =
1569 "fix_header_breakage";
1572 * File name selection pattern
1574 tSCC zFix_Header_BreakageList[] =
1577 * Machine/OS name selection pattern
1579 tSCC* apzFix_Header_BreakageMachs[] = {
1580 "m88k-motorola-sysv3*",
1581 (const char*)NULL };
1584 * content selection pattern - do fix if pattern found
1586 tSCC zFix_Header_BreakageSelect0[] =
1587 "extern double floor\\(\\), ceil\\(\\), fmod\\(\\), fabs\\(\\);";
1589 #define FIX_HEADER_BREAKAGE_TEST_CT 1
1590 static tTestDesc aFix_Header_BreakageTests[] = {
1591 { TT_EGREP, zFix_Header_BreakageSelect0, (regex_t*)NULL }, };
1594 * Fix Command Arguments for Fix_Header_Breakage
1596 static const char* apzFix_Header_BreakagePatch[] = {
1598 "extern double floor(), ceil(), fmod(), fabs _PARAMS((double));",
1601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1603 * Description of Freebsd_Gcc3_Breakage fix
1605 tSCC zFreebsd_Gcc3_BreakageName[] =
1606 "freebsd_gcc3_breakage";
1609 * File name selection pattern
1611 tSCC zFreebsd_Gcc3_BreakageList[] =
1614 * Machine/OS name selection pattern
1616 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1618 (const char*)NULL };
1621 * content selection pattern - do fix if pattern found
1623 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1624 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1627 * content bypass pattern - skip fix if pattern found
1629 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1630 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1632 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
1633 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1634 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1635 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1638 * Fix Command Arguments for Freebsd_Gcc3_Breakage
1640 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1642 "%0 || __GNUC__ >= 3",
1645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1647 * Description of Gnu_Types fix
1649 tSCC zGnu_TypesName[] =
1653 * File name selection pattern
1655 tSCC zGnu_TypesList[] =
1656 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
1658 * Machine/OS name selection pattern
1660 #define apzGnu_TypesMachs (const char**)NULL
1663 * content selection pattern - do fix if pattern found
1665 tSCC zGnu_TypesSelect0[] =
1666 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1669 * content bypass pattern - skip fix if pattern found
1671 tSCC zGnu_TypesBypass0[] =
1672 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
1674 #define GNU_TYPES_TEST_CT 2
1675 static tTestDesc aGnu_TypesTests[] = {
1676 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
1677 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
1680 * Fix Command Arguments for Gnu_Types
1682 static const char* apzGnu_TypesPatch[] = {
1686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1688 * Description of Hp_Inline fix
1690 tSCC zHp_InlineName[] =
1694 * File name selection pattern
1696 tSCC zHp_InlineList[] =
1697 "|sys/spinlock.h|machine/machparam.h|";
1699 * Machine/OS name selection pattern
1701 #define apzHp_InlineMachs (const char**)NULL
1704 * content selection pattern - do fix if pattern found
1706 tSCC zHp_InlineSelect0[] =
1707 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1709 #define HP_INLINE_TEST_CT 1
1710 static tTestDesc aHp_InlineTests[] = {
1711 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1714 * Fix Command Arguments for Hp_Inline
1716 static const char* apzHp_InlinePatch[] = {
1719 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1722 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1724 * Description of Hp_Sysfile fix
1726 tSCC zHp_SysfileName[] =
1730 * File name selection pattern
1732 tSCC zHp_SysfileList[] =
1735 * Machine/OS name selection pattern
1737 #define apzHp_SysfileMachs (const char**)NULL
1740 * content selection pattern - do fix if pattern found
1742 tSCC zHp_SysfileSelect0[] =
1745 #define HP_SYSFILE_TEST_CT 1
1746 static tTestDesc aHp_SysfileTests[] = {
1747 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1750 * Fix Command Arguments for Hp_Sysfile
1752 static const char* apzHp_SysfilePatch[] = {
1754 "(struct file *, ...)",
1758 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1760 * Description of Hpux10_Cpp_Pow_Inline fix
1762 tSCC zHpux10_Cpp_Pow_InlineName[] =
1763 "hpux10_cpp_pow_inline";
1766 * File name selection pattern
1768 tSCC zHpux10_Cpp_Pow_InlineList[] =
1769 "|fixinc-test-limits.h|math.h|";
1771 * Machine/OS name selection pattern
1773 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
1776 * content selection pattern - do fix if pattern found
1778 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
1779 "^# +ifdef +__cplusplus\n\
1781 +inline +double +pow\\(double +__d,int +__expon\\) +{\n\
1782 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
1784 +extern +\"C\" +{\n\
1788 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
1789 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
1790 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1793 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
1795 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
1800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1802 * Description of Hpux11_Cpp_Pow_Inline fix
1804 tSCC zHpux11_Cpp_Pow_InlineName[] =
1805 "hpux11_cpp_pow_inline";
1808 * File name selection pattern
1810 tSCC zHpux11_Cpp_Pow_InlineList[] =
1813 * Machine/OS name selection pattern
1815 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
1818 * content selection pattern - do fix if pattern found
1820 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
1821 " +inline double pow\\(double d,int expon\\) {\n\
1822 +return pow\\(d, \\(double\\)expon\\);\n\
1825 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
1826 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
1827 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
1830 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
1832 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
1837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1839 * Description of Hpux11_Fabsf fix
1841 tSCC zHpux11_FabsfName[] =
1845 * File name selection pattern
1847 tSCC zHpux11_FabsfList[] =
1850 * Machine/OS name selection pattern
1852 #define apzHpux11_FabsfMachs (const char**)NULL
1855 * content selection pattern - do fix if pattern found
1857 tSCC zHpux11_FabsfSelect0[] =
1858 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
1861 * content bypass pattern - skip fix if pattern found
1863 tSCC zHpux11_FabsfBypass0[] =
1866 #define HPUX11_FABSF_TEST_CT 2
1867 static tTestDesc aHpux11_FabsfTests[] = {
1868 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
1869 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
1872 * Fix Command Arguments for Hpux11_Fabsf
1874 static const char* apzHpux11_FabsfPatch[] = {
1876 "#ifndef __cplusplus\n\
1881 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1883 * Description of Hpux11_Size_T fix
1885 tSCC zHpux11_Size_TName[] =
1889 * File name selection pattern
1891 #define zHpux11_Size_TList (char*)NULL
1893 * Machine/OS name selection pattern
1895 tSCC* apzHpux11_Size_TMachs[] = {
1897 (const char*)NULL };
1900 * content selection pattern - do fix if pattern found
1902 tSCC zHpux11_Size_TSelect0[] =
1905 #define HPUX11_SIZE_T_TEST_CT 1
1906 static tTestDesc aHpux11_Size_TTests[] = {
1907 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
1910 * Fix Command Arguments for Hpux11_Size_T
1912 static const char* apzHpux11_Size_TPatch[] = {
1917 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1919 * Description of Hpux11_Uint32_C fix
1921 tSCC zHpux11_Uint32_CName[] =
1925 * File name selection pattern
1927 tSCC zHpux11_Uint32_CList[] =
1930 * Machine/OS name selection pattern
1932 #define apzHpux11_Uint32_CMachs (const char**)NULL
1935 * content selection pattern - do fix if pattern found
1937 tSCC zHpux11_Uint32_CSelect0[] =
1938 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1940 #define HPUX11_UINT32_C_TEST_CT 1
1941 static tTestDesc aHpux11_Uint32_CTests[] = {
1942 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1945 * Fix Command Arguments for Hpux11_Uint32_C
1947 static const char* apzHpux11_Uint32_CPatch[] = {
1949 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
1952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1954 * Description of Hpux11_Vsnprintf fix
1956 tSCC zHpux11_VsnprintfName[] =
1960 * File name selection pattern
1962 tSCC zHpux11_VsnprintfList[] =
1965 * Machine/OS name selection pattern
1967 #define apzHpux11_VsnprintfMachs (const char**)NULL
1970 * content selection pattern - do fix if pattern found
1972 tSCC zHpux11_VsnprintfSelect0[] =
1973 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
1975 #define HPUX11_VSNPRINTF_TEST_CT 1
1976 static tTestDesc aHpux11_VsnprintfTests[] = {
1977 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
1980 * Fix Command Arguments for Hpux11_Vsnprintf
1982 static const char* apzHpux11_VsnprintfPatch[] = {
1987 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1989 * Description of Hpux8_Bogus_Inlines fix
1991 tSCC zHpux8_Bogus_InlinesName[] =
1992 "hpux8_bogus_inlines";
1995 * File name selection pattern
1997 tSCC zHpux8_Bogus_InlinesList[] =
2000 * Machine/OS name selection pattern
2002 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2005 * content selection pattern - do fix if pattern found
2007 tSCC zHpux8_Bogus_InlinesSelect0[] =
2010 #define HPUX8_BOGUS_INLINES_TEST_CT 1
2011 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2012 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2015 * Fix Command Arguments for Hpux8_Bogus_Inlines
2017 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2018 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2019 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2020 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2021 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2024 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2026 * Description of Hpux_Maxint fix
2028 tSCC zHpux_MaxintName[] =
2032 * File name selection pattern
2034 tSCC zHpux_MaxintList[] =
2035 "|sys/param.h|values.h|";
2037 * Machine/OS name selection pattern
2039 #define apzHpux_MaxintMachs (const char**)NULL
2042 * content selection pattern - do fix if pattern found
2044 tSCC zHpux_MaxintSelect0[] =
2045 "^#[ \t]*define[ \t]+MAXINT[ \t]";
2048 * content bypass pattern - skip fix if pattern found
2050 tSCC zHpux_MaxintBypass0[] =
2051 "^#[ \t]*ifndef[ \t]+MAXINT";
2054 * perform the 'test' shell command - do fix on success
2056 tSCC zHpux_MaxintTest0[] =
2057 "-n \"`egrep '#[ \t]*define[ \t]+MAXINT[ \t]' sys/param.h`\"";
2059 #define HPUX_MAXINT_TEST_CT 3
2060 static tTestDesc aHpux_MaxintTests[] = {
2061 { TT_TEST, zHpux_MaxintTest0, 0 /* unused */ },
2062 { TT_NEGREP, zHpux_MaxintBypass0, (regex_t*)NULL },
2063 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
2066 * Fix Command Arguments for Hpux_Maxint
2068 static const char* apzHpux_MaxintPatch[] = {
2073 "^#[ \t]*define[ \t]+MAXINT[ \t].*",
2076 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2078 * Description of Hpux_Systime fix
2080 tSCC zHpux_SystimeName[] =
2084 * File name selection pattern
2086 tSCC zHpux_SystimeList[] =
2089 * Machine/OS name selection pattern
2091 #define apzHpux_SystimeMachs (const char**)NULL
2094 * content selection pattern - do fix if pattern found
2096 tSCC zHpux_SystimeSelect0[] =
2097 "^extern struct sigevent;";
2099 #define HPUX_SYSTIME_TEST_CT 1
2100 static tTestDesc aHpux_SystimeTests[] = {
2101 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2104 * Fix Command Arguments for Hpux_Systime
2106 static const char* apzHpux_SystimePatch[] = {
2111 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2113 * Description of Int_Abort_Free_And_Exit fix
2115 tSCC zInt_Abort_Free_And_ExitName[] =
2116 "int_abort_free_and_exit";
2119 * File name selection pattern
2121 tSCC zInt_Abort_Free_And_ExitList[] =
2124 * Machine/OS name selection pattern
2126 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2129 * content selection pattern - do fix if pattern found
2131 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2132 "int[ \t]+(abort|free|exit)[ \t]*\\(";
2134 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 1
2135 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2136 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2139 * Fix Command Arguments for Int_Abort_Free_And_Exit
2141 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2148 * Description of Io_Quotes_Def fix
2150 tSCC zIo_Quotes_DefName[] =
2154 * File name selection pattern
2156 #define zIo_Quotes_DefList (char*)NULL
2158 * Machine/OS name selection pattern
2160 #define apzIo_Quotes_DefMachs (const char**)NULL
2163 * content selection pattern - do fix if pattern found
2165 tSCC zIo_Quotes_DefSelect0[] =
2166 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2168 #define IO_QUOTES_DEF_TEST_CT 1
2169 static tTestDesc aIo_Quotes_DefTests[] = {
2170 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2173 * Fix Command Arguments for Io_Quotes_Def
2175 static const char* apzIo_Quotes_DefPatch[] = {
2180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2182 * Description of Io_Quotes_Use fix
2184 tSCC zIo_Quotes_UseName[] =
2188 * File name selection pattern
2190 #define zIo_Quotes_UseList (char*)NULL
2192 * Machine/OS name selection pattern
2194 #define apzIo_Quotes_UseMachs (const char**)NULL
2197 * content selection pattern - do fix if pattern found
2199 tSCC zIo_Quotes_UseSelect0[] =
2200 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2202 #define IO_QUOTES_USE_TEST_CT 1
2203 static tTestDesc aIo_Quotes_UseTests[] = {
2204 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2207 * Fix Command Arguments for Io_Quotes_Use
2209 static const char* apzIo_Quotes_UsePatch[] = {
2214 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2216 * Description of Ip_Missing_Semi fix
2218 tSCC zIp_Missing_SemiName[] =
2222 * File name selection pattern
2224 tSCC zIp_Missing_SemiList[] =
2227 * Machine/OS name selection pattern
2229 #define apzIp_Missing_SemiMachs (const char**)NULL
2232 * content selection pattern - do fix if pattern found
2234 tSCC zIp_Missing_SemiSelect0[] =
2237 #define IP_MISSING_SEMI_TEST_CT 1
2238 static tTestDesc aIp_Missing_SemiTests[] = {
2239 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2242 * Fix Command Arguments for Ip_Missing_Semi
2244 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2245 "-e", "/^struct/,/^};/s/}$/};/",
2248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2250 * Description of Irix_Asm_Apostrophe fix
2252 tSCC zIrix_Asm_ApostropheName[] =
2253 "irix_asm_apostrophe";
2256 * File name selection pattern
2258 tSCC zIrix_Asm_ApostropheList[] =
2261 * Machine/OS name selection pattern
2263 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2266 * content selection pattern - do fix if pattern found
2268 tSCC zIrix_Asm_ApostropheSelect0[] =
2269 "^[ \t]*#.*[Ww]e're";
2271 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
2272 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2273 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2276 * Fix Command Arguments for Irix_Asm_Apostrophe
2278 static const char* apzIrix_Asm_ApostrophePatch[] = {
2281 "^([ \t]*#.*[Ww]e)'re",
2284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2286 * Description of Irix_Limits_Const fix
2288 tSCC zIrix_Limits_ConstName[] =
2289 "irix_limits_const";
2292 * File name selection pattern
2294 tSCC zIrix_Limits_ConstList[] =
2295 "|fixinc-test-limits.h|limits.h|";
2297 * Machine/OS name selection pattern
2299 #define apzIrix_Limits_ConstMachs (const char**)NULL
2302 * content selection pattern - do fix if pattern found
2304 tSCC zIrix_Limits_ConstSelect0[] =
2307 #define IRIX_LIMITS_CONST_TEST_CT 1
2308 static tTestDesc aIrix_Limits_ConstTests[] = {
2309 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2312 * Fix Command Arguments for Irix_Limits_Const
2314 static const char* apzIrix_Limits_ConstPatch[] = {
2319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2321 * Description of Irix_Stdio_Va_List fix
2323 tSCC zIrix_Stdio_Va_ListName[] =
2324 "irix_stdio_va_list";
2327 * File name selection pattern
2329 tSCC zIrix_Stdio_Va_ListList[] =
2332 * Machine/OS name selection pattern
2334 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2337 * content selection pattern - do fix if pattern found
2339 tSCC zIrix_Stdio_Va_ListSelect0[] =
2340 "(printf\\(.*), /\\* va_list \\*/ char \\*";
2342 #define IRIX_STDIO_VA_LIST_TEST_CT 1
2343 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2344 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2347 * Fix Command Arguments for Irix_Stdio_Va_List
2349 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2351 "%1, __gnuc_va_list",
2354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2356 * Description of Isc_Fmod fix
2358 tSCC zIsc_FmodName[] =
2362 * File name selection pattern
2364 tSCC zIsc_FmodList[] =
2367 * Machine/OS name selection pattern
2369 #define apzIsc_FmodMachs (const char**)NULL
2372 * content selection pattern - do fix if pattern found
2374 tSCC zIsc_FmodSelect0[] =
2377 #define ISC_FMOD_TEST_CT 1
2378 static tTestDesc aIsc_FmodTests[] = {
2379 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2382 * Fix Command Arguments for Isc_Fmod
2384 static const char* apzIsc_FmodPatch[] = {
2386 "fmod(double, double)",
2389 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2391 * Description of Isc_Omits_With_Stdc fix
2393 tSCC zIsc_Omits_With_StdcName[] =
2394 "isc_omits_with_stdc";
2397 * File name selection pattern
2399 tSCC zIsc_Omits_With_StdcList[] =
2400 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
2402 * Machine/OS name selection pattern
2404 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
2407 * content selection pattern - do fix if pattern found
2409 tSCC zIsc_Omits_With_StdcSelect0[] =
2410 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
2412 #define ISC_OMITS_WITH_STDC_TEST_CT 1
2413 static tTestDesc aIsc_Omits_With_StdcTests[] = {
2414 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
2417 * Fix Command Arguments for Isc_Omits_With_Stdc
2419 static const char* apzIsc_Omits_With_StdcPatch[] = {
2421 "!defined(_POSIX_SOURCE)",
2424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2426 * Description of Kandr_Concat fix
2428 tSCC zKandr_ConcatName[] =
2432 * File name selection pattern
2434 tSCC zKandr_ConcatList[] =
2435 "|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|";
2437 * Machine/OS name selection pattern
2439 #define apzKandr_ConcatMachs (const char**)NULL
2442 * content selection pattern - do fix if pattern found
2444 tSCC zKandr_ConcatSelect0[] =
2447 #define KANDR_CONCAT_TEST_CT 1
2448 static tTestDesc aKandr_ConcatTests[] = {
2449 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2452 * Fix Command Arguments for Kandr_Concat
2454 static const char* apzKandr_ConcatPatch[] = {
2459 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2461 * Description of Libc1_Ifdefd_Memx fix
2463 tSCC zLibc1_Ifdefd_MemxName[] =
2464 "libc1_ifdefd_memx";
2467 * File name selection pattern
2469 tSCC zLibc1_Ifdefd_MemxList[] =
2470 "|testing.h|string.h|";
2472 * Machine/OS name selection pattern
2474 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2477 * content selection pattern - do fix if pattern found
2479 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2480 "' is a built-in function for gcc 2\\.x\\. \\*/";
2483 * content bypass pattern - skip fix if pattern found
2485 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2488 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
2489 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2490 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2491 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2494 * Fix Command Arguments for Libc1_Ifdefd_Memx
2496 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
2499 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2500 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2502 extern [a-z_]+ mem.*(\n\
2507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2509 * Description of Limits_Ifndefs fix
2511 tSCC zLimits_IfndefsName[] =
2515 * File name selection pattern
2517 tSCC zLimits_IfndefsList[] =
2518 "|sys/limits.h|limits.h|";
2520 * Machine/OS name selection pattern
2522 #define apzLimits_IfndefsMachs (const char**)NULL
2525 * content bypass pattern - skip fix if pattern found
2527 tSCC zLimits_IfndefsBypass0[] =
2528 "ifndef[ \t]+FLT_MIN";
2530 #define LIMITS_IFNDEFS_TEST_CT 1
2531 static tTestDesc aLimits_IfndefsTests[] = {
2532 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2535 * Fix Command Arguments for Limits_Ifndefs
2537 static const char* apzLimits_IfndefsPatch[] = {
2542 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2545 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2547 * Description of Lynx_Void_Int fix
2549 tSCC zLynx_Void_IntName[] =
2553 * File name selection pattern
2555 tSCC zLynx_Void_IntList[] =
2558 * Machine/OS name selection pattern
2560 #define apzLynx_Void_IntMachs (const char**)NULL
2563 * content selection pattern - do fix if pattern found
2565 tSCC zLynx_Void_IntSelect0[] =
2566 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2568 #define LYNX_VOID_INT_TEST_CT 1
2569 static tTestDesc aLynx_Void_IntTests[] = {
2570 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2573 * Fix Command Arguments for Lynx_Void_Int
2575 static const char* apzLynx_Void_IntPatch[] = {
2580 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2582 * Description of Lynxos_Fcntl_Proto fix
2584 tSCC zLynxos_Fcntl_ProtoName[] =
2585 "lynxos_fcntl_proto";
2588 * File name selection pattern
2590 tSCC zLynxos_Fcntl_ProtoList[] =
2593 * Machine/OS name selection pattern
2595 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2598 * content selection pattern - do fix if pattern found
2600 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2601 "fcntl[ \t]*\\(int, int, int\\)";
2603 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2604 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2605 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2608 * Fix Command Arguments for Lynxos_Fcntl_Proto
2610 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
2613 "(fcntl[ \t]*\\(int, int, )int\\)",
2616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2618 * Description of M88k_Bad_Hypot_Opt fix
2620 tSCC zM88k_Bad_Hypot_OptName[] =
2621 "m88k_bad_hypot_opt";
2624 * File name selection pattern
2626 tSCC zM88k_Bad_Hypot_OptList[] =
2629 * Machine/OS name selection pattern
2631 tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
2632 "m88k-motorola-sysv3*",
2633 (const char*)NULL };
2636 * content selection pattern - do fix if pattern found
2638 tSCC zM88k_Bad_Hypot_OptSelect0[] =
2639 "^extern double hypot\\(\\);\n";
2641 #define M88K_BAD_HYPOT_OPT_TEST_CT 1
2642 static tTestDesc aM88k_Bad_Hypot_OptTests[] = {
2643 { TT_EGREP, zM88k_Bad_Hypot_OptSelect0, (regex_t*)NULL }, };
2646 * Fix Command Arguments for M88k_Bad_Hypot_Opt
2648 static const char* apzM88k_Bad_Hypot_OptPatch[] = {
2650 "%0/* Workaround a stupid Motorola optimization if one\n\
2651 of x or y is 0.0 and the other is negative! */\n\
2653 static __inline__ double fake_hypot (double x, double y)\n\
2655 static __inline__ double fake_hypot (x, y)\n\
2659 \treturn fabs (hypot (x, y));\n\
2661 #define hypot\tfake_hypot\n",
2664 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2666 * Description of M88k_Bad_S_If fix
2668 tSCC zM88k_Bad_S_IfName[] =
2672 * File name selection pattern
2674 tSCC zM88k_Bad_S_IfList[] =
2677 * Machine/OS name selection pattern
2679 tSCC* apzM88k_Bad_S_IfMachs[] = {
2681 (const char*)NULL };
2684 * content selection pattern - do fix if pattern found
2686 tSCC zM88k_Bad_S_IfSelect0[] =
2687 "#define[ \t]+S_IS[A-Z]+\\(m\\)[ \t]+\\(m[ \t]*&";
2689 #define M88K_BAD_S_IF_TEST_CT 1
2690 static tTestDesc aM88k_Bad_S_IfTests[] = {
2691 { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
2694 * Fix Command Arguments for M88k_Bad_S_If
2696 static const char* apzM88k_Bad_S_IfPatch[] = {
2698 "#define %1(m) (((m) & S_IFMT) == %2)",
2699 "#define[ \t]+(S_IS[A-Z]+)\\(m\\)[ \t]+\\(m[ \t]*&[ \t]*(S_IF[A-Z][A-Z][A-Z]+|0[0-9]+)[ \t]*\\)",
2702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2704 * Description of M88k_Multi_Incl fix
2706 tSCC zM88k_Multi_InclName[] =
2710 * File name selection pattern
2712 tSCC zM88k_Multi_InclList[] =
2715 * Machine/OS name selection pattern
2717 tSCC* apzM88k_Multi_InclMachs[] = {
2718 "m88k-tektronix-sysv3*",
2719 (const char*)NULL };
2722 * content bypass pattern - skip fix if pattern found
2724 tSCC zM88k_Multi_InclBypass0[] =
2727 #define M88K_MULTI_INCL_TEST_CT 1
2728 static tTestDesc aM88k_Multi_InclTests[] = {
2729 { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
2732 * Fix Command Arguments for M88k_Multi_Incl
2734 static const char* apzM88k_Multi_InclPatch[] = {
2738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2740 * Description of Machine_Ansi_H_Va_List fix
2742 tSCC zMachine_Ansi_H_Va_ListName[] =
2743 "machine_ansi_h_va_list";
2746 * File name selection pattern
2748 #define zMachine_Ansi_H_Va_ListList (char*)NULL
2750 * Machine/OS name selection pattern
2752 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2755 * content selection pattern - do fix if pattern found
2757 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2758 "define[ \t]+_BSD_VA_LIST_[ \t]";
2761 * content bypass pattern - skip fix if pattern found
2763 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2764 "__builtin_va_list";
2766 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2767 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2768 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2769 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2772 * Fix Command Arguments for Machine_Ansi_H_Va_List
2774 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2776 "%1__builtin_va_list",
2777 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2780 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2782 * Description of Machine_Name fix
2784 tSCC zMachine_NameName[] =
2788 * File name selection pattern
2790 #define zMachine_NameList (char*)NULL
2792 * Machine/OS name selection pattern
2794 #define apzMachine_NameMachs (const char**)NULL
2797 * perform the C function call test
2799 tSCC zMachine_NameFTst0[] = "machine_name";
2801 #define MACHINE_NAME_TEST_CT 1
2802 static tTestDesc aMachine_NameTests[] = {
2803 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2806 * Fix Command Arguments for Machine_Name
2808 static const char* apzMachine_NamePatch[] = {
2812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2814 * Description of Math_Exception fix
2816 tSCC zMath_ExceptionName[] =
2820 * File name selection pattern
2822 tSCC zMath_ExceptionList[] =
2825 * Machine/OS name selection pattern
2827 #define apzMath_ExceptionMachs (const char**)NULL
2830 * content selection pattern - do fix if pattern found
2832 tSCC zMath_ExceptionSelect0[] =
2836 * content bypass pattern - skip fix if pattern found
2838 tSCC zMath_ExceptionBypass0[] =
2839 "We have a problem when using C\\+\\+";
2841 #define MATH_EXCEPTION_TEST_CT 2
2842 static tTestDesc aMath_ExceptionTests[] = {
2843 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2844 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2847 * Fix Command Arguments for Math_Exception
2849 static const char* apzMath_ExceptionPatch[] = {
2851 "#ifdef __cplusplus\n\
2852 #define exception __math_exception\n\
2854 "#ifdef __cplusplus\n\
2859 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2861 * Description of Math_Huge_Val_From_Dbl_Max fix
2863 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2864 "math_huge_val_from_dbl_max";
2867 * File name selection pattern
2869 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2872 * Machine/OS name selection pattern
2874 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2877 * content selection pattern - do fix if pattern found
2879 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2880 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
2883 * content bypass pattern - skip fix if pattern found
2885 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2886 "define[ \t]+DBL_MAX";
2888 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2889 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2890 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2891 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2894 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2896 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2897 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
2898 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2899 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
2904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2906 * Description of Math_Huge_Val_Ifndef fix
2908 tSCC zMath_Huge_Val_IfndefName[] =
2909 "math_huge_val_ifndef";
2912 * File name selection pattern
2914 tSCC zMath_Huge_Val_IfndefList[] =
2915 "|math.h|math/math.h|";
2917 * Machine/OS name selection pattern
2919 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2922 * content selection pattern - do fix if pattern found
2924 tSCC zMath_Huge_Val_IfndefSelect0[] =
2925 "define[ \t]+HUGE_VAL";
2927 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2928 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
2929 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2932 * Fix Command Arguments for Math_Huge_Val_Ifndef
2934 static const char* apzMath_Huge_Val_IfndefPatch[] = {
2936 "#ifndef HUGE_VAL\n\
2939 "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
2942 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2944 * Description of Nested_Auth_Des fix
2946 tSCC zNested_Auth_DesName[] =
2950 * File name selection pattern
2952 tSCC zNested_Auth_DesList[] =
2955 * Machine/OS name selection pattern
2957 #define apzNested_Auth_DesMachs (const char**)NULL
2960 * content selection pattern - do fix if pattern found
2962 tSCC zNested_Auth_DesSelect0[] =
2963 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
2965 #define NESTED_AUTH_DES_TEST_CT 1
2966 static tTestDesc aNested_Auth_DesTests[] = {
2967 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
2970 * Fix Command Arguments for Nested_Auth_Des
2972 static const char* apzNested_Auth_DesPatch[] = {
2977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2979 * Description of Nested_Motorola fix
2981 tSCC zNested_MotorolaName[] =
2985 * File name selection pattern
2987 tSCC zNested_MotorolaList[] =
2988 "|sys/limits.h|limits.h|";
2990 * Machine/OS name selection pattern
2992 tSCC* apzNested_MotorolaMachs[] = {
2993 "m68k-motorola-sysv*",
2994 (const char*)NULL };
2997 * content selection pattern - do fix if pattern found
2999 tSCC zNested_MotorolaSelect0[] =
3000 "max # bytes atomic in write|error value returned by Math lib";
3002 #define NESTED_MOTOROLA_TEST_CT 1
3003 static tTestDesc aNested_MotorolaTests[] = {
3004 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
3007 * Fix Command Arguments for Nested_Motorola
3009 static const char* apzNested_MotorolaPatch[] = { "sed",
3010 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3011 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3016 * Description of Nested_Sys_Limits fix
3018 tSCC zNested_Sys_LimitsName[] =
3019 "nested_sys_limits";
3022 * File name selection pattern
3024 tSCC zNested_Sys_LimitsList[] =
3027 * Machine/OS name selection pattern
3029 #define apzNested_Sys_LimitsMachs (const char**)NULL
3032 * content selection pattern - do fix if pattern found
3034 tSCC zNested_Sys_LimitsSelect0[] =
3037 #define NESTED_SYS_LIMITS_TEST_CT 1
3038 static tTestDesc aNested_Sys_LimitsTests[] = {
3039 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3042 * Fix Command Arguments for Nested_Sys_Limits
3044 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3045 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3046 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3049 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3051 * Description of News_Os_Recursion fix
3053 tSCC zNews_Os_RecursionName[] =
3054 "news_os_recursion";
3057 * File name selection pattern
3059 tSCC zNews_Os_RecursionList[] =
3062 * Machine/OS name selection pattern
3064 #define apzNews_Os_RecursionMachs (const char**)NULL
3067 * content selection pattern - do fix if pattern found
3069 tSCC zNews_Os_RecursionSelect0[] =
3070 "[ \t]*#include <stdlib\\.h>.*";
3072 #define NEWS_OS_RECURSION_TEST_CT 1
3073 static tTestDesc aNews_Os_RecursionTests[] = {
3074 { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
3077 * Fix Command Arguments for News_Os_Recursion
3079 static const char* apzNews_Os_RecursionPatch[] = {
3081 "#ifdef BOGUS_RECURSION\n\
3086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3088 * Description of Next_Math_Prefix fix
3090 tSCC zNext_Math_PrefixName[] =
3094 * File name selection pattern
3096 tSCC zNext_Math_PrefixList[] =
3099 * Machine/OS name selection pattern
3101 #define apzNext_Math_PrefixMachs (const char**)NULL
3104 * content selection pattern - do fix if pattern found
3106 tSCC zNext_Math_PrefixSelect0[] =
3107 "^extern[ \t]+double[ \t]+__const__[ \t]";
3109 #define NEXT_MATH_PREFIX_TEST_CT 1
3110 static tTestDesc aNext_Math_PrefixTests[] = {
3111 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3114 * Fix Command Arguments for Next_Math_Prefix
3116 static const char* apzNext_Math_PrefixPatch[] = {
3118 "extern double %1(",
3119 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3124 * Description of Next_Template fix
3126 tSCC zNext_TemplateName[] =
3130 * File name selection pattern
3132 tSCC zNext_TemplateList[] =
3135 * Machine/OS name selection pattern
3137 #define apzNext_TemplateMachs (const char**)NULL
3140 * content selection pattern - do fix if pattern found
3142 tSCC zNext_TemplateSelect0[] =
3145 #define NEXT_TEMPLATE_TEST_CT 1
3146 static tTestDesc aNext_TemplateTests[] = {
3147 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
3150 * Fix Command Arguments for Next_Template
3152 static const char* apzNext_TemplatePatch[] = {
3155 "\\(([^)]*)[ \t]template\\)",
3158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3160 * Description of Next_Volitile fix
3162 tSCC zNext_VolitileName[] =
3166 * File name selection pattern
3168 tSCC zNext_VolitileList[] =
3171 * Machine/OS name selection pattern
3173 #define apzNext_VolitileMachs (const char**)NULL
3176 * content selection pattern - do fix if pattern found
3178 tSCC zNext_VolitileSelect0[] =
3179 "^extern[ \t]+volatile[ \t]+void[ \t]";
3181 #define NEXT_VOLITILE_TEST_CT 1
3182 static tTestDesc aNext_VolitileTests[] = {
3183 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
3186 * Fix Command Arguments for Next_Volitile
3188 static const char* apzNext_VolitilePatch[] = {
3191 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3196 * Description of Next_Wait_Union fix
3198 tSCC zNext_Wait_UnionName[] =
3202 * File name selection pattern
3204 tSCC zNext_Wait_UnionList[] =
3207 * Machine/OS name selection pattern
3209 #define apzNext_Wait_UnionMachs (const char**)NULL
3212 * content selection pattern - do fix if pattern found
3214 tSCC zNext_Wait_UnionSelect0[] =
3215 "wait\\(union wait";
3217 #define NEXT_WAIT_UNION_TEST_CT 1
3218 static tTestDesc aNext_Wait_UnionTests[] = {
3219 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3222 * Fix Command Arguments for Next_Wait_Union
3224 static const char* apzNext_Wait_UnionPatch[] = {
3229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3231 * Description of Nodeent_Syntax fix
3233 tSCC zNodeent_SyntaxName[] =
3237 * File name selection pattern
3239 tSCC zNodeent_SyntaxList[] =
3240 "|netdnet/dnetdb.h|";
3242 * Machine/OS name selection pattern
3244 #define apzNodeent_SyntaxMachs (const char**)NULL
3247 * content selection pattern - do fix if pattern found
3249 tSCC zNodeent_SyntaxSelect0[] =
3250 "char[ \t]*\\*na_addr[ \t]*$";
3252 #define NODEENT_SYNTAX_TEST_CT 1
3253 static tTestDesc aNodeent_SyntaxTests[] = {
3254 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3257 * Fix Command Arguments for Nodeent_Syntax
3259 static const char* apzNodeent_SyntaxPatch[] = {
3264 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3266 * Description of Osf_Namespace_A fix
3268 tSCC zOsf_Namespace_AName[] =
3272 * File name selection pattern
3274 tSCC zOsf_Namespace_AList[] =
3275 "|reg_types.h|sys/lc_core.h|";
3277 * Machine/OS name selection pattern
3279 #define apzOsf_Namespace_AMachs (const char**)NULL
3282 * perform the 'test' shell command - do fix on success
3284 tSCC zOsf_Namespace_ATest0[] =
3286 tSCC zOsf_Namespace_ATest1[] =
3287 " -r sys/lc_core.h";
3288 tSCC zOsf_Namespace_ATest2[] =
3289 " -n \"`grep '} regex_t;' reg_types.h`\"";
3290 tSCC zOsf_Namespace_ATest3[] =
3291 " -z \"`grep __regex_t regex.h`\"";
3293 #define OSF_NAMESPACE_A_TEST_CT 4
3294 static tTestDesc aOsf_Namespace_ATests[] = {
3295 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
3296 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
3297 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
3298 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
3301 * Fix Command Arguments for Osf_Namespace_A
3303 static const char* apzOsf_Namespace_APatch[] = {
3306 "reg(ex|off|match)_t",
3309 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3311 * Description of Osf_Namespace_C fix
3313 tSCC zOsf_Namespace_CName[] =
3317 * File name selection pattern
3319 tSCC zOsf_Namespace_CList[] =
3322 * Machine/OS name selection pattern
3324 #define apzOsf_Namespace_CMachs (const char**)NULL
3327 * content selection pattern - do fix if pattern found
3329 tSCC zOsf_Namespace_CSelect0[] =
3330 "#include <reg_types.h>.*";
3333 * perform the 'test' shell command - do fix on success
3335 tSCC zOsf_Namespace_CTest0[] =
3337 tSCC zOsf_Namespace_CTest1[] =
3338 " -r sys/lc_core.h";
3339 tSCC zOsf_Namespace_CTest2[] =
3340 " -n \"`grep '} regex_t;' reg_types.h`\"";
3341 tSCC zOsf_Namespace_CTest3[] =
3342 " -z \"`grep __regex_t regex.h`\"";
3344 #define OSF_NAMESPACE_C_TEST_CT 5
3345 static tTestDesc aOsf_Namespace_CTests[] = {
3346 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
3347 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
3348 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
3349 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
3350 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3353 * Fix Command Arguments for Osf_Namespace_C
3355 static const char* apzOsf_Namespace_CPatch[] = {
3358 typedef __regex_t\tregex_t;\n\
3359 typedef __regoff_t\tregoff_t;\n\
3360 typedef __regmatch_t\tregmatch_t;",
3363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3365 * Description of Pthread_Page_Size fix
3367 tSCC zPthread_Page_SizeName[] =
3368 "pthread_page_size";
3371 * File name selection pattern
3373 tSCC zPthread_Page_SizeList[] =
3376 * Machine/OS name selection pattern
3378 #define apzPthread_Page_SizeMachs (const char**)NULL
3381 * content selection pattern - do fix if pattern found
3383 tSCC zPthread_Page_SizeSelect0[] =
3386 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3387 static tTestDesc aPthread_Page_SizeTests[] = {
3388 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3391 * Fix Command Arguments for Pthread_Page_Size
3393 static const char* apzPthread_Page_SizePatch[] = {
3398 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3400 * Description of Read_Ret_Type fix
3402 tSCC zRead_Ret_TypeName[] =
3406 * File name selection pattern
3408 tSCC zRead_Ret_TypeList[] =
3411 * Machine/OS name selection pattern
3413 #define apzRead_Ret_TypeMachs (const char**)NULL
3416 * content selection pattern - do fix if pattern found
3418 tSCC zRead_Ret_TypeSelect0[] =
3419 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3421 #define READ_RET_TYPE_TEST_CT 1
3422 static tTestDesc aRead_Ret_TypeTests[] = {
3423 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3426 * Fix Command Arguments for Read_Ret_Type
3428 static const char* apzRead_Ret_TypePatch[] = {
3430 "extern unsigned int fread(), fwrite();\n\
3432 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3435 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3437 * Description of Rs6000_Double fix
3439 tSCC zRs6000_DoubleName[] =
3443 * File name selection pattern
3445 tSCC zRs6000_DoubleList[] =
3448 * Machine/OS name selection pattern
3450 #define apzRs6000_DoubleMachs (const char**)NULL
3453 * content selection pattern - do fix if pattern found
3455 tSCC zRs6000_DoubleSelect0[] =
3456 "[^a-zA-Z_]class\\(";
3458 #define RS6000_DOUBLE_TEST_CT 1
3459 static tTestDesc aRs6000_DoubleTests[] = {
3460 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3463 * Fix Command Arguments for Rs6000_Double
3465 static const char* apzRs6000_DoublePatch[] = {
3467 "#ifndef __cplusplus\n\
3470 "^.*[^a-zA-Z_]class\\(.*",
3473 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3475 * Description of Rs6000_Fchmod fix
3477 tSCC zRs6000_FchmodName[] =
3481 * File name selection pattern
3483 tSCC zRs6000_FchmodList[] =
3486 * Machine/OS name selection pattern
3488 #define apzRs6000_FchmodMachs (const char**)NULL
3491 * content selection pattern - do fix if pattern found
3493 tSCC zRs6000_FchmodSelect0[] =
3494 "fchmod\\(char \\*";
3496 #define RS6000_FCHMOD_TEST_CT 1
3497 static tTestDesc aRs6000_FchmodTests[] = {
3498 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3501 * Fix Command Arguments for Rs6000_Fchmod
3503 static const char* apzRs6000_FchmodPatch[] = {
3508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3510 * Description of Rs6000_Param fix
3512 tSCC zRs6000_ParamName[] =
3516 * File name selection pattern
3518 tSCC zRs6000_ParamList[] =
3519 "|stdio.h|unistd.h|";
3521 * Machine/OS name selection pattern
3523 #define apzRs6000_ParamMachs (const char**)NULL
3526 * content selection pattern - do fix if pattern found
3528 tSCC zRs6000_ParamSelect0[] =
3529 "rename\\(const char \\*old, const char \\*new\\)";
3531 #define RS6000_PARAM_TEST_CT 1
3532 static tTestDesc aRs6000_ParamTests[] = {
3533 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3536 * Fix Command Arguments for Rs6000_Param
3538 static const char* apzRs6000_ParamPatch[] = {
3540 "rename(const char *_old, const char *_new)",
3543 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3545 * Description of Sco_Static_Func fix
3547 tSCC zSco_Static_FuncName[] =
3551 * File name selection pattern
3553 tSCC zSco_Static_FuncList[] =
3556 * Machine/OS name selection pattern
3558 tSCC* apzSco_Static_FuncMachs[] = {
3560 (const char*)NULL };
3563 * content selection pattern - do fix if pattern found
3565 tSCC zSco_Static_FuncSelect0[] =
3568 #define SCO_STATIC_FUNC_TEST_CT 1
3569 static tTestDesc aSco_Static_FuncTests[] = {
3570 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3573 * Fix Command Arguments for Sco_Static_Func
3575 static const char* apzSco_Static_FuncPatch[] = { "sed",
3576 "-e", "/^static int/i\\\n\
3577 #if __cplusplus\\\n\
3579 #endif /* __cplusplus */",
3581 #if __cplusplus\\\n\
3583 #endif /* __cplusplus */",
3586 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3588 * Description of Sco_Utime fix
3590 tSCC zSco_UtimeName[] =
3594 * File name selection pattern
3596 tSCC zSco_UtimeList[] =
3599 * Machine/OS name selection pattern
3601 tSCC* apzSco_UtimeMachs[] = {
3603 (const char*)NULL };
3606 * content selection pattern - do fix if pattern found
3608 tSCC zSco_UtimeSelect0[] =
3609 "\\(const char \\*, struct utimbuf \\*\\);";
3611 #define SCO_UTIME_TEST_CT 1
3612 static tTestDesc aSco_UtimeTests[] = {
3613 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3616 * Fix Command Arguments for Sco_Utime
3618 static const char* apzSco_UtimePatch[] = {
3620 "(const char *, const struct utimbuf *);",
3623 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3625 * Description of Solaris_Mutex_Init fix
3627 tSCC zSolaris_Mutex_InitName[] =
3628 "solaris_mutex_init";
3631 * File name selection pattern
3633 tSCC zSolaris_Mutex_InitList[] =
3636 * Machine/OS name selection pattern
3638 #define apzSolaris_Mutex_InitMachs (const char**)NULL
3641 * content selection pattern - do fix if pattern found
3643 tSCC zSolaris_Mutex_InitSelect0[] =
3644 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
3646 #define SOLARIS_MUTEX_INIT_TEST_CT 1
3647 static tTestDesc aSolaris_Mutex_InitTests[] = {
3648 { TT_EGREP, zSolaris_Mutex_InitSelect0, (regex_t*)NULL }, };
3651 * Fix Command Arguments for Solaris_Mutex_Init
3653 static const char* apzSolaris_Mutex_InitPatch[] = {
3655 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
3660 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+{.*),[ \t]*0}(|[ \t].*)$",
3663 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3665 * Description of Solaris_Stdio_Tag fix
3667 tSCC zSolaris_Stdio_TagName[] =
3668 "solaris_stdio_tag";
3671 * File name selection pattern
3673 tSCC zSolaris_Stdio_TagList[] =
3676 * Machine/OS name selection pattern
3678 #define apzSolaris_Stdio_TagMachs (const char**)NULL
3681 * content selection pattern - do fix if pattern found
3683 tSCC zSolaris_Stdio_TagSelect0[] =
3684 "__cplusplus < 54321L";
3686 #define SOLARIS_STDIO_TAG_TEST_CT 1
3687 static tTestDesc aSolaris_Stdio_TagTests[] = {
3688 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
3691 * Fix Command Arguments for Solaris_Stdio_Tag
3693 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
3694 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
3697 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3699 * Description of Solaris_Sys_Varargs_H fix
3701 tSCC zSolaris_Sys_Varargs_HName[] =
3702 "solaris_sys_varargs_h";
3705 * File name selection pattern
3707 tSCC zSolaris_Sys_Varargs_HList[] =
3710 * Machine/OS name selection pattern
3712 tSCC* apzSolaris_Sys_Varargs_HMachs[] = {
3714 (const char*)NULL };
3715 #define SOLARIS_SYS_VARARGS_H_TEST_CT 0
3716 #define aSolaris_Sys_Varargs_HTests (tTestDesc*)NULL
3719 * Fix Command Arguments for Solaris_Sys_Varargs_H
3721 static const char* apzSolaris_Sys_Varargs_HPatch[] = {
3723 #include <stdarg.h>\n\
3725 #include <varargs.h>\n\
3729 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3731 * Description of Statsswtch fix
3733 tSCC zStatsswtchName[] =
3737 * File name selection pattern
3739 tSCC zStatsswtchList[] =
3742 * Machine/OS name selection pattern
3744 #define apzStatsswtchMachs (const char**)NULL
3747 * content selection pattern - do fix if pattern found
3749 tSCC zStatsswtchSelect0[] =
3752 #define STATSSWTCH_TEST_CT 1
3753 static tTestDesc aStatsswtchTests[] = {
3754 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3757 * Fix Command Arguments for Statsswtch
3759 static const char* apzStatsswtchPatch[] = {
3764 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3766 * Description of Stdio_Stdarg_H fix
3768 tSCC zStdio_Stdarg_HName[] =
3772 * File name selection pattern
3774 tSCC zStdio_Stdarg_HList[] =
3777 * Machine/OS name selection pattern
3779 #define apzStdio_Stdarg_HMachs (const char**)NULL
3782 * content bypass pattern - skip fix if pattern found
3784 tSCC zStdio_Stdarg_HBypass0[] =
3785 "include.*(stdarg.h|machine/ansi.h)";
3787 #define STDIO_STDARG_H_TEST_CT 1
3788 static tTestDesc aStdio_Stdarg_HTests[] = {
3789 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3792 * Fix Command Arguments for Stdio_Stdarg_H
3794 static const char* apzStdio_Stdarg_HPatch[] = {
3796 "#define __need___va_list\n\
3797 #include <stdarg.h>\n",
3800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3802 * Description of Stdio_Va_List fix
3804 tSCC zStdio_Va_ListName[] =
3808 * File name selection pattern
3810 tSCC zStdio_Va_ListList[] =
3813 * Machine/OS name selection pattern
3815 #define apzStdio_Va_ListMachs (const char**)NULL
3818 * content bypass pattern - skip fix if pattern found
3820 tSCC zStdio_Va_ListBypass0[] =
3821 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list";
3823 #define STDIO_VA_LIST_TEST_CT 1
3824 static tTestDesc aStdio_Va_ListTests[] = {
3825 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3828 * Fix Command Arguments for Stdio_Va_List
3830 static const char* apzStdio_Va_ListPatch[] = { "sed",
3831 "-e", "s@ va_list @ __gnuc_va_list @\n\
3832 s@ va_list)@ __gnuc_va_list)@\n\
3833 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3834 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
3835 s@ va_list@ __not_va_list__@\n\
3836 s@\\*va_list@*__not_va_list__@\n\
3837 s@ __va_list)@ __gnuc_va_list)@\n\
3838 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3839 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3840 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3841 s@VA_LIST@DUMMY_VA_LIST@\n\
3842 s@_Va_LIST@_VA_LIST@",
3845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3847 * Description of Strict_Ansi_Not fix
3849 tSCC zStrict_Ansi_NotName[] =
3853 * File name selection pattern
3855 #define zStrict_Ansi_NotList (char*)NULL
3857 * Machine/OS name selection pattern
3859 #define apzStrict_Ansi_NotMachs (const char**)NULL
3862 * content selection pattern - do fix if pattern found
3864 tSCC zStrict_Ansi_NotSelect0[] =
3865 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
3868 * content bypass pattern - skip fix if pattern found
3870 tSCC zStrict_Ansi_NotBypass0[] =
3871 "GNU and MIPS C compilers define __STDC__ differently";
3874 * perform the C function call test
3876 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
3878 #define STRICT_ANSI_NOT_TEST_CT 3
3879 static tTestDesc aStrict_Ansi_NotTests[] = {
3880 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
3881 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
3882 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
3885 * Fix Command Arguments for Strict_Ansi_Not
3887 static const char* apzStrict_Ansi_NotPatch[] = {
3889 "%1 !defined(__STRICT_ANSI__)",
3892 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3894 * Description of Strict_Ansi_Not_Ctd fix
3896 tSCC zStrict_Ansi_Not_CtdName[] =
3897 "strict_ansi_not_ctd";
3900 * File name selection pattern
3902 tSCC zStrict_Ansi_Not_CtdList[] =
3903 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
3905 * Machine/OS name selection pattern
3907 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
3910 * content selection pattern - do fix if pattern found
3912 tSCC zStrict_Ansi_Not_CtdSelect0[] =
3913 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
3916 * perform the C function call test
3918 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
3920 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
3921 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
3922 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
3923 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
3926 * Fix Command Arguments for Strict_Ansi_Not_Ctd
3928 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
3930 "%1 !defined(__STRICT_ANSI__)",
3933 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3935 * Description of Strict_Ansi_Only fix
3937 tSCC zStrict_Ansi_OnlyName[] =
3941 * File name selection pattern
3943 #define zStrict_Ansi_OnlyList (char*)NULL
3945 * Machine/OS name selection pattern
3947 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
3950 * content selection pattern - do fix if pattern found
3952 tSCC zStrict_Ansi_OnlySelect0[] =
3953 "^([ \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)";
3956 * perform the C function call test
3958 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
3960 #define STRICT_ANSI_ONLY_TEST_CT 2
3961 static tTestDesc aStrict_Ansi_OnlyTests[] = {
3962 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
3963 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
3966 * Fix Command Arguments for Strict_Ansi_Only
3968 static const char* apzStrict_Ansi_OnlyPatch[] = {
3970 "%1 defined(__STRICT_ANSI__)",
3973 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3975 * Description of Struct_File fix
3977 tSCC zStruct_FileName[] =
3981 * File name selection pattern
3983 tSCC zStruct_FileList[] =
3986 * Machine/OS name selection pattern
3988 #define apzStruct_FileMachs (const char**)NULL
3991 * content selection pattern - do fix if pattern found
3993 tSCC zStruct_FileSelect0[] =
3994 "^.*xdrstdio_create.*struct __file_s";
3996 #define STRUCT_FILE_TEST_CT 1
3997 static tTestDesc aStruct_FileTests[] = {
3998 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
4001 * Fix Command Arguments for Struct_File
4003 static const char* apzStruct_FilePatch[] = {
4005 "struct __file_s;\n\
4009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4011 * Description of Struct_Sockaddr fix
4013 tSCC zStruct_SockaddrName[] =
4017 * File name selection pattern
4019 tSCC zStruct_SockaddrList[] =
4022 * Machine/OS name selection pattern
4024 #define apzStruct_SockaddrMachs (const char**)NULL
4027 * content selection pattern - do fix if pattern found
4029 tSCC zStruct_SockaddrSelect0[] =
4030 "^.*authdes_create.*struct sockaddr";
4033 * content bypass pattern - skip fix if pattern found
4035 tSCC zStruct_SockaddrBypass0[] =
4038 #define STRUCT_SOCKADDR_TEST_CT 2
4039 static tTestDesc aStruct_SockaddrTests[] = {
4040 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
4041 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
4044 * Fix Command Arguments for Struct_Sockaddr
4046 static const char* apzStruct_SockaddrPatch[] = {
4048 "struct sockaddr;\n\
4052 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4054 * Description of Sun_Auth_Proto fix
4056 tSCC zSun_Auth_ProtoName[] =
4060 * File name selection pattern
4062 tSCC zSun_Auth_ProtoList[] =
4063 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
4065 * Machine/OS name selection pattern
4067 #define apzSun_Auth_ProtoMachs (const char**)NULL
4070 * content selection pattern - do fix if pattern found
4072 tSCC zSun_Auth_ProtoSelect0[] =
4073 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
4075 #define SUN_AUTH_PROTO_TEST_CT 1
4076 static tTestDesc aSun_Auth_ProtoTests[] = {
4077 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
4080 * Fix Command Arguments for Sun_Auth_Proto
4082 static const char* apzSun_Auth_ProtoPatch[] = {
4084 "#ifdef __cplusplus\n\
4089 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
4092 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4094 * Description of Sun_Bogus_Ifdef fix
4096 tSCC zSun_Bogus_IfdefName[] =
4100 * File name selection pattern
4102 tSCC zSun_Bogus_IfdefList[] =
4103 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
4105 * Machine/OS name selection pattern
4107 #define apzSun_Bogus_IfdefMachs (const char**)NULL
4110 * content selection pattern - do fix if pattern found
4112 tSCC zSun_Bogus_IfdefSelect0[] =
4113 "#ifdef(.*\\|\\|.*)";
4115 #define SUN_BOGUS_IFDEF_TEST_CT 1
4116 static tTestDesc aSun_Bogus_IfdefTests[] = {
4117 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
4120 * Fix Command Arguments for Sun_Bogus_Ifdef
4122 static const char* apzSun_Bogus_IfdefPatch[] = {
4127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4129 * Description of Sun_Catmacro fix
4131 tSCC zSun_CatmacroName[] =
4135 * File name selection pattern
4137 tSCC zSun_CatmacroList[] =
4138 "|pixrect/memvar.h|";
4140 * Machine/OS name selection pattern
4142 #define apzSun_CatmacroMachs (const char**)NULL
4145 * content selection pattern - do fix if pattern found
4147 tSCC zSun_CatmacroSelect0[] =
4148 "^#define[ \t]+CAT\\(a,b\\).*";
4150 #define SUN_CATMACRO_TEST_CT 1
4151 static tTestDesc aSun_CatmacroTests[] = {
4152 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
4155 * Fix Command Arguments for Sun_Catmacro
4157 static const char* apzSun_CatmacroPatch[] = {
4160 # define CAT(a,b) a##b\n\
4166 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4168 * Description of Sun_Malloc fix
4170 tSCC zSun_MallocName[] =
4174 * File name selection pattern
4176 tSCC zSun_MallocList[] =
4179 * Machine/OS name selection pattern
4181 #define apzSun_MallocMachs (const char**)NULL
4182 #define SUN_MALLOC_TEST_CT 0
4183 #define aSun_MallocTests (tTestDesc*)NULL
4186 * Fix Command Arguments for Sun_Malloc
4188 static const char* apzSun_MallocPatch[] = { "sed",
4189 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
4190 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
4191 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
4192 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
4193 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
4196 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4198 * Description of Sun_Rusers_Semi fix
4200 tSCC zSun_Rusers_SemiName[] =
4204 * File name selection pattern
4206 tSCC zSun_Rusers_SemiList[] =
4207 "|rpcsvc/rusers.h|";
4209 * Machine/OS name selection pattern
4211 #define apzSun_Rusers_SemiMachs (const char**)NULL
4214 * content selection pattern - do fix if pattern found
4216 tSCC zSun_Rusers_SemiSelect0[] =
4219 #define SUN_RUSERS_SEMI_TEST_CT 1
4220 static tTestDesc aSun_Rusers_SemiTests[] = {
4221 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
4224 * Fix Command Arguments for Sun_Rusers_Semi
4226 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
4227 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
4230 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4232 * Description of Sun_Signal fix
4234 tSCC zSun_SignalName[] =
4238 * File name selection pattern
4240 tSCC zSun_SignalList[] =
4241 "|sys/signal.h|signal.h|";
4243 * Machine/OS name selection pattern
4245 #define apzSun_SignalMachs (const char**)NULL
4248 * content selection pattern - do fix if pattern found
4250 tSCC zSun_SignalSelect0[] =
4251 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
4253 #define SUN_SIGNAL_TEST_CT 1
4254 static tTestDesc aSun_SignalTests[] = {
4255 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
4258 * Fix Command Arguments for Sun_Signal
4260 static const char* apzSun_SignalPatch[] = {
4262 "#ifdef __cplusplus\n\
4263 void\t(*signal(...))(...);\n\
4269 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4271 * Description of Sunos_Matherr_Decl fix
4273 tSCC zSunos_Matherr_DeclName[] =
4274 "sunos_matherr_decl";
4277 * File name selection pattern
4279 tSCC zSunos_Matherr_DeclList[] =
4282 * Machine/OS name selection pattern
4284 #define apzSunos_Matherr_DeclMachs (const char**)NULL
4287 * content selection pattern - do fix if pattern found
4289 tSCC zSunos_Matherr_DeclSelect0[] =
4293 * content bypass pattern - skip fix if pattern found
4295 tSCC zSunos_Matherr_DeclBypass0[] =
4296 "matherr.*(struct exception|__MATH_EXCEPTION)";
4298 #define SUNOS_MATHERR_DECL_TEST_CT 2
4299 static tTestDesc aSunos_Matherr_DeclTests[] = {
4300 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
4301 { TT_EGREP, zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
4304 * Fix Command Arguments for Sunos_Matherr_Decl
4306 static const char* apzSunos_Matherr_DeclPatch[] = {
4308 "struct exception;\n",
4311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4313 * Description of Sunos_Strlen fix
4315 tSCC zSunos_StrlenName[] =
4319 * File name selection pattern
4321 tSCC zSunos_StrlenList[] =
4324 * Machine/OS name selection pattern
4326 #define apzSunos_StrlenMachs (const char**)NULL
4329 * content selection pattern - do fix if pattern found
4331 tSCC zSunos_StrlenSelect0[] =
4332 "int[ \t]*strlen\\(\\);(.*)";
4334 #define SUNOS_STRLEN_TEST_CT 1
4335 static tTestDesc aSunos_StrlenTests[] = {
4336 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
4339 * Fix Command Arguments for Sunos_Strlen
4341 static const char* apzSunos_StrlenPatch[] = {
4343 "__SIZE_TYPE__ strlen();%1",
4346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4348 * Description of Svr4__P fix
4350 tSCC zSvr4__PName[] =
4354 * File name selection pattern
4356 tSCC zSvr4__PList[] =
4357 "|math.h|floatingpoint.h|";
4359 * Machine/OS name selection pattern
4361 #define apzSvr4__PMachs (const char**)NULL
4364 * content selection pattern - do fix if pattern found
4366 tSCC zSvr4__PSelect0[] =
4367 "^#define[ \t]+__P.*";
4369 #define SVR4__P_TEST_CT 1
4370 static tTestDesc aSvr4__PTests[] = {
4371 { TT_EGREP, zSvr4__PSelect0, (regex_t*)NULL }, };
4374 * Fix Command Arguments for Svr4__P
4376 static const char* apzSvr4__PPatch[] = {
4383 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4385 * Description of Svr4_Getcwd fix
4387 tSCC zSvr4_GetcwdName[] =
4391 * File name selection pattern
4393 tSCC zSvr4_GetcwdList[] =
4394 "|stdlib.h|unistd.h|prototypes.h|";
4396 * Machine/OS name selection pattern
4398 #define apzSvr4_GetcwdMachs (const char**)NULL
4401 * content selection pattern - do fix if pattern found
4403 tSCC zSvr4_GetcwdSelect0[] =
4404 "getcwd\\(char \\*, int\\)";
4406 #define SVR4_GETCWD_TEST_CT 1
4407 static tTestDesc aSvr4_GetcwdTests[] = {
4408 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4411 * Fix Command Arguments for Svr4_Getcwd
4413 static const char* apzSvr4_GetcwdPatch[] = {
4415 "getcwd(char *, size_t)",
4418 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4420 * Description of Svr4_Profil fix
4422 tSCC zSvr4_ProfilName[] =
4426 * File name selection pattern
4428 tSCC zSvr4_ProfilList[] =
4429 "|stdlib.h|unistd.h|";
4431 * Machine/OS name selection pattern
4433 #define apzSvr4_ProfilMachs (const char**)NULL
4436 * content selection pattern - do fix if pattern found
4438 tSCC zSvr4_ProfilSelect0[] =
4439 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
4441 #define SVR4_PROFIL_TEST_CT 1
4442 static tTestDesc aSvr4_ProfilTests[] = {
4443 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
4446 * Fix Command Arguments for Svr4_Profil
4448 static const char* apzSvr4_ProfilPatch[] = {
4450 "profil(unsigned short *, size_t, int, unsigned int)",
4453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4455 * Description of Sysv68_String fix
4457 tSCC zSysv68_StringName[] =
4461 * File name selection pattern
4463 tSCC zSysv68_StringList[] =
4464 "|testing.h|string.h|";
4466 * Machine/OS name selection pattern
4468 #define apzSysv68_StringMachs (const char**)NULL
4469 #define SYSV68_STRING_TEST_CT 0
4470 #define aSysv68_StringTests (tTestDesc*)NULL
4473 * Fix Command Arguments for Sysv68_String
4475 static const char* apzSysv68_StringPatch[] = { "sed",
4476 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4477 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4478 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4479 "-e", "/^extern char$/N",
4480 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4481 "-e", "/^extern int$/N",
4482 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4483 "-e", "/^\tstrncmp(),$/N",
4484 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4485 extern unsigned int\\\n\
4489 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4491 * Description of Sysz_Stdlib_For_Sun fix
4493 tSCC zSysz_Stdlib_For_SunName[] =
4494 "sysz_stdlib_for_sun";
4497 * File name selection pattern
4499 tSCC zSysz_Stdlib_For_SunList[] =
4502 * Machine/OS name selection pattern
4504 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4507 * content selection pattern - do fix if pattern found
4509 tSCC zSysz_Stdlib_For_SunSelect0[] =
4510 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
4512 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 1
4513 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
4514 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4517 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4519 static const char* apzSysz_Stdlib_For_SunPatch[] = {
4524 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4526 * Description of Tinfo_Cplusplus fix
4528 tSCC zTinfo_CplusplusName[] =
4532 * File name selection pattern
4534 tSCC zTinfo_CplusplusList[] =
4537 * Machine/OS name selection pattern
4539 #define apzTinfo_CplusplusMachs (const char**)NULL
4542 * content selection pattern - do fix if pattern found
4544 tSCC zTinfo_CplusplusSelect0[] =
4547 #define TINFO_CPLUSPLUS_TEST_CT 1
4548 static tTestDesc aTinfo_CplusplusTests[] = {
4549 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4552 * Fix Command Arguments for Tinfo_Cplusplus
4554 static const char* apzTinfo_CplusplusPatch[] = {
4559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4561 * Description of Ultrix_Atexit_Param fix
4563 tSCC zUltrix_Atexit_ParamName[] =
4564 "ultrix_atexit_param";
4567 * File name selection pattern
4569 tSCC zUltrix_Atexit_ParamList[] =
4572 * Machine/OS name selection pattern
4574 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
4577 * content selection pattern - do fix if pattern found
4579 tSCC zUltrix_Atexit_ParamSelect0[] =
4580 "atexit\\(.*\\(\\)";
4582 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
4583 static tTestDesc aUltrix_Atexit_ParamTests[] = {
4584 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
4587 * Fix Command Arguments for Ultrix_Atexit_Param
4589 static const char* apzUltrix_Atexit_ParamPatch[] = {
4591 "atexit( void (*__func)( void )",
4594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4596 * Description of Ultrix_Atof_Param fix
4598 tSCC zUltrix_Atof_ParamName[] =
4599 "ultrix_atof_param";
4602 * File name selection pattern
4604 tSCC zUltrix_Atof_ParamList[] =
4607 * Machine/OS name selection pattern
4609 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4612 * content selection pattern - do fix if pattern found
4614 tSCC zUltrix_Atof_ParamSelect0[] =
4615 "atof\\([ \t]*char";
4617 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4618 static tTestDesc aUltrix_Atof_ParamTests[] = {
4619 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4622 * Fix Command Arguments for Ultrix_Atof_Param
4624 static const char* apzUltrix_Atof_ParamPatch[] = {
4629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4631 * Description of Ultrix_Const fix
4633 tSCC zUltrix_ConstName[] =
4637 * File name selection pattern
4639 tSCC zUltrix_ConstList[] =
4642 * Machine/OS name selection pattern
4644 #define apzUltrix_ConstMachs (const char**)NULL
4647 * content selection pattern - do fix if pattern found
4649 tSCC zUltrix_ConstSelect0[] =
4650 "perror\\( char \\*";
4652 #define ULTRIX_CONST_TEST_CT 1
4653 static tTestDesc aUltrix_ConstTests[] = {
4654 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
4657 * Fix Command Arguments for Ultrix_Const
4659 static const char* apzUltrix_ConstPatch[] = {
4662 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
4665 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4667 * Description of Ultrix_Const2 fix
4669 tSCC zUltrix_Const2Name[] =
4673 * File name selection pattern
4675 tSCC zUltrix_Const2List[] =
4678 * Machine/OS name selection pattern
4680 #define apzUltrix_Const2Machs (const char**)NULL
4683 * content selection pattern - do fix if pattern found
4685 tSCC zUltrix_Const2Select0[] =
4686 "\\*fopen\\( char \\*";
4688 #define ULTRIX_CONST2_TEST_CT 1
4689 static tTestDesc aUltrix_Const2Tests[] = {
4690 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
4693 * Fix Command Arguments for Ultrix_Const2
4695 static const char* apzUltrix_Const2Patch[] = {
4697 "%1( const char *%3, const char *",
4698 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
4701 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4703 * Description of Ultrix_Fix_Fixproto fix
4705 tSCC zUltrix_Fix_FixprotoName[] =
4706 "ultrix_fix_fixproto";
4709 * File name selection pattern
4711 tSCC zUltrix_Fix_FixprotoList[] =
4714 * Machine/OS name selection pattern
4716 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4719 * content selection pattern - do fix if pattern found
4721 tSCC zUltrix_Fix_FixprotoSelect0[] =
4724 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4725 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
4726 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4729 * Fix Command Arguments for Ultrix_Fix_Fixproto
4731 static const char* apzUltrix_Fix_FixprotoPatch[] = {
4735 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
4738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4740 * Description of Ultrix_Ifdef fix
4742 tSCC zUltrix_IfdefName[] =
4746 * File name selection pattern
4748 tSCC zUltrix_IfdefList[] =
4751 * Machine/OS name selection pattern
4753 #define apzUltrix_IfdefMachs (const char**)NULL
4756 * content selection pattern - do fix if pattern found
4758 tSCC zUltrix_IfdefSelect0[] =
4759 "^#ifdef KERNEL[ \t]+&&";
4761 #define ULTRIX_IFDEF_TEST_CT 1
4762 static tTestDesc aUltrix_IfdefTests[] = {
4763 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4766 * Fix Command Arguments for Ultrix_Ifdef
4768 static const char* apzUltrix_IfdefPatch[] = {
4770 "#if defined(KERNEL) &&",
4773 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4775 * Description of Ultrix_Math_Ifdef fix
4777 tSCC zUltrix_Math_IfdefName[] =
4778 "ultrix_math_ifdef";
4781 * File name selection pattern
4783 tSCC zUltrix_Math_IfdefList[] =
4784 "|sys/limits.h|float.h|math.h|";
4786 * Machine/OS name selection pattern
4788 #define apzUltrix_Math_IfdefMachs (const char**)NULL
4791 * content selection pattern - do fix if pattern found
4793 tSCC zUltrix_Math_IfdefSelect0[] =
4794 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
4796 #define ULTRIX_MATH_IFDEF_TEST_CT 1
4797 static tTestDesc aUltrix_Math_IfdefTests[] = {
4798 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
4801 * Fix Command Arguments for Ultrix_Math_Ifdef
4803 static const char* apzUltrix_Math_IfdefPatch[] = {
4808 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4810 * Description of Ultrix_Nested_Ioctl fix
4812 tSCC zUltrix_Nested_IoctlName[] =
4813 "ultrix_nested_ioctl";
4816 * File name selection pattern
4818 tSCC zUltrix_Nested_IoctlList[] =
4821 * Machine/OS name selection pattern
4823 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
4826 * content selection pattern - do fix if pattern found
4828 tSCC zUltrix_Nested_IoctlSelect0[] =
4829 "^/\\* #define SIOCSCREEN";
4831 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
4832 static tTestDesc aUltrix_Nested_IoctlTests[] = {
4833 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
4836 * Fix Command Arguments for Ultrix_Nested_Ioctl
4838 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
4839 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
4842 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4844 * Description of Ultrix_Nested_Svc fix
4846 tSCC zUltrix_Nested_SvcName[] =
4847 "ultrix_nested_svc";
4850 * File name selection pattern
4852 tSCC zUltrix_Nested_SvcList[] =
4855 * Machine/OS name selection pattern
4857 #define apzUltrix_Nested_SvcMachs (const char**)NULL
4860 * content selection pattern - do fix if pattern found
4862 tSCC zUltrix_Nested_SvcSelect0[] =
4863 "^ \\*[ \t]*int protocol; */\\*";
4865 #define ULTRIX_NESTED_SVC_TEST_CT 1
4866 static tTestDesc aUltrix_Nested_SvcTests[] = {
4867 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
4870 * Fix Command Arguments for Ultrix_Nested_Svc
4872 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
4873 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
4876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4878 * Description of Ultrix_Stat fix
4880 tSCC zUltrix_StatName[] =
4884 * File name selection pattern
4886 tSCC zUltrix_StatList[] =
4889 * Machine/OS name selection pattern
4891 #define apzUltrix_StatMachs (const char**)NULL
4894 * content selection pattern - do fix if pattern found
4896 tSCC zUltrix_StatSelect0[] =
4897 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
4899 #define ULTRIX_STAT_TEST_CT 1
4900 static tTestDesc aUltrix_StatTests[] = {
4901 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
4904 * Fix Command Arguments for Ultrix_Stat
4906 static const char* apzUltrix_StatPatch[] = { "sed",
4907 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
4909 /* macro to test for symbolic link */\\\n\
4910 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
4911 "-e", "/^[ \t]*fstat(),$/a\\\n\
4915 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4917 * Description of Ultrix_Static fix
4919 tSCC zUltrix_StaticName[] =
4923 * File name selection pattern
4925 tSCC zUltrix_StaticList[] =
4928 * Machine/OS name selection pattern
4930 #define apzUltrix_StaticMachs (const char**)NULL
4933 * content selection pattern - do fix if pattern found
4935 tSCC zUltrix_StaticSelect0[] =
4936 "#include \"r[34]_cpu";
4938 #define ULTRIX_STATIC_TEST_CT 1
4939 static tTestDesc aUltrix_StaticTests[] = {
4940 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
4943 * Fix Command Arguments for Ultrix_Static
4945 static const char* apzUltrix_StaticPatch[] = { "sed",
4946 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
4947 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
4948 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
4951 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4953 * Description of Ultrix_Strings fix
4955 tSCC zUltrix_StringsName[] =
4959 * File name selection pattern
4961 tSCC zUltrix_StringsList[] =
4964 * Machine/OS name selection pattern
4966 #define apzUltrix_StringsMachs (const char**)NULL
4969 * content selection pattern - do fix if pattern found
4971 tSCC zUltrix_StringsSelect0[] =
4972 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
4974 #define ULTRIX_STRINGS_TEST_CT 1
4975 static tTestDesc aUltrix_StringsTests[] = {
4976 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
4979 * Fix Command Arguments for Ultrix_Strings
4981 static const char* apzUltrix_StringsPatch[] = {
4985 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4987 * Description of Undefine_Null fix
4989 tSCC zUndefine_NullName[] =
4993 * File name selection pattern
4995 #define zUndefine_NullList (char*)NULL
4997 * Machine/OS name selection pattern
4999 #define apzUndefine_NullMachs (const char**)NULL
5002 * content selection pattern - do fix if pattern found
5004 tSCC zUndefine_NullSelect0[] =
5005 "^#[ \t]*define[ \t]+NULL[ \t]";
5008 * content bypass pattern - skip fix if pattern found
5010 tSCC zUndefine_NullBypass0[] =
5011 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
5013 #define UNDEFINE_NULL_TEST_CT 2
5014 static tTestDesc aUndefine_NullTests[] = {
5015 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
5016 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
5019 * Fix Command Arguments for Undefine_Null
5021 static const char* apzUndefine_NullPatch[] = {
5026 "^#[ \t]*define[ \t]*[ \t]NULL([^\r\n\
5030 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5032 * Description of Unicosmk_Restrict fix
5034 tSCC zUnicosmk_RestrictName[] =
5035 "unicosmk_restrict";
5038 * File name selection pattern
5040 tSCC zUnicosmk_RestrictList[] =
5041 "|stdio.h|stdlib.h|wchar.h|";
5043 * Machine/OS name selection pattern
5045 tSCC* apzUnicosmk_RestrictMachs[] = {
5047 (const char*)NULL };
5050 * content selection pattern - do fix if pattern found
5052 tSCC zUnicosmk_RestrictSelect0[] =
5053 "(\\*[ \t]*)restrict([ \t]+)";
5055 #define UNICOSMK_RESTRICT_TEST_CT 1
5056 static tTestDesc aUnicosmk_RestrictTests[] = {
5057 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
5060 * Fix Command Arguments for Unicosmk_Restrict
5062 static const char* apzUnicosmk_RestrictPatch[] = {
5067 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5069 * Description of Uw7_Byteorder_Fix fix
5071 tSCC zUw7_Byteorder_FixName[] =
5072 "uw7_byteorder_fix";
5075 * File name selection pattern
5077 tSCC zUw7_Byteorder_FixList[] =
5080 * Machine/OS name selection pattern
5082 tSCC* apzUw7_Byteorder_FixMachs[] = {
5086 "i?86-*-solaris2.[0-4]",
5087 "powerpcle-*-solaris2.[0-4]",
5088 "sparc-*-solaris2.[0-4]",
5089 (const char*)NULL };
5092 * content selection pattern - do fix if pattern found
5094 tSCC zUw7_Byteorder_FixSelect0[] =
5098 * perform the 'test' shell command - do fix on success
5100 tSCC zUw7_Byteorder_FixTest0[] =
5101 "-f sys/byteorder.h";
5103 #define UW7_BYTEORDER_FIX_TEST_CT 2
5104 static tTestDesc aUw7_Byteorder_FixTests[] = {
5105 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
5106 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
5109 * Fix Command Arguments for Uw7_Byteorder_Fix
5111 static const char* apzUw7_Byteorder_FixPatch[] = {
5114 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
5117 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5119 * Description of Va_I960_Macro fix
5121 tSCC zVa_I960_MacroName[] =
5125 * File name selection pattern
5127 tSCC zVa_I960_MacroList[] =
5128 "|arch/i960/archI960.h|";
5130 * Machine/OS name selection pattern
5132 #define apzVa_I960_MacroMachs (const char**)NULL
5135 * content selection pattern - do fix if pattern found
5137 tSCC zVa_I960_MacroSelect0[] =
5138 "__(vsiz|vali|vpad|alignof__)";
5140 #define VA_I960_MACRO_TEST_CT 1
5141 static tTestDesc aVa_I960_MacroTests[] = {
5142 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
5145 * Fix Command Arguments for Va_I960_Macro
5147 static const char* apzVa_I960_MacroPatch[] = {
5152 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5154 * Description of Void_Null fix
5156 tSCC zVoid_NullName[] =
5160 * File name selection pattern
5162 tSCC zVoid_NullList[] =
5163 "|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|";
5165 * Machine/OS name selection pattern
5167 #define apzVoid_NullMachs (const char**)NULL
5170 * content selection pattern - do fix if pattern found
5172 tSCC zVoid_NullSelect0[] =
5173 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
5175 #define VOID_NULL_TEST_CT 1
5176 static tTestDesc aVoid_NullTests[] = {
5177 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
5180 * Fix Command Arguments for Void_Null
5182 static const char* apzVoid_NullPatch[] = {
5187 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5189 * Description of Vxworks_Gcc_Problem fix
5191 tSCC zVxworks_Gcc_ProblemName[] =
5192 "vxworks_gcc_problem";
5195 * File name selection pattern
5197 tSCC zVxworks_Gcc_ProblemList[] =
5198 "|types/vxTypesBase.h|";
5200 * Machine/OS name selection pattern
5202 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
5205 * content selection pattern - do fix if pattern found
5207 tSCC zVxworks_Gcc_ProblemSelect0[] =
5208 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
5210 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
5211 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
5212 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
5215 * Fix Command Arguments for Vxworks_Gcc_Problem
5217 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
5218 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
5219 "-e", "/[ \t]size_t/i\\\n\
5220 #ifndef _GCC_SIZE_T\\\n\
5221 #define _GCC_SIZE_T\n",
5222 "-e", "/[ \t]size_t/a\\\n\
5224 "-e", "/[ \t]ptrdiff_t/i\\\n\
5225 #ifndef _GCC_PTRDIFF_T\\\n\
5226 #define _GCC_PTRDIFF_T\n",
5227 "-e", "/[ \t]ptrdiff_t/a\\\n\
5229 "-e", "/[ \t]wchar_t/i\\\n\
5230 #ifndef _GCC_WCHAR_T\\\n\
5231 #define _GCC_WCHAR_T\n",
5232 "-e", "/[ \t]wchar_t/a\\\n\
5236 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5238 * Description of Vxworks_Needs_Vxtypes fix
5240 tSCC zVxworks_Needs_VxtypesName[] =
5241 "vxworks_needs_vxtypes";
5244 * File name selection pattern
5246 tSCC zVxworks_Needs_VxtypesList[] =
5249 * Machine/OS name selection pattern
5251 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
5254 * content selection pattern - do fix if pattern found
5256 tSCC zVxworks_Needs_VxtypesSelect0[] =
5257 "uint_t([ \t]+_clocks_per_sec)";
5259 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
5260 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
5261 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
5264 * Fix Command Arguments for Vxworks_Needs_Vxtypes
5266 static const char* apzVxworks_Needs_VxtypesPatch[] = {
5271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5273 * Description of Vxworks_Needs_Vxworks fix
5275 tSCC zVxworks_Needs_VxworksName[] =
5276 "vxworks_needs_vxworks";
5279 * File name selection pattern
5281 tSCC zVxworks_Needs_VxworksList[] =
5284 * Machine/OS name selection pattern
5286 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
5289 * content selection pattern - do fix if pattern found
5291 tSCC zVxworks_Needs_VxworksSelect0[] =
5292 "#[ \t]define[ \t]+__INCstath";
5295 * perform the 'test' shell command - do fix on success
5297 tSCC zVxworks_Needs_VxworksTest0[] =
5298 " -r types/vxTypesOld.h";
5299 tSCC zVxworks_Needs_VxworksTest1[] =
5300 " -n \"`egrep '#include' $file`\"";
5301 tSCC zVxworks_Needs_VxworksTest2[] =
5302 " -n \"`egrep ULONG $file`\"";
5304 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
5305 static tTestDesc aVxworks_Needs_VxworksTests[] = {
5306 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
5307 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
5308 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
5309 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
5312 * Fix Command Arguments for Vxworks_Needs_Vxworks
5314 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
5315 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
5316 #include <types/vxTypesOld.h>\n",
5319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5321 * Description of Vxworks_Time fix
5323 tSCC zVxworks_TimeName[] =
5327 * File name selection pattern
5329 tSCC zVxworks_TimeList[] =
5332 * Machine/OS name selection pattern
5334 #define apzVxworks_TimeMachs (const char**)NULL
5337 * content selection pattern - do fix if pattern found
5339 tSCC zVxworks_TimeSelect0[] =
5340 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
5343 * perform the 'test' shell command - do fix on success
5345 tSCC zVxworks_TimeTest0[] =
5348 #define VXWORKS_TIME_TEST_CT 2
5349 static tTestDesc aVxworks_TimeTests[] = {
5350 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
5351 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
5354 * Fix Command Arguments for Vxworks_Time
5356 static const char* apzVxworks_TimePatch[] = {
5358 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
5359 #ifdef __cplusplus\n\
5360 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
5362 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
5364 #define __gcc_VOIDFUNCPTR_defined\n\
5366 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
5369 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5371 * Description of X11_Class fix
5373 tSCC zX11_ClassName[] =
5377 * File name selection pattern
5379 tSCC zX11_ClassList[] =
5382 * Machine/OS name selection pattern
5384 #define apzX11_ClassMachs (const char**)NULL
5387 * content selection pattern - do fix if pattern found
5389 tSCC zX11_ClassSelect0[] =
5390 "^([ \t]*char \\*)class;(.*)";
5393 * content bypass pattern - skip fix if pattern found
5395 tSCC zX11_ClassBypass0[] =
5398 #define X11_CLASS_TEST_CT 2
5399 static tTestDesc aX11_ClassTests[] = {
5400 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
5401 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
5404 * Fix Command Arguments for X11_Class
5406 static const char* apzX11_ClassPatch[] = {
5408 "#ifdef __cplusplus\n\
5415 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5417 * Description of X11_Class_Usage fix
5419 tSCC zX11_Class_UsageName[] =
5423 * File name selection pattern
5425 tSCC zX11_Class_UsageList[] =
5426 "|Xm/BaseClassI.h|";
5428 * Machine/OS name selection pattern
5430 #define apzX11_Class_UsageMachs (const char**)NULL
5433 * content selection pattern - do fix if pattern found
5435 tSCC zX11_Class_UsageSelect0[] =
5439 * content bypass pattern - skip fix if pattern found
5441 tSCC zX11_Class_UsageBypass0[] =
5444 #define X11_CLASS_USAGE_TEST_CT 2
5445 static tTestDesc aX11_Class_UsageTests[] = {
5446 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
5447 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
5450 * Fix Command Arguments for X11_Class_Usage
5452 static const char* apzX11_Class_UsagePatch[] = {
5457 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5459 * Description of X11_New fix
5461 tSCC zX11_NewName[] =
5465 * File name selection pattern
5467 tSCC zX11_NewList[] =
5470 * Machine/OS name selection pattern
5472 #define apzX11_NewMachs (const char**)NULL
5475 * content bypass pattern - skip fix if pattern found
5477 tSCC zX11_NewBypass0[] =
5480 #define X11_NEW_TEST_CT 1
5481 static tTestDesc aX11_NewTests[] = {
5482 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
5485 * Fix Command Arguments for X11_New
5487 static const char* apzX11_NewPatch[] = { "sed",
5488 "-e", "/Widget\told, new;/i\\\n\
5489 #ifdef __cplusplus\\\n\
5490 \tWidget\told, c_new;\\\n\
5492 "-e", "/Widget\told, new;/a\\\n\
5494 "-e", "s/Widget new,/Widget c_new,/g",
5497 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5499 * Description of X11_Sprintf fix
5501 tSCC zX11_SprintfName[] =
5505 * File name selection pattern
5507 tSCC zX11_SprintfList[] =
5508 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
5510 * Machine/OS name selection pattern
5512 #define apzX11_SprintfMachs (const char**)NULL
5515 * content selection pattern - do fix if pattern found
5517 tSCC zX11_SprintfSelect0[] =
5518 "^extern char \\*\tsprintf\\(\\);$";
5520 #define X11_SPRINTF_TEST_CT 1
5521 static tTestDesc aX11_SprintfTests[] = {
5522 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
5525 * Fix Command Arguments for X11_Sprintf
5527 static const char* apzX11_SprintfPatch[] = {
5529 "#ifndef __STDC__\n\
5531 #endif /* !defined __STDC__ */",
5535 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5539 #define REGEX_COUNT 149
5540 #define MACH_LIST_SIZE_LIMIT 279
5541 #define FIX_COUNT 141
5544 * Enumerate the fixes
5547 AAB_DGUX_INT_VARARGS_FIXIDX,
5548 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
5549 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
5550 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
5551 AAB_SUN_MEMCPY_FIXIDX,
5552 AAB_SVR4_REPLACE_BYTEORDER_FIXIDX,
5553 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
5554 AAB_ULTRIX_LIMITS_FIXIDX,
5555 AAB_ULTRIX_MEMORY_FIXIDX,
5556 AAB_ULTRIX_STRING_FIXIDX,
5558 AIX_SYSMACHINE_FIXIDX,
5560 AIX_VOLATILE_FIXIDX,
5561 ALPHA___ASSERT_FIXIDX,
5562 ALPHA_ASSERT_FIXIDX,
5563 ALPHA_GETOPT_FIXIDX,
5564 ALPHA_PARENS_FIXIDX,
5566 ARM_NORCROFT_HINT_FIXIDX,
5569 AVOID_BOOL_DEFINE_FIXIDX,
5570 AVOID_BOOL_TYPE_FIXIDX,
5571 AVOID_WCHAR_T_TYPE_FIXIDX,
5573 BAD_STRUCT_TERM_FIXIDX,
5575 BROKEN_ASSERT_STDIO_FIXIDX,
5576 BROKEN_ASSERT_STDLIB_FIXIDX,
5578 CTRL_QUOTES_DEF_FIXIDX,
5579 CTRL_QUOTES_USE_FIXIDX,
5581 DEC_INTERN_ASM_FIXIDX,
5582 DJGPP_WCHAR_H_FIXIDX,
5584 FIX_HEADER_BREAKAGE_FIXIDX,
5585 FREEBSD_GCC3_BREAKAGE_FIXIDX,
5589 HPUX10_CPP_POW_INLINE_FIXIDX,
5590 HPUX11_CPP_POW_INLINE_FIXIDX,
5591 HPUX11_FABSF_FIXIDX,
5592 HPUX11_SIZE_T_FIXIDX,
5593 HPUX11_UINT32_C_FIXIDX,
5594 HPUX11_VSNPRINTF_FIXIDX,
5595 HPUX8_BOGUS_INLINES_FIXIDX,
5597 HPUX_SYSTIME_FIXIDX,
5598 INT_ABORT_FREE_AND_EXIT_FIXIDX,
5599 IO_QUOTES_DEF_FIXIDX,
5600 IO_QUOTES_USE_FIXIDX,
5601 IP_MISSING_SEMI_FIXIDX,
5602 IRIX_ASM_APOSTROPHE_FIXIDX,
5603 IRIX_LIMITS_CONST_FIXIDX,
5604 IRIX_STDIO_VA_LIST_FIXIDX,
5606 ISC_OMITS_WITH_STDC_FIXIDX,
5607 KANDR_CONCAT_FIXIDX,
5608 LIBC1_IFDEFD_MEMX_FIXIDX,
5609 LIMITS_IFNDEFS_FIXIDX,
5610 LYNX_VOID_INT_FIXIDX,
5611 LYNXOS_FCNTL_PROTO_FIXIDX,
5612 M88K_BAD_HYPOT_OPT_FIXIDX,
5613 M88K_BAD_S_IF_FIXIDX,
5614 M88K_MULTI_INCL_FIXIDX,
5615 MACHINE_ANSI_H_VA_LIST_FIXIDX,
5616 MACHINE_NAME_FIXIDX,
5617 MATH_EXCEPTION_FIXIDX,
5618 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
5619 MATH_HUGE_VAL_IFNDEF_FIXIDX,
5620 NESTED_AUTH_DES_FIXIDX,
5621 NESTED_MOTOROLA_FIXIDX,
5622 NESTED_SYS_LIMITS_FIXIDX,
5623 NEWS_OS_RECURSION_FIXIDX,
5624 NEXT_MATH_PREFIX_FIXIDX,
5625 NEXT_TEMPLATE_FIXIDX,
5626 NEXT_VOLITILE_FIXIDX,
5627 NEXT_WAIT_UNION_FIXIDX,
5628 NODEENT_SYNTAX_FIXIDX,
5629 OSF_NAMESPACE_A_FIXIDX,
5630 OSF_NAMESPACE_C_FIXIDX,
5631 PTHREAD_PAGE_SIZE_FIXIDX,
5632 READ_RET_TYPE_FIXIDX,
5633 RS6000_DOUBLE_FIXIDX,
5634 RS6000_FCHMOD_FIXIDX,
5635 RS6000_PARAM_FIXIDX,
5636 SCO_STATIC_FUNC_FIXIDX,
5638 SOLARIS_MUTEX_INIT_FIXIDX,
5639 SOLARIS_STDIO_TAG_FIXIDX,
5640 SOLARIS_SYS_VARARGS_H_FIXIDX,
5642 STDIO_STDARG_H_FIXIDX,
5643 STDIO_VA_LIST_FIXIDX,
5644 STRICT_ANSI_NOT_FIXIDX,
5645 STRICT_ANSI_NOT_CTD_FIXIDX,
5646 STRICT_ANSI_ONLY_FIXIDX,
5648 STRUCT_SOCKADDR_FIXIDX,
5649 SUN_AUTH_PROTO_FIXIDX,
5650 SUN_BOGUS_IFDEF_FIXIDX,
5651 SUN_CATMACRO_FIXIDX,
5653 SUN_RUSERS_SEMI_FIXIDX,
5655 SUNOS_MATHERR_DECL_FIXIDX,
5656 SUNOS_STRLEN_FIXIDX,
5660 SYSV68_STRING_FIXIDX,
5661 SYSZ_STDLIB_FOR_SUN_FIXIDX,
5662 TINFO_CPLUSPLUS_FIXIDX,
5663 ULTRIX_ATEXIT_PARAM_FIXIDX,
5664 ULTRIX_ATOF_PARAM_FIXIDX,
5665 ULTRIX_CONST_FIXIDX,
5666 ULTRIX_CONST2_FIXIDX,
5667 ULTRIX_FIX_FIXPROTO_FIXIDX,
5668 ULTRIX_IFDEF_FIXIDX,
5669 ULTRIX_MATH_IFDEF_FIXIDX,
5670 ULTRIX_NESTED_IOCTL_FIXIDX,
5671 ULTRIX_NESTED_SVC_FIXIDX,
5673 ULTRIX_STATIC_FIXIDX,
5674 ULTRIX_STRINGS_FIXIDX,
5675 UNDEFINE_NULL_FIXIDX,
5676 UNICOSMK_RESTRICT_FIXIDX,
5677 UW7_BYTEORDER_FIX_FIXIDX,
5678 VA_I960_MACRO_FIXIDX,
5680 VXWORKS_GCC_PROBLEM_FIXIDX,
5681 VXWORKS_NEEDS_VXTYPES_FIXIDX,
5682 VXWORKS_NEEDS_VXWORKS_FIXIDX,
5683 VXWORKS_TIME_FIXIDX,
5685 X11_CLASS_USAGE_FIXIDX,
5690 tFixDesc fixDescList[ FIX_COUNT ] = {
5691 { zAab_Dgux_Int_VarargsName, zAab_Dgux_Int_VarargsList,
5692 apzAab_Dgux_Int_VarargsMachs,
5693 AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5694 aAab_Dgux_Int_VarargsTests, apzAab_Dgux_Int_VarargsPatch, 0 },
5696 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
5697 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
5698 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5699 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
5701 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
5702 apzAab_Fd_Zero_Gnu_Types_HMachs,
5703 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5704 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
5706 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
5707 apzAab_Fd_Zero_Selectbits_HMachs,
5708 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5709 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
5711 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
5712 apzAab_Sun_MemcpyMachs,
5713 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5714 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
5716 { zAab_Svr4_Replace_ByteorderName, zAab_Svr4_Replace_ByteorderList,
5717 apzAab_Svr4_Replace_ByteorderMachs,
5718 AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5719 aAab_Svr4_Replace_ByteorderTests, apzAab_Svr4_Replace_ByteorderPatch, 0 },
5721 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
5722 apzAab_Ultrix_Ansi_CompatMachs,
5723 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5724 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
5726 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
5727 apzAab_Ultrix_LimitsMachs,
5728 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5729 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
5731 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
5732 apzAab_Ultrix_MemoryMachs,
5733 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5734 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
5736 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
5737 apzAab_Ultrix_StringMachs,
5738 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5739 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
5741 { zAix_PthreadName, zAix_PthreadList,
5742 apzAix_PthreadMachs,
5743 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5744 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
5746 { zAix_SysmachineName, zAix_SysmachineList,
5747 apzAix_SysmachineMachs,
5748 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5749 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
5751 { zAix_SyswaitName, zAix_SyswaitList,
5752 apzAix_SyswaitMachs,
5753 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5754 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
5756 { zAix_VolatileName, zAix_VolatileList,
5757 apzAix_VolatileMachs,
5758 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5759 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
5761 { zAlpha___AssertName, zAlpha___AssertList,
5762 apzAlpha___AssertMachs,
5763 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5764 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
5766 { zAlpha_AssertName, zAlpha_AssertList,
5767 apzAlpha_AssertMachs,
5768 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5769 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
5771 { zAlpha_GetoptName, zAlpha_GetoptList,
5772 apzAlpha_GetoptMachs,
5773 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5774 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
5776 { zAlpha_ParensName, zAlpha_ParensList,
5777 apzAlpha_ParensMachs,
5778 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5779 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
5781 { zAlpha_SbrkName, zAlpha_SbrkList,
5783 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5784 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
5786 { zArm_Norcroft_HintName, zArm_Norcroft_HintList,
5787 apzArm_Norcroft_HintMachs,
5788 ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5789 aArm_Norcroft_HintTests, apzArm_Norcroft_HintPatch, 0 },
5791 { zArm_WcharName, zArm_WcharList,
5793 ARM_WCHAR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5794 aArm_WcharTests, apzArm_WcharPatch, 0 },
5796 { zAux_AsmName, zAux_AsmList,
5798 AUX_ASM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5799 aAux_AsmTests, apzAux_AsmPatch, 0 },
5801 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
5802 apzAvoid_Bool_DefineMachs,
5803 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5804 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
5806 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
5807 apzAvoid_Bool_TypeMachs,
5808 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5809 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
5811 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
5812 apzAvoid_Wchar_T_TypeMachs,
5813 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5814 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
5816 { zBad_LvalName, zBad_LvalList,
5818 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
5819 aBad_LvalTests, apzBad_LvalPatch, 0 },
5821 { zBad_Struct_TermName, zBad_Struct_TermList,
5822 apzBad_Struct_TermMachs,
5823 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5824 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
5826 { zBadquoteName, zBadquoteList,
5828 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5829 aBadquoteTests, apzBadquotePatch, 0 },
5831 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
5832 apzBroken_Assert_StdioMachs,
5833 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5834 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
5836 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
5837 apzBroken_Assert_StdlibMachs,
5838 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5839 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
5841 { zBroken_CabsName, zBroken_CabsList,
5842 apzBroken_CabsMachs,
5843 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5844 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
5846 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
5847 apzCtrl_Quotes_DefMachs,
5848 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5849 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
5851 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
5852 apzCtrl_Quotes_UseMachs,
5853 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5854 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
5856 { zCxx_UnreadyName, zCxx_UnreadyList,
5857 apzCxx_UnreadyMachs,
5858 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5859 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
5861 { zDec_Intern_AsmName, zDec_Intern_AsmList,
5862 apzDec_Intern_AsmMachs,
5863 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
5864 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
5866 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
5867 apzDjgpp_Wchar_HMachs,
5868 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5869 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
5871 { zEcd_CursorName, zEcd_CursorList,
5873 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5874 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
5876 { zFix_Header_BreakageName, zFix_Header_BreakageList,
5877 apzFix_Header_BreakageMachs,
5878 FIX_HEADER_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5879 aFix_Header_BreakageTests, apzFix_Header_BreakagePatch, 0 },
5881 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
5882 apzFreebsd_Gcc3_BreakageMachs,
5883 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5884 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
5886 { zGnu_TypesName, zGnu_TypesList,
5888 GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5889 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
5891 { zHp_InlineName, zHp_InlineList,
5893 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5894 aHp_InlineTests, apzHp_InlinePatch, 0 },
5896 { zHp_SysfileName, zHp_SysfileList,
5898 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5899 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
5901 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
5902 apzHpux10_Cpp_Pow_InlineMachs,
5903 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5904 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
5906 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
5907 apzHpux11_Cpp_Pow_InlineMachs,
5908 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5909 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
5911 { zHpux11_FabsfName, zHpux11_FabsfList,
5912 apzHpux11_FabsfMachs,
5913 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5914 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
5916 { zHpux11_Size_TName, zHpux11_Size_TList,
5917 apzHpux11_Size_TMachs,
5918 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5919 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
5921 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
5922 apzHpux11_Uint32_CMachs,
5923 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5924 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
5926 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
5927 apzHpux11_VsnprintfMachs,
5928 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5929 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
5931 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
5932 apzHpux8_Bogus_InlinesMachs,
5933 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
5934 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
5936 { zHpux_MaxintName, zHpux_MaxintList,
5937 apzHpux_MaxintMachs,
5938 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5939 aHpux_MaxintTests, apzHpux_MaxintPatch, 0 },
5941 { zHpux_SystimeName, zHpux_SystimeList,
5942 apzHpux_SystimeMachs,
5943 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5944 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
5946 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
5947 apzInt_Abort_Free_And_ExitMachs,
5948 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5949 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
5951 { zIo_Quotes_DefName, zIo_Quotes_DefList,
5952 apzIo_Quotes_DefMachs,
5953 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5954 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
5956 { zIo_Quotes_UseName, zIo_Quotes_UseList,
5957 apzIo_Quotes_UseMachs,
5958 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5959 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
5961 { zIp_Missing_SemiName, zIp_Missing_SemiList,
5962 apzIp_Missing_SemiMachs,
5963 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
5964 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
5966 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
5967 apzIrix_Asm_ApostropheMachs,
5968 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5969 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
5971 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
5972 apzIrix_Limits_ConstMachs,
5973 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5974 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
5976 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
5977 apzIrix_Stdio_Va_ListMachs,
5978 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5979 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
5981 { zIsc_FmodName, zIsc_FmodList,
5983 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5984 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
5986 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
5987 apzIsc_Omits_With_StdcMachs,
5988 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5989 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
5991 { zKandr_ConcatName, zKandr_ConcatList,
5992 apzKandr_ConcatMachs,
5993 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5994 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
5996 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
5997 apzLibc1_Ifdefd_MemxMachs,
5998 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5999 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
6001 { zLimits_IfndefsName, zLimits_IfndefsList,
6002 apzLimits_IfndefsMachs,
6003 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6004 aLimits_IfndefsTests, apzLimits_IfndefsPatch, 0 },
6006 { zLynx_Void_IntName, zLynx_Void_IntList,
6007 apzLynx_Void_IntMachs,
6008 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6009 aLynx_Void_IntTests, apzLynx_Void_IntPatch, 0 },
6011 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
6012 apzLynxos_Fcntl_ProtoMachs,
6013 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6014 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch, 0 },
6016 { zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList,
6017 apzM88k_Bad_Hypot_OptMachs,
6018 M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6019 aM88k_Bad_Hypot_OptTests, apzM88k_Bad_Hypot_OptPatch, 0 },
6021 { zM88k_Bad_S_IfName, zM88k_Bad_S_IfList,
6022 apzM88k_Bad_S_IfMachs,
6023 M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6024 aM88k_Bad_S_IfTests, apzM88k_Bad_S_IfPatch, 0 },
6026 { zM88k_Multi_InclName, zM88k_Multi_InclList,
6027 apzM88k_Multi_InclMachs,
6028 M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6029 aM88k_Multi_InclTests, apzM88k_Multi_InclPatch, 0 },
6031 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
6032 apzMachine_Ansi_H_Va_ListMachs,
6033 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6034 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
6036 { zMachine_NameName, zMachine_NameList,
6037 apzMachine_NameMachs,
6038 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6039 aMachine_NameTests, apzMachine_NamePatch, 0 },
6041 { zMath_ExceptionName, zMath_ExceptionList,
6042 apzMath_ExceptionMachs,
6043 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6044 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
6046 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
6047 apzMath_Huge_Val_From_Dbl_MaxMachs,
6048 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
6049 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
6051 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
6052 apzMath_Huge_Val_IfndefMachs,
6053 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6054 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch, 0 },
6056 { zNested_Auth_DesName, zNested_Auth_DesList,
6057 apzNested_Auth_DesMachs,
6058 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6059 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
6061 { zNested_MotorolaName, zNested_MotorolaList,
6062 apzNested_MotorolaMachs,
6063 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
6064 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
6066 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
6067 apzNested_Sys_LimitsMachs,
6068 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
6069 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
6071 { zNews_Os_RecursionName, zNews_Os_RecursionList,
6072 apzNews_Os_RecursionMachs,
6073 NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6074 aNews_Os_RecursionTests, apzNews_Os_RecursionPatch, 0 },
6076 { zNext_Math_PrefixName, zNext_Math_PrefixList,
6077 apzNext_Math_PrefixMachs,
6078 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6079 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
6081 { zNext_TemplateName, zNext_TemplateList,
6082 apzNext_TemplateMachs,
6083 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6084 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
6086 { zNext_VolitileName, zNext_VolitileList,
6087 apzNext_VolitileMachs,
6088 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6089 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
6091 { zNext_Wait_UnionName, zNext_Wait_UnionList,
6092 apzNext_Wait_UnionMachs,
6093 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6094 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
6096 { zNodeent_SyntaxName, zNodeent_SyntaxList,
6097 apzNodeent_SyntaxMachs,
6098 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6099 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
6101 { zOsf_Namespace_AName, zOsf_Namespace_AList,
6102 apzOsf_Namespace_AMachs,
6103 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6104 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
6106 { zOsf_Namespace_CName, zOsf_Namespace_CList,
6107 apzOsf_Namespace_CMachs,
6108 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6109 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
6111 { zPthread_Page_SizeName, zPthread_Page_SizeList,
6112 apzPthread_Page_SizeMachs,
6113 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6114 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
6116 { zRead_Ret_TypeName, zRead_Ret_TypeList,
6117 apzRead_Ret_TypeMachs,
6118 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6119 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
6121 { zRs6000_DoubleName, zRs6000_DoubleList,
6122 apzRs6000_DoubleMachs,
6123 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6124 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
6126 { zRs6000_FchmodName, zRs6000_FchmodList,
6127 apzRs6000_FchmodMachs,
6128 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6129 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
6131 { zRs6000_ParamName, zRs6000_ParamList,
6132 apzRs6000_ParamMachs,
6133 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6134 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
6136 { zSco_Static_FuncName, zSco_Static_FuncList,
6137 apzSco_Static_FuncMachs,
6138 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
6139 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
6141 { zSco_UtimeName, zSco_UtimeList,
6143 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6144 aSco_UtimeTests, apzSco_UtimePatch, 0 },
6146 { zSolaris_Mutex_InitName, zSolaris_Mutex_InitList,
6147 apzSolaris_Mutex_InitMachs,
6148 SOLARIS_MUTEX_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6149 aSolaris_Mutex_InitTests, apzSolaris_Mutex_InitPatch, 0 },
6151 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
6152 apzSolaris_Stdio_TagMachs,
6153 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
6154 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
6156 { zSolaris_Sys_Varargs_HName, zSolaris_Sys_Varargs_HList,
6157 apzSolaris_Sys_Varargs_HMachs,
6158 SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
6159 aSolaris_Sys_Varargs_HTests, apzSolaris_Sys_Varargs_HPatch, 0 },
6161 { zStatsswtchName, zStatsswtchList,
6163 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6164 aStatsswtchTests, apzStatsswtchPatch, 0 },
6166 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
6167 apzStdio_Stdarg_HMachs,
6168 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6169 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
6171 { zStdio_Va_ListName, zStdio_Va_ListList,
6172 apzStdio_Va_ListMachs,
6173 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
6174 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
6176 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
6177 apzStrict_Ansi_NotMachs,
6178 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6179 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
6181 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
6182 apzStrict_Ansi_Not_CtdMachs,
6183 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6184 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
6186 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
6187 apzStrict_Ansi_OnlyMachs,
6188 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6189 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
6191 { zStruct_FileName, zStruct_FileList,
6192 apzStruct_FileMachs,
6193 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6194 aStruct_FileTests, apzStruct_FilePatch, 0 },
6196 { zStruct_SockaddrName, zStruct_SockaddrList,
6197 apzStruct_SockaddrMachs,
6198 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6199 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
6201 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
6202 apzSun_Auth_ProtoMachs,
6203 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6204 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
6206 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
6207 apzSun_Bogus_IfdefMachs,
6208 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6209 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
6211 { zSun_CatmacroName, zSun_CatmacroList,
6212 apzSun_CatmacroMachs,
6213 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6214 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
6216 { zSun_MallocName, zSun_MallocList,
6218 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
6219 aSun_MallocTests, apzSun_MallocPatch, 0 },
6221 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
6222 apzSun_Rusers_SemiMachs,
6223 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
6224 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
6226 { zSun_SignalName, zSun_SignalList,
6228 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6229 aSun_SignalTests, apzSun_SignalPatch, 0 },
6231 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
6232 apzSunos_Matherr_DeclMachs,
6233 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6234 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch, 0 },
6236 { zSunos_StrlenName, zSunos_StrlenList,
6237 apzSunos_StrlenMachs,
6238 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6239 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
6241 { zSvr4__PName, zSvr4__PList,
6243 SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6244 aSvr4__PTests, apzSvr4__PPatch, 0 },
6246 { zSvr4_GetcwdName, zSvr4_GetcwdList,
6247 apzSvr4_GetcwdMachs,
6248 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6249 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
6251 { zSvr4_ProfilName, zSvr4_ProfilList,
6252 apzSvr4_ProfilMachs,
6253 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6254 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
6256 { zSysv68_StringName, zSysv68_StringList,
6257 apzSysv68_StringMachs,
6258 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
6259 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
6261 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
6262 apzSysz_Stdlib_For_SunMachs,
6263 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6264 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
6266 { zTinfo_CplusplusName, zTinfo_CplusplusList,
6267 apzTinfo_CplusplusMachs,
6268 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6269 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
6271 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
6272 apzUltrix_Atexit_ParamMachs,
6273 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6274 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
6276 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
6277 apzUltrix_Atof_ParamMachs,
6278 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6279 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
6281 { zUltrix_ConstName, zUltrix_ConstList,
6282 apzUltrix_ConstMachs,
6283 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6284 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
6286 { zUltrix_Const2Name, zUltrix_Const2List,
6287 apzUltrix_Const2Machs,
6288 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6289 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
6291 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
6292 apzUltrix_Fix_FixprotoMachs,
6293 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6294 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
6296 { zUltrix_IfdefName, zUltrix_IfdefList,
6297 apzUltrix_IfdefMachs,
6298 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6299 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
6301 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
6302 apzUltrix_Math_IfdefMachs,
6303 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6304 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
6306 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
6307 apzUltrix_Nested_IoctlMachs,
6308 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
6309 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
6311 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
6312 apzUltrix_Nested_SvcMachs,
6313 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
6314 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
6316 { zUltrix_StatName, zUltrix_StatList,
6317 apzUltrix_StatMachs,
6318 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
6319 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
6321 { zUltrix_StaticName, zUltrix_StaticList,
6322 apzUltrix_StaticMachs,
6323 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
6324 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
6326 { zUltrix_StringsName, zUltrix_StringsList,
6327 apzUltrix_StringsMachs,
6328 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6329 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
6331 { zUndefine_NullName, zUndefine_NullList,
6332 apzUndefine_NullMachs,
6333 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6334 aUndefine_NullTests, apzUndefine_NullPatch, 0 },
6336 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
6337 apzUnicosmk_RestrictMachs,
6338 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6339 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
6341 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
6342 apzUw7_Byteorder_FixMachs,
6343 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6344 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
6346 { zVa_I960_MacroName, zVa_I960_MacroList,
6347 apzVa_I960_MacroMachs,
6348 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6349 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
6351 { zVoid_NullName, zVoid_NullList,
6353 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6354 aVoid_NullTests, apzVoid_NullPatch, 0 },
6356 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
6357 apzVxworks_Gcc_ProblemMachs,
6358 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
6359 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
6361 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
6362 apzVxworks_Needs_VxtypesMachs,
6363 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6364 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
6366 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
6367 apzVxworks_Needs_VxworksMachs,
6368 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
6369 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
6371 { zVxworks_TimeName, zVxworks_TimeList,
6372 apzVxworks_TimeMachs,
6373 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6374 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
6376 { zX11_ClassName, zX11_ClassList,
6378 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6379 aX11_ClassTests, apzX11_ClassPatch, 0 },
6381 { zX11_Class_UsageName, zX11_Class_UsageList,
6382 apzX11_Class_UsageMachs,
6383 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6384 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
6386 { zX11_NewName, zX11_NewList,
6388 X11_NEW_TEST_CT, FD_MACH_ONLY,
6389 aX11_NewTests, apzX11_NewPatch, 0 },
6391 { zX11_SprintfName, zX11_SprintfList,
6392 apzX11_SprintfMachs,
6393 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
6394 aX11_SprintfTests, apzX11_SprintfPatch, 0 }