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[] =
1575 * content bypass pattern - skip fix if pattern found
1577 tSCC zHpux8_Bogus_InlinesBypass0[] =
1578 "The Santa Cruz Operation";
1580 #define HPUX8_BOGUS_INLINES_TEST_CT 2
1581 tTestDesc aHpux8_Bogus_InlinesTests[] = {
1582 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
1583 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
1586 * Fix Command Arguments for Hpux8_Bogus_Inlines
1588 const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
1589 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
1590 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
1591 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
1592 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
1595 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1597 * Description of Hpux11_Uint32_C fix
1599 #define HPUX11_UINT32_C_FIXIDX 36
1600 tSCC zHpux11_Uint32_CName[] =
1604 * File name selection pattern
1606 tSCC zHpux11_Uint32_CList[] =
1609 * Machine/OS name selection pattern
1611 #define apzHpux11_Uint32_CMachs (const char**)NULL
1614 * content selection pattern - do fix if pattern found
1616 tSCC zHpux11_Uint32_CSelect0[] =
1617 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1619 #define HPUX11_UINT32_C_TEST_CT 1
1620 tTestDesc aHpux11_Uint32_CTests[] = {
1621 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1624 * Fix Command Arguments for Hpux11_Uint32_C
1626 const char* apzHpux11_Uint32_CPatch[] = { "sed",
1627 "-e", "s/^#define UINT32_C(__c)\\([ \t]*\\)__CONCAT__(__CONCAT_U__(__c),l)/#define UINT32_C(__c)\\1__CONCAT__(__c,ul)/",
1630 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1632 * Description of Isc_Omits_With_Stdc fix
1634 #define ISC_OMITS_WITH_STDC_FIXIDX 37
1635 tSCC zIsc_Omits_With_StdcName[] =
1636 "isc_omits_with_stdc";
1639 * File name selection pattern
1641 tSCC zIsc_Omits_With_StdcList[] =
1642 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
1644 * Machine/OS name selection pattern
1646 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
1649 * content selection pattern - do fix if pattern found
1651 tSCC zIsc_Omits_With_StdcSelect0[] =
1652 "!defined(__STDC__) && !defined(_POSIX_SOURCE)";
1654 #define ISC_OMITS_WITH_STDC_TEST_CT 1
1655 tTestDesc aIsc_Omits_With_StdcTests[] = {
1656 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
1659 * Fix Command Arguments for Isc_Omits_With_Stdc
1661 const char* apzIsc_Omits_With_StdcPatch[] = { "sed",
1662 "-e", "s/!defined(__STDC__) && !defined(_POSIX_SOURCE)/!defined(_POSIX_SOURCE)/",
1665 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1667 * Description of Io_Use_Quotes fix
1669 #define IO_USE_QUOTES_FIXIDX 38
1670 tSCC zIo_Use_QuotesName[] =
1674 * File name selection pattern
1676 #define zIo_Use_QuotesList (char*)NULL
1678 * Machine/OS name selection pattern
1680 #define apzIo_Use_QuotesMachs (const char**)NULL
1683 * content selection pattern - do fix if pattern found
1685 tSCC zIo_Use_QuotesSelect0[] =
1686 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
1688 #define IO_USE_QUOTES_TEST_CT 1
1689 tTestDesc aIo_Use_QuotesTests[] = {
1690 { TT_EGREP, zIo_Use_QuotesSelect0, (regex_t*)NULL }, };
1693 * Fix Command Arguments for Io_Use_Quotes
1695 const char* apzIo_Use_QuotesPatch[] = {"IO_use",
1698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1700 * Description of Io_Def_Quotes fix
1702 #define IO_DEF_QUOTES_FIXIDX 39
1703 tSCC zIo_Def_QuotesName[] =
1707 * File name selection pattern
1709 #define zIo_Def_QuotesList (char*)NULL
1711 * Machine/OS name selection pattern
1713 #define apzIo_Def_QuotesMachs (const char**)NULL
1716 * content selection pattern - do fix if pattern found
1718 tSCC zIo_Def_QuotesSelect0[] =
1719 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\(([a-zA-Z]).*'\\1'";
1721 #define IO_DEF_QUOTES_TEST_CT 1
1722 tTestDesc aIo_Def_QuotesTests[] = {
1723 { TT_EGREP, zIo_Def_QuotesSelect0, (regex_t*)NULL }, };
1726 * Fix Command Arguments for Io_Def_Quotes
1728 const char* apzIo_Def_QuotesPatch[] = {"IO_defn",
1731 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1733 * Description of Ctrl_Use_Quotes fix
1735 #define CTRL_USE_QUOTES_FIXIDX 40
1736 tSCC zCtrl_Use_QuotesName[] =
1740 * File name selection pattern
1742 #define zCtrl_Use_QuotesList (char*)NULL
1744 * Machine/OS name selection pattern
1746 #define apzCtrl_Use_QuotesMachs (const char**)NULL
1749 * content selection pattern - do fix if pattern found
1751 tSCC zCtrl_Use_QuotesSelect0[] =
1752 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1754 #define CTRL_USE_QUOTES_TEST_CT 1
1755 tTestDesc aCtrl_Use_QuotesTests[] = {
1756 { TT_EGREP, zCtrl_Use_QuotesSelect0, (regex_t*)NULL }, };
1759 * Fix Command Arguments for Ctrl_Use_Quotes
1761 const char* apzCtrl_Use_QuotesPatch[] = {"CTRL_use",
1764 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1766 * Description of Ctrl_Def_Quotes fix
1768 #define CTRL_DEF_QUOTES_FIXIDX 41
1769 tSCC zCtrl_Def_QuotesName[] =
1773 * File name selection pattern
1775 #define zCtrl_Def_QuotesList (char*)NULL
1777 * Machine/OS name selection pattern
1779 #define apzCtrl_Def_QuotesMachs (const char**)NULL
1782 * content selection pattern - do fix if pattern found
1784 tSCC zCtrl_Def_QuotesSelect0[] =
1785 "define[ \t]+[A-Z0-9_]+CTRL\\(([a-zA-Z]).*'\\1'";
1787 #define CTRL_DEF_QUOTES_TEST_CT 1
1788 tTestDesc aCtrl_Def_QuotesTests[] = {
1789 { TT_EGREP, zCtrl_Def_QuotesSelect0, (regex_t*)NULL }, };
1792 * Fix Command Arguments for Ctrl_Def_Quotes
1794 const char* apzCtrl_Def_QuotesPatch[] = {"CTRL_defn",
1797 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1799 * Description of Ip_Missing_Semi fix
1801 #define IP_MISSING_SEMI_FIXIDX 42
1802 tSCC zIp_Missing_SemiName[] =
1806 * File name selection pattern
1808 tSCC zIp_Missing_SemiList[] =
1811 * Machine/OS name selection pattern
1813 #define apzIp_Missing_SemiMachs (const char**)NULL
1816 * content selection pattern - do fix if pattern found
1818 tSCC zIp_Missing_SemiSelect0[] =
1821 #define IP_MISSING_SEMI_TEST_CT 1
1822 tTestDesc aIp_Missing_SemiTests[] = {
1823 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
1826 * Fix Command Arguments for Ip_Missing_Semi
1828 const char* apzIp_Missing_SemiPatch[] = { "sed",
1829 "-e", "/^struct/,/^};/s/}$/};/",
1832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1834 * Description of Irix_Multiline_Cmnt fix
1836 #define IRIX_MULTILINE_CMNT_FIXIDX 43
1837 tSCC zIrix_Multiline_CmntName[] =
1838 "irix_multiline_cmnt";
1841 * File name selection pattern
1843 tSCC zIrix_Multiline_CmntList[] =
1846 * Machine/OS name selection pattern
1848 #define apzIrix_Multiline_CmntMachs (const char**)NULL
1849 #define IRIX_MULTILINE_CMNT_TEST_CT 0
1850 #define aIrix_Multiline_CmntTests (tTestDesc*)NULL
1853 * Fix Command Arguments for Irix_Multiline_Cmnt
1855 const char* apzIrix_Multiline_CmntPatch[] = { "sed",
1856 "-e", "s@type of the result@type of the result */@",
1857 "-e", "s@of the sizeof@/* of the sizeof@",
1860 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1862 * Description of Irix_Sockaddr fix
1864 #define IRIX_SOCKADDR_FIXIDX 44
1865 tSCC zIrix_SockaddrName[] =
1869 * File name selection pattern
1871 tSCC zIrix_SockaddrList[] =
1874 * Machine/OS name selection pattern
1876 #define apzIrix_SockaddrMachs (const char**)NULL
1879 * content selection pattern - do fix if pattern found
1881 tSCC zIrix_SockaddrSelect0[] =
1882 "authdes_create.*struct sockaddr";
1885 * content bypass pattern - skip fix if pattern found
1887 tSCC zIrix_SockaddrBypass0[] =
1890 #define IRIX_SOCKADDR_TEST_CT 2
1891 tTestDesc aIrix_SockaddrTests[] = {
1892 { TT_NEGREP, zIrix_SockaddrBypass0, (regex_t*)NULL },
1893 { TT_EGREP, zIrix_SockaddrSelect0, (regex_t*)NULL }, };
1896 * Fix Command Arguments for Irix_Sockaddr
1898 const char* apzIrix_SockaddrPatch[] = { "sed",
1899 "-e", "/authdes_create.*struct sockaddr/i\\\n\
1900 struct sockaddr;\n",
1903 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1905 * Description of Irix_Struct__File fix
1907 #define IRIX_STRUCT__FILE_FIXIDX 45
1908 tSCC zIrix_Struct__FileName[] =
1909 "irix_struct__file";
1912 * File name selection pattern
1914 tSCC zIrix_Struct__FileList[] =
1917 * Machine/OS name selection pattern
1919 #define apzIrix_Struct__FileMachs (const char**)NULL
1920 #define IRIX_STRUCT__FILE_TEST_CT 0
1921 #define aIrix_Struct__FileTests (tTestDesc*)NULL
1924 * Fix Command Arguments for Irix_Struct__File
1926 const char* apzIrix_Struct__FilePatch[] = { "sed",
1927 "-e", "/xdrstdio_create.*struct __file_s/i\\\n\
1928 struct __file_s;\n",
1931 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1933 * Description of Irix_Asm_Apostrophe fix
1935 #define IRIX_ASM_APOSTROPHE_FIXIDX 46
1936 tSCC zIrix_Asm_ApostropheName[] =
1937 "irix_asm_apostrophe";
1940 * File name selection pattern
1942 tSCC zIrix_Asm_ApostropheList[] =
1945 * Machine/OS name selection pattern
1947 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
1950 * content selection pattern - do fix if pattern found
1952 tSCC zIrix_Asm_ApostropheSelect0[] =
1953 "^[ \t]*#.*[Ww]e're";
1955 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
1956 tTestDesc aIrix_Asm_ApostropheTests[] = {
1957 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
1960 * Fix Command Arguments for Irix_Asm_Apostrophe
1962 const char* apzIrix_Asm_ApostrophePatch[] = { "sed",
1963 "-e", "/^[ \t]*#/s/\\([Ww]e\\)'re/\\1 are/",
1966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1968 * Description of Isc_Fmod fix
1970 #define ISC_FMOD_FIXIDX 47
1971 tSCC zIsc_FmodName[] =
1975 * File name selection pattern
1977 tSCC zIsc_FmodList[] =
1980 * Machine/OS name selection pattern
1982 #define apzIsc_FmodMachs (const char**)NULL
1985 * content selection pattern - do fix if pattern found
1987 tSCC zIsc_FmodSelect0[] =
1990 #define ISC_FMOD_TEST_CT 1
1991 tTestDesc aIsc_FmodTests[] = {
1992 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
1995 * Fix Command Arguments for Isc_Fmod
1997 const char* apzIsc_FmodPatch[] = { "sed",
1998 "-e", "s/fmod(double)/fmod(double, double)/",
2001 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2003 * Description of Motorola_Nested fix
2005 #define MOTOROLA_NESTED_FIXIDX 48
2006 tSCC zMotorola_NestedName[] =
2010 * File name selection pattern
2012 tSCC zMotorola_NestedList[] =
2013 "|limits.h|sys/limits.h|";
2015 * Machine/OS name selection pattern
2017 tSCC* apzMotorola_NestedMachs[] = {
2018 "m68k-motorola-sysv*",
2019 (const char*)NULL };
2020 #define MOTOROLA_NESTED_TEST_CT 0
2021 #define aMotorola_NestedTests (tTestDesc*)NULL
2024 * Fix Command Arguments for Motorola_Nested
2026 const char* apzMotorola_NestedPatch[] = { "sed",
2027 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
2028 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.40282346638528860e+38 \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
2031 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2033 * Description of Isc_Sys_Limits fix
2035 #define ISC_SYS_LIMITS_FIXIDX 49
2036 tSCC zIsc_Sys_LimitsName[] =
2040 * File name selection pattern
2042 tSCC zIsc_Sys_LimitsList[] =
2045 * Machine/OS name selection pattern
2047 #define apzIsc_Sys_LimitsMachs (const char**)NULL
2050 * content selection pattern - do fix if pattern found
2052 tSCC zIsc_Sys_LimitsSelect0[] =
2055 #define ISC_SYS_LIMITS_TEST_CT 1
2056 tTestDesc aIsc_Sys_LimitsTests[] = {
2057 { TT_EGREP, zIsc_Sys_LimitsSelect0, (regex_t*)NULL }, };
2060 * Fix Command Arguments for Isc_Sys_Limits
2062 const char* apzIsc_Sys_LimitsPatch[] = { "sed",
2063 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
2064 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
2067 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2069 * Description of Kandr_Concat fix
2071 #define KANDR_CONCAT_FIXIDX 50
2072 tSCC zKandr_ConcatName[] =
2076 * File name selection pattern
2078 tSCC zKandr_ConcatList[] =
2079 "|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|";
2081 * Machine/OS name selection pattern
2083 #define apzKandr_ConcatMachs (const char**)NULL
2086 * content selection pattern - do fix if pattern found
2088 tSCC zKandr_ConcatSelect0[] =
2091 #define KANDR_CONCAT_TEST_CT 1
2092 tTestDesc aKandr_ConcatTests[] = {
2093 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2096 * Fix Command Arguments for Kandr_Concat
2098 const char* apzKandr_ConcatPatch[] = { "sed",
2099 "-e", "s|/\\*\\*/|##|g",
2102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2104 * Description of Limits_Ifndefs fix
2106 #define LIMITS_IFNDEFS_FIXIDX 51
2107 tSCC zLimits_IfndefsName[] =
2111 * File name selection pattern
2113 tSCC zLimits_IfndefsList[] =
2114 "|limits.h|sys/limits.h|";
2116 * Machine/OS name selection pattern
2118 #define apzLimits_IfndefsMachs (const char**)NULL
2121 * content bypass pattern - skip fix if pattern found
2123 tSCC zLimits_IfndefsBypass0[] =
2124 "ifndef[ \t]+FLT_MIN";
2126 #define LIMITS_IFNDEFS_TEST_CT 1
2127 tTestDesc aLimits_IfndefsTests[] = {
2128 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2131 * Fix Command Arguments for Limits_Ifndefs
2133 const char* apzLimits_IfndefsPatch[] = { "sed",
2134 "-e", "/[ \t]FLT_MIN[ \t]/i\\\n\
2136 "-e", "/[ \t]FLT_MIN[ \t]/a\\\n\
2138 "-e", "/[ \t]FLT_MAX[ \t]/i\\\n\
2140 "-e", "/[ \t]FLT_MAX[ \t]/a\\\n\
2142 "-e", "/[ \t]FLT_DIG[ \t]/i\\\n\
2144 "-e", "/[ \t]FLT_DIG[ \t]/a\\\n\
2146 "-e", "/[ \t]DBL_MIN[ \t]/i\\\n\
2148 "-e", "/[ \t]DBL_MIN[ \t]/a\\\n\
2150 "-e", "/[ \t]DBL_MAX[ \t]/i\\\n\
2152 "-e", "/[ \t]DBL_MAX[ \t]/a\\\n\
2154 "-e", "/[ \t]DBL_DIG[ \t]/i\\\n\
2156 "-e", "/[ \t]DBL_DIG[ \t]/a\\\n\
2158 "-e", "/^\\(\\/\\*#define\tHUGE_VAL\t3\\.[0-9e+]* *\\)\\/\\*/s//\\1/",
2161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2163 * Description of Lynx_Void_Int fix
2165 #define LYNX_VOID_INT_FIXIDX 52
2166 tSCC zLynx_Void_IntName[] =
2170 * File name selection pattern
2172 tSCC zLynx_Void_IntList[] =
2175 * Machine/OS name selection pattern
2177 #define apzLynx_Void_IntMachs (const char**)NULL
2180 * content selection pattern - do fix if pattern found
2182 tSCC zLynx_Void_IntSelect0[] =
2183 "#[ \t]*define[ \t]+void[ \t]+int";
2185 #define LYNX_VOID_INT_TEST_CT 1
2186 tTestDesc aLynx_Void_IntTests[] = {
2187 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2190 * Fix Command Arguments for Lynx_Void_Int
2192 const char* apzLynx_Void_IntPatch[] = { "sed",
2193 "-e", "/#[ \t]*define[ \t][ \t]*void[ \t]int/d",
2196 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2198 * Description of Lynxos_Fcntl_Proto fix
2200 #define LYNXOS_FCNTL_PROTO_FIXIDX 53
2201 tSCC zLynxos_Fcntl_ProtoName[] =
2202 "lynxos_fcntl_proto";
2205 * File name selection pattern
2207 tSCC zLynxos_Fcntl_ProtoList[] =
2210 * Machine/OS name selection pattern
2212 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2215 * content selection pattern - do fix if pattern found
2217 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2218 "fcntl.*\\(int, int, int\\)";
2220 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2221 tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2222 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2225 * Fix Command Arguments for Lynxos_Fcntl_Proto
2227 const char* apzLynxos_Fcntl_ProtoPatch[] = { "sed",
2228 "-e", "s/\\(fcntl.*(int, int, \\)int)/\\1...)/",
2231 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2233 * Description of M88k_Bad_Hypot_Opt fix
2235 #define M88K_BAD_HYPOT_OPT_FIXIDX 54
2236 tSCC zM88k_Bad_Hypot_OptName[] =
2237 "m88k_bad_hypot_opt";
2240 * File name selection pattern
2242 tSCC zM88k_Bad_Hypot_OptList[] =
2245 * Machine/OS name selection pattern
2247 tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
2248 "m88k-motorola-sysv3*",
2249 (const char*)NULL };
2250 #define M88K_BAD_HYPOT_OPT_TEST_CT 0
2251 #define aM88k_Bad_Hypot_OptTests (tTestDesc*)NULL
2254 * Fix Command Arguments for M88k_Bad_Hypot_Opt
2256 const char* apzM88k_Bad_Hypot_OptPatch[] = { "sed",
2257 "-e", "s/extern double floor(), ceil(), fmod(), fabs();/extern double floor(), ceil(), fmod(), fabs _PARAMS((double));/",
2258 "-e", "/^extern double hypot();$/a\\\n\
2259 \\/* Workaround a stupid Motorola optimization if one\\\n\
2260 of x or y is 0.0 and the other is negative! *\\/\\\n\
2261 #ifdef __STDC__\\\n\
2262 static __inline__ double fake_hypot (double x, double y)\\\n\
2264 static __inline__ double fake_hypot (x, y)\\\n\
2268 \treturn fabs (hypot (x, y));\\\n\
2270 #define hypot\tfake_hypot\n",
2273 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2275 * Description of M88k_Bad_S_If fix
2277 #define M88K_BAD_S_IF_FIXIDX 55
2278 tSCC zM88k_Bad_S_IfName[] =
2282 * File name selection pattern
2284 tSCC zM88k_Bad_S_IfList[] =
2287 * Machine/OS name selection pattern
2289 tSCC* apzM88k_Bad_S_IfMachs[] = {
2291 (const char*)NULL };
2294 * content selection pattern - do fix if pattern found
2296 tSCC zM88k_Bad_S_IfSelect0[] =
2297 "#define[ \t]+S_IS[A-Z]*(m)[ \t]";
2299 #define M88K_BAD_S_IF_TEST_CT 1
2300 tTestDesc aM88k_Bad_S_IfTests[] = {
2301 { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
2304 * Fix Command Arguments for M88k_Bad_S_If
2306 const char* apzM88k_Bad_S_IfPatch[] = { "sed",
2307 "-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)/",
2308 "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(0[0-9]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",
2311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2313 * Description of M88k_Multi_Incl fix
2315 #define M88K_MULTI_INCL_FIXIDX 56
2316 tSCC zM88k_Multi_InclName[] =
2320 * File name selection pattern
2322 tSCC zM88k_Multi_InclList[] =
2325 * Machine/OS name selection pattern
2327 tSCC* apzM88k_Multi_InclMachs[] = {
2328 "m88k-tektronix-sysv3*",
2329 (const char*)NULL };
2332 * content bypass pattern - skip fix if pattern found
2334 tSCC zM88k_Multi_InclBypass0[] =
2337 #define M88K_MULTI_INCL_TEST_CT 1
2338 tTestDesc aM88k_Multi_InclTests[] = {
2339 { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
2342 * Fix Command Arguments for M88k_Multi_Incl
2344 const char* apzM88k_Multi_InclPatch[] = { "sh", "-c",
2345 "echo Fixing $file, to protect against multiple inclusion. >&2\n\
2346 cpp_wrapper=`echo $file | sed -e 's,\\.,_,g' -e 's,/,_,g'`\n\
2347 echo \"#ifndef __GCC_GOT_${cpp_wrapper}_\"\n\
2348 echo \"#define __GCC_GOT_${cpp_wrapper}_\"\n\
2350 echo \"#endif /* ! __GCC_GOT_${cpp_wrapper}_ */\"",
2353 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2355 * Description of Machine_Ansi_H_Va_List fix
2357 #define MACHINE_ANSI_H_VA_LIST_FIXIDX 57
2358 tSCC zMachine_Ansi_H_Va_ListName[] =
2359 "machine_ansi_h_va_list";
2362 * File name selection pattern
2364 tSCC zMachine_Ansi_H_Va_ListList[] =
2367 * Machine/OS name selection pattern
2369 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2372 * content selection pattern - do fix if pattern found
2374 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2378 * content bypass pattern - skip fix if pattern found
2380 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2381 "__builtin_va_list";
2383 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2384 tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2385 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2386 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2389 * Fix Command Arguments for Machine_Ansi_H_Va_List
2391 const char* apzMachine_Ansi_H_Va_ListPatch[] = { "sed",
2392 "-e", "s/\\(_BSD_VA_LIST_[ \t][ \t]*\\).*$/\\1__builtin_va_list/",
2395 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2397 * Description of Machine_Name fix
2399 #define MACHINE_NAME_FIXIDX 58
2400 tSCC zMachine_NameName[] =
2404 * File name selection pattern
2406 #define zMachine_NameList (char*)NULL
2408 * Machine/OS name selection pattern
2410 #define apzMachine_NameMachs (const char**)NULL
2413 * perform the C function call test
2415 tSCC zMachine_NameFTst0[] = "machine_name";
2417 #define MACHINE_NAME_TEST_CT 1
2418 tTestDesc aMachine_NameTests[] = {
2419 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2422 * Fix Command Arguments for Machine_Name
2424 const char* apzMachine_NamePatch[] = {"machine_name",
2427 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2429 * Description of Math_Exception fix
2431 #define MATH_EXCEPTION_FIXIDX 59
2432 tSCC zMath_ExceptionName[] =
2436 * File name selection pattern
2438 tSCC zMath_ExceptionList[] =
2441 * Machine/OS name selection pattern
2443 #define apzMath_ExceptionMachs (const char**)NULL
2446 * content selection pattern - do fix if pattern found
2448 tSCC zMath_ExceptionSelect0[] =
2452 * content bypass pattern - skip fix if pattern found
2454 tSCC zMath_ExceptionBypass0[] =
2455 "We have a problem when using C\\+\\+";
2457 #define MATH_EXCEPTION_TEST_CT 2
2458 tTestDesc aMath_ExceptionTests[] = {
2459 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2460 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2463 * Fix Command Arguments for Math_Exception
2465 const char* apzMath_ExceptionPatch[] = { "sed",
2467 #ifdef __cplusplus\\\n\
2468 #define exception __math_exception\\\n\
2471 #ifdef __cplusplus\\\n\
2472 #undef exception\\\n\
2476 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2478 * Description of Math_Huge_Val_From_Dbl_Max fix
2480 #define MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX 60
2481 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2482 "math_huge_val_from_dbl_max";
2485 * File name selection pattern
2487 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2490 * Machine/OS name selection pattern
2492 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2495 * content selection pattern - do fix if pattern found
2497 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2498 "define[ \t]*HUGE_VAL[ \t]*DBL_MAX";
2501 * content bypass pattern - skip fix if pattern found
2503 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2504 "define[ \t]*DBL_MAX";
2506 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2507 tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2508 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2509 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2512 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2514 const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2515 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h 2>/dev/null`\n\
2517 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2518 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s/DBL_MAX/'\"$dbl_max_def/\"\n\
2523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2525 * Description of Math_Huge_Val_Ifndef fix
2527 #define MATH_HUGE_VAL_IFNDEF_FIXIDX 61
2528 tSCC zMath_Huge_Val_IfndefName[] =
2529 "math_huge_val_ifndef";
2532 * File name selection pattern
2534 tSCC zMath_Huge_Val_IfndefList[] =
2537 * Machine/OS name selection pattern
2539 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2542 * content selection pattern - do fix if pattern found
2544 tSCC zMath_Huge_Val_IfndefSelect0[] =
2545 "define[ \t]*HUGE_VAL";
2547 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2548 tTestDesc aMath_Huge_Val_IfndefTests[] = {
2549 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2552 * Fix Command Arguments for Math_Huge_Val_Ifndef
2554 const char* apzMath_Huge_Val_IfndefPatch[] = { "sed",
2555 "-e", "/define[ \t]HUGE_VAL[ \t]/i\\\n\
2556 #ifndef HUGE_VAL\n",
2557 "-e", "/define[ \t]HUGE_VAL[ \t]/a\\\n\
2561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2563 * Description of Nested_Comment fix
2565 #define NESTED_COMMENT_FIXIDX 62
2566 tSCC zNested_CommentName[] =
2570 * File name selection pattern
2572 tSCC zNested_CommentList[] =
2575 * Machine/OS name selection pattern
2577 #define apzNested_CommentMachs (const char**)NULL
2578 #define NESTED_COMMENT_TEST_CT 0
2579 #define aNested_CommentTests (tTestDesc*)NULL
2582 * Fix Command Arguments for Nested_Comment
2584 const char* apzNested_CommentPatch[] = { "sed",
2585 "-e", "s@^\\(/\\*.*rpc/auth_des.h>.*\\)/\\*@\\1*/ /*@",
2588 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2590 * Description of News_Os_Recursion fix
2592 #define NEWS_OS_RECURSION_FIXIDX 63
2593 tSCC zNews_Os_RecursionName[] =
2594 "news_os_recursion";
2597 * File name selection pattern
2599 tSCC zNews_Os_RecursionList[] =
2602 * Machine/OS name selection pattern
2604 #define apzNews_Os_RecursionMachs (const char**)NULL
2607 * content selection pattern - do fix if pattern found
2609 tSCC zNews_Os_RecursionSelect0[] =
2610 "#include <stdlib.h>";
2612 #define NEWS_OS_RECURSION_TEST_CT 1
2613 tTestDesc aNews_Os_RecursionTests[] = {
2614 { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
2617 * Fix Command Arguments for News_Os_Recursion
2619 const char* apzNews_Os_RecursionPatch[] = { "sed",
2620 "-e", "/^#include <stdlib.h>/i\\\n\
2621 #ifdef BOGUS_RECURSION\n",
2622 "-e", "/^#include <stdlib.h>/a\\\n\
2626 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2628 * Description of Next_Math_Prefix fix
2630 #define NEXT_MATH_PREFIX_FIXIDX 64
2631 tSCC zNext_Math_PrefixName[] =
2635 * File name selection pattern
2637 tSCC zNext_Math_PrefixList[] =
2640 * Machine/OS name selection pattern
2642 #define apzNext_Math_PrefixMachs (const char**)NULL
2645 * content selection pattern - do fix if pattern found
2647 tSCC zNext_Math_PrefixSelect0[] =
2648 "^extern.*double.*__const__.*";
2650 #define NEXT_MATH_PREFIX_TEST_CT 1
2651 tTestDesc aNext_Math_PrefixTests[] = {
2652 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
2655 * Fix Command Arguments for Next_Math_Prefix
2657 const char* apzNext_Math_PrefixPatch[] = { "sed",
2658 "-e", "/^extern.*double.*__const__.*sqrt(/s/__const__//",
2659 "-e", "/^extern.*double.*__const__.*fabs(/s/__const__//",
2660 "-e", "/^extern.*double.*__const__.*cos(/s/__const__//",
2661 "-e", "/^extern.*double.*__const__.*hypot(/s/__const__//",
2662 "-e", "/^extern.*double.*__const__.*sin(/s/__const__//",
2665 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2667 * Description of Next_Template fix
2669 #define NEXT_TEMPLATE_FIXIDX 65
2670 tSCC zNext_TemplateName[] =
2674 * File name selection pattern
2676 tSCC zNext_TemplateList[] =
2679 * Machine/OS name selection pattern
2681 #define apzNext_TemplateMachs (const char**)NULL
2684 * content selection pattern - do fix if pattern found
2686 tSCC zNext_TemplateSelect0[] =
2689 #define NEXT_TEMPLATE_TEST_CT 1
2690 tTestDesc aNext_TemplateTests[] = {
2691 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
2694 * Fix Command Arguments for Next_Template
2696 const char* apzNext_TemplatePatch[] = { "sed",
2697 "-e", "/\\(.*template\\)/s/template//",
2698 "-e", "/extern.*volatile.*void.*abort/s/volatile//",
2701 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2703 * Description of Next_Volitile fix
2705 #define NEXT_VOLITILE_FIXIDX 66
2706 tSCC zNext_VolitileName[] =
2710 * File name selection pattern
2712 tSCC zNext_VolitileList[] =
2715 * Machine/OS name selection pattern
2717 #define apzNext_VolitileMachs (const char**)NULL
2720 * content selection pattern - do fix if pattern found
2722 tSCC zNext_VolitileSelect0[] =
2725 #define NEXT_VOLITILE_TEST_CT 1
2726 tTestDesc aNext_VolitileTests[] = {
2727 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
2730 * Fix Command Arguments for Next_Volitile
2732 const char* apzNext_VolitilePatch[] = { "sed",
2733 "-e", "/extern.*volatile.*void.*exit/s/volatile//",
2734 "-e", "/extern.*volatile.*void.*abort/s/volatile//",
2737 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2739 * Description of Next_Wait_Union fix
2741 #define NEXT_WAIT_UNION_FIXIDX 67
2742 tSCC zNext_Wait_UnionName[] =
2746 * File name selection pattern
2748 tSCC zNext_Wait_UnionList[] =
2751 * Machine/OS name selection pattern
2753 #define apzNext_Wait_UnionMachs (const char**)NULL
2756 * content selection pattern - do fix if pattern found
2758 tSCC zNext_Wait_UnionSelect0[] =
2759 "wait\\(union wait";
2761 #define NEXT_WAIT_UNION_TEST_CT 1
2762 tTestDesc aNext_Wait_UnionTests[] = {
2763 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
2766 * Fix Command Arguments for Next_Wait_Union
2768 const char* apzNext_Wait_UnionPatch[] = { "sed",
2769 "-e", "s@wait(union wait@wait(void@",
2772 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2774 * Description of Nodeent_Syntax fix
2776 #define NODEENT_SYNTAX_FIXIDX 68
2777 tSCC zNodeent_SyntaxName[] =
2781 * File name selection pattern
2783 tSCC zNodeent_SyntaxList[] =
2784 "|netdnet/dnetdb.h|";
2786 * Machine/OS name selection pattern
2788 #define apzNodeent_SyntaxMachs (const char**)NULL
2789 #define NODEENT_SYNTAX_TEST_CT 0
2790 #define aNodeent_SyntaxTests (tTestDesc*)NULL
2793 * Fix Command Arguments for Nodeent_Syntax
2795 const char* apzNodeent_SyntaxPatch[] = { "sed",
2796 "-e", "s/char.*na_addr *$/char *na_addr;/",
2799 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2801 * Description of Osf_Namespace_A fix
2803 #define OSF_NAMESPACE_A_FIXIDX 69
2804 tSCC zOsf_Namespace_AName[] =
2808 * File name selection pattern
2810 tSCC zOsf_Namespace_AList[] =
2811 "|reg_types.h|sys/lc_core.h|";
2813 * Machine/OS name selection pattern
2815 #define apzOsf_Namespace_AMachs (const char**)NULL
2818 * perform the 'test' shell command - do fix on success
2820 tSCC zOsf_Namespace_ATest0[] =
2822 tSCC zOsf_Namespace_ATest1[] =
2823 " -r sys/lc_core.h";
2824 tSCC zOsf_Namespace_ATest2[] =
2825 " -n \"`grep '} regex_t;' reg_types.h`\"";
2826 tSCC zOsf_Namespace_ATest3[] =
2827 " -z \"`grep __regex_t regex.h`\"";
2829 #define OSF_NAMESPACE_A_TEST_CT 4
2830 tTestDesc aOsf_Namespace_ATests[] = {
2831 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
2832 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
2833 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
2834 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
2837 * Fix Command Arguments for Osf_Namespace_A
2839 const char* apzOsf_Namespace_APatch[] = { "sed",
2840 "-e", "s/regex_t/__regex_t/g",
2841 "-e", "s/regoff_t/__regoff_t/g",
2842 "-e", "s/regmatch_t/__regmatch_t/g",
2845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2847 * Description of Osf_Namespace_B fix
2849 #define OSF_NAMESPACE_B_FIXIDX 70
2850 tSCC zOsf_Namespace_BName[] =
2854 * File name selection pattern
2856 tSCC zOsf_Namespace_BList[] =
2859 * Machine/OS name selection pattern
2861 #define apzOsf_Namespace_BMachs (const char**)NULL
2864 * perform the 'test' shell command - do fix on success
2866 tSCC zOsf_Namespace_BTest0[] =
2868 tSCC zOsf_Namespace_BTest1[] =
2869 " -r sys/lc_core.h";
2870 tSCC zOsf_Namespace_BTest2[] =
2871 " -n \"`grep '} regex_t;' reg_types.h`\"";
2872 tSCC zOsf_Namespace_BTest3[] =
2873 " -z \"`grep __regex_t regex.h`\"";
2875 #define OSF_NAMESPACE_B_TEST_CT 4
2876 tTestDesc aOsf_Namespace_BTests[] = {
2877 { TT_TEST, zOsf_Namespace_BTest0, 0 /* unused */ },
2878 { TT_TEST, zOsf_Namespace_BTest1, 0 /* unused */ },
2879 { TT_TEST, zOsf_Namespace_BTest2, 0 /* unused */ },
2880 { TT_TEST, zOsf_Namespace_BTest3, 0 /* unused */ }, };
2883 * Fix Command Arguments for Osf_Namespace_B
2885 const char* apzOsf_Namespace_BPatch[] = { "sed",
2886 "-e", "/#include <reg_types.h>/a\\\n\
2887 typedef __regex_t\tregex_t;\\\n\
2888 typedef __regoff_t\tregoff_t;\\\n\
2889 typedef __regmatch_t\tregmatch_t;\n",
2892 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2894 * Description of Pthread_Page_Size fix
2896 #define PTHREAD_PAGE_SIZE_FIXIDX 71
2897 tSCC zPthread_Page_SizeName[] =
2898 "pthread_page_size";
2901 * File name selection pattern
2903 tSCC zPthread_Page_SizeList[] =
2906 * Machine/OS name selection pattern
2908 #define apzPthread_Page_SizeMachs (const char**)NULL
2911 * content selection pattern - do fix if pattern found
2913 tSCC zPthread_Page_SizeSelect0[] =
2916 #define PTHREAD_PAGE_SIZE_TEST_CT 1
2917 tTestDesc aPthread_Page_SizeTests[] = {
2918 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
2921 * Fix Command Arguments for Pthread_Page_Size
2923 const char* apzPthread_Page_SizePatch[] = { "sed",
2924 "-e", "s/^int __page_size/extern int __page_size/",
2927 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2929 * Description of Read_Ret_Type fix
2931 #define READ_RET_TYPE_FIXIDX 72
2932 tSCC zRead_Ret_TypeName[] =
2936 * File name selection pattern
2938 tSCC zRead_Ret_TypeList[] =
2941 * Machine/OS name selection pattern
2943 #define apzRead_Ret_TypeMachs (const char**)NULL
2946 * content selection pattern - do fix if pattern found
2948 tSCC zRead_Ret_TypeSelect0[] =
2949 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
2951 #define READ_RET_TYPE_TEST_CT 1
2952 tTestDesc aRead_Ret_TypeTests[] = {
2953 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
2956 * Fix Command Arguments for Read_Ret_Type
2958 const char* apzRead_Ret_TypePatch[] = { "sed",
2959 "-e", "s/^\\(extern int\tfclose(), fflush()\\), \\(fread(), fwrite()\\)\\(.*\\)$/extern unsigned int\t\\2;\\\n\
2963 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2965 * Description of Rs6000_Double fix
2967 #define RS6000_DOUBLE_FIXIDX 73
2968 tSCC zRs6000_DoubleName[] =
2972 * File name selection pattern
2974 tSCC zRs6000_DoubleList[] =
2977 * Machine/OS name selection pattern
2979 #define apzRs6000_DoubleMachs (const char**)NULL
2982 * content selection pattern - do fix if pattern found
2984 tSCC zRs6000_DoubleSelect0[] =
2985 "[^a-zA-Z_]class\\(";
2987 #define RS6000_DOUBLE_TEST_CT 1
2988 tTestDesc aRs6000_DoubleTests[] = {
2989 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
2992 * Fix Command Arguments for Rs6000_Double
2994 const char* apzRs6000_DoublePatch[] = { "sed",
2995 "-e", "/class[(]/i\\\n\
2996 #ifndef __cplusplus\n",
2997 "-e", "/class[(]/a\\\n\
3001 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3003 * Description of Rs6000_Fchmod fix
3005 #define RS6000_FCHMOD_FIXIDX 74
3006 tSCC zRs6000_FchmodName[] =
3010 * File name selection pattern
3012 tSCC zRs6000_FchmodList[] =
3015 * Machine/OS name selection pattern
3017 #define apzRs6000_FchmodMachs (const char**)NULL
3020 * content selection pattern - do fix if pattern found
3022 tSCC zRs6000_FchmodSelect0[] =
3025 #define RS6000_FCHMOD_TEST_CT 1
3026 tTestDesc aRs6000_FchmodTests[] = {
3027 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3030 * Fix Command Arguments for Rs6000_Fchmod
3032 const char* apzRs6000_FchmodPatch[] = { "sed",
3033 "-e", "s/fchmod(char \\*/fchmod(int/",
3036 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3038 * Description of Rs6000_Param fix
3040 #define RS6000_PARAM_FIXIDX 75
3041 tSCC zRs6000_ParamName[] =
3045 * File name selection pattern
3047 tSCC zRs6000_ParamList[] =
3048 "|stdio.h|unistd.h|";
3050 * Machine/OS name selection pattern
3052 #define apzRs6000_ParamMachs (const char**)NULL
3055 * content selection pattern - do fix if pattern found
3057 tSCC zRs6000_ParamSelect0[] =
3060 #define RS6000_PARAM_TEST_CT 1
3061 tTestDesc aRs6000_ParamTests[] = {
3062 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3065 * Fix Command Arguments for Rs6000_Param
3067 const char* apzRs6000_ParamPatch[] = { "sed",
3068 "-e", "s@rename(const char \\*old, const char \\*new)@rename(const char *_old, const char *_new)@",
3071 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3073 * Description of Sco_Strict_Ansi fix
3075 #define SCO_STRICT_ANSI_FIXIDX 76
3076 tSCC zSco_Strict_AnsiName[] =
3080 * File name selection pattern
3082 #define zSco_Strict_AnsiList (char*)NULL
3084 * Machine/OS name selection pattern
3086 tSCC* apzSco_Strict_AnsiMachs[] = {
3088 (const char*)NULL };
3091 * content selection pattern - do fix if pattern found
3093 tSCC zSco_Strict_AnsiSelect0[] =
3094 "^[ \t]*#[ \t]*if.*!__STDC__";
3096 #define SCO_STRICT_ANSI_TEST_CT 1
3097 tTestDesc aSco_Strict_AnsiTests[] = {
3098 { TT_EGREP, zSco_Strict_AnsiSelect0, (regex_t*)NULL }, };
3101 * Fix Command Arguments for Sco_Strict_Ansi
3103 const char* apzSco_Strict_AnsiPatch[] = { "sed",
3104 "-e", "s/!__STDC__/!defined(__STRICT_ANSI__)/g",
3107 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3109 * Description of Sco_Static_Func fix
3111 #define SCO_STATIC_FUNC_FIXIDX 77
3112 tSCC zSco_Static_FuncName[] =
3116 * File name selection pattern
3118 tSCC zSco_Static_FuncList[] =
3121 * Machine/OS name selection pattern
3123 tSCC* apzSco_Static_FuncMachs[] = {
3125 (const char*)NULL };
3128 * content selection pattern - do fix if pattern found
3130 tSCC zSco_Static_FuncSelect0[] =
3133 #define SCO_STATIC_FUNC_TEST_CT 1
3134 tTestDesc aSco_Static_FuncTests[] = {
3135 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3138 * Fix Command Arguments for Sco_Static_Func
3140 const char* apzSco_Static_FuncPatch[] = { "sed",
3141 "-e", "/^static int/i\\\n\
3142 #if __cplusplus\\\n\
3144 #endif /* __cplusplus */",
3146 #if __cplusplus\\\n\
3148 #endif /* __cplusplus */",
3151 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3153 * Description of Sco_Utime fix
3155 #define SCO_UTIME_FIXIDX 78
3156 tSCC zSco_UtimeName[] =
3160 * File name selection pattern
3162 tSCC zSco_UtimeList[] =
3165 * Machine/OS name selection pattern
3167 tSCC* apzSco_UtimeMachs[] = {
3169 (const char*)NULL };
3172 * content selection pattern - do fix if pattern found
3174 tSCC zSco_UtimeSelect0[] =
3175 "(const char *, struct utimbuf *);";
3177 #define SCO_UTIME_TEST_CT 1
3178 tTestDesc aSco_UtimeTests[] = {
3179 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3182 * Fix Command Arguments for Sco_Utime
3184 const char* apzSco_UtimePatch[] = { "sed",
3185 "-e", "s/(const char \\*, struct utimbuf \\*);/(const char *, const struct utimbuf *);/",
3188 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3190 * Description of Sony_Include fix
3192 #define SONY_INCLUDE_FIXIDX 79
3193 tSCC zSony_IncludeName[] =
3197 * File name selection pattern
3199 tSCC zSony_IncludeList[] =
3200 "|machine/machparam.h|";
3202 * Machine/OS name selection pattern
3204 #define apzSony_IncludeMachs (const char**)NULL
3207 * content selection pattern - do fix if pattern found
3209 tSCC zSony_IncludeSelect0[] =
3210 "\"\\.\\./machine/endian.h\"";
3212 #define SONY_INCLUDE_TEST_CT 1
3213 tTestDesc aSony_IncludeTests[] = {
3214 { TT_EGREP, zSony_IncludeSelect0, (regex_t*)NULL }, };
3217 * Fix Command Arguments for Sony_Include
3219 const char* apzSony_IncludePatch[] = { "sed",
3220 "-e", "s@\"../machine/endian.h\"@<machine/endian.h>@",
3223 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3225 * Description of Statsswtch fix
3227 #define STATSSWTCH_FIXIDX 80
3228 tSCC zStatsswtchName[] =
3232 * File name selection pattern
3234 tSCC zStatsswtchList[] =
3237 * Machine/OS name selection pattern
3239 #define apzStatsswtchMachs (const char**)NULL
3242 * content selection pattern - do fix if pattern found
3244 tSCC zStatsswtchSelect0[] =
3247 #define STATSSWTCH_TEST_CT 1
3248 tTestDesc aStatsswtchTests[] = {
3249 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3252 * Fix Command Arguments for Statsswtch
3254 const char* apzStatsswtchPatch[] = { "sed",
3255 "-e", "s/boottime$/boottime;/",
3258 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3260 * Description of Stdio_Stdarg_H fix
3262 #define STDIO_STDARG_H_FIXIDX 81
3263 tSCC zStdio_Stdarg_HName[] =
3267 * File name selection pattern
3269 tSCC zStdio_Stdarg_HList[] =
3272 * Machine/OS name selection pattern
3274 #define apzStdio_Stdarg_HMachs (const char**)NULL
3277 * content bypass pattern - skip fix if pattern found
3279 tSCC zStdio_Stdarg_HBypass0[] =
3280 "include.*(stdarg.h|machine/ansi.h)";
3282 #define STDIO_STDARG_H_TEST_CT 1
3283 tTestDesc aStdio_Stdarg_HTests[] = {
3284 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3287 * Fix Command Arguments for Stdio_Stdarg_H
3289 const char* apzStdio_Stdarg_HPatch[] = { "sed",
3291 #define __need___va_list\\\n\
3292 #include <stdarg.h>\n",
3295 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3297 * Description of Stdio_Va_List fix
3299 #define STDIO_VA_LIST_FIXIDX 82
3300 tSCC zStdio_Va_ListName[] =
3304 * File name selection pattern
3306 tSCC zStdio_Va_ListList[] =
3309 * Machine/OS name selection pattern
3311 #define apzStdio_Va_ListMachs (const char**)NULL
3314 * content bypass pattern - skip fix if pattern found
3316 tSCC zStdio_Va_ListBypass0[] =
3317 "__gnuc_va_list|_BSD_VA_LIST_";
3319 #define STDIO_VA_LIST_TEST_CT 1
3320 tTestDesc aStdio_Va_ListTests[] = {
3321 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3324 * Fix Command Arguments for Stdio_Va_List
3326 const char* apzStdio_Va_ListPatch[] = { "sed",
3327 "-e", "s@ va_list @ __gnuc_va_list @\n\
3328 s@ va_list)@ __gnuc_va_list)@\n\
3329 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3330 s@ va_list@ __not_va_list__@\n\
3331 s@\\*va_list@*__not_va_list__@\n\
3332 s@ __va_list)@ __gnuc_va_list)@\n\
3333 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3334 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3335 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3336 s@VA_LIST@DUMMY_VA_LIST@\n\
3337 s@_Va_LIST@_VA_LIST@",
3340 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3342 * Description of Sun_Auth_Proto fix
3344 #define SUN_AUTH_PROTO_FIXIDX 83
3345 tSCC zSun_Auth_ProtoName[] =
3349 * File name selection pattern
3351 tSCC zSun_Auth_ProtoList[] =
3352 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
3354 * Machine/OS name selection pattern
3356 #define apzSun_Auth_ProtoMachs (const char**)NULL
3359 * content selection pattern - do fix if pattern found
3361 tSCC zSun_Auth_ProtoSelect0[] =
3362 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
3364 #define SUN_AUTH_PROTO_TEST_CT 1
3365 tTestDesc aSun_Auth_ProtoTests[] = {
3366 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
3369 * Fix Command Arguments for Sun_Auth_Proto
3371 const char* apzSun_Auth_ProtoPatch[] = { "sed",
3372 "-e", "s/^\\(.*(\\*[a-z][a-z_]*)(\\)\\();.*\\)/\\\n\
3373 #ifdef __cplusplus\\\n\
3380 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3382 * Description of Sun_Bogus_Ifdef fix
3384 #define SUN_BOGUS_IFDEF_FIXIDX 84
3385 tSCC zSun_Bogus_IfdefName[] =
3389 * File name selection pattern
3391 tSCC zSun_Bogus_IfdefList[] =
3392 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
3394 * Machine/OS name selection pattern
3396 #define apzSun_Bogus_IfdefMachs (const char**)NULL
3399 * content selection pattern - do fix if pattern found
3401 tSCC zSun_Bogus_IfdefSelect0[] =
3402 "#ifdef __i386__ || __vax__";
3404 #define SUN_BOGUS_IFDEF_TEST_CT 1
3405 tTestDesc aSun_Bogus_IfdefTests[] = {
3406 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
3409 * Fix Command Arguments for Sun_Bogus_Ifdef
3411 const char* apzSun_Bogus_IfdefPatch[] = { "sed",
3412 "-e", "s/\\#ifdef __i386__ || __vax__/\\#if __i386__ || __vax__/g",
3415 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3417 * Description of Sun_Bogus_Ifdef_Sun4c fix
3419 #define SUN_BOGUS_IFDEF_SUN4C_FIXIDX 85
3420 tSCC zSun_Bogus_Ifdef_Sun4cName[] =
3421 "sun_bogus_ifdef_sun4c";
3424 * File name selection pattern
3426 tSCC zSun_Bogus_Ifdef_Sun4cList[] =
3429 * Machine/OS name selection pattern
3431 #define apzSun_Bogus_Ifdef_Sun4cMachs (const char**)NULL
3434 * content selection pattern - do fix if pattern found
3436 tSCC zSun_Bogus_Ifdef_Sun4cSelect0[] =
3437 "#ifdef __i386__ || __sun4c__";
3439 #define SUN_BOGUS_IFDEF_SUN4C_TEST_CT 1
3440 tTestDesc aSun_Bogus_Ifdef_Sun4cTests[] = {
3441 { TT_EGREP, zSun_Bogus_Ifdef_Sun4cSelect0, (regex_t*)NULL }, };
3444 * Fix Command Arguments for Sun_Bogus_Ifdef_Sun4c
3446 const char* apzSun_Bogus_Ifdef_Sun4cPatch[] = { "sed",
3447 "-e", "s/\\#ifdef __i386__ || __sun4c__/\\#if __i386__ || __sun4c__/g",
3450 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3452 * Description of Sun_Catmacro fix
3454 #define SUN_CATMACRO_FIXIDX 86
3455 tSCC zSun_CatmacroName[] =
3459 * File name selection pattern
3461 tSCC zSun_CatmacroList[] =
3462 "|pixrect/memvar.h|";
3464 * Machine/OS name selection pattern
3466 #define apzSun_CatmacroMachs (const char**)NULL
3469 * content selection pattern - do fix if pattern found
3471 tSCC zSun_CatmacroSelect0[] =
3472 "^#define[ \t]+CAT\\(a,b\\)";
3474 #define SUN_CATMACRO_TEST_CT 1
3475 tTestDesc aSun_CatmacroTests[] = {
3476 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
3479 * Fix Command Arguments for Sun_Catmacro
3481 const char* apzSun_CatmacroPatch[] = { "sed",
3482 "-e", "/^#define[ \t]CAT(a,b)/ i\\\n\
3483 #ifdef __STDC__ \\\n\
3484 #define CAT(a,b) a##b\\\n\
3486 "-e", "/^#define[ \t]CAT(a,b)/ a\\\n\
3490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3492 * Description of Sun_Malloc fix
3494 #define SUN_MALLOC_FIXIDX 87
3495 tSCC zSun_MallocName[] =
3499 * File name selection pattern
3501 tSCC zSun_MallocList[] =
3504 * Machine/OS name selection pattern
3506 #define apzSun_MallocMachs (const char**)NULL
3507 #define SUN_MALLOC_TEST_CT 0
3508 #define aSun_MallocTests (tTestDesc*)NULL
3511 * Fix Command Arguments for Sun_Malloc
3513 const char* apzSun_MallocPatch[] = { "sed",
3514 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
3515 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
3516 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
3517 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
3520 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3522 * Description of Sun_Rusers_Semi fix
3524 #define SUN_RUSERS_SEMI_FIXIDX 88
3525 tSCC zSun_Rusers_SemiName[] =
3529 * File name selection pattern
3531 tSCC zSun_Rusers_SemiList[] =
3532 "|rpcsvc/rusers.h|";
3534 * Machine/OS name selection pattern
3536 #define apzSun_Rusers_SemiMachs (const char**)NULL
3539 * content selection pattern - do fix if pattern found
3541 tSCC zSun_Rusers_SemiSelect0[] =
3544 #define SUN_RUSERS_SEMI_TEST_CT 1
3545 tTestDesc aSun_Rusers_SemiTests[] = {
3546 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
3549 * Fix Command Arguments for Sun_Rusers_Semi
3551 const char* apzSun_Rusers_SemiPatch[] = { "sed",
3552 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
3555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3557 * Description of Sun_Signal fix
3559 #define SUN_SIGNAL_FIXIDX 89
3560 tSCC zSun_SignalName[] =
3564 * File name selection pattern
3566 tSCC zSun_SignalList[] =
3567 "|sys/signal.h|signal.h|";
3569 * Machine/OS name selection pattern
3571 #define apzSun_SignalMachs (const char**)NULL
3574 * content selection pattern - do fix if pattern found
3576 tSCC zSun_SignalSelect0[] =
3577 "^void\t\\(\\*signal\\(\\)\\)\\(\\);";
3579 #define SUN_SIGNAL_TEST_CT 1
3580 tTestDesc aSun_SignalTests[] = {
3581 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
3584 * Fix Command Arguments for Sun_Signal
3586 const char* apzSun_SignalPatch[] = { "sed",
3587 "-e", "/^void\t(\\*signal())();$/i\\\n\
3588 #ifdef __cplusplus\\\n\
3589 void\t(*signal(...))(...);\\\n\
3591 "-e", "/^void\t(\\*signal())();$/a\\\n\
3595 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3597 * Description of Sunos_Matherr_Decl fix
3599 #define SUNOS_MATHERR_DECL_FIXIDX 90
3600 tSCC zSunos_Matherr_DeclName[] =
3601 "sunos_matherr_decl";
3604 * File name selection pattern
3606 tSCC zSunos_Matherr_DeclList[] =
3609 * Machine/OS name selection pattern
3611 #define apzSunos_Matherr_DeclMachs (const char**)NULL
3614 * content bypass pattern - skip fix if pattern found
3616 tSCC zSunos_Matherr_DeclBypass0[] =
3617 "matherr.*struct exception";
3619 #define SUNOS_MATHERR_DECL_TEST_CT 1
3620 tTestDesc aSunos_Matherr_DeclTests[] = {
3621 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL }, };
3624 * Fix Command Arguments for Sunos_Matherr_Decl
3626 const char* apzSunos_Matherr_DeclPatch[] = { "sed",
3627 "-e", "/^struct exception/,$b",
3628 "-e", "/matherr/i\\\n\
3629 struct exception;\n",
3632 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3634 * Description of Sunos_Strlen fix
3636 #define SUNOS_STRLEN_FIXIDX 91
3637 tSCC zSunos_StrlenName[] =
3641 * File name selection pattern
3643 tSCC zSunos_StrlenList[] =
3646 * Machine/OS name selection pattern
3648 #define apzSunos_StrlenMachs (const char**)NULL
3651 * content selection pattern - do fix if pattern found
3653 tSCC zSunos_StrlenSelect0[] =
3656 #define SUNOS_STRLEN_TEST_CT 1
3657 tTestDesc aSunos_StrlenTests[] = {
3658 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
3661 * Fix Command Arguments for Sunos_Strlen
3663 const char* apzSunos_StrlenPatch[] = { "sed",
3664 "-e", "s/int[ \t]*strlen();/__SIZE_TYPE__ strlen();/",
3667 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3669 * Description of Svr4_Getcwd fix
3671 #define SVR4_GETCWD_FIXIDX 92
3672 tSCC zSvr4_GetcwdName[] =
3676 * File name selection pattern
3678 tSCC zSvr4_GetcwdList[] =
3679 "|stdlib.h|unistd.h|prototypes.h|";
3681 * Machine/OS name selection pattern
3683 #define apzSvr4_GetcwdMachs (const char**)NULL
3686 * content selection pattern - do fix if pattern found
3688 tSCC zSvr4_GetcwdSelect0[] =
3689 "getcwd\\(char \\*, int\\)";
3691 #define SVR4_GETCWD_TEST_CT 1
3692 tTestDesc aSvr4_GetcwdTests[] = {
3693 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
3696 * Fix Command Arguments for Svr4_Getcwd
3698 const char* apzSvr4_GetcwdPatch[] = { "sed",
3699 "-e", "s/getcwd(char \\*, int)/getcwd(char *, size_t)/",
3702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3704 * Description of Svr4_Profil fix
3706 #define SVR4_PROFIL_FIXIDX 93
3707 tSCC zSvr4_ProfilName[] =
3711 * File name selection pattern
3713 tSCC zSvr4_ProfilList[] =
3714 "|stdlib.h|unistd.h|";
3716 * Machine/OS name selection pattern
3718 #define apzSvr4_ProfilMachs (const char**)NULL
3719 #define SVR4_PROFIL_TEST_CT 0
3720 #define aSvr4_ProfilTests (tTestDesc*)NULL
3723 * Fix Command Arguments for Svr4_Profil
3725 const char* apzSvr4_ProfilPatch[] = { "sed",
3726 "-e", "s/profil(unsigned short \\*, unsigned int, unsigned int, unsigned int)/profil(unsigned short *, size_t, int, unsigned)/",
3729 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3731 * Description of Systypes fix
3733 #define SYSTYPES_FIXIDX 94
3734 tSCC zSystypesName[] =
3738 * File name selection pattern
3740 tSCC zSystypesList[] =
3741 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
3743 * Machine/OS name selection pattern
3745 #define apzSystypesMachs (const char**)NULL
3748 * content selection pattern - do fix if pattern found
3750 tSCC zSystypesSelect0[] =
3751 "typedef[ \t]+[a-z_][ \ta-z_]*[ \t](size|ptrdiff|wchar)_t";
3753 #define SYSTYPES_TEST_CT 1
3754 tTestDesc aSystypesTests[] = {
3755 { TT_EGREP, zSystypesSelect0, (regex_t*)NULL }, };
3758 * Fix Command Arguments for Systypes
3760 const char* apzSystypesPatch[] = { "sed",
3761 "-e", "/^[ \t]*\\*[ \t]*typedef unsigned int size_t;/N",
3762 "-e", "s/^\\([ \t]*\\*[ \t]*typedef unsigned int size_t;\\n[ \t]*\\*\\/\\)/\\1\\\n\
3763 #ifndef __SIZE_TYPE__\\\n\
3764 #define __SIZE_TYPE__ long unsigned int\\\n\
3766 typedef __SIZE_TYPE__ size_t;\\\n\
3768 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/i\\\n\
3769 #ifndef __SIZE_TYPE__\\\n\
3770 #define __SIZE_TYPE__ long unsigned int\\\n\
3772 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/typedef __SIZE_TYPE__ size_t/",
3773 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/i\\\n\
3774 #ifndef __PTRDIFF_TYPE__\\\n\
3775 #define __PTRDIFF_TYPE__ long int\\\n\
3777 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/typedef __PTRDIFF_TYPE__ ptrdiff_t/",
3778 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/i\\\n\
3779 #ifndef __WCHAR_TYPE__\\\n\
3780 #define __WCHAR_TYPE__ int\\\n\
3782 #ifndef __cplusplus\n",
3783 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/a\\\n\
3785 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/typedef __WCHAR_TYPE__ wchar_t/",
3788 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3790 * Description of Systypes_Stdlib_Size_T fix
3792 #define SYSTYPES_STDLIB_SIZE_T_FIXIDX 95
3793 tSCC zSystypes_Stdlib_Size_TName[] =
3794 "systypes_stdlib_size_t";
3797 * File name selection pattern
3799 tSCC zSystypes_Stdlib_Size_TList[] =
3800 "|sys/types.h|stdlib.h|";
3802 * Machine/OS name selection pattern
3804 #define apzSystypes_Stdlib_Size_TMachs (const char**)NULL
3807 * content selection pattern - do fix if pattern found
3809 tSCC zSystypes_Stdlib_Size_TSelect0[] =
3810 "typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t";
3813 * content bypass pattern - skip fix if pattern found
3815 tSCC zSystypes_Stdlib_Size_TBypass0[] =
3816 "_(GCC|BSD)_SIZE_T";
3818 #define SYSTYPES_STDLIB_SIZE_T_TEST_CT 2
3819 tTestDesc aSystypes_Stdlib_Size_TTests[] = {
3820 { TT_NEGREP, zSystypes_Stdlib_Size_TBypass0, (regex_t*)NULL },
3821 { TT_EGREP, zSystypes_Stdlib_Size_TSelect0, (regex_t*)NULL }, };
3824 * Fix Command Arguments for Systypes_Stdlib_Size_T
3826 const char* apzSystypes_Stdlib_Size_TPatch[] = { "sed",
3827 "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/i\\\n\
3828 #ifndef _GCC_SIZE_T\\\n\
3829 #define _GCC_SIZE_T\n",
3830 "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/a\\\n\
3834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3836 * Description of Sysv68_String fix
3838 #define SYSV68_STRING_FIXIDX 96
3839 tSCC zSysv68_StringName[] =
3843 * File name selection pattern
3845 tSCC zSysv68_StringList[] =
3848 * Machine/OS name selection pattern
3850 #define apzSysv68_StringMachs (const char**)NULL
3851 #define SYSV68_STRING_TEST_CT 0
3852 #define aSysv68_StringTests (tTestDesc*)NULL
3855 * Fix Command Arguments for Sysv68_String
3857 const char* apzSysv68_StringPatch[] = { "sed",
3858 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
3859 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
3860 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
3861 "-e", "/^extern char$/N",
3862 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
3863 "-e", "/^\tstrncmp(),$/N",
3864 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
3865 extern unsigned int\\\n\
3867 "-e", "/^extern int$/N",
3868 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
3871 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3873 * Description of Sysz_Stdlib_For_Sun fix
3875 #define SYSZ_STDLIB_FOR_SUN_FIXIDX 97
3876 tSCC zSysz_Stdlib_For_SunName[] =
3877 "sysz_stdlib_for_sun";
3880 * File name selection pattern
3882 tSCC zSysz_Stdlib_For_SunList[] =
3885 * Machine/OS name selection pattern
3887 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
3888 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 0
3889 #define aSysz_Stdlib_For_SunTests (tTestDesc*)NULL
3892 * Fix Command Arguments for Sysz_Stdlib_For_Sun
3894 const char* apzSysz_Stdlib_For_SunPatch[] = { "sed",
3895 "-e", "s/int\tabort/void\tabort/g",
3896 "-e", "s/int\tfree/void\tfree/g",
3897 "-e", "s/char[ \t]*\\*[ \t]*calloc/void \\*\tcalloc/g",
3898 "-e", "s/char[ \t]*\\*[ \t]*malloc/void \\*\tmalloc/g",
3899 "-e", "s/char[ \t]*\\*[ \t]*realloc/void \\*\trealloc/g",
3900 "-e", "s/char[ \t]*\\*[ \t]*bsearch/void \\*\tbsearch/g",
3901 "-e", "s/int[ \t][ \t]*exit/void\texit/g",
3904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3906 * Description of Sysz_Stdtypes_For_Sun fix
3908 #define SYSZ_STDTYPES_FOR_SUN_FIXIDX 98
3909 tSCC zSysz_Stdtypes_For_SunName[] =
3910 "sysz_stdtypes_for_sun";
3913 * File name selection pattern
3915 tSCC zSysz_Stdtypes_For_SunList[] =
3918 * Machine/OS name selection pattern
3920 #define apzSysz_Stdtypes_For_SunMachs (const char**)NULL
3921 #define SYSZ_STDTYPES_FOR_SUN_TEST_CT 0
3922 #define aSysz_Stdtypes_For_SunTests (tTestDesc*)NULL
3925 * Fix Command Arguments for Sysz_Stdtypes_For_Sun
3927 const char* apzSysz_Stdtypes_For_SunPatch[] = { "sed",
3928 "-e", "/[\t ]size_t.*;/i\\\n\
3929 #ifndef _GCC_SIZE_T\\\n\
3930 #define _GCC_SIZE_T\n",
3931 "-e", "/[\t ]size_t.*;/a\\\n\
3933 "-e", "/[\t ]ptrdiff_t.*;/i\\\n\
3934 #ifndef _GCC_PTRDIFF_T\\\n\
3935 #define _GCC_PTRDIFF_T\n",
3936 "-e", "/[\t ]ptrdiff_t.*;/a\\\n\
3938 "-e", "/[\t ]wchar_t.*;/i\\\n\
3939 #ifndef _GCC_WCHAR_T\\\n\
3940 #define _GCC_WCHAR_T\n",
3941 "-e", "/[\t ]wchar_t.*;/a\\\n\
3945 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3947 * Description of Tinfo_Cplusplus fix
3949 #define TINFO_CPLUSPLUS_FIXIDX 99
3950 tSCC zTinfo_CplusplusName[] =
3954 * File name selection pattern
3956 tSCC zTinfo_CplusplusList[] =
3959 * Machine/OS name selection pattern
3961 #define apzTinfo_CplusplusMachs (const char**)NULL
3964 * content selection pattern - do fix if pattern found
3966 tSCC zTinfo_CplusplusSelect0[] =
3969 #define TINFO_CPLUSPLUS_TEST_CT 1
3970 tTestDesc aTinfo_CplusplusTests[] = {
3971 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
3974 * Fix Command Arguments for Tinfo_Cplusplus
3976 const char* apzTinfo_CplusplusPatch[] = { "sed",
3977 "-e", "s/[ \t]_cplusplus/ __cplusplus/",
3980 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3982 * Description of Ultrix_Fix_Fixproto fix
3984 #define ULTRIX_FIX_FIXPROTO_FIXIDX 100
3985 tSCC zUltrix_Fix_FixprotoName[] =
3986 "ultrix_fix_fixproto";
3989 * File name selection pattern
3991 tSCC zUltrix_Fix_FixprotoList[] =
3994 * Machine/OS name selection pattern
3996 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
3999 * content selection pattern - do fix if pattern found
4001 tSCC zUltrix_Fix_FixprotoSelect0[] =
4004 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4005 tTestDesc aUltrix_Fix_FixprotoTests[] = {
4006 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4009 * Fix Command Arguments for Ultrix_Fix_Fixproto
4011 const char* apzUltrix_Fix_FixprotoPatch[] = { "sed",
4012 "-e", "/^[ \t]*extern[ \t]*int[ \t]*uname();$/i\\\n\
4016 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4018 * Description of Ultrix_Atof_Param fix
4020 #define ULTRIX_ATOF_PARAM_FIXIDX 101
4021 tSCC zUltrix_Atof_ParamName[] =
4022 "ultrix_atof_param";
4025 * File name selection pattern
4027 tSCC zUltrix_Atof_ParamList[] =
4030 * Machine/OS name selection pattern
4032 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4035 * content selection pattern - do fix if pattern found
4037 tSCC zUltrix_Atof_ParamSelect0[] =
4038 "atof\\([ \t]*char";
4040 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4041 tTestDesc aUltrix_Atof_ParamTests[] = {
4042 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4045 * Fix Command Arguments for Ultrix_Atof_Param
4047 const char* apzUltrix_Atof_ParamPatch[] = { "sed",
4048 "-e", "s@atof(\\([ \t]*char[ \t]*\\*[^)]*\\))@atof(const \\1)@",
4051 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4053 * Description of Ultrix_Const fix
4055 #define ULTRIX_CONST_FIXIDX 102
4056 tSCC zUltrix_ConstName[] =
4060 * File name selection pattern
4062 tSCC zUltrix_ConstList[] =
4065 * Machine/OS name selection pattern
4067 #define apzUltrix_ConstMachs (const char**)NULL
4068 #define ULTRIX_CONST_TEST_CT 0
4069 #define aUltrix_ConstTests (tTestDesc*)NULL
4072 * Fix Command Arguments for Ultrix_Const
4074 const char* apzUltrix_ConstPatch[] = { "sed",
4075 "-e", "s@perror( char \\*__s );@perror( const char *__s );@",
4076 "-e", "s@fputs( char \\*__s,@fputs( const char *__s,@",
4077 "-e", "s@fopen( char \\*__filename, char \\*__type );@fopen( const char *__filename, const char *__type );@",
4078 "-e", "s@fwrite( void \\*__ptr,@fwrite( const void *__ptr,@",
4079 "-e", "s@fscanf( FILE \\*__stream, char \\*__format,@fscanf( FILE *__stream, const char *__format,@",
4080 "-e", "s@scanf( char \\*__format,@scanf( const char *__format,@",
4081 "-e", "s@sscanf( char \\*__s, char \\*__format,@sscanf( const char *__s, const char *__format,@",
4082 "-e", "s@popen(char \\*, char \\*);@popen(const char *, const char *);@",
4083 "-e", "s@tempnam(char\\*,char\\*);@tempnam(const char*,const char*);@",
4086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4088 * Description of Ultrix_Ifdef fix
4090 #define ULTRIX_IFDEF_FIXIDX 103
4091 tSCC zUltrix_IfdefName[] =
4095 * File name selection pattern
4097 tSCC zUltrix_IfdefList[] =
4100 * Machine/OS name selection pattern
4102 #define apzUltrix_IfdefMachs (const char**)NULL
4105 * content selection pattern - do fix if pattern found
4107 tSCC zUltrix_IfdefSelect0[] =
4108 "#ifdef KERNEL[ \t]*[^ \t]";
4110 #define ULTRIX_IFDEF_TEST_CT 1
4111 tTestDesc aUltrix_IfdefTests[] = {
4112 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4115 * Fix Command Arguments for Ultrix_Ifdef
4117 const char* apzUltrix_IfdefPatch[] = { "sed",
4118 "-e", "s/#ifdef KERNEL/#if defined(KERNEL)/",
4121 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4123 * Description of Ultrix_Nested_Cmnt fix
4125 #define ULTRIX_NESTED_CMNT_FIXIDX 104
4126 tSCC zUltrix_Nested_CmntName[] =
4127 "ultrix_nested_cmnt";
4130 * File name selection pattern
4132 tSCC zUltrix_Nested_CmntList[] =
4135 * Machine/OS name selection pattern
4137 #define apzUltrix_Nested_CmntMachs (const char**)NULL
4138 #define ULTRIX_NESTED_CMNT_TEST_CT 0
4139 #define aUltrix_Nested_CmntTests (tTestDesc*)NULL
4142 * Fix Command Arguments for Ultrix_Nested_Cmnt
4144 const char* apzUltrix_Nested_CmntPatch[] = { "sed",
4145 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
4148 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4150 * Description of Ultrix_Static fix
4152 #define ULTRIX_STATIC_FIXIDX 105
4153 tSCC zUltrix_StaticName[] =
4157 * File name selection pattern
4159 tSCC zUltrix_StaticList[] =
4162 * Machine/OS name selection pattern
4164 #define apzUltrix_StaticMachs (const char**)NULL
4167 * content selection pattern - do fix if pattern found
4169 tSCC zUltrix_StaticSelect0[] =
4170 "#include \"r[34]_cpu";
4172 #define ULTRIX_STATIC_TEST_CT 1
4173 tTestDesc aUltrix_StaticTests[] = {
4174 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
4177 * Fix Command Arguments for Ultrix_Static
4179 const char* apzUltrix_StaticPatch[] = { "sed",
4180 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
4181 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
4182 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
4185 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4187 * Description of Undefine_Null fix
4189 #define UNDEFINE_NULL_FIXIDX 106
4190 tSCC zUndefine_NullName[] =
4194 * File name selection pattern
4196 #define zUndefine_NullList (char*)NULL
4198 * Machine/OS name selection pattern
4200 #define apzUndefine_NullMachs (const char**)NULL
4203 * content selection pattern - do fix if pattern found
4205 tSCC zUndefine_NullSelect0[] =
4206 "^#[ \t]*define[ \t]*[ \t]NULL[ \t\r]";
4209 * content bypass pattern - skip fix if pattern found
4211 tSCC zUndefine_NullBypass0[] =
4212 "#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t\r])";
4214 #define UNDEFINE_NULL_TEST_CT 2
4215 tTestDesc aUndefine_NullTests[] = {
4216 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
4217 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
4220 * Fix Command Arguments for Undefine_Null
4222 const char* apzUndefine_NullPatch[] = { "sed",
4223 "-e", "/^#[ \t]*define[ \t][ \t]*NULL[ \t\r]/i\\\n\
4227 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4229 * Description of Unixware7_Byteorder_Fix fix
4231 #define UNIXWARE7_BYTEORDER_FIX_FIXIDX 107
4232 tSCC zUnixware7_Byteorder_FixName[] =
4233 "unixware7_byteorder_fix";
4236 * File name selection pattern
4238 tSCC zUnixware7_Byteorder_FixList[] =
4241 * Machine/OS name selection pattern
4243 tSCC* apzUnixware7_Byteorder_FixMachs[] = {
4245 "i[34567]86-*-sysv5*",
4246 "i[34567]86-*-udk*",
4247 "i[34567]86-*-solaris2.[0-4]",
4248 "powerpcle-*-solaris2.[0-4]",
4249 "sparc-*-solaris2.[0-4]",
4250 (const char*)NULL };
4253 * content selection pattern - do fix if pattern found
4255 tSCC zUnixware7_Byteorder_FixSelect0[] =
4258 #define UNIXWARE7_BYTEORDER_FIX_TEST_CT 1
4259 tTestDesc aUnixware7_Byteorder_FixTests[] = {
4260 { TT_EGREP, zUnixware7_Byteorder_FixSelect0, (regex_t*)NULL }, };
4263 * Fix Command Arguments for Unixware7_Byteorder_Fix
4265 const char* apzUnixware7_Byteorder_FixPatch[] = { "sed",
4266 "-e", "/^extern.*htons.*(in_port_t)/d",
4267 "-e", "/^extern.*ntohs.*(in_port_t)/d",
4270 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4272 * Description of Va_I960_Macro fix
4274 #define VA_I960_MACRO_FIXIDX 108
4275 tSCC zVa_I960_MacroName[] =
4279 * File name selection pattern
4281 tSCC zVa_I960_MacroList[] =
4282 "|arch/i960/archI960.h|";
4284 * Machine/OS name selection pattern
4286 #define apzVa_I960_MacroMachs (const char**)NULL
4289 * content selection pattern - do fix if pattern found
4291 tSCC zVa_I960_MacroSelect0[] =
4292 "__(vsiz|vali|vpad|alignof__)";
4294 #define VA_I960_MACRO_TEST_CT 1
4295 tTestDesc aVa_I960_MacroTests[] = {
4296 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
4299 * Fix Command Arguments for Va_I960_Macro
4301 const char* apzVa_I960_MacroPatch[] = { "sed",
4302 "-e", "s/__vsiz/__vxvsiz/",
4303 "-e", "s/__vali/__vxvali/",
4304 "-e", "s/__vpad/__vxvpad/",
4305 "-e", "s/__alignof__/__vxalignof__/",
4308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4310 * Description of Void_Null fix
4312 #define VOID_NULL_FIXIDX 109
4313 tSCC zVoid_NullName[] =
4317 * File name selection pattern
4319 tSCC zVoid_NullList[] =
4320 "|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|";
4322 * Machine/OS name selection pattern
4324 #define apzVoid_NullMachs (const char**)NULL
4327 * content selection pattern - do fix if pattern found
4329 tSCC zVoid_NullSelect0[] =
4330 "#[ \t]*define[ \t][ \t]*NULL[ \t].*void";
4332 #define VOID_NULL_TEST_CT 1
4333 tTestDesc aVoid_NullTests[] = {
4334 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
4337 * Fix Command Arguments for Void_Null
4339 const char* apzVoid_NullPatch[] = { "sed",
4340 "-e", "s/^#[ \t]*define[ \t]*NULL[ \t]*((void[ \t]*\\*)0)/#define NULL 0/",
4343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4345 * Description of Vxworks_Gcc_Problem fix
4347 #define VXWORKS_GCC_PROBLEM_FIXIDX 110
4348 tSCC zVxworks_Gcc_ProblemName[] =
4349 "vxworks_gcc_problem";
4352 * File name selection pattern
4354 tSCC zVxworks_Gcc_ProblemList[] =
4355 "|types/vxTypesBase.h|";
4357 * Machine/OS name selection pattern
4359 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
4362 * content selection pattern - do fix if pattern found
4364 tSCC zVxworks_Gcc_ProblemSelect0[] =
4365 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
4367 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
4368 tTestDesc aVxworks_Gcc_ProblemTests[] = {
4369 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
4372 * Fix Command Arguments for Vxworks_Gcc_Problem
4374 const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
4375 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
4376 "-e", "/[ \t]size_t/i\\\n\
4377 #ifndef _GCC_SIZE_T\\\n\
4378 #define _GCC_SIZE_T\n",
4379 "-e", "/[ \t]size_t/a\\\n\
4381 "-e", "/[ \t]ptrdiff_t/i\\\n\
4382 #ifndef _GCC_PTRDIFF_T\\\n\
4383 #define _GCC_PTRDIFF_T\n",
4384 "-e", "/[ \t]ptrdiff_t/a\\\n\
4386 "-e", "/[ \t]wchar_t/i\\\n\
4387 #ifndef _GCC_WCHAR_T\\\n\
4388 #define _GCC_WCHAR_T\n",
4389 "-e", "/[ \t]wchar_t/a\\\n\
4393 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4395 * Description of Vxworks_Needs_Vxtypes fix
4397 #define VXWORKS_NEEDS_VXTYPES_FIXIDX 111
4398 tSCC zVxworks_Needs_VxtypesName[] =
4399 "vxworks_needs_vxtypes";
4402 * File name selection pattern
4404 tSCC zVxworks_Needs_VxtypesList[] =
4407 * Machine/OS name selection pattern
4409 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
4412 * content selection pattern - do fix if pattern found
4414 tSCC zVxworks_Needs_VxtypesSelect0[] =
4415 "uint_t[ \t][ \t]*_clocks_per_sec";
4417 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
4418 tTestDesc aVxworks_Needs_VxtypesTests[] = {
4419 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
4422 * Fix Command Arguments for Vxworks_Needs_Vxtypes
4424 const char* apzVxworks_Needs_VxtypesPatch[] = { "sed",
4425 "-e", "s/uint_t/unsigned int/",
4428 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4430 * Description of Vxworks_Needs_Vxworks fix
4432 #define VXWORKS_NEEDS_VXWORKS_FIXIDX 112
4433 tSCC zVxworks_Needs_VxworksName[] =
4434 "vxworks_needs_vxworks";
4437 * File name selection pattern
4439 tSCC zVxworks_Needs_VxworksList[] =
4442 * Machine/OS name selection pattern
4444 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
4447 * content selection pattern - do fix if pattern found
4449 tSCC zVxworks_Needs_VxworksSelect0[] =
4450 "#[ \t]define[ \t][ \t]*__INCstath";
4453 * perform the 'test' shell command - do fix on success
4455 tSCC zVxworks_Needs_VxworksTest0[] =
4456 " -r types/vxTypesOld.h";
4457 tSCC zVxworks_Needs_VxworksTest1[] =
4458 " -n \"`egrep '#include' $file`\"";
4459 tSCC zVxworks_Needs_VxworksTest2[] =
4460 " -n \"`egrep ULONG $file`\"";
4462 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
4463 tTestDesc aVxworks_Needs_VxworksTests[] = {
4464 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
4465 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
4466 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
4467 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
4470 * Fix Command Arguments for Vxworks_Needs_Vxworks
4472 const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
4473 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
4474 #include <types/vxTypesOld.h>\n",
4477 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4479 * Description of Vxworks_Time fix
4481 #define VXWORKS_TIME_FIXIDX 113
4482 tSCC zVxworks_TimeName[] =
4486 * File name selection pattern
4488 tSCC zVxworks_TimeList[] =
4491 * Machine/OS name selection pattern
4493 #define apzVxworks_TimeMachs (const char**)NULL
4496 * content selection pattern - do fix if pattern found
4498 tSCC zVxworks_TimeSelect0[] =
4502 * perform the 'test' shell command - do fix on success
4504 tSCC zVxworks_TimeTest0[] =
4507 #define VXWORKS_TIME_TEST_CT 2
4508 tTestDesc aVxworks_TimeTests[] = {
4509 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
4510 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
4513 * Fix Command Arguments for Vxworks_Time
4515 const char* apzVxworks_TimePatch[] = { "sed",
4516 "-e", "/VOIDFUNCPTR/i\\\n\
4517 #ifndef __gcc_VOIDFUNCPTR_defined\\\n\
4518 #ifdef __cplusplus\\\n\
4519 typedef void (*__gcc_VOIDFUNCPTR) (...);\\\n\
4521 typedef void (*__gcc_VOIDFUNCPTR) ();\\\n\
4523 #define __gcc_VOIDFUNCPTR_defined\\\n\
4525 "-e", "s/VOIDFUNCPTR/__gcc_VOIDFUNCPTR/g",
4528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4530 * Description of X11_Class fix
4532 #define X11_CLASS_FIXIDX 114
4533 tSCC zX11_ClassName[] =
4537 * File name selection pattern
4539 tSCC zX11_ClassList[] =
4542 * Machine/OS name selection pattern
4544 #define apzX11_ClassMachs (const char**)NULL
4547 * content bypass pattern - skip fix if pattern found
4549 tSCC zX11_ClassBypass0[] =
4552 #define X11_CLASS_TEST_CT 1
4553 tTestDesc aX11_ClassTests[] = {
4554 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, };
4557 * Fix Command Arguments for X11_Class
4559 const char* apzX11_ClassPatch[] = { "sed",
4560 "-e", "/char \\*class;/i\\\n\
4561 #ifdef __cplusplus\\\n\
4562 \tchar *c_class;\\\n\
4564 "-e", "/char \\*class;/a\\\n\
4568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4570 * Description of X11_Class_Usage fix
4572 #define X11_CLASS_USAGE_FIXIDX 115
4573 tSCC zX11_Class_UsageName[] =
4577 * File name selection pattern
4579 tSCC zX11_Class_UsageList[] =
4580 "|Xm/BaseClassI.h|";
4582 * Machine/OS name selection pattern
4584 #define apzX11_Class_UsageMachs (const char**)NULL
4587 * content bypass pattern - skip fix if pattern found
4589 tSCC zX11_Class_UsageBypass0[] =
4592 #define X11_CLASS_USAGE_TEST_CT 1
4593 tTestDesc aX11_Class_UsageTests[] = {
4594 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, };
4597 * Fix Command Arguments for X11_Class_Usage
4599 const char* apzX11_Class_UsagePatch[] = { "sed",
4600 "-e", "s/ class[)]/ c_class)/g",
4603 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4605 * Description of X11_New fix
4607 #define X11_NEW_FIXIDX 116
4608 tSCC zX11_NewName[] =
4612 * File name selection pattern
4614 tSCC zX11_NewList[] =
4617 * Machine/OS name selection pattern
4619 #define apzX11_NewMachs (const char**)NULL
4622 * content bypass pattern - skip fix if pattern found
4624 tSCC zX11_NewBypass0[] =
4627 #define X11_NEW_TEST_CT 1
4628 tTestDesc aX11_NewTests[] = {
4629 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
4632 * Fix Command Arguments for X11_New
4634 const char* apzX11_NewPatch[] = { "sed",
4635 "-e", "/Widget\told, new;/i\\\n\
4636 #ifdef __cplusplus\\\n\
4637 \tWidget\told, c_new;\\\n\
4639 "-e", "/Widget\told, new;/a\\\n\
4641 "-e", "s/Widget new,/Widget c_new,/g",
4644 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4646 * Description of X11_Sprintf fix
4648 #define X11_SPRINTF_FIXIDX 117
4649 tSCC zX11_SprintfName[] =
4653 * File name selection pattern
4655 tSCC zX11_SprintfList[] =
4656 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
4658 * Machine/OS name selection pattern
4660 #define apzX11_SprintfMachs (const char**)NULL
4663 * content selection pattern - do fix if pattern found
4665 tSCC zX11_SprintfSelect0[] =
4668 #define X11_SPRINTF_TEST_CT 1
4669 tTestDesc aX11_SprintfTests[] = {
4670 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
4673 * Fix Command Arguments for X11_Sprintf
4675 const char* apzX11_SprintfPatch[] = { "sed",
4676 "-e", "s,^extern char \\*\tsprintf();$,#ifndef __STDC__\\\n\
4677 extern char *\tsprintf();\\\n\
4678 #endif /* !defined __STDC__ */,",
4682 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4686 #define REGEX_COUNT 105
4687 #define MACH_LIST_SIZE_LIMIT 279
4688 #define FIX_COUNT 118
4690 tFixDesc fixDescList[ FIX_COUNT ] = {
4691 { zAaa_Ki_IfaceName, zAaa_Ki_IfaceList,
4692 apzAaa_Ki_IfaceMachs, (regex_t*)NULL,
4693 AAA_KI_IFACE_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4694 aAaa_Ki_IfaceTests, apzAaa_Ki_IfacePatch },
4696 { zAaa_KiName, zAaa_KiList,
4697 apzAaa_KiMachs, (regex_t*)NULL,
4698 AAA_KI_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4699 aAaa_KiTests, apzAaa_KiPatch },
4701 { zAaa_Ki_CallsName, zAaa_Ki_CallsList,
4702 apzAaa_Ki_CallsMachs, (regex_t*)NULL,
4703 AAA_KI_CALLS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4704 aAaa_Ki_CallsTests, apzAaa_Ki_CallsPatch },
4706 { zAaa_Ki_DefsName, zAaa_Ki_DefsList,
4707 apzAaa_Ki_DefsMachs, (regex_t*)NULL,
4708 AAA_KI_DEFS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4709 aAaa_Ki_DefsTests, apzAaa_Ki_DefsPatch },
4711 { zAaa_Bad_FixesName, zAaa_Bad_FixesList,
4712 apzAaa_Bad_FixesMachs, (regex_t*)NULL,
4713 AAA_BAD_FIXES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4714 aAaa_Bad_FixesTests, apzAaa_Bad_FixesPatch },
4716 { zAaa_TimeName, zAaa_TimeList,
4717 apzAaa_TimeMachs, (regex_t*)NULL,
4718 AAA_TIME_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4719 aAaa_TimeTests, apzAaa_TimePatch },
4721 { zAab_Dgux_Int_VarargsName, zAab_Dgux_Int_VarargsList,
4722 apzAab_Dgux_Int_VarargsMachs, (regex_t*)NULL,
4723 AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4724 aAab_Dgux_Int_VarargsTests, apzAab_Dgux_Int_VarargsPatch },
4726 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
4727 apzAab_Fd_Zero_Asm_Posix_Types_HMachs, (regex_t*)NULL,
4728 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4729 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch },
4731 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
4732 apzAab_Fd_Zero_Gnu_Types_HMachs, (regex_t*)NULL,
4733 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4734 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch },
4736 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
4737 apzAab_Fd_Zero_Selectbits_HMachs, (regex_t*)NULL,
4738 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4739 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch },
4741 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
4742 apzAab_Sun_MemcpyMachs, (regex_t*)NULL,
4743 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4744 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch },
4746 { zAab_Svr4_Replace_ByteorderName, zAab_Svr4_Replace_ByteorderList,
4747 apzAab_Svr4_Replace_ByteorderMachs, (regex_t*)NULL,
4748 AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4749 aAab_Svr4_Replace_ByteorderTests, apzAab_Svr4_Replace_ByteorderPatch },
4751 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
4752 apzAab_Ultrix_Ansi_CompatMachs, (regex_t*)NULL,
4753 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4754 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch },
4756 { zAix_SyswaitName, zAix_SyswaitList,
4757 apzAix_SyswaitMachs, (regex_t*)NULL,
4758 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY,
4759 aAix_SyswaitTests, apzAix_SyswaitPatch },
4761 { zAix_VolatileName, zAix_VolatileList,
4762 apzAix_VolatileMachs, (regex_t*)NULL,
4763 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY,
4764 aAix_VolatileTests, apzAix_VolatilePatch },
4766 { zAlpha_GetoptName, zAlpha_GetoptList,
4767 apzAlpha_GetoptMachs, (regex_t*)NULL,
4768 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY,
4769 aAlpha_GetoptTests, apzAlpha_GetoptPatch },
4771 { zAlpha_ParensName, zAlpha_ParensList,
4772 apzAlpha_ParensMachs, (regex_t*)NULL,
4773 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY,
4774 aAlpha_ParensTests, apzAlpha_ParensPatch },
4776 { zAlpha_SbrkName, zAlpha_SbrkList,
4777 apzAlpha_SbrkMachs, (regex_t*)NULL,
4778 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY,
4779 aAlpha_SbrkTests, apzAlpha_SbrkPatch },
4781 { zArm_Norcroft_HintName, zArm_Norcroft_HintList,
4782 apzArm_Norcroft_HintMachs, (regex_t*)NULL,
4783 ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY,
4784 aArm_Norcroft_HintTests, apzArm_Norcroft_HintPatch },
4786 { zArm_WcharName, zArm_WcharList,
4787 apzArm_WcharMachs, (regex_t*)NULL,
4788 ARM_WCHAR_TEST_CT, FD_MACH_ONLY,
4789 aArm_WcharTests, apzArm_WcharPatch },
4791 { zAux_AsmName, zAux_AsmList,
4792 apzAux_AsmMachs, (regex_t*)NULL,
4793 AUX_ASM_TEST_CT, FD_MACH_ONLY,
4794 aAux_AsmTests, apzAux_AsmPatch },
4796 { zAvoid_BoolName, zAvoid_BoolList,
4797 apzAvoid_BoolMachs, (regex_t*)NULL,
4798 AVOID_BOOL_TEST_CT, FD_MACH_ONLY,
4799 aAvoid_BoolTests, apzAvoid_BoolPatch },
4801 { zBad_Struct_TermName, zBad_Struct_TermList,
4802 apzBad_Struct_TermMachs, (regex_t*)NULL,
4803 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY,
4804 aBad_Struct_TermTests, apzBad_Struct_TermPatch },
4806 { zBadquoteName, zBadquoteList,
4807 apzBadquoteMachs, (regex_t*)NULL,
4808 BADQUOTE_TEST_CT, FD_MACH_ONLY,
4809 aBadquoteTests, apzBadquotePatch },
4811 { zBad_LvalName, zBad_LvalList,
4812 apzBad_LvalMachs, (regex_t*)NULL,
4813 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
4814 aBad_LvalTests, apzBad_LvalPatch },
4816 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
4817 apzBroken_Assert_StdioMachs, (regex_t*)NULL,
4818 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY,
4819 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch },
4821 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
4822 apzBroken_Assert_StdlibMachs, (regex_t*)NULL,
4823 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY,
4824 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch },
4826 { zBroken_CabsName, zBroken_CabsList,
4827 apzBroken_CabsMachs, (regex_t*)NULL,
4828 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
4829 aBroken_CabsTests, apzBroken_CabsPatch },
4831 { zDec_Intern_AsmName, zDec_Intern_AsmList,
4832 apzDec_Intern_AsmMachs, (regex_t*)NULL,
4833 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
4834 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch },
4836 { zEcd_CursorName, zEcd_CursorList,
4837 apzEcd_CursorMachs, (regex_t*)NULL,
4838 ECD_CURSOR_TEST_CT, FD_MACH_ONLY,
4839 aEcd_CursorTests, apzEcd_CursorPatch },
4841 { zHp_InlineName, zHp_InlineList,
4842 apzHp_InlineMachs, (regex_t*)NULL,
4843 HP_INLINE_TEST_CT, FD_MACH_ONLY,
4844 aHp_InlineTests, apzHp_InlinePatch },
4846 { zHp_SysfileName, zHp_SysfileList,
4847 apzHp_SysfileMachs, (regex_t*)NULL,
4848 HP_SYSFILE_TEST_CT, FD_MACH_ONLY,
4849 aHp_SysfileTests, apzHp_SysfilePatch },
4851 { zCxx_UnreadyName, zCxx_UnreadyList,
4852 apzCxx_UnreadyMachs, (regex_t*)NULL,
4853 CXX_UNREADY_TEST_CT, FD_MACH_ONLY,
4854 aCxx_UnreadyTests, apzCxx_UnreadyPatch },
4856 { zHpux_MaxintName, zHpux_MaxintList,
4857 apzHpux_MaxintMachs, (regex_t*)NULL,
4858 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY,
4859 aHpux_MaxintTests, apzHpux_MaxintPatch },
4861 { zHpux_SystimeName, zHpux_SystimeList,
4862 apzHpux_SystimeMachs, (regex_t*)NULL,
4863 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY,
4864 aHpux_SystimeTests, apzHpux_SystimePatch },
4866 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
4867 apzHpux8_Bogus_InlinesMachs, (regex_t*)NULL,
4868 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
4869 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch },
4871 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
4872 apzHpux11_Uint32_CMachs, (regex_t*)NULL,
4873 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY,
4874 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch },
4876 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
4877 apzIsc_Omits_With_StdcMachs, (regex_t*)NULL,
4878 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY,
4879 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch },
4881 { zIo_Use_QuotesName, zIo_Use_QuotesList,
4882 apzIo_Use_QuotesMachs, (regex_t*)NULL,
4883 IO_USE_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4884 aIo_Use_QuotesTests, apzIo_Use_QuotesPatch },
4886 { zIo_Def_QuotesName, zIo_Def_QuotesList,
4887 apzIo_Def_QuotesMachs, (regex_t*)NULL,
4888 IO_DEF_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4889 aIo_Def_QuotesTests, apzIo_Def_QuotesPatch },
4891 { zCtrl_Use_QuotesName, zCtrl_Use_QuotesList,
4892 apzCtrl_Use_QuotesMachs, (regex_t*)NULL,
4893 CTRL_USE_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4894 aCtrl_Use_QuotesTests, apzCtrl_Use_QuotesPatch },
4896 { zCtrl_Def_QuotesName, zCtrl_Def_QuotesList,
4897 apzCtrl_Def_QuotesMachs, (regex_t*)NULL,
4898 CTRL_DEF_QUOTES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4899 aCtrl_Def_QuotesTests, apzCtrl_Def_QuotesPatch },
4901 { zIp_Missing_SemiName, zIp_Missing_SemiList,
4902 apzIp_Missing_SemiMachs, (regex_t*)NULL,
4903 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
4904 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch },
4906 { zIrix_Multiline_CmntName, zIrix_Multiline_CmntList,
4907 apzIrix_Multiline_CmntMachs, (regex_t*)NULL,
4908 IRIX_MULTILINE_CMNT_TEST_CT, FD_MACH_ONLY,
4909 aIrix_Multiline_CmntTests, apzIrix_Multiline_CmntPatch },
4911 { zIrix_SockaddrName, zIrix_SockaddrList,
4912 apzIrix_SockaddrMachs, (regex_t*)NULL,
4913 IRIX_SOCKADDR_TEST_CT, FD_MACH_ONLY,
4914 aIrix_SockaddrTests, apzIrix_SockaddrPatch },
4916 { zIrix_Struct__FileName, zIrix_Struct__FileList,
4917 apzIrix_Struct__FileMachs, (regex_t*)NULL,
4918 IRIX_STRUCT__FILE_TEST_CT, FD_MACH_ONLY,
4919 aIrix_Struct__FileTests, apzIrix_Struct__FilePatch },
4921 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
4922 apzIrix_Asm_ApostropheMachs, (regex_t*)NULL,
4923 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY,
4924 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch },
4926 { zIsc_FmodName, zIsc_FmodList,
4927 apzIsc_FmodMachs, (regex_t*)NULL,
4928 ISC_FMOD_TEST_CT, FD_MACH_ONLY,
4929 aIsc_FmodTests, apzIsc_FmodPatch },
4931 { zMotorola_NestedName, zMotorola_NestedList,
4932 apzMotorola_NestedMachs, (regex_t*)NULL,
4933 MOTOROLA_NESTED_TEST_CT, FD_MACH_ONLY,
4934 aMotorola_NestedTests, apzMotorola_NestedPatch },
4936 { zIsc_Sys_LimitsName, zIsc_Sys_LimitsList,
4937 apzIsc_Sys_LimitsMachs, (regex_t*)NULL,
4938 ISC_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
4939 aIsc_Sys_LimitsTests, apzIsc_Sys_LimitsPatch },
4941 { zKandr_ConcatName, zKandr_ConcatList,
4942 apzKandr_ConcatMachs, (regex_t*)NULL,
4943 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY,
4944 aKandr_ConcatTests, apzKandr_ConcatPatch },
4946 { zLimits_IfndefsName, zLimits_IfndefsList,
4947 apzLimits_IfndefsMachs, (regex_t*)NULL,
4948 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY,
4949 aLimits_IfndefsTests, apzLimits_IfndefsPatch },
4951 { zLynx_Void_IntName, zLynx_Void_IntList,
4952 apzLynx_Void_IntMachs, (regex_t*)NULL,
4953 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY,
4954 aLynx_Void_IntTests, apzLynx_Void_IntPatch },
4956 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
4957 apzLynxos_Fcntl_ProtoMachs, (regex_t*)NULL,
4958 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY,
4959 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch },
4961 { zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList,
4962 apzM88k_Bad_Hypot_OptMachs, (regex_t*)NULL,
4963 M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY,
4964 aM88k_Bad_Hypot_OptTests, apzM88k_Bad_Hypot_OptPatch },
4966 { zM88k_Bad_S_IfName, zM88k_Bad_S_IfList,
4967 apzM88k_Bad_S_IfMachs, (regex_t*)NULL,
4968 M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY,
4969 aM88k_Bad_S_IfTests, apzM88k_Bad_S_IfPatch },
4971 { zM88k_Multi_InclName, zM88k_Multi_InclList,
4972 apzM88k_Multi_InclMachs, (regex_t*)NULL,
4973 M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
4974 aM88k_Multi_InclTests, apzM88k_Multi_InclPatch },
4976 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
4977 apzMachine_Ansi_H_Va_ListMachs, (regex_t*)NULL,
4978 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY,
4979 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch },
4981 { zMachine_NameName, zMachine_NameList,
4982 apzMachine_NameMachs, (regex_t*)NULL,
4983 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4984 aMachine_NameTests, apzMachine_NamePatch },
4986 { zMath_ExceptionName, zMath_ExceptionList,
4987 apzMath_ExceptionMachs, (regex_t*)NULL,
4988 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY,
4989 aMath_ExceptionTests, apzMath_ExceptionPatch },
4991 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
4992 apzMath_Huge_Val_From_Dbl_MaxMachs, (regex_t*)NULL,
4993 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
4994 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch },
4996 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
4997 apzMath_Huge_Val_IfndefMachs, (regex_t*)NULL,
4998 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY,
4999 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch },
5001 { zNested_CommentName, zNested_CommentList,
5002 apzNested_CommentMachs, (regex_t*)NULL,
5003 NESTED_COMMENT_TEST_CT, FD_MACH_ONLY,
5004 aNested_CommentTests, apzNested_CommentPatch },
5006 { zNews_Os_RecursionName, zNews_Os_RecursionList,
5007 apzNews_Os_RecursionMachs, (regex_t*)NULL,
5008 NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY,
5009 aNews_Os_RecursionTests, apzNews_Os_RecursionPatch },
5011 { zNext_Math_PrefixName, zNext_Math_PrefixList,
5012 apzNext_Math_PrefixMachs, (regex_t*)NULL,
5013 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY,
5014 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch },
5016 { zNext_TemplateName, zNext_TemplateList,
5017 apzNext_TemplateMachs, (regex_t*)NULL,
5018 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY,
5019 aNext_TemplateTests, apzNext_TemplatePatch },
5021 { zNext_VolitileName, zNext_VolitileList,
5022 apzNext_VolitileMachs, (regex_t*)NULL,
5023 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY,
5024 aNext_VolitileTests, apzNext_VolitilePatch },
5026 { zNext_Wait_UnionName, zNext_Wait_UnionList,
5027 apzNext_Wait_UnionMachs, (regex_t*)NULL,
5028 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY,
5029 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch },
5031 { zNodeent_SyntaxName, zNodeent_SyntaxList,
5032 apzNodeent_SyntaxMachs, (regex_t*)NULL,
5033 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY,
5034 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch },
5036 { zOsf_Namespace_AName, zOsf_Namespace_AList,
5037 apzOsf_Namespace_AMachs, (regex_t*)NULL,
5038 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY,
5039 aOsf_Namespace_ATests, apzOsf_Namespace_APatch },
5041 { zOsf_Namespace_BName, zOsf_Namespace_BList,
5042 apzOsf_Namespace_BMachs, (regex_t*)NULL,
5043 OSF_NAMESPACE_B_TEST_CT, FD_MACH_ONLY,
5044 aOsf_Namespace_BTests, apzOsf_Namespace_BPatch },
5046 { zPthread_Page_SizeName, zPthread_Page_SizeList,
5047 apzPthread_Page_SizeMachs, (regex_t*)NULL,
5048 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY,
5049 aPthread_Page_SizeTests, apzPthread_Page_SizePatch },
5051 { zRead_Ret_TypeName, zRead_Ret_TypeList,
5052 apzRead_Ret_TypeMachs, (regex_t*)NULL,
5053 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY,
5054 aRead_Ret_TypeTests, apzRead_Ret_TypePatch },
5056 { zRs6000_DoubleName, zRs6000_DoubleList,
5057 apzRs6000_DoubleMachs, (regex_t*)NULL,
5058 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY,
5059 aRs6000_DoubleTests, apzRs6000_DoublePatch },
5061 { zRs6000_FchmodName, zRs6000_FchmodList,
5062 apzRs6000_FchmodMachs, (regex_t*)NULL,
5063 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY,
5064 aRs6000_FchmodTests, apzRs6000_FchmodPatch },
5066 { zRs6000_ParamName, zRs6000_ParamList,
5067 apzRs6000_ParamMachs, (regex_t*)NULL,
5068 RS6000_PARAM_TEST_CT, FD_MACH_ONLY,
5069 aRs6000_ParamTests, apzRs6000_ParamPatch },
5071 { zSco_Strict_AnsiName, zSco_Strict_AnsiList,
5072 apzSco_Strict_AnsiMachs, (regex_t*)NULL,
5073 SCO_STRICT_ANSI_TEST_CT, FD_MACH_ONLY,
5074 aSco_Strict_AnsiTests, apzSco_Strict_AnsiPatch },
5076 { zSco_Static_FuncName, zSco_Static_FuncList,
5077 apzSco_Static_FuncMachs, (regex_t*)NULL,
5078 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
5079 aSco_Static_FuncTests, apzSco_Static_FuncPatch },
5081 { zSco_UtimeName, zSco_UtimeList,
5082 apzSco_UtimeMachs, (regex_t*)NULL,
5083 SCO_UTIME_TEST_CT, FD_MACH_ONLY,
5084 aSco_UtimeTests, apzSco_UtimePatch },
5086 { zSony_IncludeName, zSony_IncludeList,
5087 apzSony_IncludeMachs, (regex_t*)NULL,
5088 SONY_INCLUDE_TEST_CT, FD_MACH_ONLY,
5089 aSony_IncludeTests, apzSony_IncludePatch },
5091 { zStatsswtchName, zStatsswtchList,
5092 apzStatsswtchMachs, (regex_t*)NULL,
5093 STATSSWTCH_TEST_CT, FD_MACH_ONLY,
5094 aStatsswtchTests, apzStatsswtchPatch },
5096 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
5097 apzStdio_Stdarg_HMachs, (regex_t*)NULL,
5098 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY,
5099 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch },
5101 { zStdio_Va_ListName, zStdio_Va_ListList,
5102 apzStdio_Va_ListMachs, (regex_t*)NULL,
5103 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
5104 aStdio_Va_ListTests, apzStdio_Va_ListPatch },
5106 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
5107 apzSun_Auth_ProtoMachs, (regex_t*)NULL,
5108 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY,
5109 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch },
5111 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
5112 apzSun_Bogus_IfdefMachs, (regex_t*)NULL,
5113 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY,
5114 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch },
5116 { zSun_Bogus_Ifdef_Sun4cName, zSun_Bogus_Ifdef_Sun4cList,
5117 apzSun_Bogus_Ifdef_Sun4cMachs, (regex_t*)NULL,
5118 SUN_BOGUS_IFDEF_SUN4C_TEST_CT, FD_MACH_ONLY,
5119 aSun_Bogus_Ifdef_Sun4cTests, apzSun_Bogus_Ifdef_Sun4cPatch },
5121 { zSun_CatmacroName, zSun_CatmacroList,
5122 apzSun_CatmacroMachs, (regex_t*)NULL,
5123 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY,
5124 aSun_CatmacroTests, apzSun_CatmacroPatch },
5126 { zSun_MallocName, zSun_MallocList,
5127 apzSun_MallocMachs, (regex_t*)NULL,
5128 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
5129 aSun_MallocTests, apzSun_MallocPatch },
5131 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
5132 apzSun_Rusers_SemiMachs, (regex_t*)NULL,
5133 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
5134 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch },
5136 { zSun_SignalName, zSun_SignalList,
5137 apzSun_SignalMachs, (regex_t*)NULL,
5138 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY,
5139 aSun_SignalTests, apzSun_SignalPatch },
5141 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
5142 apzSunos_Matherr_DeclMachs, (regex_t*)NULL,
5143 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY,
5144 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch },
5146 { zSunos_StrlenName, zSunos_StrlenList,
5147 apzSunos_StrlenMachs, (regex_t*)NULL,
5148 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY,
5149 aSunos_StrlenTests, apzSunos_StrlenPatch },
5151 { zSvr4_GetcwdName, zSvr4_GetcwdList,
5152 apzSvr4_GetcwdMachs, (regex_t*)NULL,
5153 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY,
5154 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch },
5156 { zSvr4_ProfilName, zSvr4_ProfilList,
5157 apzSvr4_ProfilMachs, (regex_t*)NULL,
5158 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY,
5159 aSvr4_ProfilTests, apzSvr4_ProfilPatch },
5161 { zSystypesName, zSystypesList,
5162 apzSystypesMachs, (regex_t*)NULL,
5163 SYSTYPES_TEST_CT, FD_MACH_ONLY,
5164 aSystypesTests, apzSystypesPatch },
5166 { zSystypes_Stdlib_Size_TName, zSystypes_Stdlib_Size_TList,
5167 apzSystypes_Stdlib_Size_TMachs, (regex_t*)NULL,
5168 SYSTYPES_STDLIB_SIZE_T_TEST_CT, FD_MACH_ONLY,
5169 aSystypes_Stdlib_Size_TTests, apzSystypes_Stdlib_Size_TPatch },
5171 { zSysv68_StringName, zSysv68_StringList,
5172 apzSysv68_StringMachs, (regex_t*)NULL,
5173 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
5174 aSysv68_StringTests, apzSysv68_StringPatch },
5176 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
5177 apzSysz_Stdlib_For_SunMachs, (regex_t*)NULL,
5178 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY,
5179 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch },
5181 { zSysz_Stdtypes_For_SunName, zSysz_Stdtypes_For_SunList,
5182 apzSysz_Stdtypes_For_SunMachs, (regex_t*)NULL,
5183 SYSZ_STDTYPES_FOR_SUN_TEST_CT, FD_MACH_ONLY,
5184 aSysz_Stdtypes_For_SunTests, apzSysz_Stdtypes_For_SunPatch },
5186 { zTinfo_CplusplusName, zTinfo_CplusplusList,
5187 apzTinfo_CplusplusMachs, (regex_t*)NULL,
5188 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY,
5189 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch },
5191 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
5192 apzUltrix_Fix_FixprotoMachs, (regex_t*)NULL,
5193 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY,
5194 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch },
5196 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
5197 apzUltrix_Atof_ParamMachs, (regex_t*)NULL,
5198 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY,
5199 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch },
5201 { zUltrix_ConstName, zUltrix_ConstList,
5202 apzUltrix_ConstMachs, (regex_t*)NULL,
5203 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY,
5204 aUltrix_ConstTests, apzUltrix_ConstPatch },
5206 { zUltrix_IfdefName, zUltrix_IfdefList,
5207 apzUltrix_IfdefMachs, (regex_t*)NULL,
5208 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY,
5209 aUltrix_IfdefTests, apzUltrix_IfdefPatch },
5211 { zUltrix_Nested_CmntName, zUltrix_Nested_CmntList,
5212 apzUltrix_Nested_CmntMachs, (regex_t*)NULL,
5213 ULTRIX_NESTED_CMNT_TEST_CT, FD_MACH_ONLY,
5214 aUltrix_Nested_CmntTests, apzUltrix_Nested_CmntPatch },
5216 { zUltrix_StaticName, zUltrix_StaticList,
5217 apzUltrix_StaticMachs, (regex_t*)NULL,
5218 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
5219 aUltrix_StaticTests, apzUltrix_StaticPatch },
5221 { zUndefine_NullName, zUndefine_NullList,
5222 apzUndefine_NullMachs, (regex_t*)NULL,
5223 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY,
5224 aUndefine_NullTests, apzUndefine_NullPatch },
5226 { zUnixware7_Byteorder_FixName, zUnixware7_Byteorder_FixList,
5227 apzUnixware7_Byteorder_FixMachs, (regex_t*)NULL,
5228 UNIXWARE7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY,
5229 aUnixware7_Byteorder_FixTests, apzUnixware7_Byteorder_FixPatch },
5231 { zVa_I960_MacroName, zVa_I960_MacroList,
5232 apzVa_I960_MacroMachs, (regex_t*)NULL,
5233 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY,
5234 aVa_I960_MacroTests, apzVa_I960_MacroPatch },
5236 { zVoid_NullName, zVoid_NullList,
5237 apzVoid_NullMachs, (regex_t*)NULL,
5238 VOID_NULL_TEST_CT, FD_MACH_ONLY,
5239 aVoid_NullTests, apzVoid_NullPatch },
5241 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
5242 apzVxworks_Gcc_ProblemMachs, (regex_t*)NULL,
5243 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
5244 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch },
5246 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
5247 apzVxworks_Needs_VxtypesMachs, (regex_t*)NULL,
5248 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY,
5249 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch },
5251 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
5252 apzVxworks_Needs_VxworksMachs, (regex_t*)NULL,
5253 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
5254 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch },
5256 { zVxworks_TimeName, zVxworks_TimeList,
5257 apzVxworks_TimeMachs, (regex_t*)NULL,
5258 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY,
5259 aVxworks_TimeTests, apzVxworks_TimePatch },
5261 { zX11_ClassName, zX11_ClassList,
5262 apzX11_ClassMachs, (regex_t*)NULL,
5263 X11_CLASS_TEST_CT, FD_MACH_ONLY,
5264 aX11_ClassTests, apzX11_ClassPatch },
5266 { zX11_Class_UsageName, zX11_Class_UsageList,
5267 apzX11_Class_UsageMachs, (regex_t*)NULL,
5268 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY,
5269 aX11_Class_UsageTests, apzX11_Class_UsagePatch },
5271 { zX11_NewName, zX11_NewList,
5272 apzX11_NewMachs, (regex_t*)NULL,
5273 X11_NEW_TEST_CT, FD_MACH_ONLY,
5274 aX11_NewTests, apzX11_NewPatch },
5276 { zX11_SprintfName, zX11_SprintfList,
5277 apzX11_SprintfMachs, (regex_t*)NULL,
5278 X11_SPRINTF_TEST_CT, FD_MACH_ONLY,
5279 aX11_SprintfTests, apzX11_SprintfPatch }