2 * DO NOT EDIT THIS FILE (fixincl.x)
4 * It has been autogen-ed Thursday May 28, 1998 at 08:21:12 AM PDT
5 * From the definitions inclhack.def
6 * and the template file fixincl.tpl
8 * Install modified versions of certain ANSI-incompatible system header
9 * files which are fixed to work correctly with ANSI C and placed in a
10 * directory that GNU C will search.
12 * This script contains 101 fixup scripts.
14 * See README-fixinc for more information.
16 * inclhack is free software.
18 * You may redistribute it and/or modify it under the terms of the
19 * GNU General Public License, as published by the Free Software
20 * Foundation; either version 2, or (at your option) any later version.
22 * inclhack is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25 * See the GNU General Public License for more details.
27 * You should have received a copy of the GNU General Public License
28 * along with inclhack. See the file "COPYING". If not,
29 * write to: The Free Software Foundation, Inc.,
30 * 59 Temple Place - Suite 330,
31 * Boston, MA 02111-1307, USA.
34 * Description 1 - Aix_Syswait fix
36 tSCC zAix_SyswaitName[] =
39 * File name selection pattern
41 tSCC zAix_SyswaitList[] =
45 * content selection pattern
47 tSCC zAix_SyswaitSelect0[] =
50 #define AIX_SYSWAIT_TEST_CT 1
51 tTestDesc aAix_SyswaitTests[] = {
52 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL } };
55 * Fix Command Arguments for Aix_Syswait
57 const char* apzAix_SyswaitPatch[] = { "sed",
58 "-e" "/^extern pid_t wait3();$/i\\\n"
62 /* * * * * * * * * * * * * * * * * * * * * * * * * *
64 * Description 2 - Aix_Volatile fix
66 tSCC zAix_VolatileName[] =
69 * File name selection pattern
71 tSCC zAix_VolatileList[] =
72 "|" "sys/signal.h" "|";
75 * content selection pattern
77 tSCC zAix_VolatileSelect0[] =
78 "typedef volatile int sig_atomic_t";
80 #define AIX_VOLATILE_TEST_CT 1
81 tTestDesc aAix_VolatileTests[] = {
82 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL } };
85 * Fix Command Arguments for Aix_Volatile
87 const char* apzAix_VolatilePatch[] = { "sed",
88 "-e" "s/typedef volatile int sig_atomic_t/typedef int sig_atomic_t/",
91 /* * * * * * * * * * * * * * * * * * * * * * * * * *
93 * Description 3 - Alpha_Getopt fix
95 tSCC zAlpha_GetoptName[] =
98 * File name selection pattern
100 tSCC zAlpha_GetoptList[] =
105 * content selection pattern
107 tSCC zAlpha_GetoptSelect0[] =
108 "getopt\\(int, char \\*\\[";
110 #define ALPHA_GETOPT_TEST_CT 1
111 tTestDesc aAlpha_GetoptTests[] = {
112 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL } };
115 * Fix Command Arguments for Alpha_Getopt
117 const char* apzAlpha_GetoptPatch[] = { "sed",
118 "-e" "s/getopt(int, char \\*\\[\\],[ ]*char \\*)/getopt(int, char *const[], const char *)/",
121 /* * * * * * * * * * * * * * * * * * * * * * * * * *
123 * Description 4 - Alpha_Parens fix
125 tSCC zAlpha_ParensName[] =
128 * File name selection pattern
130 tSCC zAlpha_ParensList[] =
134 * content selection pattern
136 tSCC zAlpha_ParensSelect0[] =
137 "#ifndef\\(__mips64\\)";
139 #define ALPHA_PARENS_TEST_CT 1
140 tTestDesc aAlpha_ParensTests[] = {
141 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL } };
144 * Fix Command Arguments for Alpha_Parens
146 const char* apzAlpha_ParensPatch[] = { "sed",
147 "-e" "s/#ifndef(__mips64)/#ifndef __mips64/",
150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
152 * Description 5 - Alpha_Sbrk fix
154 tSCC zAlpha_SbrkName[] =
157 * File name selection pattern
159 tSCC zAlpha_SbrkList[] =
163 * content selection pattern
165 tSCC zAlpha_SbrkSelect0[] =
166 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
168 #define ALPHA_SBRK_TEST_CT 1
169 tTestDesc aAlpha_SbrkTests[] = {
170 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL } };
173 * Fix Command Arguments for Alpha_Sbrk
175 const char* apzAlpha_SbrkPatch[] = { "sed",
176 "-e" "s/char\\([ \t]*\\*[\t ]*sbrk[ \t]*(\\)/void\\1/",
179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
181 * Description 6 - Arm_Norcroft_Hint fix
183 tSCC zArm_Norcroft_HintName[] =
186 * File name selection pattern
188 tSCC zArm_Norcroft_HintList[] =
189 "|" "X11/Intrinsic.h" "|";
190 #define ARM_NORCROFT_HINT_TEST_CT 0
191 #define aArm_Norcroft_HintTests (tTestDesc*)NULL
194 * Fix Command Arguments for Arm_Norcroft_Hint
196 const char* apzArm_Norcroft_HintPatch[] = { "sed",
197 "-e" "s/___type p_type/p_type/",
200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
202 * Description 7 - Arm_Wchar fix
204 tSCC zArm_WcharName[] =
207 * File name selection pattern
209 tSCC zArm_WcharList[] =
213 * content selection pattern
215 tSCC zArm_WcharSelect0[] =
216 "#[ \t]*define[ \t]*__wchar_t";
218 #define ARM_WCHAR_TEST_CT 1
219 tTestDesc aArm_WcharTests[] = {
220 { TT_EGREP, zArm_WcharSelect0, (regex_t*)NULL } };
223 * Fix Command Arguments for Arm_Wchar
225 const char* apzArm_WcharPatch[] = { "sed",
226 "-e" "s/\\(#[ \t]*ifndef[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",
227 "-e" "s/\\(#[ \t]*define[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",
230 /* * * * * * * * * * * * * * * * * * * * * * * * * *
232 * Description 8 - Aux_Asm fix
234 tSCC zAux_AsmName[] =
237 * File name selection pattern
239 tSCC zAux_AsmList[] =
240 "|" "sys/param.h" "|";
243 * content selection pattern
245 tSCC zAux_AsmSelect0[] =
248 #define AUX_ASM_TEST_CT 1
249 tTestDesc aAux_AsmTests[] = {
250 { TT_EGREP, zAux_AsmSelect0, (regex_t*)NULL } };
253 * Fix Command Arguments for Aux_Asm
255 const char* apzAux_AsmPatch[] = { "sed",
256 "-e" "s|#ifndef NOINLINE|#if !defined(NOINLINE) \\&\\& !defined(__GNUC__)|",
259 /* * * * * * * * * * * * * * * * * * * * * * * * * *
261 * Description 9 - Avoid_Bool fix
263 tSCC zAvoid_BoolName[] =
266 * File name selection pattern
268 tSCC zAvoid_BoolList[] =
270 #define AVOID_BOOL_TEST_CT 0
271 #define aAvoid_BoolTests (tTestDesc*)NULL
274 * Fix Command Arguments for Avoid_Bool
276 const char* apzAvoid_BoolPatch[] = { "sed",
277 "-e" "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/i\\\n"
278 "#ifndef __cplusplus\n",
279 "-e" "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/a\\\n"
281 "-e" "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/i\\\n"
282 "#ifndef __cplusplus\n",
283 "-e" "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/a\\\n"
287 /* * * * * * * * * * * * * * * * * * * * * * * * * *
289 * Description 10 - Bad_Malloc_Decl fix
291 tSCC zBad_Malloc_DeclName[] =
294 * File name selection pattern
296 tSCC zBad_Malloc_DeclList[] =
297 "|" "rpc/types.h" "|";
300 * content bypass pattern
302 tSCC zBad_Malloc_DeclBypass0[] =
305 #define BAD_MALLOC_DECL_TEST_CT 1
306 tTestDesc aBad_Malloc_DeclTests[] = {
307 { TT_NEGREP, zBad_Malloc_DeclBypass0, (regex_t*)NULL }, };
310 * Fix Command Arguments for Bad_Malloc_Decl
312 const char* apzBad_Malloc_DeclPatch[] = { "sed",
314 "#ifdef __cplusplus\\\n"
319 "#ifdef __cplusplus\\\n"
324 /* * * * * * * * * * * * * * * * * * * * * * * * * *
326 * Description 11 - Bad_Struct_Term fix
328 tSCC zBad_Struct_TermName[] =
331 * File name selection pattern
333 tSCC zBad_Struct_TermList[] =
337 * content selection pattern
339 tSCC zBad_Struct_TermSelect0[] =
340 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
342 #define BAD_STRUCT_TERM_TEST_CT 1
343 tTestDesc aBad_Struct_TermTests[] = {
344 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL } };
347 * Fix Command Arguments for Bad_Struct_Term
349 const char* apzBad_Struct_TermPatch[] = { "sed",
350 "-e" "s/^[ \t]*typedef[ \t][ \t]*\\(struct[ \t][ \t]*term[ \t]*;[ \t]*\\)$/\\1/",
353 /* * * * * * * * * * * * * * * * * * * * * * * * * *
355 * Description 12 - Badquote fix
357 tSCC zBadquoteName[] =
360 * File name selection pattern
362 tSCC zBadquoteList[] =
363 "|" "sundev/vuid_event.h" "|";
364 #define BADQUOTE_TEST_CT 0
365 #define aBadquoteTests (tTestDesc*)NULL
368 * Fix Command Arguments for Badquote
370 const char* apzBadquotePatch[] = { "sed",
371 "-e" "s/doesn't/does not/",
374 /* * * * * * * * * * * * * * * * * * * * * * * * * *
376 * Description 13 - Broken_Assert_Stdio fix
378 tSCC zBroken_Assert_StdioName[] =
379 "Broken_Assert_Stdio";
381 * File name selection pattern
383 tSCC zBroken_Assert_StdioList[] =
387 * content selection pattern
389 tSCC zBroken_Assert_StdioSelect0[] =
393 * content bypass pattern
395 tSCC zBroken_Assert_StdioBypass0[] =
398 #define BROKEN_ASSERT_STDIO_TEST_CT 2
399 tTestDesc aBroken_Assert_StdioTests[] = {
400 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
401 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL } };
404 * Fix Command Arguments for Broken_Assert_Stdio
406 const char* apzBroken_Assert_StdioPatch[] = { "sed",
408 "#include <stdio.h>\n",
411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
413 * Description 14 - Broken_Assert_Stdlib fix
415 tSCC zBroken_Assert_StdlibName[] =
416 "Broken_Assert_Stdlib";
418 * File name selection pattern
420 tSCC zBroken_Assert_StdlibList[] =
424 * content selection pattern
426 tSCC zBroken_Assert_StdlibSelect0[] =
427 "exit *\\(|abort *\\(";
430 * content bypass pattern
432 tSCC zBroken_Assert_StdlibBypass0[] =
435 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
436 tTestDesc aBroken_Assert_StdlibTests[] = {
437 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
438 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL } };
441 * Fix Command Arguments for Broken_Assert_Stdlib
443 const char* apzBroken_Assert_StdlibPatch[] = { "sed",
445 "#ifdef __cplusplus\\\n"
446 "#include <stdlib.h>\\\n"
450 /* * * * * * * * * * * * * * * * * * * * * * * * * *
452 * Description 15 - Bsd43_Io_Macros fix
454 tSCC zBsd43_Io_MacrosName[] =
457 * File name selection pattern
459 #define zBsd43_Io_MacrosList (char*)NULL
462 * content selection pattern
464 tSCC zBsd43_Io_MacrosSelect0[] =
467 #define BSD43_IO_MACROS_TEST_CT 1
468 tTestDesc aBsd43_Io_MacrosTests[] = {
469 { TT_EGREP, zBsd43_Io_MacrosSelect0, (regex_t*)NULL } };
472 * Fix Command Arguments for Bsd43_Io_Macros
474 const char* apzBsd43_Io_MacrosPatch[] = { "sed",
475 "-e" "/[ \t]BSD43__IO[A-Z]*[ \t]*(/s/(\\(.\\),/('\\1',/",
476 "-e" "/#[ \t]*define[ \t]*[ \t]BSD43__IO/s/'\\([cgx]\\)'/\\1/g",
479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
481 * Description 16 - Cxx_Cmnt_Hpux fix
483 tSCC zCxx_Cmnt_HpuxName[] =
486 * File name selection pattern
488 tSCC zCxx_Cmnt_HpuxList[] =
492 * content selection pattern
494 tSCC zCxx_Cmnt_HpuxSelect0[] =
495 "System Private Structures";
497 #define CXX_CMNT_HPUX_TEST_CT 1
498 tTestDesc aCxx_Cmnt_HpuxTests[] = {
499 { TT_EGREP, zCxx_Cmnt_HpuxSelect0, (regex_t*)NULL } };
502 * Fix Command Arguments for Cxx_Cmnt_Hpux
504 const char* apzCxx_Cmnt_HpuxPatch[] = { "sed",
508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
510 * Description 17 - Cxx_Cmnt_Irix fix
512 tSCC zCxx_Cmnt_IrixName[] =
515 * File name selection pattern
517 tSCC zCxx_Cmnt_IrixList[] =
521 * content selection pattern
523 tSCC zCxx_Cmnt_IrixSelect0[] =
526 #define CXX_CMNT_IRIX_TEST_CT 1
527 tTestDesc aCxx_Cmnt_IrixTests[] = {
528 { TT_EGREP, zCxx_Cmnt_IrixSelect0, (regex_t*)NULL } };
531 * Fix Command Arguments for Cxx_Cmnt_Irix
533 const char* apzCxx_Cmnt_IrixPatch[] = { "sed",
537 /* * * * * * * * * * * * * * * * * * * * * * * * * *
539 * Description 18 - Cxx_Cmnt_Sunos fix
541 tSCC zCxx_Cmnt_SunosName[] =
544 * File name selection pattern
546 tSCC zCxx_Cmnt_SunosList[] =
547 "|" "sbusdev/audiovar.h"
548 "|" "sys/audiovar.h" "|";
549 #define CXX_CMNT_SUNOS_TEST_CT 0
550 #define aCxx_Cmnt_SunosTests (tTestDesc*)NULL
553 * Fix Command Arguments for Cxx_Cmnt_Sunos
555 const char* apzCxx_Cmnt_SunosPatch[] = { "sed",
559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
561 * Description 19 - Cxx_Cmnt_Vxworks fix
563 tSCC zCxx_Cmnt_VxworksName[] =
566 * File name selection pattern
568 tSCC zCxx_Cmnt_VxworksList[] =
569 "|" "drv/netif/if_med.h" "|";
572 * content selection pattern
574 tSCC zCxx_Cmnt_VxworksSelect0[] =
577 #define CXX_CMNT_VXWORKS_TEST_CT 1
578 tTestDesc aCxx_Cmnt_VxworksTests[] = {
579 { TT_EGREP, zCxx_Cmnt_VxworksSelect0, (regex_t*)NULL } };
582 * Fix Command Arguments for Cxx_Cmnt_Vxworks
584 const char* apzCxx_Cmnt_VxworksPatch[] = { "sed",
588 /* * * * * * * * * * * * * * * * * * * * * * * * * *
590 * Description 20 - Ecd_Cursor fix
592 tSCC zEcd_CursorName[] =
595 * File name selection pattern
597 tSCC zEcd_CursorList[] =
598 "|" "sunwindow/win_lock.h"
599 "|" "sunwindow/win_cursor.h" "|";
600 #define ECD_CURSOR_TEST_CT 0
601 #define aEcd_CursorTests (tTestDesc*)NULL
604 * Fix Command Arguments for Ecd_Cursor
606 const char* apzEcd_CursorPatch[] = { "sed",
607 "-e" "s/ecd.cursor/ecd_cursor/",
610 /* * * * * * * * * * * * * * * * * * * * * * * * * *
612 * Description 21 - Else_Label fix
614 tSCC zElse_LabelName[] =
617 * File name selection pattern
619 #define zElse_LabelList (char*)NULL
622 * content selection pattern
624 tSCC zElse_LabelSelect0[] =
625 "^[ \t]*#[ \t]*else[ \t]+[!-.0-~]";
627 #define ELSE_LABEL_TEST_CT 1
628 tTestDesc aElse_LabelTests[] = {
629 { TT_EGREP, zElse_LabelSelect0, (regex_t*)NULL } };
632 * Fix Command Arguments for Else_Label
634 const char* apzElse_LabelPatch[] = { "sed",
637 "s/\\\\$/\\\\+++fixinc_eol+++/\n"
639 "s/\\\\+++fixinc_eol+++/\\\\/g\n"
640 "s%^\\([ \t]*#[ \t]*else\\)[ \t]*/[^*].*%\\1%\n"
641 "s%^\\([ \t]*#[ \t]*else\\)[ \t]*[^/ \t].*%\\1%",
644 /* * * * * * * * * * * * * * * * * * * * * * * * * *
646 * Description 22 - Endif_Label fix
648 tSCC zEndif_LabelName[] =
651 * File name selection pattern
653 #define zEndif_LabelList (char*)NULL
656 * content selection pattern
658 tSCC zEndif_LabelSelect0[] =
659 "^[ \t]*#[ \t]*endif[ \t]+[!-.0-~]";
661 #define ENDIF_LABEL_TEST_CT 1
662 tTestDesc aEndif_LabelTests[] = {
663 { TT_EGREP, zEndif_LabelSelect0, (regex_t*)NULL } };
666 * Fix Command Arguments for Endif_Label
668 const char* apzEndif_LabelPatch[] = { "sed",
671 "s/\\\\$/\\\\+++fixinc_eol+++/\n"
673 "s/\\\\+++fixinc_eol+++/\\\\/g\n"
674 "s%^\\([ \t]*#[ \t]*endif\\)[ \t]*/[^*].*%\\1%\n"
675 "s%^\\([ \t]*#[ \t]*endif\\)[ \t]*\\*[^/].*%\\1%\n"
676 "s%^\\([ \t]*#[ \t]*endif\\)[ \t]*[^/* \t].*%\\1%",
679 /* * * * * * * * * * * * * * * * * * * * * * * * * *
681 * Description 23 - Hp_Inline fix
683 tSCC zHp_InlineName[] =
686 * File name selection pattern
688 tSCC zHp_InlineList[] =
689 "|" "sys/spinlock.h" "|";
692 * content selection pattern
694 tSCC zHp_InlineSelect0[] =
695 "include.*\"\\.\\./machine/";
697 #define HP_INLINE_TEST_CT 1
698 tTestDesc aHp_InlineTests[] = {
699 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL } };
702 * Fix Command Arguments for Hp_Inline
704 const char* apzHp_InlinePatch[] = { "sed",
705 "-e" "s,\"../machine/inline.h\",<machine/inline.h>,",
706 "-e" "s,\"../machine/psl.h\",<machine/psl.h>,",
709 /* * * * * * * * * * * * * * * * * * * * * * * * * *
711 * Description 24 - Hp_Sysfile fix
713 tSCC zHp_SysfileName[] =
716 * File name selection pattern
718 tSCC zHp_SysfileList[] =
719 "|" "sys/file.h" "|";
722 * content selection pattern
724 tSCC zHp_SysfileSelect0[] =
727 #define HP_SYSFILE_TEST_CT 1
728 tTestDesc aHp_SysfileTests[] = {
729 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL } };
732 * Fix Command Arguments for Hp_Sysfile
734 const char* apzHp_SysfilePatch[] = { "sed",
735 "-e" "s/(\\.\\.\\.)/(struct file * ...)/",
738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
740 * Description 25 - Hpux_Cxx_Unready fix
742 tSCC zHpux_Cxx_UnreadyName[] =
745 * File name selection pattern
747 tSCC zHpux_Cxx_UnreadyList[] =
749 "|" "sys/mman.h" "|";
752 * content bypass pattern
754 tSCC zHpux_Cxx_UnreadyBypass0[] =
755 "\"C\"|__BEGIN_DECLS";
757 #define HPUX_CXX_UNREADY_TEST_CT 1
758 tTestDesc aHpux_Cxx_UnreadyTests[] = {
759 { TT_NEGREP, zHpux_Cxx_UnreadyBypass0, (regex_t*)NULL }, };
762 * Fix Command Arguments for Hpux_Cxx_Unready
764 const char* apzHpux_Cxx_UnreadyPatch[] = { "sed",
766 "#ifdef __cplusplus\\\n"
771 "#ifdef __cplusplus\\\n"
776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
778 * Description 26 - Hpux_Maxint fix
780 tSCC zHpux_MaxintName[] =
783 * File name selection pattern
785 tSCC zHpux_MaxintList[] =
786 "|" "sys/param.h" "|";
787 #define HPUX_MAXINT_TEST_CT 0
788 #define aHpux_MaxintTests (tTestDesc*)NULL
791 * Fix Command Arguments for Hpux_Maxint
793 const char* apzHpux_MaxintPatch[] = { "sed",
794 "-e" "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n"
796 "-e" "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n"
800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
802 * Description 27 - Hpux_Systime fix
804 tSCC zHpux_SystimeName[] =
807 * File name selection pattern
809 tSCC zHpux_SystimeList[] =
810 "|" "sys/time.h" "|";
813 * content selection pattern
815 tSCC zHpux_SystimeSelect0[] =
816 "^extern struct sigevent;";
818 #define HPUX_SYSTIME_TEST_CT 1
819 tTestDesc aHpux_SystimeTests[] = {
820 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL } };
823 * Fix Command Arguments for Hpux_Systime
825 const char* apzHpux_SystimePatch[] = { "sed",
826 "-e" "s/^extern struct sigevent;/struct sigevent;/",
829 /* * * * * * * * * * * * * * * * * * * * * * * * * *
831 * Description 28 - Interactv_Add1 fix
833 tSCC zInteractv_Add1Name[] =
836 * File name selection pattern
838 tSCC zInteractv_Add1List[] =
844 "|" "sys/dirent.h" "|";
847 * content test pattern. A shell will deal with it later.
849 tSCC zInteractv_Add1Test0[] =
850 "-d /etc/conf/kconfig.d";
851 tSCC zInteractv_Add1Test1[] =
852 "-n \"`grep _POSIX_VERSION /usr/include/sys/unistd.h`\"";
854 #define INTERACTV_ADD1_TEST_CT 2
855 tTestDesc aInteractv_Add1Tests[] = {
856 { TT_TEST, zInteractv_Add1Test0, 0 /* unused */ },
857 { TT_TEST, zInteractv_Add1Test1, 0 /* unused */ }, };
860 * Fix Command Arguments for Interactv_Add1
862 const char* apzInteractv_Add1Patch[] = { "sed",
863 "-e" "s/!defined(__STDC__) && !defined(_POSIX_SOURCE)/!defined(_POSIX_SOURCE)/",
866 /* * * * * * * * * * * * * * * * * * * * * * * * * *
868 * Description 29 - Interactv_Add2 fix
870 tSCC zInteractv_Add2Name[] =
873 * File name selection pattern
875 tSCC zInteractv_Add2List[] =
879 * content test pattern. A shell will deal with it later.
881 tSCC zInteractv_Add2Test0[] =
882 "-d /etc/conf/kconfig.d";
883 tSCC zInteractv_Add2Test1[] =
884 "-n \"`grep _POSIX_VERSION /usr/include/sys/unistd.h`\"";
886 #define INTERACTV_ADD2_TEST_CT 2
887 tTestDesc aInteractv_Add2Tests[] = {
888 { TT_TEST, zInteractv_Add2Test0, 0 /* unused */ },
889 { TT_TEST, zInteractv_Add2Test1, 0 /* unused */ }, };
892 * Fix Command Arguments for Interactv_Add2
894 const char* apzInteractv_Add2Patch[] = { "sed",
895 "-e" "s/fmod(double)/fmod(double, double)/",
898 /* * * * * * * * * * * * * * * * * * * * * * * * * *
900 * Description 30 - Interactv_Add3 fix
902 tSCC zInteractv_Add3Name[] =
905 * File name selection pattern
907 tSCC zInteractv_Add3List[] =
908 "|" "sys/limits.h" "|";
911 * content test pattern. A shell will deal with it later.
913 tSCC zInteractv_Add3Test0[] =
914 "-d /etc/conf/kconfig.d";
915 tSCC zInteractv_Add3Test1[] =
916 "-n \"`grep _POSIX_VERSION /usr/include/sys/unistd.h`\"";
918 #define INTERACTV_ADD3_TEST_CT 2
919 tTestDesc aInteractv_Add3Tests[] = {
920 { TT_TEST, zInteractv_Add3Test0, 0 /* unused */ },
921 { TT_TEST, zInteractv_Add3Test1, 0 /* unused */ }, };
924 * Fix Command Arguments for Interactv_Add3
926 const char* apzInteractv_Add3Patch[] = { "sed",
927 "-e" "/CHILD_MAX/s,/\\* Max, Max,",
928 "-e" "/OPEN_MAX/s,/\\* Max, Max,",
931 /* * * * * * * * * * * * * * * * * * * * * * * * * *
933 * Description 31 - Io_Def_Quotes fix
935 tSCC zIo_Def_QuotesName[] =
938 * File name selection pattern
940 #define zIo_Def_QuotesList (char*)NULL
943 * content selection pattern
945 tSCC zIo_Def_QuotesSelect0[] =
946 "[ \t]_IO[A-Z]*[ \t]*\\([A-Za-z]";
948 #define IO_DEF_QUOTES_TEST_CT 1
949 tTestDesc aIo_Def_QuotesTests[] = {
950 { TT_EGREP, zIo_Def_QuotesSelect0, (regex_t*)NULL } };
953 * Fix Command Arguments for Io_Def_Quotes
955 const char* apzIo_Def_QuotesPatch[] = { "sed",
956 "-e" "s/\\([ \t]_IO[A-Z]*[ \t]*(\\)\\([A-Za-z]\\),/\\1'\\2',/",
957 "-e" "/#[ \t]*define[ \t]*[ \t]_IO/s/'\\([cgxtf]\\)'/\\1/g",
958 "-e" "/#[ \t]*define[ \t]*[ \t]DESIOC/s/'\\([cdgx]\\)'/\\1/g",
961 /* * * * * * * * * * * * * * * * * * * * * * * * * *
963 * Description 32 - Ioctl_Fix_Ctrl fix
965 tSCC zIoctl_Fix_CtrlName[] =
968 * File name selection pattern
970 #define zIoctl_Fix_CtrlList (char*)NULL
973 * content selection pattern
975 tSCC zIoctl_Fix_CtrlSelect0[] =
978 #define IOCTL_FIX_CTRL_TEST_CT 1
979 tTestDesc aIoctl_Fix_CtrlTests[] = {
980 { TT_EGREP, zIoctl_Fix_CtrlSelect0, (regex_t*)NULL } };
983 * Fix Command Arguments for Ioctl_Fix_Ctrl
985 const char* apzIoctl_Fix_CtrlPatch[] = { "sed",
986 "-e" "/[^A-Z0-9_]CTRL[ \t]*(/s/\\([^']\\))/'\\1')/",
987 "-e" "/[^A-Z0-9]_CTRL[ \t]*(/s/\\([^']\\))/'\\1')/",
988 "-e" "/#[ \t]*define[ \t]*[ \t]CTRL/s/'\\([cgx]\\)'/\\1/g",
989 "-e" "/#[ \t]*define[ \t]*[ \t]_CTRL/s/'\\([cgx]\\)'/\\1/g",
990 "-e" "/#[ \t]*define[ \t]*[ \t]BSD43_CTRL/s/'\\([cgx]\\)'/\\1/g",
993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
995 * Description 33 - Ip_Missing_Semi fix
997 tSCC zIp_Missing_SemiName[] =
1000 * File name selection pattern
1002 tSCC zIp_Missing_SemiList[] =
1003 "|" "netinet/ip.h" "|";
1004 #define IP_MISSING_SEMI_TEST_CT 0
1005 #define aIp_Missing_SemiTests (tTestDesc*)NULL
1008 * Fix Command Arguments for Ip_Missing_Semi
1010 const char* apzIp_Missing_SemiPatch[] = { "sed",
1011 "-e" "/^struct/,/^};/s/}$/};/",
1014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1016 * Description 34 - Irix_Bogus_Cxx_Cmnt fix
1018 tSCC zIrix_Bogus_Cxx_CmntName[] =
1019 "Irix_Bogus_Cxx_Cmnt";
1021 * File name selection pattern
1023 tSCC zIrix_Bogus_Cxx_CmntList[] =
1026 #define IRIX_BOGUS_CXX_CMNT_TEST_CT 0
1027 #define aIrix_Bogus_Cxx_CmntTests (tTestDesc*)NULL
1030 * Fix Command Arguments for Irix_Bogus_Cxx_Cmnt
1032 const char* apzIrix_Bogus_Cxx_CmntPatch[] = { "sed",
1033 "-e" "s@\"/\\*\"\\*/@\"//\"@",
1036 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1038 * Description 35 - Irix_Multiline_Cmnt fix
1040 tSCC zIrix_Multiline_CmntName[] =
1041 "Irix_Multiline_Cmnt";
1043 * File name selection pattern
1045 tSCC zIrix_Multiline_CmntList[] =
1046 "|" "sys/types.h" "|";
1047 #define IRIX_MULTILINE_CMNT_TEST_CT 0
1048 #define aIrix_Multiline_CmntTests (tTestDesc*)NULL
1051 * Fix Command Arguments for Irix_Multiline_Cmnt
1053 const char* apzIrix_Multiline_CmntPatch[] = { "sed",
1054 "-e" "s@type of the result@type of the result */@",
1055 "-e" "s@of the sizeof@/* of the sizeof@",
1058 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1060 * Description 36 - Irix_Sockaddr fix
1062 tSCC zIrix_SockaddrName[] =
1065 * File name selection pattern
1067 tSCC zIrix_SockaddrList[] =
1068 "|" "rpc/auth.h" "|";
1071 * content selection pattern
1073 tSCC zIrix_SockaddrSelect0[] =
1074 "authdes_create.*struct sockaddr";
1076 #define IRIX_SOCKADDR_TEST_CT 1
1077 tTestDesc aIrix_SockaddrTests[] = {
1078 { TT_EGREP, zIrix_SockaddrSelect0, (regex_t*)NULL } };
1081 * Fix Command Arguments for Irix_Sockaddr
1083 const char* apzIrix_SockaddrPatch[] = { "sed",
1084 "-e" "/authdes_create.*struct sockaddr/i\\\n"
1085 "struct sockaddr;\n",
1088 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1090 * Description 37 - Irix_Struct__File fix
1092 tSCC zIrix_Struct__FileName[] =
1093 "Irix_Struct__File";
1095 * File name selection pattern
1097 tSCC zIrix_Struct__FileList[] =
1098 "|" "rpc/xdr.h" "|";
1099 #define IRIX_STRUCT__FILE_TEST_CT 0
1100 #define aIrix_Struct__FileTests (tTestDesc*)NULL
1103 * Fix Command Arguments for Irix_Struct__File
1105 const char* apzIrix_Struct__FilePatch[] = { "sed",
1106 "-e" "/xdrstdio_create.*struct __file_s/i\\\n"
1107 "struct __file_s;\n",
1110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1112 * Description 38 - Isc_Fmod fix
1114 tSCC zIsc_FmodName[] =
1117 * File name selection pattern
1119 tSCC zIsc_FmodList[] =
1123 * content selection pattern
1125 tSCC zIsc_FmodSelect0[] =
1128 #define ISC_FMOD_TEST_CT 1
1129 tTestDesc aIsc_FmodTests[] = {
1130 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL } };
1133 * Fix Command Arguments for Isc_Fmod
1135 const char* apzIsc_FmodPatch[] = { "sed",
1136 "-e" "s/fmod(double)/fmod(double, double)/",
1139 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1141 * Description 39 - Isc_Sys_Limits fix
1143 tSCC zIsc_Sys_LimitsName[] =
1146 * File name selection pattern
1148 tSCC zIsc_Sys_LimitsList[] =
1149 "|" "sys/limits.h" "|";
1152 * content selection pattern
1154 tSCC zIsc_Sys_LimitsSelect0[] =
1157 #define ISC_SYS_LIMITS_TEST_CT 1
1158 tTestDesc aIsc_Sys_LimitsTests[] = {
1159 { TT_EGREP, zIsc_Sys_LimitsSelect0, (regex_t*)NULL } };
1162 * Fix Command Arguments for Isc_Sys_Limits
1164 const char* apzIsc_Sys_LimitsPatch[] = { "sed",
1165 "-e" "/CHILD_MAX/s,/\\* Max, Max,",
1166 "-e" "/OPEN_MAX/s,/\\* Max, Max,",
1169 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1171 * Description 40 - Kandr_Concat fix
1173 tSCC zKandr_ConcatName[] =
1176 * File name selection pattern
1178 tSCC zKandr_ConcatList[] =
1179 "|" "sparc/asm_linkage.h"
1180 "|" "sun3/asm_linkage.h"
1181 "|" "sun3x/asm_linkage.h"
1182 "|" "sun4/asm_linkage.h"
1183 "|" "sun4c/asm_linkage.h"
1184 "|" "sun4m/asm_linkage.h"
1185 "|" "sun4c/debug/asm_linkage.h"
1186 "|" "sun4m/debug/asm_linkage.h"
1187 "|" "arm/as_support.h"
1190 "|" "dev/chardefmac.h"
1195 "|" "Xm.acorn/XmP.h"
1196 "|" "bsd43/bsd43_.h" "|";
1199 * content selection pattern
1201 tSCC zKandr_ConcatSelect0[] =
1204 #define KANDR_CONCAT_TEST_CT 1
1205 tTestDesc aKandr_ConcatTests[] = {
1206 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL } };
1209 * Fix Command Arguments for Kandr_Concat
1211 const char* apzKandr_ConcatPatch[] = { "sed",
1212 "-e" "s|/\\*\\*/| ## |g",
1215 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1217 * Description 41 - Limits_Ifndefs fix
1219 tSCC zLimits_IfndefsName[] =
1222 * File name selection pattern
1224 tSCC zLimits_IfndefsList[] =
1228 * content bypass pattern
1230 tSCC zLimits_IfndefsBypass0[] =
1231 "ifndef[ \t]+FLT_MIN";
1233 #define LIMITS_IFNDEFS_TEST_CT 1
1234 tTestDesc aLimits_IfndefsTests[] = {
1235 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
1238 * Fix Command Arguments for Limits_Ifndefs
1240 const char* apzLimits_IfndefsPatch[] = { "sed",
1241 "-e" "/[ \t]FLT_MIN[ \t]/i\\\n"
1242 "#ifndef FLT_MIN\n",
1243 "-e" "/[ \t]FLT_MIN[ \t]/a\\\n"
1245 "-e" "/[ \t]FLT_MAX[ \t]/i\\\n"
1246 "#ifndef FLT_MAX\n",
1247 "-e" "/[ \t]FLT_MAX[ \t]/a\\\n"
1249 "-e" "/[ \t]FLT_DIG[ \t]/i\\\n"
1250 "#ifndef FLT_DIG\n",
1251 "-e" "/[ \t]FLT_DIG[ \t]/a\\\n"
1253 "-e" "/[ \t]DBL_MIN[ \t]/i\\\n"
1254 "#ifndef DBL_MIN\n",
1255 "-e" "/[ \t]DBL_MIN[ \t]/a\\\n"
1257 "-e" "/[ \t]DBL_MAX[ \t]/i\\\n"
1258 "#ifndef DBL_MAX\n",
1259 "-e" "/[ \t]DBL_MAX[ \t]/a\\\n"
1261 "-e" "/[ \t]DBL_DIG[ \t]/i\\\n"
1262 "#ifndef DBL_DIG\n",
1263 "-e" "/[ \t]DBL_DIG[ \t]/a\\\n"
1267 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1269 * Description 42 - Lynx_Void_Int fix
1271 tSCC zLynx_Void_IntName[] =
1274 * File name selection pattern
1276 tSCC zLynx_Void_IntList[] =
1280 * content selection pattern
1282 tSCC zLynx_Void_IntSelect0[] =
1283 "#[ \t]*define[ \t]+void[ \t]+int";
1285 #define LYNX_VOID_INT_TEST_CT 1
1286 tTestDesc aLynx_Void_IntTests[] = {
1287 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL } };
1290 * Fix Command Arguments for Lynx_Void_Int
1292 const char* apzLynx_Void_IntPatch[] = { "sed",
1293 "-e" "/#[ \t]*define[ \t][ \t]*void[ \t]int/d",
1296 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1298 * Description 43 - Lynxos_Fcntl_Proto fix
1300 tSCC zLynxos_Fcntl_ProtoName[] =
1301 "Lynxos_Fcntl_Proto";
1303 * File name selection pattern
1305 tSCC zLynxos_Fcntl_ProtoList[] =
1307 #define LYNXOS_FCNTL_PROTO_TEST_CT 0
1308 #define aLynxos_Fcntl_ProtoTests (tTestDesc*)NULL
1311 * Fix Command Arguments for Lynxos_Fcntl_Proto
1313 const char* apzLynxos_Fcntl_ProtoPatch[] = { "sed",
1314 "-e" "s/\\(fcntl.*(int, int, \\)int)/\\1...)/",
1317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1319 * Description 44 - M88k_Bad_Hypot_Opt fix
1321 tSCC zM88k_Bad_Hypot_OptName[] =
1322 "M88k_Bad_Hypot_Opt";
1324 * File name selection pattern
1326 tSCC zM88k_Bad_Hypot_OptList[] =
1328 #define M88K_BAD_HYPOT_OPT_TEST_CT 0
1329 #define aM88k_Bad_Hypot_OptTests (tTestDesc*)NULL
1332 * Fix Command Arguments for M88k_Bad_Hypot_Opt
1334 const char* apzM88k_Bad_Hypot_OptPatch[] = { "sed",
1335 "-e" "s/extern double floor(), ceil(), fmod(), fabs();/extern double floor(), ceil(), fmod(), fabs _PARAMS((double));/",
1336 "-e" "/^extern double hypot();$/a\\\n"
1337 "\\/* Workaround a stupid Motorola optimization if one\\\n"
1338 " of x or y is 0.0 and the other is negative! *\\/\\\n"
1339 "#ifdef __STDC__\\\n"
1340 "static __inline__ double fake_hypot (double x, double y)\\\n"
1342 "static __inline__ double fake_hypot (x, y)\\\n"
1343 "\tdouble x, y;\\\n"
1346 "\treturn fabs (hypot (x, y));\\\n"
1348 "#define hypot\tfake_hypot\n",
1351 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1353 * Description 45 - M88k_Bad_S_If fix
1355 tSCC zM88k_Bad_S_IfName[] =
1358 * File name selection pattern
1360 tSCC zM88k_Bad_S_IfList[] =
1361 "|" "sys/stat.h" "|";
1364 * content selection pattern
1366 tSCC zM88k_Bad_S_IfSelect0[] =
1367 "#define[ \t]+S_IS[A-Z]*(m)[ \t]";
1369 #define M88K_BAD_S_IF_TEST_CT 1
1370 tTestDesc aM88k_Bad_S_IfTests[] = {
1371 { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL } };
1374 * Fix Command Arguments for M88k_Bad_S_If
1376 const char* apzM88k_Bad_S_IfPatch[] = { "sed",
1377 "-e" "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(S_IF[A-Z][A-Z][A-Z][A-Z]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",
1378 "-e" "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(0[0-9]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",
1381 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1383 * Description 46 - M88k_Multi_Incl fix
1385 tSCC zM88k_Multi_InclName[] =
1388 * File name selection pattern
1390 tSCC zM88k_Multi_InclList[] =
1394 * content bypass pattern
1396 tSCC zM88k_Multi_InclBypass0[] =
1399 #define M88K_MULTI_INCL_TEST_CT 1
1400 tTestDesc aM88k_Multi_InclTests[] = {
1401 { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
1404 * Fix Command Arguments for M88k_Multi_Incl
1406 const char* apzM88k_Multi_InclPatch[] = { "sh", "-c",
1407 "echo Fixing $file, to protect against multiple inclusion. >&2\n"
1408 " cpp_wrapper=`echo $file | sed -e 's,\\.,_,g' -e 's,/,_,g'`\n"
1410 "#ifndef __GCC_GOT_${cpp_wrapper}_\\\n"
1411 "#define __GCC_GOT_${cpp_wrapper}_\\\n"
1414 "#endif /* ! __GCC_GOT_${cpp_wrapper}_ */\n"
1418 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1420 * Description 47 - Machine_Name fix
1422 tSCC zMachine_NameName[] =
1425 * File name selection pattern
1427 #define zMachine_NameList (char*)NULL
1430 * content selection pattern
1432 tSCC zMachine_NameSelect0[] =
1433 "^#[ \t]*(if|elif).*[^a-zA-Z0-9_](M32|_*(MIPSE[LB]|SYSTYPE_[A-Z0-9]|[Rr][34]000|host_mips|i386|mips)($|[^a-zA-Z0-9_])|bsd4|is68k|m[68]8k|mc680|news|ns32000|pdp11|pyr|sel|sony_news|sparc|sun|tahoe|tower|u370|u3b|unix|vax)";
1435 #define MACHINE_NAME_TEST_CT 1
1436 tTestDesc aMachine_NameTests[] = {
1437 { TT_EGREP, zMachine_NameSelect0, (regex_t*)NULL } };
1440 * Fix Command Arguments for Machine_Name
1442 const char* apzMachine_NamePatch[] = { "sed",
1445 "s/\\\\$/\\\\+++fixinc_eol+++/\n"
1447 "s/\\\\+++fixinc_eol+++/\\\\/g\n"
1448 "/#[\t ]*[el]*if/ {\n"
1449 "\ts/[a-zA-Z0-9_][a-zA-Z0-9_]*/ & /g\n"
1450 "\ts/ M32 / __M32__ /g\n"
1451 "\ts/ _*MIPSE\\([LB]\\) / __MIPSE\\1__ /g\n"
1452 "\ts/ _*SYSTYPE_\\([A-Z0-9]*\\) / __SYSTYPE_\\1__ /g\n"
1453 "\ts/ _*\\([Rr][34]\\)000 / __\\1000__ /g\n"
1454 "\ts/ _*host_mips / __host_mips__ /g\n"
1455 "\ts/ _*i386 / __i386__ /g\n"
1456 "\ts/ _*mips / __mips__ /g\n"
1457 "\ts/ bsd4\\([0-9]\\) / __bsd4\\1__ /g\n"
1458 "\ts/ is68k / __is68k__ /g\n"
1459 "\ts/ m68k / __m68k__ /g\n"
1460 "\ts/ m88k / __m88k__ /g\n"
1461 "\ts/ mc680\\([0-9]\\)0 / __mc680\\10__ /g\n"
1462 "\ts/ news\\([0-9]*\\) / __news\\1__ /g\n"
1463 "\ts/ ns32000 / __ns32000__ /g\n"
1464 "\ts/ pdp11 / __pdp11__ /g\n"
1465 "\ts/ pyr / __pyr__ /g\n"
1466 "\ts/ sel / __sel__ /g\n"
1467 "\ts/ sony_news / __sony_news__ /g\n"
1468 "\ts/ sparc / __sparc__ /g\n"
1469 "\ts/ sun\\([a-z0-9]*\\) / __sun\\1__ /g\n"
1470 "\ts/ tahoe / __tahoe__ /g\n"
1471 "\ts/ tower\\([_0-9]*\\) / __tower\\1__ /g\n"
1472 "\ts/ u370 / __u370__ /g\n"
1473 "\ts/ u3b\\([0-9]*\\) / __u3b\\1__ /g\n"
1474 "\ts/ unix / __unix__ /g\n"
1475 "\ts/ vax / __vax__ /g\n"
1476 "\ts/ \\([a-zA-Z0-9_][a-zA-Z0-9_]*\\) /\\1/g\n"
1480 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1482 * Description 48 - Math_Exception fix
1484 tSCC zMath_ExceptionName[] =
1487 * File name selection pattern
1489 tSCC zMath_ExceptionList[] =
1493 * content selection pattern
1495 tSCC zMath_ExceptionSelect0[] =
1498 #define MATH_EXCEPTION_TEST_CT 1
1499 tTestDesc aMath_ExceptionTests[] = {
1500 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL } };
1503 * Fix Command Arguments for Math_Exception
1505 const char* apzMath_ExceptionPatch[] = { "sed",
1506 "-e" "/struct exception/i\\\n"
1507 "#ifdef __cplusplus\\\n"
1508 "#define exception __math_exception\\\n"
1510 "-e" "/struct exception/a\\\n"
1511 "#ifdef __cplusplus\\\n"
1512 "#undef exception\\\n"
1514 "-e" "/matherr/i\\\n"
1515 "#ifdef __cplusplus\\\n"
1516 "#define exception __math_exception\\\n"
1518 "-e" "/matherr/a\\\n"
1519 "#ifdef __cplusplus\\\n"
1520 "#undef exception\\\n"
1524 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1526 * Description 49 - Math_Gcc_Ifndefs fix
1528 tSCC zMath_Gcc_IfndefsName[] =
1531 * File name selection pattern
1533 tSCC zMath_Gcc_IfndefsList[] =
1535 #define MATH_GCC_IFNDEFS_TEST_CT 0
1536 #define aMath_Gcc_IfndefsTests (tTestDesc*)NULL
1539 * Fix Command Arguments for Math_Gcc_Ifndefs
1541 const char* apzMath_Gcc_IfndefsPatch[] = { "sh", "-c",
1542 " dbl_max_def=\"`egrep 'define[ \t]+DBL_MAX[ \t]+.*' ${SRCDIR}/float.h 2>/dev/null`\"\n"
1544 "\tif ( test -n \"${dbl_max_def}\" \\\n"
1545 "\t\t-a -n \"`egrep '#define[ \t]*HUGE_VAL[ \t]+DBL_MAX' $file`\" \\\n"
1546 "\t\t-a -z \"`egrep '#define[ \t]+DBL_MAX[ \t]+' $file`\"\n"
1547 "\t ) > /dev/null 2>&1\n"
1548 "\tthen sed -e '/define[ \t]HUGE_VAL[ \t]/i\\\n"
1549 "#ifndef HUGE_VAL\n"
1551 "\t-e '/define[ \t]HUGE_VAL[ \t]/a\\\n"
1554 "\t-e \"/define[ \t]HUGE_VAL[ \t]DBL_MAX/s/DBL_MAX/$dbl_max_def/\"\n"
1555 "\telse sed -e '/define[ \t]HUGE_VAL[ \t]/i\\\n"
1556 "#ifndef HUGE_VAL\n"
1558 "\t-e '/define[ \t]HUGE_VAL[ \t]/a\\\n"
1564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1566 * Description 50 - Motorola_Stupid_Opt fix
1568 tSCC zMotorola_Stupid_OptName[] =
1569 "Motorola_Stupid_Opt";
1571 * File name selection pattern
1573 tSCC zMotorola_Stupid_OptList[] =
1577 * content selection pattern
1579 tSCC zMotorola_Stupid_OptSelect0[] =
1580 "^extern double hypot();$";
1582 #define MOTOROLA_STUPID_OPT_TEST_CT 1
1583 tTestDesc aMotorola_Stupid_OptTests[] = {
1584 { TT_EGREP, zMotorola_Stupid_OptSelect0, (regex_t*)NULL } };
1587 * Fix Command Arguments for Motorola_Stupid_Opt
1589 const char* apzMotorola_Stupid_OptPatch[] = { "sed",
1590 "-e" "/^extern double hypot();$/a\\\n"
1591 "\\/* Workaround a stupid Motorola optimization if one\\\n"
1592 " of x or y is 0.0 and the other is negative! *\\/\\\n"
1593 "#ifdef __STDC__\\\n"
1594 "static __inline__ double fake_hypot (double x, double y)\\\n"
1596 "static __inline__ double fake_hypot (x, y)\\\n"
1597 "\tdouble x, y;\\\n"
1600 "\treturn fabs (hypot (x, y));\\\n"
1602 "#define hypot\tfake_hypot\n",
1605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1607 * Description 51 - Nested_Comment fix
1609 tSCC zNested_CommentName[] =
1612 * File name selection pattern
1614 tSCC zNested_CommentList[] =
1615 "|" "rpc/rpc.h" "|";
1616 #define NESTED_COMMENT_TEST_CT 0
1617 #define aNested_CommentTests (tTestDesc*)NULL
1620 * Fix Command Arguments for Nested_Comment
1622 const char* apzNested_CommentPatch[] = { "sed",
1623 "-e" "s@^\\(/\\*.*rpc/auth_des.h>.*\\)/\\*@\\1*/ /*@",
1626 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1628 * Description 52 - News_Os_Recursion fix
1630 tSCC zNews_Os_RecursionName[] =
1631 "News_Os_Recursion";
1633 * File name selection pattern
1635 tSCC zNews_Os_RecursionList[] =
1639 * content selection pattern
1641 tSCC zNews_Os_RecursionSelect0[] =
1642 "#include <stdlib.h>";
1644 #define NEWS_OS_RECURSION_TEST_CT 1
1645 tTestDesc aNews_Os_RecursionTests[] = {
1646 { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL } };
1649 * Fix Command Arguments for News_Os_Recursion
1651 const char* apzNews_Os_RecursionPatch[] = { "sed",
1652 "-e" "/^#include <stdlib.h>/i\\\n"
1653 "#ifdef BOGUS_RECURSION\n",
1654 "-e" "/^#include <stdlib.h>/a\\\n"
1658 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1660 * Description 53 - Next_Math_Prefix fix
1662 tSCC zNext_Math_PrefixName[] =
1665 * File name selection pattern
1667 tSCC zNext_Math_PrefixList[] =
1668 "|" "ansi/math.h" "|";
1671 * content selection pattern
1673 tSCC zNext_Math_PrefixSelect0[] =
1674 "^extern.*double.*__const__.*";
1676 #define NEXT_MATH_PREFIX_TEST_CT 1
1677 tTestDesc aNext_Math_PrefixTests[] = {
1678 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL } };
1681 * Fix Command Arguments for Next_Math_Prefix
1683 const char* apzNext_Math_PrefixPatch[] = { "sed",
1684 "-e" "/^extern.*double.*__const__.*sqrt(/s/__const__//",
1685 "-e" "/^extern.*double.*__const__.*fabs(/s/__const__//",
1686 "-e" "/^extern.*double.*__const__.*cos(/s/__const__//",
1687 "-e" "/^extern.*double.*__const__.*hypot(/s/__const__//",
1688 "-e" "/^extern.*double.*__const__.*sin(/s/__const__//",
1691 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1693 * Description 54 - Next_Template fix
1695 tSCC zNext_TemplateName[] =
1698 * File name selection pattern
1700 tSCC zNext_TemplateList[] =
1701 "|" "bsd/libc.h" "|";
1704 * content selection pattern
1706 tSCC zNext_TemplateSelect0[] =
1709 #define NEXT_TEMPLATE_TEST_CT 1
1710 tTestDesc aNext_TemplateTests[] = {
1711 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL } };
1714 * Fix Command Arguments for Next_Template
1716 const char* apzNext_TemplatePatch[] = { "sed",
1717 "-e" "/\\(.*template\\)/s/template//",
1718 "-e" "/extern.*volatile.*void.*abort/s/volatile//",
1721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1723 * Description 55 - Next_Volitile fix
1725 tSCC zNext_VolitileName[] =
1728 * File name selection pattern
1730 tSCC zNext_VolitileList[] =
1731 "|" "ansi/stdlib.h" "|";
1734 * content selection pattern
1736 tSCC zNext_VolitileSelect0[] =
1739 #define NEXT_VOLITILE_TEST_CT 1
1740 tTestDesc aNext_VolitileTests[] = {
1741 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL } };
1744 * Fix Command Arguments for Next_Volitile
1746 const char* apzNext_VolitilePatch[] = { "sed",
1747 "-e" "/extern.*volatile.*void.*exit/s/volatile//",
1748 "-e" "/extern.*volatile.*void.*abort/s/volatile//",
1751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1753 * Description 56 - Next_Wait_Union fix
1755 tSCC zNext_Wait_UnionName[] =
1758 * File name selection pattern
1760 tSCC zNext_Wait_UnionList[] =
1761 "|" "sys/wait.h" "|";
1764 * content selection pattern
1766 tSCC zNext_Wait_UnionSelect0[] =
1767 "wait\\(union wait";
1769 #define NEXT_WAIT_UNION_TEST_CT 1
1770 tTestDesc aNext_Wait_UnionTests[] = {
1771 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL } };
1774 * Fix Command Arguments for Next_Wait_Union
1776 const char* apzNext_Wait_UnionPatch[] = { "sed",
1777 "-e" "s@wait(union wait@wait(void@",
1780 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1782 * Description 57 - No_Double_Slash fix
1784 tSCC zNo_Double_SlashName[] =
1787 * File name selection pattern
1789 #define zNo_Double_SlashList (char*)NULL
1792 * content selection pattern
1794 tSCC zNo_Double_SlashSelect0[] =
1798 * content test pattern. A shell will deal with it later.
1800 tSCC zNo_Double_SlashTest0[] =
1801 "-z \"`echo ${f}|grep ++`\"";
1803 #define NO_DOUBLE_SLASH_TEST_CT 2
1804 tTestDesc aNo_Double_SlashTests[] = {
1805 { TT_TEST, zNo_Double_SlashTest0, 0 /* unused */ },
1806 { TT_EGREP, zNo_Double_SlashSelect0, (regex_t*)NULL } };
1809 * Fix Command Arguments for No_Double_Slash
1811 const char* apzNo_Double_SlashPatch[] = { "sed",
1812 "-e" "/\\/\\/[^*]/s|//\\(.*\\)$|/* \\1 */|",
1815 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1817 * Description 58 - Nodeent_Syntax fix
1819 tSCC zNodeent_SyntaxName[] =
1822 * File name selection pattern
1824 tSCC zNodeent_SyntaxList[] =
1825 "|" "netdnet/dnetdb.h" "|";
1826 #define NODEENT_SYNTAX_TEST_CT 0
1827 #define aNodeent_SyntaxTests (tTestDesc*)NULL
1830 * Fix Command Arguments for Nodeent_Syntax
1832 const char* apzNodeent_SyntaxPatch[] = { "sed",
1833 "-e" "s/char.*na_addr *$/char *na_addr;/",
1836 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1838 * Description 59 - Osf_Namespace_A fix
1840 tSCC zOsf_Namespace_AName[] =
1843 * File name selection pattern
1845 tSCC zOsf_Namespace_AList[] =
1847 "|" "sys/lc_core.h" "|";
1850 * content test pattern. A shell will deal with it later.
1852 tSCC zOsf_Namespace_ATest0[] =
1853 "-r reg_types.h-a -r sys/lc_core.h-a -n \"`grep '} regex_t;' reg_types.h`\"-a -z \"`grep __regex_t regex.h`\"";
1855 #define OSF_NAMESPACE_A_TEST_CT 1
1856 tTestDesc aOsf_Namespace_ATests[] = {
1857 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ }, };
1860 * Fix Command Arguments for Osf_Namespace_A
1862 const char* apzOsf_Namespace_APatch[] = { "sed",
1863 "-e" "s/regex_t/__regex_t/g",
1864 "-e" "s/regoff_t/__regoff_t/g",
1865 "-e" "s/regmatch_t/__regmatch_t/g",
1868 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1870 * Description 60 - Osf_Namespace_B fix
1872 tSCC zOsf_Namespace_BName[] =
1875 * File name selection pattern
1877 tSCC zOsf_Namespace_BList[] =
1881 * content test pattern. A shell will deal with it later.
1883 tSCC zOsf_Namespace_BTest0[] =
1884 "-r reg_types.h-a -r sys/lc_core.h-a -n \"`grep '} regex_t;' reg_types.h`\"-a -z \"`grep __regex_t regex.h`\"";
1886 #define OSF_NAMESPACE_B_TEST_CT 1
1887 tTestDesc aOsf_Namespace_BTests[] = {
1888 { TT_TEST, zOsf_Namespace_BTest0, 0 /* unused */ }, };
1891 * Fix Command Arguments for Osf_Namespace_B
1893 const char* apzOsf_Namespace_BPatch[] = { "sed",
1894 "-e" "/#include <reg_types.h>/a\\\n"
1895 "typedef __regex_t\tregex_t;\\\n"
1896 "typedef __regoff_t\tregoff_t;\\\n"
1897 "typedef __regmatch_t\tregmatch_t;\n",
1900 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1902 * Description 61 - Pthread_Page_Size fix
1904 tSCC zPthread_Page_SizeName[] =
1905 "Pthread_Page_Size";
1907 * File name selection pattern
1909 tSCC zPthread_Page_SizeList[] =
1910 "|" "pthread.h" "|";
1913 * content selection pattern
1915 tSCC zPthread_Page_SizeSelect0[] =
1918 #define PTHREAD_PAGE_SIZE_TEST_CT 1
1919 tTestDesc aPthread_Page_SizeTests[] = {
1920 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL } };
1923 * Fix Command Arguments for Pthread_Page_Size
1925 const char* apzPthread_Page_SizePatch[] = { "sed",
1926 "-e" "s/^int __page_size/extern int __page_size/",
1929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1931 * Description 62 - Rs6000_Double fix
1933 tSCC zRs6000_DoubleName[] =
1936 * File name selection pattern
1938 tSCC zRs6000_DoubleList[] =
1942 * content selection pattern
1944 tSCC zRs6000_DoubleSelect0[] =
1945 "[^a-zA-Z_]class\\(";
1947 #define RS6000_DOUBLE_TEST_CT 1
1948 tTestDesc aRs6000_DoubleTests[] = {
1949 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL } };
1952 * Fix Command Arguments for Rs6000_Double
1954 const char* apzRs6000_DoublePatch[] = { "sed",
1955 "-e" "/class[(]/i\\\n"
1956 "#ifndef __cplusplus\n",
1957 "-e" "/class[(]/a\\\n"
1961 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1963 * Description 63 - Rs6000_Fchmod fix
1965 tSCC zRs6000_FchmodName[] =
1968 * File name selection pattern
1970 tSCC zRs6000_FchmodList[] =
1971 "|" "sys/stat.h" "|";
1974 * content selection pattern
1976 tSCC zRs6000_FchmodSelect0[] =
1979 #define RS6000_FCHMOD_TEST_CT 1
1980 tTestDesc aRs6000_FchmodTests[] = {
1981 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL } };
1984 * Fix Command Arguments for Rs6000_Fchmod
1986 const char* apzRs6000_FchmodPatch[] = { "sed",
1987 "-e" "s/fchmod(char \\*/fchmod(int/",
1990 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1992 * Description 64 - Rs6000_Param fix
1994 tSCC zRs6000_ParamName[] =
1997 * File name selection pattern
1999 tSCC zRs6000_ParamList[] =
2002 #define RS6000_PARAM_TEST_CT 0
2003 #define aRs6000_ParamTests (tTestDesc*)NULL
2006 * Fix Command Arguments for Rs6000_Param
2008 const char* apzRs6000_ParamPatch[] = { "sed",
2009 "-e" "s@rename(const char \\*old, const char \\*new)@rename(const char *_old, const char *_new)@",
2012 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2014 * Description 65 - Sony_Include fix
2016 tSCC zSony_IncludeName[] =
2019 * File name selection pattern
2021 tSCC zSony_IncludeList[] =
2022 "|" "machine/machparam.h" "|";
2025 * content selection pattern
2027 tSCC zSony_IncludeSelect0[] =
2028 "\"\\.\\./machine/endian.h\"";
2030 #define SONY_INCLUDE_TEST_CT 1
2031 tTestDesc aSony_IncludeTests[] = {
2032 { TT_EGREP, zSony_IncludeSelect0, (regex_t*)NULL } };
2035 * Fix Command Arguments for Sony_Include
2037 const char* apzSony_IncludePatch[] = { "sed",
2038 "-e" "s@\"../machine/endian.h\"@<machine/endian.h>@",
2041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2043 * Description 66 - Statsswtch fix
2045 tSCC zStatsswtchName[] =
2048 * File name selection pattern
2050 tSCC zStatsswtchList[] =
2051 "|" "rpcsvc/rstat.h" "|";
2054 * content selection pattern
2056 tSCC zStatsswtchSelect0[] =
2059 #define STATSSWTCH_TEST_CT 1
2060 tTestDesc aStatsswtchTests[] = {
2061 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL } };
2064 * Fix Command Arguments for Statsswtch
2066 const char* apzStatsswtchPatch[] = { "sed",
2067 "-e" "s/boottime$/boottime;/",
2070 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2072 * Description 67 - Stdio_Va_List fix
2074 tSCC zStdio_Va_ListName[] =
2077 * File name selection pattern
2079 tSCC zStdio_Va_ListList[] =
2081 #define STDIO_VA_LIST_TEST_CT 0
2082 #define aStdio_Va_ListTests (tTestDesc*)NULL
2085 * Fix Command Arguments for Stdio_Va_List
2087 const char* apzStdio_Va_ListPatch[] = { "sh", "-c",
2088 "if ( egrep \"__need___va_list\" $file ) > /dev/null 2>&1 ; then\n"
2091 " echo \"#define __need___va_list\"\n"
2092 " echo \"#include <stdarg.h>\"\n"
2095 " sed -e 's@ va_list @ __gnuc_va_list @' \\\n"
2096 " -e 's@ va_list)@ __gnuc_va_list)@' \\\n"
2097 " -e 's@ _BSD_VA_LIST_));@ __gnuc_va_list));@' \\\n"
2098 " -e 's@ _VA_LIST_));@ __gnuc_va_list));@' \\\n"
2099 " -e 's@ va_list@ __va_list__@' \\\n"
2100 " -e 's@\\*va_list@*__va_list__@' \\\n"
2101 " -e 's@ __va_list)@ __gnuc_va_list)@' \\\n"
2102 " -e 's@GNUC_VA_LIST@GNUC_Va_LIST@' \\\n"
2103 " -e 's@_NEED___VA_LIST@_NEED___Va_LIST@' \\\n"
2104 " -e 's@VA_LIST@DUMMY_VA_LIST@' \\\n"
2105 " -e 's@_Va_LIST@_VA_LIST@'",
2108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2110 * Description 68 - Sun_Bogus_Ifdef fix
2112 tSCC zSun_Bogus_IfdefName[] =
2115 * File name selection pattern
2117 tSCC zSun_Bogus_IfdefList[] =
2118 "|" "hsfs/hsfs_spec.h"
2119 "|" "hsfs/iso_spec.h" "|";
2122 * content selection pattern
2124 tSCC zSun_Bogus_IfdefSelect0[] =
2125 "#ifdef __i386__ || __vax__";
2127 #define SUN_BOGUS_IFDEF_TEST_CT 1
2128 tTestDesc aSun_Bogus_IfdefTests[] = {
2129 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL } };
2132 * Fix Command Arguments for Sun_Bogus_Ifdef
2134 const char* apzSun_Bogus_IfdefPatch[] = { "sed",
2135 "-e" "s/\\#ifdef __i386__ || __vax__/\\#if __i386__ || __vax__/g",
2138 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2140 * Description 69 - Sun_Bogus_Ifdef_Sun4c fix
2142 tSCC zSun_Bogus_Ifdef_Sun4cName[] =
2143 "Sun_Bogus_Ifdef_Sun4c";
2145 * File name selection pattern
2147 tSCC zSun_Bogus_Ifdef_Sun4cList[] =
2148 "|" "hsfs/hsnode.h" "|";
2151 * content selection pattern
2153 tSCC zSun_Bogus_Ifdef_Sun4cSelect0[] =
2154 "#ifdef __i386__ || __sun4c__";
2156 #define SUN_BOGUS_IFDEF_SUN4C_TEST_CT 1
2157 tTestDesc aSun_Bogus_Ifdef_Sun4cTests[] = {
2158 { TT_EGREP, zSun_Bogus_Ifdef_Sun4cSelect0, (regex_t*)NULL } };
2161 * Fix Command Arguments for Sun_Bogus_Ifdef_Sun4c
2163 const char* apzSun_Bogus_Ifdef_Sun4cPatch[] = { "sed",
2164 "-e" "s/\\#ifdef __i386__ || __sun4c__/\\#if __i386__ || __sun4c__/g",
2167 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2169 * Description 70 - Sun_Catmacro fix
2171 tSCC zSun_CatmacroName[] =
2174 * File name selection pattern
2176 tSCC zSun_CatmacroList[] =
2177 "|" "pixrect/memvar.h" "|";
2180 * content selection pattern
2182 tSCC zSun_CatmacroSelect0[] =
2183 "^#define[ \t]+CAT(a,b)";
2185 #define SUN_CATMACRO_TEST_CT 1
2186 tTestDesc aSun_CatmacroTests[] = {
2187 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL } };
2190 * Fix Command Arguments for Sun_Catmacro
2192 const char* apzSun_CatmacroPatch[] = { "sed",
2193 "-e" "/^#define[ \t]CAT(a,b)/ i\\\n"
2194 "#ifdef __STDC__ \\\n"
2195 "#define CAT(a,b) a##b\\\n"
2197 "-e" "/^#define[ \t]CAT(a,b)/ a\\\n"
2201 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2203 * Description 71 - Sun_Malloc fix
2205 tSCC zSun_MallocName[] =
2208 * File name selection pattern
2210 tSCC zSun_MallocList[] =
2212 #define SUN_MALLOC_TEST_CT 0
2213 #define aSun_MallocTests (tTestDesc*)NULL
2216 * Fix Command Arguments for Sun_Malloc
2218 const char* apzSun_MallocPatch[] = { "sed",
2219 "-e" "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
2220 "-e" "s/int[ \t][ \t]*free/void\tfree/g",
2221 "-e" "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
2222 "-e" "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
2225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2227 * Description 72 - Sun_Memcpy fix
2229 tSCC zSun_MemcpyName[] =
2232 * File name selection pattern
2234 tSCC zSun_MemcpyList[] =
2238 * content selection pattern
2240 tSCC zSun_MemcpySelect0[] =
2241 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
2243 #define SUN_MEMCPY_TEST_CT 1
2244 tTestDesc aSun_MemcpyTests[] = {
2245 { TT_EGREP, zSun_MemcpySelect0, (regex_t*)NULL } };
2248 * Fix Command Arguments for Sun_Memcpy
2250 const char* apzSun_MemcpyPatch[] = { "sed",
2252 "/* This file was generated by fixincludes */\\\n"
2253 "#ifndef __memory_h__\\\n"
2254 "#define __memory_h__\\\n"
2256 "#ifdef __STDC__\\\n"
2257 "extern void *memccpy();\\\n"
2258 "extern void *memchr();\\\n"
2259 "extern void *memcpy();\\\n"
2260 "extern void *memset();\\\n"
2262 "extern char *memccpy();\\\n"
2263 "extern char *memchr();\\\n"
2264 "extern char *memcpy();\\\n"
2265 "extern char *memset();\\\n"
2266 "#endif /* __STDC__ */\\\n"
2268 "extern int memcmp();\\\n"
2270 "#endif /* __memory_h__ */\n",
2274 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2276 * Description 73 - Sun_Rusers_Semi fix
2278 tSCC zSun_Rusers_SemiName[] =
2281 * File name selection pattern
2283 tSCC zSun_Rusers_SemiList[] =
2284 "|" "rpcsvc/rusers.h" "|";
2287 * content selection pattern
2289 tSCC zSun_Rusers_SemiSelect0[] =
2292 #define SUN_RUSERS_SEMI_TEST_CT 1
2293 tTestDesc aSun_Rusers_SemiTests[] = {
2294 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL } };
2297 * Fix Command Arguments for Sun_Rusers_Semi
2299 const char* apzSun_Rusers_SemiPatch[] = { "sed",
2300 "-e" "/^struct/,/^};/s/_cnt$/_cnt;/",
2303 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2305 * Description 74 - Sun_Signal fix
2307 tSCC zSun_SignalName[] =
2310 * File name selection pattern
2312 tSCC zSun_SignalList[] =
2317 * content selection pattern
2319 tSCC zSun_SignalSelect0[] =
2320 "^void\t\\(\\*signal\\(\\)\\)\\(\\);";
2322 #define SUN_SIGNAL_TEST_CT 1
2323 tTestDesc aSun_SignalTests[] = {
2324 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL } };
2327 * Fix Command Arguments for Sun_Signal
2329 const char* apzSun_SignalPatch[] = { "sed",
2330 "-e" "/^void\t(\\*signal())();$/i\\\n"
2331 "#ifdef __cplusplus\\\n"
2332 "void\t(*signal(...))(...);\\\n"
2334 "-e" "/^void\t(\\*signal())();$/a\\\n"
2338 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2340 * Description 75 - Sun_Xdr_Proto fix
2342 tSCC zSun_Xdr_ProtoName[] =
2345 * File name selection pattern
2347 tSCC zSun_Xdr_ProtoList[] =
2348 "|" "rpc/xdr.h" "|";
2349 #define SUN_XDR_PROTO_TEST_CT 0
2350 #define aSun_Xdr_ProtoTests (tTestDesc*)NULL
2353 * Fix Command Arguments for Sun_Xdr_Proto
2355 const char* apzSun_Xdr_ProtoPatch[] = { "sed",
2356 "-e" "s/^\\(.*\\)\\*\\(x_.*\\)();\\(.*\\)/\\\n"
2357 "#ifdef __cplusplus\\\n"
2358 "\\1*\\2(...);\\3\\\n"
2364 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2366 * Description 76 - Sunos_Large_Macro fix
2368 tSCC zSunos_Large_MacroName[] =
2369 "Sunos_Large_Macro";
2371 * File name selection pattern
2373 tSCC zSunos_Large_MacroList[] =
2374 "|" "sundev/ipi_error.h" "|";
2375 #define SUNOS_LARGE_MACRO_TEST_CT 0
2376 #define aSunos_Large_MacroTests (tTestDesc*)NULL
2379 * Fix Command Arguments for Sunos_Large_Macro
2381 const char* apzSunos_Large_MacroPatch[] = { "sh", "-c",
2382 "echo \"Removing incorrect fix to SunOS <sundev/ipi_error.h>\" >&2\n"
2383 "rm -f ${DESTDIR}/$file ${DESTDIR}/$file.\n"
2387 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2389 * Description 77 - Sunos_Matherr_Decl fix
2391 tSCC zSunos_Matherr_DeclName[] =
2392 "Sunos_Matherr_Decl";
2394 * File name selection pattern
2396 tSCC zSunos_Matherr_DeclList[] =
2400 * content test pattern. A shell will deal with it later.
2402 tSCC zSunos_Matherr_DeclTest0[] =
2403 "\"`fgrep 'struct exception' $file | line`\" != 'struct exception {'";
2405 #define SUNOS_MATHERR_DECL_TEST_CT 1
2406 tTestDesc aSunos_Matherr_DeclTests[] = {
2407 { TT_TEST, zSunos_Matherr_DeclTest0, 0 /* unused */ }, };
2410 * Fix Command Arguments for Sunos_Matherr_Decl
2412 const char* apzSunos_Matherr_DeclPatch[] = { "sed",
2413 "-e" "/matherr/i\\\n"
2414 "struct exception;\n",
2417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2419 * Description 78 - Sunos_Strlen fix
2421 tSCC zSunos_StrlenName[] =
2424 * File name selection pattern
2426 tSCC zSunos_StrlenList[] =
2427 "|" "strings.h" "|";
2428 #define SUNOS_STRLEN_TEST_CT 0
2429 #define aSunos_StrlenTests (tTestDesc*)NULL
2432 * Fix Command Arguments for Sunos_Strlen
2434 const char* apzSunos_StrlenPatch[] = { "sed",
2435 "-e" "s/int[ \t]*strlen();/__SIZE_TYPE__ strlen();/",
2438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2440 * Description 79 - Systypes fix
2442 tSCC zSystypesName[] =
2445 * File name selection pattern
2447 tSCC zSystypesList[] =
2450 "|" "sys/stdtypes.h"
2456 * content selection pattern
2458 tSCC zSystypesSelect0[] =
2459 "typedef[ \t]+[a-z_][ \ta-z_]*[ \t](size|ptrdiff|wchar)_t";
2461 #define SYSTYPES_TEST_CT 1
2462 tTestDesc aSystypesTests[] = {
2463 { TT_EGREP, zSystypesSelect0, (regex_t*)NULL } };
2466 * Fix Command Arguments for Systypes
2468 const char* apzSystypesPatch[] = { "sed",
2469 "-e" "/^[ \t]**[ \t]*typedef unsigned int size_t;/N",
2470 "-e" "s/^\\([ \t]*\\*[ \t]*typedef unsigned int size_t;\\n[ \t]*\\*\\/\\)/\\1\\\n"
2471 "#ifndef __SIZE_TYPE__\\\n"
2472 "#define __SIZE_TYPE__ long unsigned int\\\n"
2474 "typedef __SIZE_TYPE__ size_t;\\\n"
2476 "-e" "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/i\\\n"
2477 "#ifndef __SIZE_TYPE__\\\n"
2478 "#define __SIZE_TYPE__ long unsigned int\\\n"
2480 "-e" "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/typedef __SIZE_TYPE__ size_t/",
2481 "-e" "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/i\\\n"
2482 "#ifndef __PTRDIFF_TYPE__\\\n"
2483 "#define __PTRDIFF_TYPE__ long int\\\n"
2485 "-e" "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/typedef __PTRDIFF_TYPE__ ptrdiff_t/",
2486 "-e" "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/i\\\n"
2487 "#ifndef __WCHAR_TYPE__\\\n"
2488 "#define __WCHAR_TYPE__ int\\\n"
2490 "#ifndef __cplusplus\n",
2491 "-e" "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/a\\\n"
2493 "-e" "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/typedef __WCHAR_TYPE__ wchar_t/",
2496 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2498 * Description 80 - Systypes_For_Aix fix
2500 tSCC zSystypes_For_AixName[] =
2503 * File name selection pattern
2505 tSCC zSystypes_For_AixList[] =
2506 "|" "sys/types.h" "|";
2509 * content selection pattern
2511 tSCC zSystypes_For_AixSelect0[] =
2512 "typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t";
2514 #define SYSTYPES_FOR_AIX_TEST_CT 1
2515 tTestDesc aSystypes_For_AixTests[] = {
2516 { TT_EGREP, zSystypes_For_AixSelect0, (regex_t*)NULL } };
2519 * Fix Command Arguments for Systypes_For_Aix
2521 const char* apzSystypes_For_AixPatch[] = { "sed",
2522 "-e" "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/i\\\n"
2523 "#ifndef _GCC_SIZE_T\\\n"
2524 "#define _GCC_SIZE_T\n",
2525 "-e" "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/a\\\n"
2529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2531 * Description 81 - Sysv68_String fix
2533 tSCC zSysv68_StringName[] =
2536 * File name selection pattern
2538 tSCC zSysv68_StringList[] =
2540 #define SYSV68_STRING_TEST_CT 0
2541 #define aSysv68_StringTests (tTestDesc*)NULL
2544 * Fix Command Arguments for Sysv68_String
2546 const char* apzSysv68_StringPatch[] = { "sed",
2547 "-e" "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
2548 "-e" "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
2549 "-e" "s/strdup(char \\*s1);/strdup(const char *s1);/",
2550 "-e" "/^extern char$/N",
2551 "-e" "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
2552 "-e" "/^\tstrncmp(),$/N",
2553 "-e" "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n"
2554 "extern unsigned int\\\n"
2556 "-e" "/^extern int$/N",
2557 "-e" "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
2560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2562 * Description 82 - Sysz_Stdlib_For_Sun fix
2564 tSCC zSysz_Stdlib_For_SunName[] =
2565 "Sysz_Stdlib_For_Sun";
2567 * File name selection pattern
2569 tSCC zSysz_Stdlib_For_SunList[] =
2571 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 0
2572 #define aSysz_Stdlib_For_SunTests (tTestDesc*)NULL
2575 * Fix Command Arguments for Sysz_Stdlib_For_Sun
2577 const char* apzSysz_Stdlib_For_SunPatch[] = { "sed",
2578 "-e" "s/int\tabort/void\tabort/g",
2579 "-e" "s/int\tfree/void\tfree/g",
2580 "-e" "s/char[ \t]*\\*[ \t]*calloc/void \\*\tcalloc/g",
2581 "-e" "s/char[ \t]*\\*[ \t]*malloc/void \\*\tmalloc/g",
2582 "-e" "s/char[ \t]*\\*[ \t]*realloc/void \\*\trealloc/g",
2583 "-e" "s/int[ \t][ \t]*exit/void\texit/g",
2584 "-e" "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/i\\\n"
2585 "#ifndef _GCC_SIZE_T\\\n"
2586 "#define _GCC_SIZE_T\n",
2587 "-e" "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/a\\\n"
2591 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2593 * Description 83 - Sysz_Stdtypes_For_Sun fix
2595 tSCC zSysz_Stdtypes_For_SunName[] =
2596 "Sysz_Stdtypes_For_Sun";
2598 * File name selection pattern
2600 tSCC zSysz_Stdtypes_For_SunList[] =
2601 "|" "sys/stdtypes.h" "|";
2602 #define SYSZ_STDTYPES_FOR_SUN_TEST_CT 0
2603 #define aSysz_Stdtypes_For_SunTests (tTestDesc*)NULL
2606 * Fix Command Arguments for Sysz_Stdtypes_For_Sun
2608 const char* apzSysz_Stdtypes_For_SunPatch[] = { "sed",
2609 "-e" "/[\t ]size_t.*;/i\\\n"
2610 "#ifndef _GCC_SIZE_T\\\n"
2611 "#define _GCC_SIZE_T\n",
2612 "-e" "/[\t ]size_t.*;/a\\\n"
2614 "-e" "/[\t ]ptrdiff_t.*;/i\\\n"
2615 "#ifndef _GCC_PTRDIFF_T\\\n"
2616 "#define _GCC_PTRDIFF_T\n",
2617 "-e" "/[\t ]ptrdiff_t.*;/a\\\n"
2619 "-e" "/[\t ]wchar_t.*;/i\\\n"
2620 "#ifndef _GCC_WCHAR_T\\\n"
2621 "#define _GCC_WCHAR_T\n",
2622 "-e" "/[\t ]wchar_t.*;/a\\\n"
2626 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2628 * Description 84 - Tinfo_Cplusplus fix
2630 tSCC zTinfo_CplusplusName[] =
2633 * File name selection pattern
2635 tSCC zTinfo_CplusplusList[] =
2637 #define TINFO_CPLUSPLUS_TEST_CT 0
2638 #define aTinfo_CplusplusTests (tTestDesc*)NULL
2641 * Fix Command Arguments for Tinfo_Cplusplus
2643 const char* apzTinfo_CplusplusPatch[] = { "sed",
2644 "-e" "s/[ \t]_cplusplus/ __cplusplus/",
2647 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2649 * Description 85 - Ultrix_Ansi_Compat fix
2651 tSCC zUltrix_Ansi_CompatName[] =
2652 "Ultrix_Ansi_Compat";
2654 * File name selection pattern
2656 tSCC zUltrix_Ansi_CompatList[] =
2657 "|" "ansi_compat.h" "|";
2660 * content selection pattern
2662 tSCC zUltrix_Ansi_CompatSelect0[] =
2665 #define ULTRIX_ANSI_COMPAT_TEST_CT 1
2666 tTestDesc aUltrix_Ansi_CompatTests[] = {
2667 { TT_EGREP, zUltrix_Ansi_CompatSelect0, (regex_t*)NULL } };
2670 * Fix Command Arguments for Ultrix_Ansi_Compat
2672 const char* apzUltrix_Ansi_CompatPatch[] = { "sed",
2674 "/* This file intentionally left blank. */\n",
2678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2680 * Description 86 - Ultrix_Atof_Param fix
2682 tSCC zUltrix_Atof_ParamName[] =
2683 "Ultrix_Atof_Param";
2685 * File name selection pattern
2687 tSCC zUltrix_Atof_ParamList[] =
2689 #define ULTRIX_ATOF_PARAM_TEST_CT 0
2690 #define aUltrix_Atof_ParamTests (tTestDesc*)NULL
2693 * Fix Command Arguments for Ultrix_Atof_Param
2695 const char* apzUltrix_Atof_ParamPatch[] = { "sed",
2696 "-e" "s@atof(\\([ \t]*char[ \t]*\\*[^)]*\\))@atof(const \\1)@",
2697 "-e" "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2698 "-e" "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2699 "-e" "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2700 "-e" "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2703 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2705 * Description 87 - Ultrix_Const fix
2707 tSCC zUltrix_ConstName[] =
2710 * File name selection pattern
2712 tSCC zUltrix_ConstList[] =
2714 #define ULTRIX_CONST_TEST_CT 0
2715 #define aUltrix_ConstTests (tTestDesc*)NULL
2718 * Fix Command Arguments for Ultrix_Const
2720 const char* apzUltrix_ConstPatch[] = { "sed",
2721 "-e" "s@perror( char \\*__s );@perror( const char *__s );@",
2722 "-e" "s@fputs( char \\*__s,@fputs( const char *__s,@",
2723 "-e" "s@fopen( char \\*__filename, char \\*__type );@fopen( const char *__filename, const char *__type );@",
2724 "-e" "s@fwrite( void \\*__ptr,@fwrite( const void *__ptr,@",
2725 "-e" "s@fscanf( FILE \\*__stream, char \\*__format,@fscanf( FILE *__stream, const char *__format,@",
2726 "-e" "s@scanf( char \\*__format,@scanf( const char *__format,@",
2727 "-e" "s@sscanf( char \\*__s, char \\*__format,@sscanf( const char *__s, const char *__format,@",
2728 "-e" "s@popen(char \\*, char \\*);@popen(const char *, const char *);@",
2729 "-e" "s@tempnam(char\\*,char\\*);@tempnam(const char*,const char*);@",
2732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2734 * Description 88 - Ultrix_Ifdef fix
2736 tSCC zUltrix_IfdefName[] =
2739 * File name selection pattern
2741 tSCC zUltrix_IfdefList[] =
2742 "|" "sys/file.h" "|";
2745 * content selection pattern
2747 tSCC zUltrix_IfdefSelect0[] =
2750 #define ULTRIX_IFDEF_TEST_CT 1
2751 tTestDesc aUltrix_IfdefTests[] = {
2752 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL } };
2755 * Fix Command Arguments for Ultrix_Ifdef
2757 const char* apzUltrix_IfdefPatch[] = { "sed",
2758 "-e" "s/#ifdef KERNEL/#if defined(KERNEL)/",
2761 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2763 * Description 89 - Ultrix_Nested_Cmnt fix
2765 tSCC zUltrix_Nested_CmntName[] =
2766 "Ultrix_Nested_Cmnt";
2768 * File name selection pattern
2770 tSCC zUltrix_Nested_CmntList[] =
2771 "|" "rpc/svc.h" "|";
2772 #define ULTRIX_NESTED_CMNT_TEST_CT 0
2773 #define aUltrix_Nested_CmntTests (tTestDesc*)NULL
2776 * Fix Command Arguments for Ultrix_Nested_Cmnt
2778 const char* apzUltrix_Nested_CmntPatch[] = { "sed",
2779 "-e" "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
2782 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2784 * Description 90 - Ultrix_Static fix
2786 tSCC zUltrix_StaticName[] =
2789 * File name selection pattern
2791 tSCC zUltrix_StaticList[] =
2792 "|" "machine/cpu.h" "|";
2795 * content selection pattern
2797 tSCC zUltrix_StaticSelect0[] =
2798 "#include \"r[34]_cpu";
2800 #define ULTRIX_STATIC_TEST_CT 1
2801 tTestDesc aUltrix_StaticTests[] = {
2802 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL } };
2805 * Fix Command Arguments for Ultrix_Static
2807 const char* apzUltrix_StaticPatch[] = { "sed",
2808 "-e" "s/^static struct tlb_pid_state/struct tlb_pid_state/",
2809 "-e" "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
2810 "-e" "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
2813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2815 * Description 91 - Undefine_Null fix
2817 tSCC zUndefine_NullName[] =
2820 * File name selection pattern
2822 #define zUndefine_NullList (char*)NULL
2825 * content selection pattern
2827 tSCC zUndefine_NullSelect0[] =
2828 "^#[ \t]*define[ \t]*[ \t]NULL[ \t]";
2831 * content bypass pattern
2833 tSCC zUndefine_NullBypass0[] =
2834 "#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t])";
2836 #define UNDEFINE_NULL_TEST_CT 2
2837 tTestDesc aUndefine_NullTests[] = {
2838 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
2839 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL } };
2842 * Fix Command Arguments for Undefine_Null
2844 const char* apzUndefine_NullPatch[] = { "sed",
2845 "-e" "/^#[ \t]*define[ \t][ \t]*NULL[ \t]/i\\\n"
2849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2851 * Description 92 - Va_I960_Macro fix
2853 tSCC zVa_I960_MacroName[] =
2856 * File name selection pattern
2858 tSCC zVa_I960_MacroList[] =
2859 "|" "arch/i960/archI960.h" "|";
2862 * content selection pattern
2864 tSCC zVa_I960_MacroSelect0[] =
2865 "__(vsiz|vali|vpad|alignof__)";
2867 #define VA_I960_MACRO_TEST_CT 1
2868 tTestDesc aVa_I960_MacroTests[] = {
2869 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL } };
2872 * Fix Command Arguments for Va_I960_Macro
2874 const char* apzVa_I960_MacroPatch[] = { "sed",
2875 "-e" "s/__vsiz/__vxvsiz/",
2876 "-e" "s/__vali/__vxvali/",
2877 "-e" "s/__vpad/__vxvpad/",
2878 "-e" "s/__alignof__/__vxalignof__/",
2881 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2883 * Description 93 - Void_Null fix
2885 tSCC zVoid_NullName[] =
2888 * File name selection pattern
2890 tSCC zVoid_NullList[] =
2901 "|" "sys/types.h" "|";
2904 * content selection pattern
2906 tSCC zVoid_NullSelect0[] =
2907 "#[ \t]*define[ \t][ \t]*NULL[ \t].*void";
2909 #define VOID_NULL_TEST_CT 1
2910 tTestDesc aVoid_NullTests[] = {
2911 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL } };
2914 * Fix Command Arguments for Void_Null
2916 const char* apzVoid_NullPatch[] = { "sed",
2917 "-e" "s/^#[ \t]*define[ \t]*NULL[ \t]*((void[ \t]*\\*)0)/#define NULL 0/",
2920 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2922 * Description 94 - Vxworks_Gcc_Problem fix
2924 tSCC zVxworks_Gcc_ProblemName[] =
2925 "Vxworks_Gcc_Problem";
2927 * File name selection pattern
2929 tSCC zVxworks_Gcc_ProblemList[] =
2930 "|" "types/vxTypesBase.h" "|";
2933 * content selection pattern
2935 tSCC zVxworks_Gcc_ProblemSelect0[] =
2936 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
2938 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
2939 tTestDesc aVxworks_Gcc_ProblemTests[] = {
2940 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL } };
2943 * Fix Command Arguments for Vxworks_Gcc_Problem
2945 const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
2946 "-e" "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
2947 "-e" "/[ \t]size_t/i\\\n"
2948 "#ifndef _GCC_SIZE_T\\\n"
2949 "#define _GCC_SIZE_T\n",
2950 "-e" "/[ \t]size_t/a\\\n"
2952 "-e" "/[ \t]ptrdiff_t/i\\\n"
2953 "#ifndef _GCC_PTRDIFF_T\\\n"
2954 "#define _GCC_PTRDIFF_T\n",
2955 "-e" "/[ \t]ptrdiff_t/a\\\n"
2957 "-e" "/[ \t]wchar_t/i\\\n"
2958 "#ifndef _GCC_WCHAR_T\\\n"
2959 "#define _GCC_WCHAR_T\n",
2960 "-e" "/[ \t]wchar_t/a\\\n"
2964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2966 * Description 95 - Vxworks_Needs_Vxtypes fix
2968 tSCC zVxworks_Needs_VxtypesName[] =
2969 "Vxworks_Needs_Vxtypes";
2971 * File name selection pattern
2973 tSCC zVxworks_Needs_VxtypesList[] =
2977 * content selection pattern
2979 tSCC zVxworks_Needs_VxtypesSelect0[] =
2980 "uint_t[ \t][ \t]*_clocks_per_sec";
2982 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
2983 tTestDesc aVxworks_Needs_VxtypesTests[] = {
2984 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL } };
2987 * Fix Command Arguments for Vxworks_Needs_Vxtypes
2989 const char* apzVxworks_Needs_VxtypesPatch[] = { "sed",
2990 "-e" "s/uint_t/unsigned int/",
2993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2995 * Description 96 - Vxworks_Needs_Vxworks fix
2997 tSCC zVxworks_Needs_VxworksName[] =
2998 "Vxworks_Needs_Vxworks";
3000 * File name selection pattern
3002 tSCC zVxworks_Needs_VxworksList[] =
3003 "|" "sys/stat.h" "|";
3006 * content selection pattern
3008 tSCC zVxworks_Needs_VxworksSelect0[] =
3009 "#[ \t]define[ \t][ \t]*__INCstath";
3012 * content test pattern. A shell will deal with it later.
3014 tSCC zVxworks_Needs_VxworksTest0[] =
3015 "-r types/vxTypesOld.h";
3016 tSCC zVxworks_Needs_VxworksTest1[] =
3017 "-n \"`fgrep '#include' $file`\"";
3018 tSCC zVxworks_Needs_VxworksTest2[] =
3019 "-n \"`fgrep ULONG $file`\"";
3021 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
3022 tTestDesc aVxworks_Needs_VxworksTests[] = {
3023 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
3024 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
3025 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
3026 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL } };
3029 * Fix Command Arguments for Vxworks_Needs_Vxworks
3031 const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
3032 "-e" "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n"
3033 "#include <types/vxTypesOld.h>\n",
3036 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3038 * Description 97 - Vxworks_Time fix
3040 tSCC zVxworks_TimeName[] =
3043 * File name selection pattern
3045 tSCC zVxworks_TimeList[] =
3049 * content selection pattern
3051 tSCC zVxworks_TimeSelect0[] =
3055 * content test pattern. A shell will deal with it later.
3057 tSCC zVxworks_TimeTest0[] =
3060 #define VXWORKS_TIME_TEST_CT 2
3061 tTestDesc aVxworks_TimeTests[] = {
3062 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
3063 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL } };
3066 * Fix Command Arguments for Vxworks_Time
3068 const char* apzVxworks_TimePatch[] = { "sed",
3069 "-e" "/VOIDFUNCPTR/i\\\n"
3070 "#ifndef __gcc_VOIDFUNCPTR_defined\\\n"
3071 "#ifdef __cplusplus\\\n"
3072 "typedef void (*__gcc_VOIDFUNCPTR) (...);\\\n"
3074 "typedef void (*__gcc_VOIDFUNCPTR) ();\\\n"
3076 "#define __gcc_VOIDFUNCPTR_defined\\\n"
3078 "-e" "s/VOIDFUNCPTR/__gcc_VOIDFUNCPTR/g",
3081 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3083 * Description 98 - X11_Class fix
3085 tSCC zX11_ClassName[] =
3088 * File name selection pattern
3090 tSCC zX11_ClassList[] =
3091 "|" "X11/ShellP.h" "|";
3094 * content bypass pattern
3096 tSCC zX11_ClassBypass0[] =
3099 #define X11_CLASS_TEST_CT 1
3100 tTestDesc aX11_ClassTests[] = {
3101 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, };
3104 * Fix Command Arguments for X11_Class
3106 const char* apzX11_ClassPatch[] = { "sed",
3107 "-e" "/char [*]class;/i\\\n"
3108 "#ifdef __cplusplus\\\n"
3109 "\tchar *c_class;\\\n"
3111 "-e" "/char [*]class;/a\\\n"
3115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3117 * Description 99 - X11_Class_Usage fix
3119 tSCC zX11_Class_UsageName[] =
3122 * File name selection pattern
3124 tSCC zX11_Class_UsageList[] =
3125 "|" "Xm/BaseClassI.h" "|";
3128 * content bypass pattern
3130 tSCC zX11_Class_UsageBypass0[] =
3133 #define X11_CLASS_USAGE_TEST_CT 1
3134 tTestDesc aX11_Class_UsageTests[] = {
3135 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, };
3138 * Fix Command Arguments for X11_Class_Usage
3140 const char* apzX11_Class_UsagePatch[] = { "sed",
3141 "-e" "s/ class[)]/ c_class)/g",
3144 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3146 * Description 100 - X11_New fix
3148 tSCC zX11_NewName[] =
3151 * File name selection pattern
3153 tSCC zX11_NewList[] =
3154 "|" "Xm/Traversal.h" "|";
3157 * content bypass pattern
3159 tSCC zX11_NewBypass0[] =
3162 #define X11_NEW_TEST_CT 1
3163 tTestDesc aX11_NewTests[] = {
3164 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
3167 * Fix Command Arguments for X11_New
3169 const char* apzX11_NewPatch[] = { "sed",
3170 "-e" "/Widget\told, new;/i\\\n"
3171 "#ifdef __cplusplus\\\n"
3172 "\tWidget\told, c_new;\\\n"
3174 "-e" "/Widget\told, new;/a\\\n"
3176 "-e" "s/Widget new,/Widget c_new,/g",
3179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3181 * Description 101 - X11_Sprintf fix
3183 tSCC zX11_SprintfName[] =
3186 * File name selection pattern
3188 tSCC zX11_SprintfList[] =
3189 "|" "X11*/Xmu.h" "|";
3190 #define X11_SPRINTF_TEST_CT 0
3191 #define aX11_SprintfTests (tTestDesc*)NULL
3194 * Fix Command Arguments for X11_Sprintf
3196 const char* apzX11_SprintfPatch[] = { "sed",
3197 "-e" "s,^extern char \\*\tsprintf();$,#ifndef __STDC__\\\n"
3198 "extern char *\tsprintf();\\\n"
3199 "#endif /* !defined __STDC__ */,",
3202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3206 #define REGEX_COUNT 69
3207 #define FIX_COUNT 101
3208 tFixDesc fixDescList[ 101 ] = {
3209 { zAix_SyswaitName, zAix_SyswaitList, (regex_t*)NULL,
3210 AIX_SYSWAIT_TEST_CT, aAix_SyswaitTests,
3211 apzAix_SyswaitPatch },
3213 { zAix_VolatileName, zAix_VolatileList, (regex_t*)NULL,
3214 AIX_VOLATILE_TEST_CT, aAix_VolatileTests,
3215 apzAix_VolatilePatch },
3217 { zAlpha_GetoptName, zAlpha_GetoptList, (regex_t*)NULL,
3218 ALPHA_GETOPT_TEST_CT, aAlpha_GetoptTests,
3219 apzAlpha_GetoptPatch },
3221 { zAlpha_ParensName, zAlpha_ParensList, (regex_t*)NULL,
3222 ALPHA_PARENS_TEST_CT, aAlpha_ParensTests,
3223 apzAlpha_ParensPatch },
3225 { zAlpha_SbrkName, zAlpha_SbrkList, (regex_t*)NULL,
3226 ALPHA_SBRK_TEST_CT, aAlpha_SbrkTests,
3227 apzAlpha_SbrkPatch },
3229 { zArm_Norcroft_HintName, zArm_Norcroft_HintList, (regex_t*)NULL,
3230 ARM_NORCROFT_HINT_TEST_CT, aArm_Norcroft_HintTests,
3231 apzArm_Norcroft_HintPatch },
3233 { zArm_WcharName, zArm_WcharList, (regex_t*)NULL,
3234 ARM_WCHAR_TEST_CT, aArm_WcharTests,
3235 apzArm_WcharPatch },
3237 { zAux_AsmName, zAux_AsmList, (regex_t*)NULL,
3238 AUX_ASM_TEST_CT, aAux_AsmTests,
3241 { zAvoid_BoolName, zAvoid_BoolList, (regex_t*)NULL,
3242 AVOID_BOOL_TEST_CT, aAvoid_BoolTests,
3243 apzAvoid_BoolPatch },
3245 { zBad_Malloc_DeclName, zBad_Malloc_DeclList, (regex_t*)NULL,
3246 BAD_MALLOC_DECL_TEST_CT, aBad_Malloc_DeclTests,
3247 apzBad_Malloc_DeclPatch },
3249 { zBad_Struct_TermName, zBad_Struct_TermList, (regex_t*)NULL,
3250 BAD_STRUCT_TERM_TEST_CT, aBad_Struct_TermTests,
3251 apzBad_Struct_TermPatch },
3253 { zBadquoteName, zBadquoteList, (regex_t*)NULL,
3254 BADQUOTE_TEST_CT, aBadquoteTests,
3257 { zBroken_Assert_StdioName, zBroken_Assert_StdioList, (regex_t*)NULL,
3258 BROKEN_ASSERT_STDIO_TEST_CT, aBroken_Assert_StdioTests,
3259 apzBroken_Assert_StdioPatch },
3261 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList, (regex_t*)NULL,
3262 BROKEN_ASSERT_STDLIB_TEST_CT, aBroken_Assert_StdlibTests,
3263 apzBroken_Assert_StdlibPatch },
3265 { zBsd43_Io_MacrosName, zBsd43_Io_MacrosList, (regex_t*)NULL,
3266 BSD43_IO_MACROS_TEST_CT, aBsd43_Io_MacrosTests,
3267 apzBsd43_Io_MacrosPatch },
3269 { zCxx_Cmnt_HpuxName, zCxx_Cmnt_HpuxList, (regex_t*)NULL,
3270 CXX_CMNT_HPUX_TEST_CT, aCxx_Cmnt_HpuxTests,
3271 apzCxx_Cmnt_HpuxPatch },
3273 { zCxx_Cmnt_IrixName, zCxx_Cmnt_IrixList, (regex_t*)NULL,
3274 CXX_CMNT_IRIX_TEST_CT, aCxx_Cmnt_IrixTests,
3275 apzCxx_Cmnt_IrixPatch },
3277 { zCxx_Cmnt_SunosName, zCxx_Cmnt_SunosList, (regex_t*)NULL,
3278 CXX_CMNT_SUNOS_TEST_CT, aCxx_Cmnt_SunosTests,
3279 apzCxx_Cmnt_SunosPatch },
3281 { zCxx_Cmnt_VxworksName, zCxx_Cmnt_VxworksList, (regex_t*)NULL,
3282 CXX_CMNT_VXWORKS_TEST_CT, aCxx_Cmnt_VxworksTests,
3283 apzCxx_Cmnt_VxworksPatch },
3285 { zEcd_CursorName, zEcd_CursorList, (regex_t*)NULL,
3286 ECD_CURSOR_TEST_CT, aEcd_CursorTests,
3287 apzEcd_CursorPatch },
3289 { zElse_LabelName, zElse_LabelList, (regex_t*)NULL,
3290 ELSE_LABEL_TEST_CT, aElse_LabelTests,
3291 apzElse_LabelPatch },
3293 { zEndif_LabelName, zEndif_LabelList, (regex_t*)NULL,
3294 ENDIF_LABEL_TEST_CT, aEndif_LabelTests,
3295 apzEndif_LabelPatch },
3297 { zHp_InlineName, zHp_InlineList, (regex_t*)NULL,
3298 HP_INLINE_TEST_CT, aHp_InlineTests,
3299 apzHp_InlinePatch },
3301 { zHp_SysfileName, zHp_SysfileList, (regex_t*)NULL,
3302 HP_SYSFILE_TEST_CT, aHp_SysfileTests,
3303 apzHp_SysfilePatch },
3305 { zHpux_Cxx_UnreadyName, zHpux_Cxx_UnreadyList, (regex_t*)NULL,
3306 HPUX_CXX_UNREADY_TEST_CT, aHpux_Cxx_UnreadyTests,
3307 apzHpux_Cxx_UnreadyPatch },
3309 { zHpux_MaxintName, zHpux_MaxintList, (regex_t*)NULL,
3310 HPUX_MAXINT_TEST_CT, aHpux_MaxintTests,
3311 apzHpux_MaxintPatch },
3313 { zHpux_SystimeName, zHpux_SystimeList, (regex_t*)NULL,
3314 HPUX_SYSTIME_TEST_CT, aHpux_SystimeTests,
3315 apzHpux_SystimePatch },
3317 { zInteractv_Add1Name, zInteractv_Add1List, (regex_t*)NULL,
3318 INTERACTV_ADD1_TEST_CT, aInteractv_Add1Tests,
3319 apzInteractv_Add1Patch },
3321 { zInteractv_Add2Name, zInteractv_Add2List, (regex_t*)NULL,
3322 INTERACTV_ADD2_TEST_CT, aInteractv_Add2Tests,
3323 apzInteractv_Add2Patch },
3325 { zInteractv_Add3Name, zInteractv_Add3List, (regex_t*)NULL,
3326 INTERACTV_ADD3_TEST_CT, aInteractv_Add3Tests,
3327 apzInteractv_Add3Patch },
3329 { zIo_Def_QuotesName, zIo_Def_QuotesList, (regex_t*)NULL,
3330 IO_DEF_QUOTES_TEST_CT, aIo_Def_QuotesTests,
3331 apzIo_Def_QuotesPatch },
3333 { zIoctl_Fix_CtrlName, zIoctl_Fix_CtrlList, (regex_t*)NULL,
3334 IOCTL_FIX_CTRL_TEST_CT, aIoctl_Fix_CtrlTests,
3335 apzIoctl_Fix_CtrlPatch },
3337 { zIp_Missing_SemiName, zIp_Missing_SemiList, (regex_t*)NULL,
3338 IP_MISSING_SEMI_TEST_CT, aIp_Missing_SemiTests,
3339 apzIp_Missing_SemiPatch },
3341 { zIrix_Bogus_Cxx_CmntName, zIrix_Bogus_Cxx_CmntList, (regex_t*)NULL,
3342 IRIX_BOGUS_CXX_CMNT_TEST_CT, aIrix_Bogus_Cxx_CmntTests,
3343 apzIrix_Bogus_Cxx_CmntPatch },
3345 { zIrix_Multiline_CmntName, zIrix_Multiline_CmntList, (regex_t*)NULL,
3346 IRIX_MULTILINE_CMNT_TEST_CT, aIrix_Multiline_CmntTests,
3347 apzIrix_Multiline_CmntPatch },
3349 { zIrix_SockaddrName, zIrix_SockaddrList, (regex_t*)NULL,
3350 IRIX_SOCKADDR_TEST_CT, aIrix_SockaddrTests,
3351 apzIrix_SockaddrPatch },
3353 { zIrix_Struct__FileName, zIrix_Struct__FileList, (regex_t*)NULL,
3354 IRIX_STRUCT__FILE_TEST_CT, aIrix_Struct__FileTests,
3355 apzIrix_Struct__FilePatch },
3357 { zIsc_FmodName, zIsc_FmodList, (regex_t*)NULL,
3358 ISC_FMOD_TEST_CT, aIsc_FmodTests,
3361 { zIsc_Sys_LimitsName, zIsc_Sys_LimitsList, (regex_t*)NULL,
3362 ISC_SYS_LIMITS_TEST_CT, aIsc_Sys_LimitsTests,
3363 apzIsc_Sys_LimitsPatch },
3365 { zKandr_ConcatName, zKandr_ConcatList, (regex_t*)NULL,
3366 KANDR_CONCAT_TEST_CT, aKandr_ConcatTests,
3367 apzKandr_ConcatPatch },
3369 { zLimits_IfndefsName, zLimits_IfndefsList, (regex_t*)NULL,
3370 LIMITS_IFNDEFS_TEST_CT, aLimits_IfndefsTests,
3371 apzLimits_IfndefsPatch },
3373 { zLynx_Void_IntName, zLynx_Void_IntList, (regex_t*)NULL,
3374 LYNX_VOID_INT_TEST_CT, aLynx_Void_IntTests,
3375 apzLynx_Void_IntPatch },
3377 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList, (regex_t*)NULL,
3378 LYNXOS_FCNTL_PROTO_TEST_CT, aLynxos_Fcntl_ProtoTests,
3379 apzLynxos_Fcntl_ProtoPatch },
3381 { zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList, (regex_t*)NULL,
3382 M88K_BAD_HYPOT_OPT_TEST_CT, aM88k_Bad_Hypot_OptTests,
3383 apzM88k_Bad_Hypot_OptPatch },
3385 { zM88k_Bad_S_IfName, zM88k_Bad_S_IfList, (regex_t*)NULL,
3386 M88K_BAD_S_IF_TEST_CT, aM88k_Bad_S_IfTests,
3387 apzM88k_Bad_S_IfPatch },
3389 { zM88k_Multi_InclName, zM88k_Multi_InclList, (regex_t*)NULL,
3390 M88K_MULTI_INCL_TEST_CT, aM88k_Multi_InclTests,
3391 apzM88k_Multi_InclPatch },
3393 { zMachine_NameName, zMachine_NameList, (regex_t*)NULL,
3394 MACHINE_NAME_TEST_CT, aMachine_NameTests,
3395 apzMachine_NamePatch },
3397 { zMath_ExceptionName, zMath_ExceptionList, (regex_t*)NULL,
3398 MATH_EXCEPTION_TEST_CT, aMath_ExceptionTests,
3399 apzMath_ExceptionPatch },
3401 { zMath_Gcc_IfndefsName, zMath_Gcc_IfndefsList, (regex_t*)NULL,
3402 MATH_GCC_IFNDEFS_TEST_CT, aMath_Gcc_IfndefsTests,
3403 apzMath_Gcc_IfndefsPatch },
3405 { zMotorola_Stupid_OptName, zMotorola_Stupid_OptList, (regex_t*)NULL,
3406 MOTOROLA_STUPID_OPT_TEST_CT, aMotorola_Stupid_OptTests,
3407 apzMotorola_Stupid_OptPatch },
3409 { zNested_CommentName, zNested_CommentList, (regex_t*)NULL,
3410 NESTED_COMMENT_TEST_CT, aNested_CommentTests,
3411 apzNested_CommentPatch },
3413 { zNews_Os_RecursionName, zNews_Os_RecursionList, (regex_t*)NULL,
3414 NEWS_OS_RECURSION_TEST_CT, aNews_Os_RecursionTests,
3415 apzNews_Os_RecursionPatch },
3417 { zNext_Math_PrefixName, zNext_Math_PrefixList, (regex_t*)NULL,
3418 NEXT_MATH_PREFIX_TEST_CT, aNext_Math_PrefixTests,
3419 apzNext_Math_PrefixPatch },
3421 { zNext_TemplateName, zNext_TemplateList, (regex_t*)NULL,
3422 NEXT_TEMPLATE_TEST_CT, aNext_TemplateTests,
3423 apzNext_TemplatePatch },
3425 { zNext_VolitileName, zNext_VolitileList, (regex_t*)NULL,
3426 NEXT_VOLITILE_TEST_CT, aNext_VolitileTests,
3427 apzNext_VolitilePatch },
3429 { zNext_Wait_UnionName, zNext_Wait_UnionList, (regex_t*)NULL,
3430 NEXT_WAIT_UNION_TEST_CT, aNext_Wait_UnionTests,
3431 apzNext_Wait_UnionPatch },
3433 { zNo_Double_SlashName, zNo_Double_SlashList, (regex_t*)NULL,
3434 NO_DOUBLE_SLASH_TEST_CT, aNo_Double_SlashTests,
3435 apzNo_Double_SlashPatch },
3437 { zNodeent_SyntaxName, zNodeent_SyntaxList, (regex_t*)NULL,
3438 NODEENT_SYNTAX_TEST_CT, aNodeent_SyntaxTests,
3439 apzNodeent_SyntaxPatch },
3441 { zOsf_Namespace_AName, zOsf_Namespace_AList, (regex_t*)NULL,
3442 OSF_NAMESPACE_A_TEST_CT, aOsf_Namespace_ATests,
3443 apzOsf_Namespace_APatch },
3445 { zOsf_Namespace_BName, zOsf_Namespace_BList, (regex_t*)NULL,
3446 OSF_NAMESPACE_B_TEST_CT, aOsf_Namespace_BTests,
3447 apzOsf_Namespace_BPatch },
3449 { zPthread_Page_SizeName, zPthread_Page_SizeList, (regex_t*)NULL,
3450 PTHREAD_PAGE_SIZE_TEST_CT, aPthread_Page_SizeTests,
3451 apzPthread_Page_SizePatch },
3453 { zRs6000_DoubleName, zRs6000_DoubleList, (regex_t*)NULL,
3454 RS6000_DOUBLE_TEST_CT, aRs6000_DoubleTests,
3455 apzRs6000_DoublePatch },
3457 { zRs6000_FchmodName, zRs6000_FchmodList, (regex_t*)NULL,
3458 RS6000_FCHMOD_TEST_CT, aRs6000_FchmodTests,
3459 apzRs6000_FchmodPatch },
3461 { zRs6000_ParamName, zRs6000_ParamList, (regex_t*)NULL,
3462 RS6000_PARAM_TEST_CT, aRs6000_ParamTests,
3463 apzRs6000_ParamPatch },
3465 { zSony_IncludeName, zSony_IncludeList, (regex_t*)NULL,
3466 SONY_INCLUDE_TEST_CT, aSony_IncludeTests,
3467 apzSony_IncludePatch },
3469 { zStatsswtchName, zStatsswtchList, (regex_t*)NULL,
3470 STATSSWTCH_TEST_CT, aStatsswtchTests,
3471 apzStatsswtchPatch },
3473 { zStdio_Va_ListName, zStdio_Va_ListList, (regex_t*)NULL,
3474 STDIO_VA_LIST_TEST_CT, aStdio_Va_ListTests,
3475 apzStdio_Va_ListPatch },
3477 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList, (regex_t*)NULL,
3478 SUN_BOGUS_IFDEF_TEST_CT, aSun_Bogus_IfdefTests,
3479 apzSun_Bogus_IfdefPatch },
3481 { zSun_Bogus_Ifdef_Sun4cName, zSun_Bogus_Ifdef_Sun4cList, (regex_t*)NULL,
3482 SUN_BOGUS_IFDEF_SUN4C_TEST_CT, aSun_Bogus_Ifdef_Sun4cTests,
3483 apzSun_Bogus_Ifdef_Sun4cPatch },
3485 { zSun_CatmacroName, zSun_CatmacroList, (regex_t*)NULL,
3486 SUN_CATMACRO_TEST_CT, aSun_CatmacroTests,
3487 apzSun_CatmacroPatch },
3489 { zSun_MallocName, zSun_MallocList, (regex_t*)NULL,
3490 SUN_MALLOC_TEST_CT, aSun_MallocTests,
3491 apzSun_MallocPatch },
3493 { zSun_MemcpyName, zSun_MemcpyList, (regex_t*)NULL,
3494 SUN_MEMCPY_TEST_CT, aSun_MemcpyTests,
3495 apzSun_MemcpyPatch },
3497 { zSun_Rusers_SemiName, zSun_Rusers_SemiList, (regex_t*)NULL,
3498 SUN_RUSERS_SEMI_TEST_CT, aSun_Rusers_SemiTests,
3499 apzSun_Rusers_SemiPatch },
3501 { zSun_SignalName, zSun_SignalList, (regex_t*)NULL,
3502 SUN_SIGNAL_TEST_CT, aSun_SignalTests,
3503 apzSun_SignalPatch },
3505 { zSun_Xdr_ProtoName, zSun_Xdr_ProtoList, (regex_t*)NULL,
3506 SUN_XDR_PROTO_TEST_CT, aSun_Xdr_ProtoTests,
3507 apzSun_Xdr_ProtoPatch },
3509 { zSunos_Large_MacroName, zSunos_Large_MacroList, (regex_t*)NULL,
3510 SUNOS_LARGE_MACRO_TEST_CT, aSunos_Large_MacroTests,
3511 apzSunos_Large_MacroPatch },
3513 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList, (regex_t*)NULL,
3514 SUNOS_MATHERR_DECL_TEST_CT, aSunos_Matherr_DeclTests,
3515 apzSunos_Matherr_DeclPatch },
3517 { zSunos_StrlenName, zSunos_StrlenList, (regex_t*)NULL,
3518 SUNOS_STRLEN_TEST_CT, aSunos_StrlenTests,
3519 apzSunos_StrlenPatch },
3521 { zSystypesName, zSystypesList, (regex_t*)NULL,
3522 SYSTYPES_TEST_CT, aSystypesTests,
3525 { zSystypes_For_AixName, zSystypes_For_AixList, (regex_t*)NULL,
3526 SYSTYPES_FOR_AIX_TEST_CT, aSystypes_For_AixTests,
3527 apzSystypes_For_AixPatch },
3529 { zSysv68_StringName, zSysv68_StringList, (regex_t*)NULL,
3530 SYSV68_STRING_TEST_CT, aSysv68_StringTests,
3531 apzSysv68_StringPatch },
3533 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList, (regex_t*)NULL,
3534 SYSZ_STDLIB_FOR_SUN_TEST_CT, aSysz_Stdlib_For_SunTests,
3535 apzSysz_Stdlib_For_SunPatch },
3537 { zSysz_Stdtypes_For_SunName, zSysz_Stdtypes_For_SunList, (regex_t*)NULL,
3538 SYSZ_STDTYPES_FOR_SUN_TEST_CT, aSysz_Stdtypes_For_SunTests,
3539 apzSysz_Stdtypes_For_SunPatch },
3541 { zTinfo_CplusplusName, zTinfo_CplusplusList, (regex_t*)NULL,
3542 TINFO_CPLUSPLUS_TEST_CT, aTinfo_CplusplusTests,
3543 apzTinfo_CplusplusPatch },
3545 { zUltrix_Ansi_CompatName, zUltrix_Ansi_CompatList, (regex_t*)NULL,
3546 ULTRIX_ANSI_COMPAT_TEST_CT, aUltrix_Ansi_CompatTests,
3547 apzUltrix_Ansi_CompatPatch },
3549 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList, (regex_t*)NULL,
3550 ULTRIX_ATOF_PARAM_TEST_CT, aUltrix_Atof_ParamTests,
3551 apzUltrix_Atof_ParamPatch },
3553 { zUltrix_ConstName, zUltrix_ConstList, (regex_t*)NULL,
3554 ULTRIX_CONST_TEST_CT, aUltrix_ConstTests,
3555 apzUltrix_ConstPatch },
3557 { zUltrix_IfdefName, zUltrix_IfdefList, (regex_t*)NULL,
3558 ULTRIX_IFDEF_TEST_CT, aUltrix_IfdefTests,
3559 apzUltrix_IfdefPatch },
3561 { zUltrix_Nested_CmntName, zUltrix_Nested_CmntList, (regex_t*)NULL,
3562 ULTRIX_NESTED_CMNT_TEST_CT, aUltrix_Nested_CmntTests,
3563 apzUltrix_Nested_CmntPatch },
3565 { zUltrix_StaticName, zUltrix_StaticList, (regex_t*)NULL,
3566 ULTRIX_STATIC_TEST_CT, aUltrix_StaticTests,
3567 apzUltrix_StaticPatch },
3569 { zUndefine_NullName, zUndefine_NullList, (regex_t*)NULL,
3570 UNDEFINE_NULL_TEST_CT, aUndefine_NullTests,
3571 apzUndefine_NullPatch },
3573 { zVa_I960_MacroName, zVa_I960_MacroList, (regex_t*)NULL,
3574 VA_I960_MACRO_TEST_CT, aVa_I960_MacroTests,
3575 apzVa_I960_MacroPatch },
3577 { zVoid_NullName, zVoid_NullList, (regex_t*)NULL,
3578 VOID_NULL_TEST_CT, aVoid_NullTests,
3579 apzVoid_NullPatch },
3581 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList, (regex_t*)NULL,
3582 VXWORKS_GCC_PROBLEM_TEST_CT, aVxworks_Gcc_ProblemTests,
3583 apzVxworks_Gcc_ProblemPatch },
3585 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList, (regex_t*)NULL,
3586 VXWORKS_NEEDS_VXTYPES_TEST_CT, aVxworks_Needs_VxtypesTests,
3587 apzVxworks_Needs_VxtypesPatch },
3589 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList, (regex_t*)NULL,
3590 VXWORKS_NEEDS_VXWORKS_TEST_CT, aVxworks_Needs_VxworksTests,
3591 apzVxworks_Needs_VxworksPatch },
3593 { zVxworks_TimeName, zVxworks_TimeList, (regex_t*)NULL,
3594 VXWORKS_TIME_TEST_CT, aVxworks_TimeTests,
3595 apzVxworks_TimePatch },
3597 { zX11_ClassName, zX11_ClassList, (regex_t*)NULL,
3598 X11_CLASS_TEST_CT, aX11_ClassTests,
3599 apzX11_ClassPatch },
3601 { zX11_Class_UsageName, zX11_Class_UsageList, (regex_t*)NULL,
3602 X11_CLASS_USAGE_TEST_CT, aX11_Class_UsageTests,
3603 apzX11_Class_UsagePatch },
3605 { zX11_NewName, zX11_NewList, (regex_t*)NULL,
3606 X11_NEW_TEST_CT, aX11_NewTests,
3609 { zX11_SprintfName, zX11_SprintfList, (regex_t*)NULL,
3610 X11_SPRINTF_TEST_CT, aX11_SprintfTests,
3611 apzX11_SprintfPatch }