]> gcc.gnu.org Git - gcc.git/blame - gcc/fixinc/fixincl.x
inclhack.def (limits_ifndefs): Also apply to sys/limits.h
[gcc.git] / gcc / fixinc / fixincl.x
CommitLineData
06bbab1b 1/*
be02fa1a 2 * DO NOT EDIT THIS FILE - it has been generated
06bbab1b
BK
3 *
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.
7 *
26e2e81d 8 * This file contains 104 fixup descriptions.
06bbab1b
BK
9 *
10 * See README-fixinc for more information.
11 *
be02fa1a
BK
12 * inclhack copyright (c) 1999 The Free Software Foundation, Inc.
13 *
06bbab1b
BK
14 * inclhack is free software.
15 *
16 * You may redistribute it and/or modify it under the terms of the
17 * GNU General Public License, as published by the Free Software
18 * Foundation; either version 2, or (at your option) any later version.
19 *
20 * inclhack is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 * See the GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with inclhack. See the file "COPYING". If not,
27 * write to: The Free Software Foundation, Inc.,
28 * 59 Temple Place - Suite 330,
29 * Boston, MA 02111-1307, USA.
30 *
31 *
32 * Description 1 - Aix_Syswait fix
33 */
34tSCC zAix_SyswaitName[] =
35 "Aix_Syswait";
36/*
37 * File name selection pattern
38 */
39tSCC zAix_SyswaitList[] =
54585825 40 "|sys/wait.h|";
06bbab1b
BK
41/*
42 * Machine/OS name selection pattern
43 */
44#define apzAix_SyswaitMachs (const char**)NULL
45
46/*
be02fa1a 47 * content selection pattern - do fix if pattern found
06bbab1b
BK
48 */
49tSCC zAix_SyswaitSelect0[] =
50 "bos325,";
51
52#define AIX_SYSWAIT_TEST_CT 1
be02fa1a 53#define AIX_SYSWAIT_RE_CT 1
06bbab1b 54tTestDesc aAix_SyswaitTests[] = {
be02fa1a 55 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL }, };
06bbab1b
BK
56
57/*
58 * Fix Command Arguments for Aix_Syswait
59 */
60const char* apzAix_SyswaitPatch[] = { "sed",
c329beb0
BK
61 "-e", "/^extern pid_t wait3();$/i\\\n\
62struct rusage;\n",
06bbab1b
BK
63 (char*)NULL };
64
65/* * * * * * * * * * * * * * * * * * * * * * * * * *
66 *
67 * Description 2 - Aix_Volatile fix
68 */
69tSCC zAix_VolatileName[] =
70 "Aix_Volatile";
71/*
72 * File name selection pattern
73 */
74tSCC zAix_VolatileList[] =
54585825 75 "|sys/signal.h|";
06bbab1b
BK
76/*
77 * Machine/OS name selection pattern
78 */
79#define apzAix_VolatileMachs (const char**)NULL
80
81/*
be02fa1a 82 * content selection pattern - do fix if pattern found
06bbab1b
BK
83 */
84tSCC zAix_VolatileSelect0[] =
85 "typedef volatile int sig_atomic_t";
86
87#define AIX_VOLATILE_TEST_CT 1
be02fa1a 88#define AIX_VOLATILE_RE_CT 1
06bbab1b 89tTestDesc aAix_VolatileTests[] = {
be02fa1a 90 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
06bbab1b
BK
91
92/*
93 * Fix Command Arguments for Aix_Volatile
94 */
95const char* apzAix_VolatilePatch[] = { "sed",
be02fa1a 96 "-e", "s/typedef volatile int sig_atomic_t/typedef int sig_atomic_t/",
06bbab1b
BK
97 (char*)NULL };
98
99/* * * * * * * * * * * * * * * * * * * * * * * * * *
100 *
101 * Description 3 - Alpha_Getopt fix
102 */
103tSCC zAlpha_GetoptName[] =
104 "Alpha_Getopt";
105/*
106 * File name selection pattern
107 */
108tSCC zAlpha_GetoptList[] =
54585825 109 "|stdio.h|stdlib.h|";
06bbab1b
BK
110/*
111 * Machine/OS name selection pattern
112 */
113#define apzAlpha_GetoptMachs (const char**)NULL
114
115/*
be02fa1a 116 * content selection pattern - do fix if pattern found
06bbab1b
BK
117 */
118tSCC zAlpha_GetoptSelect0[] =
119 "getopt\\(int, char \\*\\[";
120
121#define ALPHA_GETOPT_TEST_CT 1
be02fa1a 122#define ALPHA_GETOPT_RE_CT 1
06bbab1b 123tTestDesc aAlpha_GetoptTests[] = {
be02fa1a 124 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
06bbab1b
BK
125
126/*
127 * Fix Command Arguments for Alpha_Getopt
128 */
129const char* apzAlpha_GetoptPatch[] = { "sed",
be02fa1a 130 "-e", "s/getopt(int, char \\*\\[\\],[ ]*char \\*)/getopt(int, char *const[], const char *)/",
06bbab1b
BK
131 (char*)NULL };
132
133/* * * * * * * * * * * * * * * * * * * * * * * * * *
134 *
135 * Description 4 - Alpha_Parens fix
136 */
137tSCC zAlpha_ParensName[] =
138 "Alpha_Parens";
139/*
140 * File name selection pattern
141 */
142tSCC zAlpha_ParensList[] =
c329beb0 143 "|sym.h|";
06bbab1b
BK
144/*
145 * Machine/OS name selection pattern
146 */
147#define apzAlpha_ParensMachs (const char**)NULL
148
149/*
be02fa1a 150 * content selection pattern - do fix if pattern found
06bbab1b
BK
151 */
152tSCC zAlpha_ParensSelect0[] =
153 "#ifndef\\(__mips64\\)";
154
155#define ALPHA_PARENS_TEST_CT 1
be02fa1a 156#define ALPHA_PARENS_RE_CT 1
06bbab1b 157tTestDesc aAlpha_ParensTests[] = {
be02fa1a 158 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
06bbab1b
BK
159
160/*
161 * Fix Command Arguments for Alpha_Parens
162 */
163const char* apzAlpha_ParensPatch[] = { "sed",
be02fa1a 164 "-e", "s/#ifndef(__mips64)/#ifndef __mips64/",
06bbab1b
BK
165 (char*)NULL };
166
167/* * * * * * * * * * * * * * * * * * * * * * * * * *
168 *
169 * Description 5 - Alpha_Sbrk fix
170 */
171tSCC zAlpha_SbrkName[] =
172 "Alpha_Sbrk";
173/*
174 * File name selection pattern
175 */
176tSCC zAlpha_SbrkList[] =
c329beb0 177 "|unistd.h|";
06bbab1b
BK
178/*
179 * Machine/OS name selection pattern
180 */
181#define apzAlpha_SbrkMachs (const char**)NULL
182
183/*
be02fa1a 184 * content selection pattern - do fix if pattern found
06bbab1b
BK
185 */
186tSCC zAlpha_SbrkSelect0[] =
187 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
188
189#define ALPHA_SBRK_TEST_CT 1
be02fa1a 190#define ALPHA_SBRK_RE_CT 1
06bbab1b 191tTestDesc aAlpha_SbrkTests[] = {
be02fa1a 192 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
06bbab1b
BK
193
194/*
195 * Fix Command Arguments for Alpha_Sbrk
196 */
197const char* apzAlpha_SbrkPatch[] = { "sed",
be02fa1a 198 "-e", "s/char\\([ \t]*\\*[\t ]*sbrk[ \t]*(\\)/void\\1/",
06bbab1b
BK
199 (char*)NULL };
200
201/* * * * * * * * * * * * * * * * * * * * * * * * * *
202 *
203 * Description 6 - Arm_Norcroft_Hint fix
204 */
205tSCC zArm_Norcroft_HintName[] =
206 "Arm_Norcroft_Hint";
207/*
208 * File name selection pattern
209 */
210tSCC zArm_Norcroft_HintList[] =
c329beb0 211 "|X11/Intrinsic.h|";
06bbab1b
BK
212/*
213 * Machine/OS name selection pattern
214 */
215#define apzArm_Norcroft_HintMachs (const char**)NULL
ef16b5e5
JL
216
217/*
218 * content selection pattern - do fix if pattern found
219 */
220tSCC zArm_Norcroft_HintSelect0[] =
221 "___type p_type";
222
223#define ARM_NORCROFT_HINT_TEST_CT 1
224#define ARM_NORCROFT_HINT_RE_CT 1
225tTestDesc aArm_Norcroft_HintTests[] = {
226 { TT_EGREP, zArm_Norcroft_HintSelect0, (regex_t*)NULL }, };
06bbab1b
BK
227
228/*
229 * Fix Command Arguments for Arm_Norcroft_Hint
230 */
231const char* apzArm_Norcroft_HintPatch[] = { "sed",
be02fa1a 232 "-e", "s/___type p_type/p_type/",
06bbab1b
BK
233 (char*)NULL };
234
235/* * * * * * * * * * * * * * * * * * * * * * * * * *
236 *
237 * Description 7 - Arm_Wchar fix
238 */
239tSCC zArm_WcharName[] =
240 "Arm_Wchar";
241/*
242 * File name selection pattern
243 */
244tSCC zArm_WcharList[] =
c329beb0 245 "|stdlib.h|";
06bbab1b
BK
246/*
247 * Machine/OS name selection pattern
248 */
249#define apzArm_WcharMachs (const char**)NULL
250
251/*
be02fa1a 252 * content selection pattern - do fix if pattern found
06bbab1b
BK
253 */
254tSCC zArm_WcharSelect0[] =
255 "#[ \t]*define[ \t]*__wchar_t";
256
257#define ARM_WCHAR_TEST_CT 1
be02fa1a 258#define ARM_WCHAR_RE_CT 1
06bbab1b 259tTestDesc aArm_WcharTests[] = {
be02fa1a 260 { TT_EGREP, zArm_WcharSelect0, (regex_t*)NULL }, };
06bbab1b
BK
261
262/*
263 * Fix Command Arguments for Arm_Wchar
264 */
265const char* apzArm_WcharPatch[] = { "sed",
be02fa1a
BK
266 "-e", "s/\\(#[ \t]*ifndef[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",
267 "-e", "s/\\(#[ \t]*define[ \t]*\\)__wchar_t/\\1_GCC_WCHAR_T/",
06bbab1b
BK
268 (char*)NULL };
269
270/* * * * * * * * * * * * * * * * * * * * * * * * * *
271 *
272 * Description 8 - Aux_Asm fix
273 */
274tSCC zAux_AsmName[] =
275 "Aux_Asm";
276/*
277 * File name selection pattern
278 */
279tSCC zAux_AsmList[] =
c329beb0 280 "|sys/param.h|";
06bbab1b
BK
281/*
282 * Machine/OS name selection pattern
283 */
284#define apzAux_AsmMachs (const char**)NULL
285
286/*
be02fa1a 287 * content selection pattern - do fix if pattern found
06bbab1b
BK
288 */
289tSCC zAux_AsmSelect0[] =
290 "#ifndef NOINLINE";
291
292#define AUX_ASM_TEST_CT 1
be02fa1a 293#define AUX_ASM_RE_CT 1
06bbab1b 294tTestDesc aAux_AsmTests[] = {
be02fa1a 295 { TT_EGREP, zAux_AsmSelect0, (regex_t*)NULL }, };
06bbab1b
BK
296
297/*
298 * Fix Command Arguments for Aux_Asm
299 */
300const char* apzAux_AsmPatch[] = { "sed",
be02fa1a 301 "-e", "s|#ifndef NOINLINE|#if !defined(NOINLINE) \\&\\& !defined(__GNUC__)|",
06bbab1b
BK
302 (char*)NULL };
303
304/* * * * * * * * * * * * * * * * * * * * * * * * * *
305 *
306 * Description 9 - Avoid_Bool fix
307 */
308tSCC zAvoid_BoolName[] =
309 "Avoid_Bool";
310/*
311 * File name selection pattern
312 */
313tSCC zAvoid_BoolList[] =
c329beb0 314 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
06bbab1b
BK
315/*
316 * Machine/OS name selection pattern
317 */
318#define apzAvoid_BoolMachs (const char**)NULL
319#define AVOID_BOOL_TEST_CT 0
be02fa1a 320#define AVOID_BOOL_RE_CT 0
06bbab1b
BK
321#define aAvoid_BoolTests (tTestDesc*)NULL
322
323/*
324 * Fix Command Arguments for Avoid_Bool
325 */
326const char* apzAvoid_BoolPatch[] = { "sed",
c329beb0
BK
327 "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/i\\\n\
328#ifndef __cplusplus\n",
329 "-e", "/^#[ \t]*define[ \t][ \t]*bool[ \t][ \t]*char[ \t]*$/a\\\n\
330#endif\n",
331 "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/i\\\n\
332#ifndef __cplusplus\n",
333 "-e", "/^typedef[ \t][ \t]*char[ \t][ \t]*bool[ \t]*;/a\\\n\
334#endif\n",
335 "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/i\\\n\
336#ifndef __cplusplus\n",
337 "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/a\\\n\
338#endif\n",
06bbab1b
BK
339 (char*)NULL };
340
341/* * * * * * * * * * * * * * * * * * * * * * * * * *
342 *
48bd9529 343 * Description 10 - Bad_Struct_Term fix
06bbab1b
BK
344 */
345tSCC zBad_Struct_TermName[] =
346 "Bad_Struct_Term";
347/*
348 * File name selection pattern
349 */
350tSCC zBad_Struct_TermList[] =
c329beb0 351 "|curses.h|";
06bbab1b
BK
352/*
353 * Machine/OS name selection pattern
354 */
355#define apzBad_Struct_TermMachs (const char**)NULL
356
357/*
be02fa1a 358 * content selection pattern - do fix if pattern found
06bbab1b
BK
359 */
360tSCC zBad_Struct_TermSelect0[] =
361 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
362
363#define BAD_STRUCT_TERM_TEST_CT 1
be02fa1a 364#define BAD_STRUCT_TERM_RE_CT 1
06bbab1b 365tTestDesc aBad_Struct_TermTests[] = {
be02fa1a 366 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
06bbab1b
BK
367
368/*
369 * Fix Command Arguments for Bad_Struct_Term
370 */
371const char* apzBad_Struct_TermPatch[] = { "sed",
be02fa1a 372 "-e", "s/^[ \t]*typedef[ \t][ \t]*\\(struct[ \t][ \t]*term[ \t]*;[ \t]*\\)$/\\1/",
06bbab1b
BK
373 (char*)NULL };
374
375/* * * * * * * * * * * * * * * * * * * * * * * * * *
376 *
48bd9529 377 * Description 11 - Badquote fix
06bbab1b
BK
378 */
379tSCC zBadquoteName[] =
380 "Badquote";
381/*
382 * File name selection pattern
383 */
384tSCC zBadquoteList[] =
c329beb0 385 "|sundev/vuid_event.h|";
06bbab1b
BK
386/*
387 * Machine/OS name selection pattern
388 */
389#define apzBadquoteMachs (const char**)NULL
390#define BADQUOTE_TEST_CT 0
be02fa1a 391#define BADQUOTE_RE_CT 0
06bbab1b
BK
392#define aBadquoteTests (tTestDesc*)NULL
393
394/*
395 * Fix Command Arguments for Badquote
396 */
397const char* apzBadquotePatch[] = { "sed",
be02fa1a 398 "-e", "s/doesn't/does not/",
06bbab1b
BK
399 (char*)NULL };
400
401/* * * * * * * * * * * * * * * * * * * * * * * * * *
402 *
48bd9529 403 * Description 12 - Bad_Lval fix
06bbab1b
BK
404 */
405tSCC zBad_LvalName[] =
406 "Bad_Lval";
407/*
408 * File name selection pattern
409 */
410tSCC zBad_LvalList[] =
c329beb0 411 "|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|";
06bbab1b
BK
412/*
413 * Machine/OS name selection pattern
414 */
415#define apzBad_LvalMachs (const char**)NULL
416
417/*
be02fa1a 418 * content selection pattern - do fix if pattern found
06bbab1b
BK
419 */
420tSCC zBad_LvalSelect0[] =
421 "^[ \t]*#[ \t]*pragma[ \t]extern_prefix";
422
423#define BAD_LVAL_TEST_CT 1
be02fa1a 424#define BAD_LVAL_RE_CT 1
06bbab1b 425tTestDesc aBad_LvalTests[] = {
be02fa1a 426 { TT_EGREP, zBad_LvalSelect0, (regex_t*)NULL }, };
06bbab1b
BK
427
428/*
429 * Fix Command Arguments for Bad_Lval
430 */
431const char* apzBad_LvalPatch[] = { "sed",
be02fa1a 432 "-e", "s/^[ \t]*#[ \t]*define[ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
06bbab1b
BK
433 (char*)NULL };
434
435/* * * * * * * * * * * * * * * * * * * * * * * * * *
436 *
48bd9529 437 * Description 13 - Broken_Assert_Stdio fix
06bbab1b
BK
438 */
439tSCC zBroken_Assert_StdioName[] =
440 "Broken_Assert_Stdio";
441/*
442 * File name selection pattern
443 */
444tSCC zBroken_Assert_StdioList[] =
c329beb0 445 "|assert.h|";
06bbab1b
BK
446/*
447 * Machine/OS name selection pattern
448 */
449#define apzBroken_Assert_StdioMachs (const char**)NULL
450
451/*
be02fa1a 452 * content selection pattern - do fix if pattern found
06bbab1b
BK
453 */
454tSCC zBroken_Assert_StdioSelect0[] =
455 "stderr";
456
457/*
be02fa1a 458 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
459 */
460tSCC zBroken_Assert_StdioBypass0[] =
461 "include.*stdio.h";
462
463#define BROKEN_ASSERT_STDIO_TEST_CT 2
be02fa1a 464#define BROKEN_ASSERT_STDIO_RE_CT 2
06bbab1b 465tTestDesc aBroken_Assert_StdioTests[] = {
be02fa1a
BK
466 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
467 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
06bbab1b
BK
468
469/*
470 * Fix Command Arguments for Broken_Assert_Stdio
471 */
472const char* apzBroken_Assert_StdioPatch[] = { "sed",
c329beb0
BK
473 "-e", "1i\\\n\
474#include <stdio.h>\n",
06bbab1b
BK
475 (char*)NULL };
476
477/* * * * * * * * * * * * * * * * * * * * * * * * * *
478 *
48bd9529 479 * Description 14 - Broken_Assert_Stdlib fix
06bbab1b
BK
480 */
481tSCC zBroken_Assert_StdlibName[] =
482 "Broken_Assert_Stdlib";
483/*
484 * File name selection pattern
485 */
486tSCC zBroken_Assert_StdlibList[] =
c329beb0 487 "|assert.h|";
06bbab1b
BK
488/*
489 * Machine/OS name selection pattern
490 */
491#define apzBroken_Assert_StdlibMachs (const char**)NULL
492
493/*
be02fa1a 494 * content selection pattern - do fix if pattern found
06bbab1b
BK
495 */
496tSCC zBroken_Assert_StdlibSelect0[] =
497 "exit *\\(|abort *\\(";
498
499/*
be02fa1a 500 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
501 */
502tSCC zBroken_Assert_StdlibBypass0[] =
503 "include.*stdlib.h";
504
505#define BROKEN_ASSERT_STDLIB_TEST_CT 2
be02fa1a 506#define BROKEN_ASSERT_STDLIB_RE_CT 2
06bbab1b 507tTestDesc aBroken_Assert_StdlibTests[] = {
be02fa1a
BK
508 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
509 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
06bbab1b
BK
510
511/*
512 * Fix Command Arguments for Broken_Assert_Stdlib
513 */
514const char* apzBroken_Assert_StdlibPatch[] = { "sed",
c329beb0
BK
515 "-e", "1i\\\n\
516#ifdef __cplusplus\\\n\
517#include <stdlib.h>\\\n\
518#endif\n",
06bbab1b
BK
519 (char*)NULL };
520
521/* * * * * * * * * * * * * * * * * * * * * * * * * *
522 *
48bd9529 523 * Description 15 - Bsd43_Io_Macros fix
06bbab1b
BK
524 */
525tSCC zBsd43_Io_MacrosName[] =
526 "Bsd43_Io_Macros";
527/*
528 * File name selection pattern
529 */
530#define zBsd43_Io_MacrosList (char*)NULL
531/*
532 * Machine/OS name selection pattern
533 */
534#define apzBsd43_Io_MacrosMachs (const char**)NULL
535
536/*
be02fa1a 537 * content selection pattern - do fix if pattern found
06bbab1b
BK
538 */
539tSCC zBsd43_Io_MacrosSelect0[] =
540 "BSD43__IO";
541
542#define BSD43_IO_MACROS_TEST_CT 1
be02fa1a 543#define BSD43_IO_MACROS_RE_CT 1
06bbab1b 544tTestDesc aBsd43_Io_MacrosTests[] = {
be02fa1a 545 { TT_EGREP, zBsd43_Io_MacrosSelect0, (regex_t*)NULL }, };
06bbab1b
BK
546
547/*
548 * Fix Command Arguments for Bsd43_Io_Macros
549 */
550const char* apzBsd43_Io_MacrosPatch[] = { "sed",
be02fa1a
BK
551 "-e", "/[ \t]BSD43__IO[A-Z]*[ \t]*(/s/(\\(.\\),/('\\1',/",
552 "-e", "/#[ \t]*define[ \t]*[ \t]BSD43__IO/s/'\\([cgx]\\)'/\\1/g",
06bbab1b
BK
553 (char*)NULL };
554
48bd9529
BK
555/* * * * * * * * * * * * * * * * * * * * * * * * * *
556 *
557 * Description 16 - Dec_Intern_Asm fix
558 */
559tSCC zDec_Intern_AsmName[] =
560 "Dec_Intern_Asm";
561/*
562 * File name selection pattern
563 */
564tSCC zDec_Intern_AsmList[] =
c329beb0 565 "|c_asm.h|";
48bd9529
BK
566/*
567 * Machine/OS name selection pattern
568 */
569#define apzDec_Intern_AsmMachs (const char**)NULL
570#define DEC_INTERN_ASM_TEST_CT 0
be02fa1a 571#define DEC_INTERN_ASM_RE_CT 0
48bd9529
BK
572#define aDec_Intern_AsmTests (tTestDesc*)NULL
573
574/*
575 * Fix Command Arguments for Dec_Intern_Asm
576 */
577const char* apzDec_Intern_AsmPatch[] = { "sed",
c329beb0
BK
578 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
579#ifdef __DECC\n",
580 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
581#endif\n",
48bd9529
BK
582 (char*)NULL };
583
06bbab1b
BK
584/* * * * * * * * * * * * * * * * * * * * * * * * * *
585 *
586 * Description 17 - No_Double_Slash fix
587 */
588tSCC zNo_Double_SlashName[] =
589 "No_Double_Slash";
590/*
591 * File name selection pattern
592 */
593#define zNo_Double_SlashList (char*)NULL
594/*
595 * Machine/OS name selection pattern
596 */
597#define apzNo_Double_SlashMachs (const char**)NULL
598
599/*
be02fa1a 600 * content selection pattern - do fix if pattern found
06bbab1b
BK
601 */
602tSCC zNo_Double_SlashSelect0[] =
be02fa1a 603 "(^|[^:])//[^\"*]";
06bbab1b
BK
604
605/*
be02fa1a 606 * perform the 'test' shell command - do fix on success
06bbab1b
BK
607 */
608tSCC zNo_Double_SlashTest0[] =
ef16b5e5 609 "-z `echo ${file} | egrep '(CC|cxx|\\+\\+)/' `";
06bbab1b
BK
610
611#define NO_DOUBLE_SLASH_TEST_CT 2
be02fa1a 612#define NO_DOUBLE_SLASH_RE_CT 1
06bbab1b 613tTestDesc aNo_Double_SlashTests[] = {
be02fa1a
BK
614 { TT_TEST, zNo_Double_SlashTest0, 0 /* unused */ },
615 { TT_EGREP, zNo_Double_SlashSelect0, (regex_t*)NULL }, };
06bbab1b
BK
616
617/*
618 * Fix Command Arguments for No_Double_Slash
619 */
620const char* apzNo_Double_SlashPatch[] = { "sed",
ef16b5e5
JL
621 "-e", "s,^//.*$,,",
622 "-e", "s,[^:]//[^\"].*$,,",
06bbab1b
BK
623 (char*)NULL };
624
625/* * * * * * * * * * * * * * * * * * * * * * * * * *
626 *
48bd9529 627 * Description 18 - Ecd_Cursor fix
06bbab1b
BK
628 */
629tSCC zEcd_CursorName[] =
630 "Ecd_Cursor";
631/*
632 * File name selection pattern
633 */
634tSCC zEcd_CursorList[] =
c329beb0 635 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
06bbab1b
BK
636/*
637 * Machine/OS name selection pattern
638 */
639#define apzEcd_CursorMachs (const char**)NULL
640#define ECD_CURSOR_TEST_CT 0
be02fa1a 641#define ECD_CURSOR_RE_CT 0
06bbab1b
BK
642#define aEcd_CursorTests (tTestDesc*)NULL
643
644/*
645 * Fix Command Arguments for Ecd_Cursor
646 */
647const char* apzEcd_CursorPatch[] = { "sed",
be02fa1a 648 "-e", "s/ecd.cursor/ecd_cursor/",
06bbab1b
BK
649 (char*)NULL };
650
651/* * * * * * * * * * * * * * * * * * * * * * * * * *
652 *
26e2e81d
RL
653 * Description 19 - Sco5_Stat_Wrappers fix
654 */
655tSCC zSco5_Stat_WrappersName[] =
656 "Sco5_Stat_Wrappers";
657/*
658 * File name selection pattern
659 */
660tSCC zSco5_Stat_WrappersList[] =
c329beb0 661 "|sys/stat.h|";
26e2e81d
RL
662/*
663 * Machine/OS name selection pattern
664 */
665tSCC* apzSco5_Stat_WrappersMachs[] = {
666 "i*86-*-sco3.2v5*",
667 (const char*)NULL };
668#define SCO5_STAT_WRAPPERS_TEST_CT 0
669#define SCO5_STAT_WRAPPERS_RE_CT 0
670#define aSco5_Stat_WrappersTests (tTestDesc*)NULL
671
672/*
673 * Fix Command Arguments for Sco5_Stat_Wrappers
674 */
675const char* apzSco5_Stat_WrappersPatch[] = { "sed",
c329beb0
BK
676 "-e", "/^static int[ \t]*[a-z]*stat(/i\\\n\
677#ifdef __cplusplus\\\n\
678extern \"C\"\\\n\
679{\\\n\
680#endif\\\n",
681 "-e", "/^}$/a\\\n\
682#ifdef __cplusplus\\\n\
683}\\\n\
684#endif /* __cplusplus */\\\n",
26e2e81d
RL
685 (char*)NULL };
686
687/* * * * * * * * * * * * * * * * * * * * * * * * * *
688 *
689 * Description 20 - Else_Label fix
06bbab1b
BK
690 */
691tSCC zElse_LabelName[] =
692 "Else_Label";
693/*
694 * File name selection pattern
695 */
696#define zElse_LabelList (char*)NULL
697/*
698 * Machine/OS name selection pattern
699 */
700#define apzElse_LabelMachs (const char**)NULL
701
702/*
be02fa1a 703 * content selection pattern - do fix if pattern found
06bbab1b
BK
704 */
705tSCC zElse_LabelSelect0[] =
706 "^[ \t]*#[ \t]*else[ \t]+[!-.0-~]";
707
708#define ELSE_LABEL_TEST_CT 1
be02fa1a 709#define ELSE_LABEL_RE_CT 1
06bbab1b 710tTestDesc aElse_LabelTests[] = {
be02fa1a 711 { TT_EGREP, zElse_LabelSelect0, (regex_t*)NULL }, };
06bbab1b
BK
712
713/*
714 * Fix Command Arguments for Else_Label
715 */
716const char* apzElse_LabelPatch[] = { "sed",
c329beb0
BK
717 "-e", ":loop\n\
718/\\\\$/N\n\
719s/\\\\$/\\\\+++fixinc_eol+++/\n\
720/\\\\$/b loop\n\
721s/\\\\+++fixinc_eol+++/\\\\/g\n\
722s%^\\([ \t]*#[ \t]*else\\)[ \t]*/[^*].*%\\1%\n\
723s%^\\([ \t]*#[ \t]*else\\)[ \t]*[^/ \t].*%\\1%",
06bbab1b
BK
724 (char*)NULL };
725
726/* * * * * * * * * * * * * * * * * * * * * * * * * *
727 *
26e2e81d 728 * Description 21 - Endif_Label fix
06bbab1b
BK
729 */
730tSCC zEndif_LabelName[] =
731 "Endif_Label";
732/*
733 * File name selection pattern
734 */
735#define zEndif_LabelList (char*)NULL
736/*
737 * Machine/OS name selection pattern
738 */
739#define apzEndif_LabelMachs (const char**)NULL
740
741/*
be02fa1a 742 * content selection pattern - do fix if pattern found
06bbab1b
BK
743 */
744tSCC zEndif_LabelSelect0[] =
745 "^[ \t]*#[ \t]*endif[ \t]+[!-.0-z{|}~]";
746
747#define ENDIF_LABEL_TEST_CT 1
be02fa1a 748#define ENDIF_LABEL_RE_CT 1
06bbab1b 749tTestDesc aEndif_LabelTests[] = {
be02fa1a 750 { TT_EGREP, zEndif_LabelSelect0, (regex_t*)NULL }, };
06bbab1b
BK
751
752/*
753 * Fix Command Arguments for Endif_Label
754 */
755const char* apzEndif_LabelPatch[] = { "sed",
c329beb0
BK
756 "-e", ":loop\n\
757/\\\\$/N\n\
758s/\\\\$/\\\\+++fixinc_eol+++/\n\
759/\\\\$/b loop\n\
760s/\\\\+++fixinc_eol+++/\\\\/g\n\
761s%^\\([ \t]*#[ \t]*endif\\)[ \t]*/[^*].*%\\1%\n\
762s%^\\([ \t]*#[ \t]*endif\\)[ \t]*\\*[^/].*%\\1%\n\
763s%^\\([ \t]*#[ \t]*endif\\)[ \t]*[^/* \t].*%\\1%",
06bbab1b
BK
764 (char*)NULL };
765
766/* * * * * * * * * * * * * * * * * * * * * * * * * *
767 *
26e2e81d 768 * Description 22 - Hp_Inline fix
06bbab1b
BK
769 */
770tSCC zHp_InlineName[] =
771 "Hp_Inline";
772/*
773 * File name selection pattern
774 */
775tSCC zHp_InlineList[] =
c329beb0 776 "|sys/spinlock.h|";
06bbab1b
BK
777/*
778 * Machine/OS name selection pattern
779 */
780#define apzHp_InlineMachs (const char**)NULL
781
782/*
be02fa1a 783 * content selection pattern - do fix if pattern found
06bbab1b
BK
784 */
785tSCC zHp_InlineSelect0[] =
786 "include.*\"\\.\\./machine/";
787
788#define HP_INLINE_TEST_CT 1
be02fa1a 789#define HP_INLINE_RE_CT 1
06bbab1b 790tTestDesc aHp_InlineTests[] = {
be02fa1a 791 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
06bbab1b
BK
792
793/*
794 * Fix Command Arguments for Hp_Inline
795 */
796const char* apzHp_InlinePatch[] = { "sed",
be02fa1a
BK
797 "-e", "s,\"../machine/inline.h\",<machine/inline.h>,",
798 "-e", "s,\"../machine/psl.h\",<machine/psl.h>,",
06bbab1b
BK
799 (char*)NULL };
800
801/* * * * * * * * * * * * * * * * * * * * * * * * * *
802 *
26e2e81d 803 * Description 23 - Hp_Sysfile fix
06bbab1b
BK
804 */
805tSCC zHp_SysfileName[] =
806 "Hp_Sysfile";
807/*
808 * File name selection pattern
809 */
810tSCC zHp_SysfileList[] =
c329beb0 811 "|sys/file.h|";
06bbab1b
BK
812/*
813 * Machine/OS name selection pattern
814 */
815#define apzHp_SysfileMachs (const char**)NULL
816
817/*
be02fa1a 818 * content selection pattern - do fix if pattern found
06bbab1b
BK
819 */
820tSCC zHp_SysfileSelect0[] =
821 "HPUX_SOURCE";
822
823#define HP_SYSFILE_TEST_CT 1
be02fa1a 824#define HP_SYSFILE_RE_CT 1
06bbab1b 825tTestDesc aHp_SysfileTests[] = {
be02fa1a 826 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
06bbab1b
BK
827
828/*
829 * Fix Command Arguments for Hp_Sysfile
830 */
831const char* apzHp_SysfilePatch[] = { "sed",
be02fa1a 832 "-e", "s/(\\.\\.\\.)/(struct file * ...)/",
06bbab1b
BK
833 (char*)NULL };
834
835/* * * * * * * * * * * * * * * * * * * * * * * * * *
836 *
26e2e81d 837 * Description 24 - Cxx_Unready fix
06bbab1b 838 */
48bd9529
BK
839tSCC zCxx_UnreadyName[] =
840 "Cxx_Unready";
06bbab1b
BK
841/*
842 * File name selection pattern
843 */
48bd9529 844tSCC zCxx_UnreadyList[] =
c329beb0 845 "|sys/mman.h|rpc/types.h|";
06bbab1b
BK
846/*
847 * Machine/OS name selection pattern
848 */
48bd9529 849#define apzCxx_UnreadyMachs (const char**)NULL
06bbab1b
BK
850
851/*
be02fa1a 852 * content bypass pattern - skip fix if pattern found
06bbab1b 853 */
48bd9529 854tSCC zCxx_UnreadyBypass0[] =
06bbab1b
BK
855 "\"C\"|__BEGIN_DECLS";
856
48bd9529 857#define CXX_UNREADY_TEST_CT 1
be02fa1a 858#define CXX_UNREADY_RE_CT 1
48bd9529 859tTestDesc aCxx_UnreadyTests[] = {
be02fa1a 860 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL }, };
06bbab1b
BK
861
862/*
48bd9529 863 * Fix Command Arguments for Cxx_Unready
06bbab1b 864 */
48bd9529 865const char* apzCxx_UnreadyPatch[] = { "sed",
c329beb0
BK
866 "-e", "1i\\\n\
867#ifdef __cplusplus\\\n\
868extern \"C\" {\\\n\
869#endif\\\n\
870\n",
871 "-e", "$a\\\n\
872#ifdef __cplusplus\\\n\
873}\\\n\
874#endif\n",
06bbab1b
BK
875 (char*)NULL };
876
877/* * * * * * * * * * * * * * * * * * * * * * * * * *
878 *
26e2e81d 879 * Description 25 - Hpux_Maxint fix
06bbab1b
BK
880 */
881tSCC zHpux_MaxintName[] =
882 "Hpux_Maxint";
883/*
884 * File name selection pattern
885 */
886tSCC zHpux_MaxintList[] =
c329beb0 887 "|sys/param.h|";
06bbab1b
BK
888/*
889 * Machine/OS name selection pattern
890 */
891#define apzHpux_MaxintMachs (const char**)NULL
892#define HPUX_MAXINT_TEST_CT 0
be02fa1a 893#define HPUX_MAXINT_RE_CT 0
06bbab1b
BK
894#define aHpux_MaxintTests (tTestDesc*)NULL
895
896/*
897 * Fix Command Arguments for Hpux_Maxint
898 */
899const char* apzHpux_MaxintPatch[] = { "sed",
c329beb0
BK
900 "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/i\\\n\
901#ifndef MAXINT\n",
902 "-e", "/^#[ \t]*define[ \t]*MAXINT[ \t]/a\\\n\
903#endif\n",
06bbab1b
BK
904 (char*)NULL };
905
906/* * * * * * * * * * * * * * * * * * * * * * * * * *
907 *
26e2e81d 908 * Description 26 - Hpux_Systime fix
06bbab1b
BK
909 */
910tSCC zHpux_SystimeName[] =
911 "Hpux_Systime";
912/*
913 * File name selection pattern
914 */
915tSCC zHpux_SystimeList[] =
c329beb0 916 "|sys/time.h|";
06bbab1b
BK
917/*
918 * Machine/OS name selection pattern
919 */
920#define apzHpux_SystimeMachs (const char**)NULL
921
922/*
be02fa1a 923 * content selection pattern - do fix if pattern found
06bbab1b
BK
924 */
925tSCC zHpux_SystimeSelect0[] =
926 "^extern struct sigevent;";
927
928#define HPUX_SYSTIME_TEST_CT 1
be02fa1a 929#define HPUX_SYSTIME_RE_CT 1
06bbab1b 930tTestDesc aHpux_SystimeTests[] = {
be02fa1a 931 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
06bbab1b
BK
932
933/*
934 * Fix Command Arguments for Hpux_Systime
935 */
936const char* apzHpux_SystimePatch[] = { "sed",
be02fa1a 937 "-e", "s/^extern struct sigevent;/struct sigevent;/",
06bbab1b
BK
938 (char*)NULL };
939
940/* * * * * * * * * * * * * * * * * * * * * * * * * *
941 *
26e2e81d 942 * Description 27 - Interactv_Add1 fix
06bbab1b
BK
943 */
944tSCC zInteractv_Add1Name[] =
945 "Interactv_Add1";
946/*
947 * File name selection pattern
948 */
949tSCC zInteractv_Add1List[] =
c329beb0 950 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
06bbab1b
BK
951/*
952 * Machine/OS name selection pattern
953 */
954#define apzInteractv_Add1Machs (const char**)NULL
955
956/*
be02fa1a 957 * perform the 'test' shell command - do fix on success
06bbab1b
BK
958 */
959tSCC zInteractv_Add1Test0[] =
48bd9529 960 " -d /etc/conf/kconfig.d";
06bbab1b 961tSCC zInteractv_Add1Test1[] =
48bd9529 962 " -n \"`grep _POSIX_VERSION /usr/include/sys/unistd.h`\"";
06bbab1b
BK
963
964#define INTERACTV_ADD1_TEST_CT 2
be02fa1a 965#define INTERACTV_ADD1_RE_CT 0
06bbab1b 966tTestDesc aInteractv_Add1Tests[] = {
be02fa1a
BK
967 { TT_TEST, zInteractv_Add1Test0, 0 /* unused */ },
968 { TT_TEST, zInteractv_Add1Test1, 0 /* unused */ }, };
06bbab1b
BK
969
970/*
971 * Fix Command Arguments for Interactv_Add1
972 */
973const char* apzInteractv_Add1Patch[] = { "sed",
be02fa1a 974 "-e", "s/!defined(__STDC__) && !defined(_POSIX_SOURCE)/!defined(_POSIX_SOURCE)/",
06bbab1b
BK
975 (char*)NULL };
976
977/* * * * * * * * * * * * * * * * * * * * * * * * * *
978 *
26e2e81d 979 * Description 28 - Interactv_Add2 fix
06bbab1b
BK
980 */
981tSCC zInteractv_Add2Name[] =
982 "Interactv_Add2";
983/*
984 * File name selection pattern
985 */
986tSCC zInteractv_Add2List[] =
c329beb0 987 "|math.h|";
06bbab1b
BK
988/*
989 * Machine/OS name selection pattern
990 */
991#define apzInteractv_Add2Machs (const char**)NULL
992
993/*
be02fa1a 994 * perform the 'test' shell command - do fix on success
06bbab1b
BK
995 */
996tSCC zInteractv_Add2Test0[] =
48bd9529 997 " -d /etc/conf/kconfig.d";
06bbab1b 998tSCC zInteractv_Add2Test1[] =
48bd9529 999 " -n \"`grep _POSIX_VERSION /usr/include/sys/unistd.h`\"";
06bbab1b
BK
1000
1001#define INTERACTV_ADD2_TEST_CT 2
be02fa1a 1002#define INTERACTV_ADD2_RE_CT 0
06bbab1b 1003tTestDesc aInteractv_Add2Tests[] = {
be02fa1a
BK
1004 { TT_TEST, zInteractv_Add2Test0, 0 /* unused */ },
1005 { TT_TEST, zInteractv_Add2Test1, 0 /* unused */ }, };
06bbab1b
BK
1006
1007/*
1008 * Fix Command Arguments for Interactv_Add2
1009 */
1010const char* apzInteractv_Add2Patch[] = { "sed",
be02fa1a 1011 "-e", "s/fmod(double)/fmod(double, double)/",
06bbab1b
BK
1012 (char*)NULL };
1013
1014/* * * * * * * * * * * * * * * * * * * * * * * * * *
1015 *
26e2e81d 1016 * Description 29 - Interactv_Add3 fix
06bbab1b
BK
1017 */
1018tSCC zInteractv_Add3Name[] =
1019 "Interactv_Add3";
1020/*
1021 * File name selection pattern
1022 */
1023tSCC zInteractv_Add3List[] =
c329beb0 1024 "|sys/limits.h|";
06bbab1b
BK
1025/*
1026 * Machine/OS name selection pattern
1027 */
1028#define apzInteractv_Add3Machs (const char**)NULL
1029
1030/*
be02fa1a 1031 * perform the 'test' shell command - do fix on success
06bbab1b
BK
1032 */
1033tSCC zInteractv_Add3Test0[] =
48bd9529 1034 " -d /etc/conf/kconfig.d";
06bbab1b 1035tSCC zInteractv_Add3Test1[] =
48bd9529 1036 " -n \"`grep _POSIX_VERSION /usr/include/sys/unistd.h`\"";
06bbab1b
BK
1037
1038#define INTERACTV_ADD3_TEST_CT 2
be02fa1a 1039#define INTERACTV_ADD3_RE_CT 0
06bbab1b 1040tTestDesc aInteractv_Add3Tests[] = {
be02fa1a
BK
1041 { TT_TEST, zInteractv_Add3Test0, 0 /* unused */ },
1042 { TT_TEST, zInteractv_Add3Test1, 0 /* unused */ }, };
06bbab1b
BK
1043
1044/*
1045 * Fix Command Arguments for Interactv_Add3
1046 */
1047const char* apzInteractv_Add3Patch[] = { "sed",
be02fa1a
BK
1048 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
1049 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
06bbab1b
BK
1050 (char*)NULL };
1051
1052/* * * * * * * * * * * * * * * * * * * * * * * * * *
1053 *
26e2e81d 1054 * Description 30 - Io_Def_Quotes fix
06bbab1b
BK
1055 */
1056tSCC zIo_Def_QuotesName[] =
1057 "Io_Def_Quotes";
1058/*
1059 * File name selection pattern
1060 */
1061#define zIo_Def_QuotesList (char*)NULL
1062/*
1063 * Machine/OS name selection pattern
1064 */
1065#define apzIo_Def_QuotesMachs (const char**)NULL
1066
1067/*
be02fa1a 1068 * content selection pattern - do fix if pattern found
06bbab1b
BK
1069 */
1070tSCC zIo_Def_QuotesSelect0[] =
49da3efb 1071 "[ \t]*[ \t](_|DES)IO[A-Z]*[ \t]*\\( *[^,']";
06bbab1b
BK
1072
1073#define IO_DEF_QUOTES_TEST_CT 1
be02fa1a 1074#define IO_DEF_QUOTES_RE_CT 1
06bbab1b 1075tTestDesc aIo_Def_QuotesTests[] = {
be02fa1a 1076 { TT_EGREP, zIo_Def_QuotesSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1077
1078/*
1079 * Fix Command Arguments for Io_Def_Quotes
1080 */
1081const char* apzIo_Def_QuotesPatch[] = { "sed",
5403593a
BK
1082 "-e", "s/\\([ \t]*[ \t]_IO[A-Z]*[ \t]*(\\)\\([^,']\\),/\\1'\\2',/",
1083 "-e", "s/\\([ \t]*[ \t]DESIO[A-Z]*[ \t]*(\\)\\([^,']\\),/\\1'\\2',/",
be02fa1a
BK
1084 "-e", "/#[ \t]*define[ \t]*[ \t]_IO/s/'\\([cgxtf]\\)'/\\1/g",
1085 "-e", "/#[ \t]*define[ \t]*[ \t]DESIOC/s/'\\([cdgx]\\)'/\\1/g",
06bbab1b
BK
1086 (char*)NULL };
1087
1088/* * * * * * * * * * * * * * * * * * * * * * * * * *
1089 *
26e2e81d 1090 * Description 31 - Ioctl_Fix_Ctrl fix
06bbab1b
BK
1091 */
1092tSCC zIoctl_Fix_CtrlName[] =
1093 "Ioctl_Fix_Ctrl";
1094/*
1095 * File name selection pattern
1096 */
1097#define zIoctl_Fix_CtrlList (char*)NULL
1098/*
1099 * Machine/OS name selection pattern
1100 */
1101#define apzIoctl_Fix_CtrlMachs (const char**)NULL
1102
1103/*
be02fa1a 1104 * content selection pattern - do fix if pattern found
06bbab1b
BK
1105 */
1106tSCC zIoctl_Fix_CtrlSelect0[] =
1107 "CTRL[ \t]";
1108
1109#define IOCTL_FIX_CTRL_TEST_CT 1
be02fa1a 1110#define IOCTL_FIX_CTRL_RE_CT 1
06bbab1b 1111tTestDesc aIoctl_Fix_CtrlTests[] = {
be02fa1a 1112 { TT_EGREP, zIoctl_Fix_CtrlSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1113
1114/*
1115 * Fix Command Arguments for Ioctl_Fix_Ctrl
1116 */
1117const char* apzIoctl_Fix_CtrlPatch[] = { "sed",
be02fa1a
BK
1118 "-e", "/[^A-Z0-9_]CTRL[ \t]*(/s/\\([^']\\))/'\\1')/",
1119 "-e", "/[^A-Z0-9]_CTRL[ \t]*(/s/\\([^']\\))/'\\1')/",
1120 "-e", "/#[ \t]*define[ \t]*[ \t]CTRL/s/'\\([cgx]\\)'/\\1/g",
1121 "-e", "/#[ \t]*define[ \t]*[ \t]_CTRL/s/'\\([cgx]\\)'/\\1/g",
1122 "-e", "/#[ \t]*define[ \t]*[ \t]BSD43_CTRL/s/'\\([cgx]\\)'/\\1/g",
06bbab1b
BK
1123 (char*)NULL };
1124
1125/* * * * * * * * * * * * * * * * * * * * * * * * * *
1126 *
26e2e81d 1127 * Description 32 - Ip_Missing_Semi fix
06bbab1b
BK
1128 */
1129tSCC zIp_Missing_SemiName[] =
1130 "Ip_Missing_Semi";
1131/*
1132 * File name selection pattern
1133 */
1134tSCC zIp_Missing_SemiList[] =
c329beb0 1135 "|netinet/ip.h|";
06bbab1b
BK
1136/*
1137 * Machine/OS name selection pattern
1138 */
1139#define apzIp_Missing_SemiMachs (const char**)NULL
1140#define IP_MISSING_SEMI_TEST_CT 0
be02fa1a 1141#define IP_MISSING_SEMI_RE_CT 0
06bbab1b
BK
1142#define aIp_Missing_SemiTests (tTestDesc*)NULL
1143
1144/*
1145 * Fix Command Arguments for Ip_Missing_Semi
1146 */
1147const char* apzIp_Missing_SemiPatch[] = { "sed",
be02fa1a 1148 "-e", "/^struct/,/^};/s/}$/};/",
06bbab1b
BK
1149 (char*)NULL };
1150
1151/* * * * * * * * * * * * * * * * * * * * * * * * * *
1152 *
26e2e81d 1153 * Description 33 - Irix_Multiline_Cmnt fix
06bbab1b
BK
1154 */
1155tSCC zIrix_Multiline_CmntName[] =
1156 "Irix_Multiline_Cmnt";
1157/*
1158 * File name selection pattern
1159 */
1160tSCC zIrix_Multiline_CmntList[] =
c329beb0 1161 "|sys/types.h|";
06bbab1b
BK
1162/*
1163 * Machine/OS name selection pattern
1164 */
1165#define apzIrix_Multiline_CmntMachs (const char**)NULL
1166#define IRIX_MULTILINE_CMNT_TEST_CT 0
be02fa1a 1167#define IRIX_MULTILINE_CMNT_RE_CT 0
06bbab1b
BK
1168#define aIrix_Multiline_CmntTests (tTestDesc*)NULL
1169
1170/*
1171 * Fix Command Arguments for Irix_Multiline_Cmnt
1172 */
1173const char* apzIrix_Multiline_CmntPatch[] = { "sed",
be02fa1a
BK
1174 "-e", "s@type of the result@type of the result */@",
1175 "-e", "s@of the sizeof@/* of the sizeof@",
06bbab1b
BK
1176 (char*)NULL };
1177
1178/* * * * * * * * * * * * * * * * * * * * * * * * * *
1179 *
26e2e81d 1180 * Description 34 - Irix_Sockaddr fix
06bbab1b
BK
1181 */
1182tSCC zIrix_SockaddrName[] =
1183 "Irix_Sockaddr";
1184/*
1185 * File name selection pattern
1186 */
1187tSCC zIrix_SockaddrList[] =
c329beb0 1188 "|rpc/auth.h|";
06bbab1b
BK
1189/*
1190 * Machine/OS name selection pattern
1191 */
1192#define apzIrix_SockaddrMachs (const char**)NULL
1193
1194/*
be02fa1a 1195 * content selection pattern - do fix if pattern found
06bbab1b
BK
1196 */
1197tSCC zIrix_SockaddrSelect0[] =
1198 "authdes_create.*struct sockaddr";
1199
1200#define IRIX_SOCKADDR_TEST_CT 1
be02fa1a 1201#define IRIX_SOCKADDR_RE_CT 1
06bbab1b 1202tTestDesc aIrix_SockaddrTests[] = {
be02fa1a 1203 { TT_EGREP, zIrix_SockaddrSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1204
1205/*
1206 * Fix Command Arguments for Irix_Sockaddr
1207 */
1208const char* apzIrix_SockaddrPatch[] = { "sed",
c329beb0
BK
1209 "-e", "/authdes_create.*struct sockaddr/i\\\n\
1210struct sockaddr;\n",
06bbab1b
BK
1211 (char*)NULL };
1212
1213/* * * * * * * * * * * * * * * * * * * * * * * * * *
1214 *
26e2e81d 1215 * Description 35 - Irix_Struct__File fix
06bbab1b
BK
1216 */
1217tSCC zIrix_Struct__FileName[] =
1218 "Irix_Struct__File";
1219/*
1220 * File name selection pattern
1221 */
1222tSCC zIrix_Struct__FileList[] =
c329beb0 1223 "|rpc/xdr.h|";
06bbab1b
BK
1224/*
1225 * Machine/OS name selection pattern
1226 */
1227#define apzIrix_Struct__FileMachs (const char**)NULL
1228#define IRIX_STRUCT__FILE_TEST_CT 0
be02fa1a 1229#define IRIX_STRUCT__FILE_RE_CT 0
06bbab1b
BK
1230#define aIrix_Struct__FileTests (tTestDesc*)NULL
1231
1232/*
1233 * Fix Command Arguments for Irix_Struct__File
1234 */
1235const char* apzIrix_Struct__FilePatch[] = { "sed",
c329beb0
BK
1236 "-e", "/xdrstdio_create.*struct __file_s/i\\\n\
1237struct __file_s;\n",
06bbab1b
BK
1238 (char*)NULL };
1239
1240/* * * * * * * * * * * * * * * * * * * * * * * * * *
1241 *
26e2e81d 1242 * Description 36 - Isc_Fmod fix
06bbab1b
BK
1243 */
1244tSCC zIsc_FmodName[] =
1245 "Isc_Fmod";
1246/*
1247 * File name selection pattern
1248 */
1249tSCC zIsc_FmodList[] =
c329beb0 1250 "|math.h|";
06bbab1b
BK
1251/*
1252 * Machine/OS name selection pattern
1253 */
1254#define apzIsc_FmodMachs (const char**)NULL
1255
1256/*
be02fa1a 1257 * content selection pattern - do fix if pattern found
06bbab1b
BK
1258 */
1259tSCC zIsc_FmodSelect0[] =
1260 "fmod\\(double\\)";
1261
1262#define ISC_FMOD_TEST_CT 1
be02fa1a 1263#define ISC_FMOD_RE_CT 1
06bbab1b 1264tTestDesc aIsc_FmodTests[] = {
be02fa1a 1265 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1266
1267/*
1268 * Fix Command Arguments for Isc_Fmod
1269 */
1270const char* apzIsc_FmodPatch[] = { "sed",
be02fa1a 1271 "-e", "s/fmod(double)/fmod(double, double)/",
06bbab1b
BK
1272 (char*)NULL };
1273
1274/* * * * * * * * * * * * * * * * * * * * * * * * * *
1275 *
26e2e81d 1276 * Description 37 - Motorola_Nested fix
06bbab1b
BK
1277 */
1278tSCC zMotorola_NestedName[] =
1279 "Motorola_Nested";
1280/*
1281 * File name selection pattern
1282 */
1283tSCC zMotorola_NestedList[] =
c329beb0 1284 "|limits.h|sys/limits.h|";
06bbab1b
BK
1285/*
1286 * Machine/OS name selection pattern
1287 */
48bd9529
BK
1288tSCC* apzMotorola_NestedMachs[] = {
1289 "m68k-motorola-sysv*",
1290 (const char*)NULL };
06bbab1b 1291#define MOTOROLA_NESTED_TEST_CT 0
be02fa1a 1292#define MOTOROLA_NESTED_RE_CT 0
06bbab1b
BK
1293#define aMotorola_NestedTests (tTestDesc*)NULL
1294
1295/*
1296 * Fix Command Arguments for Motorola_Nested
1297 */
1298const char* apzMotorola_NestedPatch[] = { "sed",
be02fa1a
BK
1299 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
1300 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.40282346638528860e+38 \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
06bbab1b
BK
1301 (char*)NULL };
1302
1303/* * * * * * * * * * * * * * * * * * * * * * * * * *
1304 *
26e2e81d 1305 * Description 38 - Isc_Sys_Limits fix
06bbab1b
BK
1306 */
1307tSCC zIsc_Sys_LimitsName[] =
1308 "Isc_Sys_Limits";
1309/*
1310 * File name selection pattern
1311 */
1312tSCC zIsc_Sys_LimitsList[] =
c329beb0 1313 "|sys/limits.h|";
06bbab1b
BK
1314/*
1315 * Machine/OS name selection pattern
1316 */
1317#define apzIsc_Sys_LimitsMachs (const char**)NULL
1318
1319/*
be02fa1a 1320 * content selection pattern - do fix if pattern found
06bbab1b
BK
1321 */
1322tSCC zIsc_Sys_LimitsSelect0[] =
1323 "CHILD_MAX";
1324
1325#define ISC_SYS_LIMITS_TEST_CT 1
be02fa1a 1326#define ISC_SYS_LIMITS_RE_CT 1
06bbab1b 1327tTestDesc aIsc_Sys_LimitsTests[] = {
be02fa1a 1328 { TT_EGREP, zIsc_Sys_LimitsSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1329
1330/*
1331 * Fix Command Arguments for Isc_Sys_Limits
1332 */
1333const char* apzIsc_Sys_LimitsPatch[] = { "sed",
be02fa1a
BK
1334 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
1335 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
06bbab1b
BK
1336 (char*)NULL };
1337
1338/* * * * * * * * * * * * * * * * * * * * * * * * * *
1339 *
26e2e81d 1340 * Description 39 - Kandr_Concat fix
06bbab1b
BK
1341 */
1342tSCC zKandr_ConcatName[] =
1343 "Kandr_Concat";
1344/*
1345 * File name selection pattern
1346 */
1347tSCC zKandr_ConcatList[] =
c329beb0 1348 "|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|";
06bbab1b
BK
1349/*
1350 * Machine/OS name selection pattern
1351 */
1352#define apzKandr_ConcatMachs (const char**)NULL
1353
1354/*
be02fa1a 1355 * content selection pattern - do fix if pattern found
06bbab1b
BK
1356 */
1357tSCC zKandr_ConcatSelect0[] =
1358 "/\\*\\*/";
1359
1360#define KANDR_CONCAT_TEST_CT 1
be02fa1a 1361#define KANDR_CONCAT_RE_CT 1
06bbab1b 1362tTestDesc aKandr_ConcatTests[] = {
be02fa1a 1363 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1364
1365/*
1366 * Fix Command Arguments for Kandr_Concat
1367 */
1368const char* apzKandr_ConcatPatch[] = { "sed",
be02fa1a 1369 "-e", "s|/\\*\\*/|##|g",
06bbab1b
BK
1370 (char*)NULL };
1371
1372/* * * * * * * * * * * * * * * * * * * * * * * * * *
1373 *
26e2e81d 1374 * Description 40 - Limits_Ifndefs fix
06bbab1b
BK
1375 */
1376tSCC zLimits_IfndefsName[] =
1377 "Limits_Ifndefs";
1378/*
1379 * File name selection pattern
1380 */
1381tSCC zLimits_IfndefsList[] =
c329beb0 1382 "|limits.h|";
06bbab1b
BK
1383/*
1384 * Machine/OS name selection pattern
1385 */
1386#define apzLimits_IfndefsMachs (const char**)NULL
1387
1388/*
be02fa1a 1389 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
1390 */
1391tSCC zLimits_IfndefsBypass0[] =
1392 "ifndef[ \t]+FLT_MIN";
1393
1394#define LIMITS_IFNDEFS_TEST_CT 1
be02fa1a 1395#define LIMITS_IFNDEFS_RE_CT 1
06bbab1b 1396tTestDesc aLimits_IfndefsTests[] = {
be02fa1a 1397 { TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
06bbab1b
BK
1398
1399/*
1400 * Fix Command Arguments for Limits_Ifndefs
1401 */
1402const char* apzLimits_IfndefsPatch[] = { "sed",
c329beb0
BK
1403 "-e", "/[ \t]FLT_MIN[ \t]/i\\\n\
1404#ifndef FLT_MIN\n",
1405 "-e", "/[ \t]FLT_MIN[ \t]/a\\\n\
1406#endif\n",
1407 "-e", "/[ \t]FLT_MAX[ \t]/i\\\n\
1408#ifndef FLT_MAX\n",
1409 "-e", "/[ \t]FLT_MAX[ \t]/a\\\n\
1410#endif\n",
1411 "-e", "/[ \t]FLT_DIG[ \t]/i\\\n\
1412#ifndef FLT_DIG\n",
1413 "-e", "/[ \t]FLT_DIG[ \t]/a\\\n\
1414#endif\n",
1415 "-e", "/[ \t]DBL_MIN[ \t]/i\\\n\
1416#ifndef DBL_MIN\n",
1417 "-e", "/[ \t]DBL_MIN[ \t]/a\\\n\
1418#endif\n",
1419 "-e", "/[ \t]DBL_MAX[ \t]/i\\\n\
1420#ifndef DBL_MAX\n",
1421 "-e", "/[ \t]DBL_MAX[ \t]/a\\\n\
1422#endif\n",
1423 "-e", "/[ \t]DBL_DIG[ \t]/i\\\n\
1424#ifndef DBL_DIG\n",
1425 "-e", "/[ \t]DBL_DIG[ \t]/a\\\n\
1426#endif\n",
be02fa1a 1427 "-e", "/^\\(\\/\\*#define\tHUGE_VAL\t3\\.[0-9e+]* *\\)\\/\\*/s//\\1/",
06bbab1b
BK
1428 (char*)NULL };
1429
1430/* * * * * * * * * * * * * * * * * * * * * * * * * *
1431 *
26e2e81d 1432 * Description 41 - Lynx_Void_Int fix
06bbab1b
BK
1433 */
1434tSCC zLynx_Void_IntName[] =
1435 "Lynx_Void_Int";
1436/*
1437 * File name selection pattern
1438 */
1439tSCC zLynx_Void_IntList[] =
c329beb0 1440 "|curses.h|";
06bbab1b
BK
1441/*
1442 * Machine/OS name selection pattern
1443 */
1444#define apzLynx_Void_IntMachs (const char**)NULL
1445
1446/*
be02fa1a 1447 * content selection pattern - do fix if pattern found
06bbab1b
BK
1448 */
1449tSCC zLynx_Void_IntSelect0[] =
1450 "#[ \t]*define[ \t]+void[ \t]+int";
1451
1452#define LYNX_VOID_INT_TEST_CT 1
be02fa1a 1453#define LYNX_VOID_INT_RE_CT 1
06bbab1b 1454tTestDesc aLynx_Void_IntTests[] = {
be02fa1a 1455 { TT_EGREP, zLynx_Void_IntSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1456
1457/*
1458 * Fix Command Arguments for Lynx_Void_Int
1459 */
1460const char* apzLynx_Void_IntPatch[] = { "sed",
be02fa1a 1461 "-e", "/#[ \t]*define[ \t][ \t]*void[ \t]int/d",
06bbab1b
BK
1462 (char*)NULL };
1463
1464/* * * * * * * * * * * * * * * * * * * * * * * * * *
1465 *
26e2e81d 1466 * Description 42 - Lynxos_Fcntl_Proto fix
06bbab1b
BK
1467 */
1468tSCC zLynxos_Fcntl_ProtoName[] =
1469 "Lynxos_Fcntl_Proto";
1470/*
1471 * File name selection pattern
1472 */
1473tSCC zLynxos_Fcntl_ProtoList[] =
c329beb0 1474 "|fcntl.h|";
06bbab1b
BK
1475/*
1476 * Machine/OS name selection pattern
1477 */
1478#define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
48bd9529
BK
1479
1480/*
be02fa1a 1481 * content selection pattern - do fix if pattern found
48bd9529
BK
1482 */
1483tSCC zLynxos_Fcntl_ProtoSelect0[] =
1484 "fcntl.*\\(int, int, int\\)";
1485
1486#define LYNXOS_FCNTL_PROTO_TEST_CT 1
be02fa1a 1487#define LYNXOS_FCNTL_PROTO_RE_CT 1
48bd9529 1488tTestDesc aLynxos_Fcntl_ProtoTests[] = {
be02fa1a 1489 { TT_EGREP, zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1490
1491/*
1492 * Fix Command Arguments for Lynxos_Fcntl_Proto
1493 */
1494const char* apzLynxos_Fcntl_ProtoPatch[] = { "sed",
be02fa1a 1495 "-e", "s/\\(fcntl.*(int, int, \\)int)/\\1...)/",
06bbab1b
BK
1496 (char*)NULL };
1497
1498/* * * * * * * * * * * * * * * * * * * * * * * * * *
1499 *
26e2e81d 1500 * Description 43 - M88k_Bad_Hypot_Opt fix
06bbab1b
BK
1501 */
1502tSCC zM88k_Bad_Hypot_OptName[] =
1503 "M88k_Bad_Hypot_Opt";
1504/*
1505 * File name selection pattern
1506 */
1507tSCC zM88k_Bad_Hypot_OptList[] =
c329beb0 1508 "|math.h|";
06bbab1b
BK
1509/*
1510 * Machine/OS name selection pattern
1511 */
1512tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
1513 "m88k-motorola-sysv3*",
1514 (const char*)NULL };
1515#define M88K_BAD_HYPOT_OPT_TEST_CT 0
be02fa1a 1516#define M88K_BAD_HYPOT_OPT_RE_CT 0
06bbab1b
BK
1517#define aM88k_Bad_Hypot_OptTests (tTestDesc*)NULL
1518
1519/*
1520 * Fix Command Arguments for M88k_Bad_Hypot_Opt
1521 */
1522const char* apzM88k_Bad_Hypot_OptPatch[] = { "sed",
be02fa1a 1523 "-e", "s/extern double floor(), ceil(), fmod(), fabs();/extern double floor(), ceil(), fmod(), fabs _PARAMS((double));/",
c329beb0
BK
1524 "-e", "/^extern double hypot();$/a\\\n\
1525\\/* Workaround a stupid Motorola optimization if one\\\n\
1526 of x or y is 0.0 and the other is negative! *\\/\\\n\
1527#ifdef __STDC__\\\n\
1528static __inline__ double fake_hypot (double x, double y)\\\n\
1529#else\\\n\
1530static __inline__ double fake_hypot (x, y)\\\n\
1531\tdouble x, y;\\\n\
1532#endif\\\n\
1533{\\\n\
1534\treturn fabs (hypot (x, y));\\\n\
1535}\\\n\
1536#define hypot\tfake_hypot\n",
06bbab1b
BK
1537 (char*)NULL };
1538
1539/* * * * * * * * * * * * * * * * * * * * * * * * * *
1540 *
26e2e81d 1541 * Description 44 - M88k_Bad_S_If fix
06bbab1b
BK
1542 */
1543tSCC zM88k_Bad_S_IfName[] =
1544 "M88k_Bad_S_If";
1545/*
1546 * File name selection pattern
1547 */
1548tSCC zM88k_Bad_S_IfList[] =
c329beb0 1549 "|sys/stat.h|";
06bbab1b
BK
1550/*
1551 * Machine/OS name selection pattern
1552 */
1553tSCC* apzM88k_Bad_S_IfMachs[] = {
1554 "m88k-*-sysv3*",
1555 (const char*)NULL };
1556
1557/*
be02fa1a 1558 * content selection pattern - do fix if pattern found
06bbab1b
BK
1559 */
1560tSCC zM88k_Bad_S_IfSelect0[] =
1561 "#define[ \t]+S_IS[A-Z]*(m)[ \t]";
1562
1563#define M88K_BAD_S_IF_TEST_CT 1
be02fa1a 1564#define M88K_BAD_S_IF_RE_CT 1
06bbab1b 1565tTestDesc aM88k_Bad_S_IfTests[] = {
be02fa1a 1566 { TT_EGREP, zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1567
1568/*
1569 * Fix Command Arguments for M88k_Bad_S_If
1570 */
1571const char* apzM88k_Bad_S_IfPatch[] = { "sed",
be02fa1a
BK
1572 "-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)/",
1573 "-e", "s/^\\(#define[ \t]*S_IS[A-Z]*(m)\\)[ \t]*(m[ \t]*&[ \t]*\\(0[0-9]*\\)[ \t]*)/\\1 (((m)\\&S_IFMT)==\\2)/",
06bbab1b
BK
1574 (char*)NULL };
1575
1576/* * * * * * * * * * * * * * * * * * * * * * * * * *
1577 *
26e2e81d 1578 * Description 45 - M88k_Multi_Incl fix
06bbab1b
BK
1579 */
1580tSCC zM88k_Multi_InclName[] =
1581 "M88k_Multi_Incl";
1582/*
1583 * File name selection pattern
1584 */
1585tSCC zM88k_Multi_InclList[] =
c329beb0 1586 "|time.h|";
06bbab1b
BK
1587/*
1588 * Machine/OS name selection pattern
1589 */
1590tSCC* apzM88k_Multi_InclMachs[] = {
1591 "m88k-tektronix-sysv3*",
1592 (const char*)NULL };
1593
1594/*
be02fa1a 1595 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
1596 */
1597tSCC zM88k_Multi_InclBypass0[] =
1598 "#ifndef";
1599
1600#define M88K_MULTI_INCL_TEST_CT 1
be02fa1a 1601#define M88K_MULTI_INCL_RE_CT 1
06bbab1b 1602tTestDesc aM88k_Multi_InclTests[] = {
be02fa1a 1603 { TT_NEGREP, zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
06bbab1b
BK
1604
1605/*
1606 * Fix Command Arguments for M88k_Multi_Incl
1607 */
1608const char* apzM88k_Multi_InclPatch[] = { "sh", "-c",
c329beb0
BK
1609 "echo Fixing $file, to protect against multiple inclusion. >&2\n\
1610 cpp_wrapper=`echo $file | sed -e 's,\\.,_,g' -e 's,/,_,g'`\n\
1611 echo \"#ifndef __GCC_GOT_${cpp_wrapper}_\"\n\
1612 echo \"#define __GCC_GOT_${cpp_wrapper}_\"\n\
1613 cat\n\
1614 echo \"#endif /* ! __GCC_GOT_${cpp_wrapper}_ */\"",
06bbab1b
BK
1615 (char*)NULL };
1616
1617/* * * * * * * * * * * * * * * * * * * * * * * * * *
1618 *
26e2e81d 1619 * Description 46 - Machine_Name fix
06bbab1b
BK
1620 */
1621tSCC zMachine_NameName[] =
1622 "Machine_Name";
1623/*
1624 * File name selection pattern
1625 */
1626#define zMachine_NameList (char*)NULL
1627/*
1628 * Machine/OS name selection pattern
1629 */
1630#define apzMachine_NameMachs (const char**)NULL
1631
1632/*
be02fa1a
BK
1633 * content selection pattern - do fix if pattern found
1634 * This is a special pattern that not all egrep commands
1635 * are capable of coping with. We use the GNU library, tho :)
06bbab1b
BK
1636 */
1637tSCC zMachine_NameSelect0[] =
be02fa1a 1638 "^#[ \t]*(if|elif).*[^a-zA-Z0-9_](M32|_*MIPSE[LB]|_*SYSTYPE_[A-Z0-9]|_*[Rr][34]000|_*host_mips|_*i386|_*mips|bsd4|is68k|m[68]8k|mc680|news|ns32000|pdp11|pyr|sel|sony_news|sparc|sun|tahoe|tower|u370|u3b|unix|vax)";
06bbab1b
BK
1639
1640#define MACHINE_NAME_TEST_CT 1
be02fa1a 1641#define MACHINE_NAME_RE_CT 1
06bbab1b 1642tTestDesc aMachine_NameTests[] = {
be02fa1a 1643 { TT_EGREP, zMachine_NameSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1644
1645/*
1646 * Fix Command Arguments for Machine_Name
1647 */
1648const char* apzMachine_NamePatch[] = { "sed",
c329beb0
BK
1649 "-e", ":loop\n\
1650/\\\\$/N\n\
1651s/\\\\$/\\\\+++fixinc_eol+++/\n\
1652/\\\\$/b loop\n\
1653s/\\\\+++fixinc_eol+++/\\\\/g\n\
1654/#[\t ]*[el]*if/ {\n\
1655\ts/[a-zA-Z0-9_][a-zA-Z0-9_]*/ & /g\n\
1656\ts/ M32 / __M32__ /g\n\
1657\ts/ _*MIPSE\\([LB]\\) / __MIPSE\\1__ /g\n\
1658\ts/ _*SYSTYPE_\\([A-Z0-9]*\\) / __SYSTYPE_\\1__ /g\n\
1659\ts/ _*\\([Rr][34]\\)000 / __\\1000__ /g\n\
1660\ts/ _*host_mips / __host_mips__ /g\n\
1661\ts/ _*i386 / __i386__ /g\n\
1662\ts/ _*mips / __mips__ /g\n\
1663\ts/ bsd4\\([0-9]\\) / __bsd4\\1__ /g\n\
1664\ts/ is68k / __is68k__ /g\n\
1665\ts/ m68k / __m68k__ /g\n\
1666\ts/ m88k / __m88k__ /g\n\
1667\ts/ mc680\\([0-9]\\)0 / __mc680\\10__ /g\n\
1668\ts/ news\\([0-9]*\\) / __news\\1__ /g\n\
1669\ts/ ns32000 / __ns32000__ /g\n\
1670\ts/ pdp11 / __pdp11__ /g\n\
1671\ts/ pyr / __pyr__ /g\n\
1672\ts/ sel / __sel__ /g\n\
1673\ts/ sony_news / __sony_news__ /g\n\
1674\ts/ sparc / __sparc__ /g\n\
1675\ts/ sun\\([a-z0-9]*\\) / __sun\\1__ /g\n\
1676\ts/ tahoe / __tahoe__ /g\n\
1677\ts/ tower\\([_0-9]*\\) / __tower\\1__ /g\n\
1678\ts/ u370 / __u370__ /g\n\
1679\ts/ u3b\\([0-9]*\\) / __u3b\\1__ /g\n\
1680\ts/ unix / __unix__ /g\n\
1681\ts/ vax / __vax__ /g\n\
1682\ts/ \\([a-zA-Z0-9_][a-zA-Z0-9_]*\\) /\\1/g\n\
1683\t}",
06bbab1b
BK
1684 (char*)NULL };
1685
1686/* * * * * * * * * * * * * * * * * * * * * * * * * *
1687 *
26e2e81d 1688 * Description 47 - Math_Exception fix
06bbab1b
BK
1689 */
1690tSCC zMath_ExceptionName[] =
1691 "Math_Exception";
1692/*
1693 * File name selection pattern
1694 */
1695tSCC zMath_ExceptionList[] =
c329beb0 1696 "|math.h|";
06bbab1b
BK
1697/*
1698 * Machine/OS name selection pattern
1699 */
1700#define apzMath_ExceptionMachs (const char**)NULL
1701
1702/*
be02fa1a 1703 * content selection pattern - do fix if pattern found
06bbab1b
BK
1704 */
1705tSCC zMath_ExceptionSelect0[] =
1706 "struct exception";
1707
1708#define MATH_EXCEPTION_TEST_CT 1
be02fa1a 1709#define MATH_EXCEPTION_RE_CT 1
06bbab1b 1710tTestDesc aMath_ExceptionTests[] = {
be02fa1a 1711 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1712
1713/*
1714 * Fix Command Arguments for Math_Exception
1715 */
1716const char* apzMath_ExceptionPatch[] = { "sed",
c329beb0
BK
1717 "-e", "/struct exception/i\\\n\
1718#ifdef __cplusplus\\\n\
1719#define exception __math_exception\\\n\
1720#endif\n",
1721 "-e", "/struct exception/a\\\n\
1722#ifdef __cplusplus\\\n\
1723#undef exception\\\n\
1724#endif\n",
1725 "-e", "/matherr/i\\\n\
1726#ifdef __cplusplus\\\n\
1727#define exception __math_exception\\\n\
1728#endif\n",
1729 "-e", "/matherr/a\\\n\
1730#ifdef __cplusplus\\\n\
1731#undef exception\\\n\
1732#endif\n",
06bbab1b
BK
1733 (char*)NULL };
1734
1735/* * * * * * * * * * * * * * * * * * * * * * * * * *
1736 *
26e2e81d 1737 * Description 48 - Math_Gcc_Ifndefs fix
06bbab1b
BK
1738 */
1739tSCC zMath_Gcc_IfndefsName[] =
1740 "Math_Gcc_Ifndefs";
1741/*
1742 * File name selection pattern
1743 */
1744tSCC zMath_Gcc_IfndefsList[] =
c329beb0 1745 "|math.h|";
06bbab1b
BK
1746/*
1747 * Machine/OS name selection pattern
1748 */
1749#define apzMath_Gcc_IfndefsMachs (const char**)NULL
1750#define MATH_GCC_IFNDEFS_TEST_CT 0
be02fa1a 1751#define MATH_GCC_IFNDEFS_RE_CT 0
06bbab1b
BK
1752#define aMath_Gcc_IfndefsTests (tTestDesc*)NULL
1753
1754/*
1755 * Fix Command Arguments for Math_Gcc_Ifndefs
1756 */
1757const char* apzMath_Gcc_IfndefsPatch[] = { "sh", "-c",
c329beb0
BK
1758 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h 2>/dev/null`\n\
1759\n\
1760\tif ( test -n \"${dbl_max_def}\" \\\n\
1761\t\t-a -n \"`egrep '#define[ \t]*HUGE_VAL[ \t]+DBL_MAX' $file`\" \\\n\
1762\t\t-a -z \"`egrep '#define[ \t]+DBL_MAX[ \t]+' $file`\"\n\
1763\t ) > /dev/null 2>&1\n\
1764\tthen sed -e '/define[ \t]HUGE_VAL[ \t]DBL_MAX/s/DBL_MAX/$dbl_max_def/'\n\
1765\telse cat ; fi |\n\
1766\tsed -e'/define[ \t]HUGE_VAL[ \t]/i\\\n\
1767#ifndef HUGE_VAL\n\
1768' -e'/define[ \t]HUGE_VAL[ \t]/a\\\n\
1769#endif\n\
1770'",
06bbab1b
BK
1771 (char*)NULL };
1772
1773/* * * * * * * * * * * * * * * * * * * * * * * * * *
1774 *
26e2e81d 1775 * Description 49 - Nested_Comment fix
06bbab1b
BK
1776 */
1777tSCC zNested_CommentName[] =
1778 "Nested_Comment";
1779/*
1780 * File name selection pattern
1781 */
1782tSCC zNested_CommentList[] =
c329beb0 1783 "|rpc/rpc.h|";
06bbab1b
BK
1784/*
1785 * Machine/OS name selection pattern
1786 */
1787#define apzNested_CommentMachs (const char**)NULL
1788#define NESTED_COMMENT_TEST_CT 0
be02fa1a 1789#define NESTED_COMMENT_RE_CT 0
06bbab1b
BK
1790#define aNested_CommentTests (tTestDesc*)NULL
1791
1792/*
1793 * Fix Command Arguments for Nested_Comment
1794 */
1795const char* apzNested_CommentPatch[] = { "sed",
be02fa1a 1796 "-e", "s@^\\(/\\*.*rpc/auth_des.h>.*\\)/\\*@\\1*/ /*@",
06bbab1b
BK
1797 (char*)NULL };
1798
1799/* * * * * * * * * * * * * * * * * * * * * * * * * *
1800 *
26e2e81d 1801 * Description 50 - News_Os_Recursion fix
06bbab1b
BK
1802 */
1803tSCC zNews_Os_RecursionName[] =
1804 "News_Os_Recursion";
1805/*
1806 * File name selection pattern
1807 */
1808tSCC zNews_Os_RecursionList[] =
c329beb0 1809 "|stdlib.h|";
06bbab1b
BK
1810/*
1811 * Machine/OS name selection pattern
1812 */
1813#define apzNews_Os_RecursionMachs (const char**)NULL
1814
1815/*
be02fa1a 1816 * content selection pattern - do fix if pattern found
06bbab1b
BK
1817 */
1818tSCC zNews_Os_RecursionSelect0[] =
1819 "#include <stdlib.h>";
1820
1821#define NEWS_OS_RECURSION_TEST_CT 1
be02fa1a 1822#define NEWS_OS_RECURSION_RE_CT 1
06bbab1b 1823tTestDesc aNews_Os_RecursionTests[] = {
be02fa1a 1824 { TT_EGREP, zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1825
1826/*
1827 * Fix Command Arguments for News_Os_Recursion
1828 */
1829const char* apzNews_Os_RecursionPatch[] = { "sed",
c329beb0
BK
1830 "-e", "/^#include <stdlib.h>/i\\\n\
1831#ifdef BOGUS_RECURSION\n",
1832 "-e", "/^#include <stdlib.h>/a\\\n\
1833#endif\n",
06bbab1b
BK
1834 (char*)NULL };
1835
1836/* * * * * * * * * * * * * * * * * * * * * * * * * *
1837 *
26e2e81d 1838 * Description 51 - Next_Math_Prefix fix
06bbab1b
BK
1839 */
1840tSCC zNext_Math_PrefixName[] =
1841 "Next_Math_Prefix";
1842/*
1843 * File name selection pattern
1844 */
1845tSCC zNext_Math_PrefixList[] =
c329beb0 1846 "|ansi/math.h|";
06bbab1b
BK
1847/*
1848 * Machine/OS name selection pattern
1849 */
1850#define apzNext_Math_PrefixMachs (const char**)NULL
1851
1852/*
be02fa1a 1853 * content selection pattern - do fix if pattern found
06bbab1b
BK
1854 */
1855tSCC zNext_Math_PrefixSelect0[] =
1856 "^extern.*double.*__const__.*";
1857
1858#define NEXT_MATH_PREFIX_TEST_CT 1
be02fa1a 1859#define NEXT_MATH_PREFIX_RE_CT 1
06bbab1b 1860tTestDesc aNext_Math_PrefixTests[] = {
be02fa1a 1861 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1862
1863/*
1864 * Fix Command Arguments for Next_Math_Prefix
1865 */
1866const char* apzNext_Math_PrefixPatch[] = { "sed",
be02fa1a
BK
1867 "-e", "/^extern.*double.*__const__.*sqrt(/s/__const__//",
1868 "-e", "/^extern.*double.*__const__.*fabs(/s/__const__//",
1869 "-e", "/^extern.*double.*__const__.*cos(/s/__const__//",
1870 "-e", "/^extern.*double.*__const__.*hypot(/s/__const__//",
1871 "-e", "/^extern.*double.*__const__.*sin(/s/__const__//",
06bbab1b
BK
1872 (char*)NULL };
1873
1874/* * * * * * * * * * * * * * * * * * * * * * * * * *
1875 *
26e2e81d 1876 * Description 52 - Next_Template fix
06bbab1b
BK
1877 */
1878tSCC zNext_TemplateName[] =
1879 "Next_Template";
1880/*
1881 * File name selection pattern
1882 */
1883tSCC zNext_TemplateList[] =
c329beb0 1884 "|bsd/libc.h|";
06bbab1b
BK
1885/*
1886 * Machine/OS name selection pattern
1887 */
1888#define apzNext_TemplateMachs (const char**)NULL
1889
1890/*
be02fa1a 1891 * content selection pattern - do fix if pattern found
06bbab1b
BK
1892 */
1893tSCC zNext_TemplateSelect0[] =
1894 "template";
1895
1896#define NEXT_TEMPLATE_TEST_CT 1
be02fa1a 1897#define NEXT_TEMPLATE_RE_CT 1
06bbab1b 1898tTestDesc aNext_TemplateTests[] = {
be02fa1a 1899 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1900
1901/*
1902 * Fix Command Arguments for Next_Template
1903 */
1904const char* apzNext_TemplatePatch[] = { "sed",
be02fa1a
BK
1905 "-e", "/\\(.*template\\)/s/template//",
1906 "-e", "/extern.*volatile.*void.*abort/s/volatile//",
06bbab1b
BK
1907 (char*)NULL };
1908
1909/* * * * * * * * * * * * * * * * * * * * * * * * * *
1910 *
26e2e81d 1911 * Description 53 - Next_Volitile fix
06bbab1b
BK
1912 */
1913tSCC zNext_VolitileName[] =
1914 "Next_Volitile";
1915/*
1916 * File name selection pattern
1917 */
1918tSCC zNext_VolitileList[] =
c329beb0 1919 "|ansi/stdlib.h|";
06bbab1b
BK
1920/*
1921 * Machine/OS name selection pattern
1922 */
1923#define apzNext_VolitileMachs (const char**)NULL
1924
1925/*
be02fa1a 1926 * content selection pattern - do fix if pattern found
06bbab1b
BK
1927 */
1928tSCC zNext_VolitileSelect0[] =
1929 "volatile";
1930
1931#define NEXT_VOLITILE_TEST_CT 1
be02fa1a 1932#define NEXT_VOLITILE_RE_CT 1
06bbab1b 1933tTestDesc aNext_VolitileTests[] = {
be02fa1a 1934 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1935
1936/*
1937 * Fix Command Arguments for Next_Volitile
1938 */
1939const char* apzNext_VolitilePatch[] = { "sed",
be02fa1a
BK
1940 "-e", "/extern.*volatile.*void.*exit/s/volatile//",
1941 "-e", "/extern.*volatile.*void.*abort/s/volatile//",
06bbab1b
BK
1942 (char*)NULL };
1943
1944/* * * * * * * * * * * * * * * * * * * * * * * * * *
1945 *
26e2e81d 1946 * Description 54 - Next_Wait_Union fix
06bbab1b
BK
1947 */
1948tSCC zNext_Wait_UnionName[] =
1949 "Next_Wait_Union";
1950/*
1951 * File name selection pattern
1952 */
1953tSCC zNext_Wait_UnionList[] =
c329beb0 1954 "|sys/wait.h|";
06bbab1b
BK
1955/*
1956 * Machine/OS name selection pattern
1957 */
1958#define apzNext_Wait_UnionMachs (const char**)NULL
1959
1960/*
be02fa1a 1961 * content selection pattern - do fix if pattern found
06bbab1b
BK
1962 */
1963tSCC zNext_Wait_UnionSelect0[] =
1964 "wait\\(union wait";
1965
1966#define NEXT_WAIT_UNION_TEST_CT 1
be02fa1a 1967#define NEXT_WAIT_UNION_RE_CT 1
06bbab1b 1968tTestDesc aNext_Wait_UnionTests[] = {
be02fa1a 1969 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
06bbab1b
BK
1970
1971/*
1972 * Fix Command Arguments for Next_Wait_Union
1973 */
1974const char* apzNext_Wait_UnionPatch[] = { "sed",
be02fa1a 1975 "-e", "s@wait(union wait@wait(void@",
06bbab1b
BK
1976 (char*)NULL };
1977
1978/* * * * * * * * * * * * * * * * * * * * * * * * * *
1979 *
26e2e81d 1980 * Description 55 - Nodeent_Syntax fix
06bbab1b
BK
1981 */
1982tSCC zNodeent_SyntaxName[] =
1983 "Nodeent_Syntax";
1984/*
1985 * File name selection pattern
1986 */
1987tSCC zNodeent_SyntaxList[] =
c329beb0 1988 "|netdnet/dnetdb.h|";
06bbab1b
BK
1989/*
1990 * Machine/OS name selection pattern
1991 */
1992#define apzNodeent_SyntaxMachs (const char**)NULL
1993#define NODEENT_SYNTAX_TEST_CT 0
be02fa1a 1994#define NODEENT_SYNTAX_RE_CT 0
06bbab1b
BK
1995#define aNodeent_SyntaxTests (tTestDesc*)NULL
1996
1997/*
1998 * Fix Command Arguments for Nodeent_Syntax
1999 */
2000const char* apzNodeent_SyntaxPatch[] = { "sed",
be02fa1a 2001 "-e", "s/char.*na_addr *$/char *na_addr;/",
06bbab1b
BK
2002 (char*)NULL };
2003
2004/* * * * * * * * * * * * * * * * * * * * * * * * * *
2005 *
26e2e81d 2006 * Description 56 - Osf_Namespace_A fix
06bbab1b
BK
2007 */
2008tSCC zOsf_Namespace_AName[] =
2009 "Osf_Namespace_A";
2010/*
2011 * File name selection pattern
2012 */
2013tSCC zOsf_Namespace_AList[] =
c329beb0 2014 "|reg_types.h|sys/lc_core.h|";
06bbab1b
BK
2015/*
2016 * Machine/OS name selection pattern
2017 */
2018#define apzOsf_Namespace_AMachs (const char**)NULL
2019
2020/*
be02fa1a 2021 * perform the 'test' shell command - do fix on success
06bbab1b
BK
2022 */
2023tSCC zOsf_Namespace_ATest0[] =
48bd9529
BK
2024 " -r reg_types.h";
2025tSCC zOsf_Namespace_ATest1[] =
2026 " -r sys/lc_core.h";
2027tSCC zOsf_Namespace_ATest2[] =
2028 " -n \"`grep '} regex_t;' reg_types.h`\"";
2029tSCC zOsf_Namespace_ATest3[] =
2030 " -z \"`grep __regex_t regex.h`\"";
2031
2032#define OSF_NAMESPACE_A_TEST_CT 4
be02fa1a 2033#define OSF_NAMESPACE_A_RE_CT 0
06bbab1b 2034tTestDesc aOsf_Namespace_ATests[] = {
be02fa1a
BK
2035 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
2036 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
2037 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
2038 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
06bbab1b
BK
2039
2040/*
2041 * Fix Command Arguments for Osf_Namespace_A
2042 */
2043const char* apzOsf_Namespace_APatch[] = { "sed",
be02fa1a
BK
2044 "-e", "s/regex_t/__regex_t/g",
2045 "-e", "s/regoff_t/__regoff_t/g",
2046 "-e", "s/regmatch_t/__regmatch_t/g",
06bbab1b
BK
2047 (char*)NULL };
2048
2049/* * * * * * * * * * * * * * * * * * * * * * * * * *
2050 *
26e2e81d 2051 * Description 57 - Osf_Namespace_B fix
06bbab1b
BK
2052 */
2053tSCC zOsf_Namespace_BName[] =
2054 "Osf_Namespace_B";
2055/*
2056 * File name selection pattern
2057 */
2058tSCC zOsf_Namespace_BList[] =
c329beb0 2059 "|regex.h|";
06bbab1b
BK
2060/*
2061 * Machine/OS name selection pattern
2062 */
2063#define apzOsf_Namespace_BMachs (const char**)NULL
2064
2065/*
be02fa1a 2066 * perform the 'test' shell command - do fix on success
06bbab1b
BK
2067 */
2068tSCC zOsf_Namespace_BTest0[] =
48bd9529
BK
2069 " -r reg_types.h";
2070tSCC zOsf_Namespace_BTest1[] =
2071 " -r sys/lc_core.h";
2072tSCC zOsf_Namespace_BTest2[] =
2073 " -n \"`grep '} regex_t;' reg_types.h`\"";
2074tSCC zOsf_Namespace_BTest3[] =
2075 " -z \"`grep __regex_t regex.h`\"";
2076
2077#define OSF_NAMESPACE_B_TEST_CT 4
be02fa1a 2078#define OSF_NAMESPACE_B_RE_CT 0
06bbab1b 2079tTestDesc aOsf_Namespace_BTests[] = {
be02fa1a
BK
2080 { TT_TEST, zOsf_Namespace_BTest0, 0 /* unused */ },
2081 { TT_TEST, zOsf_Namespace_BTest1, 0 /* unused */ },
2082 { TT_TEST, zOsf_Namespace_BTest2, 0 /* unused */ },
2083 { TT_TEST, zOsf_Namespace_BTest3, 0 /* unused */ }, };
06bbab1b
BK
2084
2085/*
2086 * Fix Command Arguments for Osf_Namespace_B
2087 */
2088const char* apzOsf_Namespace_BPatch[] = { "sed",
c329beb0
BK
2089 "-e", "/#include <reg_types.h>/a\\\n\
2090typedef __regex_t\tregex_t;\\\n\
2091typedef __regoff_t\tregoff_t;\\\n\
2092typedef __regmatch_t\tregmatch_t;\n",
06bbab1b
BK
2093 (char*)NULL };
2094
2095/* * * * * * * * * * * * * * * * * * * * * * * * * *
2096 *
26e2e81d 2097 * Description 58 - Pthread_Page_Size fix
06bbab1b
BK
2098 */
2099tSCC zPthread_Page_SizeName[] =
2100 "Pthread_Page_Size";
2101/*
2102 * File name selection pattern
2103 */
2104tSCC zPthread_Page_SizeList[] =
c329beb0 2105 "|pthread.h|";
06bbab1b
BK
2106/*
2107 * Machine/OS name selection pattern
2108 */
2109#define apzPthread_Page_SizeMachs (const char**)NULL
2110
2111/*
be02fa1a 2112 * content selection pattern - do fix if pattern found
06bbab1b
BK
2113 */
2114tSCC zPthread_Page_SizeSelect0[] =
2115 "^int __page_size";
2116
2117#define PTHREAD_PAGE_SIZE_TEST_CT 1
be02fa1a 2118#define PTHREAD_PAGE_SIZE_RE_CT 1
06bbab1b 2119tTestDesc aPthread_Page_SizeTests[] = {
be02fa1a 2120 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2121
2122/*
2123 * Fix Command Arguments for Pthread_Page_Size
2124 */
2125const char* apzPthread_Page_SizePatch[] = { "sed",
be02fa1a 2126 "-e", "s/^int __page_size/extern int __page_size/",
06bbab1b
BK
2127 (char*)NULL };
2128
2129/* * * * * * * * * * * * * * * * * * * * * * * * * *
2130 *
26e2e81d 2131 * Description 59 - Rs6000_Double fix
06bbab1b
BK
2132 */
2133tSCC zRs6000_DoubleName[] =
2134 "Rs6000_Double";
2135/*
2136 * File name selection pattern
2137 */
2138tSCC zRs6000_DoubleList[] =
c329beb0 2139 "|math.h|";
06bbab1b
BK
2140/*
2141 * Machine/OS name selection pattern
2142 */
2143#define apzRs6000_DoubleMachs (const char**)NULL
2144
2145/*
be02fa1a 2146 * content selection pattern - do fix if pattern found
06bbab1b
BK
2147 */
2148tSCC zRs6000_DoubleSelect0[] =
2149 "[^a-zA-Z_]class\\(";
2150
2151#define RS6000_DOUBLE_TEST_CT 1
be02fa1a 2152#define RS6000_DOUBLE_RE_CT 1
06bbab1b 2153tTestDesc aRs6000_DoubleTests[] = {
be02fa1a 2154 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2155
2156/*
2157 * Fix Command Arguments for Rs6000_Double
2158 */
2159const char* apzRs6000_DoublePatch[] = { "sed",
c329beb0
BK
2160 "-e", "/class[(]/i\\\n\
2161#ifndef __cplusplus\n",
2162 "-e", "/class[(]/a\\\n\
2163#endif\n",
06bbab1b
BK
2164 (char*)NULL };
2165
2166/* * * * * * * * * * * * * * * * * * * * * * * * * *
2167 *
26e2e81d 2168 * Description 60 - Rs6000_Fchmod fix
06bbab1b
BK
2169 */
2170tSCC zRs6000_FchmodName[] =
2171 "Rs6000_Fchmod";
2172/*
2173 * File name selection pattern
2174 */
2175tSCC zRs6000_FchmodList[] =
c329beb0 2176 "|sys/stat.h|";
06bbab1b
BK
2177/*
2178 * Machine/OS name selection pattern
2179 */
2180#define apzRs6000_FchmodMachs (const char**)NULL
2181
2182/*
be02fa1a 2183 * content selection pattern - do fix if pattern found
06bbab1b
BK
2184 */
2185tSCC zRs6000_FchmodSelect0[] =
2186 "fchmod\\(char";
2187
2188#define RS6000_FCHMOD_TEST_CT 1
be02fa1a 2189#define RS6000_FCHMOD_RE_CT 1
06bbab1b 2190tTestDesc aRs6000_FchmodTests[] = {
be02fa1a 2191 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2192
2193/*
2194 * Fix Command Arguments for Rs6000_Fchmod
2195 */
2196const char* apzRs6000_FchmodPatch[] = { "sed",
be02fa1a 2197 "-e", "s/fchmod(char \\*/fchmod(int/",
06bbab1b
BK
2198 (char*)NULL };
2199
2200/* * * * * * * * * * * * * * * * * * * * * * * * * *
2201 *
26e2e81d 2202 * Description 61 - Rs6000_Param fix
06bbab1b
BK
2203 */
2204tSCC zRs6000_ParamName[] =
2205 "Rs6000_Param";
2206/*
2207 * File name selection pattern
2208 */
2209tSCC zRs6000_ParamList[] =
c329beb0 2210 "|stdio.h|unistd.h|";
06bbab1b
BK
2211/*
2212 * Machine/OS name selection pattern
2213 */
2214#define apzRs6000_ParamMachs (const char**)NULL
2215#define RS6000_PARAM_TEST_CT 0
be02fa1a 2216#define RS6000_PARAM_RE_CT 0
06bbab1b
BK
2217#define aRs6000_ParamTests (tTestDesc*)NULL
2218
2219/*
2220 * Fix Command Arguments for Rs6000_Param
2221 */
2222const char* apzRs6000_ParamPatch[] = { "sed",
be02fa1a 2223 "-e", "s@rename(const char \\*old, const char \\*new)@rename(const char *_old, const char *_new)@",
06bbab1b
BK
2224 (char*)NULL };
2225
2226/* * * * * * * * * * * * * * * * * * * * * * * * * *
2227 *
26e2e81d 2228 * Description 62 - Sony_Include fix
06bbab1b
BK
2229 */
2230tSCC zSony_IncludeName[] =
2231 "Sony_Include";
2232/*
2233 * File name selection pattern
2234 */
2235tSCC zSony_IncludeList[] =
c329beb0 2236 "|machine/machparam.h|";
06bbab1b
BK
2237/*
2238 * Machine/OS name selection pattern
2239 */
2240#define apzSony_IncludeMachs (const char**)NULL
2241
2242/*
be02fa1a 2243 * content selection pattern - do fix if pattern found
06bbab1b
BK
2244 */
2245tSCC zSony_IncludeSelect0[] =
2246 "\"\\.\\./machine/endian.h\"";
2247
2248#define SONY_INCLUDE_TEST_CT 1
be02fa1a 2249#define SONY_INCLUDE_RE_CT 1
06bbab1b 2250tTestDesc aSony_IncludeTests[] = {
be02fa1a 2251 { TT_EGREP, zSony_IncludeSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2252
2253/*
2254 * Fix Command Arguments for Sony_Include
2255 */
2256const char* apzSony_IncludePatch[] = { "sed",
be02fa1a 2257 "-e", "s@\"../machine/endian.h\"@<machine/endian.h>@",
06bbab1b
BK
2258 (char*)NULL };
2259
2260/* * * * * * * * * * * * * * * * * * * * * * * * * *
2261 *
26e2e81d 2262 * Description 63 - Statsswtch fix
06bbab1b
BK
2263 */
2264tSCC zStatsswtchName[] =
2265 "Statsswtch";
2266/*
2267 * File name selection pattern
2268 */
2269tSCC zStatsswtchList[] =
c329beb0 2270 "|rpcsvc/rstat.h|";
06bbab1b
BK
2271/*
2272 * Machine/OS name selection pattern
2273 */
2274#define apzStatsswtchMachs (const char**)NULL
2275
2276/*
be02fa1a 2277 * content selection pattern - do fix if pattern found
06bbab1b
BK
2278 */
2279tSCC zStatsswtchSelect0[] =
2280 "boottime$";
2281
2282#define STATSSWTCH_TEST_CT 1
be02fa1a 2283#define STATSSWTCH_RE_CT 1
06bbab1b 2284tTestDesc aStatsswtchTests[] = {
be02fa1a 2285 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2286
2287/*
2288 * Fix Command Arguments for Statsswtch
2289 */
2290const char* apzStatsswtchPatch[] = { "sed",
be02fa1a 2291 "-e", "s/boottime$/boottime;/",
06bbab1b
BK
2292 (char*)NULL };
2293
2294/* * * * * * * * * * * * * * * * * * * * * * * * * *
2295 *
26e2e81d 2296 * Description 64 - Stdio_Va_List fix
06bbab1b
BK
2297 */
2298tSCC zStdio_Va_ListName[] =
2299 "Stdio_Va_List";
2300/*
2301 * File name selection pattern
2302 */
2303tSCC zStdio_Va_ListList[] =
c329beb0 2304 "|stdio.h|";
06bbab1b
BK
2305/*
2306 * Machine/OS name selection pattern
2307 */
2308#define apzStdio_Va_ListMachs (const char**)NULL
2309#define STDIO_VA_LIST_TEST_CT 0
be02fa1a 2310#define STDIO_VA_LIST_RE_CT 0
06bbab1b
BK
2311#define aStdio_Va_ListTests (tTestDesc*)NULL
2312
2313/*
2314 * Fix Command Arguments for Stdio_Va_List
2315 */
2316const char* apzStdio_Va_ListPatch[] = { "sh", "-c",
c329beb0
BK
2317 "if ( egrep \"__need___va_list\" $file ) > /dev/null 2>&1 ; then\n\
2318 :\n\
2319 else\n\
2320 echo \"#define __need___va_list\"\n\
2321 echo \"#include <stdarg.h>\"\n\
2322 fi\n\
2323\n\
2324 sed -e 's@ va_list @ __gnuc_va_list @' \\\n\
2325 -e 's@ va_list)@ __gnuc_va_list)@' \\\n\
2326 -e 's@ _BSD_VA_LIST_));@ __gnuc_va_list));@' \\\n\
2327 -e 's@ _VA_LIST_));@ __gnuc_va_list));@' \\\n\
2328 -e 's@ va_list@ __va_list__@' \\\n\
2329 -e 's@\\*va_list@*__va_list__@' \\\n\
2330 -e 's@ __va_list)@ __gnuc_va_list)@' \\\n\
2331 -e 's@GNUC_VA_LIST@GNUC_Va_LIST@' \\\n\
2332 -e 's@_NEED___VA_LIST@_NEED___Va_LIST@' \\\n\
2333 -e 's@VA_LIST@DUMMY_VA_LIST@' \\\n\
2334 -e 's@_Va_LIST@_VA_LIST@'",
06bbab1b
BK
2335 (char*)NULL };
2336
2337/* * * * * * * * * * * * * * * * * * * * * * * * * *
2338 *
26e2e81d 2339 * Description 65 - Sun_Bogus_Ifdef fix
06bbab1b
BK
2340 */
2341tSCC zSun_Bogus_IfdefName[] =
2342 "Sun_Bogus_Ifdef";
2343/*
2344 * File name selection pattern
2345 */
2346tSCC zSun_Bogus_IfdefList[] =
c329beb0 2347 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
06bbab1b
BK
2348/*
2349 * Machine/OS name selection pattern
2350 */
2351#define apzSun_Bogus_IfdefMachs (const char**)NULL
2352
2353/*
be02fa1a 2354 * content selection pattern - do fix if pattern found
06bbab1b
BK
2355 */
2356tSCC zSun_Bogus_IfdefSelect0[] =
2357 "#ifdef __i386__ || __vax__";
2358
2359#define SUN_BOGUS_IFDEF_TEST_CT 1
be02fa1a 2360#define SUN_BOGUS_IFDEF_RE_CT 1
06bbab1b 2361tTestDesc aSun_Bogus_IfdefTests[] = {
be02fa1a 2362 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2363
2364/*
2365 * Fix Command Arguments for Sun_Bogus_Ifdef
2366 */
2367const char* apzSun_Bogus_IfdefPatch[] = { "sed",
be02fa1a 2368 "-e", "s/\\#ifdef __i386__ || __vax__/\\#if __i386__ || __vax__/g",
06bbab1b
BK
2369 (char*)NULL };
2370
2371/* * * * * * * * * * * * * * * * * * * * * * * * * *
2372 *
26e2e81d 2373 * Description 66 - Sun_Bogus_Ifdef_Sun4c fix
06bbab1b
BK
2374 */
2375tSCC zSun_Bogus_Ifdef_Sun4cName[] =
2376 "Sun_Bogus_Ifdef_Sun4c";
2377/*
2378 * File name selection pattern
2379 */
2380tSCC zSun_Bogus_Ifdef_Sun4cList[] =
c329beb0 2381 "|hsfs/hsnode.h|";
06bbab1b
BK
2382/*
2383 * Machine/OS name selection pattern
2384 */
2385#define apzSun_Bogus_Ifdef_Sun4cMachs (const char**)NULL
2386
2387/*
be02fa1a 2388 * content selection pattern - do fix if pattern found
06bbab1b
BK
2389 */
2390tSCC zSun_Bogus_Ifdef_Sun4cSelect0[] =
2391 "#ifdef __i386__ || __sun4c__";
2392
2393#define SUN_BOGUS_IFDEF_SUN4C_TEST_CT 1
be02fa1a 2394#define SUN_BOGUS_IFDEF_SUN4C_RE_CT 1
06bbab1b 2395tTestDesc aSun_Bogus_Ifdef_Sun4cTests[] = {
be02fa1a 2396 { TT_EGREP, zSun_Bogus_Ifdef_Sun4cSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2397
2398/*
2399 * Fix Command Arguments for Sun_Bogus_Ifdef_Sun4c
2400 */
2401const char* apzSun_Bogus_Ifdef_Sun4cPatch[] = { "sed",
be02fa1a 2402 "-e", "s/\\#ifdef __i386__ || __sun4c__/\\#if __i386__ || __sun4c__/g",
06bbab1b
BK
2403 (char*)NULL };
2404
2405/* * * * * * * * * * * * * * * * * * * * * * * * * *
2406 *
26e2e81d 2407 * Description 67 - Sun_Catmacro fix
06bbab1b
BK
2408 */
2409tSCC zSun_CatmacroName[] =
2410 "Sun_Catmacro";
2411/*
2412 * File name selection pattern
2413 */
2414tSCC zSun_CatmacroList[] =
c329beb0 2415 "|pixrect/memvar.h|";
06bbab1b
BK
2416/*
2417 * Machine/OS name selection pattern
2418 */
2419#define apzSun_CatmacroMachs (const char**)NULL
2420
2421/*
be02fa1a 2422 * content selection pattern - do fix if pattern found
06bbab1b
BK
2423 */
2424tSCC zSun_CatmacroSelect0[] =
2425 "^#define[ \t]+CAT(a,b)";
2426
2427#define SUN_CATMACRO_TEST_CT 1
be02fa1a 2428#define SUN_CATMACRO_RE_CT 1
06bbab1b 2429tTestDesc aSun_CatmacroTests[] = {
be02fa1a 2430 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2431
2432/*
2433 * Fix Command Arguments for Sun_Catmacro
2434 */
2435const char* apzSun_CatmacroPatch[] = { "sed",
c329beb0
BK
2436 "-e", "/^#define[ \t]CAT(a,b)/ i\\\n\
2437#ifdef __STDC__ \\\n\
2438#define CAT(a,b) a##b\\\n\
2439#else\n",
2440 "-e", "/^#define[ \t]CAT(a,b)/ a\\\n\
2441#endif\n",
06bbab1b
BK
2442 (char*)NULL };
2443
2444/* * * * * * * * * * * * * * * * * * * * * * * * * *
2445 *
26e2e81d 2446 * Description 68 - Sun_Malloc fix
06bbab1b
BK
2447 */
2448tSCC zSun_MallocName[] =
2449 "Sun_Malloc";
2450/*
2451 * File name selection pattern
2452 */
2453tSCC zSun_MallocList[] =
c329beb0 2454 "|malloc.h|";
06bbab1b
BK
2455/*
2456 * Machine/OS name selection pattern
2457 */
2458#define apzSun_MallocMachs (const char**)NULL
2459#define SUN_MALLOC_TEST_CT 0
be02fa1a 2460#define SUN_MALLOC_RE_CT 0
06bbab1b
BK
2461#define aSun_MallocTests (tTestDesc*)NULL
2462
2463/*
2464 * Fix Command Arguments for Sun_Malloc
2465 */
2466const char* apzSun_MallocPatch[] = { "sed",
be02fa1a
BK
2467 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
2468 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
2469 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
2470 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
06bbab1b
BK
2471 (char*)NULL };
2472
2473/* * * * * * * * * * * * * * * * * * * * * * * * * *
2474 *
26e2e81d 2475 * Description 69 - Sun_Memcpy fix
06bbab1b
BK
2476 */
2477tSCC zSun_MemcpyName[] =
2478 "Sun_Memcpy";
2479/*
2480 * File name selection pattern
2481 */
2482tSCC zSun_MemcpyList[] =
c329beb0 2483 "|memory.h|";
06bbab1b
BK
2484/*
2485 * Machine/OS name selection pattern
2486 */
2487#define apzSun_MemcpyMachs (const char**)NULL
2488
2489/*
be02fa1a 2490 * content selection pattern - do fix if pattern found
06bbab1b
BK
2491 */
2492tSCC zSun_MemcpySelect0[] =
2493 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
2494
2495#define SUN_MEMCPY_TEST_CT 1
be02fa1a 2496#define SUN_MEMCPY_RE_CT 1
06bbab1b 2497tTestDesc aSun_MemcpyTests[] = {
be02fa1a 2498 { TT_EGREP, zSun_MemcpySelect0, (regex_t*)NULL }, };
06bbab1b
BK
2499
2500/*
2501 * Fix Command Arguments for Sun_Memcpy
2502 */
2503const char* apzSun_MemcpyPatch[] = { "sed",
c329beb0
BK
2504 "-e", "1i\\\n\
2505/* This file was generated by fixincludes */\\\n\
2506#ifndef __memory_h__\\\n\
2507#define __memory_h__\\\n\
2508\\\n\
2509#ifdef __STDC__\\\n\
2510extern void *memccpy();\\\n\
2511extern void *memchr();\\\n\
2512extern void *memcpy();\\\n\
2513extern void *memset();\\\n\
2514#else\\\n\
2515extern char *memccpy();\\\n\
2516extern char *memchr();\\\n\
2517extern char *memcpy();\\\n\
2518extern char *memset();\\\n\
2519#endif /* __STDC__ */\\\n\
2520\\\n\
2521extern int memcmp();\\\n\
2522\\\n\
2523#endif /* __memory_h__ */\n",
be02fa1a 2524 "-e", "1,$d",
06bbab1b
BK
2525 (char*)NULL };
2526
2527/* * * * * * * * * * * * * * * * * * * * * * * * * *
2528 *
26e2e81d 2529 * Description 70 - Sun_Rusers_Semi fix
06bbab1b
BK
2530 */
2531tSCC zSun_Rusers_SemiName[] =
2532 "Sun_Rusers_Semi";
2533/*
2534 * File name selection pattern
2535 */
2536tSCC zSun_Rusers_SemiList[] =
c329beb0 2537 "|rpcsvc/rusers.h|";
06bbab1b
BK
2538/*
2539 * Machine/OS name selection pattern
2540 */
2541#define apzSun_Rusers_SemiMachs (const char**)NULL
2542
2543/*
be02fa1a 2544 * content selection pattern - do fix if pattern found
06bbab1b
BK
2545 */
2546tSCC zSun_Rusers_SemiSelect0[] =
2547 "_cnt$";
2548
2549#define SUN_RUSERS_SEMI_TEST_CT 1
be02fa1a 2550#define SUN_RUSERS_SEMI_RE_CT 1
06bbab1b 2551tTestDesc aSun_Rusers_SemiTests[] = {
be02fa1a 2552 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2553
2554/*
2555 * Fix Command Arguments for Sun_Rusers_Semi
2556 */
2557const char* apzSun_Rusers_SemiPatch[] = { "sed",
be02fa1a 2558 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
06bbab1b
BK
2559 (char*)NULL };
2560
2561/* * * * * * * * * * * * * * * * * * * * * * * * * *
2562 *
26e2e81d 2563 * Description 71 - Sun_Signal fix
06bbab1b
BK
2564 */
2565tSCC zSun_SignalName[] =
2566 "Sun_Signal";
2567/*
2568 * File name selection pattern
2569 */
2570tSCC zSun_SignalList[] =
c329beb0 2571 "|sys/signal.h|signal.h|";
06bbab1b
BK
2572/*
2573 * Machine/OS name selection pattern
2574 */
2575#define apzSun_SignalMachs (const char**)NULL
2576
2577/*
be02fa1a 2578 * content selection pattern - do fix if pattern found
06bbab1b
BK
2579 */
2580tSCC zSun_SignalSelect0[] =
2581 "^void\t\\(\\*signal\\(\\)\\)\\(\\);";
2582
2583#define SUN_SIGNAL_TEST_CT 1
be02fa1a 2584#define SUN_SIGNAL_RE_CT 1
06bbab1b 2585tTestDesc aSun_SignalTests[] = {
be02fa1a 2586 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2587
2588/*
2589 * Fix Command Arguments for Sun_Signal
2590 */
2591const char* apzSun_SignalPatch[] = { "sed",
c329beb0
BK
2592 "-e", "/^void\t(\\*signal())();$/i\\\n\
2593#ifdef __cplusplus\\\n\
2594void\t(*signal(...))(...);\\\n\
2595#else\n",
2596 "-e", "/^void\t(\\*signal())();$/a\\\n\
2597#endif\n",
06bbab1b
BK
2598 (char*)NULL };
2599
2600/* * * * * * * * * * * * * * * * * * * * * * * * * *
2601 *
26e2e81d 2602 * Description 72 - Sun_Auth_Proto fix
06bbab1b
BK
2603 */
2604tSCC zSun_Auth_ProtoName[] =
2605 "Sun_Auth_Proto";
2606/*
2607 * File name selection pattern
2608 */
2609tSCC zSun_Auth_ProtoList[] =
c329beb0 2610 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
06bbab1b
BK
2611/*
2612 * Machine/OS name selection pattern
2613 */
ef16b5e5 2614#define apzSun_Auth_ProtoMachs (const char**)NULL
06bbab1b
BK
2615
2616/*
be02fa1a 2617 * content selection pattern - do fix if pattern found
06bbab1b
BK
2618 */
2619tSCC zSun_Auth_ProtoSelect0[] =
2620 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
2621
2622/*
be02fa1a 2623 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
2624 */
2625tSCC zSun_Auth_ProtoBypass0[] =
2626 "\\(\\*[a-z][a-z_]*\\)\\([ \t]*[a-zA-Z.].*\\)";
2627
2628#define SUN_AUTH_PROTO_TEST_CT 2
be02fa1a 2629#define SUN_AUTH_PROTO_RE_CT 2
06bbab1b 2630tTestDesc aSun_Auth_ProtoTests[] = {
be02fa1a
BK
2631 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
2632 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2633
2634/*
2635 * Fix Command Arguments for Sun_Auth_Proto
2636 */
2637const char* apzSun_Auth_ProtoPatch[] = { "sed",
c329beb0
BK
2638 "-e", "s/^\\(.*(\\*[a-z][a-z_]*)(\\)\\();.*\\)/\\\n\
2639#ifdef __cplusplus\\\n\
2640\\1...\\2\\\n\
2641#else\\\n\
2642\\1\\2\\\n\
2643#endif/",
06bbab1b
BK
2644 (char*)NULL };
2645
2646/* * * * * * * * * * * * * * * * * * * * * * * * * *
2647 *
26e2e81d 2648 * Description 73 - Sunos_Matherr_Decl fix
06bbab1b
BK
2649 */
2650tSCC zSunos_Matherr_DeclName[] =
2651 "Sunos_Matherr_Decl";
2652/*
2653 * File name selection pattern
2654 */
2655tSCC zSunos_Matherr_DeclList[] =
c329beb0 2656 "|math.h|";
06bbab1b
BK
2657/*
2658 * Machine/OS name selection pattern
2659 */
2660#define apzSunos_Matherr_DeclMachs (const char**)NULL
48bd9529 2661#define SUNOS_MATHERR_DECL_TEST_CT 0
be02fa1a 2662#define SUNOS_MATHERR_DECL_RE_CT 0
48bd9529 2663#define aSunos_Matherr_DeclTests (tTestDesc*)NULL
06bbab1b
BK
2664
2665/*
2666 * Fix Command Arguments for Sunos_Matherr_Decl
2667 */
2668const char* apzSunos_Matherr_DeclPatch[] = { "sed",
be02fa1a 2669 "-e", "/^struct exception/,$b",
c329beb0
BK
2670 "-e", "/matherr/i\\\n\
2671struct exception;\n",
06bbab1b
BK
2672 (char*)NULL };
2673
2674/* * * * * * * * * * * * * * * * * * * * * * * * * *
2675 *
26e2e81d 2676 * Description 74 - Sunos_Strlen fix
06bbab1b
BK
2677 */
2678tSCC zSunos_StrlenName[] =
2679 "Sunos_Strlen";
2680/*
2681 * File name selection pattern
2682 */
2683tSCC zSunos_StrlenList[] =
c329beb0 2684 "|strings.h|";
06bbab1b
BK
2685/*
2686 * Machine/OS name selection pattern
2687 */
2688#define apzSunos_StrlenMachs (const char**)NULL
2689#define SUNOS_STRLEN_TEST_CT 0
be02fa1a 2690#define SUNOS_STRLEN_RE_CT 0
06bbab1b
BK
2691#define aSunos_StrlenTests (tTestDesc*)NULL
2692
2693/*
2694 * Fix Command Arguments for Sunos_Strlen
2695 */
2696const char* apzSunos_StrlenPatch[] = { "sed",
be02fa1a 2697 "-e", "s/int[ \t]*strlen();/__SIZE_TYPE__ strlen();/",
06bbab1b
BK
2698 (char*)NULL };
2699
2700/* * * * * * * * * * * * * * * * * * * * * * * * * *
2701 *
26e2e81d 2702 * Description 75 - Systypes fix
06bbab1b
BK
2703 */
2704tSCC zSystypesName[] =
2705 "Systypes";
2706/*
2707 * File name selection pattern
2708 */
2709tSCC zSystypesList[] =
c329beb0 2710 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
06bbab1b
BK
2711/*
2712 * Machine/OS name selection pattern
2713 */
2714#define apzSystypesMachs (const char**)NULL
2715
2716/*
be02fa1a 2717 * content selection pattern - do fix if pattern found
06bbab1b
BK
2718 */
2719tSCC zSystypesSelect0[] =
2720 "typedef[ \t]+[a-z_][ \ta-z_]*[ \t](size|ptrdiff|wchar)_t";
2721
2722#define SYSTYPES_TEST_CT 1
be02fa1a 2723#define SYSTYPES_RE_CT 1
06bbab1b 2724tTestDesc aSystypesTests[] = {
be02fa1a 2725 { TT_EGREP, zSystypesSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2726
2727/*
2728 * Fix Command Arguments for Systypes
2729 */
2730const char* apzSystypesPatch[] = { "sed",
be02fa1a 2731 "-e", "/^[ \t]*\\*[ \t]*typedef unsigned int size_t;/N",
c329beb0
BK
2732 "-e", "s/^\\([ \t]*\\*[ \t]*typedef unsigned int size_t;\\n[ \t]*\\*\\/\\)/\\1\\\n\
2733#ifndef __SIZE_TYPE__\\\n\
2734#define __SIZE_TYPE__ long unsigned int\\\n\
2735#endif\\\n\
2736typedef __SIZE_TYPE__ size_t;\\\n\
2737/",
2738 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/i\\\n\
2739#ifndef __SIZE_TYPE__\\\n\
2740#define __SIZE_TYPE__ long unsigned int\\\n\
2741#endif\n",
be02fa1a 2742 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]size_t/typedef __SIZE_TYPE__ size_t/",
c329beb0
BK
2743 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/i\\\n\
2744#ifndef __PTRDIFF_TYPE__\\\n\
2745#define __PTRDIFF_TYPE__ long int\\\n\
2746#endif\n",
be02fa1a 2747 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]ptrdiff_t/typedef __PTRDIFF_TYPE__ ptrdiff_t/",
c329beb0
BK
2748 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/i\\\n\
2749#ifndef __WCHAR_TYPE__\\\n\
2750#define __WCHAR_TYPE__ int\\\n\
2751#endif\\\n\
2752#ifndef __cplusplus\n",
2753 "-e", "/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/a\\\n\
2754#endif\n",
be02fa1a 2755 "-e", "s/typedef[ \t][ \t]*[a-z_][ \ta-z_]*[ \t]wchar_t/typedef __WCHAR_TYPE__ wchar_t/",
06bbab1b
BK
2756 (char*)NULL };
2757
2758/* * * * * * * * * * * * * * * * * * * * * * * * * *
2759 *
26e2e81d 2760 * Description 76 - Systypes_For_Aix fix
06bbab1b
BK
2761 */
2762tSCC zSystypes_For_AixName[] =
2763 "Systypes_For_Aix";
2764/*
2765 * File name selection pattern
2766 */
2767tSCC zSystypes_For_AixList[] =
c329beb0 2768 "|sys/types.h|";
06bbab1b
BK
2769/*
2770 * Machine/OS name selection pattern
2771 */
2772#define apzSystypes_For_AixMachs (const char**)NULL
2773
2774/*
be02fa1a 2775 * content selection pattern - do fix if pattern found
06bbab1b
BK
2776 */
2777tSCC zSystypes_For_AixSelect0[] =
2778 "typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t";
2779
2780/*
be02fa1a 2781 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
2782 */
2783tSCC zSystypes_For_AixBypass0[] =
2784 "_GCC_SIZE_T";
2785
2786#define SYSTYPES_FOR_AIX_TEST_CT 2
be02fa1a 2787#define SYSTYPES_FOR_AIX_RE_CT 2
06bbab1b 2788tTestDesc aSystypes_For_AixTests[] = {
be02fa1a
BK
2789 { TT_NEGREP, zSystypes_For_AixBypass0, (regex_t*)NULL },
2790 { TT_EGREP, zSystypes_For_AixSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2791
2792/*
2793 * Fix Command Arguments for Systypes_For_Aix
2794 */
2795const char* apzSystypes_For_AixPatch[] = { "sed",
c329beb0
BK
2796 "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/i\\\n\
2797#ifndef _GCC_SIZE_T\\\n\
2798#define _GCC_SIZE_T\n",
2799 "-e", "/typedef[ \t][ \t]*[A-Za-z_][ \tA-Za-z_]*[ \t]size_t/a\\\n\
2800#endif\n",
06bbab1b
BK
2801 (char*)NULL };
2802
2803/* * * * * * * * * * * * * * * * * * * * * * * * * *
2804 *
26e2e81d 2805 * Description 77 - Sysv68_String fix
06bbab1b
BK
2806 */
2807tSCC zSysv68_StringName[] =
2808 "Sysv68_String";
2809/*
2810 * File name selection pattern
2811 */
2812tSCC zSysv68_StringList[] =
c329beb0 2813 "|string.h|";
06bbab1b
BK
2814/*
2815 * Machine/OS name selection pattern
2816 */
2817#define apzSysv68_StringMachs (const char**)NULL
2818#define SYSV68_STRING_TEST_CT 0
be02fa1a 2819#define SYSV68_STRING_RE_CT 0
06bbab1b
BK
2820#define aSysv68_StringTests (tTestDesc*)NULL
2821
2822/*
2823 * Fix Command Arguments for Sysv68_String
2824 */
2825const char* apzSysv68_StringPatch[] = { "sed",
be02fa1a
BK
2826 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
2827 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
2828 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
2829 "-e", "/^extern char$/N",
2830 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
2831 "-e", "/^\tstrncmp(),$/N",
c329beb0
BK
2832 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
2833extern unsigned int\\\n\
2834\\2/",
be02fa1a
BK
2835 "-e", "/^extern int$/N",
2836 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
06bbab1b
BK
2837 (char*)NULL };
2838
2839/* * * * * * * * * * * * * * * * * * * * * * * * * *
2840 *
26e2e81d 2841 * Description 78 - Sysz_Stdlib_For_Sun fix
06bbab1b
BK
2842 */
2843tSCC zSysz_Stdlib_For_SunName[] =
2844 "Sysz_Stdlib_For_Sun";
2845/*
2846 * File name selection pattern
2847 */
2848tSCC zSysz_Stdlib_For_SunList[] =
c329beb0 2849 "|stdlib.h|";
06bbab1b
BK
2850/*
2851 * Machine/OS name selection pattern
2852 */
ef16b5e5 2853#define apzSysz_Stdlib_For_SunMachs (const char**)NULL
06bbab1b 2854#define SYSZ_STDLIB_FOR_SUN_TEST_CT 0
be02fa1a 2855#define SYSZ_STDLIB_FOR_SUN_RE_CT 0
06bbab1b
BK
2856#define aSysz_Stdlib_For_SunTests (tTestDesc*)NULL
2857
2858/*
2859 * Fix Command Arguments for Sysz_Stdlib_For_Sun
2860 */
2861const char* apzSysz_Stdlib_For_SunPatch[] = { "sed",
be02fa1a
BK
2862 "-e", "s/int\tabort/void\tabort/g",
2863 "-e", "s/int\tfree/void\tfree/g",
2864 "-e", "s/char[ \t]*\\*[ \t]*calloc/void \\*\tcalloc/g",
2865 "-e", "s/char[ \t]*\\*[ \t]*malloc/void \\*\tmalloc/g",
2866 "-e", "s/char[ \t]*\\*[ \t]*realloc/void \\*\trealloc/g",
2867 "-e", "s/int[ \t][ \t]*exit/void\texit/g",
c329beb0
BK
2868 "-e", "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/i\\\n\
2869#ifndef _GCC_SIZE_T\\\n\
2870#define _GCC_SIZE_T\n",
2871 "-e", "/typedef[ \ta-zA-Z_]*[ \t]size_t[ \t]*;/a\\\n\
2872#endif\n",
06bbab1b
BK
2873 (char*)NULL };
2874
2875/* * * * * * * * * * * * * * * * * * * * * * * * * *
2876 *
26e2e81d 2877 * Description 79 - Sysz_Stdtypes_For_Sun fix
06bbab1b
BK
2878 */
2879tSCC zSysz_Stdtypes_For_SunName[] =
2880 "Sysz_Stdtypes_For_Sun";
2881/*
2882 * File name selection pattern
2883 */
2884tSCC zSysz_Stdtypes_For_SunList[] =
c329beb0 2885 "|sys/stdtypes.h|";
06bbab1b
BK
2886/*
2887 * Machine/OS name selection pattern
2888 */
2889#define apzSysz_Stdtypes_For_SunMachs (const char**)NULL
2890#define SYSZ_STDTYPES_FOR_SUN_TEST_CT 0
be02fa1a 2891#define SYSZ_STDTYPES_FOR_SUN_RE_CT 0
06bbab1b
BK
2892#define aSysz_Stdtypes_For_SunTests (tTestDesc*)NULL
2893
2894/*
2895 * Fix Command Arguments for Sysz_Stdtypes_For_Sun
2896 */
2897const char* apzSysz_Stdtypes_For_SunPatch[] = { "sed",
c329beb0
BK
2898 "-e", "/[\t ]size_t.*;/i\\\n\
2899#ifndef _GCC_SIZE_T\\\n\
2900#define _GCC_SIZE_T\n",
2901 "-e", "/[\t ]size_t.*;/a\\\n\
2902#endif\n",
2903 "-e", "/[\t ]ptrdiff_t.*;/i\\\n\
2904#ifndef _GCC_PTRDIFF_T\\\n\
2905#define _GCC_PTRDIFF_T\n",
2906 "-e", "/[\t ]ptrdiff_t.*;/a\\\n\
2907#endif\n",
2908 "-e", "/[\t ]wchar_t.*;/i\\\n\
2909#ifndef _GCC_WCHAR_T\\\n\
2910#define _GCC_WCHAR_T\n",
2911 "-e", "/[\t ]wchar_t.*;/a\\\n\
2912#endif\n",
06bbab1b
BK
2913 (char*)NULL };
2914
2915/* * * * * * * * * * * * * * * * * * * * * * * * * *
2916 *
26e2e81d 2917 * Description 80 - Tinfo_Cplusplus fix
06bbab1b
BK
2918 */
2919tSCC zTinfo_CplusplusName[] =
2920 "Tinfo_Cplusplus";
2921/*
2922 * File name selection pattern
2923 */
2924tSCC zTinfo_CplusplusList[] =
c329beb0 2925 "|tinfo.h|";
06bbab1b
BK
2926/*
2927 * Machine/OS name selection pattern
2928 */
2929#define apzTinfo_CplusplusMachs (const char**)NULL
2930#define TINFO_CPLUSPLUS_TEST_CT 0
be02fa1a 2931#define TINFO_CPLUSPLUS_RE_CT 0
06bbab1b
BK
2932#define aTinfo_CplusplusTests (tTestDesc*)NULL
2933
2934/*
2935 * Fix Command Arguments for Tinfo_Cplusplus
2936 */
2937const char* apzTinfo_CplusplusPatch[] = { "sed",
be02fa1a 2938 "-e", "s/[ \t]_cplusplus/ __cplusplus/",
06bbab1b
BK
2939 (char*)NULL };
2940
2941/* * * * * * * * * * * * * * * * * * * * * * * * * *
2942 *
26e2e81d 2943 * Description 81 - Ultrix_Ansi_Compat fix
06bbab1b
BK
2944 */
2945tSCC zUltrix_Ansi_CompatName[] =
2946 "Ultrix_Ansi_Compat";
2947/*
2948 * File name selection pattern
2949 */
2950tSCC zUltrix_Ansi_CompatList[] =
c329beb0 2951 "|ansi_compat.h|";
06bbab1b
BK
2952/*
2953 * Machine/OS name selection pattern
2954 */
2955#define apzUltrix_Ansi_CompatMachs (const char**)NULL
2956
2957/*
be02fa1a 2958 * content selection pattern - do fix if pattern found
06bbab1b
BK
2959 */
2960tSCC zUltrix_Ansi_CompatSelect0[] =
2961 "ULTRIX";
2962
2963#define ULTRIX_ANSI_COMPAT_TEST_CT 1
be02fa1a 2964#define ULTRIX_ANSI_COMPAT_RE_CT 1
06bbab1b 2965tTestDesc aUltrix_Ansi_CompatTests[] = {
be02fa1a 2966 { TT_EGREP, zUltrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
06bbab1b
BK
2967
2968/*
2969 * Fix Command Arguments for Ultrix_Ansi_Compat
2970 */
2971const char* apzUltrix_Ansi_CompatPatch[] = { "sed",
c329beb0
BK
2972 "-e", "1i\\\n\
2973/* This file intentionally left blank. */\n",
be02fa1a 2974 "-e", "1,$d",
06bbab1b
BK
2975 (char*)NULL };
2976
2977/* * * * * * * * * * * * * * * * * * * * * * * * * *
2978 *
26e2e81d 2979 * Description 82 - Ultrix_Fix_Fixproto fix
1f414ac4
BK
2980 */
2981tSCC zUltrix_Fix_FixprotoName[] =
2982 "Ultrix_Fix_Fixproto";
2983/*
2984 * File name selection pattern
2985 */
2986tSCC zUltrix_Fix_FixprotoList[] =
c329beb0 2987 "|sys/utsname.h|";
1f414ac4
BK
2988/*
2989 * Machine/OS name selection pattern
2990 */
2991#define apzUltrix_Fix_FixprotoMachs (const char**)NULL
2992
2993/*
be02fa1a 2994 * content selection pattern - do fix if pattern found
1f414ac4
BK
2995 */
2996tSCC zUltrix_Fix_FixprotoSelect0[] =
2997 "ULTRIX";
2998
2999#define ULTRIX_FIX_FIXPROTO_TEST_CT 1
be02fa1a 3000#define ULTRIX_FIX_FIXPROTO_RE_CT 1
1f414ac4 3001tTestDesc aUltrix_Fix_FixprotoTests[] = {
be02fa1a 3002 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
1f414ac4
BK
3003
3004/*
3005 * Fix Command Arguments for Ultrix_Fix_Fixproto
3006 */
3007const char* apzUltrix_Fix_FixprotoPatch[] = { "sed",
c329beb0
BK
3008 "-e", "/^[ \t]*extern[ \t]*int[ \t]*uname();$/i\\\n\
3009struct utsname;\n",
1f414ac4
BK
3010 (char*)NULL };
3011
3012/* * * * * * * * * * * * * * * * * * * * * * * * * *
3013 *
26e2e81d 3014 * Description 83 - Ultrix_Atof_Param fix
06bbab1b
BK
3015 */
3016tSCC zUltrix_Atof_ParamName[] =
3017 "Ultrix_Atof_Param";
3018/*
3019 * File name selection pattern
3020 */
3021tSCC zUltrix_Atof_ParamList[] =
c329beb0 3022 "|math.h|";
06bbab1b
BK
3023/*
3024 * Machine/OS name selection pattern
3025 */
3026#define apzUltrix_Atof_ParamMachs (const char**)NULL
3027#define ULTRIX_ATOF_PARAM_TEST_CT 0
be02fa1a 3028#define ULTRIX_ATOF_PARAM_RE_CT 0
06bbab1b
BK
3029#define aUltrix_Atof_ParamTests (tTestDesc*)NULL
3030
3031/*
3032 * Fix Command Arguments for Ultrix_Atof_Param
3033 */
3034const char* apzUltrix_Atof_ParamPatch[] = { "sed",
be02fa1a
BK
3035 "-e", "s@atof(\\([ \t]*char[ \t]*\\*[^)]*\\))@atof(const \\1)@",
3036 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3037 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3038 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3039 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
06bbab1b
BK
3040 (char*)NULL };
3041
3042/* * * * * * * * * * * * * * * * * * * * * * * * * *
3043 *
26e2e81d 3044 * Description 84 - Ultrix_Const fix
06bbab1b
BK
3045 */
3046tSCC zUltrix_ConstName[] =
3047 "Ultrix_Const";
3048/*
3049 * File name selection pattern
3050 */
3051tSCC zUltrix_ConstList[] =
c329beb0 3052 "|stdio.h|";
06bbab1b
BK
3053/*
3054 * Machine/OS name selection pattern
3055 */
3056#define apzUltrix_ConstMachs (const char**)NULL
3057#define ULTRIX_CONST_TEST_CT 0
be02fa1a 3058#define ULTRIX_CONST_RE_CT 0
06bbab1b
BK
3059#define aUltrix_ConstTests (tTestDesc*)NULL
3060
3061/*
3062 * Fix Command Arguments for Ultrix_Const
3063 */
3064const char* apzUltrix_ConstPatch[] = { "sed",
be02fa1a
BK
3065 "-e", "s@perror( char \\*__s );@perror( const char *__s );@",
3066 "-e", "s@fputs( char \\*__s,@fputs( const char *__s,@",
3067 "-e", "s@fopen( char \\*__filename, char \\*__type );@fopen( const char *__filename, const char *__type );@",
3068 "-e", "s@fwrite( void \\*__ptr,@fwrite( const void *__ptr,@",
3069 "-e", "s@fscanf( FILE \\*__stream, char \\*__format,@fscanf( FILE *__stream, const char *__format,@",
3070 "-e", "s@scanf( char \\*__format,@scanf( const char *__format,@",
3071 "-e", "s@sscanf( char \\*__s, char \\*__format,@sscanf( const char *__s, const char *__format,@",
3072 "-e", "s@popen(char \\*, char \\*);@popen(const char *, const char *);@",
3073 "-e", "s@tempnam(char\\*,char\\*);@tempnam(const char*,const char*);@",
06bbab1b
BK
3074 (char*)NULL };
3075
3076/* * * * * * * * * * * * * * * * * * * * * * * * * *
3077 *
26e2e81d 3078 * Description 85 - Ultrix_Ifdef fix
06bbab1b
BK
3079 */
3080tSCC zUltrix_IfdefName[] =
3081 "Ultrix_Ifdef";
3082/*
3083 * File name selection pattern
3084 */
3085tSCC zUltrix_IfdefList[] =
c329beb0 3086 "|sys/file.h|";
06bbab1b
BK
3087/*
3088 * Machine/OS name selection pattern
3089 */
3090#define apzUltrix_IfdefMachs (const char**)NULL
3091
3092/*
be02fa1a 3093 * content selection pattern - do fix if pattern found
06bbab1b
BK
3094 */
3095tSCC zUltrix_IfdefSelect0[] =
3096 "#ifdef KERNEL";
3097
3098#define ULTRIX_IFDEF_TEST_CT 1
be02fa1a 3099#define ULTRIX_IFDEF_RE_CT 1
06bbab1b 3100tTestDesc aUltrix_IfdefTests[] = {
be02fa1a 3101 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3102
3103/*
3104 * Fix Command Arguments for Ultrix_Ifdef
3105 */
3106const char* apzUltrix_IfdefPatch[] = { "sed",
be02fa1a 3107 "-e", "s/#ifdef KERNEL/#if defined(KERNEL)/",
06bbab1b
BK
3108 (char*)NULL };
3109
3110/* * * * * * * * * * * * * * * * * * * * * * * * * *
3111 *
26e2e81d 3112 * Description 86 - Ultrix_Nested_Cmnt fix
06bbab1b
BK
3113 */
3114tSCC zUltrix_Nested_CmntName[] =
3115 "Ultrix_Nested_Cmnt";
3116/*
3117 * File name selection pattern
3118 */
3119tSCC zUltrix_Nested_CmntList[] =
c329beb0 3120 "|rpc/svc.h|";
06bbab1b
BK
3121/*
3122 * Machine/OS name selection pattern
3123 */
3124#define apzUltrix_Nested_CmntMachs (const char**)NULL
3125#define ULTRIX_NESTED_CMNT_TEST_CT 0
be02fa1a 3126#define ULTRIX_NESTED_CMNT_RE_CT 0
06bbab1b
BK
3127#define aUltrix_Nested_CmntTests (tTestDesc*)NULL
3128
3129/*
3130 * Fix Command Arguments for Ultrix_Nested_Cmnt
3131 */
3132const char* apzUltrix_Nested_CmntPatch[] = { "sed",
be02fa1a 3133 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
06bbab1b
BK
3134 (char*)NULL };
3135
3136/* * * * * * * * * * * * * * * * * * * * * * * * * *
3137 *
26e2e81d 3138 * Description 87 - Ultrix_Static fix
06bbab1b
BK
3139 */
3140tSCC zUltrix_StaticName[] =
3141 "Ultrix_Static";
3142/*
3143 * File name selection pattern
3144 */
3145tSCC zUltrix_StaticList[] =
c329beb0 3146 "|machine/cpu.h|";
06bbab1b
BK
3147/*
3148 * Machine/OS name selection pattern
3149 */
3150#define apzUltrix_StaticMachs (const char**)NULL
3151
3152/*
be02fa1a 3153 * content selection pattern - do fix if pattern found
06bbab1b
BK
3154 */
3155tSCC zUltrix_StaticSelect0[] =
3156 "#include \"r[34]_cpu";
3157
3158#define ULTRIX_STATIC_TEST_CT 1
be02fa1a 3159#define ULTRIX_STATIC_RE_CT 1
06bbab1b 3160tTestDesc aUltrix_StaticTests[] = {
be02fa1a 3161 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3162
3163/*
3164 * Fix Command Arguments for Ultrix_Static
3165 */
3166const char* apzUltrix_StaticPatch[] = { "sed",
be02fa1a
BK
3167 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
3168 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
3169 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
06bbab1b
BK
3170 (char*)NULL };
3171
3172/* * * * * * * * * * * * * * * * * * * * * * * * * *
3173 *
26e2e81d 3174 * Description 88 - Undefine_Null fix
06bbab1b
BK
3175 */
3176tSCC zUndefine_NullName[] =
3177 "Undefine_Null";
3178/*
3179 * File name selection pattern
3180 */
3181#define zUndefine_NullList (char*)NULL
3182/*
3183 * Machine/OS name selection pattern
3184 */
3185#define apzUndefine_NullMachs (const char**)NULL
3186
3187/*
be02fa1a 3188 * content selection pattern - do fix if pattern found
06bbab1b
BK
3189 */
3190tSCC zUndefine_NullSelect0[] =
3191 "^#[ \t]*define[ \t]*[ \t]NULL[ \t]";
3192
3193/*
be02fa1a 3194 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
3195 */
3196tSCC zUndefine_NullBypass0[] =
3197 "#[ \t]*(ifn|un)def[ \t]*[ \t]NULL($|[ \t])";
3198
3199#define UNDEFINE_NULL_TEST_CT 2
be02fa1a 3200#define UNDEFINE_NULL_RE_CT 2
06bbab1b 3201tTestDesc aUndefine_NullTests[] = {
be02fa1a
BK
3202 { TT_NEGREP, zUndefine_NullBypass0, (regex_t*)NULL },
3203 { TT_EGREP, zUndefine_NullSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3204
3205/*
3206 * Fix Command Arguments for Undefine_Null
3207 */
3208const char* apzUndefine_NullPatch[] = { "sed",
c329beb0
BK
3209 "-e", "/^#[ \t]*define[ \t][ \t]*NULL[ \t]/i\\\n\
3210#undef NULL\n",
06bbab1b
BK
3211 (char*)NULL };
3212
3213/* * * * * * * * * * * * * * * * * * * * * * * * * *
3214 *
26e2e81d 3215 * Description 89 - Va_I960_Macro fix
06bbab1b
BK
3216 */
3217tSCC zVa_I960_MacroName[] =
3218 "Va_I960_Macro";
3219/*
3220 * File name selection pattern
3221 */
3222tSCC zVa_I960_MacroList[] =
c329beb0 3223 "|arch/i960/archI960.h|";
06bbab1b
BK
3224/*
3225 * Machine/OS name selection pattern
3226 */
3227#define apzVa_I960_MacroMachs (const char**)NULL
3228
3229/*
be02fa1a 3230 * content selection pattern - do fix if pattern found
06bbab1b
BK
3231 */
3232tSCC zVa_I960_MacroSelect0[] =
3233 "__(vsiz|vali|vpad|alignof__)";
3234
3235#define VA_I960_MACRO_TEST_CT 1
be02fa1a 3236#define VA_I960_MACRO_RE_CT 1
06bbab1b 3237tTestDesc aVa_I960_MacroTests[] = {
be02fa1a 3238 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3239
3240/*
3241 * Fix Command Arguments for Va_I960_Macro
3242 */
3243const char* apzVa_I960_MacroPatch[] = { "sed",
be02fa1a
BK
3244 "-e", "s/__vsiz/__vxvsiz/",
3245 "-e", "s/__vali/__vxvali/",
3246 "-e", "s/__vpad/__vxvpad/",
3247 "-e", "s/__alignof__/__vxalignof__/",
06bbab1b
BK
3248 (char*)NULL };
3249
3250/* * * * * * * * * * * * * * * * * * * * * * * * * *
3251 *
26e2e81d 3252 * Description 90 - Void_Null fix
06bbab1b
BK
3253 */
3254tSCC zVoid_NullName[] =
3255 "Void_Null";
3256/*
3257 * File name selection pattern
3258 */
3259tSCC zVoid_NullList[] =
c329beb0 3260 "|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|";
06bbab1b
BK
3261/*
3262 * Machine/OS name selection pattern
3263 */
3264#define apzVoid_NullMachs (const char**)NULL
3265
3266/*
be02fa1a 3267 * content selection pattern - do fix if pattern found
06bbab1b
BK
3268 */
3269tSCC zVoid_NullSelect0[] =
3270 "#[ \t]*define[ \t][ \t]*NULL[ \t].*void";
3271
3272#define VOID_NULL_TEST_CT 1
be02fa1a 3273#define VOID_NULL_RE_CT 1
06bbab1b 3274tTestDesc aVoid_NullTests[] = {
be02fa1a 3275 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3276
3277/*
3278 * Fix Command Arguments for Void_Null
3279 */
3280const char* apzVoid_NullPatch[] = { "sed",
be02fa1a 3281 "-e", "s/^#[ \t]*define[ \t]*NULL[ \t]*((void[ \t]*\\*)0)/#define NULL 0/",
06bbab1b
BK
3282 (char*)NULL };
3283
3284/* * * * * * * * * * * * * * * * * * * * * * * * * *
3285 *
26e2e81d 3286 * Description 91 - Vxworks_Gcc_Problem fix
06bbab1b
BK
3287 */
3288tSCC zVxworks_Gcc_ProblemName[] =
3289 "Vxworks_Gcc_Problem";
3290/*
3291 * File name selection pattern
3292 */
3293tSCC zVxworks_Gcc_ProblemList[] =
c329beb0 3294 "|types/vxTypesBase.h|";
06bbab1b
BK
3295/*
3296 * Machine/OS name selection pattern
3297 */
3298#define apzVxworks_Gcc_ProblemMachs (const char**)NULL
3299
3300/*
be02fa1a 3301 * content selection pattern - do fix if pattern found
06bbab1b
BK
3302 */
3303tSCC zVxworks_Gcc_ProblemSelect0[] =
3304 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
3305
3306#define VXWORKS_GCC_PROBLEM_TEST_CT 1
be02fa1a 3307#define VXWORKS_GCC_PROBLEM_RE_CT 1
06bbab1b 3308tTestDesc aVxworks_Gcc_ProblemTests[] = {
be02fa1a 3309 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3310
3311/*
3312 * Fix Command Arguments for Vxworks_Gcc_Problem
3313 */
3314const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
be02fa1a 3315 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
c329beb0
BK
3316 "-e", "/[ \t]size_t/i\\\n\
3317#ifndef _GCC_SIZE_T\\\n\
3318#define _GCC_SIZE_T\n",
3319 "-e", "/[ \t]size_t/a\\\n\
3320#endif\n",
3321 "-e", "/[ \t]ptrdiff_t/i\\\n\
3322#ifndef _GCC_PTRDIFF_T\\\n\
3323#define _GCC_PTRDIFF_T\n",
3324 "-e", "/[ \t]ptrdiff_t/a\\\n\
3325#endif\n",
3326 "-e", "/[ \t]wchar_t/i\\\n\
3327#ifndef _GCC_WCHAR_T\\\n\
3328#define _GCC_WCHAR_T\n",
3329 "-e", "/[ \t]wchar_t/a\\\n\
3330#endif\n",
06bbab1b
BK
3331 (char*)NULL };
3332
3333/* * * * * * * * * * * * * * * * * * * * * * * * * *
3334 *
26e2e81d 3335 * Description 92 - Vxworks_Needs_Vxtypes fix
06bbab1b
BK
3336 */
3337tSCC zVxworks_Needs_VxtypesName[] =
3338 "Vxworks_Needs_Vxtypes";
3339/*
3340 * File name selection pattern
3341 */
3342tSCC zVxworks_Needs_VxtypesList[] =
c329beb0 3343 "|time.h|";
06bbab1b
BK
3344/*
3345 * Machine/OS name selection pattern
3346 */
3347#define apzVxworks_Needs_VxtypesMachs (const char**)NULL
3348
3349/*
be02fa1a 3350 * content selection pattern - do fix if pattern found
06bbab1b
BK
3351 */
3352tSCC zVxworks_Needs_VxtypesSelect0[] =
3353 "uint_t[ \t][ \t]*_clocks_per_sec";
3354
3355#define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
be02fa1a 3356#define VXWORKS_NEEDS_VXTYPES_RE_CT 1
06bbab1b 3357tTestDesc aVxworks_Needs_VxtypesTests[] = {
be02fa1a 3358 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3359
3360/*
3361 * Fix Command Arguments for Vxworks_Needs_Vxtypes
3362 */
3363const char* apzVxworks_Needs_VxtypesPatch[] = { "sed",
be02fa1a 3364 "-e", "s/uint_t/unsigned int/",
06bbab1b
BK
3365 (char*)NULL };
3366
3367/* * * * * * * * * * * * * * * * * * * * * * * * * *
3368 *
26e2e81d 3369 * Description 93 - Vxworks_Needs_Vxworks fix
06bbab1b
BK
3370 */
3371tSCC zVxworks_Needs_VxworksName[] =
3372 "Vxworks_Needs_Vxworks";
3373/*
3374 * File name selection pattern
3375 */
3376tSCC zVxworks_Needs_VxworksList[] =
c329beb0 3377 "|sys/stat.h|";
06bbab1b
BK
3378/*
3379 * Machine/OS name selection pattern
3380 */
3381#define apzVxworks_Needs_VxworksMachs (const char**)NULL
3382
3383/*
be02fa1a 3384 * content selection pattern - do fix if pattern found
06bbab1b
BK
3385 */
3386tSCC zVxworks_Needs_VxworksSelect0[] =
3387 "#[ \t]define[ \t][ \t]*__INCstath";
3388
3389/*
be02fa1a 3390 * perform the 'test' shell command - do fix on success
06bbab1b
BK
3391 */
3392tSCC zVxworks_Needs_VxworksTest0[] =
48bd9529 3393 " -r types/vxTypesOld.h";
06bbab1b 3394tSCC zVxworks_Needs_VxworksTest1[] =
48bd9529 3395 " -n \"`egrep '#include' $file`\"";
06bbab1b 3396tSCC zVxworks_Needs_VxworksTest2[] =
48bd9529 3397 " -n \"`egrep ULONG $file`\"";
06bbab1b
BK
3398
3399#define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
be02fa1a 3400#define VXWORKS_NEEDS_VXWORKS_RE_CT 1
06bbab1b 3401tTestDesc aVxworks_Needs_VxworksTests[] = {
be02fa1a
BK
3402 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
3403 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
3404 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
3405 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3406
3407/*
3408 * Fix Command Arguments for Vxworks_Needs_Vxworks
3409 */
3410const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
c329beb0
BK
3411 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
3412#include <types/vxTypesOld.h>\n",
06bbab1b
BK
3413 (char*)NULL };
3414
3415/* * * * * * * * * * * * * * * * * * * * * * * * * *
3416 *
26e2e81d 3417 * Description 94 - Vxworks_Time fix
06bbab1b
BK
3418 */
3419tSCC zVxworks_TimeName[] =
3420 "Vxworks_Time";
3421/*
3422 * File name selection pattern
3423 */
3424tSCC zVxworks_TimeList[] =
c329beb0 3425 "|time.h|";
06bbab1b
BK
3426/*
3427 * Machine/OS name selection pattern
3428 */
3429#define apzVxworks_TimeMachs (const char**)NULL
3430
3431/*
be02fa1a 3432 * content selection pattern - do fix if pattern found
06bbab1b
BK
3433 */
3434tSCC zVxworks_TimeSelect0[] =
3435 "VOIDFUNCPTR";
3436
3437/*
be02fa1a 3438 * perform the 'test' shell command - do fix on success
06bbab1b
BK
3439 */
3440tSCC zVxworks_TimeTest0[] =
48bd9529 3441 " -r vxWorks.h";
06bbab1b
BK
3442
3443#define VXWORKS_TIME_TEST_CT 2
be02fa1a 3444#define VXWORKS_TIME_RE_CT 1
06bbab1b 3445tTestDesc aVxworks_TimeTests[] = {
be02fa1a
BK
3446 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
3447 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3448
3449/*
3450 * Fix Command Arguments for Vxworks_Time
3451 */
3452const char* apzVxworks_TimePatch[] = { "sed",
c329beb0
BK
3453 "-e", "/VOIDFUNCPTR/i\\\n\
3454#ifndef __gcc_VOIDFUNCPTR_defined\\\n\
3455#ifdef __cplusplus\\\n\
3456typedef void (*__gcc_VOIDFUNCPTR) (...);\\\n\
3457#else\\\n\
3458typedef void (*__gcc_VOIDFUNCPTR) ();\\\n\
3459#endif\\\n\
3460#define __gcc_VOIDFUNCPTR_defined\\\n\
3461#endif\n",
be02fa1a 3462 "-e", "s/VOIDFUNCPTR/__gcc_VOIDFUNCPTR/g",
06bbab1b
BK
3463 (char*)NULL };
3464
3465/* * * * * * * * * * * * * * * * * * * * * * * * * *
3466 *
26e2e81d 3467 * Description 95 - X11_Class fix
06bbab1b
BK
3468 */
3469tSCC zX11_ClassName[] =
3470 "X11_Class";
3471/*
3472 * File name selection pattern
3473 */
3474tSCC zX11_ClassList[] =
c329beb0 3475 "|X11/ShellP.h|";
06bbab1b
BK
3476/*
3477 * Machine/OS name selection pattern
3478 */
3479#define apzX11_ClassMachs (const char**)NULL
3480
3481/*
be02fa1a 3482 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
3483 */
3484tSCC zX11_ClassBypass0[] =
3485 "__cplusplus";
3486
3487#define X11_CLASS_TEST_CT 1
be02fa1a 3488#define X11_CLASS_RE_CT 1
06bbab1b 3489tTestDesc aX11_ClassTests[] = {
be02fa1a 3490 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL }, };
06bbab1b
BK
3491
3492/*
3493 * Fix Command Arguments for X11_Class
3494 */
3495const char* apzX11_ClassPatch[] = { "sed",
c329beb0
BK
3496 "-e", "/char \\*class;/i\\\n\
3497#ifdef __cplusplus\\\n\
3498\tchar *c_class;\\\n\
3499#else\n",
3500 "-e", "/char \\*class;/a\\\n\
3501#endif\n",
06bbab1b
BK
3502 (char*)NULL };
3503
3504/* * * * * * * * * * * * * * * * * * * * * * * * * *
3505 *
26e2e81d 3506 * Description 96 - X11_Class_Usage fix
06bbab1b
BK
3507 */
3508tSCC zX11_Class_UsageName[] =
3509 "X11_Class_Usage";
3510/*
3511 * File name selection pattern
3512 */
3513tSCC zX11_Class_UsageList[] =
c329beb0 3514 "|Xm/BaseClassI.h|";
06bbab1b
BK
3515/*
3516 * Machine/OS name selection pattern
3517 */
3518#define apzX11_Class_UsageMachs (const char**)NULL
3519
3520/*
be02fa1a 3521 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
3522 */
3523tSCC zX11_Class_UsageBypass0[] =
3524 "__cplusplus";
3525
3526#define X11_CLASS_USAGE_TEST_CT 1
be02fa1a 3527#define X11_CLASS_USAGE_RE_CT 1
06bbab1b 3528tTestDesc aX11_Class_UsageTests[] = {
be02fa1a 3529 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL }, };
06bbab1b
BK
3530
3531/*
3532 * Fix Command Arguments for X11_Class_Usage
3533 */
3534const char* apzX11_Class_UsagePatch[] = { "sed",
be02fa1a 3535 "-e", "s/ class[)]/ c_class)/g",
06bbab1b
BK
3536 (char*)NULL };
3537
3538/* * * * * * * * * * * * * * * * * * * * * * * * * *
3539 *
26e2e81d 3540 * Description 97 - X11_New fix
06bbab1b
BK
3541 */
3542tSCC zX11_NewName[] =
3543 "X11_New";
3544/*
3545 * File name selection pattern
3546 */
3547tSCC zX11_NewList[] =
c329beb0 3548 "|Xm/Traversal.h|";
06bbab1b
BK
3549/*
3550 * Machine/OS name selection pattern
3551 */
3552#define apzX11_NewMachs (const char**)NULL
3553
3554/*
be02fa1a 3555 * content bypass pattern - skip fix if pattern found
06bbab1b
BK
3556 */
3557tSCC zX11_NewBypass0[] =
3558 "__cplusplus";
3559
3560#define X11_NEW_TEST_CT 1
be02fa1a 3561#define X11_NEW_RE_CT 1
06bbab1b 3562tTestDesc aX11_NewTests[] = {
be02fa1a 3563 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
06bbab1b
BK
3564
3565/*
3566 * Fix Command Arguments for X11_New
3567 */
3568const char* apzX11_NewPatch[] = { "sed",
c329beb0
BK
3569 "-e", "/Widget\told, new;/i\\\n\
3570#ifdef __cplusplus\\\n\
3571\tWidget\told, c_new;\\\n\
3572#else\n",
3573 "-e", "/Widget\told, new;/a\\\n\
3574#endif\n",
be02fa1a 3575 "-e", "s/Widget new,/Widget c_new,/g",
06bbab1b
BK
3576 (char*)NULL };
3577
3578/* * * * * * * * * * * * * * * * * * * * * * * * * *
3579 *
26e2e81d 3580 * Description 98 - X11_Sprintf fix
06bbab1b
BK
3581 */
3582tSCC zX11_SprintfName[] =
3583 "X11_Sprintf";
3584/*
3585 * File name selection pattern
3586 */
3587tSCC zX11_SprintfList[] =
c329beb0 3588 "|X11*/Xmu.h|";
06bbab1b
BK
3589/*
3590 * Machine/OS name selection pattern
3591 */
3592#define apzX11_SprintfMachs (const char**)NULL
3593#define X11_SPRINTF_TEST_CT 0
be02fa1a 3594#define X11_SPRINTF_RE_CT 0
06bbab1b
BK
3595#define aX11_SprintfTests (tTestDesc*)NULL
3596
3597/*
3598 * Fix Command Arguments for X11_Sprintf
3599 */
3600const char* apzX11_SprintfPatch[] = { "sed",
c329beb0
BK
3601 "-e", "s,^extern char \\*\tsprintf();$,#ifndef __STDC__\\\n\
3602extern char *\tsprintf();\\\n\
3603#endif /* !defined __STDC__ */,",
06bbab1b
BK
3604 (char*)NULL };
3605
3606/* * * * * * * * * * * * * * * * * * * * * * * * * *
3607 *
26e2e81d 3608 * Description 99 - Zzz_Ki_Iface fix
06bbab1b
BK
3609 */
3610tSCC zZzz_Ki_IfaceName[] =
3611 "Zzz_Ki_Iface";
3612/*
3613 * File name selection pattern
3614 */
3615tSCC zZzz_Ki_IfaceList[] =
c329beb0 3616 "|sys/ki_iface.h|";
06bbab1b
BK
3617/*
3618 * Machine/OS name selection pattern
3619 */
3620#define apzZzz_Ki_IfaceMachs (const char**)NULL
3621
3622/*
be02fa1a 3623 * content selection pattern - do fix if pattern found
06bbab1b
BK
3624 */
3625tSCC zZzz_Ki_IfaceSelect0[] =
3626 "These definitions are for HP Internal developers";
3627
3628#define ZZZ_KI_IFACE_TEST_CT 1
be02fa1a 3629#define ZZZ_KI_IFACE_RE_CT 1
06bbab1b 3630tTestDesc aZzz_Ki_IfaceTests[] = {
be02fa1a 3631 { TT_EGREP, zZzz_Ki_IfaceSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3632
3633/*
3634 * Fix Command Arguments for Zzz_Ki_Iface
3635 */
3636const char* apzZzz_Ki_IfacePatch[] = { "sh", "-c",
c329beb0
BK
3637 "echo \"Removing incorrect fix to <$file>\" >&2\n\
3638rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n\
3639cat > /dev/null",
06bbab1b
BK
3640 (char*)NULL };
3641
3642/* * * * * * * * * * * * * * * * * * * * * * * * * *
3643 *
26e2e81d 3644 * Description 100 - Zzz_Ki fix
06bbab1b
BK
3645 */
3646tSCC zZzz_KiName[] =
3647 "Zzz_Ki";
3648/*
3649 * File name selection pattern
3650 */
3651tSCC zZzz_KiList[] =
c329beb0 3652 "|sys/ki.h|";
06bbab1b
BK
3653/*
3654 * Machine/OS name selection pattern
3655 */
3656#define apzZzz_KiMachs (const char**)NULL
3657
3658/*
be02fa1a 3659 * content selection pattern - do fix if pattern found
06bbab1b
BK
3660 */
3661tSCC zZzz_KiSelect0[] =
3662 "11.00 HP-UX LP64";
3663
3664#define ZZZ_KI_TEST_CT 1
be02fa1a 3665#define ZZZ_KI_RE_CT 1
06bbab1b 3666tTestDesc aZzz_KiTests[] = {
be02fa1a 3667 { TT_EGREP, zZzz_KiSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3668
3669/*
3670 * Fix Command Arguments for Zzz_Ki
3671 */
3672const char* apzZzz_KiPatch[] = { "sh", "-c",
c329beb0
BK
3673 "echo \"Removing incorrect fix to <$file>\" >&2\n\
3674rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n\
3675cat > /dev/null",
06bbab1b
BK
3676 (char*)NULL };
3677
3678/* * * * * * * * * * * * * * * * * * * * * * * * * *
3679 *
26e2e81d 3680 * Description 101 - Zzz_Ki_Calls fix
06bbab1b
BK
3681 */
3682tSCC zZzz_Ki_CallsName[] =
3683 "Zzz_Ki_Calls";
3684/*
3685 * File name selection pattern
3686 */
3687tSCC zZzz_Ki_CallsList[] =
c329beb0 3688 "|sys/ki_calls.h|";
06bbab1b
BK
3689/*
3690 * Machine/OS name selection pattern
3691 */
3692#define apzZzz_Ki_CallsMachs (const char**)NULL
3693
3694/*
be02fa1a 3695 * content selection pattern - do fix if pattern found
06bbab1b
BK
3696 */
3697tSCC zZzz_Ki_CallsSelect0[] =
ccce12f3 3698 "kthread_create_caller_t";
06bbab1b
BK
3699
3700#define ZZZ_KI_CALLS_TEST_CT 1
be02fa1a 3701#define ZZZ_KI_CALLS_RE_CT 1
06bbab1b 3702tTestDesc aZzz_Ki_CallsTests[] = {
be02fa1a 3703 { TT_EGREP, zZzz_Ki_CallsSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3704
3705/*
3706 * Fix Command Arguments for Zzz_Ki_Calls
3707 */
3708const char* apzZzz_Ki_CallsPatch[] = { "sh", "-c",
c329beb0
BK
3709 "echo \"Removing incorrect fix to <$file>\" >&2\n\
3710rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n\
3711cat > /dev/null",
06bbab1b
BK
3712 (char*)NULL };
3713
3714/* * * * * * * * * * * * * * * * * * * * * * * * * *
3715 *
26e2e81d 3716 * Description 102 - Zzz_Ki_Defs fix
06bbab1b
BK
3717 */
3718tSCC zZzz_Ki_DefsName[] =
3719 "Zzz_Ki_Defs";
3720/*
3721 * File name selection pattern
3722 */
3723tSCC zZzz_Ki_DefsList[] =
c329beb0 3724 "|sys/ki_defs.h|";
06bbab1b
BK
3725/*
3726 * Machine/OS name selection pattern
3727 */
3728#define apzZzz_Ki_DefsMachs (const char**)NULL
3729
3730/*
be02fa1a 3731 * content selection pattern - do fix if pattern found
06bbab1b
BK
3732 */
3733tSCC zZzz_Ki_DefsSelect0[] =
3734 "Kernel Instrumentation Definitions";
3735
3736#define ZZZ_KI_DEFS_TEST_CT 1
be02fa1a 3737#define ZZZ_KI_DEFS_RE_CT 1
06bbab1b 3738tTestDesc aZzz_Ki_DefsTests[] = {
be02fa1a 3739 { TT_EGREP, zZzz_Ki_DefsSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3740
3741/*
3742 * Fix Command Arguments for Zzz_Ki_Defs
3743 */
3744const char* apzZzz_Ki_DefsPatch[] = { "sh", "-c",
c329beb0
BK
3745 "echo \"Removing incorrect fix to <$file>\" >&2\n\
3746rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n\
3747cat > /dev/null",
06bbab1b
BK
3748 (char*)NULL };
3749
3750/* * * * * * * * * * * * * * * * * * * * * * * * * *
3751 *
26e2e81d 3752 * Description 103 - Zzz_Bad_Fixes fix
48bd9529
BK
3753 */
3754tSCC zZzz_Bad_FixesName[] =
3755 "Zzz_Bad_Fixes";
3756/*
3757 * File name selection pattern
3758 */
3759tSCC zZzz_Bad_FixesList[] =
c329beb0 3760 "|sundev/ipi_error.h|";
48bd9529
BK
3761/*
3762 * Machine/OS name selection pattern
3763 */
3764#define apzZzz_Bad_FixesMachs (const char**)NULL
3765#define ZZZ_BAD_FIXES_TEST_CT 0
be02fa1a 3766#define ZZZ_BAD_FIXES_RE_CT 0
48bd9529
BK
3767#define aZzz_Bad_FixesTests (tTestDesc*)NULL
3768
3769/*
3770 * Fix Command Arguments for Zzz_Bad_Fixes
3771 */
3772const char* apzZzz_Bad_FixesPatch[] = { "sh", "-c",
c329beb0
BK
3773 "echo \"Removing incorrect fix to <$file>\" >&2\n\
3774rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n\
3775cat > /dev/null",
48bd9529
BK
3776 (char*)NULL };
3777
3778/* * * * * * * * * * * * * * * * * * * * * * * * * *
3779 *
26e2e81d 3780 * Description 104 - Zzz_Time fix
06bbab1b
BK
3781 */
3782tSCC zZzz_TimeName[] =
3783 "Zzz_Time";
3784/*
3785 * File name selection pattern
3786 */
3787tSCC zZzz_TimeList[] =
c329beb0 3788 "|sys/time.h|";
06bbab1b
BK
3789/*
3790 * Machine/OS name selection pattern
3791 */
3792#define apzZzz_TimeMachs (const char**)NULL
3793
3794/*
be02fa1a 3795 * content selection pattern - do fix if pattern found
06bbab1b
BK
3796 */
3797tSCC zZzz_TimeSelect0[] =
ccce12f3 3798 "11.0 and later representation of ki time";
06bbab1b
BK
3799
3800#define ZZZ_TIME_TEST_CT 1
be02fa1a 3801#define ZZZ_TIME_RE_CT 1
06bbab1b 3802tTestDesc aZzz_TimeTests[] = {
be02fa1a 3803 { TT_EGREP, zZzz_TimeSelect0, (regex_t*)NULL }, };
06bbab1b
BK
3804
3805/*
3806 * Fix Command Arguments for Zzz_Time
3807 */
3808const char* apzZzz_TimePatch[] = { "sh", "-c",
c329beb0
BK
3809 "echo \"Removing incorrect fix to <$file>\" >&2\n\
3810rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n\
3811cat > /dev/null",
06bbab1b
BK
3812 (char*)NULL };
3813
3814/* * * * * * * * * * * * * * * * * * * * * * * * * *
3815 *
3816 * List of all fixes
3817 */
ef16b5e5 3818#define REGEX_COUNT 76
26e2e81d 3819#define FIX_COUNT 104
be02fa1a 3820tFixDesc fixDescList[ FIX_COUNT ] = {
06bbab1b
BK
3821 { zAix_SyswaitName, zAix_SyswaitList,
3822 apzAix_SyswaitMachs, (regex_t*)NULL,
3823 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY,
3824 aAix_SyswaitTests, apzAix_SyswaitPatch },
3825
3826 { zAix_VolatileName, zAix_VolatileList,
3827 apzAix_VolatileMachs, (regex_t*)NULL,
3828 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY,
3829 aAix_VolatileTests, apzAix_VolatilePatch },
3830
3831 { zAlpha_GetoptName, zAlpha_GetoptList,
3832 apzAlpha_GetoptMachs, (regex_t*)NULL,
3833 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY,
3834 aAlpha_GetoptTests, apzAlpha_GetoptPatch },
3835
3836 { zAlpha_ParensName, zAlpha_ParensList,
3837 apzAlpha_ParensMachs, (regex_t*)NULL,
3838 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY,
3839 aAlpha_ParensTests, apzAlpha_ParensPatch },
3840
3841 { zAlpha_SbrkName, zAlpha_SbrkList,
3842 apzAlpha_SbrkMachs, (regex_t*)NULL,
3843 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY,
3844 aAlpha_SbrkTests, apzAlpha_SbrkPatch },
3845
3846 { zArm_Norcroft_HintName, zArm_Norcroft_HintList,
3847 apzArm_Norcroft_HintMachs, (regex_t*)NULL,
3848 ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY,
3849 aArm_Norcroft_HintTests, apzArm_Norcroft_HintPatch },
3850
3851 { zArm_WcharName, zArm_WcharList,
3852 apzArm_WcharMachs, (regex_t*)NULL,
3853 ARM_WCHAR_TEST_CT, FD_MACH_ONLY,
3854 aArm_WcharTests, apzArm_WcharPatch },
3855
3856 { zAux_AsmName, zAux_AsmList,
3857 apzAux_AsmMachs, (regex_t*)NULL,
3858 AUX_ASM_TEST_CT, FD_MACH_ONLY,
3859 aAux_AsmTests, apzAux_AsmPatch },
3860
3861 { zAvoid_BoolName, zAvoid_BoolList,
3862 apzAvoid_BoolMachs, (regex_t*)NULL,
3863 AVOID_BOOL_TEST_CT, FD_MACH_ONLY,
3864 aAvoid_BoolTests, apzAvoid_BoolPatch },
3865
06bbab1b
BK
3866 { zBad_Struct_TermName, zBad_Struct_TermList,
3867 apzBad_Struct_TermMachs, (regex_t*)NULL,
3868 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY,
3869 aBad_Struct_TermTests, apzBad_Struct_TermPatch },
3870
3871 { zBadquoteName, zBadquoteList,
3872 apzBadquoteMachs, (regex_t*)NULL,
3873 BADQUOTE_TEST_CT, FD_MACH_ONLY,
3874 aBadquoteTests, apzBadquotePatch },
3875
3876 { zBad_LvalName, zBad_LvalList,
3877 apzBad_LvalMachs, (regex_t*)NULL,
3878 BAD_LVAL_TEST_CT, FD_MACH_ONLY,
3879 aBad_LvalTests, apzBad_LvalPatch },
3880
3881 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
3882 apzBroken_Assert_StdioMachs, (regex_t*)NULL,
3883 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY,
3884 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch },
3885
3886 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
3887 apzBroken_Assert_StdlibMachs, (regex_t*)NULL,
3888 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY,
3889 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch },
3890
3891 { zBsd43_Io_MacrosName, zBsd43_Io_MacrosList,
3892 apzBsd43_Io_MacrosMachs, (regex_t*)NULL,
3893 BSD43_IO_MACROS_TEST_CT, FD_MACH_ONLY,
3894 aBsd43_Io_MacrosTests, apzBsd43_Io_MacrosPatch },
3895
48bd9529
BK
3896 { zDec_Intern_AsmName, zDec_Intern_AsmList,
3897 apzDec_Intern_AsmMachs, (regex_t*)NULL,
3898 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
3899 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch },
3900
06bbab1b
BK
3901 { zNo_Double_SlashName, zNo_Double_SlashList,
3902 apzNo_Double_SlashMachs, (regex_t*)NULL,
3903 NO_DOUBLE_SLASH_TEST_CT, FD_MACH_ONLY,
3904 aNo_Double_SlashTests, apzNo_Double_SlashPatch },
3905
06bbab1b
BK
3906 { zEcd_CursorName, zEcd_CursorList,
3907 apzEcd_CursorMachs, (regex_t*)NULL,
3908 ECD_CURSOR_TEST_CT, FD_MACH_ONLY,
3909 aEcd_CursorTests, apzEcd_CursorPatch },
3910
26e2e81d
RL
3911 { zSco5_Stat_WrappersName, zSco5_Stat_WrappersList,
3912 apzSco5_Stat_WrappersMachs, (regex_t*)NULL,
3913 SCO5_STAT_WRAPPERS_TEST_CT, FD_MACH_ONLY,
3914 aSco5_Stat_WrappersTests, apzSco5_Stat_WrappersPatch },
3915
06bbab1b
BK
3916 { zElse_LabelName, zElse_LabelList,
3917 apzElse_LabelMachs, (regex_t*)NULL,
3918 ELSE_LABEL_TEST_CT, FD_MACH_ONLY,
3919 aElse_LabelTests, apzElse_LabelPatch },
3920
3921 { zEndif_LabelName, zEndif_LabelList,
3922 apzEndif_LabelMachs, (regex_t*)NULL,
3923 ENDIF_LABEL_TEST_CT, FD_MACH_ONLY,
3924 aEndif_LabelTests, apzEndif_LabelPatch },
3925
3926 { zHp_InlineName, zHp_InlineList,
3927 apzHp_InlineMachs, (regex_t*)NULL,
3928 HP_INLINE_TEST_CT, FD_MACH_ONLY,
3929 aHp_InlineTests, apzHp_InlinePatch },
3930
3931 { zHp_SysfileName, zHp_SysfileList,
3932 apzHp_SysfileMachs, (regex_t*)NULL,
3933 HP_SYSFILE_TEST_CT, FD_MACH_ONLY,
3934 aHp_SysfileTests, apzHp_SysfilePatch },
3935
48bd9529
BK
3936 { zCxx_UnreadyName, zCxx_UnreadyList,
3937 apzCxx_UnreadyMachs, (regex_t*)NULL,
3938 CXX_UNREADY_TEST_CT, FD_MACH_ONLY,
3939 aCxx_UnreadyTests, apzCxx_UnreadyPatch },
06bbab1b
BK
3940
3941 { zHpux_MaxintName, zHpux_MaxintList,
3942 apzHpux_MaxintMachs, (regex_t*)NULL,
3943 HPUX_MAXINT_TEST_CT, FD_MACH_ONLY,
3944 aHpux_MaxintTests, apzHpux_MaxintPatch },
3945
3946 { zHpux_SystimeName, zHpux_SystimeList,
3947 apzHpux_SystimeMachs, (regex_t*)NULL,
3948 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY,
3949 aHpux_SystimeTests, apzHpux_SystimePatch },
3950
3951 { zInteractv_Add1Name, zInteractv_Add1List,
3952 apzInteractv_Add1Machs, (regex_t*)NULL,
3953 INTERACTV_ADD1_TEST_CT, FD_MACH_ONLY,
3954 aInteractv_Add1Tests, apzInteractv_Add1Patch },
3955
3956 { zInteractv_Add2Name, zInteractv_Add2List,
3957 apzInteractv_Add2Machs, (regex_t*)NULL,
3958 INTERACTV_ADD2_TEST_CT, FD_MACH_ONLY,
3959 aInteractv_Add2Tests, apzInteractv_Add2Patch },
3960
3961 { zInteractv_Add3Name, zInteractv_Add3List,
3962 apzInteractv_Add3Machs, (regex_t*)NULL,
3963 INTERACTV_ADD3_TEST_CT, FD_MACH_ONLY,
3964 aInteractv_Add3Tests, apzInteractv_Add3Patch },
3965
3966 { zIo_Def_QuotesName, zIo_Def_QuotesList,
3967 apzIo_Def_QuotesMachs, (regex_t*)NULL,
3968 IO_DEF_QUOTES_TEST_CT, FD_MACH_ONLY,
3969 aIo_Def_QuotesTests, apzIo_Def_QuotesPatch },
3970
3971 { zIoctl_Fix_CtrlName, zIoctl_Fix_CtrlList,
3972 apzIoctl_Fix_CtrlMachs, (regex_t*)NULL,
3973 IOCTL_FIX_CTRL_TEST_CT, FD_MACH_ONLY,
3974 aIoctl_Fix_CtrlTests, apzIoctl_Fix_CtrlPatch },
3975
3976 { zIp_Missing_SemiName, zIp_Missing_SemiList,
3977 apzIp_Missing_SemiMachs, (regex_t*)NULL,
3978 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
3979 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch },
3980
3981 { zIrix_Multiline_CmntName, zIrix_Multiline_CmntList,
3982 apzIrix_Multiline_CmntMachs, (regex_t*)NULL,
3983 IRIX_MULTILINE_CMNT_TEST_CT, FD_MACH_ONLY,
3984 aIrix_Multiline_CmntTests, apzIrix_Multiline_CmntPatch },
3985
3986 { zIrix_SockaddrName, zIrix_SockaddrList,
3987 apzIrix_SockaddrMachs, (regex_t*)NULL,
3988 IRIX_SOCKADDR_TEST_CT, FD_MACH_ONLY,
3989 aIrix_SockaddrTests, apzIrix_SockaddrPatch },
3990
3991 { zIrix_Struct__FileName, zIrix_Struct__FileList,
3992 apzIrix_Struct__FileMachs, (regex_t*)NULL,
3993 IRIX_STRUCT__FILE_TEST_CT, FD_MACH_ONLY,
3994 aIrix_Struct__FileTests, apzIrix_Struct__FilePatch },
3995
3996 { zIsc_FmodName, zIsc_FmodList,
3997 apzIsc_FmodMachs, (regex_t*)NULL,
3998 ISC_FMOD_TEST_CT, FD_MACH_ONLY,
3999 aIsc_FmodTests, apzIsc_FmodPatch },
4000
4001 { zMotorola_NestedName, zMotorola_NestedList,
4002 apzMotorola_NestedMachs, (regex_t*)NULL,
4003 MOTOROLA_NESTED_TEST_CT, FD_MACH_ONLY,
4004 aMotorola_NestedTests, apzMotorola_NestedPatch },
4005
4006 { zIsc_Sys_LimitsName, zIsc_Sys_LimitsList,
4007 apzIsc_Sys_LimitsMachs, (regex_t*)NULL,
4008 ISC_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
4009 aIsc_Sys_LimitsTests, apzIsc_Sys_LimitsPatch },
4010
4011 { zKandr_ConcatName, zKandr_ConcatList,
4012 apzKandr_ConcatMachs, (regex_t*)NULL,
4013 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY,
4014 aKandr_ConcatTests, apzKandr_ConcatPatch },
4015
4016 { zLimits_IfndefsName, zLimits_IfndefsList,
4017 apzLimits_IfndefsMachs, (regex_t*)NULL,
4018 LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY,
4019 aLimits_IfndefsTests, apzLimits_IfndefsPatch },
4020
4021 { zLynx_Void_IntName, zLynx_Void_IntList,
4022 apzLynx_Void_IntMachs, (regex_t*)NULL,
4023 LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY,
4024 aLynx_Void_IntTests, apzLynx_Void_IntPatch },
4025
4026 { zLynxos_Fcntl_ProtoName, zLynxos_Fcntl_ProtoList,
4027 apzLynxos_Fcntl_ProtoMachs, (regex_t*)NULL,
4028 LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY,
4029 aLynxos_Fcntl_ProtoTests, apzLynxos_Fcntl_ProtoPatch },
4030
4031 { zM88k_Bad_Hypot_OptName, zM88k_Bad_Hypot_OptList,
4032 apzM88k_Bad_Hypot_OptMachs, (regex_t*)NULL,
4033 M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY,
4034 aM88k_Bad_Hypot_OptTests, apzM88k_Bad_Hypot_OptPatch },
4035
4036 { zM88k_Bad_S_IfName, zM88k_Bad_S_IfList,
4037 apzM88k_Bad_S_IfMachs, (regex_t*)NULL,
4038 M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY,
4039 aM88k_Bad_S_IfTests, apzM88k_Bad_S_IfPatch },
4040
4041 { zM88k_Multi_InclName, zM88k_Multi_InclList,
4042 apzM88k_Multi_InclMachs, (regex_t*)NULL,
bb786201 4043 M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
06bbab1b
BK
4044 aM88k_Multi_InclTests, apzM88k_Multi_InclPatch },
4045
4046 { zMachine_NameName, zMachine_NameList,
4047 apzMachine_NameMachs, (regex_t*)NULL,
4048 MACHINE_NAME_TEST_CT, FD_MACH_ONLY,
4049 aMachine_NameTests, apzMachine_NamePatch },
4050
4051 { zMath_ExceptionName, zMath_ExceptionList,
4052 apzMath_ExceptionMachs, (regex_t*)NULL,
4053 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY,
4054 aMath_ExceptionTests, apzMath_ExceptionPatch },
4055
4056 { zMath_Gcc_IfndefsName, zMath_Gcc_IfndefsList,
4057 apzMath_Gcc_IfndefsMachs, (regex_t*)NULL,
bb786201 4058 MATH_GCC_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
06bbab1b
BK
4059 aMath_Gcc_IfndefsTests, apzMath_Gcc_IfndefsPatch },
4060
06bbab1b
BK
4061 { zNested_CommentName, zNested_CommentList,
4062 apzNested_CommentMachs, (regex_t*)NULL,
4063 NESTED_COMMENT_TEST_CT, FD_MACH_ONLY,
4064 aNested_CommentTests, apzNested_CommentPatch },
4065
4066 { zNews_Os_RecursionName, zNews_Os_RecursionList,
4067 apzNews_Os_RecursionMachs, (regex_t*)NULL,
4068 NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY,
4069 aNews_Os_RecursionTests, apzNews_Os_RecursionPatch },
4070
4071 { zNext_Math_PrefixName, zNext_Math_PrefixList,
4072 apzNext_Math_PrefixMachs, (regex_t*)NULL,
4073 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY,
4074 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch },
4075
4076 { zNext_TemplateName, zNext_TemplateList,
4077 apzNext_TemplateMachs, (regex_t*)NULL,
4078 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY,
4079 aNext_TemplateTests, apzNext_TemplatePatch },
4080
4081 { zNext_VolitileName, zNext_VolitileList,
4082 apzNext_VolitileMachs, (regex_t*)NULL,
4083 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY,
4084 aNext_VolitileTests, apzNext_VolitilePatch },
4085
4086 { zNext_Wait_UnionName, zNext_Wait_UnionList,
4087 apzNext_Wait_UnionMachs, (regex_t*)NULL,
4088 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY,
4089 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch },
4090
4091 { zNodeent_SyntaxName, zNodeent_SyntaxList,
4092 apzNodeent_SyntaxMachs, (regex_t*)NULL,
4093 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY,
4094 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch },
4095
4096 { zOsf_Namespace_AName, zOsf_Namespace_AList,
4097 apzOsf_Namespace_AMachs, (regex_t*)NULL,
4098 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY,
4099 aOsf_Namespace_ATests, apzOsf_Namespace_APatch },
4100
4101 { zOsf_Namespace_BName, zOsf_Namespace_BList,
4102 apzOsf_Namespace_BMachs, (regex_t*)NULL,
4103 OSF_NAMESPACE_B_TEST_CT, FD_MACH_ONLY,
4104 aOsf_Namespace_BTests, apzOsf_Namespace_BPatch },
4105
4106 { zPthread_Page_SizeName, zPthread_Page_SizeList,
4107 apzPthread_Page_SizeMachs, (regex_t*)NULL,
4108 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY,
4109 aPthread_Page_SizeTests, apzPthread_Page_SizePatch },
4110
4111 { zRs6000_DoubleName, zRs6000_DoubleList,
4112 apzRs6000_DoubleMachs, (regex_t*)NULL,
4113 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY,
4114 aRs6000_DoubleTests, apzRs6000_DoublePatch },
4115
4116 { zRs6000_FchmodName, zRs6000_FchmodList,
4117 apzRs6000_FchmodMachs, (regex_t*)NULL,
4118 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY,
4119 aRs6000_FchmodTests, apzRs6000_FchmodPatch },
4120
4121 { zRs6000_ParamName, zRs6000_ParamList,
4122 apzRs6000_ParamMachs, (regex_t*)NULL,
4123 RS6000_PARAM_TEST_CT, FD_MACH_ONLY,
4124 aRs6000_ParamTests, apzRs6000_ParamPatch },
4125
4126 { zSony_IncludeName, zSony_IncludeList,
4127 apzSony_IncludeMachs, (regex_t*)NULL,
4128 SONY_INCLUDE_TEST_CT, FD_MACH_ONLY,
4129 aSony_IncludeTests, apzSony_IncludePatch },
4130
4131 { zStatsswtchName, zStatsswtchList,
4132 apzStatsswtchMachs, (regex_t*)NULL,
4133 STATSSWTCH_TEST_CT, FD_MACH_ONLY,
4134 aStatsswtchTests, apzStatsswtchPatch },
4135
4136 { zStdio_Va_ListName, zStdio_Va_ListList,
4137 apzStdio_Va_ListMachs, (regex_t*)NULL,
bb786201 4138 STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
06bbab1b
BK
4139 aStdio_Va_ListTests, apzStdio_Va_ListPatch },
4140
4141 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
4142 apzSun_Bogus_IfdefMachs, (regex_t*)NULL,
4143 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY,
4144 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch },
4145
4146 { zSun_Bogus_Ifdef_Sun4cName, zSun_Bogus_Ifdef_Sun4cList,
4147 apzSun_Bogus_Ifdef_Sun4cMachs, (regex_t*)NULL,
4148 SUN_BOGUS_IFDEF_SUN4C_TEST_CT, FD_MACH_ONLY,
4149 aSun_Bogus_Ifdef_Sun4cTests, apzSun_Bogus_Ifdef_Sun4cPatch },
4150
4151 { zSun_CatmacroName, zSun_CatmacroList,
4152 apzSun_CatmacroMachs, (regex_t*)NULL,
4153 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY,
4154 aSun_CatmacroTests, apzSun_CatmacroPatch },
4155
4156 { zSun_MallocName, zSun_MallocList,
4157 apzSun_MallocMachs, (regex_t*)NULL,
4158 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
4159 aSun_MallocTests, apzSun_MallocPatch },
4160
4161 { zSun_MemcpyName, zSun_MemcpyList,
4162 apzSun_MemcpyMachs, (regex_t*)NULL,
4163 SUN_MEMCPY_TEST_CT, FD_MACH_ONLY,
4164 aSun_MemcpyTests, apzSun_MemcpyPatch },
4165
4166 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
4167 apzSun_Rusers_SemiMachs, (regex_t*)NULL,
4168 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
4169 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch },
4170
4171 { zSun_SignalName, zSun_SignalList,
4172 apzSun_SignalMachs, (regex_t*)NULL,
4173 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY,
4174 aSun_SignalTests, apzSun_SignalPatch },
4175
4176 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
4177 apzSun_Auth_ProtoMachs, (regex_t*)NULL,
4178 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY,
4179 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch },
4180
06bbab1b
BK
4181 { zSunos_Matherr_DeclName, zSunos_Matherr_DeclList,
4182 apzSunos_Matherr_DeclMachs, (regex_t*)NULL,
4183 SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY,
4184 aSunos_Matherr_DeclTests, apzSunos_Matherr_DeclPatch },
4185
4186 { zSunos_StrlenName, zSunos_StrlenList,
4187 apzSunos_StrlenMachs, (regex_t*)NULL,
4188 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY,
4189 aSunos_StrlenTests, apzSunos_StrlenPatch },
4190
4191 { zSystypesName, zSystypesList,
4192 apzSystypesMachs, (regex_t*)NULL,
4193 SYSTYPES_TEST_CT, FD_MACH_ONLY,
4194 aSystypesTests, apzSystypesPatch },
4195
4196 { zSystypes_For_AixName, zSystypes_For_AixList,
4197 apzSystypes_For_AixMachs, (regex_t*)NULL,
4198 SYSTYPES_FOR_AIX_TEST_CT, FD_MACH_ONLY,
4199 aSystypes_For_AixTests, apzSystypes_For_AixPatch },
4200
4201 { zSysv68_StringName, zSysv68_StringList,
4202 apzSysv68_StringMachs, (regex_t*)NULL,
4203 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
4204 aSysv68_StringTests, apzSysv68_StringPatch },
4205
4206 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
4207 apzSysz_Stdlib_For_SunMachs, (regex_t*)NULL,
4208 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY,
4209 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch },
4210
4211 { zSysz_Stdtypes_For_SunName, zSysz_Stdtypes_For_SunList,
4212 apzSysz_Stdtypes_For_SunMachs, (regex_t*)NULL,
4213 SYSZ_STDTYPES_FOR_SUN_TEST_CT, FD_MACH_ONLY,
4214 aSysz_Stdtypes_For_SunTests, apzSysz_Stdtypes_For_SunPatch },
4215
4216 { zTinfo_CplusplusName, zTinfo_CplusplusList,
4217 apzTinfo_CplusplusMachs, (regex_t*)NULL,
4218 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY,
4219 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch },
4220
4221 { zUltrix_Ansi_CompatName, zUltrix_Ansi_CompatList,
4222 apzUltrix_Ansi_CompatMachs, (regex_t*)NULL,
4223 ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY,
4224 aUltrix_Ansi_CompatTests, apzUltrix_Ansi_CompatPatch },
4225
1f414ac4
BK
4226 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
4227 apzUltrix_Fix_FixprotoMachs, (regex_t*)NULL,
4228 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY,
4229 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch },
4230
06bbab1b
BK
4231 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
4232 apzUltrix_Atof_ParamMachs, (regex_t*)NULL,
4233 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY,
4234 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch },
4235
4236 { zUltrix_ConstName, zUltrix_ConstList,
4237 apzUltrix_ConstMachs, (regex_t*)NULL,
4238 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY,
4239 aUltrix_ConstTests, apzUltrix_ConstPatch },
4240
4241 { zUltrix_IfdefName, zUltrix_IfdefList,
4242 apzUltrix_IfdefMachs, (regex_t*)NULL,
4243 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY,
4244 aUltrix_IfdefTests, apzUltrix_IfdefPatch },
4245
4246 { zUltrix_Nested_CmntName, zUltrix_Nested_CmntList,
4247 apzUltrix_Nested_CmntMachs, (regex_t*)NULL,
4248 ULTRIX_NESTED_CMNT_TEST_CT, FD_MACH_ONLY,
4249 aUltrix_Nested_CmntTests, apzUltrix_Nested_CmntPatch },
4250
4251 { zUltrix_StaticName, zUltrix_StaticList,
4252 apzUltrix_StaticMachs, (regex_t*)NULL,
4253 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
4254 aUltrix_StaticTests, apzUltrix_StaticPatch },
4255
4256 { zUndefine_NullName, zUndefine_NullList,
4257 apzUndefine_NullMachs, (regex_t*)NULL,
4258 UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY,
4259 aUndefine_NullTests, apzUndefine_NullPatch },
4260
4261 { zVa_I960_MacroName, zVa_I960_MacroList,
4262 apzVa_I960_MacroMachs, (regex_t*)NULL,
4263 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY,
4264 aVa_I960_MacroTests, apzVa_I960_MacroPatch },
4265
4266 { zVoid_NullName, zVoid_NullList,
4267 apzVoid_NullMachs, (regex_t*)NULL,
4268 VOID_NULL_TEST_CT, FD_MACH_ONLY,
4269 aVoid_NullTests, apzVoid_NullPatch },
4270
4271 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
4272 apzVxworks_Gcc_ProblemMachs, (regex_t*)NULL,
4273 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
4274 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch },
4275
4276 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
4277 apzVxworks_Needs_VxtypesMachs, (regex_t*)NULL,
4278 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY,
4279 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch },
4280
4281 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
4282 apzVxworks_Needs_VxworksMachs, (regex_t*)NULL,
4283 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
4284 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch },
4285
4286 { zVxworks_TimeName, zVxworks_TimeList,
4287 apzVxworks_TimeMachs, (regex_t*)NULL,
4288 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY,
4289 aVxworks_TimeTests, apzVxworks_TimePatch },
4290
4291 { zX11_ClassName, zX11_ClassList,
4292 apzX11_ClassMachs, (regex_t*)NULL,
4293 X11_CLASS_TEST_CT, FD_MACH_ONLY,
4294 aX11_ClassTests, apzX11_ClassPatch },
4295
4296 { zX11_Class_UsageName, zX11_Class_UsageList,
4297 apzX11_Class_UsageMachs, (regex_t*)NULL,
4298 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY,
4299 aX11_Class_UsageTests, apzX11_Class_UsagePatch },
4300
4301 { zX11_NewName, zX11_NewList,
4302 apzX11_NewMachs, (regex_t*)NULL,
4303 X11_NEW_TEST_CT, FD_MACH_ONLY,
4304 aX11_NewTests, apzX11_NewPatch },
4305
4306 { zX11_SprintfName, zX11_SprintfList,
4307 apzX11_SprintfMachs, (regex_t*)NULL,
4308 X11_SPRINTF_TEST_CT, FD_MACH_ONLY,
4309 aX11_SprintfTests, apzX11_SprintfPatch },
4310
4311 { zZzz_Ki_IfaceName, zZzz_Ki_IfaceList,
4312 apzZzz_Ki_IfaceMachs, (regex_t*)NULL,
bb786201 4313 ZZZ_KI_IFACE_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
06bbab1b
BK
4314 aZzz_Ki_IfaceTests, apzZzz_Ki_IfacePatch },
4315
4316 { zZzz_KiName, zZzz_KiList,
4317 apzZzz_KiMachs, (regex_t*)NULL,
bb786201 4318 ZZZ_KI_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
06bbab1b
BK
4319 aZzz_KiTests, apzZzz_KiPatch },
4320
4321 { zZzz_Ki_CallsName, zZzz_Ki_CallsList,
4322 apzZzz_Ki_CallsMachs, (regex_t*)NULL,
bb786201 4323 ZZZ_KI_CALLS_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
06bbab1b
BK
4324 aZzz_Ki_CallsTests, apzZzz_Ki_CallsPatch },
4325
4326 { zZzz_Ki_DefsName, zZzz_Ki_DefsList,
4327 apzZzz_Ki_DefsMachs, (regex_t*)NULL,
bb786201 4328 ZZZ_KI_DEFS_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
06bbab1b
BK
4329 aZzz_Ki_DefsTests, apzZzz_Ki_DefsPatch },
4330
48bd9529
BK
4331 { zZzz_Bad_FixesName, zZzz_Bad_FixesList,
4332 apzZzz_Bad_FixesMachs, (regex_t*)NULL,
bb786201 4333 ZZZ_BAD_FIXES_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
48bd9529
BK
4334 aZzz_Bad_FixesTests, apzZzz_Bad_FixesPatch },
4335
06bbab1b
BK
4336 { zZzz_TimeName, zZzz_TimeList,
4337 apzZzz_TimeMachs, (regex_t*)NULL,
bb786201 4338 ZZZ_TIME_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
06bbab1b
BK
4339 aZzz_TimeTests, apzZzz_TimePatch }
4340};
This page took 0.609997 seconds and 5 git commands to generate.