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