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]*\\([^(]*\\)\\(([^)]*)\\)[ \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[] = {
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[] = {
1262 "#ifdef __cplusplus\n\
1263 #include <stdlib.h>\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[] = {
1471 "#ifdef __cplusplus\n\
1474 "#ifdef __cplusplus\n\
1479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1481 * Description of Hpux_Maxint fix
1483 #define HPUX_MAXINT_FIXIDX 33
1484 tSCC zHpux_MaxintName[] =
1488 * File name selection pattern
1490 tSCC zHpux_MaxintList[] =
1493 * Machine/OS name selection pattern
1495 #define apzHpux_MaxintMachs (const char**)NULL
1498 * content selection pattern - do fix if pattern found
1500 tSCC zHpux_MaxintSelect0[] =
1501 "^#[ \t]*define[ \t]*MAXINT[ \t]";
1503 #define HPUX_MAXINT_TEST_CT 1
1504 tTestDesc aHpux_MaxintTests[] = {
1505 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
1508 * Fix Command Arguments for Hpux_Maxint
1510 const char* apzHpux_MaxintPatch[] = { "sed",
1511 "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n\
1513 "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n\
1517 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1519 * Description of Hpux_Systime fix
1521 #define HPUX_SYSTIME_FIXIDX 34
1522 tSCC zHpux_SystimeName[] =
1526 * File name selection pattern
1528 tSCC zHpux_SystimeList[] =
1531 * Machine/OS name selection pattern
1533 #define apzHpux_SystimeMachs (const char**)NULL
1536 * content selection pattern - do fix if pattern found
1538 tSCC zHpux_SystimeSelect0[] =
1539 "^extern struct sigevent;";
1541 #define HPUX_SYSTIME_TEST_CT 1
1542 tTestDesc aHpux_SystimeTests[] = {
1543 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
1546 * Fix Command Arguments for Hpux_Systime
1548 const char* apzHpux_SystimePatch[] = { "sed",
1549 "-e", "s/^extern struct sigevent;/struct sigevent;/",
1552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1554 * Description of Hpux8_Bogus_Inlines fix
1556 #define HPUX8_BOGUS_INLINES_FIXIDX 35
1557 tSCC zHpux8_Bogus_InlinesName[] =
1558 "hpux8_bogus_inlines";
1561 * File name selection pattern
1563 tSCC zHpux8_Bogus_InlinesList[] =
1566 * Machine/OS name selection pattern
1568 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
1571 * content selection pattern - do fix if pattern found
1573 tSCC zHpux8_Bogus_InlinesSelect0[] =
1576 #define HPUX8_BOGUS_INLINES_TEST_CT 1
1577 tTestDesc aHpux8_Bogus_InlinesTests[] = {
1578 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
1581 * Fix Command Arguments for Hpux8_Bogus_Inlines
1583 const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
1584 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
1585 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
1586 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
1587 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
1590 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1592 * Description of Hpux11_Uint32_C fix
1594 #define HPUX11_UINT32_C_FIXIDX 36
1595 tSCC zHpux11_Uint32_CName[] =
1599 * File name selection pattern
1601 tSCC zHpux11_Uint32_CList[] =
1604 * Machine/OS name selection pattern
1606 #define apzHpux11_Uint32_CMachs (const char**)NULL
1609 * content selection pattern - do fix if pattern found
1611 tSCC zHpux11_Uint32_CSelect0[] =
1612 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1614 #define HPUX11_UINT32_C_TEST_CT 1
1615 tTestDesc aHpux11_Uint32_CTests[] = {
1616 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1619 * Fix Command Arguments for Hpux11_Uint32_C
1621 const char* apzHpux11_Uint32_CPatch[] = { "sed",
1622 "-e", "s/^#define UINT32_C(__c)\\([ \t]*\\)__CONCAT__(__CONCAT_U__(__c),l)/#define UINT32_C(__c)\\1__CONCAT__(__c,ul)/",
1625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1627 * Description of Isc_Omits_With_Stdc fix
1629 #define ISC_OMITS_WITH_STDC_FIXIDX 37
1630 tSCC zIsc_Omits_With_StdcName[] =
1631 "isc_omits_with_stdc";
1634 * File name selection pattern
1636 tSCC zIsc_Omits_With_StdcList[] =
1637 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
1639 * Machine/OS name selection pattern
1641 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
1644 * content selection pattern - do fix if pattern found
1646 tSCC zIsc_Omits_With_StdcSelect0[] =
1647 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
1649 #define ISC_OMITS_WITH_STDC_TEST_CT 1
1650 tTestDesc aIsc_Omits_With_StdcTests[] = {
1651 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
1654 * Fix Command Arguments for Isc_Omits_With_Stdc
1656 const char* apzIsc_Omits_With_StdcPatch[] = { "sed",
1657 "-e", "s/!defined(__STDC__) && !defined(_POSIX_SOURCE)/!defined(_POSIX_SOURCE)/",
1660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1662 * Description of Io_Quotes_Use fix
1664 #define IO_QUOTES_USE_FIXIDX 38
1665 tSCC zIo_Quotes_UseName[] =
1669 * File name selection pattern
1671 #define zIo_Quotes_UseList (char*)NULL
1673 * Machine/OS name selection pattern
1675 #define apzIo_Quotes_UseMachs (const char**)NULL
1678 * content selection pattern - do fix if pattern found
1680 tSCC zIo_Quotes_UseSelect0[] =
1681 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
1683 #define IO_QUOTES_USE_TEST_CT 1
1684 tTestDesc aIo_Quotes_UseTests[] = {
1685 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
1688 * Fix Command Arguments for Io_Quotes_Use
1690 const char* apzIo_Quotes_UsePatch[] = {
1695 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1697 * Description of Io_Quotes_Def fix
1699 #define IO_QUOTES_DEF_FIXIDX 39
1700 tSCC zIo_Quotes_DefName[] =
1704 * File name selection pattern
1706 #define zIo_Quotes_DefList (char*)NULL
1708 * Machine/OS name selection pattern
1710 #define apzIo_Quotes_DefMachs (const char**)NULL
1713 * content selection pattern - do fix if pattern found
1715 tSCC zIo_Quotes_DefSelect0[] =
1716 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\(([a-zA-Z]).*'\\1'";
1718 #define IO_QUOTES_DEF_TEST_CT 1
1719 tTestDesc aIo_Quotes_DefTests[] = {
1720 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
1723 * Fix Command Arguments for Io_Quotes_Def
1725 const char* apzIo_Quotes_DefPatch[] = {
1730 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1732 * Description of Ctrl_Quotes_Use fix
1734 #define CTRL_QUOTES_USE_FIXIDX 40
1735 tSCC zCtrl_Quotes_UseName[] =
1739 * File name selection pattern
1741 #define zCtrl_Quotes_UseList (char*)NULL
1743 * Machine/OS name selection pattern
1745 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1748 * content selection pattern - do fix if pattern found
1750 tSCC zCtrl_Quotes_UseSelect0[] =
1751 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1753 #define CTRL_QUOTES_USE_TEST_CT 1
1754 tTestDesc aCtrl_Quotes_UseTests[] = {
1755 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1758 * Fix Command Arguments for Ctrl_Quotes_Use
1760 const char* apzCtrl_Quotes_UsePatch[] = {
1765 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1767 * Description of Ctrl_Quotes_Def fix
1769 #define CTRL_QUOTES_DEF_FIXIDX 41
1770 tSCC zCtrl_Quotes_DefName[] =
1774 * File name selection pattern
1776 #define zCtrl_Quotes_DefList (char*)NULL
1778 * Machine/OS name selection pattern
1780 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1783 * content selection pattern - do fix if pattern found
1785 tSCC zCtrl_Quotes_DefSelect0[] =
1786 "define[ \t]+[A-Z0-9_]+CTRL\\(([a-zA-Z]).*'\\1'";
1788 #define CTRL_QUOTES_DEF_TEST_CT 1
1789 tTestDesc aCtrl_Quotes_DefTests[] = {
1790 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1793 * Fix Command Arguments for Ctrl_Quotes_Def
1795 const char* apzCtrl_Quotes_DefPatch[] = {
1800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1802 * Description of Ip_Missing_Semi fix
1804 #define IP_MISSING_SEMI_FIXIDX 42
1805 tSCC zIp_Missing_SemiName[] =
1809 * File name selection pattern
1811 tSCC zIp_Missing_SemiList[] =
1814 * Machine/OS name selection pattern
1816 #define apzIp_Missing_SemiMachs (const char**)NULL
1819 * content selection pattern - do fix if pattern found
1821 tSCC zIp_Missing_SemiSelect0[] =
1824 #define IP_MISSING_SEMI_TEST_CT 1
1825 tTestDesc aIp_Missing_SemiTests[] = {
1826 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
1829 * Fix Command Arguments for Ip_Missing_Semi
1831 const char* apzIp_Missing_SemiPatch[] = { "sed",
1832 "-e", "/^struct/,/^};/s/}$/};/",
1835 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1837 * Description of Irix_Multiline_Cmnt fix
1839 #define IRIX_MULTILINE_CMNT_FIXIDX 43
1840 tSCC zIrix_Multiline_CmntName[] =
1841 "irix_multiline_cmnt";
1844 * File name selection pattern
1846 tSCC zIrix_Multiline_CmntList[] =
1849 * Machine/OS name selection pattern
1851 #define apzIrix_Multiline_CmntMachs (const char**)NULL
1852 #define IRIX_MULTILINE_CMNT_TEST_CT 0
1853 #define aIrix_Multiline_CmntTests (tTestDesc*)NULL
1856 * Fix Command Arguments for Irix_Multiline_Cmnt
1858 const char* apzIrix_Multiline_CmntPatch[] = { "sed",
1859 "-e", "s@type of the result@type of the result */@",
1860 "-e", "s@of the sizeof@/* of the sizeof@",
1863 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1865 * Description of Irix_Sockaddr fix
1867 #define IRIX_SOCKADDR_FIXIDX 44
1868 tSCC zIrix_SockaddrName[] =
1872 * File name selection pattern
1874 tSCC zIrix_SockaddrList[] =
1877 * Machine/OS name selection pattern
1879 #define apzIrix_SockaddrMachs (const char**)NULL
1882 * content selection pattern - do fix if pattern found
1884 tSCC zIrix_SockaddrSelect0[] =
1885 "authdes_create.*struct sockaddr";
1888 * content bypass pattern - skip fix if pattern found
1890 tSCC zIrix_SockaddrBypass0[] =
1893 #define IRIX_SOCKADDR_TEST_CT 2
1894 tTestDesc aIrix_SockaddrTests[] = {
1895 { TT_NEGREP, zIrix_SockaddrBypass0, (regex_t*)NULL },
1896 { TT_EGREP, zIrix_SockaddrSelect0, (regex_t*)NULL }, };
1899 * Fix Command Arguments for Irix_Sockaddr
1901 const char* apzIrix_SockaddrPatch[] = { "sed",
1902 "-e", "/authdes_create.*struct sockaddr/i\\\n\
1903 struct sockaddr;\n",
1906 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1908 * Description of Irix_Struct__File fix
1910 #define IRIX_STRUCT__FILE_FIXIDX 45
1911 tSCC zIrix_Struct__FileName[] =
1912 "irix_struct__file";
1915 * File name selection pattern
1917 tSCC zIrix_Struct__FileList[] =
1920 * Machine/OS name selection pattern
1922 #define apzIrix_Struct__FileMachs (const char**)NULL
1923 #define IRIX_STRUCT__FILE_TEST_CT 0
1924 #define aIrix_Struct__FileTests (tTestDesc*)NULL
1927 * Fix Command Arguments for Irix_Struct__File
1929 const char* apzIrix_Struct__FilePatch[] = { "sed",
1930 "-e", "/xdrstdio_create.*struct __file_s/i\\\n\
1931 struct __file_s;\n",
1934 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1936 * Description of Irix_Asm_Apostrophe fix
1938 #define IRIX_ASM_APOSTROPHE_FIXIDX 46
1939 tSCC zIrix_Asm_ApostropheName[] =
1940 "irix_asm_apostrophe";
1943 * File name selection pattern
1945 tSCC zIrix_Asm_ApostropheList[] =
1948 * Machine/OS name selection pattern
1950 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
1953 * content selection pattern - do fix if pattern found
1955 tSCC zIrix_Asm_ApostropheSelect0[] =
1956 "^[ \t]*#.*[Ww]e're";
1958 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
1959 tTestDesc aIrix_Asm_ApostropheTests[] = {
1960 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
1963 * Fix Command Arguments for Irix_Asm_Apostrophe
1965 const char* apzIrix_Asm_ApostrophePatch[] = { "sed",
1966 "-e", "/^[ \t]*#/s/\\([Ww]e\\)'re/\\1 are/",
1969 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1971 * Description of Isc_Fmod fix
1973 #define ISC_FMOD_FIXIDX 47
1974 tSCC zIsc_FmodName[] =
1978 * File name selection pattern
1980 tSCC zIsc_FmodList[] =
1983 * Machine/OS name selection pattern
1985 #define apzIsc_FmodMachs (const char**)NULL
1988 * content selection pattern - do fix if pattern found
1990 tSCC zIsc_FmodSelect0[] =
1993 #define ISC_FMOD_TEST_CT 1
1994 tTestDesc aIsc_FmodTests[] = {
1995 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
1998 * Fix Command Arguments for Isc_Fmod
2000 const char* apzIsc_FmodPatch[] = { "sed",
2001 "-e", "s/fmod(double)/fmod(double, double)/",
2004 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2006 * Description of Motorola_Nested fix
2008 #define MOTOROLA_NESTED_FIXIDX 48
2009 tSCC zMotorola_NestedName[] =
2013 * File name selection pattern
2015 tSCC zMotorola_NestedList[] =
2016 "|limits.h|sys/limits.h|";
2018 * Machine/OS name selection pattern
2020 tSCC* apzMotorola_NestedMachs[] = {
2021 "m68k-motorola-sysv*",
2022 (const char*)NULL };
2023 #define MOTOROLA_NESTED_TEST_CT 0
2024 #define aMotorola_NestedTests (tTestDesc*)NULL
2027 * Fix Command Arguments for Motorola_Nested
2029 const char* apzMotorola_NestedPatch[] = { "sed",
2030 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
2031 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.40282346638528860e+38 \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
2034 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2036 * Description of Isc_Sys_Limits fix
2038 #define ISC_SYS_LIMITS_FIXIDX 49
2039 tSCC zIsc_Sys_LimitsName[] =
2043 * File name selection pattern
2045 tSCC zIsc_Sys_LimitsList[] =
2048 * Machine/OS name selection pattern
2050 #define apzIsc_Sys_LimitsMachs (const char**)NULL
2053 * content selection pattern - do fix if pattern found
2055 tSCC zIsc_Sys_LimitsSelect0[] =
2058 #define ISC_SYS_LIMITS_TEST_CT 1
2059 tTestDesc aIsc_Sys_LimitsTests[] = {
2060 { TT_EGREP, zIsc_Sys_LimitsSelect0, (regex_t*)NULL }, };
2063 * Fix Command Arguments for Isc_Sys_Limits
2065 const char* apzIsc_Sys_LimitsPatch[] = { "sed",
2066 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
2067 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
2070 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2072 * Description of Kandr_Concat fix
2074 #define KANDR_CONCAT_FIXIDX 50
2075 tSCC zKandr_ConcatName[] =
2079 * File name selection pattern
2081 tSCC zKandr_ConcatList[] =
2082 "|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|";
2084 * Machine/OS name selection pattern
2086 #define apzKandr_ConcatMachs (const char**)NULL
2089 * content selection pattern - do fix if pattern found
2091 tSCC zKandr_ConcatSelect0[] =
2094 #define KANDR_CONCAT_TEST_CT 1
2095 tTestDesc aKandr_ConcatTests[] = {
2096 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2099 * Fix Command Arguments for Kandr_Concat
2101 const char* apzKandr_ConcatPatch[] = { "sed",
2102 "-e", "s|/\\*\\*/|##|g",
2105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2107 * Description of Limits_Ifndefs fix
2109 #define LIMITS_IFNDEFS_FIXIDX 51
2110 tSCC zLimits_IfndefsName[] =
2114 * File name selection pattern
2116 tSCC zLimits_IfndefsList[] =
2117 "|limits.h|sys/limits.h|";
2119 * Machine/OS name selection pattern
2121 #define apzLimits_IfndefsMachs (const char**)NULL
2124 * content bypass pattern - skip fix if pattern found
2126 tSCC zLimits_IfndefsBypass0[] =
2127 "ifndef[ \t]+FLT_MIN";
2129 #define LIMITS_IFNDEFS_TEST_CT 1
2130 tTestDesc aLimits_IfndefsTests[] = {
2131 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2134 * Fix Command Arguments for Limits_Ifndefs
2136 const char* apzLimits_IfndefsPatch[] = { "sed",
2137 "-e", "/[ \t]FLT_MIN[ \t]/i\\\n\
2139 "-e", "/[ \t]FLT_MIN[ \t]/a\\\n\
2141 "-e", "/[ \t]FLT_MAX[ \t]/i\\\n\
2143 "-e", "/[ \t]FLT_MAX[ \t]/a\\\n\
2145 "-e", "/[ \t]FLT_DIG[ \t]/i\\\n\
2147 "-e", "/[ \t]FLT_DIG[ \t]/a\\\n\
2149 "-e", "/[ \t]DBL_MIN[ \t]/i\\\n\
2151 "-e", "/[ \t]DBL_MIN[ \t]/a\\\n\
2153 "-e", "/[ \t]DBL_MAX[ \t]/i\\\n\
2155 "-e", "/[ \t]DBL_MAX[ \t]/a\\\n\
2157 "-e", "/[ \t]DBL_DIG[ \t]/i\\\n\
2159 "-e", "/[ \t]DBL_DIG[ \t]/a\\\n\
2161 "-e", "/^\\(\\/\\*#define\tHUGE_VAL\t3\\.[0-9e+]* *\\)\\/\\*/s//\\1/",
2164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2166 * Description of Lynx_Void_Int fix
2168 #define LYNX_VOID_INT_FIXIDX 52
2169 tSCC zLynx_Void_IntName[] =
2173 * File name selection pattern
2175 tSCC zLynx_Void_IntList[] =
2178 * Machine/OS name selection pattern
2180 #define apzLynx_Void_IntMachs (const char**)NULL
2183 * content selection pattern - do fix if pattern found
2185 tSCC zLynx_Void_IntSelect0[] =
2186 "#[ \t]*define[ \t]+void[ \t]+int";
2188 #define LYNX_VOID_INT_TEST_CT 1
2189 tTestDesc aLynx_Void_IntTests[] = {
2190 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2193 * Fix Command Arguments for Lynx_Void_Int
2195 const char* apzLynx_Void_IntPatch[] = { "sed",
2196 "-e", "/#[ \t]*define[ \t][ \t]*void[ \t]int/d",
2199 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2201 * Description of Lynxos_Fcntl_Proto fix
2203 #define LYNXOS_FCNTL_PROTO_FIXIDX 53
2204 tSCC zLynxos_Fcntl_ProtoName[] =
2205 "lynxos_fcntl_proto";
2208 * File name selection pattern
2210 tSCC zLynxos_Fcntl_ProtoList[] =
2213 * Machine/OS name selection pattern
2215 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2218 * content selection pattern - do fix if pattern found
2220 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2221 "fcntl.*\\(int, int, int\\)";
2223 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2224 tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2225 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2228 * Fix Command Arguments for Lynxos_Fcntl_Proto
2230 const char* apzLynxos_Fcntl_ProtoPatch[] = { "sed",
2231 "-e", "s/\\(fcntl.*(int, int, \\)int)/\\1...)/",
2234 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2236 * Description of M88k_Bad_Hypot_Opt fix
2238 #define M88K_BAD_HYPOT_OPT_FIXIDX 54
2239 tSCC zM88k_Bad_Hypot_OptName[] =
2240 "m88k_bad_hypot_opt";
2243 * File name selection pattern
2245 tSCC zM88k_Bad_Hypot_OptList[] =
2248 * Machine/OS name selection pattern
2250 tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
2251 "m88k-motorola-sysv3*",
2252 (const char*)NULL };
2253 #define M88K_BAD_HYPOT_OPT_TEST_CT 0
2254 #define aM88k_Bad_Hypot_OptTests (tTestDesc*)NULL
2257 * Fix Command Arguments for M88k_Bad_Hypot_Opt
2259 const char* apzM88k_Bad_Hypot_OptPatch[] = { "sed",
2260 "-e", "s/extern double floor(), ceil(), fmod(), fabs();/extern double floor(), ceil(), fmod(), fabs _PARAMS((double));/",
2261 "-e", "/^extern double hypot();$/a\\\n\
2262 \\/* Workaround a stupid Motorola optimization if one\\\n\
2263 of x or y is 0.0 and the other is negative! *\\/\\\n\
2264 #ifdef __STDC__\\\n\
2265 static __inline__ double fake_hypot (double x, double y)\\\n\
2267 static __inline__ double fake_hypot (x, y)\\\n\
2271 \treturn fabs (hypot (x, y));\\\n\
2273 #define hypot\tfake_hypot\n",
2276 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2278 * Description of M88k_Bad_S_If fix
2280 #define M88K_BAD_S_IF_FIXIDX 55
2281 tSCC zM88k_Bad_S_IfName[] =
2285 * File name selection pattern
2287 tSCC zM88k_Bad_S_IfList[] =
2290 * Machine/OS name selection pattern
2292 tSCC* apzM88k_Bad_S_IfMachs[] = {
2294 (const char*)NULL };
2297 * content selection pattern - do fix if pattern found
2299 tSCC zM88k_Bad_S_IfSelect0[] =
2300 "#define[ \t]+S_IS[A-Z]*(m)[ \t]";
2302 #define M88K_BAD_S_IF_TEST_CT 1
2303 tTestDesc aM88k_Bad_S_IfTests[] = {
2304 { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
2307 * Fix Command Arguments for M88k_Bad_S_If
2309 const char* apzM88k_Bad_S_IfPatch[] = { "sed",
2310 "-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)/",
2311 "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(0[0-9]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",
2314 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2316 * Description of M88k_Multi_Incl fix
2318 #define M88K_MULTI_INCL_FIXIDX 56
2319 tSCC zM88k_Multi_InclName[] =
2323 * File name selection pattern
2325 tSCC zM88k_Multi_InclList[] =
2328 * Machine/OS name selection pattern
2330 tSCC* apzM88k_Multi_InclMachs[] = {
2331 "m88k-tektronix-sysv3*",
2332 (const char*)NULL };
2335 * content bypass pattern - skip fix if pattern found
2337 tSCC zM88k_Multi_InclBypass0[] =
2340 #define M88K_MULTI_INCL_TEST_CT 1
2341 tTestDesc aM88k_Multi_InclTests[] = {
2342 { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
2345 * Fix Command Arguments for M88k_Multi_Incl
2347 const char* apzM88k_Multi_InclPatch[] = { "sh", "-c",
2348 "echo Fixing $file, to protect against multiple inclusion. >&2\n\
2349 cpp_wrapper=`echo $file | sed -e 's,\\.,_,g' -e 's,/,_,g'`\n\
2350 echo \"#ifndef __GCC_GOT_${cpp_wrapper}_\"\n\
2351 echo \"#define __GCC_GOT_${cpp_wrapper}_\"\n\
2353 echo \"#endif /* ! __GCC_GOT_${cpp_wrapper}_ */\"",
2356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2358 * Description of Machine_Ansi_H_Va_List fix
2360 #define MACHINE_ANSI_H_VA_LIST_FIXIDX 57
2361 tSCC zMachine_Ansi_H_Va_ListName[] =
2362 "machine_ansi_h_va_list";
2365 * File name selection pattern
2367 tSCC zMachine_Ansi_H_Va_ListList[] =
2370 * Machine/OS name selection pattern
2372 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2375 * content selection pattern - do fix if pattern found
2377 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2381 * content bypass pattern - skip fix if pattern found
2383 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2384 "__builtin_va_list";
2386 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2387 tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2388 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2389 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2392 * Fix Command Arguments for Machine_Ansi_H_Va_List
2394 const char* apzMachine_Ansi_H_Va_ListPatch[] = { "sed",
2395 "-e", "s/\\(_BSD_VA_LIST_[ \t][ \t]*\\).*$/\\1__builtin_va_list/",
2398 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2400 * Description of Machine_Name fix
2402 #define MACHINE_NAME_FIXIDX 58
2403 tSCC zMachine_NameName[] =
2407 * File name selection pattern
2409 #define zMachine_NameList (char*)NULL
2411 * Machine/OS name selection pattern
2413 #define apzMachine_NameMachs (const char**)NULL
2416 * perform the C function call test
2418 tSCC zMachine_NameFTst0[] = "machine_name";
2420 #define MACHINE_NAME_TEST_CT 1
2421 tTestDesc aMachine_NameTests[] = {
2422 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2425 * Fix Command Arguments for Machine_Name
2427 const char* apzMachine_NamePatch[] = {
2431 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2433 * Description of Math_Exception fix
2435 #define MATH_EXCEPTION_FIXIDX 59
2436 tSCC zMath_ExceptionName[] =
2440 * File name selection pattern
2442 tSCC zMath_ExceptionList[] =
2445 * Machine/OS name selection pattern
2447 #define apzMath_ExceptionMachs (const char**)NULL
2450 * content selection pattern - do fix if pattern found
2452 tSCC zMath_ExceptionSelect0[] =
2456 * content bypass pattern - skip fix if pattern found
2458 tSCC zMath_ExceptionBypass0[] =
2459 "We have a problem when using C\\+\\+";
2461 #define MATH_EXCEPTION_TEST_CT 2
2462 tTestDesc aMath_ExceptionTests[] = {
2463 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2464 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2467 * Fix Command Arguments for Math_Exception
2469 const char* apzMath_ExceptionPatch[] = {
2471 "#ifdef __cplusplus\n\
2472 #define exception __math_exception\n\
2474 "#ifdef __cplusplus\n\
2479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2481 * Description of Math_Huge_Val_From_Dbl_Max fix
2483 #define MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX 60
2484 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2485 "math_huge_val_from_dbl_max";
2488 * File name selection pattern
2490 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2493 * Machine/OS name selection pattern
2495 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2498 * content selection pattern - do fix if pattern found
2500 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2501 "define[ \t]*HUGE_VAL[ \t]*DBL_MAX";
2504 * content bypass pattern - skip fix if pattern found
2506 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2507 "define[ \t]*DBL_MAX";
2509 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2510 tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2511 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2512 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2515 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2517 const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2518 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h 2>/dev/null`\n\
2520 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2521 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s/DBL_MAX/'\"$dbl_max_def/\"\n\
2526 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2528 * Description of Math_Huge_Val_Ifndef fix
2530 #define MATH_HUGE_VAL_IFNDEF_FIXIDX 61
2531 tSCC zMath_Huge_Val_IfndefName[] =
2532 "math_huge_val_ifndef";
2535 * File name selection pattern
2537 tSCC zMath_Huge_Val_IfndefList[] =
2540 * Machine/OS name selection pattern
2542 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2545 * content selection pattern - do fix if pattern found
2547 tSCC zMath_Huge_Val_IfndefSelect0[] =
2548 "define[ \t]*HUGE_VAL";
2550 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2551 tTestDesc aMath_Huge_Val_IfndefTests[] = {
2552 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2555 * Fix Command Arguments for Math_Huge_Val_Ifndef
2557 const char* apzMath_Huge_Val_IfndefPatch[] = { "sed",
2558 "-e", "/define[ \t]HUGE_VAL[ \t]/i\\\n\
2559 #ifndef HUGE_VAL\n",
2560 "-e", "/define[ \t]HUGE_VAL[ \t]/a\\\n\
2564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2566 * Description of Nested_Comment fix
2568 #define NESTED_COMMENT_FIXIDX 62
2569 tSCC zNested_CommentName[] =
2573 * File name selection pattern
2575 tSCC zNested_CommentList[] =
2578 * Machine/OS name selection pattern
2580 #define apzNested_CommentMachs (const char**)NULL
2581 #define NESTED_COMMENT_TEST_CT 0
2582 #define aNested_CommentTests (tTestDesc*)NULL
2585 * Fix Command Arguments for Nested_Comment
2587 const char* apzNested_CommentPatch[] = { "sed",
2588 "-e", "s@^\\(/\\*.*rpc/auth_des.h>.*\\)/\\*@\\1*/ /*@",
2591 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2593 * Description of News_Os_Recursion fix
2595 #define NEWS_OS_RECURSION_FIXIDX 63
2596 tSCC zNews_Os_RecursionName[] =
2597 "news_os_recursion";
2600 * File name selection pattern
2602 tSCC zNews_Os_RecursionList[] =
2605 * Machine/OS name selection pattern
2607 #define apzNews_Os_RecursionMachs (const char**)NULL
2610 * content selection pattern - do fix if pattern found
2612 tSCC zNews_Os_RecursionSelect0[] =
2613 "#include <stdlib.h>";
2615 #define NEWS_OS_RECURSION_TEST_CT 1
2616 tTestDesc aNews_Os_RecursionTests[] = {
2617 { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
2620 * Fix Command Arguments for News_Os_Recursion
2622 const char* apzNews_Os_RecursionPatch[] = { "sed",
2623 "-e", "/^#include <stdlib.h>/i\\\n\
2624 #ifdef BOGUS_RECURSION\n",
2625 "-e", "/^#include <stdlib.h>/a\\\n\
2629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2631 * Description of Next_Math_Prefix fix
2633 #define NEXT_MATH_PREFIX_FIXIDX 64
2634 tSCC zNext_Math_PrefixName[] =
2638 * File name selection pattern
2640 tSCC zNext_Math_PrefixList[] =
2643 * Machine/OS name selection pattern
2645 #define apzNext_Math_PrefixMachs (const char**)NULL
2648 * content selection pattern - do fix if pattern found
2650 tSCC zNext_Math_PrefixSelect0[] =
2651 "^extern.*double.*__const__.*";
2653 #define NEXT_MATH_PREFIX_TEST_CT 1
2654 tTestDesc aNext_Math_PrefixTests[] = {
2655 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
2658 * Fix Command Arguments for Next_Math_Prefix
2660 const char* apzNext_Math_PrefixPatch[] = { "sed",
2661 "-e", "/^extern.*double.*__const__.*sqrt(/s/__const__//",
2662 "-e", "/^extern.*double.*__const__.*fabs(/s/__const__//",
2663 "-e", "/^extern.*double.*__const__.*cos(/s/__const__//",
2664 "-e", "/^extern.*double.*__const__.*hypot(/s/__const__//",
2665 "-e", "/^extern.*double.*__const__.*sin(/s/__const__//",
2668 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2670 * Description of Next_Template fix
2672 #define NEXT_TEMPLATE_FIXIDX 65
2673 tSCC zNext_TemplateName[] =
2677 * File name selection pattern
2679 tSCC zNext_TemplateList[] =
2682 * Machine/OS name selection pattern
2684 #define apzNext_TemplateMachs (const char**)NULL
2687 * content selection pattern - do fix if pattern found
2689 tSCC zNext_TemplateSelect0[] =
2692 #define NEXT_TEMPLATE_TEST_CT 1
2693 tTestDesc aNext_TemplateTests[] = {
2694 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
2697 * Fix Command Arguments for Next_Template
2699 const char* apzNext_TemplatePatch[] = { "sed",
2700 "-e", "/\\(.*template\\)/s/template//",
2701 "-e", "/extern.*volatile.*void.*abort/s/volatile//",
2704 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2706 * Description of Next_Volitile fix
2708 #define NEXT_VOLITILE_FIXIDX 66
2709 tSCC zNext_VolitileName[] =
2713 * File name selection pattern
2715 tSCC zNext_VolitileList[] =
2718 * Machine/OS name selection pattern
2720 #define apzNext_VolitileMachs (const char**)NULL
2723 * content selection pattern - do fix if pattern found
2725 tSCC zNext_VolitileSelect0[] =
2728 #define NEXT_VOLITILE_TEST_CT 1
2729 tTestDesc aNext_VolitileTests[] = {
2730 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
2733 * Fix Command Arguments for Next_Volitile
2735 const char* apzNext_VolitilePatch[] = { "sed",
2736 "-e", "/extern.*volatile.*void.*exit/s/volatile//",
2737 "-e", "/extern.*volatile.*void.*abort/s/volatile//",
2740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2742 * Description of Next_Wait_Union fix
2744 #define NEXT_WAIT_UNION_FIXIDX 67
2745 tSCC zNext_Wait_UnionName[] =
2749 * File name selection pattern
2751 tSCC zNext_Wait_UnionList[] =
2754 * Machine/OS name selection pattern
2756 #define apzNext_Wait_UnionMachs (const char**)NULL
2759 * content selection pattern - do fix if pattern found
2761 tSCC zNext_Wait_UnionSelect0[] =
2762 "wait\\(union wait";
2764 #define NEXT_WAIT_UNION_TEST_CT 1
2765 tTestDesc aNext_Wait_UnionTests[] = {
2766 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
2769 * Fix Command Arguments for Next_Wait_Union
2771 const char* apzNext_Wait_UnionPatch[] = { "sed",
2772 "-e", "s@wait(union wait@wait(void@",
2775 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2777 * Description of Nodeent_Syntax fix
2779 #define NODEENT_SYNTAX_FIXIDX 68
2780 tSCC zNodeent_SyntaxName[] =
2784 * File name selection pattern
2786 tSCC zNodeent_SyntaxList[] =
2787 "|netdnet/dnetdb.h|";
2789 * Machine/OS name selection pattern
2791 #define apzNodeent_SyntaxMachs (const char**)NULL
2792 #define NODEENT_SYNTAX_TEST_CT 0
2793 #define aNodeent_SyntaxTests (tTestDesc*)NULL
2796 * Fix Command Arguments for Nodeent_Syntax
2798 const char* apzNodeent_SyntaxPatch[] = { "sed",
2799 "-e", "s/char.*na_addr *$/char *na_addr;/",
2802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2804 * Description of Osf_Namespace_A fix
2806 #define OSF_NAMESPACE_A_FIXIDX 69
2807 tSCC zOsf_Namespace_AName[] =
2811 * File name selection pattern
2813 tSCC zOsf_Namespace_AList[] =
2814 "|reg_types.h|sys/lc_core.h|";
2816 * Machine/OS name selection pattern
2818 #define apzOsf_Namespace_AMachs (const char**)NULL
2821 * perform the 'test' shell command - do fix on success
2823 tSCC zOsf_Namespace_ATest0[] =
2825 tSCC zOsf_Namespace_ATest1[] =
2826 " -r sys/lc_core.h";
2827 tSCC zOsf_Namespace_ATest2[] =
2828 " -n \"`grep '} regex_t;' reg_types.h`\"";
2829 tSCC zOsf_Namespace_ATest3[] =
2830 " -z \"`grep __regex_t regex.h`\"";
2832 #define OSF_NAMESPACE_A_TEST_CT 4
2833 tTestDesc aOsf_Namespace_ATests[] = {
2834 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
2835 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
2836 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
2837 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
2840 * Fix Command Arguments for Osf_Namespace_A
2842 const char* apzOsf_Namespace_APatch[] = { "sed",
2843 "-e", "s/regex_t/__regex_t/g",
2844 "-e", "s/regoff_t/__regoff_t/g",
2845 "-e", "s/regmatch_t/__regmatch_t/g",
2848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2850 * Description of Osf_Namespace_B fix
2852 #define OSF_NAMESPACE_B_FIXIDX 70
2853 tSCC zOsf_Namespace_BName[] =
2857 * File name selection pattern
2859 tSCC zOsf_Namespace_BList[] =
2862 * Machine/OS name selection pattern
2864 #define apzOsf_Namespace_BMachs (const char**)NULL
2867 * perform the 'test' shell command - do fix on success
2869 tSCC zOsf_Namespace_BTest0[] =
2871 tSCC zOsf_Namespace_BTest1[] =
2872 " -r sys/lc_core.h";
2873 tSCC zOsf_Namespace_BTest2[] =
2874 " -n \"`grep '} regex_t;' reg_types.h`\"";
2875 tSCC zOsf_Namespace_BTest3[] =
2876 " -z \"`grep __regex_t regex.h`\"";
2878 #define OSF_NAMESPACE_B_TEST_CT 4
2879 tTestDesc aOsf_Namespace_BTests[] = {
2880 { TT_TEST, zOsf_Namespace_BTest0, 0 /* unused */ },
2881 { TT_TEST, zOsf_Namespace_BTest1, 0 /* unused */ },
2882 { TT_TEST, zOsf_Namespace_BTest2, 0 /* unused */ },
2883 { TT_TEST, zOsf_Namespace_BTest3, 0 /* unused */ }, };
2886 * Fix Command Arguments for Osf_Namespace_B
2888 const char* apzOsf_Namespace_BPatch[] = { "sed",
2889 "-e", "/#include <reg_types.h>/a\\\n\
2890 typedef __regex_t\tregex_t;\\\n\
2891 typedef __regoff_t\tregoff_t;\\\n\
2892 typedef __regmatch_t\tregmatch_t;\n",
2895 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2897 * Description of Pthread_Page_Size fix
2899 #define PTHREAD_PAGE_SIZE_FIXIDX 71
2900 tSCC zPthread_Page_SizeName[] =
2901 "pthread_page_size";
2904 * File name selection pattern
2906 tSCC zPthread_Page_SizeList[] =
2909 * Machine/OS name selection pattern
2911 #define apzPthread_Page_SizeMachs (const char**)NULL
2914 * content selection pattern - do fix if pattern found
2916 tSCC zPthread_Page_SizeSelect0[] =
2919 #define PTHREAD_PAGE_SIZE_TEST_CT 1
2920 tTestDesc aPthread_Page_SizeTests[] = {
2921 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
2924 * Fix Command Arguments for Pthread_Page_Size
2926 const char* apzPthread_Page_SizePatch[] = { "sed",
2927 "-e", "s/^int __page_size/extern int __page_size/",
2930 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2932 * Description of Read_Ret_Type fix
2934 #define READ_RET_TYPE_FIXIDX 72
2935 tSCC zRead_Ret_TypeName[] =
2939 * File name selection pattern
2941 tSCC zRead_Ret_TypeList[] =
2944 * Machine/OS name selection pattern
2946 #define apzRead_Ret_TypeMachs (const char**)NULL
2949 * content selection pattern - do fix if pattern found
2951 tSCC zRead_Ret_TypeSelect0[] =
2952 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
2954 #define READ_RET_TYPE_TEST_CT 1
2955 tTestDesc aRead_Ret_TypeTests[] = {
2956 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
2959 * Fix Command Arguments for Read_Ret_Type
2961 const char* apzRead_Ret_TypePatch[] = { "sed",
2962 "-e", "s/^\\(extern int\tfclose(), fflush()\\), \\(fread(), fwrite()\\)\\(.*\\)$/extern unsigned int\t\\2;\\\n\
2966 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2968 * Description of Rs6000_Double fix
2970 #define RS6000_DOUBLE_FIXIDX 73
2971 tSCC zRs6000_DoubleName[] =
2975 * File name selection pattern
2977 tSCC zRs6000_DoubleList[] =
2980 * Machine/OS name selection pattern
2982 #define apzRs6000_DoubleMachs (const char**)NULL
2985 * content selection pattern - do fix if pattern found
2987 tSCC zRs6000_DoubleSelect0[] =
2988 "[^a-zA-Z_]class\\(";
2990 #define RS6000_DOUBLE_TEST_CT 1
2991 tTestDesc aRs6000_DoubleTests[] = {
2992 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
2995 * Fix Command Arguments for Rs6000_Double
2997 const char* apzRs6000_DoublePatch[] = { "sed",
2998 "-e", "/class[(]/i\\\n\
2999 #ifndef __cplusplus\n",
3000 "-e", "/class[(]/a\\\n\
3004 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3006 * Description of Rs6000_Fchmod fix
3008 #define RS6000_FCHMOD_FIXIDX 74
3009 tSCC zRs6000_FchmodName[] =
3013 * File name selection pattern
3015 tSCC zRs6000_FchmodList[] =
3018 * Machine/OS name selection pattern
3020 #define apzRs6000_FchmodMachs (const char**)NULL
3023 * content selection pattern - do fix if pattern found
3025 tSCC zRs6000_FchmodSelect0[] =
3028 #define RS6000_FCHMOD_TEST_CT 1
3029 tTestDesc aRs6000_FchmodTests[] = {
3030 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3033 * Fix Command Arguments for Rs6000_Fchmod
3035 const char* apzRs6000_FchmodPatch[] = { "sed",
3036 "-e", "s/fchmod(char \\*/fchmod(int/",
3039 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3041 * Description of Rs6000_Param fix
3043 #define RS6000_PARAM_FIXIDX 75
3044 tSCC zRs6000_ParamName[] =
3048 * File name selection pattern
3050 tSCC zRs6000_ParamList[] =
3051 "|stdio.h|unistd.h|";
3053 * Machine/OS name selection pattern
3055 #define apzRs6000_ParamMachs (const char**)NULL
3058 * content selection pattern - do fix if pattern found
3060 tSCC zRs6000_ParamSelect0[] =
3063 #define RS6000_PARAM_TEST_CT 1
3064 tTestDesc aRs6000_ParamTests[] = {
3065 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3068 * Fix Command Arguments for Rs6000_Param
3070 const char* apzRs6000_ParamPatch[] = { "sed",
3071 "-e", "s@rename(const char \\*old, const char \\*new)@rename(const char *_old, const char *_new)@",
3074 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3076 * Description of Sco_Strict_Ansi fix
3078 #define SCO_STRICT_ANSI_FIXIDX 76
3079 tSCC zSco_Strict_AnsiName[] =
3083 * File name selection pattern
3085 #define zSco_Strict_AnsiList (char*)NULL
3087 * Machine/OS name selection pattern
3089 tSCC* apzSco_Strict_AnsiMachs[] = {
3091 (const char*)NULL };
3094 * content selection pattern - do fix if pattern found
3096 tSCC zSco_Strict_AnsiSelect0[] =
3097 "^[ \t]*#[ \t]*if.*!__STDC__";
3099 #define SCO_STRICT_ANSI_TEST_CT 1
3100 tTestDesc aSco_Strict_AnsiTests[] = {
3101 { TT_EGREP, zSco_Strict_AnsiSelect0, (regex_t*)NULL }, };
3104 * Fix Command Arguments for Sco_Strict_Ansi
3106 const char* apzSco_Strict_AnsiPatch[] = { "sed",
3107 "-e", "s/!__STDC__/!defined(__STRICT_ANSI__)/g",
3110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3112 * Description of Sco_Static_Func fix
3114 #define SCO_STATIC_FUNC_FIXIDX 77
3115 tSCC zSco_Static_FuncName[] =
3119 * File name selection pattern
3121 tSCC zSco_Static_FuncList[] =
3124 * Machine/OS name selection pattern
3126 tSCC* apzSco_Static_FuncMachs[] = {
3128 (const char*)NULL };
3131 * content selection pattern - do fix if pattern found
3133 tSCC zSco_Static_FuncSelect0[] =
3136 #define SCO_STATIC_FUNC_TEST_CT 1
3137 tTestDesc aSco_Static_FuncTests[] = {
3138 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3141 * Fix Command Arguments for Sco_Static_Func
3143 const char* apzSco_Static_FuncPatch[] = { "sed",
3144 "-e", "/^static int/i\\\n\
3145 #if __cplusplus\\\n\
3147 #endif /* __cplusplus */",
3149 #if __cplusplus\\\n\
3151 #endif /* __cplusplus */",
3154 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3156 * Description of Sco_Utime fix
3158 #define SCO_UTIME_FIXIDX 78
3159 tSCC zSco_UtimeName[] =
3163 * File name selection pattern
3165 tSCC zSco_UtimeList[] =
3168 * Machine/OS name selection pattern
3170 tSCC* apzSco_UtimeMachs[] = {
3172 (const char*)NULL };
3175 * content selection pattern - do fix if pattern found
3177 tSCC zSco_UtimeSelect0[] =
3178 "(const char *, struct utimbuf *);";
3180 #define SCO_UTIME_TEST_CT 1
3181 tTestDesc aSco_UtimeTests[] = {
3182 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3185 * Fix Command Arguments for Sco_Utime
3187 const char* apzSco_UtimePatch[] = { "sed",
3188 "-e", "s/(const char \\*, struct utimbuf \\*);/(const char *, const struct utimbuf *);/",
3191 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3193 * Description of Sony_Include fix
3195 #define SONY_INCLUDE_FIXIDX 79
3196 tSCC zSony_IncludeName[] =
3200 * File name selection pattern
3202 tSCC zSony_IncludeList[] =
3203 "|machine/machparam.h|";
3205 * Machine/OS name selection pattern
3207 #define apzSony_IncludeMachs (const char**)NULL
3210 * content selection pattern - do fix if pattern found
3212 tSCC zSony_IncludeSelect0[] =
3213 "\"\\.\\./machine/endian.h\"";
3215 #define SONY_INCLUDE_TEST_CT 1
3216 tTestDesc aSony_IncludeTests[] = {
3217 { TT_EGREP, zSony_IncludeSelect0, (regex_t*)NULL }, };
3220 * Fix Command Arguments for Sony_Include
3222 const char* apzSony_IncludePatch[] = { "sed",
3223 "-e", "s@\"../machine/endian.h\"@<machine/endian.h>@",
3226 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3228 * Description of Statsswtch fix
3230 #define STATSSWTCH_FIXIDX 80
3231 tSCC zStatsswtchName[] =
3235 * File name selection pattern
3237 tSCC zStatsswtchList[] =
3240 * Machine/OS name selection pattern
3242 #define apzStatsswtchMachs (const char**)NULL
3245 * content selection pattern - do fix if pattern found
3247 tSCC zStatsswtchSelect0[] =
3250 #define STATSSWTCH_TEST_CT 1
3251 tTestDesc aStatsswtchTests[] = {
3252 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3255 * Fix Command Arguments for Statsswtch
3257 const char* apzStatsswtchPatch[] = { "sed",
3258 "-e", "s/boottime$/boottime;/",
3261 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3263 * Description of Stdio_Stdarg_H fix
3265 #define STDIO_STDARG_H_FIXIDX 81
3266 tSCC zStdio_Stdarg_HName[] =
3270 * File name selection pattern
3272 tSCC zStdio_Stdarg_HList[] =
3275 * Machine/OS name selection pattern
3277 #define apzStdio_Stdarg_HMachs (const char**)NULL
3280 * content bypass pattern - skip fix if pattern found
3282 tSCC zStdio_Stdarg_HBypass0[] =
3283 "include.*(stdarg.h|machine/ansi.h)";
3285 #define STDIO_STDARG_H_TEST_CT 1
3286 tTestDesc aStdio_Stdarg_HTests[] = {
3287 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3290 * Fix Command Arguments for Stdio_Stdarg_H
3292 const char* apzStdio_Stdarg_HPatch[] = {
3294 "#define __need___va_list\n\
3295 #include <stdarg.h>\n",
3298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3300 * Description of Stdio_Va_List fix
3302 #define STDIO_VA_LIST_FIXIDX 82
3303 tSCC zStdio_Va_ListName[] =
3307 * File name selection pattern
3309 tSCC zStdio_Va_ListList[] =
3312 * Machine/OS name selection pattern
3314 #define apzStdio_Va_ListMachs (const char**)NULL
3317 * content bypass pattern - skip fix if pattern found
3319 tSCC zStdio_Va_ListBypass0[] =
3320 "__gnuc_va_list|_BSD_VA_LIST_";
3322 #define STDIO_VA_LIST_TEST_CT 1
3323 tTestDesc aStdio_Va_ListTests[] = {
3324 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3327 * Fix Command Arguments for Stdio_Va_List
3329 const char* apzStdio_Va_ListPatch[] = { "sed",
3330 "-e", "s@ va_list @ __gnuc_va_list @\n\
3331 s@ va_list)@ __gnuc_va_list)@\n\
3332 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3333 s@ va_list@ __not_va_list__@\n\
3334 s@\\*va_list@*__not_va_list__@\n\
3335 s@ __va_list)@ __gnuc_va_list)@\n\
3336 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3337 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3338 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3339 s@VA_LIST@DUMMY_VA_LIST@\n\
3340 s@_Va_LIST@_VA_LIST@",
3343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3345 * Description of Sun_Auth_Proto fix
3347 #define SUN_AUTH_PROTO_FIXIDX 83
3348 tSCC zSun_Auth_ProtoName[] =
3352 * File name selection pattern
3354 tSCC zSun_Auth_ProtoList[] =
3355 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
3357 * Machine/OS name selection pattern
3359 #define apzSun_Auth_ProtoMachs (const char**)NULL
3362 * content selection pattern - do fix if pattern found
3364 tSCC zSun_Auth_ProtoSelect0[] =
3365 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
3367 #define SUN_AUTH_PROTO_TEST_CT 1
3368 tTestDesc aSun_Auth_ProtoTests[] = {
3369 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
3372 * Fix Command Arguments for Sun_Auth_Proto
3374 const char* apzSun_Auth_ProtoPatch[] = { "sed",
3375 "-e", "s/^\\(.*(\\*[a-z][a-z_]*)(\\)\\();.*\\)/\\\n\
3376 #ifdef __cplusplus\\\n\
3383 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3385 * Description of Sun_Bogus_Ifdef fix
3387 #define SUN_BOGUS_IFDEF_FIXIDX 84
3388 tSCC zSun_Bogus_IfdefName[] =
3392 * File name selection pattern
3394 tSCC zSun_Bogus_IfdefList[] =
3395 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
3397 * Machine/OS name selection pattern
3399 #define apzSun_Bogus_IfdefMachs (const char**)NULL
3402 * content selection pattern - do fix if pattern found
3404 tSCC zSun_Bogus_IfdefSelect0[] =
3405 "#ifdef __i386__ || __vax__";
3407 #define SUN_BOGUS_IFDEF_TEST_CT 1
3408 tTestDesc aSun_Bogus_IfdefTests[] = {
3409 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
3412 * Fix Command Arguments for Sun_Bogus_Ifdef
3414 const char* apzSun_Bogus_IfdefPatch[] = { "sed",
3415 "-e", "s/\\#ifdef __i386__ || __vax__/\\#if __i386__ || __vax__/g",
3418 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3420 * Description of Sun_Bogus_Ifdef_Sun4c fix
3422 #define SUN_BOGUS_IFDEF_SUN4C_FIXIDX 85
3423 tSCC zSun_Bogus_Ifdef_Sun4cName[] =
3424 "sun_bogus_ifdef_sun4c";
3427 * File name selection pattern
3429 tSCC zSun_Bogus_Ifdef_Sun4cList[] =
3432 * Machine/OS name selection pattern
3434 #define apzSun_Bogus_Ifdef_Sun4cMachs (const char**)NULL
3437 * content selection pattern - do fix if pattern found
3439 tSCC zSun_Bogus_Ifdef_Sun4cSelect0[] =
3440 "#ifdef __i386__ || __sun4c__";
3442 #define SUN_BOGUS_IFDEF_SUN4C_TEST_CT 1
3443 tTestDesc aSun_Bogus_Ifdef_Sun4cTests[] = {
3444 { TT_EGREP, zSun_Bogus_Ifdef_Sun4cSelect0, (regex_t*)NULL }, };
3447 * Fix Command Arguments for Sun_Bogus_Ifdef_Sun4c
3449 const char* apzSun_Bogus_Ifdef_Sun4cPatch[] = { "sed",
3450 "-e", "s/\\#ifdef __i386__ || __sun4c__/\\#if __i386__ || __sun4c__/g",
3453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3455 * Description of Sun_Catmacro fix
3457 #define SUN_CATMACRO_FIXIDX 86
3458 tSCC zSun_CatmacroName[] =
3462 * File name selection pattern
3464 tSCC zSun_CatmacroList[] =
3465 "|pixrect/memvar.h|";
3467 * Machine/OS name selection pattern
3469 #define apzSun_CatmacroMachs (const char**)NULL
3472 * content selection pattern - do fix if pattern found
3474 tSCC zSun_CatmacroSelect0[] =
3475 "^#define[ \t]+CAT\\(a,b\\)";
3477 #define SUN_CATMACRO_TEST_CT 1
3478 tTestDesc aSun_CatmacroTests[] = {
3479 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
3482 * Fix Command Arguments for Sun_Catmacro
3484 const char* apzSun_CatmacroPatch[] = { "sed",
3485 "-e", "/^#define[ \t]CAT(a,b)/ i\\\n\
3486 #ifdef __STDC__ \\\n\
3487 #define CAT(a,b) a##b\\\n\
3489 "-e", "/^#define[ \t]CAT(a,b)/ a\\\n\
3493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3495 * Description of Sun_Malloc fix
3497 #define SUN_MALLOC_FIXIDX 87
3498 tSCC zSun_MallocName[] =
3502 * File name selection pattern
3504 tSCC zSun_MallocList[] =
3507 * Machine/OS name selection pattern
3509 #define apzSun_MallocMachs (const char**)NULL
3510 #define SUN_MALLOC_TEST_CT 0
3511 #define aSun_MallocTests (tTestDesc*)NULL
3514 * Fix Command Arguments for Sun_Malloc
3516 const char* apzSun_MallocPatch[] = { "sed",
3517 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
3518 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
3519 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
3520 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
3523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3525 * Description of Sun_Rusers_Semi fix
3527 #define SUN_RUSERS_SEMI_FIXIDX 88
3528 tSCC zSun_Rusers_SemiName[] =
3532 * File name selection pattern
3534 tSCC zSun_Rusers_SemiList[] =
3535 "|rpcsvc/rusers.h|";
3537 * Machine/OS name selection pattern
3539 #define apzSun_Rusers_SemiMachs (const char**)NULL
3542 * content selection pattern - do fix if pattern found
3544 tSCC zSun_Rusers_SemiSelect0[] =
3547 #define SUN_RUSERS_SEMI_TEST_CT 1
3548 tTestDesc aSun_Rusers_SemiTests[] = {
3549 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
3552 * Fix Command Arguments for Sun_Rusers_Semi
3554 const char* apzSun_Rusers_SemiPatch[] = { "sed",
3555 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
3558 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3560 * Description of Sun_Signal fix
3562 #define SUN_SIGNAL_FIXIDX 89
3563 tSCC zSun_SignalName[] =
3567 * File name selection pattern
3569 tSCC zSun_SignalList[] =
3570 "|sys/signal.h|signal.h|";
3572 * Machine/OS name selection pattern
3574 #define apzSun_SignalMachs (const char**)NULL
3577 * content selection pattern - do fix if pattern found
3579 tSCC zSun_SignalSelect0[] =
3580 "^void\t\\(\\*signal\\(\\)\\)\\(\\);";
3582 #define SUN_SIGNAL_TEST_CT 1
3583 tTestDesc aSun_SignalTests[] = {
3584 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
3587 * Fix Command Arguments for Sun_Signal
3589 const char* apzSun_SignalPatch[] = { "sed",
3590 "-e", "/^void\t(\\*signal())();$/i\\\n\
3591 #ifdef __cplusplus\\\n\
3592 void\t(*signal(...))(...);\\\n\
3594 "-e", "/^void\t(\\*signal())();$/a\\\n\
3598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3600 * Description of Sunos_Matherr_Decl fix
3602 #define SUNOS_MATHERR_DECL_FIXIDX 90
3603 tSCC zSunos_Matherr_DeclName[] =
3604 "sunos_matherr_decl";
3607 * File name selection pattern
3609 tSCC zSunos_Matherr_DeclList[] =
3612 * Machine/OS name selection pattern
3614 #define apzSunos_Matherr_DeclMachs (const char**)NULL
3617 * content bypass pattern - skip fix if pattern found
3619 tSCC zSunos_Matherr_DeclBypass0[] =
3620 "matherr.*struct exception";
3622 #define SUNOS_MATHERR_DECL_TEST_CT 1
3623 tTestDesc aSunos_Matherr_DeclTests[] = {
3624 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL }, };
3627 * Fix Command Arguments for Sunos_Matherr_Decl
3629 const char* apzSunos_Matherr_DeclPatch[] = { "sed",
3630 "-e", "/^struct exception/,$b",
3631 "-e", "/matherr/i\\\n\
3632 struct exception;\n",
3635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3637 * Description of Sunos_Strlen fix
3639 #define SUNOS_STRLEN_FIXIDX 91
3640 tSCC zSunos_StrlenName[] =
3644 * File name selection pattern
3646 tSCC zSunos_StrlenList[] =
3649 * Machine/OS name selection pattern
3651 #define apzSunos_StrlenMachs (const char**)NULL
3654 * content selection pattern - do fix if pattern found
3656 tSCC zSunos_StrlenSelect0[] =
3659 #define SUNOS_STRLEN_TEST_CT 1
3660 tTestDesc aSunos_StrlenTests[] = {
3661 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
3664 * Fix Command Arguments for Sunos_Strlen
3666 const char* apzSunos_StrlenPatch[] = { "sed",
3667 "-e", "s/int[ \t]*strlen();/__SIZE_TYPE__ strlen();/",
3670 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3672 * Description of Svr4_Getcwd fix
3674 #define SVR4_GETCWD_FIXIDX 92
3675 tSCC zSvr4_GetcwdName[] =
3679 * File name selection pattern
3681 tSCC zSvr4_GetcwdList[] =
3682 "|stdlib.h|unistd.h|prototypes.h|";
3684 * Machine/OS name selection pattern
3686 #define apzSvr4_GetcwdMachs (const char**)NULL
3689 * content selection pattern - do fix if pattern found
3691 tSCC zSvr4_GetcwdSelect0[] =
3692 "getcwd\\(char \\*, int\\)";
3694 #define SVR4_GETCWD_TEST_CT 1
3695 tTestDesc aSvr4_GetcwdTests[] = {
3696 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
3699 * Fix Command Arguments for Svr4_Getcwd
3701 const char* apzSvr4_GetcwdPatch[] = { "sed",
3702 "-e", "s/getcwd(char \\*, int)/getcwd(char *, size_t)/",
3705 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3707 * Description of Svr4_Profil fix
3709 #define SVR4_PROFIL_FIXIDX 93
3710 tSCC zSvr4_ProfilName[] =
3714 * File name selection pattern
3716 tSCC zSvr4_ProfilList[] =
3717 "|stdlib.h|unistd.h|";
3719 * Machine/OS name selection pattern
3721 #define apzSvr4_ProfilMachs (const char**)NULL
3722 #define SVR4_PROFIL_TEST_CT 0
3723 #define aSvr4_ProfilTests (tTestDesc*)NULL
3726 * Fix Command Arguments for Svr4_Profil
3728 const char* apzSvr4_ProfilPatch[] = { "sed",
3729 "-e", "s/profil(unsigned short \\*, unsigned int, unsigned int, unsigned int)/profil(unsigned short *, size_t, int, unsigned)/",
3732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3734 * Description of Systypes fix
3736 #define SYSTYPES_FIXIDX 94
3737 tSCC zSystypesName[] =
3741 * File name selection pattern
3743 tSCC zSystypesList[] =
3744 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
3746 * Machine/OS name selection pattern
3748 #define apzSystypesMachs (const char**)NULL
3751 * content selection pattern - do fix if pattern found
3753 tSCC zSystypesSelect0[] =
3754 "typedef[ \t]+[a-z_][ \ta-z_]*[ \t](size|ptrdiff|wchar)_t";
3756 #define SYSTYPES_TEST_CT 1
3757 tTestDesc aSystypesTests[] = {
3758 { TT_EGREP, zSystypesSelect0, (regex_t*)NULL }, };
3761 * Fix Command Arguments for Systypes
3763 const char* apzSystypesPatch[] = { "sed",
3764 "-e", "/^[ \t]*\\*[ \t]*typedef unsigned int size_t;/N",
3765 "-e", "s/^\\([ \t]*\\*[ \t]*typedef unsigned int size_t;\\n[ \t]*\\*\\/\\)/\\1\\\n\
3766 #ifndef __SIZE_TYPE__\\\n\
3767 #define __SIZE_TYPE__ long unsigned int\\\n\
3769 typedef __SIZE_TYPE__ size_t;\\\n\
3771 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/i\\\n\
3772 #ifndef __SIZE_TYPE__\\\n\
3773 #define __SIZE_TYPE__ long unsigned int\\\n\
3775 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/typedef __SIZE_TYPE__ size_t/",
3776 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/i\\\n\
3777 #ifndef __PTRDIFF_TYPE__\\\n\
3778 #define __PTRDIFF_TYPE__ long int\\\n\
3780 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/typedef __PTRDIFF_TYPE__ ptrdiff_t/",
3781 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/i\\\n\
3782 #ifndef __WCHAR_TYPE__\\\n\
3783 #define __WCHAR_TYPE__ int\\\n\
3785 #ifndef __cplusplus\n",
3786 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/a\\\n\
3788 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/typedef __WCHAR_TYPE__ wchar_t/",
3791 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3793 * Description of Systypes_Stdlib_Size_T fix
3795 #define SYSTYPES_STDLIB_SIZE_T_FIXIDX 95
3796 tSCC zSystypes_Stdlib_Size_TName[] =
3797 "systypes_stdlib_size_t";
3800 * File name selection pattern
3802 tSCC zSystypes_Stdlib_Size_TList[] =
3803 "|sys/types.h|stdlib.h|";
3805 * Machine/OS name selection pattern
3807 #define apzSystypes_Stdlib_Size_TMachs (const char**)NULL
3810 * content selection pattern - do fix if pattern found
3812 tSCC zSystypes_Stdlib_Size_TSelect0[] =
3813 "typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t";
3816 * content bypass pattern - skip fix if pattern found
3818 tSCC zSystypes_Stdlib_Size_TBypass0[] =
3819 "_(GCC|BSD)_SIZE_T";
3821 #define SYSTYPES_STDLIB_SIZE_T_TEST_CT 2
3822 tTestDesc aSystypes_Stdlib_Size_TTests[] = {
3823 { TT_NEGREP, zSystypes_Stdlib_Size_TBypass0, (regex_t*)NULL },
3824 { TT_EGREP, zSystypes_Stdlib_Size_TSelect0, (regex_t*)NULL }, };
3827 * Fix Command Arguments for Systypes_Stdlib_Size_T
3829 const char* apzSystypes_Stdlib_Size_TPatch[] = { "sed",
3830 "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/i\\\n\
3831 #ifndef _GCC_SIZE_T\\\n\
3832 #define _GCC_SIZE_T\n",
3833 "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/a\\\n\
3837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3839 * Description of Sysv68_String fix
3841 #define SYSV68_STRING_FIXIDX 96
3842 tSCC zSysv68_StringName[] =
3846 * File name selection pattern
3848 tSCC zSysv68_StringList[] =
3851 * Machine/OS name selection pattern
3853 #define apzSysv68_StringMachs (const char**)NULL
3854 #define SYSV68_STRING_TEST_CT 0
3855 #define aSysv68_StringTests (tTestDesc*)NULL
3858 * Fix Command Arguments for Sysv68_String
3860 const char* apzSysv68_StringPatch[] = { "sed",
3861 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
3862 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
3863 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
3864 "-e", "/^extern char$/N",
3865 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
3866 "-e", "/^\tstrncmp(),$/N",
3867 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
3868 extern unsigned int\\\n\
3870 "-e", "/^extern int$/N",
3871 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
3874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3876 * Description of Sysz_Stdlib_For_Sun fix
3878 #define SYSZ_STDLIB_FOR_SUN_FIXIDX 97
3879 tSCC zSysz_Stdlib_For_SunName[] =
3880 "sysz_stdlib_for_sun";
3883 * File name selection pattern
3885 tSCC zSysz_Stdlib_For_SunList[] =
3888 * Machine/OS name selection pattern
3890 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
3891 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 0
3892 #define aSysz_Stdlib_For_SunTests (tTestDesc*)NULL
3895 * Fix Command Arguments for Sysz_Stdlib_For_Sun
3897 const char* apzSysz_Stdlib_For_SunPatch[] = { "sed",
3898 "-e", "s/int\tabort/void\tabort/g",
3899 "-e", "s/int\tfree/void\tfree/g",
3900 "-e", "s/char[ \t]*\\*[ \t]*calloc/void \\*\tcalloc/g",
3901 "-e", "s/char[ \t]*\\*[ \t]*malloc/void \\*\tmalloc/g",
3902 "-e", "s/char[ \t]*\\*[ \t]*realloc/void \\*\trealloc/g",
3903 "-e", "s/char[ \t]*\\*[ \t]*bsearch/void \\*\tbsearch/g",
3904 "-e", "s/int[ \t][ \t]*exit/void\texit/g",
3907 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3909 * Description of Sysz_Stdtypes_For_Sun fix
3911 #define SYSZ_STDTYPES_FOR_SUN_FIXIDX 98
3912 tSCC zSysz_Stdtypes_For_SunName[] =
3913 "sysz_stdtypes_for_sun";
3916 * File name selection pattern
3918 tSCC zSysz_Stdtypes_For_SunList[] =
3921 * Machine/OS name selection pattern
3923 #define apzSysz_Stdtypes_For_SunMachs (const char**)NULL
3924 #define SYSZ_STDTYPES_FOR_SUN_TEST_CT 0
3925 #define aSysz_Stdtypes_For_SunTests (tTestDesc*)NULL
3928 * Fix Command Arguments for Sysz_Stdtypes_For_Sun
3930 const char* apzSysz_Stdtypes_For_SunPatch[] = { "sed",
3931 "-e", "/[\t ]size_t.*;/i\\\n\
3932 #ifndef _GCC_SIZE_T\\\n\
3933 #define _GCC_SIZE_T\n",
3934 "-e", "/[\t ]size_t.*;/a\\\n\
3936 "-e", "/[\t ]ptrdiff_t.*;/i\\\n\
3937 #ifndef _GCC_PTRDIFF_T\\\n\
3938 #define _GCC_PTRDIFF_T\n",
3939 "-e", "/[\t ]ptrdiff_t.*;/a\\\n\
3941 "-e", "/[\t ]wchar_t.*;/i\\\n\
3942 #ifndef _GCC_WCHAR_T\\\n\
3943 #define _GCC_WCHAR_T\n",
3944 "-e", "/[\t ]wchar_t.*;/a\\\n\
3948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3950 * Description of Tinfo_Cplusplus fix
3952 #define TINFO_CPLUSPLUS_FIXIDX 99
3953 tSCC zTinfo_CplusplusName[] =
3957 * File name selection pattern
3959 tSCC zTinfo_CplusplusList[] =
3962 * Machine/OS name selection pattern
3964 #define apzTinfo_CplusplusMachs (const char**)NULL
3967 * content selection pattern - do fix if pattern found
3969 tSCC zTinfo_CplusplusSelect0[] =
3972 #define TINFO_CPLUSPLUS_TEST_CT 1
3973 tTestDesc aTinfo_CplusplusTests[] = {
3974 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
3977 * Fix Command Arguments for Tinfo_Cplusplus
3979 const char* apzTinfo_CplusplusPatch[] = { "sed",
3980 "-e", "s/[ \t]_cplusplus/ __cplusplus/",
3983 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3985 * Description of Ultrix_Fix_Fixproto fix
3987 #define ULTRIX_FIX_FIXPROTO_FIXIDX 100
3988 tSCC zUltrix_Fix_FixprotoName[] =
3989 "ultrix_fix_fixproto";
3992 * File name selection pattern
3994 tSCC zUltrix_Fix_FixprotoList[] =
3997 * Machine/OS name selection pattern
3999 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4002 * content selection pattern - do fix if pattern found
4004 tSCC zUltrix_Fix_FixprotoSelect0[] =
4007 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4008 tTestDesc aUltrix_Fix_FixprotoTests[] = {
4009 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4012 * Fix Command Arguments for Ultrix_Fix_Fixproto
4014 const char* apzUltrix_Fix_FixprotoPatch[] = { "sed",
4015 "-e", "/^[ \t]*extern[ \t]*int[ \t]*uname();$/i\\\n\
4019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4021 * Description of Ultrix_Atof_Param fix
4023 #define ULTRIX_ATOF_PARAM_FIXIDX 101
4024 tSCC zUltrix_Atof_ParamName[] =
4025 "ultrix_atof_param";
4028 * File name selection pattern
4030 tSCC zUltrix_Atof_ParamList[] =
4033 * Machine/OS name selection pattern
4035 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4038 * content selection pattern - do fix if pattern found
4040 tSCC zUltrix_Atof_ParamSelect0[] =
4041 "atof\\([ \t]*char";
4043 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4044 tTestDesc aUltrix_Atof_ParamTests[] = {
4045 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4048 * Fix Command Arguments for Ultrix_Atof_Param
4050 const char* apzUltrix_Atof_ParamPatch[] = { "sed",
4051 "-e", "s@atof(\\([ \t]*char[ \t]*\\*[^)]*\\))@atof(const \\1)@",
4054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4056 * Description of Ultrix_Const fix
4058 #define ULTRIX_CONST_FIXIDX 102
4059 tSCC zUltrix_ConstName[] =
4063 * File name selection pattern
4065 tSCC zUltrix_ConstList[] =
4068 * Machine/OS name selection pattern
4070 #define apzUltrix_ConstMachs (const char**)NULL
4071 #define ULTRIX_CONST_TEST_CT 0
4072 #define aUltrix_ConstTests (tTestDesc*)NULL
4075 * Fix Command Arguments for Ultrix_Const
4077 const char* apzUltrix_ConstPatch[] = { "sed",
4078 "-e", "s@perror( char \\*__s );@perror( const char *__s );@",
4079 "-e", "s@fputs( char \\*__s,@fputs( const char *__s,@",
4080 "-e", "s@fopen( char \\*__filename, char \\*__type );@fopen( const char *__filename, const char *__type );@",
4081 "-e", "s@fwrite( void \\*__ptr,@fwrite( const void *__ptr,@",
4082 "-e", "s@fscanf( FILE \\*__stream, char \\*__format,@fscanf( FILE *__stream, const char *__format,@",
4083 "-e", "s@scanf( char \\*__format,@scanf( const char *__format,@",
4084 "-e", "s@sscanf( char \\*__s, char \\*__format,@sscanf( const char *__s, const char *__format,@",
4085 "-e", "s@popen(char \\*, char \\*);@popen(const char *, const char *);@",
4086 "-e", "s@tempnam(char\\*,char\\*);@tempnam(const char*,const char*);@",
4089 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4091 * Description of Ultrix_Ifdef fix
4093 #define ULTRIX_IFDEF_FIXIDX 103
4094 tSCC zUltrix_IfdefName[] =
4098 * File name selection pattern
4100 tSCC zUltrix_IfdefList[] =
4103 * Machine/OS name selection pattern
4105 #define apzUltrix_IfdefMachs (const char**)NULL
4108 * content selection pattern - do fix if pattern found
4110 tSCC zUltrix_IfdefSelect0[] =
4111 "#ifdef KERNEL[ \t]*[^ \t]";
4113 #define ULTRIX_IFDEF_TEST_CT 1
4114 tTestDesc aUltrix_IfdefTests[] = {
4115 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4118 * Fix Command Arguments for Ultrix_Ifdef
4120 const char* apzUltrix_IfdefPatch[] = { "sed",
4121 "-e", "s/#ifdef KERNEL/#if defined(KERNEL)/",
4124 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4126 * Description of Ultrix_Nested_Cmnt fix
4128 #define ULTRIX_NESTED_CMNT_FIXIDX 104
4129 tSCC zUltrix_Nested_CmntName[] =
4130 "ultrix_nested_cmnt";
4133 * File name selection pattern
4135 tSCC zUltrix_Nested_CmntList[] =
4138 * Machine/OS name selection pattern
4140 #define apzUltrix_Nested_CmntMachs (const char**)NULL
4141 #define ULTRIX_NESTED_CMNT_TEST_CT 0
4142 #define aUltrix_Nested_CmntTests (tTestDesc*)NULL
4145 * Fix Command Arguments for Ultrix_Nested_Cmnt
4147 const char* apzUltrix_Nested_CmntPatch[] = { "sed",
4148 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
4151 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4153 * Description of Ultrix_Static fix
4155 #define ULTRIX_STATIC_FIXIDX 105
4156 tSCC zUltrix_StaticName[] =
4160 * File name selection pattern
4162 tSCC zUltrix_StaticList[] =
4165 * Machine/OS name selection pattern
4167 #define apzUltrix_StaticMachs (const char**)NULL
4170 * content selection pattern - do fix if pattern found
4172 tSCC zUltrix_StaticSelect0[] =
4173 "#include \"r[34]_cpu";
4175 #define ULTRIX_STATIC_TEST_CT 1
4176 tTestDesc aUltrix_StaticTests[] = {
4177 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
4180 * Fix Command Arguments for Ultrix_Static
4182 const char* apzUltrix_StaticPatch[] = { "sed",
4183 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
4184 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
4185 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
4188 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4190 * Description of Undefine_Null fix
4192 #define UNDEFINE_NULL_FIXIDX 106
4193 tSCC zUndefine_NullName[] =
4197 * File name selection pattern
4199 #define zUndefine_NullList (char*)NULL
4201 * Machine/OS name selection pattern
4203 #define apzUndefine_NullMachs (const char**)NULL
4206 * content selection pattern - do fix if pattern found
4208 tSCC zUndefine_NullSelect0[] =
4209 "^#[ \t]*define[ \t]*[ \t]NULL[ \t\r]";
4212 * content bypass pattern - skip fix if pattern found
4214 tSCC zUndefine_NullBypass0[] =
4215 "#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t\r])";
4217 #define UNDEFINE_NULL_TEST_CT 2
4218 tTestDesc aUndefine_NullTests[] = {
4219 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
4220 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
4223 * Fix Command Arguments for Undefine_Null
4225 const char* apzUndefine_NullPatch[] = { "sed",
4226 "-e", "/^#[ \t]*define[ \t][ \t]*NULL[ \t\r]/i\\\n\
4230 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4232 * Description of Unixware7_Byteorder_Fix fix
4234 #define UNIXWARE7_BYTEORDER_FIX_FIXIDX 107
4235 tSCC zUnixware7_Byteorder_FixName[] =
4236 "unixware7_byteorder_fix";
4239 * File name selection pattern
4241 tSCC zUnixware7_Byteorder_FixList[] =
4244 * Machine/OS name selection pattern
4246 tSCC* apzUnixware7_Byteorder_FixMachs[] = {
4248 "i[34567]86-*-sysv5*",
4249 "i[34567]86-*-udk*",
4250 "i[34567]86-*-solaris2.[0-4]",
4251 "powerpcle-*-solaris2.[0-4]",
4252 "sparc-*-solaris2.[0-4]",
4253 (const char*)NULL };
4256 * content selection pattern - do fix if pattern found
4258 tSCC zUnixware7_Byteorder_FixSelect0[] =
4261 #define UNIXWARE7_BYTEORDER_FIX_TEST_CT 1
4262 tTestDesc aUnixware7_Byteorder_FixTests[] = {
4263 { TT_EGREP, zUnixware7_Byteorder_FixSelect0, (regex_t*)NULL }, };
4266 * Fix Command Arguments for Unixware7_Byteorder_Fix
4268 const char* apzUnixware7_Byteorder_FixPatch[] = { "sed",
4269 "-e", "/^extern.*htons.*(in_port_t)/d",
4270 "-e", "/^extern.*ntohs.*(in_port_t)/d",
4273 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4275 * Description of Va_I960_Macro fix
4277 #define VA_I960_MACRO_FIXIDX 108
4278 tSCC zVa_I960_MacroName[] =
4282 * File name selection pattern
4284 tSCC zVa_I960_MacroList[] =
4285 "|arch/i960/archI960.h|";
4287 * Machine/OS name selection pattern
4289 #define apzVa_I960_MacroMachs (const char**)NULL
4292 * content selection pattern - do fix if pattern found
4294 tSCC zVa_I960_MacroSelect0[] =
4295 "__(vsiz|vali|vpad|alignof__)";
4297 #define VA_I960_MACRO_TEST_CT 1
4298 tTestDesc aVa_I960_MacroTests[] = {
4299 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
4302 * Fix Command Arguments for Va_I960_Macro
4304 const char* apzVa_I960_MacroPatch[] = { "sed",
4305 "-e", "s/__vsiz/__vxvsiz/",
4306 "-e", "s/__vali/__vxvali/",
4307 "-e", "s/__vpad/__vxvpad/",
4308 "-e", "s/__alignof__/__vxalignof__/",
4311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4313 * Description of Void_Null fix
4315 #define VOID_NULL_FIXIDX 109
4316 tSCC zVoid_NullName[] =
4320 * File name selection pattern
4322 tSCC zVoid_NullList[] =
4323 "|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|";
4325 * Machine/OS name selection pattern
4327 #define apzVoid_NullMachs (const char**)NULL
4330 * content selection pattern - do fix if pattern found
4332 tSCC zVoid_NullSelect0[] =
4333 "#[ \t]*define[ \t][ \t]*NULL[ \t].*void";
4335 #define VOID_NULL_TEST_CT 1
4336 tTestDesc aVoid_NullTests[] = {
4337 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
4340 * Fix Command Arguments for Void_Null
4342 const char* apzVoid_NullPatch[] = { "sed",
4343 "-e", "s/^#[ \t]*define[ \t]*NULL[ \t]*((void[ \t]*\\*)0)/#define NULL 0/",
4346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4348 * Description of Vxworks_Gcc_Problem fix
4350 #define VXWORKS_GCC_PROBLEM_FIXIDX 110
4351 tSCC zVxworks_Gcc_ProblemName[] =
4352 "vxworks_gcc_problem";
4355 * File name selection pattern
4357 tSCC zVxworks_Gcc_ProblemList[] =
4358 "|types/vxTypesBase.h|";
4360 * Machine/OS name selection pattern
4362 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
4365 * content selection pattern - do fix if pattern found
4367 tSCC zVxworks_Gcc_ProblemSelect0[] =
4368 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
4370 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
4371 tTestDesc aVxworks_Gcc_ProblemTests[] = {
4372 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
4375 * Fix Command Arguments for Vxworks_Gcc_Problem
4377 const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
4378 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
4379 "-e", "/[ \t]size_t/i\\\n\
4380 #ifndef _GCC_SIZE_T\\\n\
4381 #define _GCC_SIZE_T\n",
4382 "-e", "/[ \t]size_t/a\\\n\
4384 "-e", "/[ \t]ptrdiff_t/i\\\n\
4385 #ifndef _GCC_PTRDIFF_T\\\n\
4386 #define _GCC_PTRDIFF_T\n",
4387 "-e", "/[ \t]ptrdiff_t/a\\\n\
4389 "-e", "/[ \t]wchar_t/i\\\n\
4390 #ifndef _GCC_WCHAR_T\\\n\
4391 #define _GCC_WCHAR_T\n",
4392 "-e", "/[ \t]wchar_t/a\\\n\
4396 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4398 * Description of Vxworks_Needs_Vxtypes fix
4400 #define VXWORKS_NEEDS_VXTYPES_FIXIDX 111
4401 tSCC zVxworks_Needs_VxtypesName[] =
4402 "vxworks_needs_vxtypes";
4405 * File name selection pattern
4407 tSCC zVxworks_Needs_VxtypesList[] =
4410 * Machine/OS name selection pattern
4412 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
4415 * content selection pattern - do fix if pattern found
4417 tSCC zVxworks_Needs_VxtypesSelect0[] =
4418 "uint_t[ \t][ \t]*_clocks_per_sec";
4420 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
4421 tTestDesc aVxworks_Needs_VxtypesTests[] = {
4422 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
4425 * Fix Command Arguments for Vxworks_Needs_Vxtypes
4427 const char* apzVxworks_Needs_VxtypesPatch[] = { "sed",
4428 "-e", "s/uint_t/unsigned int/",
4431 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4433 * Description of Vxworks_Needs_Vxworks fix
4435 #define VXWORKS_NEEDS_VXWORKS_FIXIDX 112
4436 tSCC zVxworks_Needs_VxworksName[] =
4437 "vxworks_needs_vxworks";
4440 * File name selection pattern
4442 tSCC zVxworks_Needs_VxworksList[] =
4445 * Machine/OS name selection pattern
4447 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
4450 * content selection pattern - do fix if pattern found
4452 tSCC zVxworks_Needs_VxworksSelect0[] =
4453 "#[ \t]define[ \t][ \t]*__INCstath";
4456 * perform the 'test' shell command - do fix on success
4458 tSCC zVxworks_Needs_VxworksTest0[] =
4459 " -r types/vxTypesOld.h";
4460 tSCC zVxworks_Needs_VxworksTest1[] =
4461 " -n \"`egrep '#include' $file`\"";
4462 tSCC zVxworks_Needs_VxworksTest2[] =
4463 " -n \"`egrep ULONG $file`\"";
4465 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
4466 tTestDesc aVxworks_Needs_VxworksTests[] = {
4467 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
4468 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
4469 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
4470 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
4473 * Fix Command Arguments for Vxworks_Needs_Vxworks
4475 const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
4476 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
4477 #include <types/vxTypesOld.h>\n",
4480 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4482 * Description of Vxworks_Time fix
4484 #define VXWORKS_TIME_FIXIDX 113
4485 tSCC zVxworks_TimeName[] =
4489 * File name selection pattern
4491 tSCC zVxworks_TimeList[] =
4494 * Machine/OS name selection pattern
4496 #define apzVxworks_TimeMachs (const char**)NULL
4499 * content selection pattern - do fix if pattern found
4501 tSCC zVxworks_TimeSelect0[] =
4505 * perform the 'test' shell command - do fix on success
4507 tSCC zVxworks_TimeTest0[] =
4510 #define VXWORKS_TIME_TEST_CT 2
4511 tTestDesc aVxworks_TimeTests[] = {
4512 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
4513 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
4516 * Fix Command Arguments for Vxworks_Time
4518 const char* apzVxworks_TimePatch[] = { "sed",
4519 "-e", "/VOIDFUNCPTR/i\\\n\
4520 #ifndef __gcc_VOIDFUNCPTR_defined\\\n\
4521 #ifdef __cplusplus\\\n\
4522 typedef void (*__gcc_VOIDFUNCPTR) (...);\\\n\
4524 typedef void (*__gcc_VOIDFUNCPTR) ();\\\n\
4526 #define __gcc_VOIDFUNCPTR_defined\\\n\
4528 "-e", "s/VOIDFUNCPTR/__gcc_VOIDFUNCPTR/g",
4531 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4533 * Description of X11_Class fix
4535 #define X11_CLASS_FIXIDX 114
4536 tSCC zX11_ClassName[] =
4540 * File name selection pattern
4542 tSCC zX11_ClassList[] =
4545 * Machine/OS name selection pattern
4547 #define apzX11_ClassMachs (const char**)NULL
4550 * content bypass pattern - skip fix if pattern found
4552 tSCC zX11_ClassBypass0[] =
4555 #define X11_CLASS_TEST_CT 1
4556 tTestDesc aX11_ClassTests[] = {
4557 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, };
4560 * Fix Command Arguments for X11_Class
4562 const char* apzX11_ClassPatch[] = { "sed",
4563 "-e", "/char \\*class;/i\\\n\
4564 #ifdef __cplusplus\\\n\
4565 \tchar *c_class;\\\n\
4567 "-e", "/char \\*class;/a\\\n\
4571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4573 * Description of X11_Class_Usage fix
4575 #define X11_CLASS_USAGE_FIXIDX 115
4576 tSCC zX11_Class_UsageName[] =
4580 * File name selection pattern
4582 tSCC zX11_Class_UsageList[] =
4583 "|Xm/BaseClassI.h|";
4585 * Machine/OS name selection pattern
4587 #define apzX11_Class_UsageMachs (const char**)NULL
4590 * content bypass pattern - skip fix if pattern found
4592 tSCC zX11_Class_UsageBypass0[] =
4595 #define X11_CLASS_USAGE_TEST_CT 1
4596 tTestDesc aX11_Class_UsageTests[] = {
4597 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, };
4600 * Fix Command Arguments for X11_Class_Usage
4602 const char* apzX11_Class_UsagePatch[] = { "sed",
4603 "-e", "s/ class[)]/ c_class)/g",
4606 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4608 * Description of X11_New fix
4610 #define X11_NEW_FIXIDX 116
4611 tSCC zX11_NewName[] =
4615 * File name selection pattern
4617 tSCC zX11_NewList[] =
4620 * Machine/OS name selection pattern
4622 #define apzX11_NewMachs (const char**)NULL
4625 * content bypass pattern - skip fix if pattern found
4627 tSCC zX11_NewBypass0[] =
4630 #define X11_NEW_TEST_CT 1
4631 tTestDesc aX11_NewTests[] = {
4632 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
4635 * Fix Command Arguments for X11_New
4637 const char* apzX11_NewPatch[] = { "sed",
4638 "-e", "/Widget\told, new;/i\\\n\
4639 #ifdef __cplusplus\\\n\
4640 \tWidget\told, c_new;\\\n\
4642 "-e", "/Widget\told, new;/a\\\n\
4644 "-e", "s/Widget new,/Widget c_new,/g",
4647 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4649 * Description of X11_Sprintf fix
4651 #define X11_SPRINTF_FIXIDX 117
4652 tSCC zX11_SprintfName[] =
4656 * File name selection pattern
4658 tSCC zX11_SprintfList[] =
4659 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
4661 * Machine/OS name selection pattern
4663 #define apzX11_SprintfMachs (const char**)NULL
4666 * content selection pattern - do fix if pattern found
4668 tSCC zX11_SprintfSelect0[] =
4671 #define X11_SPRINTF_TEST_CT 1
4672 tTestDesc aX11_SprintfTests[] = {
4673 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
4676 * Fix Command Arguments for X11_Sprintf
4678 const char* apzX11_SprintfPatch[] = { "sed",
4679 "-e", "s,^extern char \\*\tsprintf();$,#ifndef __STDC__\\\n\
4680 extern char *\tsprintf();\\\n\
4681 #endif /* !defined __STDC__ */,",
4685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4689 #define REGEX_COUNT 105
4690 #define MACH_LIST_SIZE_LIMIT 279
4691 #define FIX_COUNT 118
4693 tFixDesc fixDescList[ FIX_COUNT ] = {
4694 { zAaa_Ki_IfaceName, zAaa_Ki_IfaceList,
4695 apzAaa_Ki_IfaceMachs,
4696 AAA_KI_IFACE_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4697 aAaa_Ki_IfaceTests, apzAaa_Ki_IfacePatch },
4699 { zAaa_KiName, zAaa_KiList,
4701 AAA_KI_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4702 aAaa_KiTests, apzAaa_KiPatch },
4704 { zAaa_Ki_CallsName, zAaa_Ki_CallsList,
4705 apzAaa_Ki_CallsMachs,
4706 AAA_KI_CALLS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4707 aAaa_Ki_CallsTests, apzAaa_Ki_CallsPatch },
4709 { zAaa_Ki_DefsName, zAaa_Ki_DefsList,
4710 apzAaa_Ki_DefsMachs,
4711 AAA_KI_DEFS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4712 aAaa_Ki_DefsTests, apzAaa_Ki_DefsPatch },
4714 { zAaa_Bad_FixesName, zAaa_Bad_FixesList,
4715 apzAaa_Bad_FixesMachs,
4716 AAA_BAD_FIXES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4717 aAaa_Bad_FixesTests, apzAaa_Bad_FixesPatch },
4719 { zAaa_TimeName, zAaa_TimeList,
4721 AAA_TIME_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4722 aAaa_TimeTests, apzAaa_TimePatch },
4724 { zAab_Dgux_Int_VarargsName, zAab_Dgux_Int_VarargsList,
4725 apzAab_Dgux_Int_VarargsMachs,
4726 AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4727 aAab_Dgux_Int_VarargsTests, apzAab_Dgux_Int_VarargsPatch },
4729 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
4730 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
4731 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4732 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch },
4734 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
4735 apzAab_Fd_Zero_Gnu_Types_HMachs,
4736 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4737 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch },
4739 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
4740 apzAab_Fd_Zero_Selectbits_HMachs,
4741 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4742 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch },
4744 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
4745 apzAab_Sun_MemcpyMachs,
4746 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4747 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch },
4749 { zAab_Svr4_Replace_ByteorderName, zAab_Svr4_Replace_ByteorderList,
4750 apzAab_Svr4_Replace_ByteorderMachs,
4751 AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4752 aAab_Svr4_Replace_ByteorderTests, apzAab_Svr4_Replace_ByteorderPatch },
4754 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
4755 apzAab_Ultrix_Ansi_CompatMachs,
4756 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4757 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch },
4759 { zAix_SyswaitName, zAix_SyswaitList,
4760 apzAix_SyswaitMachs,
4761 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4762 aAix_SyswaitTests, apzAix_SyswaitPatch },
4764 { zAix_VolatileName, zAix_VolatileList,
4765 apzAix_VolatileMachs,
4766 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY,
4767 aAix_VolatileTests, apzAix_VolatilePatch },
4769 { zAlpha_GetoptName, zAlpha_GetoptList,
4770 apzAlpha_GetoptMachs,
4771 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY,
4772 aAlpha_GetoptTests, apzAlpha_GetoptPatch },
4774 { zAlpha_ParensName, zAlpha_ParensList,
4775 apzAlpha_ParensMachs,
4776 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY,
4777 aAlpha_ParensTests, apzAlpha_ParensPatch },
4779 { zAlpha_SbrkName, zAlpha_SbrkList,
4781 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY,
4782 aAlpha_SbrkTests, apzAlpha_SbrkPatch },
4784 { zArm_Norcroft_HintName, zArm_Norcroft_HintList,
4785 apzArm_Norcroft_HintMachs,
4786 ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY,
4787 aArm_Norcroft_HintTests, apzArm_Norcroft_HintPatch },
4789 { zArm_WcharName, zArm_WcharList,
4791 ARM_WCHAR_TEST_CT, FD_MACH_ONLY,
4792 aArm_WcharTests, apzArm_WcharPatch },
4794 { zAux_AsmName, zAux_AsmList,
4796 AUX_ASM_TEST_CT, FD_MACH_ONLY,
4797 aAux_AsmTests, apzAux_AsmPatch },
4799 { zAvoid_BoolName, zAvoid_BoolList,
4801 AVOID_BOOL_TEST_CT, FD_MACH_ONLY,
4802 aAvoid_BoolTests, apzAvoid_BoolPatch },
4804 { zBad_Struct_TermName, zBad_Struct_TermList,
4805 apzBad_Struct_TermMachs,
4806 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY,
4807 aBad_Struct_TermTests, apzBad_Struct_TermPatch },
4809 { zBadquoteName, zBadquoteList,
4811 BADQUOTE_TEST_CT, FD_MACH_ONLY,
4812 aBadquoteTests, apzBadquotePatch },
4814 { zBad_LvalName, zBad_LvalList,
4816 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
4817 aBad_LvalTests, apzBad_LvalPatch },
4819 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
4820 apzBroken_Assert_StdioMachs,
4821 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4822 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch },
4824 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
4825 apzBroken_Assert_StdlibMachs,
4826 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4827 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch },
4829 { zBroken_CabsName, zBroken_CabsList,
4830 apzBroken_CabsMachs,
4831 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
4832 aBroken_CabsTests, apzBroken_CabsPatch },
4834 { zDec_Intern_AsmName, zDec_Intern_AsmList,
4835 apzDec_Intern_AsmMachs,
4836 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
4837 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch },
4839 { zEcd_CursorName, zEcd_CursorList,
4841 ECD_CURSOR_TEST_CT, FD_MACH_ONLY,
4842 aEcd_CursorTests, apzEcd_CursorPatch },
4844 { zHp_InlineName, zHp_InlineList,
4846 HP_INLINE_TEST_CT, FD_MACH_ONLY,
4847 aHp_InlineTests, apzHp_InlinePatch },
4849 { zHp_SysfileName, zHp_SysfileList,
4851 HP_SYSFILE_TEST_CT, FD_MACH_ONLY,
4852 aHp_SysfileTests, apzHp_SysfilePatch },
4854 { zCxx_UnreadyName, zCxx_UnreadyList,
4855 apzCxx_UnreadyMachs,
4856 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4857 aCxx_UnreadyTests, apzCxx_UnreadyPatch },
4859 { zHpux_MaxintName, zHpux_MaxintList,
4860 apzHpux_MaxintMachs,
4861 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY,
4862 aHpux_MaxintTests, apzHpux_MaxintPatch },
4864 { zHpux_SystimeName, zHpux_SystimeList,
4865 apzHpux_SystimeMachs,
4866 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY,
4867 aHpux_SystimeTests, apzHpux_SystimePatch },
4869 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
4870 apzHpux8_Bogus_InlinesMachs,
4871 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
4872 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch },
4874 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
4875 apzHpux11_Uint32_CMachs,
4876 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY,
4877 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch },
4879 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
4880 apzIsc_Omits_With_StdcMachs,
4881 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY,
4882 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch },
4884 { zIo_Quotes_UseName, zIo_Quotes_UseList,
4885 apzIo_Quotes_UseMachs,
4886 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4887 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch },
4889 { zIo_Quotes_DefName, zIo_Quotes_DefList,
4890 apzIo_Quotes_DefMachs,
4891 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4892 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch },
4894 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
4895 apzCtrl_Quotes_UseMachs,
4896 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4897 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch },
4899 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
4900 apzCtrl_Quotes_DefMachs,
4901 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4902 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch },
4904 { zIp_Missing_SemiName, zIp_Missing_SemiList,
4905 apzIp_Missing_SemiMachs,
4906 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
4907 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch },
4909 { zIrix_Multiline_CmntName, zIrix_Multiline_CmntList,
4910 apzIrix_Multiline_CmntMachs,
4911 IRIX_MULTILINE_CMNT_TEST_CT, FD_MACH_ONLY,
4912 aIrix_Multiline_CmntTests, apzIrix_Multiline_CmntPatch },
4914 { zIrix_SockaddrName, zIrix_SockaddrList,
4915 apzIrix_SockaddrMachs,
4916 IRIX_SOCKADDR_TEST_CT, FD_MACH_ONLY,
4917 aIrix_SockaddrTests, apzIrix_SockaddrPatch },
4919 { zIrix_Struct__FileName, zIrix_Struct__FileList,
4920 apzIrix_Struct__FileMachs,
4921 IRIX_STRUCT__FILE_TEST_CT, FD_MACH_ONLY,
4922 aIrix_Struct__FileTests, apzIrix_Struct__FilePatch },
4924 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
4925 apzIrix_Asm_ApostropheMachs,
4926 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY,
4927 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch },
4929 { zIsc_FmodName, zIsc_FmodList,
4931 ISC_FMOD_TEST_CT, FD_MACH_ONLY,
4932 aIsc_FmodTests, apzIsc_FmodPatch },
4934 { zMotorola_NestedName, zMotorola_NestedList,
4935 apzMotorola_NestedMachs,
4936 MOTOROLA_NESTED_TEST_CT, FD_MACH_ONLY,
4937 aMotorola_NestedTests, apzMotorola_NestedPatch },
4939 { zIsc_Sys_LimitsName, zIsc_Sys_LimitsList,
4940 apzIsc_Sys_LimitsMachs,
4941 ISC_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
4942 aIsc_Sys_LimitsTests, apzIsc_Sys_LimitsPatch },
4944 { zKandr_ConcatName, zKandr_ConcatList,
4945 apzKandr_ConcatMachs,
4946 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY,
4947 aKandr_ConcatTests, apzKandr_ConcatPatch },
4949 { zLimits_IfndefsName, zLimits_IfndefsList,
4950 apzLimits_IfndefsMachs,
4951 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY,
4952 aLimits_IfndefsTests, apzLimits_IfndefsPatch },
4954 { zLynx_Void_IntName, zLynx_Void_IntList,
4955 apzLynx_Void_IntMachs,
4956 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY,
4957 aLynx_Void_IntTests, apzLynx_Void_IntPatch },
4959 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
4960 apzLynxos_Fcntl_ProtoMachs,
4961 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY,
4962 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch },
4964 { zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList,
4965 apzM88k_Bad_Hypot_OptMachs,
4966 M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY,
4967 aM88k_Bad_Hypot_OptTests, apzM88k_Bad_Hypot_OptPatch },
4969 { zM88k_Bad_S_IfName, zM88k_Bad_S_IfList,
4970 apzM88k_Bad_S_IfMachs,
4971 M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY,
4972 aM88k_Bad_S_IfTests, apzM88k_Bad_S_IfPatch },
4974 { zM88k_Multi_InclName, zM88k_Multi_InclList,
4975 apzM88k_Multi_InclMachs,
4976 M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
4977 aM88k_Multi_InclTests, apzM88k_Multi_InclPatch },
4979 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
4980 apzMachine_Ansi_H_Va_ListMachs,
4981 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY,
4982 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch },
4984 { zMachine_NameName, zMachine_NameList,
4985 apzMachine_NameMachs,
4986 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4987 aMachine_NameTests, apzMachine_NamePatch },
4989 { zMath_ExceptionName, zMath_ExceptionList,
4990 apzMath_ExceptionMachs,
4991 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4992 aMath_ExceptionTests, apzMath_ExceptionPatch },
4994 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
4995 apzMath_Huge_Val_From_Dbl_MaxMachs,
4996 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
4997 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch },
4999 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
5000 apzMath_Huge_Val_IfndefMachs,
5001 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY,
5002 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch },
5004 { zNested_CommentName, zNested_CommentList,
5005 apzNested_CommentMachs,
5006 NESTED_COMMENT_TEST_CT, FD_MACH_ONLY,
5007 aNested_CommentTests, apzNested_CommentPatch },
5009 { zNews_Os_RecursionName, zNews_Os_RecursionList,
5010 apzNews_Os_RecursionMachs,
5011 NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY,
5012 aNews_Os_RecursionTests, apzNews_Os_RecursionPatch },
5014 { zNext_Math_PrefixName, zNext_Math_PrefixList,
5015 apzNext_Math_PrefixMachs,
5016 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY,
5017 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch },
5019 { zNext_TemplateName, zNext_TemplateList,
5020 apzNext_TemplateMachs,
5021 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY,
5022 aNext_TemplateTests, apzNext_TemplatePatch },
5024 { zNext_VolitileName, zNext_VolitileList,
5025 apzNext_VolitileMachs,
5026 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY,
5027 aNext_VolitileTests, apzNext_VolitilePatch },
5029 { zNext_Wait_UnionName, zNext_Wait_UnionList,
5030 apzNext_Wait_UnionMachs,
5031 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY,
5032 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch },
5034 { zNodeent_SyntaxName, zNodeent_SyntaxList,
5035 apzNodeent_SyntaxMachs,
5036 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY,
5037 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch },
5039 { zOsf_Namespace_AName, zOsf_Namespace_AList,
5040 apzOsf_Namespace_AMachs,
5041 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY,
5042 aOsf_Namespace_ATests, apzOsf_Namespace_APatch },
5044 { zOsf_Namespace_BName, zOsf_Namespace_BList,
5045 apzOsf_Namespace_BMachs,
5046 OSF_NAMESPACE_B_TEST_CT, FD_MACH_ONLY,
5047 aOsf_Namespace_BTests, apzOsf_Namespace_BPatch },
5049 { zPthread_Page_SizeName, zPthread_Page_SizeList,
5050 apzPthread_Page_SizeMachs,
5051 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY,
5052 aPthread_Page_SizeTests, apzPthread_Page_SizePatch },
5054 { zRead_Ret_TypeName, zRead_Ret_TypeList,
5055 apzRead_Ret_TypeMachs,
5056 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY,
5057 aRead_Ret_TypeTests, apzRead_Ret_TypePatch },
5059 { zRs6000_DoubleName, zRs6000_DoubleList,
5060 apzRs6000_DoubleMachs,
5061 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY,
5062 aRs6000_DoubleTests, apzRs6000_DoublePatch },
5064 { zRs6000_FchmodName, zRs6000_FchmodList,
5065 apzRs6000_FchmodMachs,
5066 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY,
5067 aRs6000_FchmodTests, apzRs6000_FchmodPatch },
5069 { zRs6000_ParamName, zRs6000_ParamList,
5070 apzRs6000_ParamMachs,
5071 RS6000_PARAM_TEST_CT, FD_MACH_ONLY,
5072 aRs6000_ParamTests, apzRs6000_ParamPatch },
5074 { zSco_Strict_AnsiName, zSco_Strict_AnsiList,
5075 apzSco_Strict_AnsiMachs,
5076 SCO_STRICT_ANSI_TEST_CT, FD_MACH_ONLY,
5077 aSco_Strict_AnsiTests, apzSco_Strict_AnsiPatch },
5079 { zSco_Static_FuncName, zSco_Static_FuncList,
5080 apzSco_Static_FuncMachs,
5081 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
5082 aSco_Static_FuncTests, apzSco_Static_FuncPatch },
5084 { zSco_UtimeName, zSco_UtimeList,
5086 SCO_UTIME_TEST_CT, FD_MACH_ONLY,
5087 aSco_UtimeTests, apzSco_UtimePatch },
5089 { zSony_IncludeName, zSony_IncludeList,
5090 apzSony_IncludeMachs,
5091 SONY_INCLUDE_TEST_CT, FD_MACH_ONLY,
5092 aSony_IncludeTests, apzSony_IncludePatch },
5094 { zStatsswtchName, zStatsswtchList,
5096 STATSSWTCH_TEST_CT, FD_MACH_ONLY,
5097 aStatsswtchTests, apzStatsswtchPatch },
5099 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
5100 apzStdio_Stdarg_HMachs,
5101 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5102 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch },
5104 { zStdio_Va_ListName, zStdio_Va_ListList,
5105 apzStdio_Va_ListMachs,
5106 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
5107 aStdio_Va_ListTests, apzStdio_Va_ListPatch },
5109 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
5110 apzSun_Auth_ProtoMachs,
5111 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY,
5112 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch },
5114 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
5115 apzSun_Bogus_IfdefMachs,
5116 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY,
5117 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch },
5119 { zSun_Bogus_Ifdef_Sun4cName, zSun_Bogus_Ifdef_Sun4cList,
5120 apzSun_Bogus_Ifdef_Sun4cMachs,
5121 SUN_BOGUS_IFDEF_SUN4C_TEST_CT, FD_MACH_ONLY,
5122 aSun_Bogus_Ifdef_Sun4cTests, apzSun_Bogus_Ifdef_Sun4cPatch },
5124 { zSun_CatmacroName, zSun_CatmacroList,
5125 apzSun_CatmacroMachs,
5126 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY,
5127 aSun_CatmacroTests, apzSun_CatmacroPatch },
5129 { zSun_MallocName, zSun_MallocList,
5131 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
5132 aSun_MallocTests, apzSun_MallocPatch },
5134 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
5135 apzSun_Rusers_SemiMachs,
5136 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
5137 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch },
5139 { zSun_SignalName, zSun_SignalList,
5141 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY,
5142 aSun_SignalTests, apzSun_SignalPatch },
5144 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
5145 apzSunos_Matherr_DeclMachs,
5146 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY,
5147 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch },
5149 { zSunos_StrlenName, zSunos_StrlenList,
5150 apzSunos_StrlenMachs,
5151 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY,
5152 aSunos_StrlenTests, apzSunos_StrlenPatch },
5154 { zSvr4_GetcwdName, zSvr4_GetcwdList,
5155 apzSvr4_GetcwdMachs,
5156 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY,
5157 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch },
5159 { zSvr4_ProfilName, zSvr4_ProfilList,
5160 apzSvr4_ProfilMachs,
5161 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY,
5162 aSvr4_ProfilTests, apzSvr4_ProfilPatch },
5164 { zSystypesName, zSystypesList,
5166 SYSTYPES_TEST_CT, FD_MACH_ONLY,
5167 aSystypesTests, apzSystypesPatch },
5169 { zSystypes_Stdlib_Size_TName, zSystypes_Stdlib_Size_TList,
5170 apzSystypes_Stdlib_Size_TMachs,
5171 SYSTYPES_STDLIB_SIZE_T_TEST_CT, FD_MACH_ONLY,
5172 aSystypes_Stdlib_Size_TTests, apzSystypes_Stdlib_Size_TPatch },
5174 { zSysv68_StringName, zSysv68_StringList,
5175 apzSysv68_StringMachs,
5176 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
5177 aSysv68_StringTests, apzSysv68_StringPatch },
5179 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
5180 apzSysz_Stdlib_For_SunMachs,
5181 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY,
5182 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch },
5184 { zSysz_Stdtypes_For_SunName, zSysz_Stdtypes_For_SunList,
5185 apzSysz_Stdtypes_For_SunMachs,
5186 SYSZ_STDTYPES_FOR_SUN_TEST_CT, FD_MACH_ONLY,
5187 aSysz_Stdtypes_For_SunTests, apzSysz_Stdtypes_For_SunPatch },
5189 { zTinfo_CplusplusName, zTinfo_CplusplusList,
5190 apzTinfo_CplusplusMachs,
5191 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY,
5192 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch },
5194 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
5195 apzUltrix_Fix_FixprotoMachs,
5196 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY,
5197 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch },
5199 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
5200 apzUltrix_Atof_ParamMachs,
5201 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY,
5202 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch },
5204 { zUltrix_ConstName, zUltrix_ConstList,
5205 apzUltrix_ConstMachs,
5206 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY,
5207 aUltrix_ConstTests, apzUltrix_ConstPatch },
5209 { zUltrix_IfdefName, zUltrix_IfdefList,
5210 apzUltrix_IfdefMachs,
5211 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY,
5212 aUltrix_IfdefTests, apzUltrix_IfdefPatch },
5214 { zUltrix_Nested_CmntName, zUltrix_Nested_CmntList,
5215 apzUltrix_Nested_CmntMachs,
5216 ULTRIX_NESTED_CMNT_TEST_CT, FD_MACH_ONLY,
5217 aUltrix_Nested_CmntTests, apzUltrix_Nested_CmntPatch },
5219 { zUltrix_StaticName, zUltrix_StaticList,
5220 apzUltrix_StaticMachs,
5221 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
5222 aUltrix_StaticTests, apzUltrix_StaticPatch },
5224 { zUndefine_NullName, zUndefine_NullList,
5225 apzUndefine_NullMachs,
5226 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY,
5227 aUndefine_NullTests, apzUndefine_NullPatch },
5229 { zUnixware7_Byteorder_FixName, zUnixware7_Byteorder_FixList,
5230 apzUnixware7_Byteorder_FixMachs,
5231 UNIXWARE7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY,
5232 aUnixware7_Byteorder_FixTests, apzUnixware7_Byteorder_FixPatch },
5234 { zVa_I960_MacroName, zVa_I960_MacroList,
5235 apzVa_I960_MacroMachs,
5236 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY,
5237 aVa_I960_MacroTests, apzVa_I960_MacroPatch },
5239 { zVoid_NullName, zVoid_NullList,
5241 VOID_NULL_TEST_CT, FD_MACH_ONLY,
5242 aVoid_NullTests, apzVoid_NullPatch },
5244 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
5245 apzVxworks_Gcc_ProblemMachs,
5246 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
5247 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch },
5249 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
5250 apzVxworks_Needs_VxtypesMachs,
5251 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY,
5252 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch },
5254 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
5255 apzVxworks_Needs_VxworksMachs,
5256 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
5257 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch },
5259 { zVxworks_TimeName, zVxworks_TimeList,
5260 apzVxworks_TimeMachs,
5261 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY,
5262 aVxworks_TimeTests, apzVxworks_TimePatch },
5264 { zX11_ClassName, zX11_ClassList,
5266 X11_CLASS_TEST_CT, FD_MACH_ONLY,
5267 aX11_ClassTests, apzX11_ClassPatch },
5269 { zX11_Class_UsageName, zX11_Class_UsageList,
5270 apzX11_Class_UsageMachs,
5271 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY,
5272 aX11_Class_UsageTests, apzX11_Class_UsagePatch },
5274 { zX11_NewName, zX11_NewList,
5276 X11_NEW_TEST_CT, FD_MACH_ONLY,
5277 aX11_NewTests, apzX11_NewPatch },
5279 { zX11_SprintfName, zX11_SprintfList,
5280 apzX11_SprintfMachs,
5281 X11_SPRINTF_TEST_CT, FD_MACH_ONLY,
5282 aX11_SprintfTests, apzX11_SprintfPatch }