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 118 fixup descriptions.
10 * See README-fixinc for more information.
12 * inclhack copyright (c) 1998, 1999, 2000
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 Aaa_Ki_Iface fix
37 #define AAA_KI_IFACE_FIXIDX 0
38 tSCC zAaa_Ki_IfaceName[] =
42 * File name selection pattern
44 tSCC zAaa_Ki_IfaceList[] =
47 * Machine/OS name selection pattern
49 #define apzAaa_Ki_IfaceMachs (const char**)NULL
52 * content selection pattern - do fix if pattern found
54 tSCC zAaa_Ki_IfaceSelect0[] =
55 "These definitions are for HP Internal developers";
57 #define AAA_KI_IFACE_TEST_CT 1
58 tTestDesc aAaa_Ki_IfaceTests[] = {
59 { TT_EGREP, zAaa_Ki_IfaceSelect0, (regex_t*)NULL }, };
62 * Fix Command Arguments for Aaa_Ki_Iface
64 const char* apzAaa_Ki_IfacePatch[] = {
67 /* * * * * * * * * * * * * * * * * * * * * * * * * *
69 * Description of Aaa_Ki fix
71 #define AAA_KI_FIXIDX 1
76 * File name selection pattern
81 * Machine/OS name selection pattern
83 #define apzAaa_KiMachs (const char**)NULL
86 * content selection pattern - do fix if pattern found
88 tSCC zAaa_KiSelect0[] =
91 #define AAA_KI_TEST_CT 1
92 tTestDesc aAaa_KiTests[] = {
93 { TT_EGREP, zAaa_KiSelect0, (regex_t*)NULL }, };
96 * Fix Command Arguments for Aaa_Ki
98 const char* apzAaa_KiPatch[] = {
101 /* * * * * * * * * * * * * * * * * * * * * * * * * *
103 * Description of Aaa_Ki_Calls fix
105 #define AAA_KI_CALLS_FIXIDX 2
106 tSCC zAaa_Ki_CallsName[] =
110 * File name selection pattern
112 tSCC zAaa_Ki_CallsList[] =
115 * Machine/OS name selection pattern
117 #define apzAaa_Ki_CallsMachs (const char**)NULL
120 * content selection pattern - do fix if pattern found
122 tSCC zAaa_Ki_CallsSelect0[] =
123 "kthread_create_caller_t";
125 #define AAA_KI_CALLS_TEST_CT 1
126 tTestDesc aAaa_Ki_CallsTests[] = {
127 { TT_EGREP, zAaa_Ki_CallsSelect0, (regex_t*)NULL }, };
130 * Fix Command Arguments for Aaa_Ki_Calls
132 const char* apzAaa_Ki_CallsPatch[] = {
135 /* * * * * * * * * * * * * * * * * * * * * * * * * *
137 * Description of Aaa_Ki_Defs fix
139 #define AAA_KI_DEFS_FIXIDX 3
140 tSCC zAaa_Ki_DefsName[] =
144 * File name selection pattern
146 tSCC zAaa_Ki_DefsList[] =
149 * Machine/OS name selection pattern
151 #define apzAaa_Ki_DefsMachs (const char**)NULL
154 * content selection pattern - do fix if pattern found
156 tSCC zAaa_Ki_DefsSelect0[] =
157 "Kernel Instrumentation Definitions";
159 #define AAA_KI_DEFS_TEST_CT 1
160 tTestDesc aAaa_Ki_DefsTests[] = {
161 { TT_EGREP, zAaa_Ki_DefsSelect0, (regex_t*)NULL }, };
164 * Fix Command Arguments for Aaa_Ki_Defs
166 const char* apzAaa_Ki_DefsPatch[] = {
169 /* * * * * * * * * * * * * * * * * * * * * * * * * *
171 * Description of Aaa_Bad_Fixes fix
173 #define AAA_BAD_FIXES_FIXIDX 4
174 tSCC zAaa_Bad_FixesName[] =
178 * File name selection pattern
180 tSCC zAaa_Bad_FixesList[] =
181 "|sundev/ipi_error.h|";
183 * Machine/OS name selection pattern
185 #define apzAaa_Bad_FixesMachs (const char**)NULL
186 #define AAA_BAD_FIXES_TEST_CT 0
187 #define aAaa_Bad_FixesTests (tTestDesc*)NULL
190 * Fix Command Arguments for Aaa_Bad_Fixes
192 const char* apzAaa_Bad_FixesPatch[] = {
195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
197 * Description of Aaa_Time fix
199 #define AAA_TIME_FIXIDX 5
200 tSCC zAaa_TimeName[] =
204 * File name selection pattern
206 tSCC zAaa_TimeList[] =
209 * Machine/OS name selection pattern
211 #define apzAaa_TimeMachs (const char**)NULL
214 * content selection pattern - do fix if pattern found
216 tSCC zAaa_TimeSelect0[] =
217 "11.0 and later representation of ki time";
219 #define AAA_TIME_TEST_CT 1
220 tTestDesc aAaa_TimeTests[] = {
221 { TT_EGREP, zAaa_TimeSelect0, (regex_t*)NULL }, };
224 * Fix Command Arguments for Aaa_Time
226 const char* apzAaa_TimePatch[] = {
229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
231 * Description of Aab_Dgux_Int_Varargs fix
233 #define AAB_DGUX_INT_VARARGS_FIXIDX 6
234 tSCC zAab_Dgux_Int_VarargsName[] =
235 "AAB_dgux_int_varargs";
238 * File name selection pattern
240 tSCC zAab_Dgux_Int_VarargsList[] =
243 * Machine/OS name selection pattern
245 #define apzAab_Dgux_Int_VarargsMachs (const char**)NULL
246 #define AAB_DGUX_INT_VARARGS_TEST_CT 0
247 #define aAab_Dgux_Int_VarargsTests (tTestDesc*)NULL
250 * Fix Command Arguments for Aab_Dgux_Int_Varargs
252 const char* apzAab_Dgux_Int_VarargsPatch[] = {
253 "#ifndef __INT_VARARGS_H\n\
254 #define __INT_VARARGS_H\n\
256 /************************************************************************/\n\
257 /* _INT_VARARGS.H - Define the common stuff for varargs/stdarg/stdio. */\n\
258 /************************************************************************/\n\
261 ** This file is a DG internal header. Never include this\n\
265 #ifndef ___int_features_h\n\
266 #include <sys/_int_features.h>\n\
269 #if !(defined(_VA_LIST) || defined(_VA_LIST_))\n\
276 typedef void * va_list;\n\
278 typedef char * va_list;\n\
284 #if defined(__DCC__)\n\
292 #else /* ! defined(__DCC__) */\n\
295 int __va_arg; /* argument number */\n\
296 int *__va_stk; /* start of args passed on stack */\n\
297 int *__va_reg; /* start of args passed in regs */\n\
300 #endif /* ! defined(__DCC__) */\n\
304 #if defined(__GNUC__) || defined(__STDC__)\n\
305 typedef void * va_list;\n\
307 typedef char * va_list;\n\
310 #endif /* _IX86_ANY */\n\
312 #endif /* __LINT__ */\n\
313 #endif /* !(defined(_VA_LIST) || defined(_VA_LIST_)) */\n\
314 #endif /* #ifndef __INT_VARARGS_H */\n",
317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
319 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
321 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX 7
322 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
323 "AAB_fd_zero_asm_posix_types_h";
326 * File name selection pattern
328 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
329 "|asm/posix_types.h|";
331 * Machine/OS name selection pattern
333 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
334 "i[34567]86-*-linux-gnu*",
338 * content bypass pattern - skip fix if pattern found
340 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
343 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1
344 tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
345 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
348 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
350 const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
351 "/* This file fixes a bug in the __FD_ZERO macro\n\
352 for older versions of the Linux kernel. */\n\
353 #ifndef _POSIX_TYPES_H_WRAPPER\n\
354 #include <features.h>\n\
355 #include_next <asm/posix_types.h>\n\
357 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
359 #define __FD_ZERO(fdsetp) \\\n\
361 int __d0, __d1; \\\n\
362 \t\t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
363 \t\t\t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
364 \t\t\t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
365 \t\t\t \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
369 #define _POSIX_TYPES_H_WRAPPER\n\
370 #endif /* _POSIX_TYPES_H_WRAPPER */\n",
373 /* * * * * * * * * * * * * * * * * * * * * * * * * *
375 * Description of Aab_Fd_Zero_Gnu_Types_H fix
377 #define AAB_FD_ZERO_GNU_TYPES_H_FIXIDX 8
378 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
379 "AAB_fd_zero_gnu_types_h";
382 * File name selection pattern
384 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
387 * Machine/OS name selection pattern
389 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
390 "i[34567]86-*-linux-gnu*",
392 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
393 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
396 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
398 const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
399 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
400 #ifndef _TYPES_H_WRAPPER\n\
401 #include <features.h>\n\
402 #include_next <gnu/types.h>\n\
404 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
406 # define __FD_ZERO(fdsetp) \\\n\
408 int __d0, __d1; \\\n\
409 \t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
410 \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
411 \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
412 \t\t \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
416 #define _TYPES_H_WRAPPER\n\
417 #endif /* _TYPES_H_WRAPPER */\n",
420 /* * * * * * * * * * * * * * * * * * * * * * * * * *
422 * Description of Aab_Fd_Zero_Selectbits_H fix
424 #define AAB_FD_ZERO_SELECTBITS_H_FIXIDX 9
425 tSCC zAab_Fd_Zero_Selectbits_HName[] =
426 "AAB_fd_zero_selectbits_h";
429 * File name selection pattern
431 tSCC zAab_Fd_Zero_Selectbits_HList[] =
434 * Machine/OS name selection pattern
436 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
437 "i[34567]86-*-linux-gnu*",
439 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
440 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
443 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
445 const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
446 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
447 #ifndef _SELECTBITS_H_WRAPPER\n\
448 #include <features.h>\n\
449 #include_next <selectbits.h>\n\
451 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\n\
452 \t&& defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\n\
453 \t&& __GLIBC_MINOR__ == 0\n\
455 #define __FD_ZERO(fdsetp) \\\n\
457 int __d0, __d1; \\\n\
458 __asm__ __volatile__ (\"cld; rep; stosl\" \\\n\
459 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
460 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\n\
461 / sizeof (__fd_mask)), \\\n\
462 \"1\" ((__fd_mask *) (fdsetp)) \\\n\
467 #define _SELECTBITS_H_WRAPPER\n\
468 #endif /* _SELECTBITS_H_WRAPPER */\n",
471 /* * * * * * * * * * * * * * * * * * * * * * * * * *
473 * Description of Aab_Sun_Memcpy fix
475 #define AAB_SUN_MEMCPY_FIXIDX 10
476 tSCC zAab_Sun_MemcpyName[] =
480 * File name selection pattern
482 tSCC zAab_Sun_MemcpyList[] =
485 * Machine/OS name selection pattern
487 #define apzAab_Sun_MemcpyMachs (const char**)NULL
490 * content selection pattern - do fix if pattern found
492 tSCC zAab_Sun_MemcpySelect0[] =
493 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
495 #define AAB_SUN_MEMCPY_TEST_CT 1
496 tTestDesc aAab_Sun_MemcpyTests[] = {
497 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
500 * Fix Command Arguments for Aab_Sun_Memcpy
502 const char* apzAab_Sun_MemcpyPatch[] = {
503 "/* This file was generated by fixincludes */\n\
504 #ifndef __memory_h__\n\
505 #define __memory_h__\n\
508 extern void *memccpy();\n\
509 extern void *memchr();\n\
510 extern void *memcpy();\n\
511 extern void *memset();\n\
513 extern char *memccpy();\n\
514 extern char *memchr();\n\
515 extern char *memcpy();\n\
516 extern char *memset();\n\
517 #endif /* __STDC__ */\n\
519 extern int memcmp();\n\
521 #endif /* __memory_h__ */\n",
524 /* * * * * * * * * * * * * * * * * * * * * * * * * *
526 * Description of Aab_Svr4_Replace_Byteorder fix
528 #define AAB_SVR4_REPLACE_BYTEORDER_FIXIDX 11
529 tSCC zAab_Svr4_Replace_ByteorderName[] =
530 "AAB_svr4_replace_byteorder";
533 * File name selection pattern
535 tSCC zAab_Svr4_Replace_ByteorderList[] =
538 * Machine/OS name selection pattern
540 tSCC* apzAab_Svr4_Replace_ByteorderMachs[] = {
542 "i[34567]86-*-sysv5*",
544 "i[34567]86-*-solaris2.[0-4]",
545 "powerpcle-*-solaris2.[0-4]",
546 "sparc-*-solaris2.[0-4]",
548 #define AAB_SVR4_REPLACE_BYTEORDER_TEST_CT 0
549 #define aAab_Svr4_Replace_ByteorderTests (tTestDesc*)NULL
552 * Fix Command Arguments for Aab_Svr4_Replace_Byteorder
554 const char* apzAab_Svr4_Replace_ByteorderPatch[] = {
555 "#ifndef _SYS_BYTEORDER_H\n\
556 #define _SYS_BYTEORDER_H\n\
558 /* Functions to convert `short' and `long' quantities from host byte order\n\
559 to (internet) network byte order (i.e. big-endian).\n\
561 Written by Ron Guilmette (rfg@ncd.com).\n\
563 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\
565 For big-endian machines these functions are essentially no-ops.\n\
567 For little-endian machines, we define the functions using specialized\n\
568 asm sequences in cases where doing so yields better code (e.g. i386). */\n\
570 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
571 #error You lose! This file is only useful with GNU compilers.\n\
574 #ifndef __BYTE_ORDER__\n\
575 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
576 double underscores added at the front and back. */\n\
577 #define __LITTLE_ENDIAN__ 1234\n\
578 #define __BIG_ENDIAN__ 4321\n\
579 #define __PDP_ENDIAN__ 3412\n\
583 static __inline__ unsigned long htonl (unsigned long);\n\
584 static __inline__ unsigned short htons (unsigned int);\n\
585 static __inline__ unsigned long ntohl (unsigned long);\n\
586 static __inline__ unsigned short ntohs (unsigned int);\n\
587 #endif /* defined (__STDC__) */\n\
589 #if defined (__i386__)\n\
591 #ifndef __BYTE_ORDER__\n\
592 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
595 /* Convert a host long to a network long. */\n\
597 /* We must use a new-style function definition, so that this will also\n\
598 be valid for C++. */\n\
599 static __inline__ unsigned long\n\
600 htonl (unsigned long __arg)\n\
602 register unsigned long __result;\n\
604 __asm__ (\"xchg%B0 %b0,%h0\n\
606 \txchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
610 /* Convert a host short to a network short. */\n\
612 static __inline__ unsigned short\n\
613 htons (unsigned int __arg)\n\
615 register unsigned short __result;\n\
617 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
621 #elif ((defined (__i860__) && !defined (__i860_big_endian__))\t\\\n\
622 || defined (__ns32k__) || defined (__vax__)\t\t\\\n\
623 || defined (__spur__) || defined (__arm__))\n\
625 #ifndef __BYTE_ORDER__\n\
626 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
629 /* For other little-endian machines, using C code is just as efficient as\n\
630 using assembly code. */\n\
632 /* Convert a host long to a network long. */\n\
634 static __inline__ unsigned long\n\
635 htonl (unsigned long __arg)\n\
637 register unsigned long __result;\n\
639 __result = (__arg >> 24) & 0x000000ff;\n\
640 __result |= (__arg >> 8) & 0x0000ff00;\n\
641 __result |= (__arg << 8) & 0x00ff0000;\n\
642 __result |= (__arg << 24) & 0xff000000;\n\
646 /* Convert a host short to a network short. */\n\
648 static __inline__ unsigned short\n\
649 htons (unsigned int __arg)\n\
651 register unsigned short __result;\n\
653 __result = (__arg << 8) & 0xff00;\n\
654 __result |= (__arg >> 8) & 0x00ff;\n\
658 #else /* must be a big-endian machine */\n\
660 #ifndef __BYTE_ORDER__\n\
661 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
664 /* Convert a host long to a network long. */\n\
666 static __inline__ unsigned long\n\
667 htonl (unsigned long __arg)\n\
672 /* Convert a host short to a network short. */\n\
674 static __inline__ unsigned short\n\
675 htons (unsigned int __arg)\n\
680 #endif /* big-endian */\n\
682 /* Convert a network long to a host long. */\n\
684 static __inline__ unsigned long\n\
685 ntohl (unsigned long __arg)\n\
687 return htonl (__arg);\n\
690 /* Convert a network short to a host short. */\n\
692 static __inline__ unsigned short\n\
693 ntohs (unsigned int __arg)\n\
695 return htons (__arg);\n\
700 /* * * * * * * * * * * * * * * * * * * * * * * * * *
702 * Description of Aab_Ultrix_Ansi_Compat fix
704 #define AAB_ULTRIX_ANSI_COMPAT_FIXIDX 12
705 tSCC zAab_Ultrix_Ansi_CompatName[] =
706 "AAB_ultrix_ansi_compat";
709 * File name selection pattern
711 tSCC zAab_Ultrix_Ansi_CompatList[] =
714 * Machine/OS name selection pattern
716 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
719 * content selection pattern - do fix if pattern found
721 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
724 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
725 tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
726 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
729 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
731 const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
732 "/* This file intentionally left blank. */\n",
735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
737 * Description of Aix_Syswait fix
739 #define AIX_SYSWAIT_FIXIDX 13
740 tSCC zAix_SyswaitName[] =
744 * File name selection pattern
746 tSCC zAix_SyswaitList[] =
749 * Machine/OS name selection pattern
751 #define apzAix_SyswaitMachs (const char**)NULL
754 * content selection pattern - do fix if pattern found
756 tSCC zAix_SyswaitSelect0[] =
759 #define AIX_SYSWAIT_TEST_CT 1
760 tTestDesc aAix_SyswaitTests[] = {
761 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL }, };
764 * Fix Command Arguments for Aix_Syswait
766 const char* apzAix_SyswaitPatch[] = { "sed",
767 "-e", "/^extern pid_t wait3();$/i\\\n\
771 /* * * * * * * * * * * * * * * * * * * * * * * * * *
773 * Description of Aix_Volatile fix
775 #define AIX_VOLATILE_FIXIDX 14
776 tSCC zAix_VolatileName[] =
780 * File name selection pattern
782 tSCC zAix_VolatileList[] =
785 * Machine/OS name selection pattern
787 #define apzAix_VolatileMachs (const char**)NULL
790 * content selection pattern - do fix if pattern found
792 tSCC zAix_VolatileSelect0[] =
793 "typedef volatile int sig_atomic_t";
795 #define AIX_VOLATILE_TEST_CT 1
796 tTestDesc aAix_VolatileTests[] = {
797 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
800 * Fix Command Arguments for Aix_Volatile
802 const char* apzAix_VolatilePatch[] = { "sed",
803 "-e", "s/typedef volatile int sig_atomic_t/typedef int sig_atomic_t/",
806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
808 * Description of Alpha_Getopt fix
810 #define ALPHA_GETOPT_FIXIDX 15
811 tSCC zAlpha_GetoptName[] =
815 * File name selection pattern
817 tSCC zAlpha_GetoptList[] =
818 "|stdio.h|stdlib.h|";
820 * Machine/OS name selection pattern
822 #define apzAlpha_GetoptMachs (const char**)NULL
825 * content selection pattern - do fix if pattern found
827 tSCC zAlpha_GetoptSelect0[] =
828 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
830 #define ALPHA_GETOPT_TEST_CT 1
831 tTestDesc aAlpha_GetoptTests[] = {
832 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
835 * Fix Command Arguments for Alpha_Getopt
837 const char* apzAlpha_GetoptPatch[] = { "sed",
838 "-e", "s/getopt(int, char \\*\\[\\],[ ]*char \\*)/getopt(int, char *const[], const char *)/",
841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
843 * Description of Alpha_Parens fix
845 #define ALPHA_PARENS_FIXIDX 16
846 tSCC zAlpha_ParensName[] =
850 * File name selection pattern
852 tSCC zAlpha_ParensList[] =
855 * Machine/OS name selection pattern
857 #define apzAlpha_ParensMachs (const char**)NULL
860 * content selection pattern - do fix if pattern found
862 tSCC zAlpha_ParensSelect0[] =
863 "#ifndef\\(__mips64\\)";
865 #define ALPHA_PARENS_TEST_CT 1
866 tTestDesc aAlpha_ParensTests[] = {
867 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
870 * Fix Command Arguments for Alpha_Parens
872 const char* apzAlpha_ParensPatch[] = { "sed",
873 "-e", "s/#ifndef(__mips64)/#ifndef __mips64/",
876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
878 * Description of Alpha_Sbrk fix
880 #define ALPHA_SBRK_FIXIDX 17
881 tSCC zAlpha_SbrkName[] =
885 * File name selection pattern
887 tSCC zAlpha_SbrkList[] =
890 * Machine/OS name selection pattern
892 #define apzAlpha_SbrkMachs (const char**)NULL
895 * content selection pattern - do fix if pattern found
897 tSCC zAlpha_SbrkSelect0[] =
898 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
900 #define ALPHA_SBRK_TEST_CT 1
901 tTestDesc aAlpha_SbrkTests[] = {
902 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
905 * Fix Command Arguments for Alpha_Sbrk
907 const char* apzAlpha_SbrkPatch[] = { "sed",
908 "-e", "s/char\\([ \t]*\\*[\t ]*sbrk[ \t]*(\\)/void\\1/",
911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
913 * Description of Arm_Norcroft_Hint fix
915 #define ARM_NORCROFT_HINT_FIXIDX 18
916 tSCC zArm_Norcroft_HintName[] =
920 * File name selection pattern
922 tSCC zArm_Norcroft_HintList[] =
925 * Machine/OS name selection pattern
927 #define apzArm_Norcroft_HintMachs (const char**)NULL
930 * content selection pattern - do fix if pattern found
932 tSCC zArm_Norcroft_HintSelect0[] =
935 #define ARM_NORCROFT_HINT_TEST_CT 1
936 tTestDesc aArm_Norcroft_HintTests[] = {
937 { TT_EGREP, zArm_Norcroft_HintSelect0, (regex_t*)NULL }, };
940 * Fix Command Arguments for Arm_Norcroft_Hint
942 const char* apzArm_Norcroft_HintPatch[] = { "sed",
943 "-e", "s/___type p_type/p_type/",
946 /* * * * * * * * * * * * * * * * * * * * * * * * * *
948 * Description of Arm_Wchar fix
950 #define ARM_WCHAR_FIXIDX 19
951 tSCC zArm_WcharName[] =
955 * File name selection pattern
957 tSCC zArm_WcharList[] =
960 * Machine/OS name selection pattern
962 #define apzArm_WcharMachs (const char**)NULL
965 * content selection pattern - do fix if pattern found
967 tSCC zArm_WcharSelect0[] =
968 "#[ \t]*define[ \t]*__wchar_t";
970 #define ARM_WCHAR_TEST_CT 1
971 tTestDesc aArm_WcharTests[] = {
972 { TT_EGREP, zArm_WcharSelect0, (regex_t*)NULL }, };
975 * Fix Command Arguments for Arm_Wchar
977 const char* apzArm_WcharPatch[] = { "sed",
978 "-e", "s/\\(#[ \t]*ifndef[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",
979 "-e", "s/\\(#[ \t]*define[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",
982 /* * * * * * * * * * * * * * * * * * * * * * * * * *
984 * Description of Aux_Asm fix
986 #define AUX_ASM_FIXIDX 20
987 tSCC zAux_AsmName[] =
991 * File name selection pattern
993 tSCC zAux_AsmList[] =
996 * Machine/OS name selection pattern
998 #define apzAux_AsmMachs (const char**)NULL
1001 * content selection pattern - do fix if pattern found
1003 tSCC zAux_AsmSelect0[] =
1006 #define AUX_ASM_TEST_CT 1
1007 tTestDesc aAux_AsmTests[] = {
1008 { TT_EGREP, zAux_AsmSelect0, (regex_t*)NULL }, };
1011 * Fix Command Arguments for Aux_Asm
1013 const char* apzAux_AsmPatch[] = { "sed",
1014 "-e", "s|#ifndef NOINLINE|#if !defined(NOINLINE) \\&\\& !defined(__GNUC__)|",
1017 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1019 * Description of Avoid_Bool fix
1021 #define AVOID_BOOL_FIXIDX 21
1022 tSCC zAvoid_BoolName[] =
1026 * File name selection pattern
1028 tSCC zAvoid_BoolList[] =
1029 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1031 * Machine/OS name selection pattern
1033 #define apzAvoid_BoolMachs (const char**)NULL
1036 * content selection pattern - do fix if pattern found
1038 tSCC zAvoid_BoolSelect0[] =
1039 "char[ \t]+bool|bool[ \t]+char";
1042 * content bypass pattern - skip fix if pattern found
1044 tSCC zAvoid_BoolBypass0[] =
1045 "we must use the C\\+\\+ compiler's type";
1047 #define AVOID_BOOL_TEST_CT 2
1048 tTestDesc aAvoid_BoolTests[] = {
1049 { TT_NEGREP, zAvoid_BoolBypass0, (regex_t*)NULL },
1050 { TT_EGREP, zAvoid_BoolSelect0, (regex_t*)NULL }, };
1053 * Fix Command Arguments for Avoid_Bool
1055 const char* apzAvoid_BoolPatch[] = { "sed",
1056 "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/i\\\n\
1057 #ifndef __cplusplus\n",
1058 "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/a\\\n\
1060 "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/i\\\n\
1061 #ifndef __cplusplus\n",
1062 "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/a\\\n\
1064 "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/i\\\n\
1065 #ifndef __cplusplus\n",
1066 "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/a\\\n\
1068 "-e", "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/i\\\n\
1069 #ifndef __cplusplus\n",
1070 "-e", "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/a\\\n\
1072 "-e", "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/i\\\n\
1073 #ifndef __cplusplus\n",
1074 "-e", "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/a\\\n\
1078 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1080 * Description of Bad_Struct_Term fix
1082 #define BAD_STRUCT_TERM_FIXIDX 22
1083 tSCC zBad_Struct_TermName[] =
1087 * File name selection pattern
1089 tSCC zBad_Struct_TermList[] =
1092 * Machine/OS name selection pattern
1094 #define apzBad_Struct_TermMachs (const char**)NULL
1097 * content selection pattern - do fix if pattern found
1099 tSCC zBad_Struct_TermSelect0[] =
1100 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1102 #define BAD_STRUCT_TERM_TEST_CT 1
1103 tTestDesc aBad_Struct_TermTests[] = {
1104 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1107 * Fix Command Arguments for Bad_Struct_Term
1109 const char* apzBad_Struct_TermPatch[] = { "sed",
1110 "-e", "s/^[ \t]*typedef[ \t][ \t]*\\(struct[ \t][ \t]*term[ \t]*;[ \t]*\\)$/\\1/",
1113 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1115 * Description of Badquote fix
1117 #define BADQUOTE_FIXIDX 23
1118 tSCC zBadquoteName[] =
1122 * File name selection pattern
1124 tSCC zBadquoteList[] =
1125 "|sundev/vuid_event.h|";
1127 * Machine/OS name selection pattern
1129 #define apzBadquoteMachs (const char**)NULL
1130 #define BADQUOTE_TEST_CT 0
1131 #define aBadquoteTests (tTestDesc*)NULL
1134 * Fix Command Arguments for Badquote
1136 const char* apzBadquotePatch[] = { "sed",
1137 "-e", "s/doesn't/does not/",
1140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1142 * Description of Bad_Lval fix
1144 #define BAD_LVAL_FIXIDX 24
1145 tSCC zBad_LvalName[] =
1149 * File name selection pattern
1151 tSCC zBad_LvalList[] =
1152 "|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|";
1154 * Machine/OS name selection pattern
1156 #define apzBad_LvalMachs (const char**)NULL
1159 * content selection pattern - do fix if pattern found
1161 tSCC zBad_LvalSelect0[] =
1162 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1164 #define BAD_LVAL_TEST_CT 1
1165 tTestDesc aBad_LvalTests[] = {
1166 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
1169 * Fix Command Arguments for Bad_Lval
1171 const char* apzBad_LvalPatch[] = { "sed",
1172 "-e", "s/^[ \t]*#[ \t]*define[ \t]+\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1175 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1177 * Description of Broken_Assert_Stdio fix
1179 #define BROKEN_ASSERT_STDIO_FIXIDX 25
1180 tSCC zBroken_Assert_StdioName[] =
1181 "broken_assert_stdio";
1184 * File name selection pattern
1186 tSCC zBroken_Assert_StdioList[] =
1189 * Machine/OS name selection pattern
1191 #define apzBroken_Assert_StdioMachs (const char**)NULL
1194 * content selection pattern - do fix if pattern found
1196 tSCC zBroken_Assert_StdioSelect0[] =
1200 * content bypass pattern - skip fix if pattern found
1202 tSCC zBroken_Assert_StdioBypass0[] =
1203 "include.*stdio\\.h";
1205 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1206 tTestDesc aBroken_Assert_StdioTests[] = {
1207 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1208 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1211 * Fix Command Arguments for Broken_Assert_Stdio
1213 const char* apzBroken_Assert_StdioPatch[] = { "sed",
1215 #include <stdio.h>\n",
1218 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1220 * Description of Broken_Assert_Stdlib fix
1222 #define BROKEN_ASSERT_STDLIB_FIXIDX 26
1223 tSCC zBroken_Assert_StdlibName[] =
1224 "broken_assert_stdlib";
1227 * File name selection pattern
1229 tSCC zBroken_Assert_StdlibList[] =
1232 * Machine/OS name selection pattern
1234 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1237 * content selection pattern - do fix if pattern found
1239 tSCC zBroken_Assert_StdlibSelect0[] =
1240 "exit *\\(|abort *\\(";
1243 * content bypass pattern - skip fix if pattern found
1245 tSCC zBroken_Assert_StdlibBypass0[] =
1246 "include.*stdlib\\.h";
1248 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1249 tTestDesc aBroken_Assert_StdlibTests[] = {
1250 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1251 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1254 * Fix Command Arguments for Broken_Assert_Stdlib
1256 const char* apzBroken_Assert_StdlibPatch[] = { "sed",
1258 #ifdef __cplusplus\\\n\
1259 #include <stdlib.h>\\\n\
1263 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1265 * Description of Broken_Cabs fix
1267 #define BROKEN_CABS_FIXIDX 27
1268 tSCC zBroken_CabsName[] =
1272 * File name selection pattern
1274 tSCC zBroken_CabsList[] =
1277 * Machine/OS name selection pattern
1279 #define apzBroken_CabsMachs (const char**)NULL
1282 * content selection pattern - do fix if pattern found
1284 tSCC zBroken_CabsSelect0[] =
1285 "^extern double cabs";
1287 #define BROKEN_CABS_TEST_CT 1
1288 tTestDesc aBroken_CabsTests[] = {
1289 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1292 * Fix Command Arguments for Broken_Cabs
1294 const char* apzBroken_CabsPatch[] = { "sed",
1295 "-e", "/^extern double cabs();/d",
1296 "-e", "/^extern double cabs(struct dbl_hypot);/d",
1299 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1301 * Description of Dec_Intern_Asm fix
1303 #define DEC_INTERN_ASM_FIXIDX 28
1304 tSCC zDec_Intern_AsmName[] =
1308 * File name selection pattern
1310 tSCC zDec_Intern_AsmList[] =
1313 * Machine/OS name selection pattern
1315 #define apzDec_Intern_AsmMachs (const char**)NULL
1316 #define DEC_INTERN_ASM_TEST_CT 0
1317 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1320 * Fix Command Arguments for Dec_Intern_Asm
1322 const char* apzDec_Intern_AsmPatch[] = { "sed",
1323 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1325 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1331 * Description of Ecd_Cursor fix
1333 #define ECD_CURSOR_FIXIDX 29
1334 tSCC zEcd_CursorName[] =
1338 * File name selection pattern
1340 tSCC zEcd_CursorList[] =
1341 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1343 * Machine/OS name selection pattern
1345 #define apzEcd_CursorMachs (const char**)NULL
1346 #define ECD_CURSOR_TEST_CT 0
1347 #define aEcd_CursorTests (tTestDesc*)NULL
1350 * Fix Command Arguments for Ecd_Cursor
1352 const char* apzEcd_CursorPatch[] = { "sed",
1353 "-e", "s/ecd.cursor/ecd_cursor/",
1356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1358 * Description of Hp_Inline fix
1360 #define HP_INLINE_FIXIDX 30
1361 tSCC zHp_InlineName[] =
1365 * File name selection pattern
1367 tSCC zHp_InlineList[] =
1370 * Machine/OS name selection pattern
1372 #define apzHp_InlineMachs (const char**)NULL
1375 * content selection pattern - do fix if pattern found
1377 tSCC zHp_InlineSelect0[] =
1378 "include.*\"\\.\\./machine/";
1380 #define HP_INLINE_TEST_CT 1
1381 tTestDesc aHp_InlineTests[] = {
1382 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1385 * Fix Command Arguments for Hp_Inline
1387 const char* apzHp_InlinePatch[] = { "sed",
1388 "-e", "s,\"../machine/inline.h\",<machine/inline.h>,",
1389 "-e", "s,\"../machine/psl.h\",<machine/psl.h>,",
1392 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1394 * Description of Hp_Sysfile fix
1396 #define HP_SYSFILE_FIXIDX 31
1397 tSCC zHp_SysfileName[] =
1401 * File name selection pattern
1403 tSCC zHp_SysfileList[] =
1406 * Machine/OS name selection pattern
1408 #define apzHp_SysfileMachs (const char**)NULL
1411 * content selection pattern - do fix if pattern found
1413 tSCC zHp_SysfileSelect0[] =
1416 #define HP_SYSFILE_TEST_CT 1
1417 tTestDesc aHp_SysfileTests[] = {
1418 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1421 * Fix Command Arguments for Hp_Sysfile
1423 const char* apzHp_SysfilePatch[] = { "sed",
1424 "-e", "s/(\\.\\.\\.)/(struct file *, ...)/",
1427 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1429 * Description of Cxx_Unready fix
1431 #define CXX_UNREADY_FIXIDX 32
1432 tSCC zCxx_UnreadyName[] =
1436 * File name selection pattern
1438 tSCC zCxx_UnreadyList[] =
1439 "|sys/mman.h|rpc/types.h|";
1441 * Machine/OS name selection pattern
1443 #define apzCxx_UnreadyMachs (const char**)NULL
1446 * content selection pattern - do fix if pattern found
1448 tSCC zCxx_UnreadySelect0[] =
1452 * content bypass pattern - skip fix if pattern found
1454 tSCC zCxx_UnreadyBypass0[] =
1455 "\"C\"|__BEGIN_DECLS";
1457 #define CXX_UNREADY_TEST_CT 2
1458 tTestDesc aCxx_UnreadyTests[] = {
1459 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1460 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1463 * Fix Command Arguments for Cxx_Unready
1465 const char* apzCxx_UnreadyPatch[] = { "sed",
1467 #ifdef __cplusplus\\\n\
1472 #ifdef __cplusplus\\\n\
1477 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1479 * Description of Hpux_Maxint fix
1481 #define HPUX_MAXINT_FIXIDX 33
1482 tSCC zHpux_MaxintName[] =
1486 * File name selection pattern
1488 tSCC zHpux_MaxintList[] =
1491 * Machine/OS name selection pattern
1493 #define apzHpux_MaxintMachs (const char**)NULL
1496 * content selection pattern - do fix if pattern found
1498 tSCC zHpux_MaxintSelect0[] =
1499 "^#[ \t]*define[ \t]*MAXINT[ \t]";
1501 #define HPUX_MAXINT_TEST_CT 1
1502 tTestDesc aHpux_MaxintTests[] = {
1503 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
1506 * Fix Command Arguments for Hpux_Maxint
1508 const char* apzHpux_MaxintPatch[] = { "sed",
1509 "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n\
1511 "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n\
1515 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1517 * Description of Hpux_Systime fix
1519 #define HPUX_SYSTIME_FIXIDX 34
1520 tSCC zHpux_SystimeName[] =
1524 * File name selection pattern
1526 tSCC zHpux_SystimeList[] =
1529 * Machine/OS name selection pattern
1531 #define apzHpux_SystimeMachs (const char**)NULL
1534 * content selection pattern - do fix if pattern found
1536 tSCC zHpux_SystimeSelect0[] =
1537 "^extern struct sigevent;";
1539 #define HPUX_SYSTIME_TEST_CT 1
1540 tTestDesc aHpux_SystimeTests[] = {
1541 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
1544 * Fix Command Arguments for Hpux_Systime
1546 const char* apzHpux_SystimePatch[] = { "sed",
1547 "-e", "s/^extern struct sigevent;/struct sigevent;/",
1550 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1552 * Description of Hpux8_Bogus_Inlines fix
1554 #define HPUX8_BOGUS_INLINES_FIXIDX 35
1555 tSCC zHpux8_Bogus_InlinesName[] =
1556 "hpux8_bogus_inlines";
1559 * File name selection pattern
1561 tSCC zHpux8_Bogus_InlinesList[] =
1564 * Machine/OS name selection pattern
1566 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
1569 * content selection pattern - do fix if pattern found
1571 tSCC zHpux8_Bogus_InlinesSelect0[] =
1574 #define HPUX8_BOGUS_INLINES_TEST_CT 1
1575 tTestDesc aHpux8_Bogus_InlinesTests[] = {
1576 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
1579 * Fix Command Arguments for Hpux8_Bogus_Inlines
1581 const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
1582 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
1583 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
1584 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
1585 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
1588 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1590 * Description of Hpux11_Uint32_C fix
1592 #define HPUX11_UINT32_C_FIXIDX 36
1593 tSCC zHpux11_Uint32_CName[] =
1597 * File name selection pattern
1599 tSCC zHpux11_Uint32_CList[] =
1602 * Machine/OS name selection pattern
1604 #define apzHpux11_Uint32_CMachs (const char**)NULL
1607 * content selection pattern - do fix if pattern found
1609 tSCC zHpux11_Uint32_CSelect0[] =
1610 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1612 #define HPUX11_UINT32_C_TEST_CT 1
1613 tTestDesc aHpux11_Uint32_CTests[] = {
1614 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1617 * Fix Command Arguments for Hpux11_Uint32_C
1619 const char* apzHpux11_Uint32_CPatch[] = { "sed",
1620 "-e", "s/^#define UINT32_C(__c)\\([ \t]*\\)__CONCAT__(__CONCAT_U__(__c),l)/#define UINT32_C(__c)\\1__CONCAT__(__c,ul)/",
1623 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1625 * Description of Isc_Omits_With_Stdc fix
1627 #define ISC_OMITS_WITH_STDC_FIXIDX 37
1628 tSCC zIsc_Omits_With_StdcName[] =
1629 "isc_omits_with_stdc";
1632 * File name selection pattern
1634 tSCC zIsc_Omits_With_StdcList[] =
1635 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
1637 * Machine/OS name selection pattern
1639 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
1642 * content selection pattern - do fix if pattern found
1644 tSCC zIsc_Omits_With_StdcSelect0[] =
1645 "!defined(__STDC__) && !defined(_POSIX_SOURCE)";
1647 #define ISC_OMITS_WITH_STDC_TEST_CT 1
1648 tTestDesc aIsc_Omits_With_StdcTests[] = {
1649 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
1652 * Fix Command Arguments for Isc_Omits_With_Stdc
1654 const char* apzIsc_Omits_With_StdcPatch[] = { "sed",
1655 "-e", "s/!defined(__STDC__) && !defined(_POSIX_SOURCE)/!defined(_POSIX_SOURCE)/",
1658 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1660 * Description of Io_Use_Quotes fix
1662 #define IO_USE_QUOTES_FIXIDX 38
1663 tSCC zIo_Use_QuotesName[] =
1667 * File name selection pattern
1669 #define zIo_Use_QuotesList (char*)NULL
1671 * Machine/OS name selection pattern
1673 #define apzIo_Use_QuotesMachs (const char**)NULL
1676 * content selection pattern - do fix if pattern found
1678 tSCC zIo_Use_QuotesSelect0[] =
1679 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
1681 #define IO_USE_QUOTES_TEST_CT 1
1682 tTestDesc aIo_Use_QuotesTests[] = {
1683 { TT_EGREP, zIo_Use_QuotesSelect0, (regex_t*)NULL }, };
1686 * Fix Command Arguments for Io_Use_Quotes
1688 const char* apzIo_Use_QuotesPatch[] = {
1693 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1695 * Description of Io_Def_Quotes fix
1697 #define IO_DEF_QUOTES_FIXIDX 39
1698 tSCC zIo_Def_QuotesName[] =
1702 * File name selection pattern
1704 #define zIo_Def_QuotesList (char*)NULL
1706 * Machine/OS name selection pattern
1708 #define apzIo_Def_QuotesMachs (const char**)NULL
1711 * content selection pattern - do fix if pattern found
1713 tSCC zIo_Def_QuotesSelect0[] =
1714 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\(([a-zA-Z]).*'\\1'";
1716 #define IO_DEF_QUOTES_TEST_CT 1
1717 tTestDesc aIo_Def_QuotesTests[] = {
1718 { TT_EGREP, zIo_Def_QuotesSelect0, (regex_t*)NULL }, };
1721 * Fix Command Arguments for Io_Def_Quotes
1723 const char* apzIo_Def_QuotesPatch[] = {
1728 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1730 * Description of Ctrl_Use_Quotes fix
1732 #define CTRL_USE_QUOTES_FIXIDX 40
1733 tSCC zCtrl_Use_QuotesName[] =
1737 * File name selection pattern
1739 #define zCtrl_Use_QuotesList (char*)NULL
1741 * Machine/OS name selection pattern
1743 #define apzCtrl_Use_QuotesMachs (const char**)NULL
1746 * content selection pattern - do fix if pattern found
1748 tSCC zCtrl_Use_QuotesSelect0[] =
1749 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1751 #define CTRL_USE_QUOTES_TEST_CT 1
1752 tTestDesc aCtrl_Use_QuotesTests[] = {
1753 { TT_EGREP, zCtrl_Use_QuotesSelect0, (regex_t*)NULL }, };
1756 * Fix Command Arguments for Ctrl_Use_Quotes
1758 const char* apzCtrl_Use_QuotesPatch[] = {
1763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1765 * Description of Ctrl_Def_Quotes fix
1767 #define CTRL_DEF_QUOTES_FIXIDX 41
1768 tSCC zCtrl_Def_QuotesName[] =
1772 * File name selection pattern
1774 #define zCtrl_Def_QuotesList (char*)NULL
1776 * Machine/OS name selection pattern
1778 #define apzCtrl_Def_QuotesMachs (const char**)NULL
1781 * content selection pattern - do fix if pattern found
1783 tSCC zCtrl_Def_QuotesSelect0[] =
1784 "define[ \t]+[A-Z0-9_]+CTRL\\(([a-zA-Z]).*'\\1'";
1786 #define CTRL_DEF_QUOTES_TEST_CT 1
1787 tTestDesc aCtrl_Def_QuotesTests[] = {
1788 { TT_EGREP, zCtrl_Def_QuotesSelect0, (regex_t*)NULL }, };
1791 * Fix Command Arguments for Ctrl_Def_Quotes
1793 const char* apzCtrl_Def_QuotesPatch[] = {
1798 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1800 * Description of Ip_Missing_Semi fix
1802 #define IP_MISSING_SEMI_FIXIDX 42
1803 tSCC zIp_Missing_SemiName[] =
1807 * File name selection pattern
1809 tSCC zIp_Missing_SemiList[] =
1812 * Machine/OS name selection pattern
1814 #define apzIp_Missing_SemiMachs (const char**)NULL
1817 * content selection pattern - do fix if pattern found
1819 tSCC zIp_Missing_SemiSelect0[] =
1822 #define IP_MISSING_SEMI_TEST_CT 1
1823 tTestDesc aIp_Missing_SemiTests[] = {
1824 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
1827 * Fix Command Arguments for Ip_Missing_Semi
1829 const char* apzIp_Missing_SemiPatch[] = { "sed",
1830 "-e", "/^struct/,/^};/s/}$/};/",
1833 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1835 * Description of Irix_Multiline_Cmnt fix
1837 #define IRIX_MULTILINE_CMNT_FIXIDX 43
1838 tSCC zIrix_Multiline_CmntName[] =
1839 "irix_multiline_cmnt";
1842 * File name selection pattern
1844 tSCC zIrix_Multiline_CmntList[] =
1847 * Machine/OS name selection pattern
1849 #define apzIrix_Multiline_CmntMachs (const char**)NULL
1850 #define IRIX_MULTILINE_CMNT_TEST_CT 0
1851 #define aIrix_Multiline_CmntTests (tTestDesc*)NULL
1854 * Fix Command Arguments for Irix_Multiline_Cmnt
1856 const char* apzIrix_Multiline_CmntPatch[] = { "sed",
1857 "-e", "s@type of the result@type of the result */@",
1858 "-e", "s@of the sizeof@/* of the sizeof@",
1861 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1863 * Description of Irix_Sockaddr fix
1865 #define IRIX_SOCKADDR_FIXIDX 44
1866 tSCC zIrix_SockaddrName[] =
1870 * File name selection pattern
1872 tSCC zIrix_SockaddrList[] =
1875 * Machine/OS name selection pattern
1877 #define apzIrix_SockaddrMachs (const char**)NULL
1880 * content selection pattern - do fix if pattern found
1882 tSCC zIrix_SockaddrSelect0[] =
1883 "authdes_create.*struct sockaddr";
1886 * content bypass pattern - skip fix if pattern found
1888 tSCC zIrix_SockaddrBypass0[] =
1891 #define IRIX_SOCKADDR_TEST_CT 2
1892 tTestDesc aIrix_SockaddrTests[] = {
1893 { TT_NEGREP, zIrix_SockaddrBypass0, (regex_t*)NULL },
1894 { TT_EGREP, zIrix_SockaddrSelect0, (regex_t*)NULL }, };
1897 * Fix Command Arguments for Irix_Sockaddr
1899 const char* apzIrix_SockaddrPatch[] = { "sed",
1900 "-e", "/authdes_create.*struct sockaddr/i\\\n\
1901 struct sockaddr;\n",
1904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1906 * Description of Irix_Struct__File fix
1908 #define IRIX_STRUCT__FILE_FIXIDX 45
1909 tSCC zIrix_Struct__FileName[] =
1910 "irix_struct__file";
1913 * File name selection pattern
1915 tSCC zIrix_Struct__FileList[] =
1918 * Machine/OS name selection pattern
1920 #define apzIrix_Struct__FileMachs (const char**)NULL
1921 #define IRIX_STRUCT__FILE_TEST_CT 0
1922 #define aIrix_Struct__FileTests (tTestDesc*)NULL
1925 * Fix Command Arguments for Irix_Struct__File
1927 const char* apzIrix_Struct__FilePatch[] = { "sed",
1928 "-e", "/xdrstdio_create.*struct __file_s/i\\\n\
1929 struct __file_s;\n",
1932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1934 * Description of Irix_Asm_Apostrophe fix
1936 #define IRIX_ASM_APOSTROPHE_FIXIDX 46
1937 tSCC zIrix_Asm_ApostropheName[] =
1938 "irix_asm_apostrophe";
1941 * File name selection pattern
1943 tSCC zIrix_Asm_ApostropheList[] =
1946 * Machine/OS name selection pattern
1948 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
1951 * content selection pattern - do fix if pattern found
1953 tSCC zIrix_Asm_ApostropheSelect0[] =
1954 "^[ \t]*#.*[Ww]e're";
1956 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
1957 tTestDesc aIrix_Asm_ApostropheTests[] = {
1958 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
1961 * Fix Command Arguments for Irix_Asm_Apostrophe
1963 const char* apzIrix_Asm_ApostrophePatch[] = { "sed",
1964 "-e", "/^[ \t]*#/s/\\([Ww]e\\)'re/\\1 are/",
1967 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1969 * Description of Isc_Fmod fix
1971 #define ISC_FMOD_FIXIDX 47
1972 tSCC zIsc_FmodName[] =
1976 * File name selection pattern
1978 tSCC zIsc_FmodList[] =
1981 * Machine/OS name selection pattern
1983 #define apzIsc_FmodMachs (const char**)NULL
1986 * content selection pattern - do fix if pattern found
1988 tSCC zIsc_FmodSelect0[] =
1991 #define ISC_FMOD_TEST_CT 1
1992 tTestDesc aIsc_FmodTests[] = {
1993 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
1996 * Fix Command Arguments for Isc_Fmod
1998 const char* apzIsc_FmodPatch[] = { "sed",
1999 "-e", "s/fmod(double)/fmod(double, double)/",
2002 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2004 * Description of Motorola_Nested fix
2006 #define MOTOROLA_NESTED_FIXIDX 48
2007 tSCC zMotorola_NestedName[] =
2011 * File name selection pattern
2013 tSCC zMotorola_NestedList[] =
2014 "|limits.h|sys/limits.h|";
2016 * Machine/OS name selection pattern
2018 tSCC* apzMotorola_NestedMachs[] = {
2019 "m68k-motorola-sysv*",
2020 (const char*)NULL };
2021 #define MOTOROLA_NESTED_TEST_CT 0
2022 #define aMotorola_NestedTests (tTestDesc*)NULL
2025 * Fix Command Arguments for Motorola_Nested
2027 const char* apzMotorola_NestedPatch[] = { "sed",
2028 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
2029 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.40282346638528860e+38 \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
2032 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2034 * Description of Isc_Sys_Limits fix
2036 #define ISC_SYS_LIMITS_FIXIDX 49
2037 tSCC zIsc_Sys_LimitsName[] =
2041 * File name selection pattern
2043 tSCC zIsc_Sys_LimitsList[] =
2046 * Machine/OS name selection pattern
2048 #define apzIsc_Sys_LimitsMachs (const char**)NULL
2051 * content selection pattern - do fix if pattern found
2053 tSCC zIsc_Sys_LimitsSelect0[] =
2056 #define ISC_SYS_LIMITS_TEST_CT 1
2057 tTestDesc aIsc_Sys_LimitsTests[] = {
2058 { TT_EGREP, zIsc_Sys_LimitsSelect0, (regex_t*)NULL }, };
2061 * Fix Command Arguments for Isc_Sys_Limits
2063 const char* apzIsc_Sys_LimitsPatch[] = { "sed",
2064 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
2065 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
2068 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2070 * Description of Kandr_Concat fix
2072 #define KANDR_CONCAT_FIXIDX 50
2073 tSCC zKandr_ConcatName[] =
2077 * File name selection pattern
2079 tSCC zKandr_ConcatList[] =
2080 "|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|";
2082 * Machine/OS name selection pattern
2084 #define apzKandr_ConcatMachs (const char**)NULL
2087 * content selection pattern - do fix if pattern found
2089 tSCC zKandr_ConcatSelect0[] =
2092 #define KANDR_CONCAT_TEST_CT 1
2093 tTestDesc aKandr_ConcatTests[] = {
2094 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2097 * Fix Command Arguments for Kandr_Concat
2099 const char* apzKandr_ConcatPatch[] = { "sed",
2100 "-e", "s|/\\*\\*/|##|g",
2103 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2105 * Description of Limits_Ifndefs fix
2107 #define LIMITS_IFNDEFS_FIXIDX 51
2108 tSCC zLimits_IfndefsName[] =
2112 * File name selection pattern
2114 tSCC zLimits_IfndefsList[] =
2115 "|limits.h|sys/limits.h|";
2117 * Machine/OS name selection pattern
2119 #define apzLimits_IfndefsMachs (const char**)NULL
2122 * content bypass pattern - skip fix if pattern found
2124 tSCC zLimits_IfndefsBypass0[] =
2125 "ifndef[ \t]+FLT_MIN";
2127 #define LIMITS_IFNDEFS_TEST_CT 1
2128 tTestDesc aLimits_IfndefsTests[] = {
2129 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2132 * Fix Command Arguments for Limits_Ifndefs
2134 const char* apzLimits_IfndefsPatch[] = { "sed",
2135 "-e", "/[ \t]FLT_MIN[ \t]/i\\\n\
2137 "-e", "/[ \t]FLT_MIN[ \t]/a\\\n\
2139 "-e", "/[ \t]FLT_MAX[ \t]/i\\\n\
2141 "-e", "/[ \t]FLT_MAX[ \t]/a\\\n\
2143 "-e", "/[ \t]FLT_DIG[ \t]/i\\\n\
2145 "-e", "/[ \t]FLT_DIG[ \t]/a\\\n\
2147 "-e", "/[ \t]DBL_MIN[ \t]/i\\\n\
2149 "-e", "/[ \t]DBL_MIN[ \t]/a\\\n\
2151 "-e", "/[ \t]DBL_MAX[ \t]/i\\\n\
2153 "-e", "/[ \t]DBL_MAX[ \t]/a\\\n\
2155 "-e", "/[ \t]DBL_DIG[ \t]/i\\\n\
2157 "-e", "/[ \t]DBL_DIG[ \t]/a\\\n\
2159 "-e", "/^\\(\\/\\*#define\tHUGE_VAL\t3\\.[0-9e+]* *\\)\\/\\*/s//\\1/",
2162 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2164 * Description of Lynx_Void_Int fix
2166 #define LYNX_VOID_INT_FIXIDX 52
2167 tSCC zLynx_Void_IntName[] =
2171 * File name selection pattern
2173 tSCC zLynx_Void_IntList[] =
2176 * Machine/OS name selection pattern
2178 #define apzLynx_Void_IntMachs (const char**)NULL
2181 * content selection pattern - do fix if pattern found
2183 tSCC zLynx_Void_IntSelect0[] =
2184 "#[ \t]*define[ \t]+void[ \t]+int";
2186 #define LYNX_VOID_INT_TEST_CT 1
2187 tTestDesc aLynx_Void_IntTests[] = {
2188 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2191 * Fix Command Arguments for Lynx_Void_Int
2193 const char* apzLynx_Void_IntPatch[] = { "sed",
2194 "-e", "/#[ \t]*define[ \t][ \t]*void[ \t]int/d",
2197 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2199 * Description of Lynxos_Fcntl_Proto fix
2201 #define LYNXOS_FCNTL_PROTO_FIXIDX 53
2202 tSCC zLynxos_Fcntl_ProtoName[] =
2203 "lynxos_fcntl_proto";
2206 * File name selection pattern
2208 tSCC zLynxos_Fcntl_ProtoList[] =
2211 * Machine/OS name selection pattern
2213 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2216 * content selection pattern - do fix if pattern found
2218 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2219 "fcntl.*\\(int, int, int\\)";
2221 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2222 tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2223 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2226 * Fix Command Arguments for Lynxos_Fcntl_Proto
2228 const char* apzLynxos_Fcntl_ProtoPatch[] = { "sed",
2229 "-e", "s/\\(fcntl.*(int, int, \\)int)/\\1...)/",
2232 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2234 * Description of M88k_Bad_Hypot_Opt fix
2236 #define M88K_BAD_HYPOT_OPT_FIXIDX 54
2237 tSCC zM88k_Bad_Hypot_OptName[] =
2238 "m88k_bad_hypot_opt";
2241 * File name selection pattern
2243 tSCC zM88k_Bad_Hypot_OptList[] =
2246 * Machine/OS name selection pattern
2248 tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
2249 "m88k-motorola-sysv3*",
2250 (const char*)NULL };
2251 #define M88K_BAD_HYPOT_OPT_TEST_CT 0
2252 #define aM88k_Bad_Hypot_OptTests (tTestDesc*)NULL
2255 * Fix Command Arguments for M88k_Bad_Hypot_Opt
2257 const char* apzM88k_Bad_Hypot_OptPatch[] = { "sed",
2258 "-e", "s/extern double floor(), ceil(), fmod(), fabs();/extern double floor(), ceil(), fmod(), fabs _PARAMS((double));/",
2259 "-e", "/^extern double hypot();$/a\\\n\
2260 \\/* Workaround a stupid Motorola optimization if one\\\n\
2261 of x or y is 0.0 and the other is negative! *\\/\\\n\
2262 #ifdef __STDC__\\\n\
2263 static __inline__ double fake_hypot (double x, double y)\\\n\
2265 static __inline__ double fake_hypot (x, y)\\\n\
2269 \treturn fabs (hypot (x, y));\\\n\
2271 #define hypot\tfake_hypot\n",
2274 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2276 * Description of M88k_Bad_S_If fix
2278 #define M88K_BAD_S_IF_FIXIDX 55
2279 tSCC zM88k_Bad_S_IfName[] =
2283 * File name selection pattern
2285 tSCC zM88k_Bad_S_IfList[] =
2288 * Machine/OS name selection pattern
2290 tSCC* apzM88k_Bad_S_IfMachs[] = {
2292 (const char*)NULL };
2295 * content selection pattern - do fix if pattern found
2297 tSCC zM88k_Bad_S_IfSelect0[] =
2298 "#define[ \t]+S_IS[A-Z]*(m)[ \t]";
2300 #define M88K_BAD_S_IF_TEST_CT 1
2301 tTestDesc aM88k_Bad_S_IfTests[] = {
2302 { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
2305 * Fix Command Arguments for M88k_Bad_S_If
2307 const char* apzM88k_Bad_S_IfPatch[] = { "sed",
2308 "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(S_IF[A-Z][A-Z][A-Z][A-Z]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",
2309 "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(0[0-9]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",
2312 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2314 * Description of M88k_Multi_Incl fix
2316 #define M88K_MULTI_INCL_FIXIDX 56
2317 tSCC zM88k_Multi_InclName[] =
2321 * File name selection pattern
2323 tSCC zM88k_Multi_InclList[] =
2326 * Machine/OS name selection pattern
2328 tSCC* apzM88k_Multi_InclMachs[] = {
2329 "m88k-tektronix-sysv3*",
2330 (const char*)NULL };
2333 * content bypass pattern - skip fix if pattern found
2335 tSCC zM88k_Multi_InclBypass0[] =
2338 #define M88K_MULTI_INCL_TEST_CT 1
2339 tTestDesc aM88k_Multi_InclTests[] = {
2340 { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
2343 * Fix Command Arguments for M88k_Multi_Incl
2345 const char* apzM88k_Multi_InclPatch[] = { "sh", "-c",
2346 "echo Fixing $file, to protect against multiple inclusion. >&2\n\
2347 cpp_wrapper=`echo $file | sed -e 's,\\.,_,g' -e 's,/,_,g'`\n\
2348 echo \"#ifndef __GCC_GOT_${cpp_wrapper}_\"\n\
2349 echo \"#define __GCC_GOT_${cpp_wrapper}_\"\n\
2351 echo \"#endif /* ! __GCC_GOT_${cpp_wrapper}_ */\"",
2354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2356 * Description of Machine_Ansi_H_Va_List fix
2358 #define MACHINE_ANSI_H_VA_LIST_FIXIDX 57
2359 tSCC zMachine_Ansi_H_Va_ListName[] =
2360 "machine_ansi_h_va_list";
2363 * File name selection pattern
2365 tSCC zMachine_Ansi_H_Va_ListList[] =
2368 * Machine/OS name selection pattern
2370 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2373 * content selection pattern - do fix if pattern found
2375 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2379 * content bypass pattern - skip fix if pattern found
2381 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2382 "__builtin_va_list";
2384 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2385 tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2386 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2387 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2390 * Fix Command Arguments for Machine_Ansi_H_Va_List
2392 const char* apzMachine_Ansi_H_Va_ListPatch[] = { "sed",
2393 "-e", "s/\\(_BSD_VA_LIST_[ \t][ \t]*\\).*$/\\1__builtin_va_list/",
2396 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2398 * Description of Machine_Name fix
2400 #define MACHINE_NAME_FIXIDX 58
2401 tSCC zMachine_NameName[] =
2405 * File name selection pattern
2407 #define zMachine_NameList (char*)NULL
2409 * Machine/OS name selection pattern
2411 #define apzMachine_NameMachs (const char**)NULL
2414 * perform the C function call test
2416 tSCC zMachine_NameFTst0[] = "machine_name";
2418 #define MACHINE_NAME_TEST_CT 1
2419 tTestDesc aMachine_NameTests[] = {
2420 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2423 * Fix Command Arguments for Machine_Name
2425 const char* apzMachine_NamePatch[] = {
2429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2431 * Description of Math_Exception fix
2433 #define MATH_EXCEPTION_FIXIDX 59
2434 tSCC zMath_ExceptionName[] =
2438 * File name selection pattern
2440 tSCC zMath_ExceptionList[] =
2443 * Machine/OS name selection pattern
2445 #define apzMath_ExceptionMachs (const char**)NULL
2448 * content selection pattern - do fix if pattern found
2450 tSCC zMath_ExceptionSelect0[] =
2454 * content bypass pattern - skip fix if pattern found
2456 tSCC zMath_ExceptionBypass0[] =
2457 "We have a problem when using C\\+\\+";
2459 #define MATH_EXCEPTION_TEST_CT 2
2460 tTestDesc aMath_ExceptionTests[] = {
2461 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2462 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2465 * Fix Command Arguments for Math_Exception
2467 const char* apzMath_ExceptionPatch[] = { "sed",
2469 #ifdef __cplusplus\\\n\
2470 #define exception __math_exception\\\n\
2473 #ifdef __cplusplus\\\n\
2474 #undef exception\\\n\
2478 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2480 * Description of Math_Huge_Val_From_Dbl_Max fix
2482 #define MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX 60
2483 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2484 "math_huge_val_from_dbl_max";
2487 * File name selection pattern
2489 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2492 * Machine/OS name selection pattern
2494 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2497 * content selection pattern - do fix if pattern found
2499 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2500 "define[ \t]*HUGE_VAL[ \t]*DBL_MAX";
2503 * content bypass pattern - skip fix if pattern found
2505 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2506 "define[ \t]*DBL_MAX";
2508 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2509 tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2510 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2511 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2514 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2516 const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2517 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h 2>/dev/null`\n\
2519 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2520 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s/DBL_MAX/'\"$dbl_max_def/\"\n\
2525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2527 * Description of Math_Huge_Val_Ifndef fix
2529 #define MATH_HUGE_VAL_IFNDEF_FIXIDX 61
2530 tSCC zMath_Huge_Val_IfndefName[] =
2531 "math_huge_val_ifndef";
2534 * File name selection pattern
2536 tSCC zMath_Huge_Val_IfndefList[] =
2539 * Machine/OS name selection pattern
2541 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2544 * content selection pattern - do fix if pattern found
2546 tSCC zMath_Huge_Val_IfndefSelect0[] =
2547 "define[ \t]*HUGE_VAL";
2549 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2550 tTestDesc aMath_Huge_Val_IfndefTests[] = {
2551 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2554 * Fix Command Arguments for Math_Huge_Val_Ifndef
2556 const char* apzMath_Huge_Val_IfndefPatch[] = { "sed",
2557 "-e", "/define[ \t]HUGE_VAL[ \t]/i\\\n\
2558 #ifndef HUGE_VAL\n",
2559 "-e", "/define[ \t]HUGE_VAL[ \t]/a\\\n\
2563 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2565 * Description of Nested_Comment fix
2567 #define NESTED_COMMENT_FIXIDX 62
2568 tSCC zNested_CommentName[] =
2572 * File name selection pattern
2574 tSCC zNested_CommentList[] =
2577 * Machine/OS name selection pattern
2579 #define apzNested_CommentMachs (const char**)NULL
2580 #define NESTED_COMMENT_TEST_CT 0
2581 #define aNested_CommentTests (tTestDesc*)NULL
2584 * Fix Command Arguments for Nested_Comment
2586 const char* apzNested_CommentPatch[] = { "sed",
2587 "-e", "s@^\\(/\\*.*rpc/auth_des.h>.*\\)/\\*@\\1*/ /*@",
2590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2592 * Description of News_Os_Recursion fix
2594 #define NEWS_OS_RECURSION_FIXIDX 63
2595 tSCC zNews_Os_RecursionName[] =
2596 "news_os_recursion";
2599 * File name selection pattern
2601 tSCC zNews_Os_RecursionList[] =
2604 * Machine/OS name selection pattern
2606 #define apzNews_Os_RecursionMachs (const char**)NULL
2609 * content selection pattern - do fix if pattern found
2611 tSCC zNews_Os_RecursionSelect0[] =
2612 "#include <stdlib.h>";
2614 #define NEWS_OS_RECURSION_TEST_CT 1
2615 tTestDesc aNews_Os_RecursionTests[] = {
2616 { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
2619 * Fix Command Arguments for News_Os_Recursion
2621 const char* apzNews_Os_RecursionPatch[] = { "sed",
2622 "-e", "/^#include <stdlib.h>/i\\\n\
2623 #ifdef BOGUS_RECURSION\n",
2624 "-e", "/^#include <stdlib.h>/a\\\n\
2628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2630 * Description of Next_Math_Prefix fix
2632 #define NEXT_MATH_PREFIX_FIXIDX 64
2633 tSCC zNext_Math_PrefixName[] =
2637 * File name selection pattern
2639 tSCC zNext_Math_PrefixList[] =
2642 * Machine/OS name selection pattern
2644 #define apzNext_Math_PrefixMachs (const char**)NULL
2647 * content selection pattern - do fix if pattern found
2649 tSCC zNext_Math_PrefixSelect0[] =
2650 "^extern.*double.*__const__.*";
2652 #define NEXT_MATH_PREFIX_TEST_CT 1
2653 tTestDesc aNext_Math_PrefixTests[] = {
2654 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
2657 * Fix Command Arguments for Next_Math_Prefix
2659 const char* apzNext_Math_PrefixPatch[] = { "sed",
2660 "-e", "/^extern.*double.*__const__.*sqrt(/s/__const__//",
2661 "-e", "/^extern.*double.*__const__.*fabs(/s/__const__//",
2662 "-e", "/^extern.*double.*__const__.*cos(/s/__const__//",
2663 "-e", "/^extern.*double.*__const__.*hypot(/s/__const__//",
2664 "-e", "/^extern.*double.*__const__.*sin(/s/__const__//",
2667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2669 * Description of Next_Template fix
2671 #define NEXT_TEMPLATE_FIXIDX 65
2672 tSCC zNext_TemplateName[] =
2676 * File name selection pattern
2678 tSCC zNext_TemplateList[] =
2681 * Machine/OS name selection pattern
2683 #define apzNext_TemplateMachs (const char**)NULL
2686 * content selection pattern - do fix if pattern found
2688 tSCC zNext_TemplateSelect0[] =
2691 #define NEXT_TEMPLATE_TEST_CT 1
2692 tTestDesc aNext_TemplateTests[] = {
2693 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
2696 * Fix Command Arguments for Next_Template
2698 const char* apzNext_TemplatePatch[] = { "sed",
2699 "-e", "/\\(.*template\\)/s/template//",
2700 "-e", "/extern.*volatile.*void.*abort/s/volatile//",
2703 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2705 * Description of Next_Volitile fix
2707 #define NEXT_VOLITILE_FIXIDX 66
2708 tSCC zNext_VolitileName[] =
2712 * File name selection pattern
2714 tSCC zNext_VolitileList[] =
2717 * Machine/OS name selection pattern
2719 #define apzNext_VolitileMachs (const char**)NULL
2722 * content selection pattern - do fix if pattern found
2724 tSCC zNext_VolitileSelect0[] =
2727 #define NEXT_VOLITILE_TEST_CT 1
2728 tTestDesc aNext_VolitileTests[] = {
2729 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
2732 * Fix Command Arguments for Next_Volitile
2734 const char* apzNext_VolitilePatch[] = { "sed",
2735 "-e", "/extern.*volatile.*void.*exit/s/volatile//",
2736 "-e", "/extern.*volatile.*void.*abort/s/volatile//",
2739 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2741 * Description of Next_Wait_Union fix
2743 #define NEXT_WAIT_UNION_FIXIDX 67
2744 tSCC zNext_Wait_UnionName[] =
2748 * File name selection pattern
2750 tSCC zNext_Wait_UnionList[] =
2753 * Machine/OS name selection pattern
2755 #define apzNext_Wait_UnionMachs (const char**)NULL
2758 * content selection pattern - do fix if pattern found
2760 tSCC zNext_Wait_UnionSelect0[] =
2761 "wait\\(union wait";
2763 #define NEXT_WAIT_UNION_TEST_CT 1
2764 tTestDesc aNext_Wait_UnionTests[] = {
2765 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
2768 * Fix Command Arguments for Next_Wait_Union
2770 const char* apzNext_Wait_UnionPatch[] = { "sed",
2771 "-e", "s@wait(union wait@wait(void@",
2774 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2776 * Description of Nodeent_Syntax fix
2778 #define NODEENT_SYNTAX_FIXIDX 68
2779 tSCC zNodeent_SyntaxName[] =
2783 * File name selection pattern
2785 tSCC zNodeent_SyntaxList[] =
2786 "|netdnet/dnetdb.h|";
2788 * Machine/OS name selection pattern
2790 #define apzNodeent_SyntaxMachs (const char**)NULL
2791 #define NODEENT_SYNTAX_TEST_CT 0
2792 #define aNodeent_SyntaxTests (tTestDesc*)NULL
2795 * Fix Command Arguments for Nodeent_Syntax
2797 const char* apzNodeent_SyntaxPatch[] = { "sed",
2798 "-e", "s/char.*na_addr *$/char *na_addr;/",
2801 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2803 * Description of Osf_Namespace_A fix
2805 #define OSF_NAMESPACE_A_FIXIDX 69
2806 tSCC zOsf_Namespace_AName[] =
2810 * File name selection pattern
2812 tSCC zOsf_Namespace_AList[] =
2813 "|reg_types.h|sys/lc_core.h|";
2815 * Machine/OS name selection pattern
2817 #define apzOsf_Namespace_AMachs (const char**)NULL
2820 * perform the 'test' shell command - do fix on success
2822 tSCC zOsf_Namespace_ATest0[] =
2824 tSCC zOsf_Namespace_ATest1[] =
2825 " -r sys/lc_core.h";
2826 tSCC zOsf_Namespace_ATest2[] =
2827 " -n \"`grep '} regex_t;' reg_types.h`\"";
2828 tSCC zOsf_Namespace_ATest3[] =
2829 " -z \"`grep __regex_t regex.h`\"";
2831 #define OSF_NAMESPACE_A_TEST_CT 4
2832 tTestDesc aOsf_Namespace_ATests[] = {
2833 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
2834 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
2835 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
2836 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
2839 * Fix Command Arguments for Osf_Namespace_A
2841 const char* apzOsf_Namespace_APatch[] = { "sed",
2842 "-e", "s/regex_t/__regex_t/g",
2843 "-e", "s/regoff_t/__regoff_t/g",
2844 "-e", "s/regmatch_t/__regmatch_t/g",
2847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2849 * Description of Osf_Namespace_B fix
2851 #define OSF_NAMESPACE_B_FIXIDX 70
2852 tSCC zOsf_Namespace_BName[] =
2856 * File name selection pattern
2858 tSCC zOsf_Namespace_BList[] =
2861 * Machine/OS name selection pattern
2863 #define apzOsf_Namespace_BMachs (const char**)NULL
2866 * perform the 'test' shell command - do fix on success
2868 tSCC zOsf_Namespace_BTest0[] =
2870 tSCC zOsf_Namespace_BTest1[] =
2871 " -r sys/lc_core.h";
2872 tSCC zOsf_Namespace_BTest2[] =
2873 " -n \"`grep '} regex_t;' reg_types.h`\"";
2874 tSCC zOsf_Namespace_BTest3[] =
2875 " -z \"`grep __regex_t regex.h`\"";
2877 #define OSF_NAMESPACE_B_TEST_CT 4
2878 tTestDesc aOsf_Namespace_BTests[] = {
2879 { TT_TEST, zOsf_Namespace_BTest0, 0 /* unused */ },
2880 { TT_TEST, zOsf_Namespace_BTest1, 0 /* unused */ },
2881 { TT_TEST, zOsf_Namespace_BTest2, 0 /* unused */ },
2882 { TT_TEST, zOsf_Namespace_BTest3, 0 /* unused */ }, };
2885 * Fix Command Arguments for Osf_Namespace_B
2887 const char* apzOsf_Namespace_BPatch[] = { "sed",
2888 "-e", "/#include <reg_types.h>/a\\\n\
2889 typedef __regex_t\tregex_t;\\\n\
2890 typedef __regoff_t\tregoff_t;\\\n\
2891 typedef __regmatch_t\tregmatch_t;\n",
2894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2896 * Description of Pthread_Page_Size fix
2898 #define PTHREAD_PAGE_SIZE_FIXIDX 71
2899 tSCC zPthread_Page_SizeName[] =
2900 "pthread_page_size";
2903 * File name selection pattern
2905 tSCC zPthread_Page_SizeList[] =
2908 * Machine/OS name selection pattern
2910 #define apzPthread_Page_SizeMachs (const char**)NULL
2913 * content selection pattern - do fix if pattern found
2915 tSCC zPthread_Page_SizeSelect0[] =
2918 #define PTHREAD_PAGE_SIZE_TEST_CT 1
2919 tTestDesc aPthread_Page_SizeTests[] = {
2920 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
2923 * Fix Command Arguments for Pthread_Page_Size
2925 const char* apzPthread_Page_SizePatch[] = { "sed",
2926 "-e", "s/^int __page_size/extern int __page_size/",
2929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2931 * Description of Read_Ret_Type fix
2933 #define READ_RET_TYPE_FIXIDX 72
2934 tSCC zRead_Ret_TypeName[] =
2938 * File name selection pattern
2940 tSCC zRead_Ret_TypeList[] =
2943 * Machine/OS name selection pattern
2945 #define apzRead_Ret_TypeMachs (const char**)NULL
2948 * content selection pattern - do fix if pattern found
2950 tSCC zRead_Ret_TypeSelect0[] =
2951 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
2953 #define READ_RET_TYPE_TEST_CT 1
2954 tTestDesc aRead_Ret_TypeTests[] = {
2955 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
2958 * Fix Command Arguments for Read_Ret_Type
2960 const char* apzRead_Ret_TypePatch[] = { "sed",
2961 "-e", "s/^\\(extern int\tfclose(), fflush()\\), \\(fread(), fwrite()\\)\\(.*\\)$/extern unsigned int\t\\2;\\\n\
2965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2967 * Description of Rs6000_Double fix
2969 #define RS6000_DOUBLE_FIXIDX 73
2970 tSCC zRs6000_DoubleName[] =
2974 * File name selection pattern
2976 tSCC zRs6000_DoubleList[] =
2979 * Machine/OS name selection pattern
2981 #define apzRs6000_DoubleMachs (const char**)NULL
2984 * content selection pattern - do fix if pattern found
2986 tSCC zRs6000_DoubleSelect0[] =
2987 "[^a-zA-Z_]class\\(";
2989 #define RS6000_DOUBLE_TEST_CT 1
2990 tTestDesc aRs6000_DoubleTests[] = {
2991 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
2994 * Fix Command Arguments for Rs6000_Double
2996 const char* apzRs6000_DoublePatch[] = { "sed",
2997 "-e", "/class[(]/i\\\n\
2998 #ifndef __cplusplus\n",
2999 "-e", "/class[(]/a\\\n\
3003 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3005 * Description of Rs6000_Fchmod fix
3007 #define RS6000_FCHMOD_FIXIDX 74
3008 tSCC zRs6000_FchmodName[] =
3012 * File name selection pattern
3014 tSCC zRs6000_FchmodList[] =
3017 * Machine/OS name selection pattern
3019 #define apzRs6000_FchmodMachs (const char**)NULL
3022 * content selection pattern - do fix if pattern found
3024 tSCC zRs6000_FchmodSelect0[] =
3027 #define RS6000_FCHMOD_TEST_CT 1
3028 tTestDesc aRs6000_FchmodTests[] = {
3029 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3032 * Fix Command Arguments for Rs6000_Fchmod
3034 const char* apzRs6000_FchmodPatch[] = { "sed",
3035 "-e", "s/fchmod(char \\*/fchmod(int/",
3038 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3040 * Description of Rs6000_Param fix
3042 #define RS6000_PARAM_FIXIDX 75
3043 tSCC zRs6000_ParamName[] =
3047 * File name selection pattern
3049 tSCC zRs6000_ParamList[] =
3050 "|stdio.h|unistd.h|";
3052 * Machine/OS name selection pattern
3054 #define apzRs6000_ParamMachs (const char**)NULL
3057 * content selection pattern - do fix if pattern found
3059 tSCC zRs6000_ParamSelect0[] =
3062 #define RS6000_PARAM_TEST_CT 1
3063 tTestDesc aRs6000_ParamTests[] = {
3064 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3067 * Fix Command Arguments for Rs6000_Param
3069 const char* apzRs6000_ParamPatch[] = { "sed",
3070 "-e", "s@rename(const char \\*old, const char \\*new)@rename(const char *_old, const char *_new)@",
3073 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3075 * Description of Sco_Strict_Ansi fix
3077 #define SCO_STRICT_ANSI_FIXIDX 76
3078 tSCC zSco_Strict_AnsiName[] =
3082 * File name selection pattern
3084 #define zSco_Strict_AnsiList (char*)NULL
3086 * Machine/OS name selection pattern
3088 tSCC* apzSco_Strict_AnsiMachs[] = {
3090 (const char*)NULL };
3093 * content selection pattern - do fix if pattern found
3095 tSCC zSco_Strict_AnsiSelect0[] =
3096 "^[ \t]*#[ \t]*if.*!__STDC__";
3098 #define SCO_STRICT_ANSI_TEST_CT 1
3099 tTestDesc aSco_Strict_AnsiTests[] = {
3100 { TT_EGREP, zSco_Strict_AnsiSelect0, (regex_t*)NULL }, };
3103 * Fix Command Arguments for Sco_Strict_Ansi
3105 const char* apzSco_Strict_AnsiPatch[] = { "sed",
3106 "-e", "s/!__STDC__/!defined(__STRICT_ANSI__)/g",
3109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3111 * Description of Sco_Static_Func fix
3113 #define SCO_STATIC_FUNC_FIXIDX 77
3114 tSCC zSco_Static_FuncName[] =
3118 * File name selection pattern
3120 tSCC zSco_Static_FuncList[] =
3123 * Machine/OS name selection pattern
3125 tSCC* apzSco_Static_FuncMachs[] = {
3127 (const char*)NULL };
3130 * content selection pattern - do fix if pattern found
3132 tSCC zSco_Static_FuncSelect0[] =
3135 #define SCO_STATIC_FUNC_TEST_CT 1
3136 tTestDesc aSco_Static_FuncTests[] = {
3137 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3140 * Fix Command Arguments for Sco_Static_Func
3142 const char* apzSco_Static_FuncPatch[] = { "sed",
3143 "-e", "/^static int/i\\\n\
3144 #if __cplusplus\\\n\
3146 #endif /* __cplusplus */",
3148 #if __cplusplus\\\n\
3150 #endif /* __cplusplus */",
3153 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3155 * Description of Sco_Utime fix
3157 #define SCO_UTIME_FIXIDX 78
3158 tSCC zSco_UtimeName[] =
3162 * File name selection pattern
3164 tSCC zSco_UtimeList[] =
3167 * Machine/OS name selection pattern
3169 tSCC* apzSco_UtimeMachs[] = {
3171 (const char*)NULL };
3174 * content selection pattern - do fix if pattern found
3176 tSCC zSco_UtimeSelect0[] =
3177 "(const char *, struct utimbuf *);";
3179 #define SCO_UTIME_TEST_CT 1
3180 tTestDesc aSco_UtimeTests[] = {
3181 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3184 * Fix Command Arguments for Sco_Utime
3186 const char* apzSco_UtimePatch[] = { "sed",
3187 "-e", "s/(const char \\*, struct utimbuf \\*);/(const char *, const struct utimbuf *);/",
3190 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3192 * Description of Sony_Include fix
3194 #define SONY_INCLUDE_FIXIDX 79
3195 tSCC zSony_IncludeName[] =
3199 * File name selection pattern
3201 tSCC zSony_IncludeList[] =
3202 "|machine/machparam.h|";
3204 * Machine/OS name selection pattern
3206 #define apzSony_IncludeMachs (const char**)NULL
3209 * content selection pattern - do fix if pattern found
3211 tSCC zSony_IncludeSelect0[] =
3212 "\"\\.\\./machine/endian.h\"";
3214 #define SONY_INCLUDE_TEST_CT 1
3215 tTestDesc aSony_IncludeTests[] = {
3216 { TT_EGREP, zSony_IncludeSelect0, (regex_t*)NULL }, };
3219 * Fix Command Arguments for Sony_Include
3221 const char* apzSony_IncludePatch[] = { "sed",
3222 "-e", "s@\"../machine/endian.h\"@<machine/endian.h>@",
3225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3227 * Description of Statsswtch fix
3229 #define STATSSWTCH_FIXIDX 80
3230 tSCC zStatsswtchName[] =
3234 * File name selection pattern
3236 tSCC zStatsswtchList[] =
3239 * Machine/OS name selection pattern
3241 #define apzStatsswtchMachs (const char**)NULL
3244 * content selection pattern - do fix if pattern found
3246 tSCC zStatsswtchSelect0[] =
3249 #define STATSSWTCH_TEST_CT 1
3250 tTestDesc aStatsswtchTests[] = {
3251 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3254 * Fix Command Arguments for Statsswtch
3256 const char* apzStatsswtchPatch[] = { "sed",
3257 "-e", "s/boottime$/boottime;/",
3260 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3262 * Description of Stdio_Stdarg_H fix
3264 #define STDIO_STDARG_H_FIXIDX 81
3265 tSCC zStdio_Stdarg_HName[] =
3269 * File name selection pattern
3271 tSCC zStdio_Stdarg_HList[] =
3274 * Machine/OS name selection pattern
3276 #define apzStdio_Stdarg_HMachs (const char**)NULL
3279 * content bypass pattern - skip fix if pattern found
3281 tSCC zStdio_Stdarg_HBypass0[] =
3282 "include.*(stdarg.h|machine/ansi.h)";
3284 #define STDIO_STDARG_H_TEST_CT 1
3285 tTestDesc aStdio_Stdarg_HTests[] = {
3286 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3289 * Fix Command Arguments for Stdio_Stdarg_H
3291 const char* apzStdio_Stdarg_HPatch[] = { "sed",
3293 #define __need___va_list\\\n\
3294 #include <stdarg.h>\n",
3297 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3299 * Description of Stdio_Va_List fix
3301 #define STDIO_VA_LIST_FIXIDX 82
3302 tSCC zStdio_Va_ListName[] =
3306 * File name selection pattern
3308 tSCC zStdio_Va_ListList[] =
3311 * Machine/OS name selection pattern
3313 #define apzStdio_Va_ListMachs (const char**)NULL
3316 * content bypass pattern - skip fix if pattern found
3318 tSCC zStdio_Va_ListBypass0[] =
3319 "__gnuc_va_list|_BSD_VA_LIST_";
3321 #define STDIO_VA_LIST_TEST_CT 1
3322 tTestDesc aStdio_Va_ListTests[] = {
3323 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3326 * Fix Command Arguments for Stdio_Va_List
3328 const char* apzStdio_Va_ListPatch[] = { "sed",
3329 "-e", "s@ va_list @ __gnuc_va_list @\n\
3330 s@ va_list)@ __gnuc_va_list)@\n\
3331 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3332 s@ va_list@ __not_va_list__@\n\
3333 s@\\*va_list@*__not_va_list__@\n\
3334 s@ __va_list)@ __gnuc_va_list)@\n\
3335 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3336 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3337 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3338 s@VA_LIST@DUMMY_VA_LIST@\n\
3339 s@_Va_LIST@_VA_LIST@",
3342 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3344 * Description of Sun_Auth_Proto fix
3346 #define SUN_AUTH_PROTO_FIXIDX 83
3347 tSCC zSun_Auth_ProtoName[] =
3351 * File name selection pattern
3353 tSCC zSun_Auth_ProtoList[] =
3354 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
3356 * Machine/OS name selection pattern
3358 #define apzSun_Auth_ProtoMachs (const char**)NULL
3361 * content selection pattern - do fix if pattern found
3363 tSCC zSun_Auth_ProtoSelect0[] =
3364 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
3366 #define SUN_AUTH_PROTO_TEST_CT 1
3367 tTestDesc aSun_Auth_ProtoTests[] = {
3368 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
3371 * Fix Command Arguments for Sun_Auth_Proto
3373 const char* apzSun_Auth_ProtoPatch[] = { "sed",
3374 "-e", "s/^\\(.*(\\*[a-z][a-z_]*)(\\)\\();.*\\)/\\\n\
3375 #ifdef __cplusplus\\\n\
3382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3384 * Description of Sun_Bogus_Ifdef fix
3386 #define SUN_BOGUS_IFDEF_FIXIDX 84
3387 tSCC zSun_Bogus_IfdefName[] =
3391 * File name selection pattern
3393 tSCC zSun_Bogus_IfdefList[] =
3394 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
3396 * Machine/OS name selection pattern
3398 #define apzSun_Bogus_IfdefMachs (const char**)NULL
3401 * content selection pattern - do fix if pattern found
3403 tSCC zSun_Bogus_IfdefSelect0[] =
3404 "#ifdef __i386__ || __vax__";
3406 #define SUN_BOGUS_IFDEF_TEST_CT 1
3407 tTestDesc aSun_Bogus_IfdefTests[] = {
3408 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
3411 * Fix Command Arguments for Sun_Bogus_Ifdef
3413 const char* apzSun_Bogus_IfdefPatch[] = { "sed",
3414 "-e", "s/\\#ifdef __i386__ || __vax__/\\#if __i386__ || __vax__/g",
3417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3419 * Description of Sun_Bogus_Ifdef_Sun4c fix
3421 #define SUN_BOGUS_IFDEF_SUN4C_FIXIDX 85
3422 tSCC zSun_Bogus_Ifdef_Sun4cName[] =
3423 "sun_bogus_ifdef_sun4c";
3426 * File name selection pattern
3428 tSCC zSun_Bogus_Ifdef_Sun4cList[] =
3431 * Machine/OS name selection pattern
3433 #define apzSun_Bogus_Ifdef_Sun4cMachs (const char**)NULL
3436 * content selection pattern - do fix if pattern found
3438 tSCC zSun_Bogus_Ifdef_Sun4cSelect0[] =
3439 "#ifdef __i386__ || __sun4c__";
3441 #define SUN_BOGUS_IFDEF_SUN4C_TEST_CT 1
3442 tTestDesc aSun_Bogus_Ifdef_Sun4cTests[] = {
3443 { TT_EGREP, zSun_Bogus_Ifdef_Sun4cSelect0, (regex_t*)NULL }, };
3446 * Fix Command Arguments for Sun_Bogus_Ifdef_Sun4c
3448 const char* apzSun_Bogus_Ifdef_Sun4cPatch[] = { "sed",
3449 "-e", "s/\\#ifdef __i386__ || __sun4c__/\\#if __i386__ || __sun4c__/g",
3452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3454 * Description of Sun_Catmacro fix
3456 #define SUN_CATMACRO_FIXIDX 86
3457 tSCC zSun_CatmacroName[] =
3461 * File name selection pattern
3463 tSCC zSun_CatmacroList[] =
3464 "|pixrect/memvar.h|";
3466 * Machine/OS name selection pattern
3468 #define apzSun_CatmacroMachs (const char**)NULL
3471 * content selection pattern - do fix if pattern found
3473 tSCC zSun_CatmacroSelect0[] =
3474 "^#define[ \t]+CAT\\(a,b\\)";
3476 #define SUN_CATMACRO_TEST_CT 1
3477 tTestDesc aSun_CatmacroTests[] = {
3478 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
3481 * Fix Command Arguments for Sun_Catmacro
3483 const char* apzSun_CatmacroPatch[] = { "sed",
3484 "-e", "/^#define[ \t]CAT(a,b)/ i\\\n\
3485 #ifdef __STDC__ \\\n\
3486 #define CAT(a,b) a##b\\\n\
3488 "-e", "/^#define[ \t]CAT(a,b)/ a\\\n\
3492 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3494 * Description of Sun_Malloc fix
3496 #define SUN_MALLOC_FIXIDX 87
3497 tSCC zSun_MallocName[] =
3501 * File name selection pattern
3503 tSCC zSun_MallocList[] =
3506 * Machine/OS name selection pattern
3508 #define apzSun_MallocMachs (const char**)NULL
3509 #define SUN_MALLOC_TEST_CT 0
3510 #define aSun_MallocTests (tTestDesc*)NULL
3513 * Fix Command Arguments for Sun_Malloc
3515 const char* apzSun_MallocPatch[] = { "sed",
3516 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
3517 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
3518 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
3519 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
3522 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3524 * Description of Sun_Rusers_Semi fix
3526 #define SUN_RUSERS_SEMI_FIXIDX 88
3527 tSCC zSun_Rusers_SemiName[] =
3531 * File name selection pattern
3533 tSCC zSun_Rusers_SemiList[] =
3534 "|rpcsvc/rusers.h|";
3536 * Machine/OS name selection pattern
3538 #define apzSun_Rusers_SemiMachs (const char**)NULL
3541 * content selection pattern - do fix if pattern found
3543 tSCC zSun_Rusers_SemiSelect0[] =
3546 #define SUN_RUSERS_SEMI_TEST_CT 1
3547 tTestDesc aSun_Rusers_SemiTests[] = {
3548 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
3551 * Fix Command Arguments for Sun_Rusers_Semi
3553 const char* apzSun_Rusers_SemiPatch[] = { "sed",
3554 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
3557 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3559 * Description of Sun_Signal fix
3561 #define SUN_SIGNAL_FIXIDX 89
3562 tSCC zSun_SignalName[] =
3566 * File name selection pattern
3568 tSCC zSun_SignalList[] =
3569 "|sys/signal.h|signal.h|";
3571 * Machine/OS name selection pattern
3573 #define apzSun_SignalMachs (const char**)NULL
3576 * content selection pattern - do fix if pattern found
3578 tSCC zSun_SignalSelect0[] =
3579 "^void\t\\(\\*signal\\(\\)\\)\\(\\);";
3581 #define SUN_SIGNAL_TEST_CT 1
3582 tTestDesc aSun_SignalTests[] = {
3583 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
3586 * Fix Command Arguments for Sun_Signal
3588 const char* apzSun_SignalPatch[] = { "sed",
3589 "-e", "/^void\t(\\*signal())();$/i\\\n\
3590 #ifdef __cplusplus\\\n\
3591 void\t(*signal(...))(...);\\\n\
3593 "-e", "/^void\t(\\*signal())();$/a\\\n\
3597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3599 * Description of Sunos_Matherr_Decl fix
3601 #define SUNOS_MATHERR_DECL_FIXIDX 90
3602 tSCC zSunos_Matherr_DeclName[] =
3603 "sunos_matherr_decl";
3606 * File name selection pattern
3608 tSCC zSunos_Matherr_DeclList[] =
3611 * Machine/OS name selection pattern
3613 #define apzSunos_Matherr_DeclMachs (const char**)NULL
3616 * content bypass pattern - skip fix if pattern found
3618 tSCC zSunos_Matherr_DeclBypass0[] =
3619 "matherr.*struct exception";
3621 #define SUNOS_MATHERR_DECL_TEST_CT 1
3622 tTestDesc aSunos_Matherr_DeclTests[] = {
3623 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL }, };
3626 * Fix Command Arguments for Sunos_Matherr_Decl
3628 const char* apzSunos_Matherr_DeclPatch[] = { "sed",
3629 "-e", "/^struct exception/,$b",
3630 "-e", "/matherr/i\\\n\
3631 struct exception;\n",
3634 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3636 * Description of Sunos_Strlen fix
3638 #define SUNOS_STRLEN_FIXIDX 91
3639 tSCC zSunos_StrlenName[] =
3643 * File name selection pattern
3645 tSCC zSunos_StrlenList[] =
3648 * Machine/OS name selection pattern
3650 #define apzSunos_StrlenMachs (const char**)NULL
3653 * content selection pattern - do fix if pattern found
3655 tSCC zSunos_StrlenSelect0[] =
3658 #define SUNOS_STRLEN_TEST_CT 1
3659 tTestDesc aSunos_StrlenTests[] = {
3660 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
3663 * Fix Command Arguments for Sunos_Strlen
3665 const char* apzSunos_StrlenPatch[] = { "sed",
3666 "-e", "s/int[ \t]*strlen();/__SIZE_TYPE__ strlen();/",
3669 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3671 * Description of Svr4_Getcwd fix
3673 #define SVR4_GETCWD_FIXIDX 92
3674 tSCC zSvr4_GetcwdName[] =
3678 * File name selection pattern
3680 tSCC zSvr4_GetcwdList[] =
3681 "|stdlib.h|unistd.h|prototypes.h|";
3683 * Machine/OS name selection pattern
3685 #define apzSvr4_GetcwdMachs (const char**)NULL
3688 * content selection pattern - do fix if pattern found
3690 tSCC zSvr4_GetcwdSelect0[] =
3691 "getcwd\\(char \\*, int\\)";
3693 #define SVR4_GETCWD_TEST_CT 1
3694 tTestDesc aSvr4_GetcwdTests[] = {
3695 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
3698 * Fix Command Arguments for Svr4_Getcwd
3700 const char* apzSvr4_GetcwdPatch[] = { "sed",
3701 "-e", "s/getcwd(char \\*, int)/getcwd(char *, size_t)/",
3704 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3706 * Description of Svr4_Profil fix
3708 #define SVR4_PROFIL_FIXIDX 93
3709 tSCC zSvr4_ProfilName[] =
3713 * File name selection pattern
3715 tSCC zSvr4_ProfilList[] =
3716 "|stdlib.h|unistd.h|";
3718 * Machine/OS name selection pattern
3720 #define apzSvr4_ProfilMachs (const char**)NULL
3721 #define SVR4_PROFIL_TEST_CT 0
3722 #define aSvr4_ProfilTests (tTestDesc*)NULL
3725 * Fix Command Arguments for Svr4_Profil
3727 const char* apzSvr4_ProfilPatch[] = { "sed",
3728 "-e", "s/profil(unsigned short \\*, unsigned int, unsigned int, unsigned int)/profil(unsigned short *, size_t, int, unsigned)/",
3731 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3733 * Description of Systypes fix
3735 #define SYSTYPES_FIXIDX 94
3736 tSCC zSystypesName[] =
3740 * File name selection pattern
3742 tSCC zSystypesList[] =
3743 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
3745 * Machine/OS name selection pattern
3747 #define apzSystypesMachs (const char**)NULL
3750 * content selection pattern - do fix if pattern found
3752 tSCC zSystypesSelect0[] =
3753 "typedef[ \t]+[a-z_][ \ta-z_]*[ \t](size|ptrdiff|wchar)_t";
3755 #define SYSTYPES_TEST_CT 1
3756 tTestDesc aSystypesTests[] = {
3757 { TT_EGREP, zSystypesSelect0, (regex_t*)NULL }, };
3760 * Fix Command Arguments for Systypes
3762 const char* apzSystypesPatch[] = { "sed",
3763 "-e", "/^[ \t]*\\*[ \t]*typedef unsigned int size_t;/N",
3764 "-e", "s/^\\([ \t]*\\*[ \t]*typedef unsigned int size_t;\\n[ \t]*\\*\\/\\)/\\1\\\n\
3765 #ifndef __SIZE_TYPE__\\\n\
3766 #define __SIZE_TYPE__ long unsigned int\\\n\
3768 typedef __SIZE_TYPE__ size_t;\\\n\
3770 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/i\\\n\
3771 #ifndef __SIZE_TYPE__\\\n\
3772 #define __SIZE_TYPE__ long unsigned int\\\n\
3774 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/typedef __SIZE_TYPE__ size_t/",
3775 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/i\\\n\
3776 #ifndef __PTRDIFF_TYPE__\\\n\
3777 #define __PTRDIFF_TYPE__ long int\\\n\
3779 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/typedef __PTRDIFF_TYPE__ ptrdiff_t/",
3780 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/i\\\n\
3781 #ifndef __WCHAR_TYPE__\\\n\
3782 #define __WCHAR_TYPE__ int\\\n\
3784 #ifndef __cplusplus\n",
3785 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/a\\\n\
3787 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/typedef __WCHAR_TYPE__ wchar_t/",
3790 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3792 * Description of Systypes_Stdlib_Size_T fix
3794 #define SYSTYPES_STDLIB_SIZE_T_FIXIDX 95
3795 tSCC zSystypes_Stdlib_Size_TName[] =
3796 "systypes_stdlib_size_t";
3799 * File name selection pattern
3801 tSCC zSystypes_Stdlib_Size_TList[] =
3802 "|sys/types.h|stdlib.h|";
3804 * Machine/OS name selection pattern
3806 #define apzSystypes_Stdlib_Size_TMachs (const char**)NULL
3809 * content selection pattern - do fix if pattern found
3811 tSCC zSystypes_Stdlib_Size_TSelect0[] =
3812 "typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t";
3815 * content bypass pattern - skip fix if pattern found
3817 tSCC zSystypes_Stdlib_Size_TBypass0[] =
3818 "_(GCC|BSD)_SIZE_T";
3820 #define SYSTYPES_STDLIB_SIZE_T_TEST_CT 2
3821 tTestDesc aSystypes_Stdlib_Size_TTests[] = {
3822 { TT_NEGREP, zSystypes_Stdlib_Size_TBypass0, (regex_t*)NULL },
3823 { TT_EGREP, zSystypes_Stdlib_Size_TSelect0, (regex_t*)NULL }, };
3826 * Fix Command Arguments for Systypes_Stdlib_Size_T
3828 const char* apzSystypes_Stdlib_Size_TPatch[] = { "sed",
3829 "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/i\\\n\
3830 #ifndef _GCC_SIZE_T\\\n\
3831 #define _GCC_SIZE_T\n",
3832 "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/a\\\n\
3836 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3838 * Description of Sysv68_String fix
3840 #define SYSV68_STRING_FIXIDX 96
3841 tSCC zSysv68_StringName[] =
3845 * File name selection pattern
3847 tSCC zSysv68_StringList[] =
3850 * Machine/OS name selection pattern
3852 #define apzSysv68_StringMachs (const char**)NULL
3853 #define SYSV68_STRING_TEST_CT 0
3854 #define aSysv68_StringTests (tTestDesc*)NULL
3857 * Fix Command Arguments for Sysv68_String
3859 const char* apzSysv68_StringPatch[] = { "sed",
3860 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
3861 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
3862 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
3863 "-e", "/^extern char$/N",
3864 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
3865 "-e", "/^\tstrncmp(),$/N",
3866 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
3867 extern unsigned int\\\n\
3869 "-e", "/^extern int$/N",
3870 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
3873 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3875 * Description of Sysz_Stdlib_For_Sun fix
3877 #define SYSZ_STDLIB_FOR_SUN_FIXIDX 97
3878 tSCC zSysz_Stdlib_For_SunName[] =
3879 "sysz_stdlib_for_sun";
3882 * File name selection pattern
3884 tSCC zSysz_Stdlib_For_SunList[] =
3887 * Machine/OS name selection pattern
3889 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
3890 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 0
3891 #define aSysz_Stdlib_For_SunTests (tTestDesc*)NULL
3894 * Fix Command Arguments for Sysz_Stdlib_For_Sun
3896 const char* apzSysz_Stdlib_For_SunPatch[] = { "sed",
3897 "-e", "s/int\tabort/void\tabort/g",
3898 "-e", "s/int\tfree/void\tfree/g",
3899 "-e", "s/char[ \t]*\\*[ \t]*calloc/void \\*\tcalloc/g",
3900 "-e", "s/char[ \t]*\\*[ \t]*malloc/void \\*\tmalloc/g",
3901 "-e", "s/char[ \t]*\\*[ \t]*realloc/void \\*\trealloc/g",
3902 "-e", "s/char[ \t]*\\*[ \t]*bsearch/void \\*\tbsearch/g",
3903 "-e", "s/int[ \t][ \t]*exit/void\texit/g",
3906 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3908 * Description of Sysz_Stdtypes_For_Sun fix
3910 #define SYSZ_STDTYPES_FOR_SUN_FIXIDX 98
3911 tSCC zSysz_Stdtypes_For_SunName[] =
3912 "sysz_stdtypes_for_sun";
3915 * File name selection pattern
3917 tSCC zSysz_Stdtypes_For_SunList[] =
3920 * Machine/OS name selection pattern
3922 #define apzSysz_Stdtypes_For_SunMachs (const char**)NULL
3923 #define SYSZ_STDTYPES_FOR_SUN_TEST_CT 0
3924 #define aSysz_Stdtypes_For_SunTests (tTestDesc*)NULL
3927 * Fix Command Arguments for Sysz_Stdtypes_For_Sun
3929 const char* apzSysz_Stdtypes_For_SunPatch[] = { "sed",
3930 "-e", "/[\t ]size_t.*;/i\\\n\
3931 #ifndef _GCC_SIZE_T\\\n\
3932 #define _GCC_SIZE_T\n",
3933 "-e", "/[\t ]size_t.*;/a\\\n\
3935 "-e", "/[\t ]ptrdiff_t.*;/i\\\n\
3936 #ifndef _GCC_PTRDIFF_T\\\n\
3937 #define _GCC_PTRDIFF_T\n",
3938 "-e", "/[\t ]ptrdiff_t.*;/a\\\n\
3940 "-e", "/[\t ]wchar_t.*;/i\\\n\
3941 #ifndef _GCC_WCHAR_T\\\n\
3942 #define _GCC_WCHAR_T\n",
3943 "-e", "/[\t ]wchar_t.*;/a\\\n\
3947 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3949 * Description of Tinfo_Cplusplus fix
3951 #define TINFO_CPLUSPLUS_FIXIDX 99
3952 tSCC zTinfo_CplusplusName[] =
3956 * File name selection pattern
3958 tSCC zTinfo_CplusplusList[] =
3961 * Machine/OS name selection pattern
3963 #define apzTinfo_CplusplusMachs (const char**)NULL
3966 * content selection pattern - do fix if pattern found
3968 tSCC zTinfo_CplusplusSelect0[] =
3971 #define TINFO_CPLUSPLUS_TEST_CT 1
3972 tTestDesc aTinfo_CplusplusTests[] = {
3973 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
3976 * Fix Command Arguments for Tinfo_Cplusplus
3978 const char* apzTinfo_CplusplusPatch[] = { "sed",
3979 "-e", "s/[ \t]_cplusplus/ __cplusplus/",
3982 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3984 * Description of Ultrix_Fix_Fixproto fix
3986 #define ULTRIX_FIX_FIXPROTO_FIXIDX 100
3987 tSCC zUltrix_Fix_FixprotoName[] =
3988 "ultrix_fix_fixproto";
3991 * File name selection pattern
3993 tSCC zUltrix_Fix_FixprotoList[] =
3996 * Machine/OS name selection pattern
3998 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4001 * content selection pattern - do fix if pattern found
4003 tSCC zUltrix_Fix_FixprotoSelect0[] =
4006 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4007 tTestDesc aUltrix_Fix_FixprotoTests[] = {
4008 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4011 * Fix Command Arguments for Ultrix_Fix_Fixproto
4013 const char* apzUltrix_Fix_FixprotoPatch[] = { "sed",
4014 "-e", "/^[ \t]*extern[ \t]*int[ \t]*uname();$/i\\\n\
4018 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4020 * Description of Ultrix_Atof_Param fix
4022 #define ULTRIX_ATOF_PARAM_FIXIDX 101
4023 tSCC zUltrix_Atof_ParamName[] =
4024 "ultrix_atof_param";
4027 * File name selection pattern
4029 tSCC zUltrix_Atof_ParamList[] =
4032 * Machine/OS name selection pattern
4034 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4037 * content selection pattern - do fix if pattern found
4039 tSCC zUltrix_Atof_ParamSelect0[] =
4040 "atof\\([ \t]*char";
4042 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4043 tTestDesc aUltrix_Atof_ParamTests[] = {
4044 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4047 * Fix Command Arguments for Ultrix_Atof_Param
4049 const char* apzUltrix_Atof_ParamPatch[] = { "sed",
4050 "-e", "s@atof(\\([ \t]*char[ \t]*\\*[^)]*\\))@atof(const \\1)@",
4053 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4055 * Description of Ultrix_Const fix
4057 #define ULTRIX_CONST_FIXIDX 102
4058 tSCC zUltrix_ConstName[] =
4062 * File name selection pattern
4064 tSCC zUltrix_ConstList[] =
4067 * Machine/OS name selection pattern
4069 #define apzUltrix_ConstMachs (const char**)NULL
4070 #define ULTRIX_CONST_TEST_CT 0
4071 #define aUltrix_ConstTests (tTestDesc*)NULL
4074 * Fix Command Arguments for Ultrix_Const
4076 const char* apzUltrix_ConstPatch[] = { "sed",
4077 "-e", "s@perror( char \\*__s );@perror( const char *__s );@",
4078 "-e", "s@fputs( char \\*__s,@fputs( const char *__s,@",
4079 "-e", "s@fopen( char \\*__filename, char \\*__type );@fopen( const char *__filename, const char *__type );@",
4080 "-e", "s@fwrite( void \\*__ptr,@fwrite( const void *__ptr,@",
4081 "-e", "s@fscanf( FILE \\*__stream, char \\*__format,@fscanf( FILE *__stream, const char *__format,@",
4082 "-e", "s@scanf( char \\*__format,@scanf( const char *__format,@",
4083 "-e", "s@sscanf( char \\*__s, char \\*__format,@sscanf( const char *__s, const char *__format,@",
4084 "-e", "s@popen(char \\*, char \\*);@popen(const char *, const char *);@",
4085 "-e", "s@tempnam(char\\*,char\\*);@tempnam(const char*,const char*);@",
4088 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4090 * Description of Ultrix_Ifdef fix
4092 #define ULTRIX_IFDEF_FIXIDX 103
4093 tSCC zUltrix_IfdefName[] =
4097 * File name selection pattern
4099 tSCC zUltrix_IfdefList[] =
4102 * Machine/OS name selection pattern
4104 #define apzUltrix_IfdefMachs (const char**)NULL
4107 * content selection pattern - do fix if pattern found
4109 tSCC zUltrix_IfdefSelect0[] =
4110 "#ifdef KERNEL[ \t]*[^ \t]";
4112 #define ULTRIX_IFDEF_TEST_CT 1
4113 tTestDesc aUltrix_IfdefTests[] = {
4114 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4117 * Fix Command Arguments for Ultrix_Ifdef
4119 const char* apzUltrix_IfdefPatch[] = { "sed",
4120 "-e", "s/#ifdef KERNEL/#if defined(KERNEL)/",
4123 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4125 * Description of Ultrix_Nested_Cmnt fix
4127 #define ULTRIX_NESTED_CMNT_FIXIDX 104
4128 tSCC zUltrix_Nested_CmntName[] =
4129 "ultrix_nested_cmnt";
4132 * File name selection pattern
4134 tSCC zUltrix_Nested_CmntList[] =
4137 * Machine/OS name selection pattern
4139 #define apzUltrix_Nested_CmntMachs (const char**)NULL
4140 #define ULTRIX_NESTED_CMNT_TEST_CT 0
4141 #define aUltrix_Nested_CmntTests (tTestDesc*)NULL
4144 * Fix Command Arguments for Ultrix_Nested_Cmnt
4146 const char* apzUltrix_Nested_CmntPatch[] = { "sed",
4147 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
4150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4152 * Description of Ultrix_Static fix
4154 #define ULTRIX_STATIC_FIXIDX 105
4155 tSCC zUltrix_StaticName[] =
4159 * File name selection pattern
4161 tSCC zUltrix_StaticList[] =
4164 * Machine/OS name selection pattern
4166 #define apzUltrix_StaticMachs (const char**)NULL
4169 * content selection pattern - do fix if pattern found
4171 tSCC zUltrix_StaticSelect0[] =
4172 "#include \"r[34]_cpu";
4174 #define ULTRIX_STATIC_TEST_CT 1
4175 tTestDesc aUltrix_StaticTests[] = {
4176 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
4179 * Fix Command Arguments for Ultrix_Static
4181 const char* apzUltrix_StaticPatch[] = { "sed",
4182 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
4183 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
4184 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
4187 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4189 * Description of Undefine_Null fix
4191 #define UNDEFINE_NULL_FIXIDX 106
4192 tSCC zUndefine_NullName[] =
4196 * File name selection pattern
4198 #define zUndefine_NullList (char*)NULL
4200 * Machine/OS name selection pattern
4202 #define apzUndefine_NullMachs (const char**)NULL
4205 * content selection pattern - do fix if pattern found
4207 tSCC zUndefine_NullSelect0[] =
4208 "^#[ \t]*define[ \t]*[ \t]NULL[ \t\r]";
4211 * content bypass pattern - skip fix if pattern found
4213 tSCC zUndefine_NullBypass0[] =
4214 "#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t\r])";
4216 #define UNDEFINE_NULL_TEST_CT 2
4217 tTestDesc aUndefine_NullTests[] = {
4218 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
4219 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
4222 * Fix Command Arguments for Undefine_Null
4224 const char* apzUndefine_NullPatch[] = { "sed",
4225 "-e", "/^#[ \t]*define[ \t][ \t]*NULL[ \t\r]/i\\\n\
4229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4231 * Description of Unixware7_Byteorder_Fix fix
4233 #define UNIXWARE7_BYTEORDER_FIX_FIXIDX 107
4234 tSCC zUnixware7_Byteorder_FixName[] =
4235 "unixware7_byteorder_fix";
4238 * File name selection pattern
4240 tSCC zUnixware7_Byteorder_FixList[] =
4243 * Machine/OS name selection pattern
4245 tSCC* apzUnixware7_Byteorder_FixMachs[] = {
4247 "i[34567]86-*-sysv5*",
4248 "i[34567]86-*-udk*",
4249 "i[34567]86-*-solaris2.[0-4]",
4250 "powerpcle-*-solaris2.[0-4]",
4251 "sparc-*-solaris2.[0-4]",
4252 (const char*)NULL };
4255 * content selection pattern - do fix if pattern found
4257 tSCC zUnixware7_Byteorder_FixSelect0[] =
4260 #define UNIXWARE7_BYTEORDER_FIX_TEST_CT 1
4261 tTestDesc aUnixware7_Byteorder_FixTests[] = {
4262 { TT_EGREP, zUnixware7_Byteorder_FixSelect0, (regex_t*)NULL }, };
4265 * Fix Command Arguments for Unixware7_Byteorder_Fix
4267 const char* apzUnixware7_Byteorder_FixPatch[] = { "sed",
4268 "-e", "/^extern.*htons.*(in_port_t)/d",
4269 "-e", "/^extern.*ntohs.*(in_port_t)/d",
4272 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4274 * Description of Va_I960_Macro fix
4276 #define VA_I960_MACRO_FIXIDX 108
4277 tSCC zVa_I960_MacroName[] =
4281 * File name selection pattern
4283 tSCC zVa_I960_MacroList[] =
4284 "|arch/i960/archI960.h|";
4286 * Machine/OS name selection pattern
4288 #define apzVa_I960_MacroMachs (const char**)NULL
4291 * content selection pattern - do fix if pattern found
4293 tSCC zVa_I960_MacroSelect0[] =
4294 "__(vsiz|vali|vpad|alignof__)";
4296 #define VA_I960_MACRO_TEST_CT 1
4297 tTestDesc aVa_I960_MacroTests[] = {
4298 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
4301 * Fix Command Arguments for Va_I960_Macro
4303 const char* apzVa_I960_MacroPatch[] = { "sed",
4304 "-e", "s/__vsiz/__vxvsiz/",
4305 "-e", "s/__vali/__vxvali/",
4306 "-e", "s/__vpad/__vxvpad/",
4307 "-e", "s/__alignof__/__vxalignof__/",
4310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4312 * Description of Void_Null fix
4314 #define VOID_NULL_FIXIDX 109
4315 tSCC zVoid_NullName[] =
4319 * File name selection pattern
4321 tSCC zVoid_NullList[] =
4322 "|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|";
4324 * Machine/OS name selection pattern
4326 #define apzVoid_NullMachs (const char**)NULL
4329 * content selection pattern - do fix if pattern found
4331 tSCC zVoid_NullSelect0[] =
4332 "#[ \t]*define[ \t][ \t]*NULL[ \t].*void";
4334 #define VOID_NULL_TEST_CT 1
4335 tTestDesc aVoid_NullTests[] = {
4336 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
4339 * Fix Command Arguments for Void_Null
4341 const char* apzVoid_NullPatch[] = { "sed",
4342 "-e", "s/^#[ \t]*define[ \t]*NULL[ \t]*((void[ \t]*\\*)0)/#define NULL 0/",
4345 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4347 * Description of Vxworks_Gcc_Problem fix
4349 #define VXWORKS_GCC_PROBLEM_FIXIDX 110
4350 tSCC zVxworks_Gcc_ProblemName[] =
4351 "vxworks_gcc_problem";
4354 * File name selection pattern
4356 tSCC zVxworks_Gcc_ProblemList[] =
4357 "|types/vxTypesBase.h|";
4359 * Machine/OS name selection pattern
4361 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
4364 * content selection pattern - do fix if pattern found
4366 tSCC zVxworks_Gcc_ProblemSelect0[] =
4367 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
4369 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
4370 tTestDesc aVxworks_Gcc_ProblemTests[] = {
4371 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
4374 * Fix Command Arguments for Vxworks_Gcc_Problem
4376 const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
4377 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
4378 "-e", "/[ \t]size_t/i\\\n\
4379 #ifndef _GCC_SIZE_T\\\n\
4380 #define _GCC_SIZE_T\n",
4381 "-e", "/[ \t]size_t/a\\\n\
4383 "-e", "/[ \t]ptrdiff_t/i\\\n\
4384 #ifndef _GCC_PTRDIFF_T\\\n\
4385 #define _GCC_PTRDIFF_T\n",
4386 "-e", "/[ \t]ptrdiff_t/a\\\n\
4388 "-e", "/[ \t]wchar_t/i\\\n\
4389 #ifndef _GCC_WCHAR_T\\\n\
4390 #define _GCC_WCHAR_T\n",
4391 "-e", "/[ \t]wchar_t/a\\\n\
4395 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4397 * Description of Vxworks_Needs_Vxtypes fix
4399 #define VXWORKS_NEEDS_VXTYPES_FIXIDX 111
4400 tSCC zVxworks_Needs_VxtypesName[] =
4401 "vxworks_needs_vxtypes";
4404 * File name selection pattern
4406 tSCC zVxworks_Needs_VxtypesList[] =
4409 * Machine/OS name selection pattern
4411 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
4414 * content selection pattern - do fix if pattern found
4416 tSCC zVxworks_Needs_VxtypesSelect0[] =
4417 "uint_t[ \t][ \t]*_clocks_per_sec";
4419 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
4420 tTestDesc aVxworks_Needs_VxtypesTests[] = {
4421 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
4424 * Fix Command Arguments for Vxworks_Needs_Vxtypes
4426 const char* apzVxworks_Needs_VxtypesPatch[] = { "sed",
4427 "-e", "s/uint_t/unsigned int/",
4430 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4432 * Description of Vxworks_Needs_Vxworks fix
4434 #define VXWORKS_NEEDS_VXWORKS_FIXIDX 112
4435 tSCC zVxworks_Needs_VxworksName[] =
4436 "vxworks_needs_vxworks";
4439 * File name selection pattern
4441 tSCC zVxworks_Needs_VxworksList[] =
4444 * Machine/OS name selection pattern
4446 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
4449 * content selection pattern - do fix if pattern found
4451 tSCC zVxworks_Needs_VxworksSelect0[] =
4452 "#[ \t]define[ \t][ \t]*__INCstath";
4455 * perform the 'test' shell command - do fix on success
4457 tSCC zVxworks_Needs_VxworksTest0[] =
4458 " -r types/vxTypesOld.h";
4459 tSCC zVxworks_Needs_VxworksTest1[] =
4460 " -n \"`egrep '#include' $file`\"";
4461 tSCC zVxworks_Needs_VxworksTest2[] =
4462 " -n \"`egrep ULONG $file`\"";
4464 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
4465 tTestDesc aVxworks_Needs_VxworksTests[] = {
4466 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
4467 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
4468 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
4469 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
4472 * Fix Command Arguments for Vxworks_Needs_Vxworks
4474 const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
4475 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
4476 #include <types/vxTypesOld.h>\n",
4479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4481 * Description of Vxworks_Time fix
4483 #define VXWORKS_TIME_FIXIDX 113
4484 tSCC zVxworks_TimeName[] =
4488 * File name selection pattern
4490 tSCC zVxworks_TimeList[] =
4493 * Machine/OS name selection pattern
4495 #define apzVxworks_TimeMachs (const char**)NULL
4498 * content selection pattern - do fix if pattern found
4500 tSCC zVxworks_TimeSelect0[] =
4504 * perform the 'test' shell command - do fix on success
4506 tSCC zVxworks_TimeTest0[] =
4509 #define VXWORKS_TIME_TEST_CT 2
4510 tTestDesc aVxworks_TimeTests[] = {
4511 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
4512 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
4515 * Fix Command Arguments for Vxworks_Time
4517 const char* apzVxworks_TimePatch[] = { "sed",
4518 "-e", "/VOIDFUNCPTR/i\\\n\
4519 #ifndef __gcc_VOIDFUNCPTR_defined\\\n\
4520 #ifdef __cplusplus\\\n\
4521 typedef void (*__gcc_VOIDFUNCPTR) (...);\\\n\
4523 typedef void (*__gcc_VOIDFUNCPTR) ();\\\n\
4525 #define __gcc_VOIDFUNCPTR_defined\\\n\
4527 "-e", "s/VOIDFUNCPTR/__gcc_VOIDFUNCPTR/g",
4530 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4532 * Description of X11_Class fix
4534 #define X11_CLASS_FIXIDX 114
4535 tSCC zX11_ClassName[] =
4539 * File name selection pattern
4541 tSCC zX11_ClassList[] =
4544 * Machine/OS name selection pattern
4546 #define apzX11_ClassMachs (const char**)NULL
4549 * content bypass pattern - skip fix if pattern found
4551 tSCC zX11_ClassBypass0[] =
4554 #define X11_CLASS_TEST_CT 1
4555 tTestDesc aX11_ClassTests[] = {
4556 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, };
4559 * Fix Command Arguments for X11_Class
4561 const char* apzX11_ClassPatch[] = { "sed",
4562 "-e", "/char \\*class;/i\\\n\
4563 #ifdef __cplusplus\\\n\
4564 \tchar *c_class;\\\n\
4566 "-e", "/char \\*class;/a\\\n\
4570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4572 * Description of X11_Class_Usage fix
4574 #define X11_CLASS_USAGE_FIXIDX 115
4575 tSCC zX11_Class_UsageName[] =
4579 * File name selection pattern
4581 tSCC zX11_Class_UsageList[] =
4582 "|Xm/BaseClassI.h|";
4584 * Machine/OS name selection pattern
4586 #define apzX11_Class_UsageMachs (const char**)NULL
4589 * content bypass pattern - skip fix if pattern found
4591 tSCC zX11_Class_UsageBypass0[] =
4594 #define X11_CLASS_USAGE_TEST_CT 1
4595 tTestDesc aX11_Class_UsageTests[] = {
4596 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, };
4599 * Fix Command Arguments for X11_Class_Usage
4601 const char* apzX11_Class_UsagePatch[] = { "sed",
4602 "-e", "s/ class[)]/ c_class)/g",
4605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4607 * Description of X11_New fix
4609 #define X11_NEW_FIXIDX 116
4610 tSCC zX11_NewName[] =
4614 * File name selection pattern
4616 tSCC zX11_NewList[] =
4619 * Machine/OS name selection pattern
4621 #define apzX11_NewMachs (const char**)NULL
4624 * content bypass pattern - skip fix if pattern found
4626 tSCC zX11_NewBypass0[] =
4629 #define X11_NEW_TEST_CT 1
4630 tTestDesc aX11_NewTests[] = {
4631 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
4634 * Fix Command Arguments for X11_New
4636 const char* apzX11_NewPatch[] = { "sed",
4637 "-e", "/Widget\told, new;/i\\\n\
4638 #ifdef __cplusplus\\\n\
4639 \tWidget\told, c_new;\\\n\
4641 "-e", "/Widget\told, new;/a\\\n\
4643 "-e", "s/Widget new,/Widget c_new,/g",
4646 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4648 * Description of X11_Sprintf fix
4650 #define X11_SPRINTF_FIXIDX 117
4651 tSCC zX11_SprintfName[] =
4655 * File name selection pattern
4657 tSCC zX11_SprintfList[] =
4658 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
4660 * Machine/OS name selection pattern
4662 #define apzX11_SprintfMachs (const char**)NULL
4665 * content selection pattern - do fix if pattern found
4667 tSCC zX11_SprintfSelect0[] =
4670 #define X11_SPRINTF_TEST_CT 1
4671 tTestDesc aX11_SprintfTests[] = {
4672 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
4675 * Fix Command Arguments for X11_Sprintf
4677 const char* apzX11_SprintfPatch[] = { "sed",
4678 "-e", "s,^extern char \\*\tsprintf();$,#ifndef __STDC__\\\n\
4679 extern char *\tsprintf();\\\n\
4680 #endif /* !defined __STDC__ */,",
4684 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4688 #define REGEX_COUNT 104
4689 #define MACH_LIST_SIZE_LIMIT 279
4690 #define FIX_COUNT 118
4692 tFixDesc fixDescList[ FIX_COUNT ] = {
4693 { zAaa_Ki_IfaceName, zAaa_Ki_IfaceList,
4694 apzAaa_Ki_IfaceMachs,
4695 AAA_KI_IFACE_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4696 aAaa_Ki_IfaceTests, apzAaa_Ki_IfacePatch },
4698 { zAaa_KiName, zAaa_KiList,
4700 AAA_KI_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4701 aAaa_KiTests, apzAaa_KiPatch },
4703 { zAaa_Ki_CallsName, zAaa_Ki_CallsList,
4704 apzAaa_Ki_CallsMachs,
4705 AAA_KI_CALLS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4706 aAaa_Ki_CallsTests, apzAaa_Ki_CallsPatch },
4708 { zAaa_Ki_DefsName, zAaa_Ki_DefsList,
4709 apzAaa_Ki_DefsMachs,
4710 AAA_KI_DEFS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4711 aAaa_Ki_DefsTests, apzAaa_Ki_DefsPatch },
4713 { zAaa_Bad_FixesName, zAaa_Bad_FixesList,
4714 apzAaa_Bad_FixesMachs,
4715 AAA_BAD_FIXES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4716 aAaa_Bad_FixesTests, apzAaa_Bad_FixesPatch },
4718 { zAaa_TimeName, zAaa_TimeList,
4720 AAA_TIME_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4721 aAaa_TimeTests, apzAaa_TimePatch },
4723 { zAab_Dgux_Int_VarargsName, zAab_Dgux_Int_VarargsList,
4724 apzAab_Dgux_Int_VarargsMachs,
4725 AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4726 aAab_Dgux_Int_VarargsTests, apzAab_Dgux_Int_VarargsPatch },
4728 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
4729 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
4730 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4731 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch },
4733 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
4734 apzAab_Fd_Zero_Gnu_Types_HMachs,
4735 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4736 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch },
4738 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
4739 apzAab_Fd_Zero_Selectbits_HMachs,
4740 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4741 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch },
4743 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
4744 apzAab_Sun_MemcpyMachs,
4745 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4746 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch },
4748 { zAab_Svr4_Replace_ByteorderName, zAab_Svr4_Replace_ByteorderList,
4749 apzAab_Svr4_Replace_ByteorderMachs,
4750 AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4751 aAab_Svr4_Replace_ByteorderTests, apzAab_Svr4_Replace_ByteorderPatch },
4753 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
4754 apzAab_Ultrix_Ansi_CompatMachs,
4755 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4756 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch },
4758 { zAix_SyswaitName, zAix_SyswaitList,
4759 apzAix_SyswaitMachs,
4760 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY,
4761 aAix_SyswaitTests, apzAix_SyswaitPatch },
4763 { zAix_VolatileName, zAix_VolatileList,
4764 apzAix_VolatileMachs,
4765 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY,
4766 aAix_VolatileTests, apzAix_VolatilePatch },
4768 { zAlpha_GetoptName, zAlpha_GetoptList,
4769 apzAlpha_GetoptMachs,
4770 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY,
4771 aAlpha_GetoptTests, apzAlpha_GetoptPatch },
4773 { zAlpha_ParensName, zAlpha_ParensList,
4774 apzAlpha_ParensMachs,
4775 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY,
4776 aAlpha_ParensTests, apzAlpha_ParensPatch },
4778 { zAlpha_SbrkName, zAlpha_SbrkList,
4780 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY,
4781 aAlpha_SbrkTests, apzAlpha_SbrkPatch },
4783 { zArm_Norcroft_HintName, zArm_Norcroft_HintList,
4784 apzArm_Norcroft_HintMachs,
4785 ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY,
4786 aArm_Norcroft_HintTests, apzArm_Norcroft_HintPatch },
4788 { zArm_WcharName, zArm_WcharList,
4790 ARM_WCHAR_TEST_CT, FD_MACH_ONLY,
4791 aArm_WcharTests, apzArm_WcharPatch },
4793 { zAux_AsmName, zAux_AsmList,
4795 AUX_ASM_TEST_CT, FD_MACH_ONLY,
4796 aAux_AsmTests, apzAux_AsmPatch },
4798 { zAvoid_BoolName, zAvoid_BoolList,
4800 AVOID_BOOL_TEST_CT, FD_MACH_ONLY,
4801 aAvoid_BoolTests, apzAvoid_BoolPatch },
4803 { zBad_Struct_TermName, zBad_Struct_TermList,
4804 apzBad_Struct_TermMachs,
4805 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY,
4806 aBad_Struct_TermTests, apzBad_Struct_TermPatch },
4808 { zBadquoteName, zBadquoteList,
4810 BADQUOTE_TEST_CT, FD_MACH_ONLY,
4811 aBadquoteTests, apzBadquotePatch },
4813 { zBad_LvalName, zBad_LvalList,
4815 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
4816 aBad_LvalTests, apzBad_LvalPatch },
4818 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
4819 apzBroken_Assert_StdioMachs,
4820 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY,
4821 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch },
4823 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
4824 apzBroken_Assert_StdlibMachs,
4825 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY,
4826 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch },
4828 { zBroken_CabsName, zBroken_CabsList,
4829 apzBroken_CabsMachs,
4830 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
4831 aBroken_CabsTests, apzBroken_CabsPatch },
4833 { zDec_Intern_AsmName, zDec_Intern_AsmList,
4834 apzDec_Intern_AsmMachs,
4835 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
4836 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch },
4838 { zEcd_CursorName, zEcd_CursorList,
4840 ECD_CURSOR_TEST_CT, FD_MACH_ONLY,
4841 aEcd_CursorTests, apzEcd_CursorPatch },
4843 { zHp_InlineName, zHp_InlineList,
4845 HP_INLINE_TEST_CT, FD_MACH_ONLY,
4846 aHp_InlineTests, apzHp_InlinePatch },
4848 { zHp_SysfileName, zHp_SysfileList,
4850 HP_SYSFILE_TEST_CT, FD_MACH_ONLY,
4851 aHp_SysfileTests, apzHp_SysfilePatch },
4853 { zCxx_UnreadyName, zCxx_UnreadyList,
4854 apzCxx_UnreadyMachs,
4855 CXX_UNREADY_TEST_CT, FD_MACH_ONLY,
4856 aCxx_UnreadyTests, apzCxx_UnreadyPatch },
4858 { zHpux_MaxintName, zHpux_MaxintList,
4859 apzHpux_MaxintMachs,
4860 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY,
4861 aHpux_MaxintTests, apzHpux_MaxintPatch },
4863 { zHpux_SystimeName, zHpux_SystimeList,
4864 apzHpux_SystimeMachs,
4865 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY,
4866 aHpux_SystimeTests, apzHpux_SystimePatch },
4868 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
4869 apzHpux8_Bogus_InlinesMachs,
4870 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
4871 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch },
4873 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
4874 apzHpux11_Uint32_CMachs,
4875 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY,
4876 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch },
4878 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
4879 apzIsc_Omits_With_StdcMachs,
4880 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY,
4881 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch },
4883 { zIo_Use_QuotesName, zIo_Use_QuotesList,
4884 apzIo_Use_QuotesMachs,
4885 IO_USE_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4886 aIo_Use_QuotesTests, apzIo_Use_QuotesPatch },
4888 { zIo_Def_QuotesName, zIo_Def_QuotesList,
4889 apzIo_Def_QuotesMachs,
4890 IO_DEF_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4891 aIo_Def_QuotesTests, apzIo_Def_QuotesPatch },
4893 { zCtrl_Use_QuotesName, zCtrl_Use_QuotesList,
4894 apzCtrl_Use_QuotesMachs,
4895 CTRL_USE_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4896 aCtrl_Use_QuotesTests, apzCtrl_Use_QuotesPatch },
4898 { zCtrl_Def_QuotesName, zCtrl_Def_QuotesList,
4899 apzCtrl_Def_QuotesMachs,
4900 CTRL_DEF_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4901 aCtrl_Def_QuotesTests, apzCtrl_Def_QuotesPatch },
4903 { zIp_Missing_SemiName, zIp_Missing_SemiList,
4904 apzIp_Missing_SemiMachs,
4905 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
4906 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch },
4908 { zIrix_Multiline_CmntName, zIrix_Multiline_CmntList,
4909 apzIrix_Multiline_CmntMachs,
4910 IRIX_MULTILINE_CMNT_TEST_CT, FD_MACH_ONLY,
4911 aIrix_Multiline_CmntTests, apzIrix_Multiline_CmntPatch },
4913 { zIrix_SockaddrName, zIrix_SockaddrList,
4914 apzIrix_SockaddrMachs,
4915 IRIX_SOCKADDR_TEST_CT, FD_MACH_ONLY,
4916 aIrix_SockaddrTests, apzIrix_SockaddrPatch },
4918 { zIrix_Struct__FileName, zIrix_Struct__FileList,
4919 apzIrix_Struct__FileMachs,
4920 IRIX_STRUCT__FILE_TEST_CT, FD_MACH_ONLY,
4921 aIrix_Struct__FileTests, apzIrix_Struct__FilePatch },
4923 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
4924 apzIrix_Asm_ApostropheMachs,
4925 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY,
4926 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch },
4928 { zIsc_FmodName, zIsc_FmodList,
4930 ISC_FMOD_TEST_CT, FD_MACH_ONLY,
4931 aIsc_FmodTests, apzIsc_FmodPatch },
4933 { zMotorola_NestedName, zMotorola_NestedList,
4934 apzMotorola_NestedMachs,
4935 MOTOROLA_NESTED_TEST_CT, FD_MACH_ONLY,
4936 aMotorola_NestedTests, apzMotorola_NestedPatch },
4938 { zIsc_Sys_LimitsName, zIsc_Sys_LimitsList,
4939 apzIsc_Sys_LimitsMachs,
4940 ISC_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
4941 aIsc_Sys_LimitsTests, apzIsc_Sys_LimitsPatch },
4943 { zKandr_ConcatName, zKandr_ConcatList,
4944 apzKandr_ConcatMachs,
4945 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY,
4946 aKandr_ConcatTests, apzKandr_ConcatPatch },
4948 { zLimits_IfndefsName, zLimits_IfndefsList,
4949 apzLimits_IfndefsMachs,
4950 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY,
4951 aLimits_IfndefsTests, apzLimits_IfndefsPatch },
4953 { zLynx_Void_IntName, zLynx_Void_IntList,
4954 apzLynx_Void_IntMachs,
4955 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY,
4956 aLynx_Void_IntTests, apzLynx_Void_IntPatch },
4958 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
4959 apzLynxos_Fcntl_ProtoMachs,
4960 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY,
4961 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch },
4963 { zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList,
4964 apzM88k_Bad_Hypot_OptMachs,
4965 M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY,
4966 aM88k_Bad_Hypot_OptTests, apzM88k_Bad_Hypot_OptPatch },
4968 { zM88k_Bad_S_IfName, zM88k_Bad_S_IfList,
4969 apzM88k_Bad_S_IfMachs,
4970 M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY,
4971 aM88k_Bad_S_IfTests, apzM88k_Bad_S_IfPatch },
4973 { zM88k_Multi_InclName, zM88k_Multi_InclList,
4974 apzM88k_Multi_InclMachs,
4975 M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
4976 aM88k_Multi_InclTests, apzM88k_Multi_InclPatch },
4978 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
4979 apzMachine_Ansi_H_Va_ListMachs,
4980 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY,
4981 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch },
4983 { zMachine_NameName, zMachine_NameList,
4984 apzMachine_NameMachs,
4985 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4986 aMachine_NameTests, apzMachine_NamePatch },
4988 { zMath_ExceptionName, zMath_ExceptionList,
4989 apzMath_ExceptionMachs,
4990 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY,
4991 aMath_ExceptionTests, apzMath_ExceptionPatch },
4993 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
4994 apzMath_Huge_Val_From_Dbl_MaxMachs,
4995 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
4996 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch },
4998 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
4999 apzMath_Huge_Val_IfndefMachs,
5000 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY,
5001 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch },
5003 { zNested_CommentName, zNested_CommentList,
5004 apzNested_CommentMachs,
5005 NESTED_COMMENT_TEST_CT, FD_MACH_ONLY,
5006 aNested_CommentTests, apzNested_CommentPatch },
5008 { zNews_Os_RecursionName, zNews_Os_RecursionList,
5009 apzNews_Os_RecursionMachs,
5010 NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY,
5011 aNews_Os_RecursionTests, apzNews_Os_RecursionPatch },
5013 { zNext_Math_PrefixName, zNext_Math_PrefixList,
5014 apzNext_Math_PrefixMachs,
5015 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY,
5016 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch },
5018 { zNext_TemplateName, zNext_TemplateList,
5019 apzNext_TemplateMachs,
5020 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY,
5021 aNext_TemplateTests, apzNext_TemplatePatch },
5023 { zNext_VolitileName, zNext_VolitileList,
5024 apzNext_VolitileMachs,
5025 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY,
5026 aNext_VolitileTests, apzNext_VolitilePatch },
5028 { zNext_Wait_UnionName, zNext_Wait_UnionList,
5029 apzNext_Wait_UnionMachs,
5030 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY,
5031 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch },
5033 { zNodeent_SyntaxName, zNodeent_SyntaxList,
5034 apzNodeent_SyntaxMachs,
5035 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY,
5036 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch },
5038 { zOsf_Namespace_AName, zOsf_Namespace_AList,
5039 apzOsf_Namespace_AMachs,
5040 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY,
5041 aOsf_Namespace_ATests, apzOsf_Namespace_APatch },
5043 { zOsf_Namespace_BName, zOsf_Namespace_BList,
5044 apzOsf_Namespace_BMachs,
5045 OSF_NAMESPACE_B_TEST_CT, FD_MACH_ONLY,
5046 aOsf_Namespace_BTests, apzOsf_Namespace_BPatch },
5048 { zPthread_Page_SizeName, zPthread_Page_SizeList,
5049 apzPthread_Page_SizeMachs,
5050 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY,
5051 aPthread_Page_SizeTests, apzPthread_Page_SizePatch },
5053 { zRead_Ret_TypeName, zRead_Ret_TypeList,
5054 apzRead_Ret_TypeMachs,
5055 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY,
5056 aRead_Ret_TypeTests, apzRead_Ret_TypePatch },
5058 { zRs6000_DoubleName, zRs6000_DoubleList,
5059 apzRs6000_DoubleMachs,
5060 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY,
5061 aRs6000_DoubleTests, apzRs6000_DoublePatch },
5063 { zRs6000_FchmodName, zRs6000_FchmodList,
5064 apzRs6000_FchmodMachs,
5065 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY,
5066 aRs6000_FchmodTests, apzRs6000_FchmodPatch },
5068 { zRs6000_ParamName, zRs6000_ParamList,
5069 apzRs6000_ParamMachs,
5070 RS6000_PARAM_TEST_CT, FD_MACH_ONLY,
5071 aRs6000_ParamTests, apzRs6000_ParamPatch },
5073 { zSco_Strict_AnsiName, zSco_Strict_AnsiList,
5074 apzSco_Strict_AnsiMachs,
5075 SCO_STRICT_ANSI_TEST_CT, FD_MACH_ONLY,
5076 aSco_Strict_AnsiTests, apzSco_Strict_AnsiPatch },
5078 { zSco_Static_FuncName, zSco_Static_FuncList,
5079 apzSco_Static_FuncMachs,
5080 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
5081 aSco_Static_FuncTests, apzSco_Static_FuncPatch },
5083 { zSco_UtimeName, zSco_UtimeList,
5085 SCO_UTIME_TEST_CT, FD_MACH_ONLY,
5086 aSco_UtimeTests, apzSco_UtimePatch },
5088 { zSony_IncludeName, zSony_IncludeList,
5089 apzSony_IncludeMachs,
5090 SONY_INCLUDE_TEST_CT, FD_MACH_ONLY,
5091 aSony_IncludeTests, apzSony_IncludePatch },
5093 { zStatsswtchName, zStatsswtchList,
5095 STATSSWTCH_TEST_CT, FD_MACH_ONLY,
5096 aStatsswtchTests, apzStatsswtchPatch },
5098 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
5099 apzStdio_Stdarg_HMachs,
5100 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY,
5101 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch },
5103 { zStdio_Va_ListName, zStdio_Va_ListList,
5104 apzStdio_Va_ListMachs,
5105 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
5106 aStdio_Va_ListTests, apzStdio_Va_ListPatch },
5108 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
5109 apzSun_Auth_ProtoMachs,
5110 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY,
5111 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch },
5113 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
5114 apzSun_Bogus_IfdefMachs,
5115 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY,
5116 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch },
5118 { zSun_Bogus_Ifdef_Sun4cName, zSun_Bogus_Ifdef_Sun4cList,
5119 apzSun_Bogus_Ifdef_Sun4cMachs,
5120 SUN_BOGUS_IFDEF_SUN4C_TEST_CT, FD_MACH_ONLY,
5121 aSun_Bogus_Ifdef_Sun4cTests, apzSun_Bogus_Ifdef_Sun4cPatch },
5123 { zSun_CatmacroName, zSun_CatmacroList,
5124 apzSun_CatmacroMachs,
5125 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY,
5126 aSun_CatmacroTests, apzSun_CatmacroPatch },
5128 { zSun_MallocName, zSun_MallocList,
5130 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
5131 aSun_MallocTests, apzSun_MallocPatch },
5133 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
5134 apzSun_Rusers_SemiMachs,
5135 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
5136 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch },
5138 { zSun_SignalName, zSun_SignalList,
5140 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY,
5141 aSun_SignalTests, apzSun_SignalPatch },
5143 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
5144 apzSunos_Matherr_DeclMachs,
5145 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY,
5146 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch },
5148 { zSunos_StrlenName, zSunos_StrlenList,
5149 apzSunos_StrlenMachs,
5150 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY,
5151 aSunos_StrlenTests, apzSunos_StrlenPatch },
5153 { zSvr4_GetcwdName, zSvr4_GetcwdList,
5154 apzSvr4_GetcwdMachs,
5155 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY,
5156 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch },
5158 { zSvr4_ProfilName, zSvr4_ProfilList,
5159 apzSvr4_ProfilMachs,
5160 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY,
5161 aSvr4_ProfilTests, apzSvr4_ProfilPatch },
5163 { zSystypesName, zSystypesList,
5165 SYSTYPES_TEST_CT, FD_MACH_ONLY,
5166 aSystypesTests, apzSystypesPatch },
5168 { zSystypes_Stdlib_Size_TName, zSystypes_Stdlib_Size_TList,
5169 apzSystypes_Stdlib_Size_TMachs,
5170 SYSTYPES_STDLIB_SIZE_T_TEST_CT, FD_MACH_ONLY,
5171 aSystypes_Stdlib_Size_TTests, apzSystypes_Stdlib_Size_TPatch },
5173 { zSysv68_StringName, zSysv68_StringList,
5174 apzSysv68_StringMachs,
5175 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
5176 aSysv68_StringTests, apzSysv68_StringPatch },
5178 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
5179 apzSysz_Stdlib_For_SunMachs,
5180 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY,
5181 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch },
5183 { zSysz_Stdtypes_For_SunName, zSysz_Stdtypes_For_SunList,
5184 apzSysz_Stdtypes_For_SunMachs,
5185 SYSZ_STDTYPES_FOR_SUN_TEST_CT, FD_MACH_ONLY,
5186 aSysz_Stdtypes_For_SunTests, apzSysz_Stdtypes_For_SunPatch },
5188 { zTinfo_CplusplusName, zTinfo_CplusplusList,
5189 apzTinfo_CplusplusMachs,
5190 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY,
5191 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch },
5193 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
5194 apzUltrix_Fix_FixprotoMachs,
5195 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY,
5196 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch },
5198 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
5199 apzUltrix_Atof_ParamMachs,
5200 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY,
5201 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch },
5203 { zUltrix_ConstName, zUltrix_ConstList,
5204 apzUltrix_ConstMachs,
5205 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY,
5206 aUltrix_ConstTests, apzUltrix_ConstPatch },
5208 { zUltrix_IfdefName, zUltrix_IfdefList,
5209 apzUltrix_IfdefMachs,
5210 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY,
5211 aUltrix_IfdefTests, apzUltrix_IfdefPatch },
5213 { zUltrix_Nested_CmntName, zUltrix_Nested_CmntList,
5214 apzUltrix_Nested_CmntMachs,
5215 ULTRIX_NESTED_CMNT_TEST_CT, FD_MACH_ONLY,
5216 aUltrix_Nested_CmntTests, apzUltrix_Nested_CmntPatch },
5218 { zUltrix_StaticName, zUltrix_StaticList,
5219 apzUltrix_StaticMachs,
5220 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
5221 aUltrix_StaticTests, apzUltrix_StaticPatch },
5223 { zUndefine_NullName, zUndefine_NullList,
5224 apzUndefine_NullMachs,
5225 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY,
5226 aUndefine_NullTests, apzUndefine_NullPatch },
5228 { zUnixware7_Byteorder_FixName, zUnixware7_Byteorder_FixList,
5229 apzUnixware7_Byteorder_FixMachs,
5230 UNIXWARE7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY,
5231 aUnixware7_Byteorder_FixTests, apzUnixware7_Byteorder_FixPatch },
5233 { zVa_I960_MacroName, zVa_I960_MacroList,
5234 apzVa_I960_MacroMachs,
5235 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY,
5236 aVa_I960_MacroTests, apzVa_I960_MacroPatch },
5238 { zVoid_NullName, zVoid_NullList,
5240 VOID_NULL_TEST_CT, FD_MACH_ONLY,
5241 aVoid_NullTests, apzVoid_NullPatch },
5243 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
5244 apzVxworks_Gcc_ProblemMachs,
5245 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
5246 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch },
5248 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
5249 apzVxworks_Needs_VxtypesMachs,
5250 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY,
5251 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch },
5253 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
5254 apzVxworks_Needs_VxworksMachs,
5255 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
5256 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch },
5258 { zVxworks_TimeName, zVxworks_TimeList,
5259 apzVxworks_TimeMachs,
5260 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY,
5261 aVxworks_TimeTests, apzVxworks_TimePatch },
5263 { zX11_ClassName, zX11_ClassList,
5265 X11_CLASS_TEST_CT, FD_MACH_ONLY,
5266 aX11_ClassTests, apzX11_ClassPatch },
5268 { zX11_Class_UsageName, zX11_Class_UsageList,
5269 apzX11_Class_UsageMachs,
5270 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY,
5271 aX11_Class_UsageTests, apzX11_Class_UsagePatch },
5273 { zX11_NewName, zX11_NewList,
5275 X11_NEW_TEST_CT, FD_MACH_ONLY,
5276 aX11_NewTests, apzX11_NewPatch },
5278 { zX11_SprintfName, zX11_SprintfList,
5279 apzX11_SprintfMachs,
5280 X11_SPRINTF_TEST_CT, FD_MACH_ONLY,
5281 aX11_SprintfTests, apzX11_SprintfPatch }