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 121 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[] = {
808 "typedef int sig_atomic_t",
811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
813 * Description of Alpha_Getopt fix
815 #define ALPHA_GETOPT_FIXIDX 15
816 tSCC zAlpha_GetoptName[] =
820 * File name selection pattern
822 tSCC zAlpha_GetoptList[] =
823 "|stdio.h|stdlib.h|";
825 * Machine/OS name selection pattern
827 #define apzAlpha_GetoptMachs (const char**)NULL
830 * content selection pattern - do fix if pattern found
832 tSCC zAlpha_GetoptSelect0[] =
833 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
835 #define ALPHA_GETOPT_TEST_CT 1
836 tTestDesc aAlpha_GetoptTests[] = {
837 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
840 * Fix Command Arguments for Alpha_Getopt
842 const char* apzAlpha_GetoptPatch[] = {
844 "getopt(int, char *const[], const char *)",
847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
849 * Description of Alpha_Parens fix
851 #define ALPHA_PARENS_FIXIDX 16
852 tSCC zAlpha_ParensName[] =
856 * File name selection pattern
858 tSCC zAlpha_ParensList[] =
861 * Machine/OS name selection pattern
863 #define apzAlpha_ParensMachs (const char**)NULL
866 * content selection pattern - do fix if pattern found
868 tSCC zAlpha_ParensSelect0[] =
869 "#ifndef\\(__mips64\\)";
871 #define ALPHA_PARENS_TEST_CT 1
872 tTestDesc aAlpha_ParensTests[] = {
873 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
876 * Fix Command Arguments for Alpha_Parens
878 const char* apzAlpha_ParensPatch[] = {
883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
885 * Description of Alpha_Sbrk fix
887 #define ALPHA_SBRK_FIXIDX 17
888 tSCC zAlpha_SbrkName[] =
892 * File name selection pattern
894 tSCC zAlpha_SbrkList[] =
897 * Machine/OS name selection pattern
899 #define apzAlpha_SbrkMachs (const char**)NULL
902 * content selection pattern - do fix if pattern found
904 tSCC zAlpha_SbrkSelect0[] =
905 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
907 #define ALPHA_SBRK_TEST_CT 1
908 tTestDesc aAlpha_SbrkTests[] = {
909 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
912 * Fix Command Arguments for Alpha_Sbrk
914 const char* apzAlpha_SbrkPatch[] = {
919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
921 * Description of Arm_Norcroft_Hint fix
923 #define ARM_NORCROFT_HINT_FIXIDX 18
924 tSCC zArm_Norcroft_HintName[] =
928 * File name selection pattern
930 tSCC zArm_Norcroft_HintList[] =
933 * Machine/OS name selection pattern
935 #define apzArm_Norcroft_HintMachs (const char**)NULL
938 * content selection pattern - do fix if pattern found
940 tSCC zArm_Norcroft_HintSelect0[] =
943 #define ARM_NORCROFT_HINT_TEST_CT 1
944 tTestDesc aArm_Norcroft_HintTests[] = {
945 { TT_EGREP, zArm_Norcroft_HintSelect0, (regex_t*)NULL }, };
948 * Fix Command Arguments for Arm_Norcroft_Hint
950 const char* apzArm_Norcroft_HintPatch[] = {
955 /* * * * * * * * * * * * * * * * * * * * * * * * * *
957 * Description of Arm_Wchar fix
959 #define ARM_WCHAR_FIXIDX 19
960 tSCC zArm_WcharName[] =
964 * File name selection pattern
966 tSCC zArm_WcharList[] =
969 * Machine/OS name selection pattern
971 #define apzArm_WcharMachs (const char**)NULL
974 * content selection pattern - do fix if pattern found
976 tSCC zArm_WcharSelect0[] =
977 "#[ \t]*define[ \t]*__wchar_t";
979 #define ARM_WCHAR_TEST_CT 1
980 tTestDesc aArm_WcharTests[] = {
981 { TT_EGREP, zArm_WcharSelect0, (regex_t*)NULL }, };
984 * Fix Command Arguments for Arm_Wchar
986 const char* apzArm_WcharPatch[] = { "sed",
987 "-e", "s/\\(#[ \t]*ifndef[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",
988 "-e", "s/\\(#[ \t]*define[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",
991 /* * * * * * * * * * * * * * * * * * * * * * * * * *
993 * Description of Aux_Asm fix
995 #define AUX_ASM_FIXIDX 20
996 tSCC zAux_AsmName[] =
1000 * File name selection pattern
1002 tSCC zAux_AsmList[] =
1005 * Machine/OS name selection pattern
1007 #define apzAux_AsmMachs (const char**)NULL
1010 * content selection pattern - do fix if pattern found
1012 tSCC zAux_AsmSelect0[] =
1015 #define AUX_ASM_TEST_CT 1
1016 tTestDesc aAux_AsmTests[] = {
1017 { TT_EGREP, zAux_AsmSelect0, (regex_t*)NULL }, };
1020 * Fix Command Arguments for Aux_Asm
1022 const char* apzAux_AsmPatch[] = {
1024 "#if !defined(NOINLINE) && !defined(__GNUC__)",
1027 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1029 * Description of Avoid_Bool_Define fix
1031 #define AVOID_BOOL_DEFINE_FIXIDX 21
1032 tSCC zAvoid_Bool_DefineName[] =
1033 "avoid_bool_define";
1036 * File name selection pattern
1038 tSCC zAvoid_Bool_DefineList[] =
1039 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1041 * Machine/OS name selection pattern
1043 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1046 * content selection pattern - do fix if pattern found
1048 tSCC zAvoid_Bool_DefineSelect0[] =
1049 "#[ \t]*define[ \t]+bool[ \t]";
1051 #define AVOID_BOOL_DEFINE_TEST_CT 1
1052 tTestDesc aAvoid_Bool_DefineTests[] = {
1053 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1056 * Fix Command Arguments for Avoid_Bool_Define
1058 const char* apzAvoid_Bool_DefinePatch[] = {
1060 "#ifndef __cplusplus\n\
1063 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1068 * Description of Avoid_Bool_Type fix
1070 #define AVOID_BOOL_TYPE_FIXIDX 22
1071 tSCC zAvoid_Bool_TypeName[] =
1075 * File name selection pattern
1077 tSCC zAvoid_Bool_TypeList[] =
1078 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1080 * Machine/OS name selection pattern
1082 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1085 * content selection pattern - do fix if pattern found
1087 tSCC zAvoid_Bool_TypeSelect0[] =
1088 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1090 #define AVOID_BOOL_TYPE_TEST_CT 1
1091 tTestDesc aAvoid_Bool_TypeTests[] = {
1092 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1095 * Fix Command Arguments for Avoid_Bool_Type
1097 const char* apzAvoid_Bool_TypePatch[] = {
1099 "#ifndef __cplusplus\n\
1102 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;.*",
1105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1107 * Description of Bad_Lval fix
1109 #define BAD_LVAL_FIXIDX 23
1110 tSCC zBad_LvalName[] =
1114 * File name selection pattern
1116 tSCC zBad_LvalList[] =
1117 "|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|";
1119 * Machine/OS name selection pattern
1121 #define apzBad_LvalMachs (const char**)NULL
1124 * content selection pattern - do fix if pattern found
1126 tSCC zBad_LvalSelect0[] =
1127 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1129 #define BAD_LVAL_TEST_CT 1
1130 tTestDesc aBad_LvalTests[] = {
1131 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
1134 * Fix Command Arguments for Bad_Lval
1136 const char* apzBad_LvalPatch[] = { "sed",
1137 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1142 * Description of Bad_Struct_Term fix
1144 #define BAD_STRUCT_TERM_FIXIDX 24
1145 tSCC zBad_Struct_TermName[] =
1149 * File name selection pattern
1151 tSCC zBad_Struct_TermList[] =
1154 * Machine/OS name selection pattern
1156 #define apzBad_Struct_TermMachs (const char**)NULL
1159 * content selection pattern - do fix if pattern found
1161 tSCC zBad_Struct_TermSelect0[] =
1162 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1164 #define BAD_STRUCT_TERM_TEST_CT 1
1165 tTestDesc aBad_Struct_TermTests[] = {
1166 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1169 * Fix Command Arguments for Bad_Struct_Term
1171 const char* apzBad_Struct_TermPatch[] = {
1176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1178 * Description of Badquote fix
1180 #define BADQUOTE_FIXIDX 25
1181 tSCC zBadquoteName[] =
1185 * File name selection pattern
1187 tSCC zBadquoteList[] =
1188 "|sundev/vuid_event.h|";
1190 * Machine/OS name selection pattern
1192 #define apzBadquoteMachs (const char**)NULL
1195 * content selection pattern - do fix if pattern found
1197 tSCC zBadquoteSelect0[] =
1200 #define BADQUOTE_TEST_CT 1
1201 tTestDesc aBadquoteTests[] = {
1202 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1205 * Fix Command Arguments for Badquote
1207 const char* apzBadquotePatch[] = {
1212 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1214 * Description of Broken_Assert_Stdio fix
1216 #define BROKEN_ASSERT_STDIO_FIXIDX 26
1217 tSCC zBroken_Assert_StdioName[] =
1218 "broken_assert_stdio";
1221 * File name selection pattern
1223 tSCC zBroken_Assert_StdioList[] =
1226 * Machine/OS name selection pattern
1228 #define apzBroken_Assert_StdioMachs (const char**)NULL
1231 * content selection pattern - do fix if pattern found
1233 tSCC zBroken_Assert_StdioSelect0[] =
1237 * content bypass pattern - skip fix if pattern found
1239 tSCC zBroken_Assert_StdioBypass0[] =
1240 "include.*stdio\\.h";
1242 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1243 tTestDesc aBroken_Assert_StdioTests[] = {
1244 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1245 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1248 * Fix Command Arguments for Broken_Assert_Stdio
1250 const char* apzBroken_Assert_StdioPatch[] = {
1252 "#include <stdio.h>\n",
1255 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1257 * Description of Broken_Assert_Stdlib fix
1259 #define BROKEN_ASSERT_STDLIB_FIXIDX 27
1260 tSCC zBroken_Assert_StdlibName[] =
1261 "broken_assert_stdlib";
1264 * File name selection pattern
1266 tSCC zBroken_Assert_StdlibList[] =
1269 * Machine/OS name selection pattern
1271 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1274 * content selection pattern - do fix if pattern found
1276 tSCC zBroken_Assert_StdlibSelect0[] =
1277 "exit *\\(|abort *\\(";
1280 * content bypass pattern - skip fix if pattern found
1282 tSCC zBroken_Assert_StdlibBypass0[] =
1283 "include.*stdlib\\.h";
1285 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1286 tTestDesc aBroken_Assert_StdlibTests[] = {
1287 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1288 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1291 * Fix Command Arguments for Broken_Assert_Stdlib
1293 const char* apzBroken_Assert_StdlibPatch[] = {
1295 "#ifdef __cplusplus\n\
1296 #include <stdlib.h>\n\
1300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1302 * Description of Broken_Cabs fix
1304 #define BROKEN_CABS_FIXIDX 28
1305 tSCC zBroken_CabsName[] =
1309 * File name selection pattern
1311 tSCC zBroken_CabsList[] =
1314 * Machine/OS name selection pattern
1316 #define apzBroken_CabsMachs (const char**)NULL
1319 * content selection pattern - do fix if pattern found
1321 tSCC zBroken_CabsSelect0[] =
1322 "^extern double cabs";
1324 #define BROKEN_CABS_TEST_CT 1
1325 tTestDesc aBroken_CabsTests[] = {
1326 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1329 * Fix Command Arguments for Broken_Cabs
1331 const char* apzBroken_CabsPatch[] = {
1334 "^extern double cabs\\((struct dbl_hypot|)\\);",
1337 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1339 * Description of Ctrl_Quotes_Def fix
1341 #define CTRL_QUOTES_DEF_FIXIDX 29
1342 tSCC zCtrl_Quotes_DefName[] =
1346 * File name selection pattern
1348 #define zCtrl_Quotes_DefList (char*)NULL
1350 * Machine/OS name selection pattern
1352 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1355 * content selection pattern - do fix if pattern found
1357 tSCC zCtrl_Quotes_DefSelect0[] =
1358 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z],";
1360 #define CTRL_QUOTES_DEF_TEST_CT 1
1361 tTestDesc aCtrl_Quotes_DefTests[] = {
1362 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1365 * Fix Command Arguments for Ctrl_Quotes_Def
1367 const char* apzCtrl_Quotes_DefPatch[] = {
1372 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1374 * Description of Ctrl_Quotes_Use fix
1376 #define CTRL_QUOTES_USE_FIXIDX 30
1377 tSCC zCtrl_Quotes_UseName[] =
1381 * File name selection pattern
1383 #define zCtrl_Quotes_UseList (char*)NULL
1385 * Machine/OS name selection pattern
1387 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1390 * content selection pattern - do fix if pattern found
1392 tSCC zCtrl_Quotes_UseSelect0[] =
1393 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1395 #define CTRL_QUOTES_USE_TEST_CT 1
1396 tTestDesc aCtrl_Quotes_UseTests[] = {
1397 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1400 * Fix Command Arguments for Ctrl_Quotes_Use
1402 const char* apzCtrl_Quotes_UsePatch[] = {
1407 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1409 * Description of Cxx_Unready fix
1411 #define CXX_UNREADY_FIXIDX 31
1412 tSCC zCxx_UnreadyName[] =
1416 * File name selection pattern
1418 tSCC zCxx_UnreadyList[] =
1419 "|sys/mman.h|rpc/types.h|";
1421 * Machine/OS name selection pattern
1423 #define apzCxx_UnreadyMachs (const char**)NULL
1426 * content selection pattern - do fix if pattern found
1428 tSCC zCxx_UnreadySelect0[] =
1432 * content bypass pattern - skip fix if pattern found
1434 tSCC zCxx_UnreadyBypass0[] =
1435 "\"C\"|__BEGIN_DECLS";
1437 #define CXX_UNREADY_TEST_CT 2
1438 tTestDesc aCxx_UnreadyTests[] = {
1439 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1440 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1443 * Fix Command Arguments for Cxx_Unready
1445 const char* apzCxx_UnreadyPatch[] = {
1447 "#ifdef __cplusplus\n\
1450 "#ifdef __cplusplus\n\
1455 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1457 * Description of Dec_Intern_Asm fix
1459 #define DEC_INTERN_ASM_FIXIDX 32
1460 tSCC zDec_Intern_AsmName[] =
1464 * File name selection pattern
1466 tSCC zDec_Intern_AsmList[] =
1469 * Machine/OS name selection pattern
1471 #define apzDec_Intern_AsmMachs (const char**)NULL
1472 #define DEC_INTERN_ASM_TEST_CT 0
1473 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1476 * Fix Command Arguments for Dec_Intern_Asm
1478 const char* apzDec_Intern_AsmPatch[] = { "sed",
1479 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1481 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1485 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1487 * Description of Ecd_Cursor fix
1489 #define ECD_CURSOR_FIXIDX 33
1490 tSCC zEcd_CursorName[] =
1494 * File name selection pattern
1496 tSCC zEcd_CursorList[] =
1497 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1499 * Machine/OS name selection pattern
1501 #define apzEcd_CursorMachs (const char**)NULL
1504 * content selection pattern - do fix if pattern found
1506 tSCC zEcd_CursorSelect0[] =
1509 #define ECD_CURSOR_TEST_CT 1
1510 tTestDesc aEcd_CursorTests[] = {
1511 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
1514 * Fix Command Arguments for Ecd_Cursor
1516 const char* apzEcd_CursorPatch[] = {
1521 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1523 * Description of Fix_Header_Breakage fix
1525 #define FIX_HEADER_BREAKAGE_FIXIDX 34
1526 tSCC zFix_Header_BreakageName[] =
1527 "fix_header_breakage";
1530 * File name selection pattern
1532 tSCC zFix_Header_BreakageList[] =
1535 * Machine/OS name selection pattern
1537 tSCC* apzFix_Header_BreakageMachs[] = {
1538 "m88k-motorola-sysv3*",
1539 (const char*)NULL };
1542 * content selection pattern - do fix if pattern found
1544 tSCC zFix_Header_BreakageSelect0[] =
1545 "extern double floor\\(\\), ceil\\(\\), fmod\\(\\), fabs\\(\\);";
1547 #define FIX_HEADER_BREAKAGE_TEST_CT 1
1548 tTestDesc aFix_Header_BreakageTests[] = {
1549 { TT_EGREP, zFix_Header_BreakageSelect0, (regex_t*)NULL }, };
1552 * Fix Command Arguments for Fix_Header_Breakage
1554 const char* apzFix_Header_BreakagePatch[] = {
1556 "extern double floor(), ceil(), fmod(), fabs _PARAMS((double));",
1559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1561 * Description of Hp_Inline fix
1563 #define HP_INLINE_FIXIDX 35
1564 tSCC zHp_InlineName[] =
1568 * File name selection pattern
1570 tSCC zHp_InlineList[] =
1571 "|sys/spinlock.h|machine/machparam.h|";
1573 * Machine/OS name selection pattern
1575 #define apzHp_InlineMachs (const char**)NULL
1578 * content selection pattern - do fix if pattern found
1580 tSCC zHp_InlineSelect0[] =
1581 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1583 #define HP_INLINE_TEST_CT 1
1584 tTestDesc aHp_InlineTests[] = {
1585 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
1588 * Fix Command Arguments for Hp_Inline
1590 const char* apzHp_InlinePatch[] = {
1593 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1598 * Description of Hp_Sysfile fix
1600 #define HP_SYSFILE_FIXIDX 36
1601 tSCC zHp_SysfileName[] =
1605 * File name selection pattern
1607 tSCC zHp_SysfileList[] =
1610 * Machine/OS name selection pattern
1612 #define apzHp_SysfileMachs (const char**)NULL
1615 * content selection pattern - do fix if pattern found
1617 tSCC zHp_SysfileSelect0[] =
1620 #define HP_SYSFILE_TEST_CT 1
1621 tTestDesc aHp_SysfileTests[] = {
1622 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
1625 * Fix Command Arguments for Hp_Sysfile
1627 const char* apzHp_SysfilePatch[] = {
1629 "(struct file *, ...)",
1633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1635 * Description of Hpux11_Fabsf fix
1637 #define HPUX11_FABSF_FIXIDX 37
1638 tSCC zHpux11_FabsfName[] =
1642 * File name selection pattern
1644 tSCC zHpux11_FabsfList[] =
1647 * Machine/OS name selection pattern
1649 #define apzHpux11_FabsfMachs (const char**)NULL
1652 * content selection pattern - do fix if pattern found
1654 tSCC zHpux11_FabsfSelect0[] =
1655 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
1658 * content bypass pattern - skip fix if pattern found
1660 tSCC zHpux11_FabsfBypass0[] =
1663 #define HPUX11_FABSF_TEST_CT 2
1664 tTestDesc aHpux11_FabsfTests[] = {
1665 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
1666 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
1669 * Fix Command Arguments for Hpux11_Fabsf
1671 const char* apzHpux11_FabsfPatch[] = {
1673 "#ifndef __cplusplus\n\
1678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1680 * Description of Hpux11_Uint32_C fix
1682 #define HPUX11_UINT32_C_FIXIDX 38
1683 tSCC zHpux11_Uint32_CName[] =
1687 * File name selection pattern
1689 tSCC zHpux11_Uint32_CList[] =
1692 * Machine/OS name selection pattern
1694 #define apzHpux11_Uint32_CMachs (const char**)NULL
1697 * content selection pattern - do fix if pattern found
1699 tSCC zHpux11_Uint32_CSelect0[] =
1700 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1702 #define HPUX11_UINT32_C_TEST_CT 1
1703 tTestDesc aHpux11_Uint32_CTests[] = {
1704 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1707 * Fix Command Arguments for Hpux11_Uint32_C
1709 const char* apzHpux11_Uint32_CPatch[] = {
1711 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
1714 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1716 * Description of Hpux8_Bogus_Inlines fix
1718 #define HPUX8_BOGUS_INLINES_FIXIDX 39
1719 tSCC zHpux8_Bogus_InlinesName[] =
1720 "hpux8_bogus_inlines";
1723 * File name selection pattern
1725 tSCC zHpux8_Bogus_InlinesList[] =
1728 * Machine/OS name selection pattern
1730 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
1733 * content selection pattern - do fix if pattern found
1735 tSCC zHpux8_Bogus_InlinesSelect0[] =
1738 #define HPUX8_BOGUS_INLINES_TEST_CT 1
1739 tTestDesc aHpux8_Bogus_InlinesTests[] = {
1740 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
1743 * Fix Command Arguments for Hpux8_Bogus_Inlines
1745 const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
1746 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
1747 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
1748 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
1749 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
1752 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1754 * Description of Isc_Omits_With_Stdc fix
1756 #define ISC_OMITS_WITH_STDC_FIXIDX 40
1757 tSCC zIsc_Omits_With_StdcName[] =
1758 "isc_omits_with_stdc";
1761 * File name selection pattern
1763 tSCC zIsc_Omits_With_StdcList[] =
1764 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
1766 * Machine/OS name selection pattern
1768 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
1771 * content selection pattern - do fix if pattern found
1773 tSCC zIsc_Omits_With_StdcSelect0[] =
1774 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
1776 #define ISC_OMITS_WITH_STDC_TEST_CT 1
1777 tTestDesc aIsc_Omits_With_StdcTests[] = {
1778 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
1781 * Fix Command Arguments for Isc_Omits_With_Stdc
1783 const char* apzIsc_Omits_With_StdcPatch[] = {
1785 "!defined(_POSIX_SOURCE)",
1788 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1790 * Description of Io_Quotes_Def fix
1792 #define IO_QUOTES_DEF_FIXIDX 41
1793 tSCC zIo_Quotes_DefName[] =
1797 * File name selection pattern
1799 #define zIo_Quotes_DefList (char*)NULL
1801 * Machine/OS name selection pattern
1803 #define apzIo_Quotes_DefMachs (const char**)NULL
1806 * content selection pattern - do fix if pattern found
1808 tSCC zIo_Quotes_DefSelect0[] =
1809 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z],";
1811 #define IO_QUOTES_DEF_TEST_CT 1
1812 tTestDesc aIo_Quotes_DefTests[] = {
1813 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
1816 * Fix Command Arguments for Io_Quotes_Def
1818 const char* apzIo_Quotes_DefPatch[] = {
1823 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1825 * Description of Io_Quotes_Use fix
1827 #define IO_QUOTES_USE_FIXIDX 42
1828 tSCC zIo_Quotes_UseName[] =
1832 * File name selection pattern
1834 #define zIo_Quotes_UseList (char*)NULL
1836 * Machine/OS name selection pattern
1838 #define apzIo_Quotes_UseMachs (const char**)NULL
1841 * content selection pattern - do fix if pattern found
1843 tSCC zIo_Quotes_UseSelect0[] =
1844 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
1846 #define IO_QUOTES_USE_TEST_CT 1
1847 tTestDesc aIo_Quotes_UseTests[] = {
1848 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
1851 * Fix Command Arguments for Io_Quotes_Use
1853 const char* apzIo_Quotes_UsePatch[] = {
1858 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1860 * Description of Hpux_Maxint fix
1862 #define HPUX_MAXINT_FIXIDX 43
1863 tSCC zHpux_MaxintName[] =
1867 * File name selection pattern
1869 tSCC zHpux_MaxintList[] =
1872 * Machine/OS name selection pattern
1874 #define apzHpux_MaxintMachs (const char**)NULL
1877 * content selection pattern - do fix if pattern found
1879 tSCC zHpux_MaxintSelect0[] =
1880 "^#[ \t]*define[ \t]*MAXINT[ \t]";
1882 #define HPUX_MAXINT_TEST_CT 1
1883 tTestDesc aHpux_MaxintTests[] = {
1884 { TT_EGREP, zHpux_MaxintSelect0, (regex_t*)NULL }, };
1887 * Fix Command Arguments for Hpux_Maxint
1889 const char* apzHpux_MaxintPatch[] = {
1894 "^#[ \t]*define[ \t]*MAXINT[ \t].*",
1897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1899 * Description of Hpux_Systime fix
1901 #define HPUX_SYSTIME_FIXIDX 44
1902 tSCC zHpux_SystimeName[] =
1906 * File name selection pattern
1908 tSCC zHpux_SystimeList[] =
1911 * Machine/OS name selection pattern
1913 #define apzHpux_SystimeMachs (const char**)NULL
1916 * content selection pattern - do fix if pattern found
1918 tSCC zHpux_SystimeSelect0[] =
1919 "^extern struct sigevent;";
1921 #define HPUX_SYSTIME_TEST_CT 1
1922 tTestDesc aHpux_SystimeTests[] = {
1923 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
1926 * Fix Command Arguments for Hpux_Systime
1928 const char* apzHpux_SystimePatch[] = { "sed",
1929 "-e", "s/^extern struct sigevent;/struct sigevent;/",
1932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1934 * Description of Ip_Missing_Semi fix
1936 #define IP_MISSING_SEMI_FIXIDX 45
1937 tSCC zIp_Missing_SemiName[] =
1941 * File name selection pattern
1943 tSCC zIp_Missing_SemiList[] =
1946 * Machine/OS name selection pattern
1948 #define apzIp_Missing_SemiMachs (const char**)NULL
1951 * content selection pattern - do fix if pattern found
1953 tSCC zIp_Missing_SemiSelect0[] =
1956 #define IP_MISSING_SEMI_TEST_CT 1
1957 tTestDesc aIp_Missing_SemiTests[] = {
1958 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
1961 * Fix Command Arguments for Ip_Missing_Semi
1963 const char* apzIp_Missing_SemiPatch[] = { "sed",
1964 "-e", "/^struct/,/^};/s/}$/};/",
1967 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1969 * Description of Irix_Asm_Apostrophe fix
1971 #define IRIX_ASM_APOSTROPHE_FIXIDX 46
1972 tSCC zIrix_Asm_ApostropheName[] =
1973 "irix_asm_apostrophe";
1976 * File name selection pattern
1978 tSCC zIrix_Asm_ApostropheList[] =
1981 * Machine/OS name selection pattern
1983 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
1986 * content selection pattern - do fix if pattern found
1988 tSCC zIrix_Asm_ApostropheSelect0[] =
1989 "^[ \t]*#.*[Ww]e're";
1991 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
1992 tTestDesc aIrix_Asm_ApostropheTests[] = {
1993 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
1996 * Fix Command Arguments for Irix_Asm_Apostrophe
1998 const char* apzIrix_Asm_ApostrophePatch[] = {
2001 "^([ \t]*#.*[Ww]e)'re",
2004 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2006 * Description of Irix_Multiline_Cmnt fix
2008 #define IRIX_MULTILINE_CMNT_FIXIDX 47
2009 tSCC zIrix_Multiline_CmntName[] =
2010 "irix_multiline_cmnt";
2013 * File name selection pattern
2015 tSCC zIrix_Multiline_CmntList[] =
2018 * Machine/OS name selection pattern
2020 #define apzIrix_Multiline_CmntMachs (const char**)NULL
2021 #define IRIX_MULTILINE_CMNT_TEST_CT 0
2022 #define aIrix_Multiline_CmntTests (tTestDesc*)NULL
2025 * Fix Command Arguments for Irix_Multiline_Cmnt
2027 const char* apzIrix_Multiline_CmntPatch[] = { "sed",
2028 "-e", "s@type of the result@type of the result */@",
2029 "-e", "s@of the sizeof@/* of the sizeof@",
2032 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2034 * Description of Isc_Fmod fix
2036 #define ISC_FMOD_FIXIDX 48
2037 tSCC zIsc_FmodName[] =
2041 * File name selection pattern
2043 tSCC zIsc_FmodList[] =
2046 * Machine/OS name selection pattern
2048 #define apzIsc_FmodMachs (const char**)NULL
2051 * content selection pattern - do fix if pattern found
2053 tSCC zIsc_FmodSelect0[] =
2056 #define ISC_FMOD_TEST_CT 1
2057 tTestDesc aIsc_FmodTests[] = {
2058 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
2061 * Fix Command Arguments for Isc_Fmod
2063 const char* apzIsc_FmodPatch[] = {
2065 "fmod(double, double)",
2068 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2070 * Description of Kandr_Concat fix
2072 #define KANDR_CONCAT_FIXIDX 49
2073 tSCC zKandr_ConcatName[] =
2077 * File name selection pattern
2079 tSCC zKandr_ConcatList[] =
2080 "|sparc/asm_linkage.h|sun3/asm_linkage.h|sun3x/asm_linkage.h|sun4/asm_linkage.h|sun4c/asm_linkage.h|sun4m/asm_linkage.h|sun4c/debug/asm_linkage.h|sun4m/debug/asm_linkage.h|arm/as_support.h|arm/mc_type.h|arm/xcb.h|dev/chardefmac.h|dev/ps_irq.h|dev/screen.h|dev/scsi.h|sys/tty.h|Xm.acorn/XmP.h|bsd43/bsd43_.h|";
2082 * Machine/OS name selection pattern
2084 #define apzKandr_ConcatMachs (const char**)NULL
2087 * content selection pattern - do fix if pattern found
2089 tSCC zKandr_ConcatSelect0[] =
2092 #define KANDR_CONCAT_TEST_CT 1
2093 tTestDesc aKandr_ConcatTests[] = {
2094 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
2097 * Fix Command Arguments for Kandr_Concat
2099 const char* apzKandr_ConcatPatch[] = {
2104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2106 * Description of Limits_Ifndefs fix
2108 #define LIMITS_IFNDEFS_FIXIDX 50
2109 tSCC zLimits_IfndefsName[] =
2113 * File name selection pattern
2115 tSCC zLimits_IfndefsList[] =
2116 "|limits.h|sys/limits.h|";
2118 * Machine/OS name selection pattern
2120 #define apzLimits_IfndefsMachs (const char**)NULL
2123 * content bypass pattern - skip fix if pattern found
2125 tSCC zLimits_IfndefsBypass0[] =
2126 "ifndef[ \t]+FLT_MIN";
2128 #define LIMITS_IFNDEFS_TEST_CT 1
2129 tTestDesc aLimits_IfndefsTests[] = {
2130 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2133 * Fix Command Arguments for Limits_Ifndefs
2135 const char* apzLimits_IfndefsPatch[] = {
2139 "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t][^\n\
2143 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2145 * Description of Lynx_Void_Int fix
2147 #define LYNX_VOID_INT_FIXIDX 51
2148 tSCC zLynx_Void_IntName[] =
2152 * File name selection pattern
2154 tSCC zLynx_Void_IntList[] =
2157 * Machine/OS name selection pattern
2159 #define apzLynx_Void_IntMachs (const char**)NULL
2162 * content selection pattern - do fix if pattern found
2164 tSCC zLynx_Void_IntSelect0[] =
2165 "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2167 #define LYNX_VOID_INT_TEST_CT 1
2168 tTestDesc aLynx_Void_IntTests[] = {
2169 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2172 * Fix Command Arguments for Lynx_Void_Int
2174 const char* apzLynx_Void_IntPatch[] = {
2179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2181 * Description of Lynxos_Fcntl_Proto fix
2183 #define LYNXOS_FCNTL_PROTO_FIXIDX 52
2184 tSCC zLynxos_Fcntl_ProtoName[] =
2185 "lynxos_fcntl_proto";
2188 * File name selection pattern
2190 tSCC zLynxos_Fcntl_ProtoList[] =
2193 * Machine/OS name selection pattern
2195 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2198 * content selection pattern - do fix if pattern found
2200 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2201 "fcntl[ \t]*\\(int, int, int\\)";
2203 #define LYNXOS_FCNTL_PROTO_TEST_CT 1
2204 tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2205 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2208 * Fix Command Arguments for Lynxos_Fcntl_Proto
2210 const char* apzLynxos_Fcntl_ProtoPatch[] = {
2213 "(fcntl[ \t]*\\(int, int, )int\\)",
2216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2218 * Description of M88k_Bad_Hypot_Opt fix
2220 #define M88K_BAD_HYPOT_OPT_FIXIDX 53
2221 tSCC zM88k_Bad_Hypot_OptName[] =
2222 "m88k_bad_hypot_opt";
2225 * File name selection pattern
2227 tSCC zM88k_Bad_Hypot_OptList[] =
2230 * Machine/OS name selection pattern
2232 tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
2233 "m88k-motorola-sysv3*",
2234 (const char*)NULL };
2237 * content selection pattern - do fix if pattern found
2239 tSCC zM88k_Bad_Hypot_OptSelect0[] =
2240 "^extern double hypot\\(\\);\n";
2242 #define M88K_BAD_HYPOT_OPT_TEST_CT 1
2243 tTestDesc aM88k_Bad_Hypot_OptTests[] = {
2244 { TT_EGREP, zM88k_Bad_Hypot_OptSelect0, (regex_t*)NULL }, };
2247 * Fix Command Arguments for M88k_Bad_Hypot_Opt
2249 const char* apzM88k_Bad_Hypot_OptPatch[] = {
2251 "%0/* Workaround a stupid Motorola optimization if one\n\
2252 of x or y is 0.0 and the other is negative! */\n\
2254 static __inline__ double fake_hypot (double x, double y)\n\
2256 static __inline__ double fake_hypot (x, y)\n\
2260 \treturn fabs (hypot (x, y));\n\
2262 #define hypot\tfake_hypot\n",
2265 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2267 * Description of M88k_Bad_S_If fix
2269 #define M88K_BAD_S_IF_FIXIDX 54
2270 tSCC zM88k_Bad_S_IfName[] =
2274 * File name selection pattern
2276 tSCC zM88k_Bad_S_IfList[] =
2279 * Machine/OS name selection pattern
2281 tSCC* apzM88k_Bad_S_IfMachs[] = {
2283 (const char*)NULL };
2286 * content selection pattern - do fix if pattern found
2288 tSCC zM88k_Bad_S_IfSelect0[] =
2289 "#define[ \t]+S_IS[A-Z]+\\(m\\)[ \t]+\\(m[ \t]*&";
2291 #define M88K_BAD_S_IF_TEST_CT 1
2292 tTestDesc aM88k_Bad_S_IfTests[] = {
2293 { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
2296 * Fix Command Arguments for M88k_Bad_S_If
2298 const char* apzM88k_Bad_S_IfPatch[] = {
2300 "#define %1(m) (((m) & S_IFMT) == %2)",
2301 "#define[ \t]+(S_IS[A-Z]+)\\(m\\)[ \t]+\\(m[ \t]*&[ \t]*(S_IF[A-Z][A-Z][A-Z]+|0[0-9]+)[ \t]*\\)",
2304 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2306 * Description of M88k_Multi_Incl fix
2308 #define M88K_MULTI_INCL_FIXIDX 55
2309 tSCC zM88k_Multi_InclName[] =
2313 * File name selection pattern
2315 tSCC zM88k_Multi_InclList[] =
2318 * Machine/OS name selection pattern
2320 tSCC* apzM88k_Multi_InclMachs[] = {
2321 "m88k-tektronix-sysv3*",
2322 (const char*)NULL };
2325 * content bypass pattern - skip fix if pattern found
2327 tSCC zM88k_Multi_InclBypass0[] =
2330 #define M88K_MULTI_INCL_TEST_CT 1
2331 tTestDesc aM88k_Multi_InclTests[] = {
2332 { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
2335 * Fix Command Arguments for M88k_Multi_Incl
2337 const char* apzM88k_Multi_InclPatch[] = {
2341 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2343 * Description of Machine_Ansi_H_Va_List fix
2345 #define MACHINE_ANSI_H_VA_LIST_FIXIDX 56
2346 tSCC zMachine_Ansi_H_Va_ListName[] =
2347 "machine_ansi_h_va_list";
2350 * File name selection pattern
2352 tSCC zMachine_Ansi_H_Va_ListList[] =
2355 * Machine/OS name selection pattern
2357 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2360 * content selection pattern - do fix if pattern found
2362 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2366 * content bypass pattern - skip fix if pattern found
2368 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2369 "__builtin_va_list";
2371 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
2372 tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2373 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2374 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2377 * Fix Command Arguments for Machine_Ansi_H_Va_List
2379 const char* apzMachine_Ansi_H_Va_ListPatch[] = { "sed",
2380 "-e", "s/\\(_BSD_VA_LIST_[ \t][ \t]*\\).*$/\\1__builtin_va_list/",
2383 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2385 * Description of Machine_Name fix
2387 #define MACHINE_NAME_FIXIDX 57
2388 tSCC zMachine_NameName[] =
2392 * File name selection pattern
2394 #define zMachine_NameList (char*)NULL
2396 * Machine/OS name selection pattern
2398 #define apzMachine_NameMachs (const char**)NULL
2401 * perform the C function call test
2403 tSCC zMachine_NameFTst0[] = "machine_name";
2405 #define MACHINE_NAME_TEST_CT 1
2406 tTestDesc aMachine_NameTests[] = {
2407 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
2410 * Fix Command Arguments for Machine_Name
2412 const char* apzMachine_NamePatch[] = {
2416 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2418 * Description of Math_Exception fix
2420 #define MATH_EXCEPTION_FIXIDX 58
2421 tSCC zMath_ExceptionName[] =
2425 * File name selection pattern
2427 tSCC zMath_ExceptionList[] =
2430 * Machine/OS name selection pattern
2432 #define apzMath_ExceptionMachs (const char**)NULL
2435 * content selection pattern - do fix if pattern found
2437 tSCC zMath_ExceptionSelect0[] =
2441 * content bypass pattern - skip fix if pattern found
2443 tSCC zMath_ExceptionBypass0[] =
2444 "We have a problem when using C\\+\\+";
2446 #define MATH_EXCEPTION_TEST_CT 2
2447 tTestDesc aMath_ExceptionTests[] = {
2448 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
2449 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
2452 * Fix Command Arguments for Math_Exception
2454 const char* apzMath_ExceptionPatch[] = {
2456 "#ifdef __cplusplus\n\
2457 #define exception __math_exception\n\
2459 "#ifdef __cplusplus\n\
2464 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2466 * Description of Math_Huge_Val_From_Dbl_Max fix
2468 #define MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX 59
2469 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2470 "math_huge_val_from_dbl_max";
2473 * File name selection pattern
2475 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2478 * Machine/OS name selection pattern
2480 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2483 * content selection pattern - do fix if pattern found
2485 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2486 "define[ \t]*HUGE_VAL[ \t]*DBL_MAX";
2489 * content bypass pattern - skip fix if pattern found
2491 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2492 "define[ \t]*DBL_MAX";
2494 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
2495 tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2496 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2497 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2500 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2502 const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2503 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h 2>/dev/null`\n\
2505 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2506 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s/DBL_MAX/'\"$dbl_max_def/\"\n\
2511 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2513 * Description of Math_Huge_Val_Ifndef fix
2515 #define MATH_HUGE_VAL_IFNDEF_FIXIDX 60
2516 tSCC zMath_Huge_Val_IfndefName[] =
2517 "math_huge_val_ifndef";
2520 * File name selection pattern
2522 tSCC zMath_Huge_Val_IfndefList[] =
2525 * Machine/OS name selection pattern
2527 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2530 * content selection pattern - do fix if pattern found
2532 tSCC zMath_Huge_Val_IfndefSelect0[] =
2533 "define[ \t]*HUGE_VAL";
2535 #define MATH_HUGE_VAL_IFNDEF_TEST_CT 1
2536 tTestDesc aMath_Huge_Val_IfndefTests[] = {
2537 { TT_EGREP, zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2540 * Fix Command Arguments for Math_Huge_Val_Ifndef
2542 const char* apzMath_Huge_Val_IfndefPatch[] = { "sed",
2543 "-e", "/define[ \t]HUGE_VAL[ \t]/i\\\n\
2544 #ifndef HUGE_VAL\n",
2545 "-e", "/define[ \t]HUGE_VAL[ \t]/a\\\n\
2549 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2551 * Description of Nested_Motorola fix
2553 #define NESTED_MOTOROLA_FIXIDX 61
2554 tSCC zNested_MotorolaName[] =
2558 * File name selection pattern
2560 tSCC zNested_MotorolaList[] =
2561 "|limits.h|sys/limits.h|";
2563 * Machine/OS name selection pattern
2565 tSCC* apzNested_MotorolaMachs[] = {
2566 "m68k-motorola-sysv*",
2567 (const char*)NULL };
2568 #define NESTED_MOTOROLA_TEST_CT 0
2569 #define aNested_MotorolaTests (tTestDesc*)NULL
2572 * Fix Command Arguments for Nested_Motorola
2574 const char* apzNested_MotorolaPatch[] = { "sed",
2575 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
2576 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
2579 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2581 * Description of Nested_Sys_Limits fix
2583 #define NESTED_SYS_LIMITS_FIXIDX 62
2584 tSCC zNested_Sys_LimitsName[] =
2585 "nested_sys_limits";
2588 * File name selection pattern
2590 tSCC zNested_Sys_LimitsList[] =
2593 * Machine/OS name selection pattern
2595 #define apzNested_Sys_LimitsMachs (const char**)NULL
2598 * content selection pattern - do fix if pattern found
2600 tSCC zNested_Sys_LimitsSelect0[] =
2603 #define NESTED_SYS_LIMITS_TEST_CT 1
2604 tTestDesc aNested_Sys_LimitsTests[] = {
2605 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
2608 * Fix Command Arguments for Nested_Sys_Limits
2610 const char* apzNested_Sys_LimitsPatch[] = { "sed",
2611 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
2612 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
2615 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2617 * Description of Nested_Auth_Des fix
2619 #define NESTED_AUTH_DES_FIXIDX 63
2620 tSCC zNested_Auth_DesName[] =
2624 * File name selection pattern
2626 tSCC zNested_Auth_DesList[] =
2629 * Machine/OS name selection pattern
2631 #define apzNested_Auth_DesMachs (const char**)NULL
2634 * content selection pattern - do fix if pattern found
2636 tSCC zNested_Auth_DesSelect0[] =
2637 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
2639 #define NESTED_AUTH_DES_TEST_CT 1
2640 tTestDesc aNested_Auth_DesTests[] = {
2641 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
2644 * Fix Command Arguments for Nested_Auth_Des
2646 const char* apzNested_Auth_DesPatch[] = {
2651 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2653 * Description of Nested_Ultrix fix
2655 #define NESTED_ULTRIX_FIXIDX 64
2656 tSCC zNested_UltrixName[] =
2660 * File name selection pattern
2662 tSCC zNested_UltrixList[] =
2665 * Machine/OS name selection pattern
2667 #define apzNested_UltrixMachs (const char**)NULL
2668 #define NESTED_ULTRIX_TEST_CT 0
2669 #define aNested_UltrixTests (tTestDesc*)NULL
2672 * Fix Command Arguments for Nested_Ultrix
2674 const char* apzNested_UltrixPatch[] = { "sed",
2675 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
2678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2680 * Description of News_Os_Recursion fix
2682 #define NEWS_OS_RECURSION_FIXIDX 65
2683 tSCC zNews_Os_RecursionName[] =
2684 "news_os_recursion";
2687 * File name selection pattern
2689 tSCC zNews_Os_RecursionList[] =
2692 * Machine/OS name selection pattern
2694 #define apzNews_Os_RecursionMachs (const char**)NULL
2697 * content selection pattern - do fix if pattern found
2699 tSCC zNews_Os_RecursionSelect0[] =
2700 "#include <stdlib.h>";
2702 #define NEWS_OS_RECURSION_TEST_CT 1
2703 tTestDesc aNews_Os_RecursionTests[] = {
2704 { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
2707 * Fix Command Arguments for News_Os_Recursion
2709 const char* apzNews_Os_RecursionPatch[] = { "sed",
2710 "-e", "/^#include <stdlib.h>/i\\\n\
2711 #ifdef BOGUS_RECURSION\n",
2712 "-e", "/^#include <stdlib.h>/a\\\n\
2716 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2718 * Description of Next_Math_Prefix fix
2720 #define NEXT_MATH_PREFIX_FIXIDX 66
2721 tSCC zNext_Math_PrefixName[] =
2725 * File name selection pattern
2727 tSCC zNext_Math_PrefixList[] =
2730 * Machine/OS name selection pattern
2732 #define apzNext_Math_PrefixMachs (const char**)NULL
2735 * content selection pattern - do fix if pattern found
2737 tSCC zNext_Math_PrefixSelect0[] =
2738 "^extern.*double.*__const__.*";
2740 #define NEXT_MATH_PREFIX_TEST_CT 1
2741 tTestDesc aNext_Math_PrefixTests[] = {
2742 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
2745 * Fix Command Arguments for Next_Math_Prefix
2747 const char* apzNext_Math_PrefixPatch[] = { "sed",
2748 "-e", "/^extern.*double.*__const__.*sqrt(/s/__const__//",
2749 "-e", "/^extern.*double.*__const__.*fabs(/s/__const__//",
2750 "-e", "/^extern.*double.*__const__.*cos(/s/__const__//",
2751 "-e", "/^extern.*double.*__const__.*hypot(/s/__const__//",
2752 "-e", "/^extern.*double.*__const__.*sin(/s/__const__//",
2755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2757 * Description of Next_Template fix
2759 #define NEXT_TEMPLATE_FIXIDX 67
2760 tSCC zNext_TemplateName[] =
2764 * File name selection pattern
2766 tSCC zNext_TemplateList[] =
2769 * Machine/OS name selection pattern
2771 #define apzNext_TemplateMachs (const char**)NULL
2774 * content selection pattern - do fix if pattern found
2776 tSCC zNext_TemplateSelect0[] =
2779 #define NEXT_TEMPLATE_TEST_CT 1
2780 tTestDesc aNext_TemplateTests[] = {
2781 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
2784 * Fix Command Arguments for Next_Template
2786 const char* apzNext_TemplatePatch[] = { "sed",
2787 "-e", "/\\(.*template\\)/s/template//",
2788 "-e", "/extern.*volatile.*void.*abort/s/volatile//",
2791 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2793 * Description of Next_Volitile fix
2795 #define NEXT_VOLITILE_FIXIDX 68
2796 tSCC zNext_VolitileName[] =
2800 * File name selection pattern
2802 tSCC zNext_VolitileList[] =
2805 * Machine/OS name selection pattern
2807 #define apzNext_VolitileMachs (const char**)NULL
2810 * content selection pattern - do fix if pattern found
2812 tSCC zNext_VolitileSelect0[] =
2815 #define NEXT_VOLITILE_TEST_CT 1
2816 tTestDesc aNext_VolitileTests[] = {
2817 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
2820 * Fix Command Arguments for Next_Volitile
2822 const char* apzNext_VolitilePatch[] = { "sed",
2823 "-e", "/extern.*volatile.*void.*exit/s/volatile//",
2824 "-e", "/extern.*volatile.*void.*abort/s/volatile//",
2827 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2829 * Description of Next_Wait_Union fix
2831 #define NEXT_WAIT_UNION_FIXIDX 69
2832 tSCC zNext_Wait_UnionName[] =
2836 * File name selection pattern
2838 tSCC zNext_Wait_UnionList[] =
2841 * Machine/OS name selection pattern
2843 #define apzNext_Wait_UnionMachs (const char**)NULL
2846 * content selection pattern - do fix if pattern found
2848 tSCC zNext_Wait_UnionSelect0[] =
2849 "wait\\(union wait";
2851 #define NEXT_WAIT_UNION_TEST_CT 1
2852 tTestDesc aNext_Wait_UnionTests[] = {
2853 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
2856 * Fix Command Arguments for Next_Wait_Union
2858 const char* apzNext_Wait_UnionPatch[] = { "sed",
2859 "-e", "s@wait(union wait@wait(void@",
2862 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2864 * Description of Nodeent_Syntax fix
2866 #define NODEENT_SYNTAX_FIXIDX 70
2867 tSCC zNodeent_SyntaxName[] =
2871 * File name selection pattern
2873 tSCC zNodeent_SyntaxList[] =
2874 "|netdnet/dnetdb.h|";
2876 * Machine/OS name selection pattern
2878 #define apzNodeent_SyntaxMachs (const char**)NULL
2879 #define NODEENT_SYNTAX_TEST_CT 0
2880 #define aNodeent_SyntaxTests (tTestDesc*)NULL
2883 * Fix Command Arguments for Nodeent_Syntax
2885 const char* apzNodeent_SyntaxPatch[] = { "sed",
2886 "-e", "s/char.*na_addr *$/char *na_addr;/",
2889 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2891 * Description of Osf_Namespace_A fix
2893 #define OSF_NAMESPACE_A_FIXIDX 71
2894 tSCC zOsf_Namespace_AName[] =
2898 * File name selection pattern
2900 tSCC zOsf_Namespace_AList[] =
2901 "|reg_types.h|sys/lc_core.h|";
2903 * Machine/OS name selection pattern
2905 #define apzOsf_Namespace_AMachs (const char**)NULL
2908 * perform the 'test' shell command - do fix on success
2910 tSCC zOsf_Namespace_ATest0[] =
2912 tSCC zOsf_Namespace_ATest1[] =
2913 " -r sys/lc_core.h";
2914 tSCC zOsf_Namespace_ATest2[] =
2915 " -n \"`grep '} regex_t;' reg_types.h`\"";
2916 tSCC zOsf_Namespace_ATest3[] =
2917 " -z \"`grep __regex_t regex.h`\"";
2919 #define OSF_NAMESPACE_A_TEST_CT 4
2920 tTestDesc aOsf_Namespace_ATests[] = {
2921 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
2922 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
2923 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
2924 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
2927 * Fix Command Arguments for Osf_Namespace_A
2929 const char* apzOsf_Namespace_APatch[] = { "sed",
2930 "-e", "s/regex_t/__regex_t/g",
2931 "-e", "s/regoff_t/__regoff_t/g",
2932 "-e", "s/regmatch_t/__regmatch_t/g",
2935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2937 * Description of Osf_Namespace_B fix
2939 #define OSF_NAMESPACE_B_FIXIDX 72
2940 tSCC zOsf_Namespace_BName[] =
2944 * File name selection pattern
2946 tSCC zOsf_Namespace_BList[] =
2949 * Machine/OS name selection pattern
2951 #define apzOsf_Namespace_BMachs (const char**)NULL
2954 * perform the 'test' shell command - do fix on success
2956 tSCC zOsf_Namespace_BTest0[] =
2958 tSCC zOsf_Namespace_BTest1[] =
2959 " -r sys/lc_core.h";
2960 tSCC zOsf_Namespace_BTest2[] =
2961 " -n \"`grep '} regex_t;' reg_types.h`\"";
2962 tSCC zOsf_Namespace_BTest3[] =
2963 " -z \"`grep __regex_t regex.h`\"";
2965 #define OSF_NAMESPACE_B_TEST_CT 4
2966 tTestDesc aOsf_Namespace_BTests[] = {
2967 { TT_TEST, zOsf_Namespace_BTest0, 0 /* unused */ },
2968 { TT_TEST, zOsf_Namespace_BTest1, 0 /* unused */ },
2969 { TT_TEST, zOsf_Namespace_BTest2, 0 /* unused */ },
2970 { TT_TEST, zOsf_Namespace_BTest3, 0 /* unused */ }, };
2973 * Fix Command Arguments for Osf_Namespace_B
2975 const char* apzOsf_Namespace_BPatch[] = { "sed",
2976 "-e", "/#include <reg_types.h>/a\\\n\
2977 typedef __regex_t\tregex_t;\\\n\
2978 typedef __regoff_t\tregoff_t;\\\n\
2979 typedef __regmatch_t\tregmatch_t;\n",
2982 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2984 * Description of Pthread_Page_Size fix
2986 #define PTHREAD_PAGE_SIZE_FIXIDX 73
2987 tSCC zPthread_Page_SizeName[] =
2988 "pthread_page_size";
2991 * File name selection pattern
2993 tSCC zPthread_Page_SizeList[] =
2996 * Machine/OS name selection pattern
2998 #define apzPthread_Page_SizeMachs (const char**)NULL
3001 * content selection pattern - do fix if pattern found
3003 tSCC zPthread_Page_SizeSelect0[] =
3006 #define PTHREAD_PAGE_SIZE_TEST_CT 1
3007 tTestDesc aPthread_Page_SizeTests[] = {
3008 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3011 * Fix Command Arguments for Pthread_Page_Size
3013 const char* apzPthread_Page_SizePatch[] = { "sed",
3014 "-e", "s/^int __page_size/extern int __page_size/",
3017 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3019 * Description of Read_Ret_Type fix
3021 #define READ_RET_TYPE_FIXIDX 74
3022 tSCC zRead_Ret_TypeName[] =
3026 * File name selection pattern
3028 tSCC zRead_Ret_TypeList[] =
3031 * Machine/OS name selection pattern
3033 #define apzRead_Ret_TypeMachs (const char**)NULL
3036 * content selection pattern - do fix if pattern found
3038 tSCC zRead_Ret_TypeSelect0[] =
3039 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3041 #define READ_RET_TYPE_TEST_CT 1
3042 tTestDesc aRead_Ret_TypeTests[] = {
3043 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3046 * Fix Command Arguments for Read_Ret_Type
3048 const char* apzRead_Ret_TypePatch[] = { "sed",
3049 "-e", "s/^\\(extern int\tfclose(), fflush()\\), \\(fread(), fwrite()\\)\\(.*\\)$/extern unsigned int\t\\2;\\\n\
3053 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3055 * Description of Rs6000_Double fix
3057 #define RS6000_DOUBLE_FIXIDX 75
3058 tSCC zRs6000_DoubleName[] =
3062 * File name selection pattern
3064 tSCC zRs6000_DoubleList[] =
3067 * Machine/OS name selection pattern
3069 #define apzRs6000_DoubleMachs (const char**)NULL
3072 * content selection pattern - do fix if pattern found
3074 tSCC zRs6000_DoubleSelect0[] =
3075 "[^a-zA-Z_]class\\(";
3077 #define RS6000_DOUBLE_TEST_CT 1
3078 tTestDesc aRs6000_DoubleTests[] = {
3079 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3082 * Fix Command Arguments for Rs6000_Double
3084 const char* apzRs6000_DoublePatch[] = { "sed",
3085 "-e", "/class[(]/i\\\n\
3086 #ifndef __cplusplus\n",
3087 "-e", "/class[(]/a\\\n\
3091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3093 * Description of Rs6000_Fchmod fix
3095 #define RS6000_FCHMOD_FIXIDX 76
3096 tSCC zRs6000_FchmodName[] =
3100 * File name selection pattern
3102 tSCC zRs6000_FchmodList[] =
3105 * Machine/OS name selection pattern
3107 #define apzRs6000_FchmodMachs (const char**)NULL
3110 * content selection pattern - do fix if pattern found
3112 tSCC zRs6000_FchmodSelect0[] =
3115 #define RS6000_FCHMOD_TEST_CT 1
3116 tTestDesc aRs6000_FchmodTests[] = {
3117 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3120 * Fix Command Arguments for Rs6000_Fchmod
3122 const char* apzRs6000_FchmodPatch[] = { "sed",
3123 "-e", "s/fchmod(char \\*/fchmod(int/",
3126 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3128 * Description of Rs6000_Param fix
3130 #define RS6000_PARAM_FIXIDX 77
3131 tSCC zRs6000_ParamName[] =
3135 * File name selection pattern
3137 tSCC zRs6000_ParamList[] =
3138 "|stdio.h|unistd.h|";
3140 * Machine/OS name selection pattern
3142 #define apzRs6000_ParamMachs (const char**)NULL
3145 * content selection pattern - do fix if pattern found
3147 tSCC zRs6000_ParamSelect0[] =
3150 #define RS6000_PARAM_TEST_CT 1
3151 tTestDesc aRs6000_ParamTests[] = {
3152 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
3155 * Fix Command Arguments for Rs6000_Param
3157 const char* apzRs6000_ParamPatch[] = { "sed",
3158 "-e", "s@rename(const char \\*old, const char \\*new)@rename(const char *_old, const char *_new)@",
3161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3163 * Description of Sco_Static_Func fix
3165 #define SCO_STATIC_FUNC_FIXIDX 78
3166 tSCC zSco_Static_FuncName[] =
3170 * File name selection pattern
3172 tSCC zSco_Static_FuncList[] =
3175 * Machine/OS name selection pattern
3177 tSCC* apzSco_Static_FuncMachs[] = {
3179 (const char*)NULL };
3182 * content selection pattern - do fix if pattern found
3184 tSCC zSco_Static_FuncSelect0[] =
3187 #define SCO_STATIC_FUNC_TEST_CT 1
3188 tTestDesc aSco_Static_FuncTests[] = {
3189 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3192 * Fix Command Arguments for Sco_Static_Func
3194 const char* apzSco_Static_FuncPatch[] = { "sed",
3195 "-e", "/^static int/i\\\n\
3196 #if __cplusplus\\\n\
3198 #endif /* __cplusplus */",
3200 #if __cplusplus\\\n\
3202 #endif /* __cplusplus */",
3205 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3207 * Description of Sco_Strict_Ansi fix
3209 #define SCO_STRICT_ANSI_FIXIDX 79
3210 tSCC zSco_Strict_AnsiName[] =
3214 * File name selection pattern
3216 #define zSco_Strict_AnsiList (char*)NULL
3218 * Machine/OS name selection pattern
3220 tSCC* apzSco_Strict_AnsiMachs[] = {
3222 (const char*)NULL };
3225 * content selection pattern - do fix if pattern found
3227 tSCC zSco_Strict_AnsiSelect0[] =
3228 "^[ \t]*#[ \t]*if.*!__STDC__";
3230 #define SCO_STRICT_ANSI_TEST_CT 1
3231 tTestDesc aSco_Strict_AnsiTests[] = {
3232 { TT_EGREP, zSco_Strict_AnsiSelect0, (regex_t*)NULL }, };
3235 * Fix Command Arguments for Sco_Strict_Ansi
3237 const char* apzSco_Strict_AnsiPatch[] = { "sed",
3238 "-e", "s/!__STDC__/!defined(__STRICT_ANSI__)/g",
3241 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3243 * Description of Sco_Utime fix
3245 #define SCO_UTIME_FIXIDX 80
3246 tSCC zSco_UtimeName[] =
3250 * File name selection pattern
3252 tSCC zSco_UtimeList[] =
3255 * Machine/OS name selection pattern
3257 tSCC* apzSco_UtimeMachs[] = {
3259 (const char*)NULL };
3262 * content selection pattern - do fix if pattern found
3264 tSCC zSco_UtimeSelect0[] =
3265 "(const char *, struct utimbuf *);";
3267 #define SCO_UTIME_TEST_CT 1
3268 tTestDesc aSco_UtimeTests[] = {
3269 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
3272 * Fix Command Arguments for Sco_Utime
3274 const char* apzSco_UtimePatch[] = { "sed",
3275 "-e", "s/(const char \\*, struct utimbuf \\*);/(const char *, const struct utimbuf *);/",
3278 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3280 * Description of Sony_Include fix
3282 #define SONY_INCLUDE_FIXIDX 81
3283 tSCC zSony_IncludeName[] =
3287 * File name selection pattern
3289 tSCC zSony_IncludeList[] =
3290 "|machine/machparam.h|";
3292 * Machine/OS name selection pattern
3294 #define apzSony_IncludeMachs (const char**)NULL
3297 * content selection pattern - do fix if pattern found
3299 tSCC zSony_IncludeSelect0[] =
3300 "\"\\.\\./machine/endian.h\"";
3302 #define SONY_INCLUDE_TEST_CT 1
3303 tTestDesc aSony_IncludeTests[] = {
3304 { TT_EGREP, zSony_IncludeSelect0, (regex_t*)NULL }, };
3307 * Fix Command Arguments for Sony_Include
3309 const char* apzSony_IncludePatch[] = { "sed",
3310 "-e", "s@\"../machine/endian.h\"@<machine/endian.h>@",
3313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3315 * Description of Statsswtch fix
3317 #define STATSSWTCH_FIXIDX 82
3318 tSCC zStatsswtchName[] =
3322 * File name selection pattern
3324 tSCC zStatsswtchList[] =
3327 * Machine/OS name selection pattern
3329 #define apzStatsswtchMachs (const char**)NULL
3332 * content selection pattern - do fix if pattern found
3334 tSCC zStatsswtchSelect0[] =
3337 #define STATSSWTCH_TEST_CT 1
3338 tTestDesc aStatsswtchTests[] = {
3339 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
3342 * Fix Command Arguments for Statsswtch
3344 const char* apzStatsswtchPatch[] = { "sed",
3345 "-e", "s/boottime$/boottime;/",
3348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3350 * Description of Stdio_Stdarg_H fix
3352 #define STDIO_STDARG_H_FIXIDX 83
3353 tSCC zStdio_Stdarg_HName[] =
3357 * File name selection pattern
3359 tSCC zStdio_Stdarg_HList[] =
3362 * Machine/OS name selection pattern
3364 #define apzStdio_Stdarg_HMachs (const char**)NULL
3367 * content bypass pattern - skip fix if pattern found
3369 tSCC zStdio_Stdarg_HBypass0[] =
3370 "include.*(stdarg.h|machine/ansi.h)";
3372 #define STDIO_STDARG_H_TEST_CT 1
3373 tTestDesc aStdio_Stdarg_HTests[] = {
3374 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3377 * Fix Command Arguments for Stdio_Stdarg_H
3379 const char* apzStdio_Stdarg_HPatch[] = {
3381 "#define __need___va_list\n\
3382 #include <stdarg.h>\n",
3385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3387 * Description of Stdio_Va_List fix
3389 #define STDIO_VA_LIST_FIXIDX 84
3390 tSCC zStdio_Va_ListName[] =
3394 * File name selection pattern
3396 tSCC zStdio_Va_ListList[] =
3399 * Machine/OS name selection pattern
3401 #define apzStdio_Va_ListMachs (const char**)NULL
3404 * content bypass pattern - skip fix if pattern found
3406 tSCC zStdio_Va_ListBypass0[] =
3407 "__gnuc_va_list|_BSD_VA_LIST_";
3409 #define STDIO_VA_LIST_TEST_CT 1
3410 tTestDesc aStdio_Va_ListTests[] = {
3411 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3414 * Fix Command Arguments for Stdio_Va_List
3416 const char* apzStdio_Va_ListPatch[] = { "sed",
3417 "-e", "s@ va_list @ __gnuc_va_list @\n\
3418 s@ va_list)@ __gnuc_va_list)@\n\
3419 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3420 s@ va_list@ __not_va_list__@\n\
3421 s@\\*va_list@*__not_va_list__@\n\
3422 s@ __va_list)@ __gnuc_va_list)@\n\
3423 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3424 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3425 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3426 s@VA_LIST@DUMMY_VA_LIST@\n\
3427 s@_Va_LIST@_VA_LIST@",
3430 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3432 * Description of Struct_File fix
3434 #define STRUCT_FILE_FIXIDX 85
3435 tSCC zStruct_FileName[] =
3439 * File name selection pattern
3441 tSCC zStruct_FileList[] =
3444 * Machine/OS name selection pattern
3446 #define apzStruct_FileMachs (const char**)NULL
3449 * content selection pattern - do fix if pattern found
3451 tSCC zStruct_FileSelect0[] =
3452 "^.*xdrstdio_create.*struct __file_s";
3454 #define STRUCT_FILE_TEST_CT 1
3455 tTestDesc aStruct_FileTests[] = {
3456 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
3459 * Fix Command Arguments for Struct_File
3461 const char* apzStruct_FilePatch[] = {
3463 "struct __file_s;\n\
3467 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3469 * Description of Struct_Sockaddr fix
3471 #define STRUCT_SOCKADDR_FIXIDX 86
3472 tSCC zStruct_SockaddrName[] =
3476 * File name selection pattern
3478 tSCC zStruct_SockaddrList[] =
3481 * Machine/OS name selection pattern
3483 #define apzStruct_SockaddrMachs (const char**)NULL
3486 * content selection pattern - do fix if pattern found
3488 tSCC zStruct_SockaddrSelect0[] =
3489 "^.*authdes_create.*struct sockaddr";
3492 * content bypass pattern - skip fix if pattern found
3494 tSCC zStruct_SockaddrBypass0[] =
3497 #define STRUCT_SOCKADDR_TEST_CT 2
3498 tTestDesc aStruct_SockaddrTests[] = {
3499 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
3500 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
3503 * Fix Command Arguments for Struct_Sockaddr
3505 const char* apzStruct_SockaddrPatch[] = {
3507 "struct sockaddr;\n\
3511 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3513 * Description of Sun_Auth_Proto fix
3515 #define SUN_AUTH_PROTO_FIXIDX 87
3516 tSCC zSun_Auth_ProtoName[] =
3520 * File name selection pattern
3522 tSCC zSun_Auth_ProtoList[] =
3523 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
3525 * Machine/OS name selection pattern
3527 #define apzSun_Auth_ProtoMachs (const char**)NULL
3530 * content selection pattern - do fix if pattern found
3532 tSCC zSun_Auth_ProtoSelect0[] =
3533 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
3535 #define SUN_AUTH_PROTO_TEST_CT 1
3536 tTestDesc aSun_Auth_ProtoTests[] = {
3537 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
3540 * Fix Command Arguments for Sun_Auth_Proto
3542 const char* apzSun_Auth_ProtoPatch[] = { "sed",
3543 "-e", "s/^\\(.*(\\*[a-z][a-z_]*)(\\)\\();.*\\)/\\\n\
3544 #ifdef __cplusplus\\\n\
3551 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3553 * Description of Sun_Bogus_Ifdef fix
3555 #define SUN_BOGUS_IFDEF_FIXIDX 88
3556 tSCC zSun_Bogus_IfdefName[] =
3560 * File name selection pattern
3562 tSCC zSun_Bogus_IfdefList[] =
3563 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
3565 * Machine/OS name selection pattern
3567 #define apzSun_Bogus_IfdefMachs (const char**)NULL
3570 * content selection pattern - do fix if pattern found
3572 tSCC zSun_Bogus_IfdefSelect0[] =
3573 "#ifdef __i386__ || __vax__";
3575 #define SUN_BOGUS_IFDEF_TEST_CT 1
3576 tTestDesc aSun_Bogus_IfdefTests[] = {
3577 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
3580 * Fix Command Arguments for Sun_Bogus_Ifdef
3582 const char* apzSun_Bogus_IfdefPatch[] = { "sed",
3583 "-e", "s/\\#ifdef __i386__ || __vax__/\\#if __i386__ || __vax__/g",
3586 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3588 * Description of Sun_Bogus_Ifdef_Sun4c fix
3590 #define SUN_BOGUS_IFDEF_SUN4C_FIXIDX 89
3591 tSCC zSun_Bogus_Ifdef_Sun4cName[] =
3592 "sun_bogus_ifdef_sun4c";
3595 * File name selection pattern
3597 tSCC zSun_Bogus_Ifdef_Sun4cList[] =
3600 * Machine/OS name selection pattern
3602 #define apzSun_Bogus_Ifdef_Sun4cMachs (const char**)NULL
3605 * content selection pattern - do fix if pattern found
3607 tSCC zSun_Bogus_Ifdef_Sun4cSelect0[] =
3608 "#ifdef __i386__ || __sun4c__";
3610 #define SUN_BOGUS_IFDEF_SUN4C_TEST_CT 1
3611 tTestDesc aSun_Bogus_Ifdef_Sun4cTests[] = {
3612 { TT_EGREP, zSun_Bogus_Ifdef_Sun4cSelect0, (regex_t*)NULL }, };
3615 * Fix Command Arguments for Sun_Bogus_Ifdef_Sun4c
3617 const char* apzSun_Bogus_Ifdef_Sun4cPatch[] = { "sed",
3618 "-e", "s/\\#ifdef __i386__ || __sun4c__/\\#if __i386__ || __sun4c__/g",
3621 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3623 * Description of Sun_Catmacro fix
3625 #define SUN_CATMACRO_FIXIDX 90
3626 tSCC zSun_CatmacroName[] =
3630 * File name selection pattern
3632 tSCC zSun_CatmacroList[] =
3633 "|pixrect/memvar.h|";
3635 * Machine/OS name selection pattern
3637 #define apzSun_CatmacroMachs (const char**)NULL
3640 * content selection pattern - do fix if pattern found
3642 tSCC zSun_CatmacroSelect0[] =
3643 "^#define[ \t]+CAT\\(a,b\\)";
3645 #define SUN_CATMACRO_TEST_CT 1
3646 tTestDesc aSun_CatmacroTests[] = {
3647 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
3650 * Fix Command Arguments for Sun_Catmacro
3652 const char* apzSun_CatmacroPatch[] = { "sed",
3653 "-e", "/^#define[ \t]CAT(a,b)/ i\\\n\
3654 #ifdef __STDC__ \\\n\
3655 #define CAT(a,b) a##b\\\n\
3657 "-e", "/^#define[ \t]CAT(a,b)/ a\\\n\
3661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3663 * Description of Sun_Malloc fix
3665 #define SUN_MALLOC_FIXIDX 91
3666 tSCC zSun_MallocName[] =
3670 * File name selection pattern
3672 tSCC zSun_MallocList[] =
3675 * Machine/OS name selection pattern
3677 #define apzSun_MallocMachs (const char**)NULL
3678 #define SUN_MALLOC_TEST_CT 0
3679 #define aSun_MallocTests (tTestDesc*)NULL
3682 * Fix Command Arguments for Sun_Malloc
3684 const char* apzSun_MallocPatch[] = { "sed",
3685 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
3686 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
3687 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
3688 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
3691 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3693 * Description of Sun_Rusers_Semi fix
3695 #define SUN_RUSERS_SEMI_FIXIDX 92
3696 tSCC zSun_Rusers_SemiName[] =
3700 * File name selection pattern
3702 tSCC zSun_Rusers_SemiList[] =
3703 "|rpcsvc/rusers.h|";
3705 * Machine/OS name selection pattern
3707 #define apzSun_Rusers_SemiMachs (const char**)NULL
3710 * content selection pattern - do fix if pattern found
3712 tSCC zSun_Rusers_SemiSelect0[] =
3715 #define SUN_RUSERS_SEMI_TEST_CT 1
3716 tTestDesc aSun_Rusers_SemiTests[] = {
3717 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
3720 * Fix Command Arguments for Sun_Rusers_Semi
3722 const char* apzSun_Rusers_SemiPatch[] = { "sed",
3723 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
3726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3728 * Description of Sun_Signal fix
3730 #define SUN_SIGNAL_FIXIDX 93
3731 tSCC zSun_SignalName[] =
3735 * File name selection pattern
3737 tSCC zSun_SignalList[] =
3738 "|sys/signal.h|signal.h|";
3740 * Machine/OS name selection pattern
3742 #define apzSun_SignalMachs (const char**)NULL
3745 * content selection pattern - do fix if pattern found
3747 tSCC zSun_SignalSelect0[] =
3748 "^void\t\\(\\*signal\\(\\)\\)\\(\\);";
3750 #define SUN_SIGNAL_TEST_CT 1
3751 tTestDesc aSun_SignalTests[] = {
3752 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
3755 * Fix Command Arguments for Sun_Signal
3757 const char* apzSun_SignalPatch[] = { "sed",
3758 "-e", "/^void\t(\\*signal())();$/i\\\n\
3759 #ifdef __cplusplus\\\n\
3760 void\t(*signal(...))(...);\\\n\
3762 "-e", "/^void\t(\\*signal())();$/a\\\n\
3766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3768 * Description of Sunos_Matherr_Decl fix
3770 #define SUNOS_MATHERR_DECL_FIXIDX 94
3771 tSCC zSunos_Matherr_DeclName[] =
3772 "sunos_matherr_decl";
3775 * File name selection pattern
3777 tSCC zSunos_Matherr_DeclList[] =
3780 * Machine/OS name selection pattern
3782 #define apzSunos_Matherr_DeclMachs (const char**)NULL
3785 * content bypass pattern - skip fix if pattern found
3787 tSCC zSunos_Matherr_DeclBypass0[] =
3788 "matherr.*struct exception";
3790 #define SUNOS_MATHERR_DECL_TEST_CT 1
3791 tTestDesc aSunos_Matherr_DeclTests[] = {
3792 { TT_NEGREP, zSunos_Matherr_DeclBypass0, (regex_t*)NULL }, };
3795 * Fix Command Arguments for Sunos_Matherr_Decl
3797 const char* apzSunos_Matherr_DeclPatch[] = { "sed",
3798 "-e", "/^struct exception/,$b",
3799 "-e", "/matherr/i\\\n\
3800 struct exception;\n",
3803 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3805 * Description of Sunos_Strlen fix
3807 #define SUNOS_STRLEN_FIXIDX 95
3808 tSCC zSunos_StrlenName[] =
3812 * File name selection pattern
3814 tSCC zSunos_StrlenList[] =
3817 * Machine/OS name selection pattern
3819 #define apzSunos_StrlenMachs (const char**)NULL
3822 * content selection pattern - do fix if pattern found
3824 tSCC zSunos_StrlenSelect0[] =
3827 #define SUNOS_STRLEN_TEST_CT 1
3828 tTestDesc aSunos_StrlenTests[] = {
3829 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
3832 * Fix Command Arguments for Sunos_Strlen
3834 const char* apzSunos_StrlenPatch[] = { "sed",
3835 "-e", "s/int[ \t]*strlen();/__SIZE_TYPE__ strlen();/",
3838 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3840 * Description of Svr4_Getcwd fix
3842 #define SVR4_GETCWD_FIXIDX 96
3843 tSCC zSvr4_GetcwdName[] =
3847 * File name selection pattern
3849 tSCC zSvr4_GetcwdList[] =
3850 "|stdlib.h|unistd.h|prototypes.h|";
3852 * Machine/OS name selection pattern
3854 #define apzSvr4_GetcwdMachs (const char**)NULL
3857 * content selection pattern - do fix if pattern found
3859 tSCC zSvr4_GetcwdSelect0[] =
3860 "getcwd\\(char \\*, int\\)";
3862 #define SVR4_GETCWD_TEST_CT 1
3863 tTestDesc aSvr4_GetcwdTests[] = {
3864 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
3867 * Fix Command Arguments for Svr4_Getcwd
3869 const char* apzSvr4_GetcwdPatch[] = { "sed",
3870 "-e", "s/getcwd(char \\*, int)/getcwd(char *, size_t)/",
3873 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3875 * Description of Svr4_Profil fix
3877 #define SVR4_PROFIL_FIXIDX 97
3878 tSCC zSvr4_ProfilName[] =
3882 * File name selection pattern
3884 tSCC zSvr4_ProfilList[] =
3885 "|stdlib.h|unistd.h|";
3887 * Machine/OS name selection pattern
3889 #define apzSvr4_ProfilMachs (const char**)NULL
3890 #define SVR4_PROFIL_TEST_CT 0
3891 #define aSvr4_ProfilTests (tTestDesc*)NULL
3894 * Fix Command Arguments for Svr4_Profil
3896 const char* apzSvr4_ProfilPatch[] = { "sed",
3897 "-e", "s/profil(unsigned short \\*, unsigned int, unsigned int, unsigned int)/profil(unsigned short *, size_t, int, unsigned)/",
3900 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3902 * Description of Systypes fix
3904 #define SYSTYPES_FIXIDX 98
3905 tSCC zSystypesName[] =
3909 * File name selection pattern
3911 tSCC zSystypesList[] =
3912 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
3914 * Machine/OS name selection pattern
3916 #define apzSystypesMachs (const char**)NULL
3919 * content selection pattern - do fix if pattern found
3921 tSCC zSystypesSelect0[] =
3922 "typedef[ \t]+[a-z_][ \ta-z_]*[ \t](size|ptrdiff|wchar)_t";
3924 #define SYSTYPES_TEST_CT 1
3925 tTestDesc aSystypesTests[] = {
3926 { TT_EGREP, zSystypesSelect0, (regex_t*)NULL }, };
3929 * Fix Command Arguments for Systypes
3931 const char* apzSystypesPatch[] = { "sed",
3932 "-e", "/^[ \t]*\\*[ \t]*typedef unsigned int size_t;/N",
3933 "-e", "s/^\\([ \t]*\\*[ \t]*typedef unsigned int size_t;\\n[ \t]*\\*\\/\\)/\\1\\\n\
3934 #ifndef __SIZE_TYPE__\\\n\
3935 #define __SIZE_TYPE__ long unsigned int\\\n\
3937 typedef __SIZE_TYPE__ size_t;\\\n\
3939 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/i\\\n\
3940 #ifndef __SIZE_TYPE__\\\n\
3941 #define __SIZE_TYPE__ long unsigned int\\\n\
3943 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/typedef __SIZE_TYPE__ size_t/",
3944 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/i\\\n\
3945 #ifndef __PTRDIFF_TYPE__\\\n\
3946 #define __PTRDIFF_TYPE__ long int\\\n\
3948 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/typedef __PTRDIFF_TYPE__ ptrdiff_t/",
3949 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/i\\\n\
3950 #ifndef __WCHAR_TYPE__\\\n\
3951 #define __WCHAR_TYPE__ int\\\n\
3953 #ifndef __cplusplus\n",
3954 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/a\\\n\
3956 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/typedef __WCHAR_TYPE__ wchar_t/",
3959 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3961 * Description of Systypes_Stdlib_Size_T fix
3963 #define SYSTYPES_STDLIB_SIZE_T_FIXIDX 99
3964 tSCC zSystypes_Stdlib_Size_TName[] =
3965 "systypes_stdlib_size_t";
3968 * File name selection pattern
3970 tSCC zSystypes_Stdlib_Size_TList[] =
3971 "|sys/types.h|stdlib.h|";
3973 * Machine/OS name selection pattern
3975 #define apzSystypes_Stdlib_Size_TMachs (const char**)NULL
3978 * content selection pattern - do fix if pattern found
3980 tSCC zSystypes_Stdlib_Size_TSelect0[] =
3981 "typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t";
3984 * content bypass pattern - skip fix if pattern found
3986 tSCC zSystypes_Stdlib_Size_TBypass0[] =
3987 "_(GCC|BSD)_SIZE_T";
3989 #define SYSTYPES_STDLIB_SIZE_T_TEST_CT 2
3990 tTestDesc aSystypes_Stdlib_Size_TTests[] = {
3991 { TT_NEGREP, zSystypes_Stdlib_Size_TBypass0, (regex_t*)NULL },
3992 { TT_EGREP, zSystypes_Stdlib_Size_TSelect0, (regex_t*)NULL }, };
3995 * Fix Command Arguments for Systypes_Stdlib_Size_T
3997 const char* apzSystypes_Stdlib_Size_TPatch[] = { "sed",
3998 "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/i\\\n\
3999 #ifndef _GCC_SIZE_T\\\n\
4000 #define _GCC_SIZE_T\n",
4001 "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/a\\\n\
4005 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4007 * Description of Sysv68_String fix
4009 #define SYSV68_STRING_FIXIDX 100
4010 tSCC zSysv68_StringName[] =
4014 * File name selection pattern
4016 tSCC zSysv68_StringList[] =
4019 * Machine/OS name selection pattern
4021 #define apzSysv68_StringMachs (const char**)NULL
4022 #define SYSV68_STRING_TEST_CT 0
4023 #define aSysv68_StringTests (tTestDesc*)NULL
4026 * Fix Command Arguments for Sysv68_String
4028 const char* apzSysv68_StringPatch[] = { "sed",
4029 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4030 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4031 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4032 "-e", "/^extern char$/N",
4033 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4034 "-e", "/^\tstrncmp(),$/N",
4035 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4036 extern unsigned int\\\n\
4038 "-e", "/^extern int$/N",
4039 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4042 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4044 * Description of Sysz_Stdlib_For_Sun fix
4046 #define SYSZ_STDLIB_FOR_SUN_FIXIDX 101
4047 tSCC zSysz_Stdlib_For_SunName[] =
4048 "sysz_stdlib_for_sun";
4051 * File name selection pattern
4053 tSCC zSysz_Stdlib_For_SunList[] =
4056 * Machine/OS name selection pattern
4058 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4059 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 0
4060 #define aSysz_Stdlib_For_SunTests (tTestDesc*)NULL
4063 * Fix Command Arguments for Sysz_Stdlib_For_Sun
4065 const char* apzSysz_Stdlib_For_SunPatch[] = { "sed",
4066 "-e", "s/int\tabort/void\tabort/g",
4067 "-e", "s/int\tfree/void\tfree/g",
4068 "-e", "s/char[ \t]*\\*[ \t]*calloc/void \\*\tcalloc/g",
4069 "-e", "s/char[ \t]*\\*[ \t]*malloc/void \\*\tmalloc/g",
4070 "-e", "s/char[ \t]*\\*[ \t]*realloc/void \\*\trealloc/g",
4071 "-e", "s/char[ \t]*\\*[ \t]*bsearch/void \\*\tbsearch/g",
4072 "-e", "s/int[ \t][ \t]*exit/void\texit/g",
4075 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4077 * Description of Sysz_Stdtypes_For_Sun fix
4079 #define SYSZ_STDTYPES_FOR_SUN_FIXIDX 102
4080 tSCC zSysz_Stdtypes_For_SunName[] =
4081 "sysz_stdtypes_for_sun";
4084 * File name selection pattern
4086 tSCC zSysz_Stdtypes_For_SunList[] =
4089 * Machine/OS name selection pattern
4091 #define apzSysz_Stdtypes_For_SunMachs (const char**)NULL
4092 #define SYSZ_STDTYPES_FOR_SUN_TEST_CT 0
4093 #define aSysz_Stdtypes_For_SunTests (tTestDesc*)NULL
4096 * Fix Command Arguments for Sysz_Stdtypes_For_Sun
4098 const char* apzSysz_Stdtypes_For_SunPatch[] = { "sed",
4099 "-e", "/[\t ]size_t.*;/i\\\n\
4100 #ifndef _GCC_SIZE_T\\\n\
4101 #define _GCC_SIZE_T\n",
4102 "-e", "/[\t ]size_t.*;/a\\\n\
4104 "-e", "/[\t ]ptrdiff_t.*;/i\\\n\
4105 #ifndef _GCC_PTRDIFF_T\\\n\
4106 #define _GCC_PTRDIFF_T\n",
4107 "-e", "/[\t ]ptrdiff_t.*;/a\\\n\
4109 "-e", "/[\t ]wchar_t.*;/i\\\n\
4110 #ifndef _GCC_WCHAR_T\\\n\
4111 #define _GCC_WCHAR_T\n",
4112 "-e", "/[\t ]wchar_t.*;/a\\\n\
4116 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4118 * Description of Tinfo_Cplusplus fix
4120 #define TINFO_CPLUSPLUS_FIXIDX 103
4121 tSCC zTinfo_CplusplusName[] =
4125 * File name selection pattern
4127 tSCC zTinfo_CplusplusList[] =
4130 * Machine/OS name selection pattern
4132 #define apzTinfo_CplusplusMachs (const char**)NULL
4135 * content selection pattern - do fix if pattern found
4137 tSCC zTinfo_CplusplusSelect0[] =
4140 #define TINFO_CPLUSPLUS_TEST_CT 1
4141 tTestDesc aTinfo_CplusplusTests[] = {
4142 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4145 * Fix Command Arguments for Tinfo_Cplusplus
4147 const char* apzTinfo_CplusplusPatch[] = { "sed",
4148 "-e", "s/[ \t]_cplusplus/ __cplusplus/",
4151 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4153 * Description of Ultrix_Atof_Param fix
4155 #define ULTRIX_ATOF_PARAM_FIXIDX 104
4156 tSCC zUltrix_Atof_ParamName[] =
4157 "ultrix_atof_param";
4160 * File name selection pattern
4162 tSCC zUltrix_Atof_ParamList[] =
4165 * Machine/OS name selection pattern
4167 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4170 * content selection pattern - do fix if pattern found
4172 tSCC zUltrix_Atof_ParamSelect0[] =
4173 "atof\\([ \t]*char";
4175 #define ULTRIX_ATOF_PARAM_TEST_CT 1
4176 tTestDesc aUltrix_Atof_ParamTests[] = {
4177 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4180 * Fix Command Arguments for Ultrix_Atof_Param
4182 const char* apzUltrix_Atof_ParamPatch[] = { "sed",
4183 "-e", "s@atof(\\([ \t]*char[ \t]*\\*[^)]*\\))@atof(const \\1)@",
4186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4188 * Description of Ultrix_Const fix
4190 #define ULTRIX_CONST_FIXIDX 105
4191 tSCC zUltrix_ConstName[] =
4195 * File name selection pattern
4197 tSCC zUltrix_ConstList[] =
4200 * Machine/OS name selection pattern
4202 #define apzUltrix_ConstMachs (const char**)NULL
4203 #define ULTRIX_CONST_TEST_CT 0
4204 #define aUltrix_ConstTests (tTestDesc*)NULL
4207 * Fix Command Arguments for Ultrix_Const
4209 const char* apzUltrix_ConstPatch[] = { "sed",
4210 "-e", "s@perror( char \\*__s );@perror( const char *__s );@",
4211 "-e", "s@fputs( char \\*__s,@fputs( const char *__s,@",
4212 "-e", "s@fopen( char \\*__filename, char \\*__type );@fopen( const char *__filename, const char *__type );@",
4213 "-e", "s@fwrite( void \\*__ptr,@fwrite( const void *__ptr,@",
4214 "-e", "s@fscanf( FILE \\*__stream, char \\*__format,@fscanf( FILE *__stream, const char *__format,@",
4215 "-e", "s@scanf( char \\*__format,@scanf( const char *__format,@",
4216 "-e", "s@sscanf( char \\*__s, char \\*__format,@sscanf( const char *__s, const char *__format,@",
4217 "-e", "s@popen(char \\*, char \\*);@popen(const char *, const char *);@",
4218 "-e", "s@tempnam(char\\*,char\\*);@tempnam(const char*,const char*);@",
4221 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4223 * Description of Ultrix_Fix_Fixproto fix
4225 #define ULTRIX_FIX_FIXPROTO_FIXIDX 106
4226 tSCC zUltrix_Fix_FixprotoName[] =
4227 "ultrix_fix_fixproto";
4230 * File name selection pattern
4232 tSCC zUltrix_Fix_FixprotoList[] =
4235 * Machine/OS name selection pattern
4237 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4240 * content selection pattern - do fix if pattern found
4242 tSCC zUltrix_Fix_FixprotoSelect0[] =
4245 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
4246 tTestDesc aUltrix_Fix_FixprotoTests[] = {
4247 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4250 * Fix Command Arguments for Ultrix_Fix_Fixproto
4252 const char* apzUltrix_Fix_FixprotoPatch[] = { "sed",
4253 "-e", "/^[ \t]*extern[ \t]*int[ \t]*uname();$/i\\\n\
4257 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4259 * Description of Ultrix_Ifdef fix
4261 #define ULTRIX_IFDEF_FIXIDX 107
4262 tSCC zUltrix_IfdefName[] =
4266 * File name selection pattern
4268 tSCC zUltrix_IfdefList[] =
4271 * Machine/OS name selection pattern
4273 #define apzUltrix_IfdefMachs (const char**)NULL
4276 * content selection pattern - do fix if pattern found
4278 tSCC zUltrix_IfdefSelect0[] =
4279 "#ifdef KERNEL[ \t]*[^ \t]";
4281 #define ULTRIX_IFDEF_TEST_CT 1
4282 tTestDesc aUltrix_IfdefTests[] = {
4283 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4286 * Fix Command Arguments for Ultrix_Ifdef
4288 const char* apzUltrix_IfdefPatch[] = { "sed",
4289 "-e", "s/#ifdef KERNEL/#if defined(KERNEL)/",
4292 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4294 * Description of Ultrix_Static fix
4296 #define ULTRIX_STATIC_FIXIDX 108
4297 tSCC zUltrix_StaticName[] =
4301 * File name selection pattern
4303 tSCC zUltrix_StaticList[] =
4306 * Machine/OS name selection pattern
4308 #define apzUltrix_StaticMachs (const char**)NULL
4311 * content selection pattern - do fix if pattern found
4313 tSCC zUltrix_StaticSelect0[] =
4314 "#include \"r[34]_cpu";
4316 #define ULTRIX_STATIC_TEST_CT 1
4317 tTestDesc aUltrix_StaticTests[] = {
4318 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
4321 * Fix Command Arguments for Ultrix_Static
4323 const char* apzUltrix_StaticPatch[] = { "sed",
4324 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
4325 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
4326 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
4329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4331 * Description of Undefine_Null fix
4333 #define UNDEFINE_NULL_FIXIDX 109
4334 tSCC zUndefine_NullName[] =
4338 * File name selection pattern
4340 #define zUndefine_NullList (char*)NULL
4342 * Machine/OS name selection pattern
4344 #define apzUndefine_NullMachs (const char**)NULL
4347 * content selection pattern - do fix if pattern found
4349 tSCC zUndefine_NullSelect0[] =
4350 "^#[ \t]*define[ \t]+NULL[ \t]";
4353 * content bypass pattern - skip fix if pattern found
4355 tSCC zUndefine_NullBypass0[] =
4356 "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
4358 #define UNDEFINE_NULL_TEST_CT 2
4359 tTestDesc aUndefine_NullTests[] = {
4360 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
4361 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
4364 * Fix Command Arguments for Undefine_Null
4366 const char* apzUndefine_NullPatch[] = {
4371 "^#[ \t]*define[ \t]*[ \t]NULL([^\r\n\
4375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4377 * Description of Unixware7_Byteorder_Fix fix
4379 #define UNIXWARE7_BYTEORDER_FIX_FIXIDX 110
4380 tSCC zUnixware7_Byteorder_FixName[] =
4381 "unixware7_byteorder_fix";
4384 * File name selection pattern
4386 tSCC zUnixware7_Byteorder_FixList[] =
4389 * Machine/OS name selection pattern
4391 tSCC* apzUnixware7_Byteorder_FixMachs[] = {
4393 "i[34567]86-*-sysv5*",
4394 "i[34567]86-*-udk*",
4395 "i[34567]86-*-solaris2.[0-4]",
4396 "powerpcle-*-solaris2.[0-4]",
4397 "sparc-*-solaris2.[0-4]",
4398 (const char*)NULL };
4401 * content selection pattern - do fix if pattern found
4403 tSCC zUnixware7_Byteorder_FixSelect0[] =
4406 #define UNIXWARE7_BYTEORDER_FIX_TEST_CT 1
4407 tTestDesc aUnixware7_Byteorder_FixTests[] = {
4408 { TT_EGREP, zUnixware7_Byteorder_FixSelect0, (regex_t*)NULL }, };
4411 * Fix Command Arguments for Unixware7_Byteorder_Fix
4413 const char* apzUnixware7_Byteorder_FixPatch[] = { "sed",
4414 "-e", "/^extern.*htons.*(in_port_t)/d",
4415 "-e", "/^extern.*ntohs.*(in_port_t)/d",
4418 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4420 * Description of Va_I960_Macro fix
4422 #define VA_I960_MACRO_FIXIDX 111
4423 tSCC zVa_I960_MacroName[] =
4427 * File name selection pattern
4429 tSCC zVa_I960_MacroList[] =
4430 "|arch/i960/archI960.h|";
4432 * Machine/OS name selection pattern
4434 #define apzVa_I960_MacroMachs (const char**)NULL
4437 * content selection pattern - do fix if pattern found
4439 tSCC zVa_I960_MacroSelect0[] =
4440 "__(vsiz|vali|vpad|alignof__)";
4442 #define VA_I960_MACRO_TEST_CT 1
4443 tTestDesc aVa_I960_MacroTests[] = {
4444 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
4447 * Fix Command Arguments for Va_I960_Macro
4449 const char* apzVa_I960_MacroPatch[] = { "sed",
4450 "-e", "s/__vsiz/__vxvsiz/",
4451 "-e", "s/__vali/__vxvali/",
4452 "-e", "s/__vpad/__vxvpad/",
4453 "-e", "s/__alignof__/__vxalignof__/",
4456 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4458 * Description of Void_Null fix
4460 #define VOID_NULL_FIXIDX 112
4461 tSCC zVoid_NullName[] =
4465 * File name selection pattern
4467 tSCC zVoid_NullList[] =
4468 "|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|";
4470 * Machine/OS name selection pattern
4472 #define apzVoid_NullMachs (const char**)NULL
4475 * content selection pattern - do fix if pattern found
4477 tSCC zVoid_NullSelect0[] =
4478 "#[ \t]*define[ \t][ \t]*NULL[ \t].*void";
4480 #define VOID_NULL_TEST_CT 1
4481 tTestDesc aVoid_NullTests[] = {
4482 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
4485 * Fix Command Arguments for Void_Null
4487 const char* apzVoid_NullPatch[] = { "sed",
4488 "-e", "s/^#[ \t]*define[ \t]*NULL[ \t]*((void[ \t]*\\*)0)/#define NULL 0/",
4491 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4493 * Description of Vxworks_Gcc_Problem fix
4495 #define VXWORKS_GCC_PROBLEM_FIXIDX 113
4496 tSCC zVxworks_Gcc_ProblemName[] =
4497 "vxworks_gcc_problem";
4500 * File name selection pattern
4502 tSCC zVxworks_Gcc_ProblemList[] =
4503 "|types/vxTypesBase.h|";
4505 * Machine/OS name selection pattern
4507 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
4510 * content selection pattern - do fix if pattern found
4512 tSCC zVxworks_Gcc_ProblemSelect0[] =
4513 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
4515 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
4516 tTestDesc aVxworks_Gcc_ProblemTests[] = {
4517 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
4520 * Fix Command Arguments for Vxworks_Gcc_Problem
4522 const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
4523 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
4524 "-e", "/[ \t]size_t/i\\\n\
4525 #ifndef _GCC_SIZE_T\\\n\
4526 #define _GCC_SIZE_T\n",
4527 "-e", "/[ \t]size_t/a\\\n\
4529 "-e", "/[ \t]ptrdiff_t/i\\\n\
4530 #ifndef _GCC_PTRDIFF_T\\\n\
4531 #define _GCC_PTRDIFF_T\n",
4532 "-e", "/[ \t]ptrdiff_t/a\\\n\
4534 "-e", "/[ \t]wchar_t/i\\\n\
4535 #ifndef _GCC_WCHAR_T\\\n\
4536 #define _GCC_WCHAR_T\n",
4537 "-e", "/[ \t]wchar_t/a\\\n\
4541 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4543 * Description of Vxworks_Needs_Vxtypes fix
4545 #define VXWORKS_NEEDS_VXTYPES_FIXIDX 114
4546 tSCC zVxworks_Needs_VxtypesName[] =
4547 "vxworks_needs_vxtypes";
4550 * File name selection pattern
4552 tSCC zVxworks_Needs_VxtypesList[] =
4555 * Machine/OS name selection pattern
4557 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
4560 * content selection pattern - do fix if pattern found
4562 tSCC zVxworks_Needs_VxtypesSelect0[] =
4563 "uint_t[ \t][ \t]*_clocks_per_sec";
4565 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
4566 tTestDesc aVxworks_Needs_VxtypesTests[] = {
4567 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
4570 * Fix Command Arguments for Vxworks_Needs_Vxtypes
4572 const char* apzVxworks_Needs_VxtypesPatch[] = { "sed",
4573 "-e", "s/uint_t/unsigned int/",
4576 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4578 * Description of Vxworks_Needs_Vxworks fix
4580 #define VXWORKS_NEEDS_VXWORKS_FIXIDX 115
4581 tSCC zVxworks_Needs_VxworksName[] =
4582 "vxworks_needs_vxworks";
4585 * File name selection pattern
4587 tSCC zVxworks_Needs_VxworksList[] =
4590 * Machine/OS name selection pattern
4592 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
4595 * content selection pattern - do fix if pattern found
4597 tSCC zVxworks_Needs_VxworksSelect0[] =
4598 "#[ \t]define[ \t][ \t]*__INCstath";
4601 * perform the 'test' shell command - do fix on success
4603 tSCC zVxworks_Needs_VxworksTest0[] =
4604 " -r types/vxTypesOld.h";
4605 tSCC zVxworks_Needs_VxworksTest1[] =
4606 " -n \"`egrep '#include' $file`\"";
4607 tSCC zVxworks_Needs_VxworksTest2[] =
4608 " -n \"`egrep ULONG $file`\"";
4610 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
4611 tTestDesc aVxworks_Needs_VxworksTests[] = {
4612 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
4613 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
4614 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
4615 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
4618 * Fix Command Arguments for Vxworks_Needs_Vxworks
4620 const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
4621 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
4622 #include <types/vxTypesOld.h>\n",
4625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4627 * Description of Vxworks_Time fix
4629 #define VXWORKS_TIME_FIXIDX 116
4630 tSCC zVxworks_TimeName[] =
4634 * File name selection pattern
4636 tSCC zVxworks_TimeList[] =
4639 * Machine/OS name selection pattern
4641 #define apzVxworks_TimeMachs (const char**)NULL
4644 * content selection pattern - do fix if pattern found
4646 tSCC zVxworks_TimeSelect0[] =
4650 * perform the 'test' shell command - do fix on success
4652 tSCC zVxworks_TimeTest0[] =
4655 #define VXWORKS_TIME_TEST_CT 2
4656 tTestDesc aVxworks_TimeTests[] = {
4657 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
4658 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
4661 * Fix Command Arguments for Vxworks_Time
4663 const char* apzVxworks_TimePatch[] = { "sed",
4664 "-e", "/VOIDFUNCPTR/i\\\n\
4665 #ifndef __gcc_VOIDFUNCPTR_defined\\\n\
4666 #ifdef __cplusplus\\\n\
4667 typedef void (*__gcc_VOIDFUNCPTR) (...);\\\n\
4669 typedef void (*__gcc_VOIDFUNCPTR) ();\\\n\
4671 #define __gcc_VOIDFUNCPTR_defined\\\n\
4673 "-e", "s/VOIDFUNCPTR/__gcc_VOIDFUNCPTR/g",
4676 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4678 * Description of X11_Class fix
4680 #define X11_CLASS_FIXIDX 117
4681 tSCC zX11_ClassName[] =
4685 * File name selection pattern
4687 tSCC zX11_ClassList[] =
4690 * Machine/OS name selection pattern
4692 #define apzX11_ClassMachs (const char**)NULL
4695 * content bypass pattern - skip fix if pattern found
4697 tSCC zX11_ClassBypass0[] =
4700 #define X11_CLASS_TEST_CT 1
4701 tTestDesc aX11_ClassTests[] = {
4702 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, };
4705 * Fix Command Arguments for X11_Class
4707 const char* apzX11_ClassPatch[] = { "sed",
4708 "-e", "/char \\*class;/i\\\n\
4709 #ifdef __cplusplus\\\n\
4710 \tchar *c_class;\\\n\
4712 "-e", "/char \\*class;/a\\\n\
4716 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4718 * Description of X11_Class_Usage fix
4720 #define X11_CLASS_USAGE_FIXIDX 118
4721 tSCC zX11_Class_UsageName[] =
4725 * File name selection pattern
4727 tSCC zX11_Class_UsageList[] =
4728 "|Xm/BaseClassI.h|";
4730 * Machine/OS name selection pattern
4732 #define apzX11_Class_UsageMachs (const char**)NULL
4735 * content bypass pattern - skip fix if pattern found
4737 tSCC zX11_Class_UsageBypass0[] =
4740 #define X11_CLASS_USAGE_TEST_CT 1
4741 tTestDesc aX11_Class_UsageTests[] = {
4742 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, };
4745 * Fix Command Arguments for X11_Class_Usage
4747 const char* apzX11_Class_UsagePatch[] = { "sed",
4748 "-e", "s/ class[)]/ c_class)/g",
4751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4753 * Description of X11_New fix
4755 #define X11_NEW_FIXIDX 119
4756 tSCC zX11_NewName[] =
4760 * File name selection pattern
4762 tSCC zX11_NewList[] =
4765 * Machine/OS name selection pattern
4767 #define apzX11_NewMachs (const char**)NULL
4770 * content bypass pattern - skip fix if pattern found
4772 tSCC zX11_NewBypass0[] =
4775 #define X11_NEW_TEST_CT 1
4776 tTestDesc aX11_NewTests[] = {
4777 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
4780 * Fix Command Arguments for X11_New
4782 const char* apzX11_NewPatch[] = { "sed",
4783 "-e", "/Widget\told, new;/i\\\n\
4784 #ifdef __cplusplus\\\n\
4785 \tWidget\told, c_new;\\\n\
4787 "-e", "/Widget\told, new;/a\\\n\
4789 "-e", "s/Widget new,/Widget c_new,/g",
4792 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4794 * Description of X11_Sprintf fix
4796 #define X11_SPRINTF_FIXIDX 120
4797 tSCC zX11_SprintfName[] =
4801 * File name selection pattern
4803 tSCC zX11_SprintfList[] =
4804 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
4806 * Machine/OS name selection pattern
4808 #define apzX11_SprintfMachs (const char**)NULL
4811 * content selection pattern - do fix if pattern found
4813 tSCC zX11_SprintfSelect0[] =
4816 #define X11_SPRINTF_TEST_CT 1
4817 tTestDesc aX11_SprintfTests[] = {
4818 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
4821 * Fix Command Arguments for X11_Sprintf
4823 const char* apzX11_SprintfPatch[] = { "sed",
4824 "-e", "s,^extern char \\*\tsprintf();$,#ifndef __STDC__\\\n\
4825 extern char *\tsprintf();\\\n\
4826 #endif /* !defined __STDC__ */,",
4830 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4834 #define REGEX_COUNT 113
4835 #define MACH_LIST_SIZE_LIMIT 279
4836 #define FIX_COUNT 121
4838 tFixDesc fixDescList[ FIX_COUNT ] = {
4839 { zAaa_Ki_IfaceName, zAaa_Ki_IfaceList,
4840 apzAaa_Ki_IfaceMachs,
4841 AAA_KI_IFACE_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4842 aAaa_Ki_IfaceTests, apzAaa_Ki_IfacePatch },
4844 { zAaa_KiName, zAaa_KiList,
4846 AAA_KI_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4847 aAaa_KiTests, apzAaa_KiPatch },
4849 { zAaa_Ki_CallsName, zAaa_Ki_CallsList,
4850 apzAaa_Ki_CallsMachs,
4851 AAA_KI_CALLS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4852 aAaa_Ki_CallsTests, apzAaa_Ki_CallsPatch },
4854 { zAaa_Ki_DefsName, zAaa_Ki_DefsList,
4855 apzAaa_Ki_DefsMachs,
4856 AAA_KI_DEFS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4857 aAaa_Ki_DefsTests, apzAaa_Ki_DefsPatch },
4859 { zAaa_Bad_FixesName, zAaa_Bad_FixesList,
4860 apzAaa_Bad_FixesMachs,
4861 AAA_BAD_FIXES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4862 aAaa_Bad_FixesTests, apzAaa_Bad_FixesPatch },
4864 { zAaa_TimeName, zAaa_TimeList,
4866 AAA_TIME_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4867 aAaa_TimeTests, apzAaa_TimePatch },
4869 { zAab_Dgux_Int_VarargsName, zAab_Dgux_Int_VarargsList,
4870 apzAab_Dgux_Int_VarargsMachs,
4871 AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4872 aAab_Dgux_Int_VarargsTests, apzAab_Dgux_Int_VarargsPatch },
4874 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
4875 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
4876 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4877 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch },
4879 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
4880 apzAab_Fd_Zero_Gnu_Types_HMachs,
4881 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4882 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch },
4884 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
4885 apzAab_Fd_Zero_Selectbits_HMachs,
4886 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4887 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch },
4889 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
4890 apzAab_Sun_MemcpyMachs,
4891 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4892 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch },
4894 { zAab_Svr4_Replace_ByteorderName, zAab_Svr4_Replace_ByteorderList,
4895 apzAab_Svr4_Replace_ByteorderMachs,
4896 AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4897 aAab_Svr4_Replace_ByteorderTests, apzAab_Svr4_Replace_ByteorderPatch },
4899 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
4900 apzAab_Ultrix_Ansi_CompatMachs,
4901 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4902 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch },
4904 { zAix_SyswaitName, zAix_SyswaitList,
4905 apzAix_SyswaitMachs,
4906 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4907 aAix_SyswaitTests, apzAix_SyswaitPatch },
4909 { zAix_VolatileName, zAix_VolatileList,
4910 apzAix_VolatileMachs,
4911 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4912 aAix_VolatileTests, apzAix_VolatilePatch },
4914 { zAlpha_GetoptName, zAlpha_GetoptList,
4915 apzAlpha_GetoptMachs,
4916 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4917 aAlpha_GetoptTests, apzAlpha_GetoptPatch },
4919 { zAlpha_ParensName, zAlpha_ParensList,
4920 apzAlpha_ParensMachs,
4921 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4922 aAlpha_ParensTests, apzAlpha_ParensPatch },
4924 { zAlpha_SbrkName, zAlpha_SbrkList,
4926 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4927 aAlpha_SbrkTests, apzAlpha_SbrkPatch },
4929 { zArm_Norcroft_HintName, zArm_Norcroft_HintList,
4930 apzArm_Norcroft_HintMachs,
4931 ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4932 aArm_Norcroft_HintTests, apzArm_Norcroft_HintPatch },
4934 { zArm_WcharName, zArm_WcharList,
4936 ARM_WCHAR_TEST_CT, FD_MACH_ONLY,
4937 aArm_WcharTests, apzArm_WcharPatch },
4939 { zAux_AsmName, zAux_AsmList,
4941 AUX_ASM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4942 aAux_AsmTests, apzAux_AsmPatch },
4944 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
4945 apzAvoid_Bool_DefineMachs,
4946 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4947 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch },
4949 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
4950 apzAvoid_Bool_TypeMachs,
4951 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4952 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch },
4954 { zBad_LvalName, zBad_LvalList,
4956 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
4957 aBad_LvalTests, apzBad_LvalPatch },
4959 { zBad_Struct_TermName, zBad_Struct_TermList,
4960 apzBad_Struct_TermMachs,
4961 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4962 aBad_Struct_TermTests, apzBad_Struct_TermPatch },
4964 { zBadquoteName, zBadquoteList,
4966 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4967 aBadquoteTests, apzBadquotePatch },
4969 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
4970 apzBroken_Assert_StdioMachs,
4971 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4972 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch },
4974 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
4975 apzBroken_Assert_StdlibMachs,
4976 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4977 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch },
4979 { zBroken_CabsName, zBroken_CabsList,
4980 apzBroken_CabsMachs,
4981 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4982 aBroken_CabsTests, apzBroken_CabsPatch },
4984 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
4985 apzCtrl_Quotes_DefMachs,
4986 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4987 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch },
4989 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
4990 apzCtrl_Quotes_UseMachs,
4991 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4992 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch },
4994 { zCxx_UnreadyName, zCxx_UnreadyList,
4995 apzCxx_UnreadyMachs,
4996 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4997 aCxx_UnreadyTests, apzCxx_UnreadyPatch },
4999 { zDec_Intern_AsmName, zDec_Intern_AsmList,
5000 apzDec_Intern_AsmMachs,
5001 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
5002 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch },
5004 { zEcd_CursorName, zEcd_CursorList,
5006 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5007 aEcd_CursorTests, apzEcd_CursorPatch },
5009 { zFix_Header_BreakageName, zFix_Header_BreakageList,
5010 apzFix_Header_BreakageMachs,
5011 FIX_HEADER_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5012 aFix_Header_BreakageTests, apzFix_Header_BreakagePatch },
5014 { zHp_InlineName, zHp_InlineList,
5016 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5017 aHp_InlineTests, apzHp_InlinePatch },
5019 { zHp_SysfileName, zHp_SysfileList,
5021 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5022 aHp_SysfileTests, apzHp_SysfilePatch },
5024 { zHpux11_FabsfName, zHpux11_FabsfList,
5025 apzHpux11_FabsfMachs,
5026 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5027 aHpux11_FabsfTests, apzHpux11_FabsfPatch },
5029 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
5030 apzHpux11_Uint32_CMachs,
5031 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5032 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch },
5034 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
5035 apzHpux8_Bogus_InlinesMachs,
5036 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
5037 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch },
5039 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
5040 apzIsc_Omits_With_StdcMachs,
5041 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5042 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch },
5044 { zIo_Quotes_DefName, zIo_Quotes_DefList,
5045 apzIo_Quotes_DefMachs,
5046 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5047 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch },
5049 { zIo_Quotes_UseName, zIo_Quotes_UseList,
5050 apzIo_Quotes_UseMachs,
5051 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5052 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch },
5054 { zHpux_MaxintName, zHpux_MaxintList,
5055 apzHpux_MaxintMachs,
5056 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5057 aHpux_MaxintTests, apzHpux_MaxintPatch },
5059 { zHpux_SystimeName, zHpux_SystimeList,
5060 apzHpux_SystimeMachs,
5061 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY,
5062 aHpux_SystimeTests, apzHpux_SystimePatch },
5064 { zIp_Missing_SemiName, zIp_Missing_SemiList,
5065 apzIp_Missing_SemiMachs,
5066 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
5067 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch },
5069 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
5070 apzIrix_Asm_ApostropheMachs,
5071 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5072 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch },
5074 { zIrix_Multiline_CmntName, zIrix_Multiline_CmntList,
5075 apzIrix_Multiline_CmntMachs,
5076 IRIX_MULTILINE_CMNT_TEST_CT, FD_MACH_ONLY,
5077 aIrix_Multiline_CmntTests, apzIrix_Multiline_CmntPatch },
5079 { zIsc_FmodName, zIsc_FmodList,
5081 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5082 aIsc_FmodTests, apzIsc_FmodPatch },
5084 { zKandr_ConcatName, zKandr_ConcatList,
5085 apzKandr_ConcatMachs,
5086 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5087 aKandr_ConcatTests, apzKandr_ConcatPatch },
5089 { zLimits_IfndefsName, zLimits_IfndefsList,
5090 apzLimits_IfndefsMachs,
5091 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5092 aLimits_IfndefsTests, apzLimits_IfndefsPatch },
5094 { zLynx_Void_IntName, zLynx_Void_IntList,
5095 apzLynx_Void_IntMachs,
5096 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5097 aLynx_Void_IntTests, apzLynx_Void_IntPatch },
5099 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
5100 apzLynxos_Fcntl_ProtoMachs,
5101 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5102 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch },
5104 { zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList,
5105 apzM88k_Bad_Hypot_OptMachs,
5106 M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5107 aM88k_Bad_Hypot_OptTests, apzM88k_Bad_Hypot_OptPatch },
5109 { zM88k_Bad_S_IfName, zM88k_Bad_S_IfList,
5110 apzM88k_Bad_S_IfMachs,
5111 M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5112 aM88k_Bad_S_IfTests, apzM88k_Bad_S_IfPatch },
5114 { zM88k_Multi_InclName, zM88k_Multi_InclList,
5115 apzM88k_Multi_InclMachs,
5116 M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5117 aM88k_Multi_InclTests, apzM88k_Multi_InclPatch },
5119 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
5120 apzMachine_Ansi_H_Va_ListMachs,
5121 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY,
5122 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch },
5124 { zMachine_NameName, zMachine_NameList,
5125 apzMachine_NameMachs,
5126 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5127 aMachine_NameTests, apzMachine_NamePatch },
5129 { zMath_ExceptionName, zMath_ExceptionList,
5130 apzMath_ExceptionMachs,
5131 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5132 aMath_ExceptionTests, apzMath_ExceptionPatch },
5134 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
5135 apzMath_Huge_Val_From_Dbl_MaxMachs,
5136 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
5137 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch },
5139 { zMath_Huge_Val_IfndefName, zMath_Huge_Val_IfndefList,
5140 apzMath_Huge_Val_IfndefMachs,
5141 MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY,
5142 aMath_Huge_Val_IfndefTests, apzMath_Huge_Val_IfndefPatch },
5144 { zNested_MotorolaName, zNested_MotorolaList,
5145 apzNested_MotorolaMachs,
5146 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
5147 aNested_MotorolaTests, apzNested_MotorolaPatch },
5149 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
5150 apzNested_Sys_LimitsMachs,
5151 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
5152 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch },
5154 { zNested_Auth_DesName, zNested_Auth_DesList,
5155 apzNested_Auth_DesMachs,
5156 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5157 aNested_Auth_DesTests, apzNested_Auth_DesPatch },
5159 { zNested_UltrixName, zNested_UltrixList,
5160 apzNested_UltrixMachs,
5161 NESTED_ULTRIX_TEST_CT, FD_MACH_ONLY,
5162 aNested_UltrixTests, apzNested_UltrixPatch },
5164 { zNews_Os_RecursionName, zNews_Os_RecursionList,
5165 apzNews_Os_RecursionMachs,
5166 NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY,
5167 aNews_Os_RecursionTests, apzNews_Os_RecursionPatch },
5169 { zNext_Math_PrefixName, zNext_Math_PrefixList,
5170 apzNext_Math_PrefixMachs,
5171 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY,
5172 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch },
5174 { zNext_TemplateName, zNext_TemplateList,
5175 apzNext_TemplateMachs,
5176 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY,
5177 aNext_TemplateTests, apzNext_TemplatePatch },
5179 { zNext_VolitileName, zNext_VolitileList,
5180 apzNext_VolitileMachs,
5181 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY,
5182 aNext_VolitileTests, apzNext_VolitilePatch },
5184 { zNext_Wait_UnionName, zNext_Wait_UnionList,
5185 apzNext_Wait_UnionMachs,
5186 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY,
5187 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch },
5189 { zNodeent_SyntaxName, zNodeent_SyntaxList,
5190 apzNodeent_SyntaxMachs,
5191 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY,
5192 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch },
5194 { zOsf_Namespace_AName, zOsf_Namespace_AList,
5195 apzOsf_Namespace_AMachs,
5196 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY,
5197 aOsf_Namespace_ATests, apzOsf_Namespace_APatch },
5199 { zOsf_Namespace_BName, zOsf_Namespace_BList,
5200 apzOsf_Namespace_BMachs,
5201 OSF_NAMESPACE_B_TEST_CT, FD_MACH_ONLY,
5202 aOsf_Namespace_BTests, apzOsf_Namespace_BPatch },
5204 { zPthread_Page_SizeName, zPthread_Page_SizeList,
5205 apzPthread_Page_SizeMachs,
5206 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY,
5207 aPthread_Page_SizeTests, apzPthread_Page_SizePatch },
5209 { zRead_Ret_TypeName, zRead_Ret_TypeList,
5210 apzRead_Ret_TypeMachs,
5211 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY,
5212 aRead_Ret_TypeTests, apzRead_Ret_TypePatch },
5214 { zRs6000_DoubleName, zRs6000_DoubleList,
5215 apzRs6000_DoubleMachs,
5216 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY,
5217 aRs6000_DoubleTests, apzRs6000_DoublePatch },
5219 { zRs6000_FchmodName, zRs6000_FchmodList,
5220 apzRs6000_FchmodMachs,
5221 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY,
5222 aRs6000_FchmodTests, apzRs6000_FchmodPatch },
5224 { zRs6000_ParamName, zRs6000_ParamList,
5225 apzRs6000_ParamMachs,
5226 RS6000_PARAM_TEST_CT, FD_MACH_ONLY,
5227 aRs6000_ParamTests, apzRs6000_ParamPatch },
5229 { zSco_Static_FuncName, zSco_Static_FuncList,
5230 apzSco_Static_FuncMachs,
5231 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
5232 aSco_Static_FuncTests, apzSco_Static_FuncPatch },
5234 { zSco_Strict_AnsiName, zSco_Strict_AnsiList,
5235 apzSco_Strict_AnsiMachs,
5236 SCO_STRICT_ANSI_TEST_CT, FD_MACH_ONLY,
5237 aSco_Strict_AnsiTests, apzSco_Strict_AnsiPatch },
5239 { zSco_UtimeName, zSco_UtimeList,
5241 SCO_UTIME_TEST_CT, FD_MACH_ONLY,
5242 aSco_UtimeTests, apzSco_UtimePatch },
5244 { zSony_IncludeName, zSony_IncludeList,
5245 apzSony_IncludeMachs,
5246 SONY_INCLUDE_TEST_CT, FD_MACH_ONLY,
5247 aSony_IncludeTests, apzSony_IncludePatch },
5249 { zStatsswtchName, zStatsswtchList,
5251 STATSSWTCH_TEST_CT, FD_MACH_ONLY,
5252 aStatsswtchTests, apzStatsswtchPatch },
5254 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
5255 apzStdio_Stdarg_HMachs,
5256 STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5257 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch },
5259 { zStdio_Va_ListName, zStdio_Va_ListList,
5260 apzStdio_Va_ListMachs,
5261 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
5262 aStdio_Va_ListTests, apzStdio_Va_ListPatch },
5264 { zStruct_FileName, zStruct_FileList,
5265 apzStruct_FileMachs,
5266 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5267 aStruct_FileTests, apzStruct_FilePatch },
5269 { zStruct_SockaddrName, zStruct_SockaddrList,
5270 apzStruct_SockaddrMachs,
5271 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5272 aStruct_SockaddrTests, apzStruct_SockaddrPatch },
5274 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
5275 apzSun_Auth_ProtoMachs,
5276 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY,
5277 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch },
5279 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
5280 apzSun_Bogus_IfdefMachs,
5281 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY,
5282 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch },
5284 { zSun_Bogus_Ifdef_Sun4cName, zSun_Bogus_Ifdef_Sun4cList,
5285 apzSun_Bogus_Ifdef_Sun4cMachs,
5286 SUN_BOGUS_IFDEF_SUN4C_TEST_CT, FD_MACH_ONLY,
5287 aSun_Bogus_Ifdef_Sun4cTests, apzSun_Bogus_Ifdef_Sun4cPatch },
5289 { zSun_CatmacroName, zSun_CatmacroList,
5290 apzSun_CatmacroMachs,
5291 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY,
5292 aSun_CatmacroTests, apzSun_CatmacroPatch },
5294 { zSun_MallocName, zSun_MallocList,
5296 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
5297 aSun_MallocTests, apzSun_MallocPatch },
5299 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
5300 apzSun_Rusers_SemiMachs,
5301 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
5302 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch },
5304 { zSun_SignalName, zSun_SignalList,
5306 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY,
5307 aSun_SignalTests, apzSun_SignalPatch },
5309 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
5310 apzSunos_Matherr_DeclMachs,
5311 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY,
5312 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch },
5314 { zSunos_StrlenName, zSunos_StrlenList,
5315 apzSunos_StrlenMachs,
5316 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY,
5317 aSunos_StrlenTests, apzSunos_StrlenPatch },
5319 { zSvr4_GetcwdName, zSvr4_GetcwdList,
5320 apzSvr4_GetcwdMachs,
5321 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY,
5322 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch },
5324 { zSvr4_ProfilName, zSvr4_ProfilList,
5325 apzSvr4_ProfilMachs,
5326 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY,
5327 aSvr4_ProfilTests, apzSvr4_ProfilPatch },
5329 { zSystypesName, zSystypesList,
5331 SYSTYPES_TEST_CT, FD_MACH_ONLY,
5332 aSystypesTests, apzSystypesPatch },
5334 { zSystypes_Stdlib_Size_TName, zSystypes_Stdlib_Size_TList,
5335 apzSystypes_Stdlib_Size_TMachs,
5336 SYSTYPES_STDLIB_SIZE_T_TEST_CT, FD_MACH_ONLY,
5337 aSystypes_Stdlib_Size_TTests, apzSystypes_Stdlib_Size_TPatch },
5339 { zSysv68_StringName, zSysv68_StringList,
5340 apzSysv68_StringMachs,
5341 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
5342 aSysv68_StringTests, apzSysv68_StringPatch },
5344 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
5345 apzSysz_Stdlib_For_SunMachs,
5346 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY,
5347 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch },
5349 { zSysz_Stdtypes_For_SunName, zSysz_Stdtypes_For_SunList,
5350 apzSysz_Stdtypes_For_SunMachs,
5351 SYSZ_STDTYPES_FOR_SUN_TEST_CT, FD_MACH_ONLY,
5352 aSysz_Stdtypes_For_SunTests, apzSysz_Stdtypes_For_SunPatch },
5354 { zTinfo_CplusplusName, zTinfo_CplusplusList,
5355 apzTinfo_CplusplusMachs,
5356 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY,
5357 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch },
5359 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
5360 apzUltrix_Atof_ParamMachs,
5361 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY,
5362 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch },
5364 { zUltrix_ConstName, zUltrix_ConstList,
5365 apzUltrix_ConstMachs,
5366 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY,
5367 aUltrix_ConstTests, apzUltrix_ConstPatch },
5369 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
5370 apzUltrix_Fix_FixprotoMachs,
5371 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY,
5372 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch },
5374 { zUltrix_IfdefName, zUltrix_IfdefList,
5375 apzUltrix_IfdefMachs,
5376 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY,
5377 aUltrix_IfdefTests, apzUltrix_IfdefPatch },
5379 { zUltrix_StaticName, zUltrix_StaticList,
5380 apzUltrix_StaticMachs,
5381 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
5382 aUltrix_StaticTests, apzUltrix_StaticPatch },
5384 { zUndefine_NullName, zUndefine_NullList,
5385 apzUndefine_NullMachs,
5386 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5387 aUndefine_NullTests, apzUndefine_NullPatch },
5389 { zUnixware7_Byteorder_FixName, zUnixware7_Byteorder_FixList,
5390 apzUnixware7_Byteorder_FixMachs,
5391 UNIXWARE7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY,
5392 aUnixware7_Byteorder_FixTests, apzUnixware7_Byteorder_FixPatch },
5394 { zVa_I960_MacroName, zVa_I960_MacroList,
5395 apzVa_I960_MacroMachs,
5396 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY,
5397 aVa_I960_MacroTests, apzVa_I960_MacroPatch },
5399 { zVoid_NullName, zVoid_NullList,
5401 VOID_NULL_TEST_CT, FD_MACH_ONLY,
5402 aVoid_NullTests, apzVoid_NullPatch },
5404 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
5405 apzVxworks_Gcc_ProblemMachs,
5406 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
5407 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch },
5409 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
5410 apzVxworks_Needs_VxtypesMachs,
5411 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY,
5412 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch },
5414 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
5415 apzVxworks_Needs_VxworksMachs,
5416 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
5417 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch },
5419 { zVxworks_TimeName, zVxworks_TimeList,
5420 apzVxworks_TimeMachs,
5421 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY,
5422 aVxworks_TimeTests, apzVxworks_TimePatch },
5424 { zX11_ClassName, zX11_ClassList,
5426 X11_CLASS_TEST_CT, FD_MACH_ONLY,
5427 aX11_ClassTests, apzX11_ClassPatch },
5429 { zX11_Class_UsageName, zX11_Class_UsageList,
5430 apzX11_Class_UsageMachs,
5431 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY,
5432 aX11_Class_UsageTests, apzX11_Class_UsagePatch },
5434 { zX11_NewName, zX11_NewList,
5436 X11_NEW_TEST_CT, FD_MACH_ONLY,
5437 aX11_NewTests, apzX11_NewPatch },
5439 { zX11_SprintfName, zX11_SprintfList,
5440 apzX11_SprintfMachs,
5441 X11_SPRINTF_TEST_CT, FD_MACH_ONLY,
5442 aX11_SprintfTests, apzX11_SprintfPatch }