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[] =
757 "^extern pid_t wait3\\(\\);\n";
758 tSCC zAix_SyswaitSelect1[] =
761 #define AIX_SYSWAIT_TEST_CT 2
762 tTestDesc aAix_SyswaitTests[] = {
763 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
764 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
767 * Fix Command Arguments for Aix_Syswait
769 const char* apzAix_SyswaitPatch[] = {
775 /* * * * * * * * * * * * * * * * * * * * * * * * * *
777 * Description of Aix_Volatile fix
779 #define AIX_VOLATILE_FIXIDX 14
780 tSCC zAix_VolatileName[] =
784 * File name selection pattern
786 tSCC zAix_VolatileList[] =
789 * Machine/OS name selection pattern
791 #define apzAix_VolatileMachs (const char**)NULL
794 * content selection pattern - do fix if pattern found
796 tSCC zAix_VolatileSelect0[] =
797 "typedef volatile int sig_atomic_t";
799 #define AIX_VOLATILE_TEST_CT 1
800 tTestDesc aAix_VolatileTests[] = {
801 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
804 * Fix Command Arguments for Aix_Volatile
806 const char* apzAix_VolatilePatch[] = { "sed",
807 "-e", "s/typedef volatile int sig_atomic_t/typedef int sig_atomic_t/",
810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
812 * Description of Alpha_Getopt fix
814 #define ALPHA_GETOPT_FIXIDX 15
815 tSCC zAlpha_GetoptName[] =
819 * File name selection pattern
821 tSCC zAlpha_GetoptList[] =
822 "|stdio.h|stdlib.h|";
824 * Machine/OS name selection pattern
826 #define apzAlpha_GetoptMachs (const char**)NULL
829 * content selection pattern - do fix if pattern found
831 tSCC zAlpha_GetoptSelect0[] =
832 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
834 #define ALPHA_GETOPT_TEST_CT 1
835 tTestDesc aAlpha_GetoptTests[] = {
836 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
839 * Fix Command Arguments for Alpha_Getopt
841 const char* apzAlpha_GetoptPatch[] = { "sed",
842 "-e", "s/getopt(int, char \\*\\[\\],[ ]*char \\*)/getopt(int, char *const[], const char *)/",
845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
847 * Description of Alpha_Parens fix
849 #define ALPHA_PARENS_FIXIDX 16
850 tSCC zAlpha_ParensName[] =
854 * File name selection pattern
856 tSCC zAlpha_ParensList[] =
859 * Machine/OS name selection pattern
861 #define apzAlpha_ParensMachs (const char**)NULL
864 * content selection pattern - do fix if pattern found
866 tSCC zAlpha_ParensSelect0[] =
867 "#ifndef\\(__mips64\\)";
869 #define ALPHA_PARENS_TEST_CT 1
870 tTestDesc aAlpha_ParensTests[] = {
871 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
874 * Fix Command Arguments for Alpha_Parens
876 const char* apzAlpha_ParensPatch[] = { "sed",
877 "-e", "s/#ifndef(__mips64)/#ifndef __mips64/",
880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
882 * Description of Alpha_Sbrk fix
884 #define ALPHA_SBRK_FIXIDX 17
885 tSCC zAlpha_SbrkName[] =
889 * File name selection pattern
891 tSCC zAlpha_SbrkList[] =
894 * Machine/OS name selection pattern
896 #define apzAlpha_SbrkMachs (const char**)NULL
899 * content selection pattern - do fix if pattern found
901 tSCC zAlpha_SbrkSelect0[] =
902 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
904 #define ALPHA_SBRK_TEST_CT 1
905 tTestDesc aAlpha_SbrkTests[] = {
906 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
909 * Fix Command Arguments for Alpha_Sbrk
911 const char* apzAlpha_SbrkPatch[] = { "sed",
912 "-e", "s/char\\([ \t]*\\*[\t ]*sbrk[ \t]*(\\)/void\\1/",
915 /* * * * * * * * * * * * * * * * * * * * * * * * * *
917 * Description of Arm_Norcroft_Hint fix
919 #define ARM_NORCROFT_HINT_FIXIDX 18
920 tSCC zArm_Norcroft_HintName[] =
924 * File name selection pattern
926 tSCC zArm_Norcroft_HintList[] =
929 * Machine/OS name selection pattern
931 #define apzArm_Norcroft_HintMachs (const char**)NULL
934 * content selection pattern - do fix if pattern found
936 tSCC zArm_Norcroft_HintSelect0[] =
939 #define ARM_NORCROFT_HINT_TEST_CT 1
940 tTestDesc aArm_Norcroft_HintTests[] = {
941 { TT_EGREP, zArm_Norcroft_HintSelect0, (regex_t*)NULL }, };
944 * Fix Command Arguments for Arm_Norcroft_Hint
946 const char* apzArm_Norcroft_HintPatch[] = { "sed",
947 "-e", "s/___type p_type/p_type/",
950 /* * * * * * * * * * * * * * * * * * * * * * * * * *
952 * Description of Arm_Wchar fix
954 #define ARM_WCHAR_FIXIDX 19
955 tSCC zArm_WcharName[] =
959 * File name selection pattern
961 tSCC zArm_WcharList[] =
964 * Machine/OS name selection pattern
966 #define apzArm_WcharMachs (const char**)NULL
969 * content selection pattern - do fix if pattern found
971 tSCC zArm_WcharSelect0[] =
972 "#[ \t]*define[ \t]*__wchar_t";
974 #define ARM_WCHAR_TEST_CT 1
975 tTestDesc aArm_WcharTests[] = {
976 { TT_EGREP, zArm_WcharSelect0, (regex_t*)NULL }, };
979 * Fix Command Arguments for Arm_Wchar
981 const char* apzArm_WcharPatch[] = { "sed",
982 "-e", "s/\\(#[ \t]*ifndef[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",
983 "-e", "s/\\(#[ \t]*define[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",
986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
988 * Description of Aux_Asm fix
990 #define AUX_ASM_FIXIDX 20
991 tSCC zAux_AsmName[] =
995 * File name selection pattern
997 tSCC zAux_AsmList[] =
1000 * Machine/OS name selection pattern
1002 #define apzAux_AsmMachs (const char**)NULL
1005 * content selection pattern - do fix if pattern found
1007 tSCC zAux_AsmSelect0[] =
1010 #define AUX_ASM_TEST_CT 1
1011 tTestDesc aAux_AsmTests[] = {
1012 { TT_EGREP, zAux_AsmSelect0, (regex_t*)NULL }, };
1015 * Fix Command Arguments for Aux_Asm
1017 const char* apzAux_AsmPatch[] = { "sed",
1018 "-e", "s|#ifndef NOINLINE|#if !defined(NOINLINE) \\&\\& !defined(__GNUC__)|",
1021 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1023 * Description of Avoid_Bool fix
1025 #define AVOID_BOOL_FIXIDX 21
1026 tSCC zAvoid_BoolName[] =
1030 * File name selection pattern
1032 tSCC zAvoid_BoolList[] =
1033 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1035 * Machine/OS name selection pattern
1037 #define apzAvoid_BoolMachs (const char**)NULL
1040 * content selection pattern - do fix if pattern found
1042 tSCC zAvoid_BoolSelect0[] =
1043 "char[ \t]+bool|bool[ \t]+char";
1046 * content bypass pattern - skip fix if pattern found
1048 tSCC zAvoid_BoolBypass0[] =
1049 "we must use the C\\+\\+ compiler's type";
1051 #define AVOID_BOOL_TEST_CT 2
1052 tTestDesc aAvoid_BoolTests[] = {
1053 { TT_NEGREP, zAvoid_BoolBypass0, (regex_t*)NULL },
1054 { TT_EGREP, zAvoid_BoolSelect0, (regex_t*)NULL }, };
1057 * Fix Command Arguments for Avoid_Bool
1059 const char* apzAvoid_BoolPatch[] = { "sed",
1060 "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/i\\\n\
1061 #ifndef __cplusplus\n",
1062 "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/a\\\n\
1064 "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/i\\\n\
1065 #ifndef __cplusplus\n",
1066 "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/a\\\n\
1068 "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/i\\\n\
1069 #ifndef __cplusplus\n",
1070 "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/a\\\n\
1072 "-e", "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/i\\\n\
1073 #ifndef __cplusplus\n",
1074 "-e", "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/a\\\n\
1076 "-e", "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/i\\\n\
1077 #ifndef __cplusplus\n",
1078 "-e", "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/a\\\n\
1082 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1084 * Description of Bad_Struct_Term fix
1086 #define BAD_STRUCT_TERM_FIXIDX 22
1087 tSCC zBad_Struct_TermName[] =
1091 * File name selection pattern
1093 tSCC zBad_Struct_TermList[] =
1096 * Machine/OS name selection pattern
1098 #define apzBad_Struct_TermMachs (const char**)NULL
1101 * content selection pattern - do fix if pattern found
1103 tSCC zBad_Struct_TermSelect0[] =
1104 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1106 #define BAD_STRUCT_TERM_TEST_CT 1
1107 tTestDesc aBad_Struct_TermTests[] = {
1108 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1111 * Fix Command Arguments for Bad_Struct_Term
1113 const char* apzBad_Struct_TermPatch[] = { "sed",
1114 "-e", "s/^[ \t]*typedef[ \t][ \t]*\\(struct[ \t][ \t]*term[ \t]*;[ \t]*\\)$/\\1/",
1117 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1119 * Description of Badquote fix
1121 #define BADQUOTE_FIXIDX 23
1122 tSCC zBadquoteName[] =
1126 * File name selection pattern
1128 tSCC zBadquoteList[] =
1129 "|sundev/vuid_event.h|";
1131 * Machine/OS name selection pattern
1133 #define apzBadquoteMachs (const char**)NULL
1134 #define BADQUOTE_TEST_CT 0
1135 #define aBadquoteTests (tTestDesc*)NULL
1138 * Fix Command Arguments for Badquote
1140 const char* apzBadquotePatch[] = { "sed",
1141 "-e", "s/doesn't/does not/",
1144 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1146 * Description of Bad_Lval fix
1148 #define BAD_LVAL_FIXIDX 24
1149 tSCC zBad_LvalName[] =
1153 * File name selection pattern
1155 tSCC zBad_LvalList[] =
1156 "|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|";
1158 * Machine/OS name selection pattern
1160 #define apzBad_LvalMachs (const char**)NULL
1163 * content selection pattern - do fix if pattern found
1165 tSCC zBad_LvalSelect0[] =
1166 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1168 #define BAD_LVAL_TEST_CT 1
1169 tTestDesc aBad_LvalTests[] = {
1170 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
1173 * Fix Command Arguments for Bad_Lval
1175 const char* apzBad_LvalPatch[] = { "sed",
1176 "-e", "s/^[ \t]*#[ \t]*define[ \t]+\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1181 * Description of Broken_Assert_Stdio fix
1183 #define BROKEN_ASSERT_STDIO_FIXIDX 25
1184 tSCC zBroken_Assert_StdioName[] =
1185 "broken_assert_stdio";
1188 * File name selection pattern
1190 tSCC zBroken_Assert_StdioList[] =
1193 * Machine/OS name selection pattern
1195 #define apzBroken_Assert_StdioMachs (const char**)NULL
1198 * content selection pattern - do fix if pattern found
1200 tSCC zBroken_Assert_StdioSelect0[] =
1204 * content bypass pattern - skip fix if pattern found
1206 tSCC zBroken_Assert_StdioBypass0[] =
1207 "include.*stdio\\.h";
1209 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1210 tTestDesc aBroken_Assert_StdioTests[] = {
1211 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1212 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1215 * Fix Command Arguments for Broken_Assert_Stdio
1217 const char* apzBroken_Assert_StdioPatch[] = { "sed",
1219 #include <stdio.h>\n",
1222 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1224 * Description of Broken_Assert_Stdlib fix
1226 #define BROKEN_ASSERT_STDLIB_FIXIDX 26
1227 tSCC zBroken_Assert_StdlibName[] =
1228 "broken_assert_stdlib";
1231 * File name selection pattern
1233 tSCC zBroken_Assert_StdlibList[] =
1236 * Machine/OS name selection pattern
1238 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1241 * content selection pattern - do fix if pattern found
1243 tSCC zBroken_Assert_StdlibSelect0[] =
1244 "exit *\\(|abort *\\(";
1247 * content bypass pattern - skip fix if pattern found
1249 tSCC zBroken_Assert_StdlibBypass0[] =
1250 "include.*stdlib\\.h";
1252 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1253 tTestDesc aBroken_Assert_StdlibTests[] = {
1254 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1255 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1258 * Fix Command Arguments for Broken_Assert_Stdlib
1260 const char* apzBroken_Assert_StdlibPatch[] = { "sed",
1262 #ifdef __cplusplus\\\n\
1263 #include <stdlib.h>\\\n\
1264 #endif /* BROKEN_ASSERT_STDLIB_CHECK fix stamp */\n",
1267 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1269 * Description of Broken_Cabs fix
1271 #define BROKEN_CABS_FIXIDX 27
1272 tSCC zBroken_CabsName[] =
1276 * File name selection pattern
1278 tSCC zBroken_CabsList[] =
1281 * Machine/OS name selection pattern
1283 #define apzBroken_CabsMachs (const char**)NULL
1286 * content selection pattern - do fix if pattern found
1288 tSCC zBroken_CabsSelect0[] =
1289 "^extern double cabs";
1291 #define BROKEN_CABS_TEST_CT 1
1292 tTestDesc aBroken_CabsTests[] = {
1293 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1296 * Fix Command Arguments for Broken_Cabs
1298 const char* apzBroken_CabsPatch[] = { "sed",
1299 "-e", "/^extern double cabs();/d",
1300 "-e", "/^extern double cabs(struct dbl_hypot);/d",
1303 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1305 * Description of Dec_Intern_Asm fix
1307 #define DEC_INTERN_ASM_FIXIDX 28
1308 tSCC zDec_Intern_AsmName[] =
1312 * File name selection pattern
1314 tSCC zDec_Intern_AsmList[] =
1317 * Machine/OS name selection pattern
1319 #define apzDec_Intern_AsmMachs (const char**)NULL
1320 #define DEC_INTERN_ASM_TEST_CT 0
1321 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1324 * Fix Command Arguments for Dec_Intern_Asm
1326 const char* apzDec_Intern_AsmPatch[] = { "sed",
1327 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1329 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1333 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1335 * Description of Ecd_Cursor fix
1337 #define ECD_CURSOR_FIXIDX 29
1338 tSCC zEcd_CursorName[] =
1342 * File name selection pattern
1344 tSCC zEcd_CursorList[] =
1345 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1347 * Machine/OS name selection pattern
1349 #define apzEcd_CursorMachs (const char**)NULL
1350 #define ECD_CURSOR_TEST_CT 0
1351 #define aEcd_CursorTests (tTestDesc*)NULL
1354 * Fix Command Arguments for Ecd_Cursor
1356 const char* apzEcd_CursorPatch[] = { "sed",
1357 "-e", "s/ecd.cursor/ecd_cursor/",
1360 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1362 * Description of Hp_Inline fix
1364 #define HP_INLINE_FIXIDX 30
1365 tSCC zHp_InlineName[] =
1369 * File name selection pattern
1371 tSCC zHp_InlineList[] =
1374 * Machine/OS name selection pattern
1376 #define apzHp_InlineMachs (const char**)NULL
1379 * content selection pattern - do fix if pattern found
1381 tSCC zHp_InlineSelect0[] =
1382 "include.*\"\\.\\./machine/";
1384 #define HP_INLINE_TEST_CT 1
1385 tTestDesc aHp_InlineTests[] = {
1386 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1389 * Fix Command Arguments for Hp_Inline
1391 const char* apzHp_InlinePatch[] = { "sed",
1392 "-e", "s,\"../machine/inline.h\",<machine/inline.h>,",
1393 "-e", "s,\"../machine/psl.h\",<machine/psl.h>,",
1396 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1398 * Description of Hp_Sysfile fix
1400 #define HP_SYSFILE_FIXIDX 31
1401 tSCC zHp_SysfileName[] =
1405 * File name selection pattern
1407 tSCC zHp_SysfileList[] =
1410 * Machine/OS name selection pattern
1412 #define apzHp_SysfileMachs (const char**)NULL
1415 * content selection pattern - do fix if pattern found
1417 tSCC zHp_SysfileSelect0[] =
1420 #define HP_SYSFILE_TEST_CT 1
1421 tTestDesc aHp_SysfileTests[] = {
1422 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1425 * Fix Command Arguments for Hp_Sysfile
1427 const char* apzHp_SysfilePatch[] = { "sed",
1428 "-e", "s/(\\.\\.\\.)/(struct file *, ...)/",
1431 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1433 * Description of Cxx_Unready fix
1435 #define CXX_UNREADY_FIXIDX 32
1436 tSCC zCxx_UnreadyName[] =
1440 * File name selection pattern
1442 tSCC zCxx_UnreadyList[] =
1443 "|sys/mman.h|rpc/types.h|";
1445 * Machine/OS name selection pattern
1447 #define apzCxx_UnreadyMachs (const char**)NULL
1450 * content selection pattern - do fix if pattern found
1452 tSCC zCxx_UnreadySelect0[] =
1456 * content bypass pattern - skip fix if pattern found
1458 tSCC zCxx_UnreadyBypass0[] =
1459 "\"C\"|__BEGIN_DECLS";
1461 #define CXX_UNREADY_TEST_CT 2
1462 tTestDesc aCxx_UnreadyTests[] = {
1463 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1464 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1467 * Fix Command Arguments for Cxx_Unready
1469 const char* apzCxx_UnreadyPatch[] = { "sed",
1471 #ifdef __cplusplus\\\n\
1473 #endif /* CXX_UNREADY_CHECK */\\\n\
1476 #ifdef __cplusplus\\\n\
1478 #endif /* CXX_UNREADY_CHECK */\n",
1481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1483 * Description of Hpux_Maxint fix
1485 #define HPUX_MAXINT_FIXIDX 33
1486 tSCC zHpux_MaxintName[] =
1490 * File name selection pattern
1492 tSCC zHpux_MaxintList[] =
1495 * Machine/OS name selection pattern
1497 #define apzHpux_MaxintMachs (const char**)NULL
1500 * content selection pattern - do fix if pattern found
1502 tSCC zHpux_MaxintSelect0[] =
1503 "^#[ \t]*define[ \t]*MAXINT[ \t]";
1505 #define HPUX_MAXINT_TEST_CT 1
1506 tTestDesc aHpux_MaxintTests[] = {
1507 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
1510 * Fix Command Arguments for Hpux_Maxint
1512 const char* apzHpux_MaxintPatch[] = { "sed",
1513 "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n\
1515 "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n\
1519 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1521 * Description of Hpux_Systime fix
1523 #define HPUX_SYSTIME_FIXIDX 34
1524 tSCC zHpux_SystimeName[] =
1528 * File name selection pattern
1530 tSCC zHpux_SystimeList[] =
1533 * Machine/OS name selection pattern
1535 #define apzHpux_SystimeMachs (const char**)NULL
1538 * content selection pattern - do fix if pattern found
1540 tSCC zHpux_SystimeSelect0[] =
1541 "^extern struct sigevent;";
1543 #define HPUX_SYSTIME_TEST_CT 1
1544 tTestDesc aHpux_SystimeTests[] = {
1545 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
1548 * Fix Command Arguments for Hpux_Systime
1550 const char* apzHpux_SystimePatch[] = { "sed",
1551 "-e", "s/^extern struct sigevent;/struct sigevent;/",
1554 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1556 * Description of Hpux8_Bogus_Inlines fix
1558 #define HPUX8_BOGUS_INLINES_FIXIDX 35
1559 tSCC zHpux8_Bogus_InlinesName[] =
1560 "hpux8_bogus_inlines";
1563 * File name selection pattern
1565 tSCC zHpux8_Bogus_InlinesList[] =
1568 * Machine/OS name selection pattern
1570 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
1573 * content selection pattern - do fix if pattern found
1575 tSCC zHpux8_Bogus_InlinesSelect0[] =
1578 #define HPUX8_BOGUS_INLINES_TEST_CT 1
1579 tTestDesc aHpux8_Bogus_InlinesTests[] = {
1580 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
1583 * Fix Command Arguments for Hpux8_Bogus_Inlines
1585 const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
1586 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
1587 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
1588 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
1589 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
1592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1594 * Description of Hpux11_Uint32_C fix
1596 #define HPUX11_UINT32_C_FIXIDX 36
1597 tSCC zHpux11_Uint32_CName[] =
1601 * File name selection pattern
1603 tSCC zHpux11_Uint32_CList[] =
1606 * Machine/OS name selection pattern
1608 #define apzHpux11_Uint32_CMachs (const char**)NULL
1611 * content selection pattern - do fix if pattern found
1613 tSCC zHpux11_Uint32_CSelect0[] =
1614 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1616 #define HPUX11_UINT32_C_TEST_CT 1
1617 tTestDesc aHpux11_Uint32_CTests[] = {
1618 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1621 * Fix Command Arguments for Hpux11_Uint32_C
1623 const char* apzHpux11_Uint32_CPatch[] = { "sed",
1624 "-e", "s/^#define UINT32_C(__c)\\([ \t]*\\)__CONCAT__(__CONCAT_U__(__c),l)/#define UINT32_C(__c)\\1__CONCAT__(__c,ul)/",
1627 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1629 * Description of Isc_Omits_With_Stdc fix
1631 #define ISC_OMITS_WITH_STDC_FIXIDX 37
1632 tSCC zIsc_Omits_With_StdcName[] =
1633 "isc_omits_with_stdc";
1636 * File name selection pattern
1638 tSCC zIsc_Omits_With_StdcList[] =
1639 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
1641 * Machine/OS name selection pattern
1643 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
1646 * content selection pattern - do fix if pattern found
1648 tSCC zIsc_Omits_With_StdcSelect0[] =
1649 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
1651 #define ISC_OMITS_WITH_STDC_TEST_CT 1
1652 tTestDesc aIsc_Omits_With_StdcTests[] = {
1653 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
1656 * Fix Command Arguments for Isc_Omits_With_Stdc
1658 const char* apzIsc_Omits_With_StdcPatch[] = { "sed",
1659 "-e", "s/!defined(__STDC__) && !defined(_POSIX_SOURCE)/!defined(_POSIX_SOURCE)/",
1662 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1664 * Description of Io_Quotes_Use fix
1666 #define IO_QUOTES_USE_FIXIDX 38
1667 tSCC zIo_Quotes_UseName[] =
1671 * File name selection pattern
1673 #define zIo_Quotes_UseList (char*)NULL
1675 * Machine/OS name selection pattern
1677 #define apzIo_Quotes_UseMachs (const char**)NULL
1680 * content selection pattern - do fix if pattern found
1682 tSCC zIo_Quotes_UseSelect0[] =
1683 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
1685 #define IO_QUOTES_USE_TEST_CT 1
1686 tTestDesc aIo_Quotes_UseTests[] = {
1687 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
1690 * Fix Command Arguments for Io_Quotes_Use
1692 const char* apzIo_Quotes_UsePatch[] = {
1697 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1699 * Description of Io_Quotes_Def fix
1701 #define IO_QUOTES_DEF_FIXIDX 39
1702 tSCC zIo_Quotes_DefName[] =
1706 * File name selection pattern
1708 #define zIo_Quotes_DefList (char*)NULL
1710 * Machine/OS name selection pattern
1712 #define apzIo_Quotes_DefMachs (const char**)NULL
1715 * content selection pattern - do fix if pattern found
1717 tSCC zIo_Quotes_DefSelect0[] =
1718 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\(([a-zA-Z]).*'\\1'";
1720 #define IO_QUOTES_DEF_TEST_CT 1
1721 tTestDesc aIo_Quotes_DefTests[] = {
1722 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
1725 * Fix Command Arguments for Io_Quotes_Def
1727 const char* apzIo_Quotes_DefPatch[] = {
1732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1734 * Description of Ctrl_Quotes_Use fix
1736 #define CTRL_QUOTES_USE_FIXIDX 40
1737 tSCC zCtrl_Quotes_UseName[] =
1741 * File name selection pattern
1743 #define zCtrl_Quotes_UseList (char*)NULL
1745 * Machine/OS name selection pattern
1747 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1750 * content selection pattern - do fix if pattern found
1752 tSCC zCtrl_Quotes_UseSelect0[] =
1753 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1755 #define CTRL_QUOTES_USE_TEST_CT 1
1756 tTestDesc aCtrl_Quotes_UseTests[] = {
1757 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1760 * Fix Command Arguments for Ctrl_Quotes_Use
1762 const char* apzCtrl_Quotes_UsePatch[] = {
1767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1769 * Description of Ctrl_Quotes_Def fix
1771 #define CTRL_QUOTES_DEF_FIXIDX 41
1772 tSCC zCtrl_Quotes_DefName[] =
1776 * File name selection pattern
1778 #define zCtrl_Quotes_DefList (char*)NULL
1780 * Machine/OS name selection pattern
1782 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1785 * content selection pattern - do fix if pattern found
1787 tSCC zCtrl_Quotes_DefSelect0[] =
1788 "define[ \t]+[A-Z0-9_]+CTRL\\(([a-zA-Z]).*'\\1'";
1790 #define CTRL_QUOTES_DEF_TEST_CT 1
1791 tTestDesc aCtrl_Quotes_DefTests[] = {
1792 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1795 * Fix Command Arguments for Ctrl_Quotes_Def
1797 const char* apzCtrl_Quotes_DefPatch[] = {
1802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1804 * Description of Ip_Missing_Semi fix
1806 #define IP_MISSING_SEMI_FIXIDX 42
1807 tSCC zIp_Missing_SemiName[] =
1811 * File name selection pattern
1813 tSCC zIp_Missing_SemiList[] =
1816 * Machine/OS name selection pattern
1818 #define apzIp_Missing_SemiMachs (const char**)NULL
1821 * content selection pattern - do fix if pattern found
1823 tSCC zIp_Missing_SemiSelect0[] =
1826 #define IP_MISSING_SEMI_TEST_CT 1
1827 tTestDesc aIp_Missing_SemiTests[] = {
1828 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
1831 * Fix Command Arguments for Ip_Missing_Semi
1833 const char* apzIp_Missing_SemiPatch[] = { "sed",
1834 "-e", "/^struct/,/^};/s/}$/};/",
1837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1839 * Description of Irix_Multiline_Cmnt fix
1841 #define IRIX_MULTILINE_CMNT_FIXIDX 43
1842 tSCC zIrix_Multiline_CmntName[] =
1843 "irix_multiline_cmnt";
1846 * File name selection pattern
1848 tSCC zIrix_Multiline_CmntList[] =
1851 * Machine/OS name selection pattern
1853 #define apzIrix_Multiline_CmntMachs (const char**)NULL
1854 #define IRIX_MULTILINE_CMNT_TEST_CT 0
1855 #define aIrix_Multiline_CmntTests (tTestDesc*)NULL
1858 * Fix Command Arguments for Irix_Multiline_Cmnt
1860 const char* apzIrix_Multiline_CmntPatch[] = { "sed",
1861 "-e", "s@type of the result@type of the result */@",
1862 "-e", "s@of the sizeof@/* of the sizeof@",
1865 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1867 * Description of Irix_Sockaddr fix
1869 #define IRIX_SOCKADDR_FIXIDX 44
1870 tSCC zIrix_SockaddrName[] =
1874 * File name selection pattern
1876 tSCC zIrix_SockaddrList[] =
1879 * Machine/OS name selection pattern
1881 #define apzIrix_SockaddrMachs (const char**)NULL
1884 * content selection pattern - do fix if pattern found
1886 tSCC zIrix_SockaddrSelect0[] =
1887 "authdes_create.*struct sockaddr";
1890 * content bypass pattern - skip fix if pattern found
1892 tSCC zIrix_SockaddrBypass0[] =
1895 #define IRIX_SOCKADDR_TEST_CT 2
1896 tTestDesc aIrix_SockaddrTests[] = {
1897 { TT_NEGREP, zIrix_SockaddrBypass0, (regex_t*)NULL },
1898 { TT_EGREP, zIrix_SockaddrSelect0, (regex_t*)NULL }, };
1901 * Fix Command Arguments for Irix_Sockaddr
1903 const char* apzIrix_SockaddrPatch[] = { "sed",
1904 "-e", "/authdes_create.*struct sockaddr/i\\\n\
1905 struct sockaddr;\n",
1908 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1910 * Description of Irix_Struct__File fix
1912 #define IRIX_STRUCT__FILE_FIXIDX 45
1913 tSCC zIrix_Struct__FileName[] =
1914 "irix_struct__file";
1917 * File name selection pattern
1919 tSCC zIrix_Struct__FileList[] =
1922 * Machine/OS name selection pattern
1924 #define apzIrix_Struct__FileMachs (const char**)NULL
1925 #define IRIX_STRUCT__FILE_TEST_CT 0
1926 #define aIrix_Struct__FileTests (tTestDesc*)NULL
1929 * Fix Command Arguments for Irix_Struct__File
1931 const char* apzIrix_Struct__FilePatch[] = { "sed",
1932 "-e", "/xdrstdio_create.*struct __file_s/i\\\n\
1933 struct __file_s;\n",
1936 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1938 * Description of Irix_Asm_Apostrophe fix
1940 #define IRIX_ASM_APOSTROPHE_FIXIDX 46
1941 tSCC zIrix_Asm_ApostropheName[] =
1942 "irix_asm_apostrophe";
1945 * File name selection pattern
1947 tSCC zIrix_Asm_ApostropheList[] =
1950 * Machine/OS name selection pattern
1952 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
1955 * content selection pattern - do fix if pattern found
1957 tSCC zIrix_Asm_ApostropheSelect0[] =
1958 "^[ \t]*#.*[Ww]e're";
1960 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
1961 tTestDesc aIrix_Asm_ApostropheTests[] = {
1962 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
1965 * Fix Command Arguments for Irix_Asm_Apostrophe
1967 const char* apzIrix_Asm_ApostrophePatch[] = { "sed",
1968 "-e", "/^[ \t]*#/s/\\([Ww]e\\)'re/\\1 are/",
1971 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1973 * Description of Isc_Fmod fix
1975 #define ISC_FMOD_FIXIDX 47
1976 tSCC zIsc_FmodName[] =
1980 * File name selection pattern
1982 tSCC zIsc_FmodList[] =
1985 * Machine/OS name selection pattern
1987 #define apzIsc_FmodMachs (const char**)NULL
1990 * content selection pattern - do fix if pattern found
1992 tSCC zIsc_FmodSelect0[] =
1995 #define ISC_FMOD_TEST_CT 1
1996 tTestDesc aIsc_FmodTests[] = {
1997 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2000 * Fix Command Arguments for Isc_Fmod
2002 const char* apzIsc_FmodPatch[] = { "sed",
2003 "-e", "s/fmod(double)/fmod(double, double)/",
2006 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2008 * Description of Motorola_Nested fix
2010 #define MOTOROLA_NESTED_FIXIDX 48
2011 tSCC zMotorola_NestedName[] =
2015 * File name selection pattern
2017 tSCC zMotorola_NestedList[] =
2018 "|limits.h|sys/limits.h|";
2020 * Machine/OS name selection pattern
2022 tSCC* apzMotorola_NestedMachs[] = {
2023 "m68k-motorola-sysv*",
2024 (const char*)NULL };
2025 #define MOTOROLA_NESTED_TEST_CT 0
2026 #define aMotorola_NestedTests (tTestDesc*)NULL
2029 * Fix Command Arguments for Motorola_Nested
2031 const char* apzMotorola_NestedPatch[] = { "sed",
2032 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
2033 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.40282346638528860e+38 \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
2036 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2038 * Description of Isc_Sys_Limits fix
2040 #define ISC_SYS_LIMITS_FIXIDX 49
2041 tSCC zIsc_Sys_LimitsName[] =
2045 * File name selection pattern
2047 tSCC zIsc_Sys_LimitsList[] =
2050 * Machine/OS name selection pattern
2052 #define apzIsc_Sys_LimitsMachs (const char**)NULL
2055 * content selection pattern - do fix if pattern found
2057 tSCC zIsc_Sys_LimitsSelect0[] =
2060 #define ISC_SYS_LIMITS_TEST_CT 1
2061 tTestDesc aIsc_Sys_LimitsTests[] = {
2062 { TT_EGREP, zIsc_Sys_LimitsSelect0, (regex_t*)NULL }, };
2065 * Fix Command Arguments for Isc_Sys_Limits
2067 const char* apzIsc_Sys_LimitsPatch[] = { "sed",
2068 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
2069 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
2072 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2074 * Description of Kandr_Concat fix
2076 #define KANDR_CONCAT_FIXIDX 50
2077 tSCC zKandr_ConcatName[] =
2081 * File name selection pattern
2083 tSCC zKandr_ConcatList[] =
2084 "|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|";
2086 * Machine/OS name selection pattern
2088 #define apzKandr_ConcatMachs (const char**)NULL
2091 * content selection pattern - do fix if pattern found
2093 tSCC zKandr_ConcatSelect0[] =
2096 #define KANDR_CONCAT_TEST_CT 1
2097 tTestDesc aKandr_ConcatTests[] = {
2098 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2101 * Fix Command Arguments for Kandr_Concat
2103 const char* apzKandr_ConcatPatch[] = { "sed",
2104 "-e", "s|/\\*\\*/|##|g",
2107 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2109 * Description of Limits_Ifndefs fix
2111 #define LIMITS_IFNDEFS_FIXIDX 51
2112 tSCC zLimits_IfndefsName[] =
2116 * File name selection pattern
2118 tSCC zLimits_IfndefsList[] =
2119 "|limits.h|sys/limits.h|";
2121 * Machine/OS name selection pattern
2123 #define apzLimits_IfndefsMachs (const char**)NULL
2126 * content bypass pattern - skip fix if pattern found
2128 tSCC zLimits_IfndefsBypass0[] =
2129 "ifndef[ \t]+FLT_MIN";
2131 #define LIMITS_IFNDEFS_TEST_CT 1
2132 tTestDesc aLimits_IfndefsTests[] = {
2133 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2136 * Fix Command Arguments for Limits_Ifndefs
2138 const char* apzLimits_IfndefsPatch[] = { "sed",
2139 "-e", "/[ \t]FLT_MIN[ \t]/i\\\n\
2141 "-e", "/[ \t]FLT_MIN[ \t]/a\\\n\
2143 "-e", "/[ \t]FLT_MAX[ \t]/i\\\n\
2145 "-e", "/[ \t]FLT_MAX[ \t]/a\\\n\
2147 "-e", "/[ \t]FLT_DIG[ \t]/i\\\n\
2149 "-e", "/[ \t]FLT_DIG[ \t]/a\\\n\
2151 "-e", "/[ \t]DBL_MIN[ \t]/i\\\n\
2153 "-e", "/[ \t]DBL_MIN[ \t]/a\\\n\
2155 "-e", "/[ \t]DBL_MAX[ \t]/i\\\n\
2157 "-e", "/[ \t]DBL_MAX[ \t]/a\\\n\
2159 "-e", "/[ \t]DBL_DIG[ \t]/i\\\n\
2161 "-e", "/[ \t]DBL_DIG[ \t]/a\\\n\
2163 "-e", "/^\\(\\/\\*#define\tHUGE_VAL\t3\\.[0-9e+]* *\\)\\/\\*/s//\\1/",
2166 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2168 * Description of Lynx_Void_Int fix
2170 #define LYNX_VOID_INT_FIXIDX 52
2171 tSCC zLynx_Void_IntName[] =
2175 * File name selection pattern
2177 tSCC zLynx_Void_IntList[] =
2180 * Machine/OS name selection pattern
2182 #define apzLynx_Void_IntMachs (const char**)NULL
2185 * content selection pattern - do fix if pattern found
2187 tSCC zLynx_Void_IntSelect0[] =
2188 "#[ \t]*define[ \t]+void[ \t]+int";
2190 #define LYNX_VOID_INT_TEST_CT 1
2191 tTestDesc aLynx_Void_IntTests[] = {
2192 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2195 * Fix Command Arguments for Lynx_Void_Int
2197 const char* apzLynx_Void_IntPatch[] = { "sed",
2198 "-e", "/#[ \t]*define[ \t][ \t]*void[ \t]int/d",
2201 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2203 * Description of Lynxos_Fcntl_Proto fix
2205 #define LYNXOS_FCNTL_PROTO_FIXIDX 53
2206 tSCC zLynxos_Fcntl_ProtoName[] =
2207 "lynxos_fcntl_proto";
2210 * File name selection pattern
2212 tSCC zLynxos_Fcntl_ProtoList[] =
2215 * Machine/OS name selection pattern
2217 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2220 * content selection pattern - do fix if pattern found
2222 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2223 "fcntl.*\\(int, int, int\\)";
2225 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2226 tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2227 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2230 * Fix Command Arguments for Lynxos_Fcntl_Proto
2232 const char* apzLynxos_Fcntl_ProtoPatch[] = { "sed",
2233 "-e", "s/\\(fcntl.*(int, int, \\)int)/\\1...)/",
2236 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2238 * Description of M88k_Bad_Hypot_Opt fix
2240 #define M88K_BAD_HYPOT_OPT_FIXIDX 54
2241 tSCC zM88k_Bad_Hypot_OptName[] =
2242 "m88k_bad_hypot_opt";
2245 * File name selection pattern
2247 tSCC zM88k_Bad_Hypot_OptList[] =
2250 * Machine/OS name selection pattern
2252 tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
2253 "m88k-motorola-sysv3*",
2254 (const char*)NULL };
2255 #define M88K_BAD_HYPOT_OPT_TEST_CT 0
2256 #define aM88k_Bad_Hypot_OptTests (tTestDesc*)NULL
2259 * Fix Command Arguments for M88k_Bad_Hypot_Opt
2261 const char* apzM88k_Bad_Hypot_OptPatch[] = { "sed",
2262 "-e", "s/extern double floor(), ceil(), fmod(), fabs();/extern double floor(), ceil(), fmod(), fabs _PARAMS((double));/",
2263 "-e", "/^extern double hypot();$/a\\\n\
2264 \\/* Workaround a stupid Motorola optimization if one\\\n\
2265 of x or y is 0.0 and the other is negative! *\\/\\\n\
2266 #ifdef __STDC__\\\n\
2267 static __inline__ double fake_hypot (double x, double y)\\\n\
2269 static __inline__ double fake_hypot (x, y)\\\n\
2273 \treturn fabs (hypot (x, y));\\\n\
2275 #define hypot\tfake_hypot\n",
2278 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2280 * Description of M88k_Bad_S_If fix
2282 #define M88K_BAD_S_IF_FIXIDX 55
2283 tSCC zM88k_Bad_S_IfName[] =
2287 * File name selection pattern
2289 tSCC zM88k_Bad_S_IfList[] =
2292 * Machine/OS name selection pattern
2294 tSCC* apzM88k_Bad_S_IfMachs[] = {
2296 (const char*)NULL };
2299 * content selection pattern - do fix if pattern found
2301 tSCC zM88k_Bad_S_IfSelect0[] =
2302 "#define[ \t]+S_IS[A-Z]*(m)[ \t]";
2304 #define M88K_BAD_S_IF_TEST_CT 1
2305 tTestDesc aM88k_Bad_S_IfTests[] = {
2306 { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
2309 * Fix Command Arguments for M88k_Bad_S_If
2311 const char* apzM88k_Bad_S_IfPatch[] = { "sed",
2312 "-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)/",
2313 "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(0[0-9]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",
2316 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2318 * Description of M88k_Multi_Incl fix
2320 #define M88K_MULTI_INCL_FIXIDX 56
2321 tSCC zM88k_Multi_InclName[] =
2325 * File name selection pattern
2327 tSCC zM88k_Multi_InclList[] =
2330 * Machine/OS name selection pattern
2332 tSCC* apzM88k_Multi_InclMachs[] = {
2333 "m88k-tektronix-sysv3*",
2334 (const char*)NULL };
2337 * content bypass pattern - skip fix if pattern found
2339 tSCC zM88k_Multi_InclBypass0[] =
2342 #define M88K_MULTI_INCL_TEST_CT 1
2343 tTestDesc aM88k_Multi_InclTests[] = {
2344 { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
2347 * Fix Command Arguments for M88k_Multi_Incl
2349 const char* apzM88k_Multi_InclPatch[] = { "sh", "-c",
2350 "echo Fixing $file, to protect against multiple inclusion. >&2\n\
2351 cpp_wrapper=`echo $file | sed -e 's,\\.,_,g' -e 's,/,_,g'`\n\
2352 echo \"#ifndef __GCC_GOT_${cpp_wrapper}_\"\n\
2353 echo \"#define __GCC_GOT_${cpp_wrapper}_\"\n\
2355 echo \"#endif /* ! __GCC_GOT_${cpp_wrapper}_ */\"",
2358 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2360 * Description of Machine_Ansi_H_Va_List fix
2362 #define MACHINE_ANSI_H_VA_LIST_FIXIDX 57
2363 tSCC zMachine_Ansi_H_Va_ListName[] =
2364 "machine_ansi_h_va_list";
2367 * File name selection pattern
2369 tSCC zMachine_Ansi_H_Va_ListList[] =
2372 * Machine/OS name selection pattern
2374 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2377 * content selection pattern - do fix if pattern found
2379 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2383 * content bypass pattern - skip fix if pattern found
2385 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2386 "__builtin_va_list";
2388 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2389 tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2390 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2391 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2394 * Fix Command Arguments for Machine_Ansi_H_Va_List
2396 const char* apzMachine_Ansi_H_Va_ListPatch[] = { "sed",
2397 "-e", "s/\\(_BSD_VA_LIST_[ \t][ \t]*\\).*$/\\1__builtin_va_list/",
2400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2402 * Description of Machine_Name fix
2404 #define MACHINE_NAME_FIXIDX 58
2405 tSCC zMachine_NameName[] =
2409 * File name selection pattern
2411 #define zMachine_NameList (char*)NULL
2413 * Machine/OS name selection pattern
2415 #define apzMachine_NameMachs (const char**)NULL
2418 * perform the C function call test
2420 tSCC zMachine_NameFTst0[] = "machine_name";
2422 #define MACHINE_NAME_TEST_CT 1
2423 tTestDesc aMachine_NameTests[] = {
2424 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2427 * Fix Command Arguments for Machine_Name
2429 const char* apzMachine_NamePatch[] = {
2433 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2435 * Description of Math_Exception fix
2437 #define MATH_EXCEPTION_FIXIDX 59
2438 tSCC zMath_ExceptionName[] =
2442 * File name selection pattern
2444 tSCC zMath_ExceptionList[] =
2447 * Machine/OS name selection pattern
2449 #define apzMath_ExceptionMachs (const char**)NULL
2452 * content selection pattern - do fix if pattern found
2454 tSCC zMath_ExceptionSelect0[] =
2458 * content bypass pattern - skip fix if pattern found
2460 tSCC zMath_ExceptionBypass0[] =
2461 "We have a problem when using C\\+\\+";
2463 #define MATH_EXCEPTION_TEST_CT 2
2464 tTestDesc aMath_ExceptionTests[] = {
2465 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2466 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2469 * Fix Command Arguments for Math_Exception
2471 const char* apzMath_ExceptionPatch[] = { "sed",
2473 #ifdef __cplusplus\\\n\
2474 #define exception __math_exception\\\n\
2477 #ifdef __cplusplus\\\n\
2478 #undef exception\\\n\
2482 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2484 * Description of Math_Huge_Val_From_Dbl_Max fix
2486 #define MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX 60
2487 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2488 "math_huge_val_from_dbl_max";
2491 * File name selection pattern
2493 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2496 * Machine/OS name selection pattern
2498 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2501 * content selection pattern - do fix if pattern found
2503 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2504 "define[ \t]*HUGE_VAL[ \t]*DBL_MAX";
2507 * content bypass pattern - skip fix if pattern found
2509 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2510 "define[ \t]*DBL_MAX";
2512 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2513 tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2514 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2515 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2518 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2520 const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2521 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h 2>/dev/null`\n\
2523 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2524 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s/DBL_MAX/'\"$dbl_max_def/\"\n\
2529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2531 * Description of Math_Huge_Val_Ifndef fix
2533 #define MATH_HUGE_VAL_IFNDEF_FIXIDX 61
2534 tSCC zMath_Huge_Val_IfndefName[] =
2535 "math_huge_val_ifndef";
2538 * File name selection pattern
2540 tSCC zMath_Huge_Val_IfndefList[] =
2543 * Machine/OS name selection pattern
2545 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2548 * content selection pattern - do fix if pattern found
2550 tSCC zMath_Huge_Val_IfndefSelect0[] =
2551 "define[ \t]*HUGE_VAL";
2553 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2554 tTestDesc aMath_Huge_Val_IfndefTests[] = {
2555 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2558 * Fix Command Arguments for Math_Huge_Val_Ifndef
2560 const char* apzMath_Huge_Val_IfndefPatch[] = { "sed",
2561 "-e", "/define[ \t]HUGE_VAL[ \t]/i\\\n\
2562 #ifndef HUGE_VAL\n",
2563 "-e", "/define[ \t]HUGE_VAL[ \t]/a\\\n\
2567 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2569 * Description of Nested_Comment fix
2571 #define NESTED_COMMENT_FIXIDX 62
2572 tSCC zNested_CommentName[] =
2576 * File name selection pattern
2578 tSCC zNested_CommentList[] =
2581 * Machine/OS name selection pattern
2583 #define apzNested_CommentMachs (const char**)NULL
2584 #define NESTED_COMMENT_TEST_CT 0
2585 #define aNested_CommentTests (tTestDesc*)NULL
2588 * Fix Command Arguments for Nested_Comment
2590 const char* apzNested_CommentPatch[] = { "sed",
2591 "-e", "s@^\\(/\\*.*rpc/auth_des.h>.*\\)/\\*@\\1*/ /*@",
2594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2596 * Description of News_Os_Recursion fix
2598 #define NEWS_OS_RECURSION_FIXIDX 63
2599 tSCC zNews_Os_RecursionName[] =
2600 "news_os_recursion";
2603 * File name selection pattern
2605 tSCC zNews_Os_RecursionList[] =
2608 * Machine/OS name selection pattern
2610 #define apzNews_Os_RecursionMachs (const char**)NULL
2613 * content selection pattern - do fix if pattern found
2615 tSCC zNews_Os_RecursionSelect0[] =
2616 "#include <stdlib.h>";
2618 #define NEWS_OS_RECURSION_TEST_CT 1
2619 tTestDesc aNews_Os_RecursionTests[] = {
2620 { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
2623 * Fix Command Arguments for News_Os_Recursion
2625 const char* apzNews_Os_RecursionPatch[] = { "sed",
2626 "-e", "/^#include <stdlib.h>/i\\\n\
2627 #ifdef BOGUS_RECURSION\n",
2628 "-e", "/^#include <stdlib.h>/a\\\n\
2632 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2634 * Description of Next_Math_Prefix fix
2636 #define NEXT_MATH_PREFIX_FIXIDX 64
2637 tSCC zNext_Math_PrefixName[] =
2641 * File name selection pattern
2643 tSCC zNext_Math_PrefixList[] =
2646 * Machine/OS name selection pattern
2648 #define apzNext_Math_PrefixMachs (const char**)NULL
2651 * content selection pattern - do fix if pattern found
2653 tSCC zNext_Math_PrefixSelect0[] =
2654 "^extern.*double.*__const__.*";
2656 #define NEXT_MATH_PREFIX_TEST_CT 1
2657 tTestDesc aNext_Math_PrefixTests[] = {
2658 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
2661 * Fix Command Arguments for Next_Math_Prefix
2663 const char* apzNext_Math_PrefixPatch[] = { "sed",
2664 "-e", "/^extern.*double.*__const__.*sqrt(/s/__const__//",
2665 "-e", "/^extern.*double.*__const__.*fabs(/s/__const__//",
2666 "-e", "/^extern.*double.*__const__.*cos(/s/__const__//",
2667 "-e", "/^extern.*double.*__const__.*hypot(/s/__const__//",
2668 "-e", "/^extern.*double.*__const__.*sin(/s/__const__//",
2671 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2673 * Description of Next_Template fix
2675 #define NEXT_TEMPLATE_FIXIDX 65
2676 tSCC zNext_TemplateName[] =
2680 * File name selection pattern
2682 tSCC zNext_TemplateList[] =
2685 * Machine/OS name selection pattern
2687 #define apzNext_TemplateMachs (const char**)NULL
2690 * content selection pattern - do fix if pattern found
2692 tSCC zNext_TemplateSelect0[] =
2695 #define NEXT_TEMPLATE_TEST_CT 1
2696 tTestDesc aNext_TemplateTests[] = {
2697 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
2700 * Fix Command Arguments for Next_Template
2702 const char* apzNext_TemplatePatch[] = { "sed",
2703 "-e", "/\\(.*template\\)/s/template//",
2704 "-e", "/extern.*volatile.*void.*abort/s/volatile//",
2707 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2709 * Description of Next_Volitile fix
2711 #define NEXT_VOLITILE_FIXIDX 66
2712 tSCC zNext_VolitileName[] =
2716 * File name selection pattern
2718 tSCC zNext_VolitileList[] =
2721 * Machine/OS name selection pattern
2723 #define apzNext_VolitileMachs (const char**)NULL
2726 * content selection pattern - do fix if pattern found
2728 tSCC zNext_VolitileSelect0[] =
2731 #define NEXT_VOLITILE_TEST_CT 1
2732 tTestDesc aNext_VolitileTests[] = {
2733 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
2736 * Fix Command Arguments for Next_Volitile
2738 const char* apzNext_VolitilePatch[] = { "sed",
2739 "-e", "/extern.*volatile.*void.*exit/s/volatile//",
2740 "-e", "/extern.*volatile.*void.*abort/s/volatile//",
2743 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2745 * Description of Next_Wait_Union fix
2747 #define NEXT_WAIT_UNION_FIXIDX 67
2748 tSCC zNext_Wait_UnionName[] =
2752 * File name selection pattern
2754 tSCC zNext_Wait_UnionList[] =
2757 * Machine/OS name selection pattern
2759 #define apzNext_Wait_UnionMachs (const char**)NULL
2762 * content selection pattern - do fix if pattern found
2764 tSCC zNext_Wait_UnionSelect0[] =
2765 "wait\\(union wait";
2767 #define NEXT_WAIT_UNION_TEST_CT 1
2768 tTestDesc aNext_Wait_UnionTests[] = {
2769 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
2772 * Fix Command Arguments for Next_Wait_Union
2774 const char* apzNext_Wait_UnionPatch[] = { "sed",
2775 "-e", "s@wait(union wait@wait(void@",
2778 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2780 * Description of Nodeent_Syntax fix
2782 #define NODEENT_SYNTAX_FIXIDX 68
2783 tSCC zNodeent_SyntaxName[] =
2787 * File name selection pattern
2789 tSCC zNodeent_SyntaxList[] =
2790 "|netdnet/dnetdb.h|";
2792 * Machine/OS name selection pattern
2794 #define apzNodeent_SyntaxMachs (const char**)NULL
2795 #define NODEENT_SYNTAX_TEST_CT 0
2796 #define aNodeent_SyntaxTests (tTestDesc*)NULL
2799 * Fix Command Arguments for Nodeent_Syntax
2801 const char* apzNodeent_SyntaxPatch[] = { "sed",
2802 "-e", "s/char.*na_addr *$/char *na_addr;/",
2805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2807 * Description of Osf_Namespace_A fix
2809 #define OSF_NAMESPACE_A_FIXIDX 69
2810 tSCC zOsf_Namespace_AName[] =
2814 * File name selection pattern
2816 tSCC zOsf_Namespace_AList[] =
2817 "|reg_types.h|sys/lc_core.h|";
2819 * Machine/OS name selection pattern
2821 #define apzOsf_Namespace_AMachs (const char**)NULL
2824 * perform the 'test' shell command - do fix on success
2826 tSCC zOsf_Namespace_ATest0[] =
2828 tSCC zOsf_Namespace_ATest1[] =
2829 " -r sys/lc_core.h";
2830 tSCC zOsf_Namespace_ATest2[] =
2831 " -n \"`grep '} regex_t;' reg_types.h`\"";
2832 tSCC zOsf_Namespace_ATest3[] =
2833 " -z \"`grep __regex_t regex.h`\"";
2835 #define OSF_NAMESPACE_A_TEST_CT 4
2836 tTestDesc aOsf_Namespace_ATests[] = {
2837 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
2838 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
2839 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
2840 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
2843 * Fix Command Arguments for Osf_Namespace_A
2845 const char* apzOsf_Namespace_APatch[] = { "sed",
2846 "-e", "s/regex_t/__regex_t/g",
2847 "-e", "s/regoff_t/__regoff_t/g",
2848 "-e", "s/regmatch_t/__regmatch_t/g",
2851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2853 * Description of Osf_Namespace_B fix
2855 #define OSF_NAMESPACE_B_FIXIDX 70
2856 tSCC zOsf_Namespace_BName[] =
2860 * File name selection pattern
2862 tSCC zOsf_Namespace_BList[] =
2865 * Machine/OS name selection pattern
2867 #define apzOsf_Namespace_BMachs (const char**)NULL
2870 * perform the 'test' shell command - do fix on success
2872 tSCC zOsf_Namespace_BTest0[] =
2874 tSCC zOsf_Namespace_BTest1[] =
2875 " -r sys/lc_core.h";
2876 tSCC zOsf_Namespace_BTest2[] =
2877 " -n \"`grep '} regex_t;' reg_types.h`\"";
2878 tSCC zOsf_Namespace_BTest3[] =
2879 " -z \"`grep __regex_t regex.h`\"";
2881 #define OSF_NAMESPACE_B_TEST_CT 4
2882 tTestDesc aOsf_Namespace_BTests[] = {
2883 { TT_TEST, zOsf_Namespace_BTest0, 0 /* unused */ },
2884 { TT_TEST, zOsf_Namespace_BTest1, 0 /* unused */ },
2885 { TT_TEST, zOsf_Namespace_BTest2, 0 /* unused */ },
2886 { TT_TEST, zOsf_Namespace_BTest3, 0 /* unused */ }, };
2889 * Fix Command Arguments for Osf_Namespace_B
2891 const char* apzOsf_Namespace_BPatch[] = { "sed",
2892 "-e", "/#include <reg_types.h>/a\\\n\
2893 typedef __regex_t\tregex_t;\\\n\
2894 typedef __regoff_t\tregoff_t;\\\n\
2895 typedef __regmatch_t\tregmatch_t;\n",
2898 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2900 * Description of Pthread_Page_Size fix
2902 #define PTHREAD_PAGE_SIZE_FIXIDX 71
2903 tSCC zPthread_Page_SizeName[] =
2904 "pthread_page_size";
2907 * File name selection pattern
2909 tSCC zPthread_Page_SizeList[] =
2912 * Machine/OS name selection pattern
2914 #define apzPthread_Page_SizeMachs (const char**)NULL
2917 * content selection pattern - do fix if pattern found
2919 tSCC zPthread_Page_SizeSelect0[] =
2922 #define PTHREAD_PAGE_SIZE_TEST_CT 1
2923 tTestDesc aPthread_Page_SizeTests[] = {
2924 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
2927 * Fix Command Arguments for Pthread_Page_Size
2929 const char* apzPthread_Page_SizePatch[] = { "sed",
2930 "-e", "s/^int __page_size/extern int __page_size/",
2933 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2935 * Description of Read_Ret_Type fix
2937 #define READ_RET_TYPE_FIXIDX 72
2938 tSCC zRead_Ret_TypeName[] =
2942 * File name selection pattern
2944 tSCC zRead_Ret_TypeList[] =
2947 * Machine/OS name selection pattern
2949 #define apzRead_Ret_TypeMachs (const char**)NULL
2952 * content selection pattern - do fix if pattern found
2954 tSCC zRead_Ret_TypeSelect0[] =
2955 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
2957 #define READ_RET_TYPE_TEST_CT 1
2958 tTestDesc aRead_Ret_TypeTests[] = {
2959 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
2962 * Fix Command Arguments for Read_Ret_Type
2964 const char* apzRead_Ret_TypePatch[] = { "sed",
2965 "-e", "s/^\\(extern int\tfclose(), fflush()\\), \\(fread(), fwrite()\\)\\(.*\\)$/extern unsigned int\t\\2;\\\n\
2969 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2971 * Description of Rs6000_Double fix
2973 #define RS6000_DOUBLE_FIXIDX 73
2974 tSCC zRs6000_DoubleName[] =
2978 * File name selection pattern
2980 tSCC zRs6000_DoubleList[] =
2983 * Machine/OS name selection pattern
2985 #define apzRs6000_DoubleMachs (const char**)NULL
2988 * content selection pattern - do fix if pattern found
2990 tSCC zRs6000_DoubleSelect0[] =
2991 "[^a-zA-Z_]class\\(";
2993 #define RS6000_DOUBLE_TEST_CT 1
2994 tTestDesc aRs6000_DoubleTests[] = {
2995 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
2998 * Fix Command Arguments for Rs6000_Double
3000 const char* apzRs6000_DoublePatch[] = { "sed",
3001 "-e", "/class[(]/i\\\n\
3002 #ifndef __cplusplus\n",
3003 "-e", "/class[(]/a\\\n\
3007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3009 * Description of Rs6000_Fchmod fix
3011 #define RS6000_FCHMOD_FIXIDX 74
3012 tSCC zRs6000_FchmodName[] =
3016 * File name selection pattern
3018 tSCC zRs6000_FchmodList[] =
3021 * Machine/OS name selection pattern
3023 #define apzRs6000_FchmodMachs (const char**)NULL
3026 * content selection pattern - do fix if pattern found
3028 tSCC zRs6000_FchmodSelect0[] =
3031 #define RS6000_FCHMOD_TEST_CT 1
3032 tTestDesc aRs6000_FchmodTests[] = {
3033 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3036 * Fix Command Arguments for Rs6000_Fchmod
3038 const char* apzRs6000_FchmodPatch[] = { "sed",
3039 "-e", "s/fchmod(char \\*/fchmod(int/",
3042 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3044 * Description of Rs6000_Param fix
3046 #define RS6000_PARAM_FIXIDX 75
3047 tSCC zRs6000_ParamName[] =
3051 * File name selection pattern
3053 tSCC zRs6000_ParamList[] =
3054 "|stdio.h|unistd.h|";
3056 * Machine/OS name selection pattern
3058 #define apzRs6000_ParamMachs (const char**)NULL
3061 * content selection pattern - do fix if pattern found
3063 tSCC zRs6000_ParamSelect0[] =
3066 #define RS6000_PARAM_TEST_CT 1
3067 tTestDesc aRs6000_ParamTests[] = {
3068 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3071 * Fix Command Arguments for Rs6000_Param
3073 const char* apzRs6000_ParamPatch[] = { "sed",
3074 "-e", "s@rename(const char \\*old, const char \\*new)@rename(const char *_old, const char *_new)@",
3077 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3079 * Description of Sco_Strict_Ansi fix
3081 #define SCO_STRICT_ANSI_FIXIDX 76
3082 tSCC zSco_Strict_AnsiName[] =
3086 * File name selection pattern
3088 #define zSco_Strict_AnsiList (char*)NULL
3090 * Machine/OS name selection pattern
3092 tSCC* apzSco_Strict_AnsiMachs[] = {
3094 (const char*)NULL };
3097 * content selection pattern - do fix if pattern found
3099 tSCC zSco_Strict_AnsiSelect0[] =
3100 "^[ \t]*#[ \t]*if.*!__STDC__";
3102 #define SCO_STRICT_ANSI_TEST_CT 1
3103 tTestDesc aSco_Strict_AnsiTests[] = {
3104 { TT_EGREP, zSco_Strict_AnsiSelect0, (regex_t*)NULL }, };
3107 * Fix Command Arguments for Sco_Strict_Ansi
3109 const char* apzSco_Strict_AnsiPatch[] = { "sed",
3110 "-e", "s/!__STDC__/!defined(__STRICT_ANSI__)/g",
3113 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3115 * Description of Sco_Static_Func fix
3117 #define SCO_STATIC_FUNC_FIXIDX 77
3118 tSCC zSco_Static_FuncName[] =
3122 * File name selection pattern
3124 tSCC zSco_Static_FuncList[] =
3127 * Machine/OS name selection pattern
3129 tSCC* apzSco_Static_FuncMachs[] = {
3131 (const char*)NULL };
3134 * content selection pattern - do fix if pattern found
3136 tSCC zSco_Static_FuncSelect0[] =
3139 #define SCO_STATIC_FUNC_TEST_CT 1
3140 tTestDesc aSco_Static_FuncTests[] = {
3141 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3144 * Fix Command Arguments for Sco_Static_Func
3146 const char* apzSco_Static_FuncPatch[] = { "sed",
3147 "-e", "/^static int/i\\\n\
3148 #if __cplusplus\\\n\
3150 #endif /* __cplusplus */",
3152 #if __cplusplus\\\n\
3154 #endif /* __cplusplus */",
3157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3159 * Description of Sco_Utime fix
3161 #define SCO_UTIME_FIXIDX 78
3162 tSCC zSco_UtimeName[] =
3166 * File name selection pattern
3168 tSCC zSco_UtimeList[] =
3171 * Machine/OS name selection pattern
3173 tSCC* apzSco_UtimeMachs[] = {
3175 (const char*)NULL };
3178 * content selection pattern - do fix if pattern found
3180 tSCC zSco_UtimeSelect0[] =
3181 "(const char *, struct utimbuf *);";
3183 #define SCO_UTIME_TEST_CT 1
3184 tTestDesc aSco_UtimeTests[] = {
3185 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3188 * Fix Command Arguments for Sco_Utime
3190 const char* apzSco_UtimePatch[] = { "sed",
3191 "-e", "s/(const char \\*, struct utimbuf \\*);/(const char *, const struct utimbuf *);/",
3194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3196 * Description of Sony_Include fix
3198 #define SONY_INCLUDE_FIXIDX 79
3199 tSCC zSony_IncludeName[] =
3203 * File name selection pattern
3205 tSCC zSony_IncludeList[] =
3206 "|machine/machparam.h|";
3208 * Machine/OS name selection pattern
3210 #define apzSony_IncludeMachs (const char**)NULL
3213 * content selection pattern - do fix if pattern found
3215 tSCC zSony_IncludeSelect0[] =
3216 "\"\\.\\./machine/endian.h\"";
3218 #define SONY_INCLUDE_TEST_CT 1
3219 tTestDesc aSony_IncludeTests[] = {
3220 { TT_EGREP, zSony_IncludeSelect0, (regex_t*)NULL }, };
3223 * Fix Command Arguments for Sony_Include
3225 const char* apzSony_IncludePatch[] = { "sed",
3226 "-e", "s@\"../machine/endian.h\"@<machine/endian.h>@",
3229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3231 * Description of Statsswtch fix
3233 #define STATSSWTCH_FIXIDX 80
3234 tSCC zStatsswtchName[] =
3238 * File name selection pattern
3240 tSCC zStatsswtchList[] =
3243 * Machine/OS name selection pattern
3245 #define apzStatsswtchMachs (const char**)NULL
3248 * content selection pattern - do fix if pattern found
3250 tSCC zStatsswtchSelect0[] =
3253 #define STATSSWTCH_TEST_CT 1
3254 tTestDesc aStatsswtchTests[] = {
3255 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3258 * Fix Command Arguments for Statsswtch
3260 const char* apzStatsswtchPatch[] = { "sed",
3261 "-e", "s/boottime$/boottime;/",
3264 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3266 * Description of Stdio_Stdarg_H fix
3268 #define STDIO_STDARG_H_FIXIDX 81
3269 tSCC zStdio_Stdarg_HName[] =
3273 * File name selection pattern
3275 tSCC zStdio_Stdarg_HList[] =
3278 * Machine/OS name selection pattern
3280 #define apzStdio_Stdarg_HMachs (const char**)NULL
3283 * content bypass pattern - skip fix if pattern found
3285 tSCC zStdio_Stdarg_HBypass0[] =
3286 "include.*(stdarg.h|machine/ansi.h)";
3288 #define STDIO_STDARG_H_TEST_CT 1
3289 tTestDesc aStdio_Stdarg_HTests[] = {
3290 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3293 * Fix Command Arguments for Stdio_Stdarg_H
3295 const char* apzStdio_Stdarg_HPatch[] = { "sed",
3297 #define __need___va_list\\\n\
3298 #include <stdarg.h>\n",
3301 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3303 * Description of Stdio_Va_List fix
3305 #define STDIO_VA_LIST_FIXIDX 82
3306 tSCC zStdio_Va_ListName[] =
3310 * File name selection pattern
3312 tSCC zStdio_Va_ListList[] =
3315 * Machine/OS name selection pattern
3317 #define apzStdio_Va_ListMachs (const char**)NULL
3320 * content bypass pattern - skip fix if pattern found
3322 tSCC zStdio_Va_ListBypass0[] =
3323 "__gnuc_va_list|_BSD_VA_LIST_";
3325 #define STDIO_VA_LIST_TEST_CT 1
3326 tTestDesc aStdio_Va_ListTests[] = {
3327 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3330 * Fix Command Arguments for Stdio_Va_List
3332 const char* apzStdio_Va_ListPatch[] = { "sed",
3333 "-e", "s@ va_list @ __gnuc_va_list @\n\
3334 s@ va_list)@ __gnuc_va_list)@\n\
3335 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3336 s@ va_list@ __not_va_list__@\n\
3337 s@\\*va_list@*__not_va_list__@\n\
3338 s@ __va_list)@ __gnuc_va_list)@\n\
3339 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3340 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3341 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3342 s@VA_LIST@DUMMY_VA_LIST@\n\
3343 s@_Va_LIST@_VA_LIST@",
3346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3348 * Description of Sun_Auth_Proto fix
3350 #define SUN_AUTH_PROTO_FIXIDX 83
3351 tSCC zSun_Auth_ProtoName[] =
3355 * File name selection pattern
3357 tSCC zSun_Auth_ProtoList[] =
3358 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
3360 * Machine/OS name selection pattern
3362 #define apzSun_Auth_ProtoMachs (const char**)NULL
3365 * content selection pattern - do fix if pattern found
3367 tSCC zSun_Auth_ProtoSelect0[] =
3368 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
3370 #define SUN_AUTH_PROTO_TEST_CT 1
3371 tTestDesc aSun_Auth_ProtoTests[] = {
3372 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
3375 * Fix Command Arguments for Sun_Auth_Proto
3377 const char* apzSun_Auth_ProtoPatch[] = { "sed",
3378 "-e", "s/^\\(.*(\\*[a-z][a-z_]*)(\\)\\();.*\\)/\\\n\
3379 #ifdef __cplusplus\\\n\
3386 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3388 * Description of Sun_Bogus_Ifdef fix
3390 #define SUN_BOGUS_IFDEF_FIXIDX 84
3391 tSCC zSun_Bogus_IfdefName[] =
3395 * File name selection pattern
3397 tSCC zSun_Bogus_IfdefList[] =
3398 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
3400 * Machine/OS name selection pattern
3402 #define apzSun_Bogus_IfdefMachs (const char**)NULL
3405 * content selection pattern - do fix if pattern found
3407 tSCC zSun_Bogus_IfdefSelect0[] =
3408 "#ifdef __i386__ || __vax__";
3410 #define SUN_BOGUS_IFDEF_TEST_CT 1
3411 tTestDesc aSun_Bogus_IfdefTests[] = {
3412 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
3415 * Fix Command Arguments for Sun_Bogus_Ifdef
3417 const char* apzSun_Bogus_IfdefPatch[] = { "sed",
3418 "-e", "s/\\#ifdef __i386__ || __vax__/\\#if __i386__ || __vax__/g",
3421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3423 * Description of Sun_Bogus_Ifdef_Sun4c fix
3425 #define SUN_BOGUS_IFDEF_SUN4C_FIXIDX 85
3426 tSCC zSun_Bogus_Ifdef_Sun4cName[] =
3427 "sun_bogus_ifdef_sun4c";
3430 * File name selection pattern
3432 tSCC zSun_Bogus_Ifdef_Sun4cList[] =
3435 * Machine/OS name selection pattern
3437 #define apzSun_Bogus_Ifdef_Sun4cMachs (const char**)NULL
3440 * content selection pattern - do fix if pattern found
3442 tSCC zSun_Bogus_Ifdef_Sun4cSelect0[] =
3443 "#ifdef __i386__ || __sun4c__";
3445 #define SUN_BOGUS_IFDEF_SUN4C_TEST_CT 1
3446 tTestDesc aSun_Bogus_Ifdef_Sun4cTests[] = {
3447 { TT_EGREP, zSun_Bogus_Ifdef_Sun4cSelect0, (regex_t*)NULL }, };
3450 * Fix Command Arguments for Sun_Bogus_Ifdef_Sun4c
3452 const char* apzSun_Bogus_Ifdef_Sun4cPatch[] = { "sed",
3453 "-e", "s/\\#ifdef __i386__ || __sun4c__/\\#if __i386__ || __sun4c__/g",
3456 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3458 * Description of Sun_Catmacro fix
3460 #define SUN_CATMACRO_FIXIDX 86
3461 tSCC zSun_CatmacroName[] =
3465 * File name selection pattern
3467 tSCC zSun_CatmacroList[] =
3468 "|pixrect/memvar.h|";
3470 * Machine/OS name selection pattern
3472 #define apzSun_CatmacroMachs (const char**)NULL
3475 * content selection pattern - do fix if pattern found
3477 tSCC zSun_CatmacroSelect0[] =
3478 "^#define[ \t]+CAT\\(a,b\\)";
3480 #define SUN_CATMACRO_TEST_CT 1
3481 tTestDesc aSun_CatmacroTests[] = {
3482 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
3485 * Fix Command Arguments for Sun_Catmacro
3487 const char* apzSun_CatmacroPatch[] = { "sed",
3488 "-e", "/^#define[ \t]CAT(a,b)/ i\\\n\
3489 #ifdef __STDC__ \\\n\
3490 #define CAT(a,b) a##b\\\n\
3492 "-e", "/^#define[ \t]CAT(a,b)/ a\\\n\
3496 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3498 * Description of Sun_Malloc fix
3500 #define SUN_MALLOC_FIXIDX 87
3501 tSCC zSun_MallocName[] =
3505 * File name selection pattern
3507 tSCC zSun_MallocList[] =
3510 * Machine/OS name selection pattern
3512 #define apzSun_MallocMachs (const char**)NULL
3513 #define SUN_MALLOC_TEST_CT 0
3514 #define aSun_MallocTests (tTestDesc*)NULL
3517 * Fix Command Arguments for Sun_Malloc
3519 const char* apzSun_MallocPatch[] = { "sed",
3520 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
3521 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
3522 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
3523 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
3526 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3528 * Description of Sun_Rusers_Semi fix
3530 #define SUN_RUSERS_SEMI_FIXIDX 88
3531 tSCC zSun_Rusers_SemiName[] =
3535 * File name selection pattern
3537 tSCC zSun_Rusers_SemiList[] =
3538 "|rpcsvc/rusers.h|";
3540 * Machine/OS name selection pattern
3542 #define apzSun_Rusers_SemiMachs (const char**)NULL
3545 * content selection pattern - do fix if pattern found
3547 tSCC zSun_Rusers_SemiSelect0[] =
3550 #define SUN_RUSERS_SEMI_TEST_CT 1
3551 tTestDesc aSun_Rusers_SemiTests[] = {
3552 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
3555 * Fix Command Arguments for Sun_Rusers_Semi
3557 const char* apzSun_Rusers_SemiPatch[] = { "sed",
3558 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
3561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3563 * Description of Sun_Signal fix
3565 #define SUN_SIGNAL_FIXIDX 89
3566 tSCC zSun_SignalName[] =
3570 * File name selection pattern
3572 tSCC zSun_SignalList[] =
3573 "|sys/signal.h|signal.h|";
3575 * Machine/OS name selection pattern
3577 #define apzSun_SignalMachs (const char**)NULL
3580 * content selection pattern - do fix if pattern found
3582 tSCC zSun_SignalSelect0[] =
3583 "^void\t\\(\\*signal\\(\\)\\)\\(\\);";
3585 #define SUN_SIGNAL_TEST_CT 1
3586 tTestDesc aSun_SignalTests[] = {
3587 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
3590 * Fix Command Arguments for Sun_Signal
3592 const char* apzSun_SignalPatch[] = { "sed",
3593 "-e", "/^void\t(\\*signal())();$/i\\\n\
3594 #ifdef __cplusplus\\\n\
3595 void\t(*signal(...))(...);\\\n\
3597 "-e", "/^void\t(\\*signal())();$/a\\\n\
3601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3603 * Description of Sunos_Matherr_Decl fix
3605 #define SUNOS_MATHERR_DECL_FIXIDX 90
3606 tSCC zSunos_Matherr_DeclName[] =
3607 "sunos_matherr_decl";
3610 * File name selection pattern
3612 tSCC zSunos_Matherr_DeclList[] =
3615 * Machine/OS name selection pattern
3617 #define apzSunos_Matherr_DeclMachs (const char**)NULL
3620 * content bypass pattern - skip fix if pattern found
3622 tSCC zSunos_Matherr_DeclBypass0[] =
3623 "matherr.*struct exception";
3625 #define SUNOS_MATHERR_DECL_TEST_CT 1
3626 tTestDesc aSunos_Matherr_DeclTests[] = {
3627 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL }, };
3630 * Fix Command Arguments for Sunos_Matherr_Decl
3632 const char* apzSunos_Matherr_DeclPatch[] = { "sed",
3633 "-e", "/^struct exception/,$b",
3634 "-e", "/matherr/i\\\n\
3635 struct exception;\n",
3638 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3640 * Description of Sunos_Strlen fix
3642 #define SUNOS_STRLEN_FIXIDX 91
3643 tSCC zSunos_StrlenName[] =
3647 * File name selection pattern
3649 tSCC zSunos_StrlenList[] =
3652 * Machine/OS name selection pattern
3654 #define apzSunos_StrlenMachs (const char**)NULL
3657 * content selection pattern - do fix if pattern found
3659 tSCC zSunos_StrlenSelect0[] =
3662 #define SUNOS_STRLEN_TEST_CT 1
3663 tTestDesc aSunos_StrlenTests[] = {
3664 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
3667 * Fix Command Arguments for Sunos_Strlen
3669 const char* apzSunos_StrlenPatch[] = { "sed",
3670 "-e", "s/int[ \t]*strlen();/__SIZE_TYPE__ strlen();/",
3673 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3675 * Description of Svr4_Getcwd fix
3677 #define SVR4_GETCWD_FIXIDX 92
3678 tSCC zSvr4_GetcwdName[] =
3682 * File name selection pattern
3684 tSCC zSvr4_GetcwdList[] =
3685 "|stdlib.h|unistd.h|prototypes.h|";
3687 * Machine/OS name selection pattern
3689 #define apzSvr4_GetcwdMachs (const char**)NULL
3692 * content selection pattern - do fix if pattern found
3694 tSCC zSvr4_GetcwdSelect0[] =
3695 "getcwd\\(char \\*, int\\)";
3697 #define SVR4_GETCWD_TEST_CT 1
3698 tTestDesc aSvr4_GetcwdTests[] = {
3699 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
3702 * Fix Command Arguments for Svr4_Getcwd
3704 const char* apzSvr4_GetcwdPatch[] = { "sed",
3705 "-e", "s/getcwd(char \\*, int)/getcwd(char *, size_t)/",
3708 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3710 * Description of Svr4_Profil fix
3712 #define SVR4_PROFIL_FIXIDX 93
3713 tSCC zSvr4_ProfilName[] =
3717 * File name selection pattern
3719 tSCC zSvr4_ProfilList[] =
3720 "|stdlib.h|unistd.h|";
3722 * Machine/OS name selection pattern
3724 #define apzSvr4_ProfilMachs (const char**)NULL
3725 #define SVR4_PROFIL_TEST_CT 0
3726 #define aSvr4_ProfilTests (tTestDesc*)NULL
3729 * Fix Command Arguments for Svr4_Profil
3731 const char* apzSvr4_ProfilPatch[] = { "sed",
3732 "-e", "s/profil(unsigned short \\*, unsigned int, unsigned int, unsigned int)/profil(unsigned short *, size_t, int, unsigned)/",
3735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3737 * Description of Systypes fix
3739 #define SYSTYPES_FIXIDX 94
3740 tSCC zSystypesName[] =
3744 * File name selection pattern
3746 tSCC zSystypesList[] =
3747 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
3749 * Machine/OS name selection pattern
3751 #define apzSystypesMachs (const char**)NULL
3754 * content selection pattern - do fix if pattern found
3756 tSCC zSystypesSelect0[] =
3757 "typedef[ \t]+[a-z_][ \ta-z_]*[ \t](size|ptrdiff|wchar)_t";
3759 #define SYSTYPES_TEST_CT 1
3760 tTestDesc aSystypesTests[] = {
3761 { TT_EGREP, zSystypesSelect0, (regex_t*)NULL }, };
3764 * Fix Command Arguments for Systypes
3766 const char* apzSystypesPatch[] = { "sed",
3767 "-e", "/^[ \t]*\\*[ \t]*typedef unsigned int size_t;/N",
3768 "-e", "s/^\\([ \t]*\\*[ \t]*typedef unsigned int size_t;\\n[ \t]*\\*\\/\\)/\\1\\\n\
3769 #ifndef __SIZE_TYPE__\\\n\
3770 #define __SIZE_TYPE__ long unsigned int\\\n\
3772 typedef __SIZE_TYPE__ size_t;\\\n\
3774 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/i\\\n\
3775 #ifndef __SIZE_TYPE__\\\n\
3776 #define __SIZE_TYPE__ long unsigned int\\\n\
3778 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/typedef __SIZE_TYPE__ size_t/",
3779 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/i\\\n\
3780 #ifndef __PTRDIFF_TYPE__\\\n\
3781 #define __PTRDIFF_TYPE__ long int\\\n\
3783 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/typedef __PTRDIFF_TYPE__ ptrdiff_t/",
3784 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/i\\\n\
3785 #ifndef __WCHAR_TYPE__\\\n\
3786 #define __WCHAR_TYPE__ int\\\n\
3788 #ifndef __cplusplus\n",
3789 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/a\\\n\
3791 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/typedef __WCHAR_TYPE__ wchar_t/",
3794 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3796 * Description of Systypes_Stdlib_Size_T fix
3798 #define SYSTYPES_STDLIB_SIZE_T_FIXIDX 95
3799 tSCC zSystypes_Stdlib_Size_TName[] =
3800 "systypes_stdlib_size_t";
3803 * File name selection pattern
3805 tSCC zSystypes_Stdlib_Size_TList[] =
3806 "|sys/types.h|stdlib.h|";
3808 * Machine/OS name selection pattern
3810 #define apzSystypes_Stdlib_Size_TMachs (const char**)NULL
3813 * content selection pattern - do fix if pattern found
3815 tSCC zSystypes_Stdlib_Size_TSelect0[] =
3816 "typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t";
3819 * content bypass pattern - skip fix if pattern found
3821 tSCC zSystypes_Stdlib_Size_TBypass0[] =
3822 "_(GCC|BSD)_SIZE_T";
3824 #define SYSTYPES_STDLIB_SIZE_T_TEST_CT 2
3825 tTestDesc aSystypes_Stdlib_Size_TTests[] = {
3826 { TT_NEGREP, zSystypes_Stdlib_Size_TBypass0, (regex_t*)NULL },
3827 { TT_EGREP, zSystypes_Stdlib_Size_TSelect0, (regex_t*)NULL }, };
3830 * Fix Command Arguments for Systypes_Stdlib_Size_T
3832 const char* apzSystypes_Stdlib_Size_TPatch[] = { "sed",
3833 "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/i\\\n\
3834 #ifndef _GCC_SIZE_T\\\n\
3835 #define _GCC_SIZE_T\n",
3836 "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/a\\\n\
3840 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3842 * Description of Sysv68_String fix
3844 #define SYSV68_STRING_FIXIDX 96
3845 tSCC zSysv68_StringName[] =
3849 * File name selection pattern
3851 tSCC zSysv68_StringList[] =
3854 * Machine/OS name selection pattern
3856 #define apzSysv68_StringMachs (const char**)NULL
3857 #define SYSV68_STRING_TEST_CT 0
3858 #define aSysv68_StringTests (tTestDesc*)NULL
3861 * Fix Command Arguments for Sysv68_String
3863 const char* apzSysv68_StringPatch[] = { "sed",
3864 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
3865 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
3866 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
3867 "-e", "/^extern char$/N",
3868 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
3869 "-e", "/^\tstrncmp(),$/N",
3870 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
3871 extern unsigned int\\\n\
3873 "-e", "/^extern int$/N",
3874 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
3877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3879 * Description of Sysz_Stdlib_For_Sun fix
3881 #define SYSZ_STDLIB_FOR_SUN_FIXIDX 97
3882 tSCC zSysz_Stdlib_For_SunName[] =
3883 "sysz_stdlib_for_sun";
3886 * File name selection pattern
3888 tSCC zSysz_Stdlib_For_SunList[] =
3891 * Machine/OS name selection pattern
3893 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
3894 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 0
3895 #define aSysz_Stdlib_For_SunTests (tTestDesc*)NULL
3898 * Fix Command Arguments for Sysz_Stdlib_For_Sun
3900 const char* apzSysz_Stdlib_For_SunPatch[] = { "sed",
3901 "-e", "s/int\tabort/void\tabort/g",
3902 "-e", "s/int\tfree/void\tfree/g",
3903 "-e", "s/char[ \t]*\\*[ \t]*calloc/void \\*\tcalloc/g",
3904 "-e", "s/char[ \t]*\\*[ \t]*malloc/void \\*\tmalloc/g",
3905 "-e", "s/char[ \t]*\\*[ \t]*realloc/void \\*\trealloc/g",
3906 "-e", "s/char[ \t]*\\*[ \t]*bsearch/void \\*\tbsearch/g",
3907 "-e", "s/int[ \t][ \t]*exit/void\texit/g",
3910 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3912 * Description of Sysz_Stdtypes_For_Sun fix
3914 #define SYSZ_STDTYPES_FOR_SUN_FIXIDX 98
3915 tSCC zSysz_Stdtypes_For_SunName[] =
3916 "sysz_stdtypes_for_sun";
3919 * File name selection pattern
3921 tSCC zSysz_Stdtypes_For_SunList[] =
3924 * Machine/OS name selection pattern
3926 #define apzSysz_Stdtypes_For_SunMachs (const char**)NULL
3927 #define SYSZ_STDTYPES_FOR_SUN_TEST_CT 0
3928 #define aSysz_Stdtypes_For_SunTests (tTestDesc*)NULL
3931 * Fix Command Arguments for Sysz_Stdtypes_For_Sun
3933 const char* apzSysz_Stdtypes_For_SunPatch[] = { "sed",
3934 "-e", "/[\t ]size_t.*;/i\\\n\
3935 #ifndef _GCC_SIZE_T\\\n\
3936 #define _GCC_SIZE_T\n",
3937 "-e", "/[\t ]size_t.*;/a\\\n\
3939 "-e", "/[\t ]ptrdiff_t.*;/i\\\n\
3940 #ifndef _GCC_PTRDIFF_T\\\n\
3941 #define _GCC_PTRDIFF_T\n",
3942 "-e", "/[\t ]ptrdiff_t.*;/a\\\n\
3944 "-e", "/[\t ]wchar_t.*;/i\\\n\
3945 #ifndef _GCC_WCHAR_T\\\n\
3946 #define _GCC_WCHAR_T\n",
3947 "-e", "/[\t ]wchar_t.*;/a\\\n\
3951 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3953 * Description of Tinfo_Cplusplus fix
3955 #define TINFO_CPLUSPLUS_FIXIDX 99
3956 tSCC zTinfo_CplusplusName[] =
3960 * File name selection pattern
3962 tSCC zTinfo_CplusplusList[] =
3965 * Machine/OS name selection pattern
3967 #define apzTinfo_CplusplusMachs (const char**)NULL
3970 * content selection pattern - do fix if pattern found
3972 tSCC zTinfo_CplusplusSelect0[] =
3975 #define TINFO_CPLUSPLUS_TEST_CT 1
3976 tTestDesc aTinfo_CplusplusTests[] = {
3977 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
3980 * Fix Command Arguments for Tinfo_Cplusplus
3982 const char* apzTinfo_CplusplusPatch[] = { "sed",
3983 "-e", "s/[ \t]_cplusplus/ __cplusplus/",
3986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3988 * Description of Ultrix_Fix_Fixproto fix
3990 #define ULTRIX_FIX_FIXPROTO_FIXIDX 100
3991 tSCC zUltrix_Fix_FixprotoName[] =
3992 "ultrix_fix_fixproto";
3995 * File name selection pattern
3997 tSCC zUltrix_Fix_FixprotoList[] =
4000 * Machine/OS name selection pattern
4002 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4005 * content selection pattern - do fix if pattern found
4007 tSCC zUltrix_Fix_FixprotoSelect0[] =
4010 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4011 tTestDesc aUltrix_Fix_FixprotoTests[] = {
4012 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4015 * Fix Command Arguments for Ultrix_Fix_Fixproto
4017 const char* apzUltrix_Fix_FixprotoPatch[] = { "sed",
4018 "-e", "/^[ \t]*extern[ \t]*int[ \t]*uname();$/i\\\n\
4022 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4024 * Description of Ultrix_Atof_Param fix
4026 #define ULTRIX_ATOF_PARAM_FIXIDX 101
4027 tSCC zUltrix_Atof_ParamName[] =
4028 "ultrix_atof_param";
4031 * File name selection pattern
4033 tSCC zUltrix_Atof_ParamList[] =
4036 * Machine/OS name selection pattern
4038 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4041 * content selection pattern - do fix if pattern found
4043 tSCC zUltrix_Atof_ParamSelect0[] =
4044 "atof\\([ \t]*char";
4046 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4047 tTestDesc aUltrix_Atof_ParamTests[] = {
4048 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4051 * Fix Command Arguments for Ultrix_Atof_Param
4053 const char* apzUltrix_Atof_ParamPatch[] = { "sed",
4054 "-e", "s@atof(\\([ \t]*char[ \t]*\\*[^)]*\\))@atof(const \\1)@",
4057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4059 * Description of Ultrix_Const fix
4061 #define ULTRIX_CONST_FIXIDX 102
4062 tSCC zUltrix_ConstName[] =
4066 * File name selection pattern
4068 tSCC zUltrix_ConstList[] =
4071 * Machine/OS name selection pattern
4073 #define apzUltrix_ConstMachs (const char**)NULL
4074 #define ULTRIX_CONST_TEST_CT 0
4075 #define aUltrix_ConstTests (tTestDesc*)NULL
4078 * Fix Command Arguments for Ultrix_Const
4080 const char* apzUltrix_ConstPatch[] = { "sed",
4081 "-e", "s@perror( char \\*__s );@perror( const char *__s );@",
4082 "-e", "s@fputs( char \\*__s,@fputs( const char *__s,@",
4083 "-e", "s@fopen( char \\*__filename, char \\*__type );@fopen( const char *__filename, const char *__type );@",
4084 "-e", "s@fwrite( void \\*__ptr,@fwrite( const void *__ptr,@",
4085 "-e", "s@fscanf( FILE \\*__stream, char \\*__format,@fscanf( FILE *__stream, const char *__format,@",
4086 "-e", "s@scanf( char \\*__format,@scanf( const char *__format,@",
4087 "-e", "s@sscanf( char \\*__s, char \\*__format,@sscanf( const char *__s, const char *__format,@",
4088 "-e", "s@popen(char \\*, char \\*);@popen(const char *, const char *);@",
4089 "-e", "s@tempnam(char\\*,char\\*);@tempnam(const char*,const char*);@",
4092 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4094 * Description of Ultrix_Ifdef fix
4096 #define ULTRIX_IFDEF_FIXIDX 103
4097 tSCC zUltrix_IfdefName[] =
4101 * File name selection pattern
4103 tSCC zUltrix_IfdefList[] =
4106 * Machine/OS name selection pattern
4108 #define apzUltrix_IfdefMachs (const char**)NULL
4111 * content selection pattern - do fix if pattern found
4113 tSCC zUltrix_IfdefSelect0[] =
4114 "#ifdef KERNEL[ \t]*[^ \t]";
4116 #define ULTRIX_IFDEF_TEST_CT 1
4117 tTestDesc aUltrix_IfdefTests[] = {
4118 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4121 * Fix Command Arguments for Ultrix_Ifdef
4123 const char* apzUltrix_IfdefPatch[] = { "sed",
4124 "-e", "s/#ifdef KERNEL/#if defined(KERNEL)/",
4127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4129 * Description of Ultrix_Nested_Cmnt fix
4131 #define ULTRIX_NESTED_CMNT_FIXIDX 104
4132 tSCC zUltrix_Nested_CmntName[] =
4133 "ultrix_nested_cmnt";
4136 * File name selection pattern
4138 tSCC zUltrix_Nested_CmntList[] =
4141 * Machine/OS name selection pattern
4143 #define apzUltrix_Nested_CmntMachs (const char**)NULL
4144 #define ULTRIX_NESTED_CMNT_TEST_CT 0
4145 #define aUltrix_Nested_CmntTests (tTestDesc*)NULL
4148 * Fix Command Arguments for Ultrix_Nested_Cmnt
4150 const char* apzUltrix_Nested_CmntPatch[] = { "sed",
4151 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
4154 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4156 * Description of Ultrix_Static fix
4158 #define ULTRIX_STATIC_FIXIDX 105
4159 tSCC zUltrix_StaticName[] =
4163 * File name selection pattern
4165 tSCC zUltrix_StaticList[] =
4168 * Machine/OS name selection pattern
4170 #define apzUltrix_StaticMachs (const char**)NULL
4173 * content selection pattern - do fix if pattern found
4175 tSCC zUltrix_StaticSelect0[] =
4176 "#include \"r[34]_cpu";
4178 #define ULTRIX_STATIC_TEST_CT 1
4179 tTestDesc aUltrix_StaticTests[] = {
4180 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
4183 * Fix Command Arguments for Ultrix_Static
4185 const char* apzUltrix_StaticPatch[] = { "sed",
4186 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
4187 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
4188 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
4191 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4193 * Description of Undefine_Null fix
4195 #define UNDEFINE_NULL_FIXIDX 106
4196 tSCC zUndefine_NullName[] =
4200 * File name selection pattern
4202 #define zUndefine_NullList (char*)NULL
4204 * Machine/OS name selection pattern
4206 #define apzUndefine_NullMachs (const char**)NULL
4209 * content selection pattern - do fix if pattern found
4211 tSCC zUndefine_NullSelect0[] =
4212 "^#[ \t]*define[ \t]*[ \t]NULL[ \t\r]";
4215 * content bypass pattern - skip fix if pattern found
4217 tSCC zUndefine_NullBypass0[] =
4218 "#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t\r])";
4220 #define UNDEFINE_NULL_TEST_CT 2
4221 tTestDesc aUndefine_NullTests[] = {
4222 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
4223 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
4226 * Fix Command Arguments for Undefine_Null
4228 const char* apzUndefine_NullPatch[] = { "sed",
4229 "-e", "/^#[ \t]*define[ \t][ \t]*NULL[ \t\r]/i\\\n\
4233 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4235 * Description of Unixware7_Byteorder_Fix fix
4237 #define UNIXWARE7_BYTEORDER_FIX_FIXIDX 107
4238 tSCC zUnixware7_Byteorder_FixName[] =
4239 "unixware7_byteorder_fix";
4242 * File name selection pattern
4244 tSCC zUnixware7_Byteorder_FixList[] =
4247 * Machine/OS name selection pattern
4249 tSCC* apzUnixware7_Byteorder_FixMachs[] = {
4251 "i[34567]86-*-sysv5*",
4252 "i[34567]86-*-udk*",
4253 "i[34567]86-*-solaris2.[0-4]",
4254 "powerpcle-*-solaris2.[0-4]",
4255 "sparc-*-solaris2.[0-4]",
4256 (const char*)NULL };
4259 * content selection pattern - do fix if pattern found
4261 tSCC zUnixware7_Byteorder_FixSelect0[] =
4264 #define UNIXWARE7_BYTEORDER_FIX_TEST_CT 1
4265 tTestDesc aUnixware7_Byteorder_FixTests[] = {
4266 { TT_EGREP, zUnixware7_Byteorder_FixSelect0, (regex_t*)NULL }, };
4269 * Fix Command Arguments for Unixware7_Byteorder_Fix
4271 const char* apzUnixware7_Byteorder_FixPatch[] = { "sed",
4272 "-e", "/^extern.*htons.*(in_port_t)/d",
4273 "-e", "/^extern.*ntohs.*(in_port_t)/d",
4276 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4278 * Description of Va_I960_Macro fix
4280 #define VA_I960_MACRO_FIXIDX 108
4281 tSCC zVa_I960_MacroName[] =
4285 * File name selection pattern
4287 tSCC zVa_I960_MacroList[] =
4288 "|arch/i960/archI960.h|";
4290 * Machine/OS name selection pattern
4292 #define apzVa_I960_MacroMachs (const char**)NULL
4295 * content selection pattern - do fix if pattern found
4297 tSCC zVa_I960_MacroSelect0[] =
4298 "__(vsiz|vali|vpad|alignof__)";
4300 #define VA_I960_MACRO_TEST_CT 1
4301 tTestDesc aVa_I960_MacroTests[] = {
4302 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
4305 * Fix Command Arguments for Va_I960_Macro
4307 const char* apzVa_I960_MacroPatch[] = { "sed",
4308 "-e", "s/__vsiz/__vxvsiz/",
4309 "-e", "s/__vali/__vxvali/",
4310 "-e", "s/__vpad/__vxvpad/",
4311 "-e", "s/__alignof__/__vxalignof__/",
4314 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4316 * Description of Void_Null fix
4318 #define VOID_NULL_FIXIDX 109
4319 tSCC zVoid_NullName[] =
4323 * File name selection pattern
4325 tSCC zVoid_NullList[] =
4326 "|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|";
4328 * Machine/OS name selection pattern
4330 #define apzVoid_NullMachs (const char**)NULL
4333 * content selection pattern - do fix if pattern found
4335 tSCC zVoid_NullSelect0[] =
4336 "#[ \t]*define[ \t][ \t]*NULL[ \t].*void";
4338 #define VOID_NULL_TEST_CT 1
4339 tTestDesc aVoid_NullTests[] = {
4340 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
4343 * Fix Command Arguments for Void_Null
4345 const char* apzVoid_NullPatch[] = { "sed",
4346 "-e", "s/^#[ \t]*define[ \t]*NULL[ \t]*((void[ \t]*\\*)0)/#define NULL 0/",
4349 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4351 * Description of Vxworks_Gcc_Problem fix
4353 #define VXWORKS_GCC_PROBLEM_FIXIDX 110
4354 tSCC zVxworks_Gcc_ProblemName[] =
4355 "vxworks_gcc_problem";
4358 * File name selection pattern
4360 tSCC zVxworks_Gcc_ProblemList[] =
4361 "|types/vxTypesBase.h|";
4363 * Machine/OS name selection pattern
4365 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
4368 * content selection pattern - do fix if pattern found
4370 tSCC zVxworks_Gcc_ProblemSelect0[] =
4371 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
4373 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
4374 tTestDesc aVxworks_Gcc_ProblemTests[] = {
4375 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
4378 * Fix Command Arguments for Vxworks_Gcc_Problem
4380 const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
4381 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
4382 "-e", "/[ \t]size_t/i\\\n\
4383 #ifndef _GCC_SIZE_T\\\n\
4384 #define _GCC_SIZE_T\n",
4385 "-e", "/[ \t]size_t/a\\\n\
4387 "-e", "/[ \t]ptrdiff_t/i\\\n\
4388 #ifndef _GCC_PTRDIFF_T\\\n\
4389 #define _GCC_PTRDIFF_T\n",
4390 "-e", "/[ \t]ptrdiff_t/a\\\n\
4392 "-e", "/[ \t]wchar_t/i\\\n\
4393 #ifndef _GCC_WCHAR_T\\\n\
4394 #define _GCC_WCHAR_T\n",
4395 "-e", "/[ \t]wchar_t/a\\\n\
4399 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4401 * Description of Vxworks_Needs_Vxtypes fix
4403 #define VXWORKS_NEEDS_VXTYPES_FIXIDX 111
4404 tSCC zVxworks_Needs_VxtypesName[] =
4405 "vxworks_needs_vxtypes";
4408 * File name selection pattern
4410 tSCC zVxworks_Needs_VxtypesList[] =
4413 * Machine/OS name selection pattern
4415 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
4418 * content selection pattern - do fix if pattern found
4420 tSCC zVxworks_Needs_VxtypesSelect0[] =
4421 "uint_t[ \t][ \t]*_clocks_per_sec";
4423 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
4424 tTestDesc aVxworks_Needs_VxtypesTests[] = {
4425 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
4428 * Fix Command Arguments for Vxworks_Needs_Vxtypes
4430 const char* apzVxworks_Needs_VxtypesPatch[] = { "sed",
4431 "-e", "s/uint_t/unsigned int/",
4434 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4436 * Description of Vxworks_Needs_Vxworks fix
4438 #define VXWORKS_NEEDS_VXWORKS_FIXIDX 112
4439 tSCC zVxworks_Needs_VxworksName[] =
4440 "vxworks_needs_vxworks";
4443 * File name selection pattern
4445 tSCC zVxworks_Needs_VxworksList[] =
4448 * Machine/OS name selection pattern
4450 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
4453 * content selection pattern - do fix if pattern found
4455 tSCC zVxworks_Needs_VxworksSelect0[] =
4456 "#[ \t]define[ \t][ \t]*__INCstath";
4459 * perform the 'test' shell command - do fix on success
4461 tSCC zVxworks_Needs_VxworksTest0[] =
4462 " -r types/vxTypesOld.h";
4463 tSCC zVxworks_Needs_VxworksTest1[] =
4464 " -n \"`egrep '#include' $file`\"";
4465 tSCC zVxworks_Needs_VxworksTest2[] =
4466 " -n \"`egrep ULONG $file`\"";
4468 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
4469 tTestDesc aVxworks_Needs_VxworksTests[] = {
4470 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
4471 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
4472 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
4473 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
4476 * Fix Command Arguments for Vxworks_Needs_Vxworks
4478 const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
4479 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
4480 #include <types/vxTypesOld.h>\n",
4483 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4485 * Description of Vxworks_Time fix
4487 #define VXWORKS_TIME_FIXIDX 113
4488 tSCC zVxworks_TimeName[] =
4492 * File name selection pattern
4494 tSCC zVxworks_TimeList[] =
4497 * Machine/OS name selection pattern
4499 #define apzVxworks_TimeMachs (const char**)NULL
4502 * content selection pattern - do fix if pattern found
4504 tSCC zVxworks_TimeSelect0[] =
4508 * perform the 'test' shell command - do fix on success
4510 tSCC zVxworks_TimeTest0[] =
4513 #define VXWORKS_TIME_TEST_CT 2
4514 tTestDesc aVxworks_TimeTests[] = {
4515 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
4516 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
4519 * Fix Command Arguments for Vxworks_Time
4521 const char* apzVxworks_TimePatch[] = { "sed",
4522 "-e", "/VOIDFUNCPTR/i\\\n\
4523 #ifndef __gcc_VOIDFUNCPTR_defined\\\n\
4524 #ifdef __cplusplus\\\n\
4525 typedef void (*__gcc_VOIDFUNCPTR) (...);\\\n\
4527 typedef void (*__gcc_VOIDFUNCPTR) ();\\\n\
4529 #define __gcc_VOIDFUNCPTR_defined\\\n\
4531 "-e", "s/VOIDFUNCPTR/__gcc_VOIDFUNCPTR/g",
4534 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4536 * Description of X11_Class fix
4538 #define X11_CLASS_FIXIDX 114
4539 tSCC zX11_ClassName[] =
4543 * File name selection pattern
4545 tSCC zX11_ClassList[] =
4548 * Machine/OS name selection pattern
4550 #define apzX11_ClassMachs (const char**)NULL
4553 * content bypass pattern - skip fix if pattern found
4555 tSCC zX11_ClassBypass0[] =
4558 #define X11_CLASS_TEST_CT 1
4559 tTestDesc aX11_ClassTests[] = {
4560 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, };
4563 * Fix Command Arguments for X11_Class
4565 const char* apzX11_ClassPatch[] = { "sed",
4566 "-e", "/char \\*class;/i\\\n\
4567 #ifdef __cplusplus\\\n\
4568 \tchar *c_class;\\\n\
4570 "-e", "/char \\*class;/a\\\n\
4574 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4576 * Description of X11_Class_Usage fix
4578 #define X11_CLASS_USAGE_FIXIDX 115
4579 tSCC zX11_Class_UsageName[] =
4583 * File name selection pattern
4585 tSCC zX11_Class_UsageList[] =
4586 "|Xm/BaseClassI.h|";
4588 * Machine/OS name selection pattern
4590 #define apzX11_Class_UsageMachs (const char**)NULL
4593 * content bypass pattern - skip fix if pattern found
4595 tSCC zX11_Class_UsageBypass0[] =
4598 #define X11_CLASS_USAGE_TEST_CT 1
4599 tTestDesc aX11_Class_UsageTests[] = {
4600 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, };
4603 * Fix Command Arguments for X11_Class_Usage
4605 const char* apzX11_Class_UsagePatch[] = { "sed",
4606 "-e", "s/ class[)]/ c_class)/g",
4609 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4611 * Description of X11_New fix
4613 #define X11_NEW_FIXIDX 116
4614 tSCC zX11_NewName[] =
4618 * File name selection pattern
4620 tSCC zX11_NewList[] =
4623 * Machine/OS name selection pattern
4625 #define apzX11_NewMachs (const char**)NULL
4628 * content bypass pattern - skip fix if pattern found
4630 tSCC zX11_NewBypass0[] =
4633 #define X11_NEW_TEST_CT 1
4634 tTestDesc aX11_NewTests[] = {
4635 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
4638 * Fix Command Arguments for X11_New
4640 const char* apzX11_NewPatch[] = { "sed",
4641 "-e", "/Widget\told, new;/i\\\n\
4642 #ifdef __cplusplus\\\n\
4643 \tWidget\told, c_new;\\\n\
4645 "-e", "/Widget\told, new;/a\\\n\
4647 "-e", "s/Widget new,/Widget c_new,/g",
4650 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4652 * Description of X11_Sprintf fix
4654 #define X11_SPRINTF_FIXIDX 117
4655 tSCC zX11_SprintfName[] =
4659 * File name selection pattern
4661 tSCC zX11_SprintfList[] =
4662 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
4664 * Machine/OS name selection pattern
4666 #define apzX11_SprintfMachs (const char**)NULL
4669 * content selection pattern - do fix if pattern found
4671 tSCC zX11_SprintfSelect0[] =
4674 #define X11_SPRINTF_TEST_CT 1
4675 tTestDesc aX11_SprintfTests[] = {
4676 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
4679 * Fix Command Arguments for X11_Sprintf
4681 const char* apzX11_SprintfPatch[] = { "sed",
4682 "-e", "s,^extern char \\*\tsprintf();$,#ifndef __STDC__\\\n\
4683 extern char *\tsprintf();\\\n\
4684 #endif /* !defined __STDC__ */,",
4688 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4692 #define REGEX_COUNT 105
4693 #define MACH_LIST_SIZE_LIMIT 279
4694 #define FIX_COUNT 118
4696 tFixDesc fixDescList[ FIX_COUNT ] = {
4697 { zAaa_Ki_IfaceName, zAaa_Ki_IfaceList,
4698 apzAaa_Ki_IfaceMachs,
4699 AAA_KI_IFACE_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4700 aAaa_Ki_IfaceTests, apzAaa_Ki_IfacePatch },
4702 { zAaa_KiName, zAaa_KiList,
4704 AAA_KI_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4705 aAaa_KiTests, apzAaa_KiPatch },
4707 { zAaa_Ki_CallsName, zAaa_Ki_CallsList,
4708 apzAaa_Ki_CallsMachs,
4709 AAA_KI_CALLS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4710 aAaa_Ki_CallsTests, apzAaa_Ki_CallsPatch },
4712 { zAaa_Ki_DefsName, zAaa_Ki_DefsList,
4713 apzAaa_Ki_DefsMachs,
4714 AAA_KI_DEFS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4715 aAaa_Ki_DefsTests, apzAaa_Ki_DefsPatch },
4717 { zAaa_Bad_FixesName, zAaa_Bad_FixesList,
4718 apzAaa_Bad_FixesMachs,
4719 AAA_BAD_FIXES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4720 aAaa_Bad_FixesTests, apzAaa_Bad_FixesPatch },
4722 { zAaa_TimeName, zAaa_TimeList,
4724 AAA_TIME_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4725 aAaa_TimeTests, apzAaa_TimePatch },
4727 { zAab_Dgux_Int_VarargsName, zAab_Dgux_Int_VarargsList,
4728 apzAab_Dgux_Int_VarargsMachs,
4729 AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4730 aAab_Dgux_Int_VarargsTests, apzAab_Dgux_Int_VarargsPatch },
4732 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
4733 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
4734 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4735 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch },
4737 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
4738 apzAab_Fd_Zero_Gnu_Types_HMachs,
4739 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4740 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch },
4742 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
4743 apzAab_Fd_Zero_Selectbits_HMachs,
4744 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4745 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch },
4747 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
4748 apzAab_Sun_MemcpyMachs,
4749 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4750 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch },
4752 { zAab_Svr4_Replace_ByteorderName, zAab_Svr4_Replace_ByteorderList,
4753 apzAab_Svr4_Replace_ByteorderMachs,
4754 AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4755 aAab_Svr4_Replace_ByteorderTests, apzAab_Svr4_Replace_ByteorderPatch },
4757 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
4758 apzAab_Ultrix_Ansi_CompatMachs,
4759 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4760 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch },
4762 { zAix_SyswaitName, zAix_SyswaitList,
4763 apzAix_SyswaitMachs,
4764 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4765 aAix_SyswaitTests, apzAix_SyswaitPatch },
4767 { zAix_VolatileName, zAix_VolatileList,
4768 apzAix_VolatileMachs,
4769 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY,
4770 aAix_VolatileTests, apzAix_VolatilePatch },
4772 { zAlpha_GetoptName, zAlpha_GetoptList,
4773 apzAlpha_GetoptMachs,
4774 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY,
4775 aAlpha_GetoptTests, apzAlpha_GetoptPatch },
4777 { zAlpha_ParensName, zAlpha_ParensList,
4778 apzAlpha_ParensMachs,
4779 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY,
4780 aAlpha_ParensTests, apzAlpha_ParensPatch },
4782 { zAlpha_SbrkName, zAlpha_SbrkList,
4784 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY,
4785 aAlpha_SbrkTests, apzAlpha_SbrkPatch },
4787 { zArm_Norcroft_HintName, zArm_Norcroft_HintList,
4788 apzArm_Norcroft_HintMachs,
4789 ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY,
4790 aArm_Norcroft_HintTests, apzArm_Norcroft_HintPatch },
4792 { zArm_WcharName, zArm_WcharList,
4794 ARM_WCHAR_TEST_CT, FD_MACH_ONLY,
4795 aArm_WcharTests, apzArm_WcharPatch },
4797 { zAux_AsmName, zAux_AsmList,
4799 AUX_ASM_TEST_CT, FD_MACH_ONLY,
4800 aAux_AsmTests, apzAux_AsmPatch },
4802 { zAvoid_BoolName, zAvoid_BoolList,
4804 AVOID_BOOL_TEST_CT, FD_MACH_ONLY,
4805 aAvoid_BoolTests, apzAvoid_BoolPatch },
4807 { zBad_Struct_TermName, zBad_Struct_TermList,
4808 apzBad_Struct_TermMachs,
4809 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY,
4810 aBad_Struct_TermTests, apzBad_Struct_TermPatch },
4812 { zBadquoteName, zBadquoteList,
4814 BADQUOTE_TEST_CT, FD_MACH_ONLY,
4815 aBadquoteTests, apzBadquotePatch },
4817 { zBad_LvalName, zBad_LvalList,
4819 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
4820 aBad_LvalTests, apzBad_LvalPatch },
4822 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
4823 apzBroken_Assert_StdioMachs,
4824 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY,
4825 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch },
4827 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
4828 apzBroken_Assert_StdlibMachs,
4829 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY,
4830 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch },
4832 { zBroken_CabsName, zBroken_CabsList,
4833 apzBroken_CabsMachs,
4834 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
4835 aBroken_CabsTests, apzBroken_CabsPatch },
4837 { zDec_Intern_AsmName, zDec_Intern_AsmList,
4838 apzDec_Intern_AsmMachs,
4839 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
4840 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch },
4842 { zEcd_CursorName, zEcd_CursorList,
4844 ECD_CURSOR_TEST_CT, FD_MACH_ONLY,
4845 aEcd_CursorTests, apzEcd_CursorPatch },
4847 { zHp_InlineName, zHp_InlineList,
4849 HP_INLINE_TEST_CT, FD_MACH_ONLY,
4850 aHp_InlineTests, apzHp_InlinePatch },
4852 { zHp_SysfileName, zHp_SysfileList,
4854 HP_SYSFILE_TEST_CT, FD_MACH_ONLY,
4855 aHp_SysfileTests, apzHp_SysfilePatch },
4857 { zCxx_UnreadyName, zCxx_UnreadyList,
4858 apzCxx_UnreadyMachs,
4859 CXX_UNREADY_TEST_CT, FD_MACH_ONLY,
4860 aCxx_UnreadyTests, apzCxx_UnreadyPatch },
4862 { zHpux_MaxintName, zHpux_MaxintList,
4863 apzHpux_MaxintMachs,
4864 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY,
4865 aHpux_MaxintTests, apzHpux_MaxintPatch },
4867 { zHpux_SystimeName, zHpux_SystimeList,
4868 apzHpux_SystimeMachs,
4869 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY,
4870 aHpux_SystimeTests, apzHpux_SystimePatch },
4872 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
4873 apzHpux8_Bogus_InlinesMachs,
4874 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
4875 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch },
4877 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
4878 apzHpux11_Uint32_CMachs,
4879 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY,
4880 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch },
4882 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
4883 apzIsc_Omits_With_StdcMachs,
4884 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY,
4885 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch },
4887 { zIo_Quotes_UseName, zIo_Quotes_UseList,
4888 apzIo_Quotes_UseMachs,
4889 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4890 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch },
4892 { zIo_Quotes_DefName, zIo_Quotes_DefList,
4893 apzIo_Quotes_DefMachs,
4894 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4895 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch },
4897 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
4898 apzCtrl_Quotes_UseMachs,
4899 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4900 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch },
4902 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
4903 apzCtrl_Quotes_DefMachs,
4904 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4905 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch },
4907 { zIp_Missing_SemiName, zIp_Missing_SemiList,
4908 apzIp_Missing_SemiMachs,
4909 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
4910 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch },
4912 { zIrix_Multiline_CmntName, zIrix_Multiline_CmntList,
4913 apzIrix_Multiline_CmntMachs,
4914 IRIX_MULTILINE_CMNT_TEST_CT, FD_MACH_ONLY,
4915 aIrix_Multiline_CmntTests, apzIrix_Multiline_CmntPatch },
4917 { zIrix_SockaddrName, zIrix_SockaddrList,
4918 apzIrix_SockaddrMachs,
4919 IRIX_SOCKADDR_TEST_CT, FD_MACH_ONLY,
4920 aIrix_SockaddrTests, apzIrix_SockaddrPatch },
4922 { zIrix_Struct__FileName, zIrix_Struct__FileList,
4923 apzIrix_Struct__FileMachs,
4924 IRIX_STRUCT__FILE_TEST_CT, FD_MACH_ONLY,
4925 aIrix_Struct__FileTests, apzIrix_Struct__FilePatch },
4927 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
4928 apzIrix_Asm_ApostropheMachs,
4929 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY,
4930 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch },
4932 { zIsc_FmodName, zIsc_FmodList,
4934 ISC_FMOD_TEST_CT, FD_MACH_ONLY,
4935 aIsc_FmodTests, apzIsc_FmodPatch },
4937 { zMotorola_NestedName, zMotorola_NestedList,
4938 apzMotorola_NestedMachs,
4939 MOTOROLA_NESTED_TEST_CT, FD_MACH_ONLY,
4940 aMotorola_NestedTests, apzMotorola_NestedPatch },
4942 { zIsc_Sys_LimitsName, zIsc_Sys_LimitsList,
4943 apzIsc_Sys_LimitsMachs,
4944 ISC_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
4945 aIsc_Sys_LimitsTests, apzIsc_Sys_LimitsPatch },
4947 { zKandr_ConcatName, zKandr_ConcatList,
4948 apzKandr_ConcatMachs,
4949 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY,
4950 aKandr_ConcatTests, apzKandr_ConcatPatch },
4952 { zLimits_IfndefsName, zLimits_IfndefsList,
4953 apzLimits_IfndefsMachs,
4954 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY,
4955 aLimits_IfndefsTests, apzLimits_IfndefsPatch },
4957 { zLynx_Void_IntName, zLynx_Void_IntList,
4958 apzLynx_Void_IntMachs,
4959 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY,
4960 aLynx_Void_IntTests, apzLynx_Void_IntPatch },
4962 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
4963 apzLynxos_Fcntl_ProtoMachs,
4964 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY,
4965 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch },
4967 { zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList,
4968 apzM88k_Bad_Hypot_OptMachs,
4969 M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY,
4970 aM88k_Bad_Hypot_OptTests, apzM88k_Bad_Hypot_OptPatch },
4972 { zM88k_Bad_S_IfName, zM88k_Bad_S_IfList,
4973 apzM88k_Bad_S_IfMachs,
4974 M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY,
4975 aM88k_Bad_S_IfTests, apzM88k_Bad_S_IfPatch },
4977 { zM88k_Multi_InclName, zM88k_Multi_InclList,
4978 apzM88k_Multi_InclMachs,
4979 M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
4980 aM88k_Multi_InclTests, apzM88k_Multi_InclPatch },
4982 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
4983 apzMachine_Ansi_H_Va_ListMachs,
4984 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY,
4985 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch },
4987 { zMachine_NameName, zMachine_NameList,
4988 apzMachine_NameMachs,
4989 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4990 aMachine_NameTests, apzMachine_NamePatch },
4992 { zMath_ExceptionName, zMath_ExceptionList,
4993 apzMath_ExceptionMachs,
4994 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY,
4995 aMath_ExceptionTests, apzMath_ExceptionPatch },
4997 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
4998 apzMath_Huge_Val_From_Dbl_MaxMachs,
4999 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
5000 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch },
5002 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
5003 apzMath_Huge_Val_IfndefMachs,
5004 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY,
5005 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch },
5007 { zNested_CommentName, zNested_CommentList,
5008 apzNested_CommentMachs,
5009 NESTED_COMMENT_TEST_CT, FD_MACH_ONLY,
5010 aNested_CommentTests, apzNested_CommentPatch },
5012 { zNews_Os_RecursionName, zNews_Os_RecursionList,
5013 apzNews_Os_RecursionMachs,
5014 NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY,
5015 aNews_Os_RecursionTests, apzNews_Os_RecursionPatch },
5017 { zNext_Math_PrefixName, zNext_Math_PrefixList,
5018 apzNext_Math_PrefixMachs,
5019 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY,
5020 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch },
5022 { zNext_TemplateName, zNext_TemplateList,
5023 apzNext_TemplateMachs,
5024 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY,
5025 aNext_TemplateTests, apzNext_TemplatePatch },
5027 { zNext_VolitileName, zNext_VolitileList,
5028 apzNext_VolitileMachs,
5029 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY,
5030 aNext_VolitileTests, apzNext_VolitilePatch },
5032 { zNext_Wait_UnionName, zNext_Wait_UnionList,
5033 apzNext_Wait_UnionMachs,
5034 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY,
5035 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch },
5037 { zNodeent_SyntaxName, zNodeent_SyntaxList,
5038 apzNodeent_SyntaxMachs,
5039 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY,
5040 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch },
5042 { zOsf_Namespace_AName, zOsf_Namespace_AList,
5043 apzOsf_Namespace_AMachs,
5044 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY,
5045 aOsf_Namespace_ATests, apzOsf_Namespace_APatch },
5047 { zOsf_Namespace_BName, zOsf_Namespace_BList,
5048 apzOsf_Namespace_BMachs,
5049 OSF_NAMESPACE_B_TEST_CT, FD_MACH_ONLY,
5050 aOsf_Namespace_BTests, apzOsf_Namespace_BPatch },
5052 { zPthread_Page_SizeName, zPthread_Page_SizeList,
5053 apzPthread_Page_SizeMachs,
5054 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY,
5055 aPthread_Page_SizeTests, apzPthread_Page_SizePatch },
5057 { zRead_Ret_TypeName, zRead_Ret_TypeList,
5058 apzRead_Ret_TypeMachs,
5059 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY,
5060 aRead_Ret_TypeTests, apzRead_Ret_TypePatch },
5062 { zRs6000_DoubleName, zRs6000_DoubleList,
5063 apzRs6000_DoubleMachs,
5064 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY,
5065 aRs6000_DoubleTests, apzRs6000_DoublePatch },
5067 { zRs6000_FchmodName, zRs6000_FchmodList,
5068 apzRs6000_FchmodMachs,
5069 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY,
5070 aRs6000_FchmodTests, apzRs6000_FchmodPatch },
5072 { zRs6000_ParamName, zRs6000_ParamList,
5073 apzRs6000_ParamMachs,
5074 RS6000_PARAM_TEST_CT, FD_MACH_ONLY,
5075 aRs6000_ParamTests, apzRs6000_ParamPatch },
5077 { zSco_Strict_AnsiName, zSco_Strict_AnsiList,
5078 apzSco_Strict_AnsiMachs,
5079 SCO_STRICT_ANSI_TEST_CT, FD_MACH_ONLY,
5080 aSco_Strict_AnsiTests, apzSco_Strict_AnsiPatch },
5082 { zSco_Static_FuncName, zSco_Static_FuncList,
5083 apzSco_Static_FuncMachs,
5084 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
5085 aSco_Static_FuncTests, apzSco_Static_FuncPatch },
5087 { zSco_UtimeName, zSco_UtimeList,
5089 SCO_UTIME_TEST_CT, FD_MACH_ONLY,
5090 aSco_UtimeTests, apzSco_UtimePatch },
5092 { zSony_IncludeName, zSony_IncludeList,
5093 apzSony_IncludeMachs,
5094 SONY_INCLUDE_TEST_CT, FD_MACH_ONLY,
5095 aSony_IncludeTests, apzSony_IncludePatch },
5097 { zStatsswtchName, zStatsswtchList,
5099 STATSSWTCH_TEST_CT, FD_MACH_ONLY,
5100 aStatsswtchTests, apzStatsswtchPatch },
5102 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
5103 apzStdio_Stdarg_HMachs,
5104 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY,
5105 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch },
5107 { zStdio_Va_ListName, zStdio_Va_ListList,
5108 apzStdio_Va_ListMachs,
5109 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
5110 aStdio_Va_ListTests, apzStdio_Va_ListPatch },
5112 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
5113 apzSun_Auth_ProtoMachs,
5114 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY,
5115 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch },
5117 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
5118 apzSun_Bogus_IfdefMachs,
5119 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY,
5120 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch },
5122 { zSun_Bogus_Ifdef_Sun4cName, zSun_Bogus_Ifdef_Sun4cList,
5123 apzSun_Bogus_Ifdef_Sun4cMachs,
5124 SUN_BOGUS_IFDEF_SUN4C_TEST_CT, FD_MACH_ONLY,
5125 aSun_Bogus_Ifdef_Sun4cTests, apzSun_Bogus_Ifdef_Sun4cPatch },
5127 { zSun_CatmacroName, zSun_CatmacroList,
5128 apzSun_CatmacroMachs,
5129 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY,
5130 aSun_CatmacroTests, apzSun_CatmacroPatch },
5132 { zSun_MallocName, zSun_MallocList,
5134 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
5135 aSun_MallocTests, apzSun_MallocPatch },
5137 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
5138 apzSun_Rusers_SemiMachs,
5139 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
5140 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch },
5142 { zSun_SignalName, zSun_SignalList,
5144 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY,
5145 aSun_SignalTests, apzSun_SignalPatch },
5147 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
5148 apzSunos_Matherr_DeclMachs,
5149 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY,
5150 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch },
5152 { zSunos_StrlenName, zSunos_StrlenList,
5153 apzSunos_StrlenMachs,
5154 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY,
5155 aSunos_StrlenTests, apzSunos_StrlenPatch },
5157 { zSvr4_GetcwdName, zSvr4_GetcwdList,
5158 apzSvr4_GetcwdMachs,
5159 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY,
5160 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch },
5162 { zSvr4_ProfilName, zSvr4_ProfilList,
5163 apzSvr4_ProfilMachs,
5164 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY,
5165 aSvr4_ProfilTests, apzSvr4_ProfilPatch },
5167 { zSystypesName, zSystypesList,
5169 SYSTYPES_TEST_CT, FD_MACH_ONLY,
5170 aSystypesTests, apzSystypesPatch },
5172 { zSystypes_Stdlib_Size_TName, zSystypes_Stdlib_Size_TList,
5173 apzSystypes_Stdlib_Size_TMachs,
5174 SYSTYPES_STDLIB_SIZE_T_TEST_CT, FD_MACH_ONLY,
5175 aSystypes_Stdlib_Size_TTests, apzSystypes_Stdlib_Size_TPatch },
5177 { zSysv68_StringName, zSysv68_StringList,
5178 apzSysv68_StringMachs,
5179 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
5180 aSysv68_StringTests, apzSysv68_StringPatch },
5182 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
5183 apzSysz_Stdlib_For_SunMachs,
5184 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY,
5185 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch },
5187 { zSysz_Stdtypes_For_SunName, zSysz_Stdtypes_For_SunList,
5188 apzSysz_Stdtypes_For_SunMachs,
5189 SYSZ_STDTYPES_FOR_SUN_TEST_CT, FD_MACH_ONLY,
5190 aSysz_Stdtypes_For_SunTests, apzSysz_Stdtypes_For_SunPatch },
5192 { zTinfo_CplusplusName, zTinfo_CplusplusList,
5193 apzTinfo_CplusplusMachs,
5194 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY,
5195 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch },
5197 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
5198 apzUltrix_Fix_FixprotoMachs,
5199 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY,
5200 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch },
5202 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
5203 apzUltrix_Atof_ParamMachs,
5204 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY,
5205 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch },
5207 { zUltrix_ConstName, zUltrix_ConstList,
5208 apzUltrix_ConstMachs,
5209 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY,
5210 aUltrix_ConstTests, apzUltrix_ConstPatch },
5212 { zUltrix_IfdefName, zUltrix_IfdefList,
5213 apzUltrix_IfdefMachs,
5214 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY,
5215 aUltrix_IfdefTests, apzUltrix_IfdefPatch },
5217 { zUltrix_Nested_CmntName, zUltrix_Nested_CmntList,
5218 apzUltrix_Nested_CmntMachs,
5219 ULTRIX_NESTED_CMNT_TEST_CT, FD_MACH_ONLY,
5220 aUltrix_Nested_CmntTests, apzUltrix_Nested_CmntPatch },
5222 { zUltrix_StaticName, zUltrix_StaticList,
5223 apzUltrix_StaticMachs,
5224 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
5225 aUltrix_StaticTests, apzUltrix_StaticPatch },
5227 { zUndefine_NullName, zUndefine_NullList,
5228 apzUndefine_NullMachs,
5229 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY,
5230 aUndefine_NullTests, apzUndefine_NullPatch },
5232 { zUnixware7_Byteorder_FixName, zUnixware7_Byteorder_FixList,
5233 apzUnixware7_Byteorder_FixMachs,
5234 UNIXWARE7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY,
5235 aUnixware7_Byteorder_FixTests, apzUnixware7_Byteorder_FixPatch },
5237 { zVa_I960_MacroName, zVa_I960_MacroList,
5238 apzVa_I960_MacroMachs,
5239 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY,
5240 aVa_I960_MacroTests, apzVa_I960_MacroPatch },
5242 { zVoid_NullName, zVoid_NullList,
5244 VOID_NULL_TEST_CT, FD_MACH_ONLY,
5245 aVoid_NullTests, apzVoid_NullPatch },
5247 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
5248 apzVxworks_Gcc_ProblemMachs,
5249 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
5250 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch },
5252 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
5253 apzVxworks_Needs_VxtypesMachs,
5254 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY,
5255 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch },
5257 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
5258 apzVxworks_Needs_VxworksMachs,
5259 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
5260 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch },
5262 { zVxworks_TimeName, zVxworks_TimeList,
5263 apzVxworks_TimeMachs,
5264 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY,
5265 aVxworks_TimeTests, apzVxworks_TimePatch },
5267 { zX11_ClassName, zX11_ClassList,
5269 X11_CLASS_TEST_CT, FD_MACH_ONLY,
5270 aX11_ClassTests, apzX11_ClassPatch },
5272 { zX11_Class_UsageName, zX11_Class_UsageList,
5273 apzX11_Class_UsageMachs,
5274 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY,
5275 aX11_Class_UsageTests, apzX11_Class_UsagePatch },
5277 { zX11_NewName, zX11_NewList,
5279 X11_NEW_TEST_CT, FD_MACH_ONLY,
5280 aX11_NewTests, apzX11_NewPatch },
5282 { zX11_SprintfName, zX11_SprintfList,
5283 apzX11_SprintfMachs,
5284 X11_SPRINTF_TEST_CT, FD_MACH_ONLY,
5285 aX11_SprintfTests, apzX11_SprintfPatch }