OSDN Git Service

9fb8dd1e141e643eb799fae784a9c66528706ea6
[pf3gnuchains/gcc-fork.git] / gcc / fixinc / fixincl.x
1 /*
2  *  DO NOT EDIT THIS FILE - it has been generated
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  *
8  * This file contains 127 fixup descriptions.
9  *
10  * See README-fixinc for more information.
11  *
12  *  inclhack copyright (c) 1998, 1999, 2000
13  *  The Free Software Foundation, Inc.
14  *
15  *  inclhack is free software.
16  *  
17  *  You may redistribute it and/or modify it under the terms of the
18  *  GNU General Public License, as published by the Free Software
19  *  Foundation; either version 2, or (at your option) any later version.
20  *  
21  *  inclhack is distributed in the hope that it will be useful,
22  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
23  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24  *  See the GNU General Public License for more details.
25  *  
26  *  You should have received a copy of the GNU General Public License
27  *  along with inclhack.  See the file "COPYING".  If not,
28  *  write to:  The Free Software Foundation, Inc.,
29  *             59 Temple Place - Suite 330,
30  *             Boston,  MA  02111-1307, USA.
31  */
32
33 /* * * * * * * * * * * * * * * * * * * * * * * * * *
34  *
35  *  Description of Aaa_Ki_Iface fix
36  */
37 #define AAA_KI_IFACE_FIXIDX              0
38 tSCC zAaa_Ki_IfaceName[] =
39      "AAA_ki_iface";
40
41 /*
42  *  File name selection pattern
43  */
44 tSCC zAaa_Ki_IfaceList[] =
45   "|sys/ki_iface.h|";
46 /*
47  *  Machine/OS name selection pattern
48  */
49 #define apzAaa_Ki_IfaceMachs (const char**)NULL
50
51 /*
52  *  content selection pattern - do fix if pattern found
53  */
54 tSCC zAaa_Ki_IfaceSelect0[] =
55        "These definitions are for HP Internal developers";
56
57 #define    AAA_KI_IFACE_TEST_CT  1
58 tTestDesc aAaa_Ki_IfaceTests[] = {
59   { TT_EGREP,    zAaa_Ki_IfaceSelect0, (regex_t*)NULL }, };
60
61 /*
62  *  Fix Command Arguments for Aaa_Ki_Iface
63  */
64 const char* apzAaa_Ki_IfacePatch[] = {
65     (char*)NULL };
66
67 /* * * * * * * * * * * * * * * * * * * * * * * * * *
68  *
69  *  Description of Aaa_Ki fix
70  */
71 #define AAA_KI_FIXIDX                    1
72 tSCC zAaa_KiName[] =
73      "AAA_ki";
74
75 /*
76  *  File name selection pattern
77  */
78 tSCC zAaa_KiList[] =
79   "|sys/ki.h|";
80 /*
81  *  Machine/OS name selection pattern
82  */
83 #define apzAaa_KiMachs (const char**)NULL
84
85 /*
86  *  content selection pattern - do fix if pattern found
87  */
88 tSCC zAaa_KiSelect0[] =
89        "11.00 HP-UX LP64";
90
91 #define    AAA_KI_TEST_CT  1
92 tTestDesc aAaa_KiTests[] = {
93   { TT_EGREP,    zAaa_KiSelect0, (regex_t*)NULL }, };
94
95 /*
96  *  Fix Command Arguments for Aaa_Ki
97  */
98 const char* apzAaa_KiPatch[] = {
99     (char*)NULL };
100
101 /* * * * * * * * * * * * * * * * * * * * * * * * * *
102  *
103  *  Description of Aaa_Ki_Calls fix
104  */
105 #define AAA_KI_CALLS_FIXIDX              2
106 tSCC zAaa_Ki_CallsName[] =
107      "AAA_ki_calls";
108
109 /*
110  *  File name selection pattern
111  */
112 tSCC zAaa_Ki_CallsList[] =
113   "|sys/ki_calls.h|";
114 /*
115  *  Machine/OS name selection pattern
116  */
117 #define apzAaa_Ki_CallsMachs (const char**)NULL
118
119 /*
120  *  content selection pattern - do fix if pattern found
121  */
122 tSCC zAaa_Ki_CallsSelect0[] =
123        "kthread_create_caller_t";
124
125 #define    AAA_KI_CALLS_TEST_CT  1
126 tTestDesc aAaa_Ki_CallsTests[] = {
127   { TT_EGREP,    zAaa_Ki_CallsSelect0, (regex_t*)NULL }, };
128
129 /*
130  *  Fix Command Arguments for Aaa_Ki_Calls
131  */
132 const char* apzAaa_Ki_CallsPatch[] = {
133     (char*)NULL };
134
135 /* * * * * * * * * * * * * * * * * * * * * * * * * *
136  *
137  *  Description of Aaa_Ki_Defs fix
138  */
139 #define AAA_KI_DEFS_FIXIDX               3
140 tSCC zAaa_Ki_DefsName[] =
141      "AAA_ki_defs";
142
143 /*
144  *  File name selection pattern
145  */
146 tSCC zAaa_Ki_DefsList[] =
147   "|sys/ki_defs.h|";
148 /*
149  *  Machine/OS name selection pattern
150  */
151 #define apzAaa_Ki_DefsMachs (const char**)NULL
152
153 /*
154  *  content selection pattern - do fix if pattern found
155  */
156 tSCC zAaa_Ki_DefsSelect0[] =
157        "Kernel Instrumentation Definitions";
158
159 #define    AAA_KI_DEFS_TEST_CT  1
160 tTestDesc aAaa_Ki_DefsTests[] = {
161   { TT_EGREP,    zAaa_Ki_DefsSelect0, (regex_t*)NULL }, };
162
163 /*
164  *  Fix Command Arguments for Aaa_Ki_Defs
165  */
166 const char* apzAaa_Ki_DefsPatch[] = {
167     (char*)NULL };
168
169 /* * * * * * * * * * * * * * * * * * * * * * * * * *
170  *
171  *  Description of Aaa_Bad_Fixes fix
172  */
173 #define AAA_BAD_FIXES_FIXIDX             4
174 tSCC zAaa_Bad_FixesName[] =
175      "AAA_bad_fixes";
176
177 /*
178  *  File name selection pattern
179  */
180 tSCC zAaa_Bad_FixesList[] =
181   "|sundev/ipi_error.h|";
182 /*
183  *  Machine/OS name selection pattern
184  */
185 #define apzAaa_Bad_FixesMachs (const char**)NULL
186 #define AAA_BAD_FIXES_TEST_CT  0
187 #define aAaa_Bad_FixesTests   (tTestDesc*)NULL
188
189 /*
190  *  Fix Command Arguments for Aaa_Bad_Fixes
191  */
192 const char* apzAaa_Bad_FixesPatch[] = {
193     (char*)NULL };
194
195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
196  *
197  *  Description of Aaa_Time fix
198  */
199 #define AAA_TIME_FIXIDX                  5
200 tSCC zAaa_TimeName[] =
201      "AAA_time";
202
203 /*
204  *  File name selection pattern
205  */
206 tSCC zAaa_TimeList[] =
207   "|sys/time.h|";
208 /*
209  *  Machine/OS name selection pattern
210  */
211 #define apzAaa_TimeMachs (const char**)NULL
212
213 /*
214  *  content selection pattern - do fix if pattern found
215  */
216 tSCC zAaa_TimeSelect0[] =
217        "11.0 and later representation of ki time";
218
219 #define    AAA_TIME_TEST_CT  1
220 tTestDesc aAaa_TimeTests[] = {
221   { TT_EGREP,    zAaa_TimeSelect0, (regex_t*)NULL }, };
222
223 /*
224  *  Fix Command Arguments for Aaa_Time
225  */
226 const char* apzAaa_TimePatch[] = {
227     (char*)NULL };
228
229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
230  *
231  *  Description of Aab_Dgux_Int_Varargs fix
232  */
233 #define AAB_DGUX_INT_VARARGS_FIXIDX      6
234 tSCC zAab_Dgux_Int_VarargsName[] =
235      "AAB_dgux_int_varargs";
236
237 /*
238  *  File name selection pattern
239  */
240 tSCC zAab_Dgux_Int_VarargsList[] =
241   "|_int_varargs.h|";
242 /*
243  *  Machine/OS name selection pattern
244  */
245 #define apzAab_Dgux_Int_VarargsMachs (const char**)NULL
246 #define AAB_DGUX_INT_VARARGS_TEST_CT  0
247 #define aAab_Dgux_Int_VarargsTests   (tTestDesc*)NULL
248
249 /*
250  *  Fix Command Arguments for Aab_Dgux_Int_Varargs
251  */
252 const char* apzAab_Dgux_Int_VarargsPatch[] = {
253 "#ifndef __INT_VARARGS_H\n\
254 #define __INT_VARARGS_H\n\
255 \n\
256 /************************************************************************/\n\
257 /* _INT_VARARGS.H - Define the common stuff for varargs/stdarg/stdio.   */\n\
258 /************************************************************************/\n\
259 \n\
260 /*\n\
261 ** This file is a DG internal header.  Never include this\n\
262 ** file directly.\n\
263 */\n\
264 \n\
265 #ifndef ___int_features_h\n\
266 #include <sys/_int_features.h>\n\
267 #endif\n\
268 \n\
269 #if !(defined(_VA_LIST) || defined(_VA_LIST_))\n\
270 #define _VA_LIST\n\
271 #define _VA_LIST_\n\
272 \n\
273 #ifdef __LINT__\n\
274 \n\
275 #ifdef __STDC__\n\
276 typedef void * va_list;\n\
277 #else\n\
278 typedef char * va_list;\n\
279 #endif\n\
280 \n\
281 #else\n\
282 #if _M88K_ANY\n\
283 \n\
284 #if defined(__DCC__)\n\
285 \n\
286 typedef struct {\n\
287       int     next_arg;\n\
288       int     *mem_ptr;\n\
289       int     *reg_ptr;\n\
290 } va_list;\n\
291 \n\
292 #else  /* ! defined(__DCC__) */\n\
293 \n\
294 typedef struct {\n\
295       int  __va_arg;       /* argument number */\n\
296       int *__va_stk;       /* start of args passed on stack */\n\
297       int *__va_reg;       /* start of args passed in regs */\n\
298 } va_list;\n\
299 \n\
300 #endif  /* ! defined(__DCC__) */\n\
301 \n\
302 #elif _IX86_ANY\n\
303 \n\
304 #if defined(__GNUC__) || defined(__STDC__)\n\
305 typedef void * va_list;\n\
306 #else\n\
307 typedef char * va_list;\n\
308 #endif\n\
309 \n\
310 #endif  /*  _IX86_ANY */\n\
311 \n\
312 #endif /* __LINT__ */\n\
313 #endif /*  !(defined(_VA_LIST) || defined(_VA_LIST_)) */\n\
314 #endif /*  #ifndef __INT_VARARGS_H  */\n",
315     (char*)NULL };
316
317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
318  *
319  *  Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
320  */
321 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX 7
322 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
323      "AAB_fd_zero_asm_posix_types_h";
324
325 /*
326  *  File name selection pattern
327  */
328 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
329   "|asm/posix_types.h|";
330 /*
331  *  Machine/OS name selection pattern
332  */
333 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
334         "i[34567]86-*-linux-gnu*",
335         (const char*)NULL };
336
337 /*
338  *  content bypass pattern - skip fix if pattern found
339  */
340 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
341        "} while";
342
343 #define    AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT  1
344 tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
345   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
346
347 /*
348  *  Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
349  */
350 const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
351 "/* This file fixes a bug in the __FD_ZERO macro\n\
352    for older versions of the Linux kernel. */\n\
353 #ifndef _POSIX_TYPES_H_WRAPPER\n\
354 #include <features.h>\n\
355  #include_next <asm/posix_types.h>\n\
356 \n\
357 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
358 #undef __FD_ZERO\n\
359 #define __FD_ZERO(fdsetp) \\\n\
360   do { \\\n\
361     int __d0, __d1; \\\n\
362 \t\t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
363 \t\t\t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
364 \t\t\t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
365 \t\t\t  \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
366   } while (0)\n\
367 #endif\n\
368 \n\
369 #define _POSIX_TYPES_H_WRAPPER\n\
370 #endif /* _POSIX_TYPES_H_WRAPPER */\n",
371     (char*)NULL };
372
373 /* * * * * * * * * * * * * * * * * * * * * * * * * *
374  *
375  *  Description of Aab_Fd_Zero_Gnu_Types_H fix
376  */
377 #define AAB_FD_ZERO_GNU_TYPES_H_FIXIDX   8
378 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
379      "AAB_fd_zero_gnu_types_h";
380
381 /*
382  *  File name selection pattern
383  */
384 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
385   "|gnu/types.h|";
386 /*
387  *  Machine/OS name selection pattern
388  */
389 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
390         "i[34567]86-*-linux-gnu*",
391         (const char*)NULL };
392 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT  0
393 #define aAab_Fd_Zero_Gnu_Types_HTests   (tTestDesc*)NULL
394
395 /*
396  *  Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
397  */
398 const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
399 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
400 #ifndef _TYPES_H_WRAPPER\n\
401 #include <features.h>\n\
402  #include_next <gnu/types.h>\n\
403 \n\
404 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
405 #undef __FD_ZERO\n\
406 # define __FD_ZERO(fdsetp) \\\n\
407   do { \\\n\
408     int __d0, __d1; \\\n\
409 \t__asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
410         \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
411         \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
412 \t\t  \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
413   } while (0)\n\
414 #endif\n\
415 \n\
416 #define _TYPES_H_WRAPPER\n\
417 #endif /* _TYPES_H_WRAPPER */\n",
418     (char*)NULL };
419
420 /* * * * * * * * * * * * * * * * * * * * * * * * * *
421  *
422  *  Description of Aab_Fd_Zero_Selectbits_H fix
423  */
424 #define AAB_FD_ZERO_SELECTBITS_H_FIXIDX  9
425 tSCC zAab_Fd_Zero_Selectbits_HName[] =
426      "AAB_fd_zero_selectbits_h";
427
428 /*
429  *  File name selection pattern
430  */
431 tSCC zAab_Fd_Zero_Selectbits_HList[] =
432   "|selectbits.h|";
433 /*
434  *  Machine/OS name selection pattern
435  */
436 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
437         "i[34567]86-*-linux-gnu*",
438         (const char*)NULL };
439 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT  0
440 #define aAab_Fd_Zero_Selectbits_HTests   (tTestDesc*)NULL
441
442 /*
443  *  Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
444  */
445 const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
446 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
447 #ifndef _SELECTBITS_H_WRAPPER\n\
448 #include <features.h>\n\
449  #include_next <selectbits.h>\n\
450 \n\
451 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\n\
452 \t&& defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\n\
453 \t&& __GLIBC_MINOR__ == 0\n\
454 #undef __FD_ZERO\n\
455 #define __FD_ZERO(fdsetp) \\\n\
456   do { \\\n\
457     int __d0, __d1; \\\n\
458   __asm__ __volatile__ (\"cld; rep; stosl\" \\\n\
459                         : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
460                         : \"a\" (0), \"0\" (sizeof (__fd_set) \\\n\
461                                         / sizeof (__fd_mask)), \\\n\
462                           \"1\" ((__fd_mask *) (fdsetp)) \\\n\
463                         : \"memory\"); \\\n\
464   } while (0)\n\
465 #endif\n\
466 \n\
467 #define _SELECTBITS_H_WRAPPER\n\
468 #endif /* _SELECTBITS_H_WRAPPER */\n",
469     (char*)NULL };
470
471 /* * * * * * * * * * * * * * * * * * * * * * * * * *
472  *
473  *  Description of Aab_Sun_Memcpy fix
474  */
475 #define AAB_SUN_MEMCPY_FIXIDX            10
476 tSCC zAab_Sun_MemcpyName[] =
477      "AAB_sun_memcpy";
478
479 /*
480  *  File name selection pattern
481  */
482 tSCC zAab_Sun_MemcpyList[] =
483   "|memory.h|";
484 /*
485  *  Machine/OS name selection pattern
486  */
487 #define apzAab_Sun_MemcpyMachs (const char**)NULL
488
489 /*
490  *  content selection pattern - do fix if pattern found
491  */
492 tSCC zAab_Sun_MemcpySelect0[] =
493        "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
494
495 #define    AAB_SUN_MEMCPY_TEST_CT  1
496 tTestDesc aAab_Sun_MemcpyTests[] = {
497   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
498
499 /*
500  *  Fix Command Arguments for Aab_Sun_Memcpy
501  */
502 const char* apzAab_Sun_MemcpyPatch[] = {
503 "/* This file was generated by fixincludes */\n\
504 #ifndef __memory_h__\n\
505 #define __memory_h__\n\
506 \n\
507 #ifdef __STDC__\n\
508 extern void *memccpy();\n\
509 extern void *memchr();\n\
510 extern void *memcpy();\n\
511 extern void *memset();\n\
512 #else\n\
513 extern char *memccpy();\n\
514 extern char *memchr();\n\
515 extern char *memcpy();\n\
516 extern char *memset();\n\
517 #endif /* __STDC__ */\n\
518 \n\
519 extern int memcmp();\n\
520 \n\
521 #endif /* __memory_h__ */\n",
522     (char*)NULL };
523
524 /* * * * * * * * * * * * * * * * * * * * * * * * * *
525  *
526  *  Description of Aab_Svr4_Replace_Byteorder fix
527  */
528 #define AAB_SVR4_REPLACE_BYTEORDER_FIXIDX 11
529 tSCC zAab_Svr4_Replace_ByteorderName[] =
530      "AAB_svr4_replace_byteorder";
531
532 /*
533  *  File name selection pattern
534  */
535 tSCC zAab_Svr4_Replace_ByteorderList[] =
536   "|sys/byteorder.h|";
537 /*
538  *  Machine/OS name selection pattern
539  */
540 tSCC* apzAab_Svr4_Replace_ByteorderMachs[] = {
541         "*-*-sysv4*",
542         "i[34567]86-*-sysv5*",
543         "i[34567]86-*-udk*",
544         "i[34567]86-*-solaris2.[0-4]",
545         "powerpcle-*-solaris2.[0-4]",
546         "sparc-*-solaris2.[0-4]",
547         (const char*)NULL };
548 #define AAB_SVR4_REPLACE_BYTEORDER_TEST_CT  0
549 #define aAab_Svr4_Replace_ByteorderTests   (tTestDesc*)NULL
550
551 /*
552  *  Fix Command Arguments for Aab_Svr4_Replace_Byteorder
553  */
554 const char* apzAab_Svr4_Replace_ByteorderPatch[] = {
555 "#ifndef _SYS_BYTEORDER_H\n\
556 #define _SYS_BYTEORDER_H\n\
557 \n\
558 /* Functions to convert `short' and `long' quantities from host byte order\n\
559    to (internet) network byte order (i.e. big-endian).\n\
560 \n\
561    Written by Ron Guilmette (rfg@ncd.com).\n\
562 \n\
563    This isn't actually used by GCC.  It is installed by fixinc.svr4.\n\
564 \n\
565    For big-endian machines these functions are essentially no-ops.\n\
566 \n\
567    For little-endian machines, we define the functions using specialized\n\
568    asm sequences in cases where doing so yields better code (e.g. i386).  */\n\
569 \n\
570 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
571 #error You lose!  This file is only useful with GNU compilers.\n\
572 #endif\n\
573 \n\
574 #ifndef __BYTE_ORDER__\n\
575 /* Byte order defines.  These are as defined on UnixWare 1.1, but with\n\
576    double underscores added at the front and back.  */\n\
577 #define __LITTLE_ENDIAN__   1234\n\
578 #define __BIG_ENDIAN__      4321\n\
579 #define __PDP_ENDIAN__      3412\n\
580 #endif\n\
581 \n\
582 #ifdef __STDC__\n\
583 static __inline__ unsigned long htonl (unsigned long);\n\
584 static __inline__ unsigned short htons (unsigned int);\n\
585 static __inline__ unsigned long ntohl (unsigned long);\n\
586 static __inline__ unsigned short ntohs (unsigned int);\n\
587 #endif /* defined (__STDC__) */\n\
588 \n\
589 #if defined (__i386__)\n\
590 \n\
591 #ifndef __BYTE_ORDER__\n\
592 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
593 #endif\n\
594 \n\
595 /* Convert a host long to a network long.  */\n\
596 \n\
597 /* We must use a new-style function definition, so that this will also\n\
598    be valid for C++.  */\n\
599 static __inline__ unsigned long\n\
600 htonl (unsigned long __arg)\n\
601 {\n\
602   register unsigned long __result;\n\
603 \n\
604   __asm__ (\"xchg%B0 %b0,%h0\n\
605 \tror%L0 $16,%0\n\
606 \txchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
607   return __result;\n\
608 }\n\
609 \n\
610 /* Convert a host short to a network short.  */\n\
611 \n\
612 static __inline__ unsigned short\n\
613 htons (unsigned int __arg)\n\
614 {\n\
615   register unsigned short __result;\n\
616 \n\
617   __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
618   return __result;\n\
619 }\n\
620 \n\
621 #elif ((defined (__i860__) && !defined (__i860_big_endian__))\t\\\n\
622        || defined (__ns32k__) || defined (__vax__)\t\t\\\n\
623        || defined (__spur__) || defined (__arm__))\n\
624 \n\
625 #ifndef __BYTE_ORDER__\n\
626 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
627 #endif\n\
628 \n\
629 /* For other little-endian machines, using C code is just as efficient as\n\
630    using assembly code.  */\n\
631 \n\
632 /* Convert a host long to a network long.  */\n\
633 \n\
634 static __inline__ unsigned long\n\
635 htonl (unsigned long __arg)\n\
636 {\n\
637   register unsigned long __result;\n\
638 \n\
639   __result = (__arg >> 24) & 0x000000ff;\n\
640   __result |= (__arg >> 8) & 0x0000ff00;\n\
641   __result |= (__arg << 8) & 0x00ff0000;\n\
642   __result |= (__arg << 24) & 0xff000000;\n\
643   return __result;\n\
644 }\n\
645 \n\
646 /* Convert a host short to a network short.  */\n\
647 \n\
648 static __inline__ unsigned short\n\
649 htons (unsigned int __arg)\n\
650 {\n\
651   register unsigned short __result;\n\
652 \n\
653   __result = (__arg << 8) & 0xff00;\n\
654   __result |= (__arg >> 8) & 0x00ff;\n\
655   return __result;\n\
656 }\n\
657 \n\
658 #else /* must be a big-endian machine */\n\
659 \n\
660 #ifndef __BYTE_ORDER__\n\
661 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
662 #endif\n\
663 \n\
664 /* Convert a host long to a network long.  */\n\
665 \n\
666 static __inline__ unsigned long\n\
667 htonl (unsigned long __arg)\n\
668 {\n\
669   return __arg;\n\
670 }\n\
671 \n\
672 /* Convert a host short to a network short.  */\n\
673 \n\
674 static __inline__ unsigned short\n\
675 htons (unsigned int __arg)\n\
676 {\n\
677   return __arg;\n\
678 }\n\
679 \n\
680 #endif /* big-endian */\n\
681 \n\
682 /* Convert a network long to a host long.  */\n\
683 \n\
684 static __inline__ unsigned long\n\
685 ntohl (unsigned long __arg)\n\
686 {\n\
687   return htonl (__arg);\n\
688 }\n\
689 \n\
690 /* Convert a network short to a host short.  */\n\
691 \n\
692 static __inline__ unsigned short\n\
693 ntohs (unsigned int __arg)\n\
694 {\n\
695   return htons (__arg);\n\
696 }\n\
697 #endif\n",
698     (char*)NULL };
699
700 /* * * * * * * * * * * * * * * * * * * * * * * * * *
701  *
702  *  Description of Aab_Ultrix_Ansi_Compat fix
703  */
704 #define AAB_ULTRIX_ANSI_COMPAT_FIXIDX    12
705 tSCC zAab_Ultrix_Ansi_CompatName[] =
706      "AAB_ultrix_ansi_compat";
707
708 /*
709  *  File name selection pattern
710  */
711 tSCC zAab_Ultrix_Ansi_CompatList[] =
712   "|ansi_compat.h|";
713 /*
714  *  Machine/OS name selection pattern
715  */
716 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
717
718 /*
719  *  content selection pattern - do fix if pattern found
720  */
721 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
722        "ULTRIX";
723
724 #define    AAB_ULTRIX_ANSI_COMPAT_TEST_CT  1
725 tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
726   { TT_EGREP,    zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
727
728 /*
729  *  Fix Command Arguments for Aab_Ultrix_Ansi_Compat
730  */
731 const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
732 "/* This file intentionally left blank.  */\n",
733     (char*)NULL };
734
735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
736  *
737  *  Description of Aab_Ultrix_Limits fix
738  */
739 #define AAB_ULTRIX_LIMITS_FIXIDX         13
740 tSCC zAab_Ultrix_LimitsName[] =
741      "AAB_ultrix_limits";
742
743 /*
744  *  File name selection pattern
745  */
746 tSCC zAab_Ultrix_LimitsList[] =
747   "|limits.h|";
748 /*
749  *  Machine/OS name selection pattern
750  */
751 tSCC* apzAab_Ultrix_LimitsMachs[] = {
752         "*-*-ultrix4.3",
753         (const char*)NULL };
754 #define AAB_ULTRIX_LIMITS_TEST_CT  0
755 #define aAab_Ultrix_LimitsTests   (tTestDesc*)NULL
756
757 /*
758  *  Fix Command Arguments for Aab_Ultrix_Limits
759  */
760 const char* apzAab_Ultrix_LimitsPatch[] = {
761 "/*\t@(#)limits.h\t\t\t\t*/\n\
762 /* This file was generated by fixincludes\t*/\n\
763 #ifndef _LIMITS_INCLUDED\n\
764 #define _LIMITS_INCLUDED\n\
765 #include <sys/limits.h>\n\
766 #endif /* _LIMITS_INCLUDED */\n",
767     (char*)NULL };
768
769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
770  *
771  *  Description of Aab_Ultrix_Memory fix
772  */
773 #define AAB_ULTRIX_MEMORY_FIXIDX         14
774 tSCC zAab_Ultrix_MemoryName[] =
775      "AAB_ultrix_memory";
776
777 /*
778  *  File name selection pattern
779  */
780 tSCC zAab_Ultrix_MemoryList[] =
781   "|memory.h|";
782 /*
783  *  Machine/OS name selection pattern
784  */
785 tSCC* apzAab_Ultrix_MemoryMachs[] = {
786         "*-*-ultrix4.3",
787         (const char*)NULL };
788 #define AAB_ULTRIX_MEMORY_TEST_CT  0
789 #define aAab_Ultrix_MemoryTests   (tTestDesc*)NULL
790
791 /*
792  *  Fix Command Arguments for Aab_Ultrix_Memory
793  */
794 const char* apzAab_Ultrix_MemoryPatch[] = {
795 "/*\t@(#)memory.h\t\t\t\t*/\n\
796 /* This file was generated by fixincludes\t*/\n\
797 #ifndef _MEMORY_INCLUDED\n\
798 #define _MEMORY_INCLUDED\n\
799 #include <strings.h>\n\
800 #endif /* _MEMORY_INCLUDED */\n",
801     (char*)NULL };
802
803 /* * * * * * * * * * * * * * * * * * * * * * * * * *
804  *
805  *  Description of Aab_Ultrix_String fix
806  */
807 #define AAB_ULTRIX_STRING_FIXIDX         15
808 tSCC zAab_Ultrix_StringName[] =
809      "AAB_ultrix_string";
810
811 /*
812  *  File name selection pattern
813  */
814 tSCC zAab_Ultrix_StringList[] =
815   "|string.h|";
816 /*
817  *  Machine/OS name selection pattern
818  */
819 tSCC* apzAab_Ultrix_StringMachs[] = {
820         "*-*-ultrix4.3",
821         (const char*)NULL };
822 #define AAB_ULTRIX_STRING_TEST_CT  0
823 #define aAab_Ultrix_StringTests   (tTestDesc*)NULL
824
825 /*
826  *  Fix Command Arguments for Aab_Ultrix_String
827  */
828 const char* apzAab_Ultrix_StringPatch[] = {
829 "/*\t@(#)string.h\t\t\t\t*/\n\
830 /* This file was generated by fixincludes\t*/\n\
831 #ifndef _STRING_INCLUDED\n\
832 #define _STRING_INCLUDED\n\
833 #include <strings.h>\n\
834 #endif /* _STRING_INCLUDED */\n",
835     (char*)NULL };
836
837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
838  *
839  *  Description of Aix_Syswait fix
840  */
841 #define AIX_SYSWAIT_FIXIDX               16
842 tSCC zAix_SyswaitName[] =
843      "aix_syswait";
844
845 /*
846  *  File name selection pattern
847  */
848 tSCC zAix_SyswaitList[] =
849   "|sys/wait.h|";
850 /*
851  *  Machine/OS name selection pattern
852  */
853 #define apzAix_SyswaitMachs (const char**)NULL
854
855 /*
856  *  content selection pattern - do fix if pattern found
857  */
858 tSCC zAix_SyswaitSelect0[] =
859        "^extern pid_t wait3\\(\\);\n";
860 tSCC zAix_SyswaitSelect1[] =
861        "bos325,";
862
863 #define    AIX_SYSWAIT_TEST_CT  2
864 tTestDesc aAix_SyswaitTests[] = {
865   { TT_EGREP,    zAix_SyswaitSelect0, (regex_t*)NULL },
866   { TT_EGREP,    zAix_SyswaitSelect1, (regex_t*)NULL }, };
867
868 /*
869  *  Fix Command Arguments for Aix_Syswait
870  */
871 const char* apzAix_SyswaitPatch[] = {
872     "format",
873     "struct rusage;\n\
874 %0",
875     (char*)NULL };
876
877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
878  *
879  *  Description of Aix_Volatile fix
880  */
881 #define AIX_VOLATILE_FIXIDX              17
882 tSCC zAix_VolatileName[] =
883      "aix_volatile";
884
885 /*
886  *  File name selection pattern
887  */
888 tSCC zAix_VolatileList[] =
889   "|sys/signal.h|";
890 /*
891  *  Machine/OS name selection pattern
892  */
893 #define apzAix_VolatileMachs (const char**)NULL
894
895 /*
896  *  content selection pattern - do fix if pattern found
897  */
898 tSCC zAix_VolatileSelect0[] =
899        "typedef volatile int sig_atomic_t";
900
901 #define    AIX_VOLATILE_TEST_CT  1
902 tTestDesc aAix_VolatileTests[] = {
903   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
904
905 /*
906  *  Fix Command Arguments for Aix_Volatile
907  */
908 const char* apzAix_VolatilePatch[] = {
909     "format",
910     "typedef int sig_atomic_t",
911     (char*)NULL };
912
913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
914  *
915  *  Description of Alpha_Getopt fix
916  */
917 #define ALPHA_GETOPT_FIXIDX              18
918 tSCC zAlpha_GetoptName[] =
919      "alpha_getopt";
920
921 /*
922  *  File name selection pattern
923  */
924 tSCC zAlpha_GetoptList[] =
925   "|stdio.h|stdlib.h|";
926 /*
927  *  Machine/OS name selection pattern
928  */
929 #define apzAlpha_GetoptMachs (const char**)NULL
930
931 /*
932  *  content selection pattern - do fix if pattern found
933  */
934 tSCC zAlpha_GetoptSelect0[] =
935        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
936
937 #define    ALPHA_GETOPT_TEST_CT  1
938 tTestDesc aAlpha_GetoptTests[] = {
939   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
940
941 /*
942  *  Fix Command Arguments for Alpha_Getopt
943  */
944 const char* apzAlpha_GetoptPatch[] = {
945     "format",
946     "getopt(int, char *const[], const char *)",
947     (char*)NULL };
948
949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
950  *
951  *  Description of Alpha_Parens fix
952  */
953 #define ALPHA_PARENS_FIXIDX              19
954 tSCC zAlpha_ParensName[] =
955      "alpha_parens";
956
957 /*
958  *  File name selection pattern
959  */
960 tSCC zAlpha_ParensList[] =
961   "|sym.h|";
962 /*
963  *  Machine/OS name selection pattern
964  */
965 #define apzAlpha_ParensMachs (const char**)NULL
966
967 /*
968  *  content selection pattern - do fix if pattern found
969  */
970 tSCC zAlpha_ParensSelect0[] =
971        "#ifndef\\(__mips64\\)";
972
973 #define    ALPHA_PARENS_TEST_CT  1
974 tTestDesc aAlpha_ParensTests[] = {
975   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
976
977 /*
978  *  Fix Command Arguments for Alpha_Parens
979  */
980 const char* apzAlpha_ParensPatch[] = {
981     "format",
982     "#ifndef __mips64",
983     (char*)NULL };
984
985 /* * * * * * * * * * * * * * * * * * * * * * * * * *
986  *
987  *  Description of Alpha_Sbrk fix
988  */
989 #define ALPHA_SBRK_FIXIDX                20
990 tSCC zAlpha_SbrkName[] =
991      "alpha_sbrk";
992
993 /*
994  *  File name selection pattern
995  */
996 tSCC zAlpha_SbrkList[] =
997   "|unistd.h|";
998 /*
999  *  Machine/OS name selection pattern
1000  */
1001 #define apzAlpha_SbrkMachs (const char**)NULL
1002
1003 /*
1004  *  content selection pattern - do fix if pattern found
1005  */
1006 tSCC zAlpha_SbrkSelect0[] =
1007        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1008
1009 #define    ALPHA_SBRK_TEST_CT  1
1010 tTestDesc aAlpha_SbrkTests[] = {
1011   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1012
1013 /*
1014  *  Fix Command Arguments for Alpha_Sbrk
1015  */
1016 const char* apzAlpha_SbrkPatch[] = {
1017     "format",
1018     "void *sbrk(",
1019     (char*)NULL };
1020
1021 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1022  *
1023  *  Description of Arm_Norcroft_Hint fix
1024  */
1025 #define ARM_NORCROFT_HINT_FIXIDX         21
1026 tSCC zArm_Norcroft_HintName[] =
1027      "arm_norcroft_hint";
1028
1029 /*
1030  *  File name selection pattern
1031  */
1032 tSCC zArm_Norcroft_HintList[] =
1033   "|X11/Intrinsic.h|";
1034 /*
1035  *  Machine/OS name selection pattern
1036  */
1037 #define apzArm_Norcroft_HintMachs (const char**)NULL
1038
1039 /*
1040  *  content selection pattern - do fix if pattern found
1041  */
1042 tSCC zArm_Norcroft_HintSelect0[] =
1043        "___type p_type";
1044
1045 #define    ARM_NORCROFT_HINT_TEST_CT  1
1046 tTestDesc aArm_Norcroft_HintTests[] = {
1047   { TT_EGREP,    zArm_Norcroft_HintSelect0, (regex_t*)NULL }, };
1048
1049 /*
1050  *  Fix Command Arguments for Arm_Norcroft_Hint
1051  */
1052 const char* apzArm_Norcroft_HintPatch[] = {
1053     "format",
1054     "p_type",
1055     (char*)NULL };
1056
1057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1058  *
1059  *  Description of Arm_Wchar fix
1060  */
1061 #define ARM_WCHAR_FIXIDX                 22
1062 tSCC zArm_WcharName[] =
1063      "arm_wchar";
1064
1065 /*
1066  *  File name selection pattern
1067  */
1068 tSCC zArm_WcharList[] =
1069   "|stdlib.h|";
1070 /*
1071  *  Machine/OS name selection pattern
1072  */
1073 #define apzArm_WcharMachs (const char**)NULL
1074
1075 /*
1076  *  content selection pattern - do fix if pattern found
1077  */
1078 tSCC zArm_WcharSelect0[] =
1079        "#[ \t]*define[ \t]*__wchar_t";
1080
1081 #define    ARM_WCHAR_TEST_CT  1
1082 tTestDesc aArm_WcharTests[] = {
1083   { TT_EGREP,    zArm_WcharSelect0, (regex_t*)NULL }, };
1084
1085 /*
1086  *  Fix Command Arguments for Arm_Wchar
1087  */
1088 const char* apzArm_WcharPatch[] = {
1089     "format",
1090     "%1_GCC_WCHAR_T",
1091     "(#[ \t]*(ifndef|define)[ \t]+)__wchar_t",
1092     (char*)NULL };
1093
1094 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1095  *
1096  *  Description of Aux_Asm fix
1097  */
1098 #define AUX_ASM_FIXIDX                   23
1099 tSCC zAux_AsmName[] =
1100      "aux_asm";
1101
1102 /*
1103  *  File name selection pattern
1104  */
1105 tSCC zAux_AsmList[] =
1106   "|sys/param.h|";
1107 /*
1108  *  Machine/OS name selection pattern
1109  */
1110 #define apzAux_AsmMachs (const char**)NULL
1111
1112 /*
1113  *  content selection pattern - do fix if pattern found
1114  */
1115 tSCC zAux_AsmSelect0[] =
1116        "#ifndef NOINLINE";
1117
1118 #define    AUX_ASM_TEST_CT  1
1119 tTestDesc aAux_AsmTests[] = {
1120   { TT_EGREP,    zAux_AsmSelect0, (regex_t*)NULL }, };
1121
1122 /*
1123  *  Fix Command Arguments for Aux_Asm
1124  */
1125 const char* apzAux_AsmPatch[] = {
1126     "format",
1127     "#if !defined(NOINLINE) && !defined(__GNUC__)",
1128     (char*)NULL };
1129
1130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1131  *
1132  *  Description of Avoid_Bool_Define fix
1133  */
1134 #define AVOID_BOOL_DEFINE_FIXIDX         24
1135 tSCC zAvoid_Bool_DefineName[] =
1136      "avoid_bool_define";
1137
1138 /*
1139  *  File name selection pattern
1140  */
1141 tSCC zAvoid_Bool_DefineList[] =
1142   "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1143 /*
1144  *  Machine/OS name selection pattern
1145  */
1146 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1147
1148 /*
1149  *  content selection pattern - do fix if pattern found
1150  */
1151 tSCC zAvoid_Bool_DefineSelect0[] =
1152        "#[ \t]*define[ \t]+bool[ \t]";
1153
1154 /*
1155  *  content bypass pattern - skip fix if pattern found
1156  */
1157 tSCC zAvoid_Bool_DefineBypass0[] =
1158        "we must use the C\\+\\+ compiler's type";
1159
1160 #define    AVOID_BOOL_DEFINE_TEST_CT  2
1161 tTestDesc aAvoid_Bool_DefineTests[] = {
1162   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1163   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1164
1165 /*
1166  *  Fix Command Arguments for Avoid_Bool_Define
1167  */
1168 const char* apzAvoid_Bool_DefinePatch[] = {
1169     "format",
1170     "#ifndef __cplusplus\n\
1171 %0\n\
1172 #endif",
1173     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1174     (char*)NULL };
1175
1176 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1177  *
1178  *  Description of Avoid_Bool_Type fix
1179  */
1180 #define AVOID_BOOL_TYPE_FIXIDX           25
1181 tSCC zAvoid_Bool_TypeName[] =
1182      "avoid_bool_type";
1183
1184 /*
1185  *  File name selection pattern
1186  */
1187 tSCC zAvoid_Bool_TypeList[] =
1188   "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1189 /*
1190  *  Machine/OS name selection pattern
1191  */
1192 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1193
1194 /*
1195  *  content selection pattern - do fix if pattern found
1196  */
1197 tSCC zAvoid_Bool_TypeSelect0[] =
1198        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1199
1200 /*
1201  *  content bypass pattern - skip fix if pattern found
1202  */
1203 tSCC zAvoid_Bool_TypeBypass0[] =
1204        "we must use the C\\+\\+ compiler's type";
1205
1206 #define    AVOID_BOOL_TYPE_TEST_CT  2
1207 tTestDesc aAvoid_Bool_TypeTests[] = {
1208   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1209   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1210
1211 /*
1212  *  Fix Command Arguments for Avoid_Bool_Type
1213  */
1214 const char* apzAvoid_Bool_TypePatch[] = {
1215     "format",
1216     "#ifndef __cplusplus\n\
1217 %0\n\
1218 #endif",
1219     "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;.*",
1220     (char*)NULL };
1221
1222 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1223  *
1224  *  Description of Bad_Lval fix
1225  */
1226 #define BAD_LVAL_FIXIDX                  26
1227 tSCC zBad_LvalName[] =
1228      "bad_lval";
1229
1230 /*
1231  *  File name selection pattern
1232  */
1233 tSCC zBad_LvalList[] =
1234   "|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|";
1235 /*
1236  *  Machine/OS name selection pattern
1237  */
1238 #define apzBad_LvalMachs (const char**)NULL
1239
1240 /*
1241  *  content selection pattern - do fix if pattern found
1242  */
1243 tSCC zBad_LvalSelect0[] =
1244        "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1245
1246 #define    BAD_LVAL_TEST_CT  1
1247 tTestDesc aBad_LvalTests[] = {
1248   { TT_EGREP,    zBad_LvalSelect0, (regex_t*)NULL }, };
1249
1250 /*
1251  *  Fix Command Arguments for Bad_Lval
1252  */
1253 const char* apzBad_LvalPatch[] = { "sed",
1254     "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1255     (char*)NULL };
1256
1257 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1258  *
1259  *  Description of Bad_Struct_Term fix
1260  */
1261 #define BAD_STRUCT_TERM_FIXIDX           27
1262 tSCC zBad_Struct_TermName[] =
1263      "bad_struct_term";
1264
1265 /*
1266  *  File name selection pattern
1267  */
1268 tSCC zBad_Struct_TermList[] =
1269   "|curses.h|";
1270 /*
1271  *  Machine/OS name selection pattern
1272  */
1273 #define apzBad_Struct_TermMachs (const char**)NULL
1274
1275 /*
1276  *  content selection pattern - do fix if pattern found
1277  */
1278 tSCC zBad_Struct_TermSelect0[] =
1279        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1280
1281 #define    BAD_STRUCT_TERM_TEST_CT  1
1282 tTestDesc aBad_Struct_TermTests[] = {
1283   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1284
1285 /*
1286  *  Fix Command Arguments for Bad_Struct_Term
1287  */
1288 const char* apzBad_Struct_TermPatch[] = {
1289     "format",
1290     "struct term;",
1291     (char*)NULL };
1292
1293 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1294  *
1295  *  Description of Badquote fix
1296  */
1297 #define BADQUOTE_FIXIDX                  28
1298 tSCC zBadquoteName[] =
1299      "badquote";
1300
1301 /*
1302  *  File name selection pattern
1303  */
1304 tSCC zBadquoteList[] =
1305   "|sundev/vuid_event.h|";
1306 /*
1307  *  Machine/OS name selection pattern
1308  */
1309 #define apzBadquoteMachs (const char**)NULL
1310
1311 /*
1312  *  content selection pattern - do fix if pattern found
1313  */
1314 tSCC zBadquoteSelect0[] =
1315        "doesn't";
1316
1317 #define    BADQUOTE_TEST_CT  1
1318 tTestDesc aBadquoteTests[] = {
1319   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
1320
1321 /*
1322  *  Fix Command Arguments for Badquote
1323  */
1324 const char* apzBadquotePatch[] = {
1325     "format",
1326     "does not",
1327     (char*)NULL };
1328
1329 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1330  *
1331  *  Description of Broken_Assert_Stdio fix
1332  */
1333 #define BROKEN_ASSERT_STDIO_FIXIDX       29
1334 tSCC zBroken_Assert_StdioName[] =
1335      "broken_assert_stdio";
1336
1337 /*
1338  *  File name selection pattern
1339  */
1340 tSCC zBroken_Assert_StdioList[] =
1341   "|assert.h|";
1342 /*
1343  *  Machine/OS name selection pattern
1344  */
1345 #define apzBroken_Assert_StdioMachs (const char**)NULL
1346
1347 /*
1348  *  content selection pattern - do fix if pattern found
1349  */
1350 tSCC zBroken_Assert_StdioSelect0[] =
1351        "stderr";
1352
1353 /*
1354  *  content bypass pattern - skip fix if pattern found
1355  */
1356 tSCC zBroken_Assert_StdioBypass0[] =
1357        "include.*stdio\\.h";
1358
1359 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
1360 tTestDesc aBroken_Assert_StdioTests[] = {
1361   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1362   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1363
1364 /*
1365  *  Fix Command Arguments for Broken_Assert_Stdio
1366  */
1367 const char* apzBroken_Assert_StdioPatch[] = {
1368     "wrap",
1369     "#include <stdio.h>\n",
1370     (char*)NULL };
1371
1372 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1373  *
1374  *  Description of Broken_Assert_Stdlib fix
1375  */
1376 #define BROKEN_ASSERT_STDLIB_FIXIDX      30
1377 tSCC zBroken_Assert_StdlibName[] =
1378      "broken_assert_stdlib";
1379
1380 /*
1381  *  File name selection pattern
1382  */
1383 tSCC zBroken_Assert_StdlibList[] =
1384   "|assert.h|";
1385 /*
1386  *  Machine/OS name selection pattern
1387  */
1388 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1389
1390 /*
1391  *  content selection pattern - do fix if pattern found
1392  */
1393 tSCC zBroken_Assert_StdlibSelect0[] =
1394        "exit *\\(|abort *\\(";
1395
1396 /*
1397  *  content bypass pattern - skip fix if pattern found
1398  */
1399 tSCC zBroken_Assert_StdlibBypass0[] =
1400        "include.*stdlib\\.h";
1401
1402 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
1403 tTestDesc aBroken_Assert_StdlibTests[] = {
1404   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1405   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1406
1407 /*
1408  *  Fix Command Arguments for Broken_Assert_Stdlib
1409  */
1410 const char* apzBroken_Assert_StdlibPatch[] = {
1411     "wrap",
1412     "#ifdef __cplusplus\n\
1413 #include <stdlib.h>\n\
1414 #endif\n",
1415     (char*)NULL };
1416
1417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1418  *
1419  *  Description of Broken_Cabs fix
1420  */
1421 #define BROKEN_CABS_FIXIDX               31
1422 tSCC zBroken_CabsName[] =
1423      "broken_cabs";
1424
1425 /*
1426  *  File name selection pattern
1427  */
1428 tSCC zBroken_CabsList[] =
1429   "|math.h|";
1430 /*
1431  *  Machine/OS name selection pattern
1432  */
1433 #define apzBroken_CabsMachs (const char**)NULL
1434
1435 /*
1436  *  content selection pattern - do fix if pattern found
1437  */
1438 tSCC zBroken_CabsSelect0[] =
1439        "^extern double cabs";
1440
1441 #define    BROKEN_CABS_TEST_CT  1
1442 tTestDesc aBroken_CabsTests[] = {
1443   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
1444
1445 /*
1446  *  Fix Command Arguments for Broken_Cabs
1447  */
1448 const char* apzBroken_CabsPatch[] = {
1449     "format",
1450     "",
1451     "^extern double cabs\\((struct dbl_hypot|)\\);",
1452     (char*)NULL };
1453
1454 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1455  *
1456  *  Description of Ctrl_Quotes_Def fix
1457  */
1458 #define CTRL_QUOTES_DEF_FIXIDX           32
1459 tSCC zCtrl_Quotes_DefName[] =
1460      "ctrl_quotes_def";
1461
1462 /*
1463  *  File name selection pattern
1464  */
1465 #define zCtrl_Quotes_DefList (char*)NULL
1466 /*
1467  *  Machine/OS name selection pattern
1468  */
1469 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1470
1471 /*
1472  *  content selection pattern - do fix if pattern found
1473  */
1474 tSCC zCtrl_Quotes_DefSelect0[] =
1475        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1476
1477 #define    CTRL_QUOTES_DEF_TEST_CT  1
1478 tTestDesc aCtrl_Quotes_DefTests[] = {
1479   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1480
1481 /*
1482  *  Fix Command Arguments for Ctrl_Quotes_Def
1483  */
1484 const char* apzCtrl_Quotes_DefPatch[] = {
1485     "char_macro_def",
1486     "CTRL",
1487     (char*)NULL };
1488
1489 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1490  *
1491  *  Description of Ctrl_Quotes_Use fix
1492  */
1493 #define CTRL_QUOTES_USE_FIXIDX           33
1494 tSCC zCtrl_Quotes_UseName[] =
1495      "ctrl_quotes_use";
1496
1497 /*
1498  *  File name selection pattern
1499  */
1500 #define zCtrl_Quotes_UseList (char*)NULL
1501 /*
1502  *  Machine/OS name selection pattern
1503  */
1504 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1505
1506 /*
1507  *  content selection pattern - do fix if pattern found
1508  */
1509 tSCC zCtrl_Quotes_UseSelect0[] =
1510        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1511
1512 #define    CTRL_QUOTES_USE_TEST_CT  1
1513 tTestDesc aCtrl_Quotes_UseTests[] = {
1514   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1515
1516 /*
1517  *  Fix Command Arguments for Ctrl_Quotes_Use
1518  */
1519 const char* apzCtrl_Quotes_UsePatch[] = {
1520     "char_macro_use",
1521     "CTRL",
1522     (char*)NULL };
1523
1524 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1525  *
1526  *  Description of Cxx_Unready fix
1527  */
1528 #define CXX_UNREADY_FIXIDX               34
1529 tSCC zCxx_UnreadyName[] =
1530      "cxx_unready";
1531
1532 /*
1533  *  File name selection pattern
1534  */
1535 tSCC zCxx_UnreadyList[] =
1536   "|sys/mman.h|rpc/types.h|";
1537 /*
1538  *  Machine/OS name selection pattern
1539  */
1540 #define apzCxx_UnreadyMachs (const char**)NULL
1541
1542 /*
1543  *  content selection pattern - do fix if pattern found
1544  */
1545 tSCC zCxx_UnreadySelect0[] =
1546        "[^#]+malloc.*;";
1547
1548 /*
1549  *  content bypass pattern - skip fix if pattern found
1550  */
1551 tSCC zCxx_UnreadyBypass0[] =
1552        "\"C\"|__BEGIN_DECLS";
1553
1554 #define    CXX_UNREADY_TEST_CT  2
1555 tTestDesc aCxx_UnreadyTests[] = {
1556   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
1557   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
1558
1559 /*
1560  *  Fix Command Arguments for Cxx_Unready
1561  */
1562 const char* apzCxx_UnreadyPatch[] = {
1563     "wrap",
1564     "#ifdef __cplusplus\n\
1565 extern \"C\" {\n\
1566 #endif\n",
1567     "#ifdef __cplusplus\n\
1568 }\n\
1569 #endif\n",
1570     (char*)NULL };
1571
1572 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1573  *
1574  *  Description of Dec_Intern_Asm fix
1575  */
1576 #define DEC_INTERN_ASM_FIXIDX            35
1577 tSCC zDec_Intern_AsmName[] =
1578      "dec_intern_asm";
1579
1580 /*
1581  *  File name selection pattern
1582  */
1583 tSCC zDec_Intern_AsmList[] =
1584   "|c_asm.h|";
1585 /*
1586  *  Machine/OS name selection pattern
1587  */
1588 #define apzDec_Intern_AsmMachs (const char**)NULL
1589 #define DEC_INTERN_ASM_TEST_CT  0
1590 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
1591
1592 /*
1593  *  Fix Command Arguments for Dec_Intern_Asm
1594  */
1595 const char* apzDec_Intern_AsmPatch[] = { "sed",
1596     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1597 #ifdef __DECC\n",
1598     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1599 #endif\n",
1600     (char*)NULL };
1601
1602 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1603  *
1604  *  Description of Ecd_Cursor fix
1605  */
1606 #define ECD_CURSOR_FIXIDX                36
1607 tSCC zEcd_CursorName[] =
1608      "ecd_cursor";
1609
1610 /*
1611  *  File name selection pattern
1612  */
1613 tSCC zEcd_CursorList[] =
1614   "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1615 /*
1616  *  Machine/OS name selection pattern
1617  */
1618 #define apzEcd_CursorMachs (const char**)NULL
1619
1620 /*
1621  *  content selection pattern - do fix if pattern found
1622  */
1623 tSCC zEcd_CursorSelect0[] =
1624        "ecd\\.cursor";
1625
1626 #define    ECD_CURSOR_TEST_CT  1
1627 tTestDesc aEcd_CursorTests[] = {
1628   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
1629
1630 /*
1631  *  Fix Command Arguments for Ecd_Cursor
1632  */
1633 const char* apzEcd_CursorPatch[] = {
1634     "format",
1635     "ecd_cursor",
1636     (char*)NULL };
1637
1638 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1639  *
1640  *  Description of Fix_Header_Breakage fix
1641  */
1642 #define FIX_HEADER_BREAKAGE_FIXIDX       37
1643 tSCC zFix_Header_BreakageName[] =
1644      "fix_header_breakage";
1645
1646 /*
1647  *  File name selection pattern
1648  */
1649 tSCC zFix_Header_BreakageList[] =
1650   "|math.h|";
1651 /*
1652  *  Machine/OS name selection pattern
1653  */
1654 tSCC* apzFix_Header_BreakageMachs[] = {
1655         "m88k-motorola-sysv3*",
1656         (const char*)NULL };
1657
1658 /*
1659  *  content selection pattern - do fix if pattern found
1660  */
1661 tSCC zFix_Header_BreakageSelect0[] =
1662        "extern double floor\\(\\), ceil\\(\\), fmod\\(\\), fabs\\(\\);";
1663
1664 #define    FIX_HEADER_BREAKAGE_TEST_CT  1
1665 tTestDesc aFix_Header_BreakageTests[] = {
1666   { TT_EGREP,    zFix_Header_BreakageSelect0, (regex_t*)NULL }, };
1667
1668 /*
1669  *  Fix Command Arguments for Fix_Header_Breakage
1670  */
1671 const char* apzFix_Header_BreakagePatch[] = {
1672     "format",
1673     "extern double floor(), ceil(), fmod(), fabs _PARAMS((double));",
1674     (char*)NULL };
1675
1676 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1677  *
1678  *  Description of Hp_Inline fix
1679  */
1680 #define HP_INLINE_FIXIDX                 38
1681 tSCC zHp_InlineName[] =
1682      "hp_inline";
1683
1684 /*
1685  *  File name selection pattern
1686  */
1687 tSCC zHp_InlineList[] =
1688   "|sys/spinlock.h|machine/machparam.h|";
1689 /*
1690  *  Machine/OS name selection pattern
1691  */
1692 #define apzHp_InlineMachs (const char**)NULL
1693
1694 /*
1695  *  content selection pattern - do fix if pattern found
1696  */
1697 tSCC zHp_InlineSelect0[] =
1698        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1699
1700 #define    HP_INLINE_TEST_CT  1
1701 tTestDesc aHp_InlineTests[] = {
1702   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
1703
1704 /*
1705  *  Fix Command Arguments for Hp_Inline
1706  */
1707 const char* apzHp_InlinePatch[] = {
1708     "format",
1709     "%1<machine/%2.h>",
1710     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
1711     (char*)NULL };
1712
1713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1714  *
1715  *  Description of Hp_Sysfile fix
1716  */
1717 #define HP_SYSFILE_FIXIDX                39
1718 tSCC zHp_SysfileName[] =
1719      "hp_sysfile";
1720
1721 /*
1722  *  File name selection pattern
1723  */
1724 tSCC zHp_SysfileList[] =
1725   "|sys/file.h|";
1726 /*
1727  *  Machine/OS name selection pattern
1728  */
1729 #define apzHp_SysfileMachs (const char**)NULL
1730
1731 /*
1732  *  content selection pattern - do fix if pattern found
1733  */
1734 tSCC zHp_SysfileSelect0[] =
1735        "HPUX_SOURCE";
1736
1737 #define    HP_SYSFILE_TEST_CT  1
1738 tTestDesc aHp_SysfileTests[] = {
1739   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
1740
1741 /*
1742  *  Fix Command Arguments for Hp_Sysfile
1743  */
1744 const char* apzHp_SysfilePatch[] = {
1745     "format",
1746     "(struct file *, ...)",
1747     "\\(\\.\\.\\.\\)",
1748     (char*)NULL };
1749
1750 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1751  *
1752  *  Description of Hpux11_Fabsf fix
1753  */
1754 #define HPUX11_FABSF_FIXIDX              40
1755 tSCC zHpux11_FabsfName[] =
1756      "hpux11_fabsf";
1757
1758 /*
1759  *  File name selection pattern
1760  */
1761 tSCC zHpux11_FabsfList[] =
1762   "|math.h|";
1763 /*
1764  *  Machine/OS name selection pattern
1765  */
1766 #define apzHpux11_FabsfMachs (const char**)NULL
1767
1768 /*
1769  *  content selection pattern - do fix if pattern found
1770  */
1771 tSCC zHpux11_FabsfSelect0[] =
1772        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
1773
1774 /*
1775  *  content bypass pattern - skip fix if pattern found
1776  */
1777 tSCC zHpux11_FabsfBypass0[] =
1778        "__cplusplus";
1779
1780 #define    HPUX11_FABSF_TEST_CT  2
1781 tTestDesc aHpux11_FabsfTests[] = {
1782   { TT_NEGREP,   zHpux11_FabsfBypass0, (regex_t*)NULL },
1783   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
1784
1785 /*
1786  *  Fix Command Arguments for Hpux11_Fabsf
1787  */
1788 const char* apzHpux11_FabsfPatch[] = {
1789     "format",
1790     "#ifndef __cplusplus\n\
1791 %0\n\
1792 #endif",
1793     (char*)NULL };
1794
1795 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1796  *
1797  *  Description of Hpux11_Uint32_C fix
1798  */
1799 #define HPUX11_UINT32_C_FIXIDX           41
1800 tSCC zHpux11_Uint32_CName[] =
1801      "hpux11_uint32_c";
1802
1803 /*
1804  *  File name selection pattern
1805  */
1806 tSCC zHpux11_Uint32_CList[] =
1807   "|inttypes.h|";
1808 /*
1809  *  Machine/OS name selection pattern
1810  */
1811 #define apzHpux11_Uint32_CMachs (const char**)NULL
1812
1813 /*
1814  *  content selection pattern - do fix if pattern found
1815  */
1816 tSCC zHpux11_Uint32_CSelect0[] =
1817        "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
1818
1819 #define    HPUX11_UINT32_C_TEST_CT  1
1820 tTestDesc aHpux11_Uint32_CTests[] = {
1821   { TT_EGREP,    zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
1822
1823 /*
1824  *  Fix Command Arguments for Hpux11_Uint32_C
1825  */
1826 const char* apzHpux11_Uint32_CPatch[] = {
1827     "format",
1828     "#define UINT32_C(__c) __CONCAT__(__c,ul)",
1829     (char*)NULL };
1830
1831 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1832  *
1833  *  Description of Hpux8_Bogus_Inlines fix
1834  */
1835 #define HPUX8_BOGUS_INLINES_FIXIDX       42
1836 tSCC zHpux8_Bogus_InlinesName[] =
1837      "hpux8_bogus_inlines";
1838
1839 /*
1840  *  File name selection pattern
1841  */
1842 tSCC zHpux8_Bogus_InlinesList[] =
1843   "|math.h|";
1844 /*
1845  *  Machine/OS name selection pattern
1846  */
1847 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
1848
1849 /*
1850  *  content selection pattern - do fix if pattern found
1851  */
1852 tSCC zHpux8_Bogus_InlinesSelect0[] =
1853        "inline";
1854
1855 #define    HPUX8_BOGUS_INLINES_TEST_CT  1
1856 tTestDesc aHpux8_Bogus_InlinesTests[] = {
1857   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
1858
1859 /*
1860  *  Fix Command Arguments for Hpux8_Bogus_Inlines
1861  */
1862 const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
1863     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
1864     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
1865     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
1866     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
1867     (char*)NULL };
1868
1869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1870  *
1871  *  Description of Int_Abort_Free_And_Exit fix
1872  */
1873 #define INT_ABORT_FREE_AND_EXIT_FIXIDX   43
1874 tSCC zInt_Abort_Free_And_ExitName[] =
1875      "int_abort_free_and_exit";
1876
1877 /*
1878  *  File name selection pattern
1879  */
1880 tSCC zInt_Abort_Free_And_ExitList[] =
1881   "|stdlib.h|";
1882 /*
1883  *  Machine/OS name selection pattern
1884  */
1885 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
1886
1887 /*
1888  *  content selection pattern - do fix if pattern found
1889  */
1890 tSCC zInt_Abort_Free_And_ExitSelect0[] =
1891        "int[ \t]+(abort|free|exit)[ \t]*\\(";
1892
1893 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  1
1894 tTestDesc aInt_Abort_Free_And_ExitTests[] = {
1895   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
1896
1897 /*
1898  *  Fix Command Arguments for Int_Abort_Free_And_Exit
1899  */
1900 const char* apzInt_Abort_Free_And_ExitPatch[] = {
1901     "format",
1902     "void\t%1(",
1903     (char*)NULL };
1904
1905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1906  *
1907  *  Description of Isc_Omits_With_Stdc fix
1908  */
1909 #define ISC_OMITS_WITH_STDC_FIXIDX       44
1910 tSCC zIsc_Omits_With_StdcName[] =
1911      "isc_omits_with_stdc";
1912
1913 /*
1914  *  File name selection pattern
1915  */
1916 tSCC zIsc_Omits_With_StdcList[] =
1917   "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
1918 /*
1919  *  Machine/OS name selection pattern
1920  */
1921 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
1922
1923 /*
1924  *  content selection pattern - do fix if pattern found
1925  */
1926 tSCC zIsc_Omits_With_StdcSelect0[] =
1927        "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
1928
1929 #define    ISC_OMITS_WITH_STDC_TEST_CT  1
1930 tTestDesc aIsc_Omits_With_StdcTests[] = {
1931   { TT_EGREP,    zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
1932
1933 /*
1934  *  Fix Command Arguments for Isc_Omits_With_Stdc
1935  */
1936 const char* apzIsc_Omits_With_StdcPatch[] = {
1937     "format",
1938     "!defined(_POSIX_SOURCE)",
1939     (char*)NULL };
1940
1941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1942  *
1943  *  Description of Io_Quotes_Def fix
1944  */
1945 #define IO_QUOTES_DEF_FIXIDX             45
1946 tSCC zIo_Quotes_DefName[] =
1947      "io_quotes_def";
1948
1949 /*
1950  *  File name selection pattern
1951  */
1952 #define zIo_Quotes_DefList (char*)NULL
1953 /*
1954  *  Machine/OS name selection pattern
1955  */
1956 #define apzIo_Quotes_DefMachs (const char**)NULL
1957
1958 /*
1959  *  content selection pattern - do fix if pattern found
1960  */
1961 tSCC zIo_Quotes_DefSelect0[] =
1962        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
1963
1964 #define    IO_QUOTES_DEF_TEST_CT  1
1965 tTestDesc aIo_Quotes_DefTests[] = {
1966   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
1967
1968 /*
1969  *  Fix Command Arguments for Io_Quotes_Def
1970  */
1971 const char* apzIo_Quotes_DefPatch[] = {
1972     "char_macro_def",
1973     "IO",
1974     (char*)NULL };
1975
1976 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1977  *
1978  *  Description of Io_Quotes_Use fix
1979  */
1980 #define IO_QUOTES_USE_FIXIDX             46
1981 tSCC zIo_Quotes_UseName[] =
1982      "io_quotes_use";
1983
1984 /*
1985  *  File name selection pattern
1986  */
1987 #define zIo_Quotes_UseList (char*)NULL
1988 /*
1989  *  Machine/OS name selection pattern
1990  */
1991 #define apzIo_Quotes_UseMachs (const char**)NULL
1992
1993 /*
1994  *  content selection pattern - do fix if pattern found
1995  */
1996 tSCC zIo_Quotes_UseSelect0[] =
1997        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
1998
1999 #define    IO_QUOTES_USE_TEST_CT  1
2000 tTestDesc aIo_Quotes_UseTests[] = {
2001   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2002
2003 /*
2004  *  Fix Command Arguments for Io_Quotes_Use
2005  */
2006 const char* apzIo_Quotes_UsePatch[] = {
2007     "char_macro_use",
2008     "IO",
2009     (char*)NULL };
2010
2011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2012  *
2013  *  Description of Hpux_Maxint fix
2014  */
2015 #define HPUX_MAXINT_FIXIDX               47
2016 tSCC zHpux_MaxintName[] =
2017      "hpux_maxint";
2018
2019 /*
2020  *  File name selection pattern
2021  */
2022 tSCC zHpux_MaxintList[] =
2023   "|sys/param.h|";
2024 /*
2025  *  Machine/OS name selection pattern
2026  */
2027 #define apzHpux_MaxintMachs (const char**)NULL
2028
2029 /*
2030  *  content selection pattern - do fix if pattern found
2031  */
2032 tSCC zHpux_MaxintSelect0[] =
2033        "^#[ \t]*define[ \t]*MAXINT[ \t]";
2034
2035 #define    HPUX_MAXINT_TEST_CT  1
2036 tTestDesc aHpux_MaxintTests[] = {
2037   { TT_EGREP,    zHpux_MaxintSelect0, (regex_t*)NULL }, };
2038
2039 /*
2040  *  Fix Command Arguments for Hpux_Maxint
2041  */
2042 const char* apzHpux_MaxintPatch[] = {
2043     "format",
2044     "#ifndef MAXINT\n\
2045 %0\n\
2046 #endif",
2047     "^#[ \t]*define[ \t]*MAXINT[ \t].*",
2048     (char*)NULL };
2049
2050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2051  *
2052  *  Description of Hpux_Systime fix
2053  */
2054 #define HPUX_SYSTIME_FIXIDX              48
2055 tSCC zHpux_SystimeName[] =
2056      "hpux_systime";
2057
2058 /*
2059  *  File name selection pattern
2060  */
2061 tSCC zHpux_SystimeList[] =
2062   "|sys/time.h|";
2063 /*
2064  *  Machine/OS name selection pattern
2065  */
2066 #define apzHpux_SystimeMachs (const char**)NULL
2067
2068 /*
2069  *  content selection pattern - do fix if pattern found
2070  */
2071 tSCC zHpux_SystimeSelect0[] =
2072        "^extern struct sigevent;";
2073
2074 #define    HPUX_SYSTIME_TEST_CT  1
2075 tTestDesc aHpux_SystimeTests[] = {
2076   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
2077
2078 /*
2079  *  Fix Command Arguments for Hpux_Systime
2080  */
2081 const char* apzHpux_SystimePatch[] = {
2082     "format",
2083     "struct sigevent;",
2084     (char*)NULL };
2085
2086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2087  *
2088  *  Description of Ip_Missing_Semi fix
2089  */
2090 #define IP_MISSING_SEMI_FIXIDX           49
2091 tSCC zIp_Missing_SemiName[] =
2092      "ip_missing_semi";
2093
2094 /*
2095  *  File name selection pattern
2096  */
2097 tSCC zIp_Missing_SemiList[] =
2098   "|netinet/ip.h|";
2099 /*
2100  *  Machine/OS name selection pattern
2101  */
2102 #define apzIp_Missing_SemiMachs (const char**)NULL
2103
2104 /*
2105  *  content selection pattern - do fix if pattern found
2106  */
2107 tSCC zIp_Missing_SemiSelect0[] =
2108        "}$";
2109
2110 #define    IP_MISSING_SEMI_TEST_CT  1
2111 tTestDesc aIp_Missing_SemiTests[] = {
2112   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2113
2114 /*
2115  *  Fix Command Arguments for Ip_Missing_Semi
2116  */
2117 const char* apzIp_Missing_SemiPatch[] = { "sed",
2118     "-e", "/^struct/,/^};/s/}$/};/",
2119     (char*)NULL };
2120
2121 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2122  *
2123  *  Description of Irix_Asm_Apostrophe fix
2124  */
2125 #define IRIX_ASM_APOSTROPHE_FIXIDX       50
2126 tSCC zIrix_Asm_ApostropheName[] =
2127      "irix_asm_apostrophe";
2128
2129 /*
2130  *  File name selection pattern
2131  */
2132 tSCC zIrix_Asm_ApostropheList[] =
2133   "|sys/asm.h|";
2134 /*
2135  *  Machine/OS name selection pattern
2136  */
2137 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2138
2139 /*
2140  *  content selection pattern - do fix if pattern found
2141  */
2142 tSCC zIrix_Asm_ApostropheSelect0[] =
2143        "^[ \t]*#.*[Ww]e're";
2144
2145 #define    IRIX_ASM_APOSTROPHE_TEST_CT  1
2146 tTestDesc aIrix_Asm_ApostropheTests[] = {
2147   { TT_EGREP,    zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2148
2149 /*
2150  *  Fix Command Arguments for Irix_Asm_Apostrophe
2151  */
2152 const char* apzIrix_Asm_ApostrophePatch[] = {
2153     "format",
2154     "%1 are",
2155     "^([ \t]*#.*[Ww]e)'re",
2156     (char*)NULL };
2157
2158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2159  *
2160  *  Description of Isc_Fmod fix
2161  */
2162 #define ISC_FMOD_FIXIDX                  51
2163 tSCC zIsc_FmodName[] =
2164      "isc_fmod";
2165
2166 /*
2167  *  File name selection pattern
2168  */
2169 tSCC zIsc_FmodList[] =
2170   "|math.h|";
2171 /*
2172  *  Machine/OS name selection pattern
2173  */
2174 #define apzIsc_FmodMachs (const char**)NULL
2175
2176 /*
2177  *  content selection pattern - do fix if pattern found
2178  */
2179 tSCC zIsc_FmodSelect0[] =
2180        "fmod\\(double\\)";
2181
2182 #define    ISC_FMOD_TEST_CT  1
2183 tTestDesc aIsc_FmodTests[] = {
2184   { TT_EGREP,    zIsc_FmodSelect0, (regex_t*)NULL }, };
2185
2186 /*
2187  *  Fix Command Arguments for Isc_Fmod
2188  */
2189 const char* apzIsc_FmodPatch[] = {
2190     "format",
2191     "fmod(double, double)",
2192     (char*)NULL };
2193
2194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2195  *
2196  *  Description of Kandr_Concat fix
2197  */
2198 #define KANDR_CONCAT_FIXIDX              52
2199 tSCC zKandr_ConcatName[] =
2200      "kandr_concat";
2201
2202 /*
2203  *  File name selection pattern
2204  */
2205 tSCC zKandr_ConcatList[] =
2206   "|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|";
2207 /*
2208  *  Machine/OS name selection pattern
2209  */
2210 #define apzKandr_ConcatMachs (const char**)NULL
2211
2212 /*
2213  *  content selection pattern - do fix if pattern found
2214  */
2215 tSCC zKandr_ConcatSelect0[] =
2216        "/\\*\\*/";
2217
2218 #define    KANDR_CONCAT_TEST_CT  1
2219 tTestDesc aKandr_ConcatTests[] = {
2220   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
2221
2222 /*
2223  *  Fix Command Arguments for Kandr_Concat
2224  */
2225 const char* apzKandr_ConcatPatch[] = {
2226     "format",
2227     "##",
2228     (char*)NULL };
2229
2230 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2231  *
2232  *  Description of Libc1_Ifdefd_Memx fix
2233  */
2234 #define LIBC1_IFDEFD_MEMX_FIXIDX         53
2235 tSCC zLibc1_Ifdefd_MemxName[] =
2236      "libc1_ifdefd_memx";
2237
2238 /*
2239  *  File name selection pattern
2240  */
2241 tSCC zLibc1_Ifdefd_MemxList[] =
2242   "|testing.h|string.h|";
2243 /*
2244  *  Machine/OS name selection pattern
2245  */
2246 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
2247
2248 /*
2249  *  content selection pattern - do fix if pattern found
2250  */
2251 tSCC zLibc1_Ifdefd_MemxSelect0[] =
2252        "' is a built-in function for gcc 2\\.x\\. \\*/";
2253
2254 /*
2255  *  content bypass pattern - skip fix if pattern found
2256  */
2257 tSCC zLibc1_Ifdefd_MemxBypass0[] =
2258        "__cplusplus";
2259
2260 #define    LIBC1_IFDEFD_MEMX_TEST_CT  2
2261 tTestDesc aLibc1_Ifdefd_MemxTests[] = {
2262   { TT_NEGREP,   zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
2263   { TT_EGREP,    zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
2264
2265 /*
2266  *  Fix Command Arguments for Libc1_Ifdefd_Memx
2267  */
2268 const char* apzLibc1_Ifdefd_MemxPatch[] = {
2269     "format",
2270     "%1",
2271     "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
2272 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
2273 (/\\* .* \\*/\n\
2274 extern [a-z_]+ mem.*(\n\
2275 [^#].*)*;)\n\
2276 #endif",
2277     (char*)NULL };
2278
2279 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2280  *
2281  *  Description of Limits_Ifndefs fix
2282  */
2283 #define LIMITS_IFNDEFS_FIXIDX            54
2284 tSCC zLimits_IfndefsName[] =
2285      "limits_ifndefs";
2286
2287 /*
2288  *  File name selection pattern
2289  */
2290 tSCC zLimits_IfndefsList[] =
2291   "|sys/limits.h|limits.h|";
2292 /*
2293  *  Machine/OS name selection pattern
2294  */
2295 #define apzLimits_IfndefsMachs (const char**)NULL
2296
2297 /*
2298  *  content bypass pattern - skip fix if pattern found
2299  */
2300 tSCC zLimits_IfndefsBypass0[] =
2301        "ifndef[ \t]+FLT_MIN";
2302
2303 #define    LIMITS_IFNDEFS_TEST_CT  1
2304 tTestDesc aLimits_IfndefsTests[] = {
2305   { TT_NEGREP,   zLimits_IfndefsBypass0, (regex_t*)NULL }, };
2306
2307 /*
2308  *  Fix Command Arguments for Limits_Ifndefs
2309  */
2310 const char* apzLimits_IfndefsPatch[] = {
2311     "format",
2312     "#ifndef %1\n\
2313 %0\n\
2314 #endif",
2315     "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
2316     (char*)NULL };
2317
2318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2319  *
2320  *  Description of Lynx_Void_Int fix
2321  */
2322 #define LYNX_VOID_INT_FIXIDX             55
2323 tSCC zLynx_Void_IntName[] =
2324      "lynx_void_int";
2325
2326 /*
2327  *  File name selection pattern
2328  */
2329 tSCC zLynx_Void_IntList[] =
2330   "|curses.h|";
2331 /*
2332  *  Machine/OS name selection pattern
2333  */
2334 #define apzLynx_Void_IntMachs (const char**)NULL
2335
2336 /*
2337  *  content selection pattern - do fix if pattern found
2338  */
2339 tSCC zLynx_Void_IntSelect0[] =
2340        "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
2341
2342 #define    LYNX_VOID_INT_TEST_CT  1
2343 tTestDesc aLynx_Void_IntTests[] = {
2344   { TT_EGREP,    zLynx_Void_IntSelect0, (regex_t*)NULL }, };
2345
2346 /*
2347  *  Fix Command Arguments for Lynx_Void_Int
2348  */
2349 const char* apzLynx_Void_IntPatch[] = {
2350     "format",
2351     "",
2352     (char*)NULL };
2353
2354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2355  *
2356  *  Description of Lynxos_Fcntl_Proto fix
2357  */
2358 #define LYNXOS_FCNTL_PROTO_FIXIDX        56
2359 tSCC zLynxos_Fcntl_ProtoName[] =
2360      "lynxos_fcntl_proto";
2361
2362 /*
2363  *  File name selection pattern
2364  */
2365 tSCC zLynxos_Fcntl_ProtoList[] =
2366   "|fcntl.h|";
2367 /*
2368  *  Machine/OS name selection pattern
2369  */
2370 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
2371
2372 /*
2373  *  content selection pattern - do fix if pattern found
2374  */
2375 tSCC zLynxos_Fcntl_ProtoSelect0[] =
2376        "fcntl[ \t]*\\(int, int, int\\)";
2377
2378 #define    LYNXOS_FCNTL_PROTO_TEST_CT  1
2379 tTestDesc aLynxos_Fcntl_ProtoTests[] = {
2380   { TT_EGREP,    zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
2381
2382 /*
2383  *  Fix Command Arguments for Lynxos_Fcntl_Proto
2384  */
2385 const char* apzLynxos_Fcntl_ProtoPatch[] = {
2386     "format",
2387     "%1...)",
2388     "(fcntl[ \t]*\\(int, int, )int\\)",
2389     (char*)NULL };
2390
2391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2392  *
2393  *  Description of M88k_Bad_Hypot_Opt fix
2394  */
2395 #define M88K_BAD_HYPOT_OPT_FIXIDX        57
2396 tSCC zM88k_Bad_Hypot_OptName[] =
2397      "m88k_bad_hypot_opt";
2398
2399 /*
2400  *  File name selection pattern
2401  */
2402 tSCC zM88k_Bad_Hypot_OptList[] =
2403   "|math.h|";
2404 /*
2405  *  Machine/OS name selection pattern
2406  */
2407 tSCC* apzM88k_Bad_Hypot_OptMachs[] = {
2408         "m88k-motorola-sysv3*",
2409         (const char*)NULL };
2410
2411 /*
2412  *  content selection pattern - do fix if pattern found
2413  */
2414 tSCC zM88k_Bad_Hypot_OptSelect0[] =
2415        "^extern double hypot\\(\\);\n";
2416
2417 #define    M88K_BAD_HYPOT_OPT_TEST_CT  1
2418 tTestDesc aM88k_Bad_Hypot_OptTests[] = {
2419   { TT_EGREP,    zM88k_Bad_Hypot_OptSelect0, (regex_t*)NULL }, };
2420
2421 /*
2422  *  Fix Command Arguments for M88k_Bad_Hypot_Opt
2423  */
2424 const char* apzM88k_Bad_Hypot_OptPatch[] = {
2425     "format",
2426     "%0/* Workaround a stupid Motorola optimization if one\n\
2427    of x or y is 0.0 and the other is negative!  */\n\
2428 #ifdef __STDC__\n\
2429 static __inline__ double fake_hypot (double x, double y)\n\
2430 #else\n\
2431 static __inline__ double fake_hypot (x, y)\n\
2432 \tdouble x, y;\n\
2433 #endif\n\
2434 {\n\
2435 \treturn fabs (hypot (x, y));\n\
2436 }\n\
2437 #define hypot\tfake_hypot\n",
2438     (char*)NULL };
2439
2440 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2441  *
2442  *  Description of M88k_Bad_S_If fix
2443  */
2444 #define M88K_BAD_S_IF_FIXIDX             58
2445 tSCC zM88k_Bad_S_IfName[] =
2446      "m88k_bad_s_if";
2447
2448 /*
2449  *  File name selection pattern
2450  */
2451 tSCC zM88k_Bad_S_IfList[] =
2452   "|sys/stat.h|";
2453 /*
2454  *  Machine/OS name selection pattern
2455  */
2456 tSCC* apzM88k_Bad_S_IfMachs[] = {
2457         "m88k-*-sysv3*",
2458         (const char*)NULL };
2459
2460 /*
2461  *  content selection pattern - do fix if pattern found
2462  */
2463 tSCC zM88k_Bad_S_IfSelect0[] =
2464        "#define[ \t]+S_IS[A-Z]+\\(m\\)[ \t]+\\(m[ \t]*&";
2465
2466 #define    M88K_BAD_S_IF_TEST_CT  1
2467 tTestDesc aM88k_Bad_S_IfTests[] = {
2468   { TT_EGREP,    zM88k_Bad_S_IfSelect0, (regex_t*)NULL }, };
2469
2470 /*
2471  *  Fix Command Arguments for M88k_Bad_S_If
2472  */
2473 const char* apzM88k_Bad_S_IfPatch[] = {
2474     "format",
2475     "#define %1(m) (((m) & S_IFMT) == %2)",
2476     "#define[ \t]+(S_IS[A-Z]+)\\(m\\)[ \t]+\\(m[ \t]*&[ \t]*(S_IF[A-Z][A-Z][A-Z]+|0[0-9]+)[ \t]*\\)",
2477     (char*)NULL };
2478
2479 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2480  *
2481  *  Description of M88k_Multi_Incl fix
2482  */
2483 #define M88K_MULTI_INCL_FIXIDX           59
2484 tSCC zM88k_Multi_InclName[] =
2485      "m88k_multi_incl";
2486
2487 /*
2488  *  File name selection pattern
2489  */
2490 tSCC zM88k_Multi_InclList[] =
2491   "|time.h|";
2492 /*
2493  *  Machine/OS name selection pattern
2494  */
2495 tSCC* apzM88k_Multi_InclMachs[] = {
2496         "m88k-tektronix-sysv3*",
2497         (const char*)NULL };
2498
2499 /*
2500  *  content bypass pattern - skip fix if pattern found
2501  */
2502 tSCC zM88k_Multi_InclBypass0[] =
2503        "#ifndef";
2504
2505 #define    M88K_MULTI_INCL_TEST_CT  1
2506 tTestDesc aM88k_Multi_InclTests[] = {
2507   { TT_NEGREP,   zM88k_Multi_InclBypass0, (regex_t*)NULL }, };
2508
2509 /*
2510  *  Fix Command Arguments for M88k_Multi_Incl
2511  */
2512 const char* apzM88k_Multi_InclPatch[] = {
2513     "wrap",
2514     (char*)NULL };
2515
2516 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2517  *
2518  *  Description of Machine_Ansi_H_Va_List fix
2519  */
2520 #define MACHINE_ANSI_H_VA_LIST_FIXIDX    60
2521 tSCC zMachine_Ansi_H_Va_ListName[] =
2522      "machine_ansi_h_va_list";
2523
2524 /*
2525  *  File name selection pattern
2526  */
2527 tSCC zMachine_Ansi_H_Va_ListList[] =
2528   "|machine/ansi.h|";
2529 /*
2530  *  Machine/OS name selection pattern
2531  */
2532 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
2533
2534 /*
2535  *  content selection pattern - do fix if pattern found
2536  */
2537 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
2538        "define[ \t]+_BSD_VA_LIST_[ \t]";
2539
2540 /*
2541  *  content bypass pattern - skip fix if pattern found
2542  */
2543 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
2544        "__builtin_va_list";
2545
2546 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
2547 tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
2548   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
2549   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
2550
2551 /*
2552  *  Fix Command Arguments for Machine_Ansi_H_Va_List
2553  */
2554 const char* apzMachine_Ansi_H_Va_ListPatch[] = {
2555     "format",
2556     "%1__builtin_va_list",
2557     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
2558     (char*)NULL };
2559
2560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2561  *
2562  *  Description of Machine_Name fix
2563  */
2564 #define MACHINE_NAME_FIXIDX              61
2565 tSCC zMachine_NameName[] =
2566      "machine_name";
2567
2568 /*
2569  *  File name selection pattern
2570  */
2571 #define zMachine_NameList (char*)NULL
2572 /*
2573  *  Machine/OS name selection pattern
2574  */
2575 #define apzMachine_NameMachs (const char**)NULL
2576
2577 /*
2578  *  perform the C function call test
2579  */
2580 tSCC zMachine_NameFTst0[] = "machine_name";
2581
2582 #define    MACHINE_NAME_TEST_CT  1
2583 tTestDesc aMachine_NameTests[] = {
2584   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
2585
2586 /*
2587  *  Fix Command Arguments for Machine_Name
2588  */
2589 const char* apzMachine_NamePatch[] = {
2590     "machine_name",
2591     (char*)NULL };
2592
2593 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2594  *
2595  *  Description of Math_Exception fix
2596  */
2597 #define MATH_EXCEPTION_FIXIDX            62
2598 tSCC zMath_ExceptionName[] =
2599      "math_exception";
2600
2601 /*
2602  *  File name selection pattern
2603  */
2604 tSCC zMath_ExceptionList[] =
2605   "|math.h|";
2606 /*
2607  *  Machine/OS name selection pattern
2608  */
2609 #define apzMath_ExceptionMachs (const char**)NULL
2610
2611 /*
2612  *  content selection pattern - do fix if pattern found
2613  */
2614 tSCC zMath_ExceptionSelect0[] =
2615        "struct exception";
2616
2617 /*
2618  *  content bypass pattern - skip fix if pattern found
2619  */
2620 tSCC zMath_ExceptionBypass0[] =
2621        "We have a problem when using C\\+\\+";
2622
2623 #define    MATH_EXCEPTION_TEST_CT  2
2624 tTestDesc aMath_ExceptionTests[] = {
2625   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
2626   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
2627
2628 /*
2629  *  Fix Command Arguments for Math_Exception
2630  */
2631 const char* apzMath_ExceptionPatch[] = {
2632     "wrap",
2633     "#ifdef __cplusplus\n\
2634 #define exception __math_exception\n\
2635 #endif\n",
2636     "#ifdef __cplusplus\n\
2637 #undef exception\n\
2638 #endif\n",
2639     (char*)NULL };
2640
2641 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2642  *
2643  *  Description of Math_Huge_Val_From_Dbl_Max fix
2644  */
2645 #define MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX 63
2646 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
2647      "math_huge_val_from_dbl_max";
2648
2649 /*
2650  *  File name selection pattern
2651  */
2652 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
2653   "|math.h|";
2654 /*
2655  *  Machine/OS name selection pattern
2656  */
2657 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
2658
2659 /*
2660  *  content selection pattern - do fix if pattern found
2661  */
2662 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
2663        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
2664
2665 /*
2666  *  content bypass pattern - skip fix if pattern found
2667  */
2668 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
2669        "define[ \t]+DBL_MAX";
2670
2671 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
2672 tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
2673   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
2674   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
2675
2676 /*
2677  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
2678  */
2679 const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
2680     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\
2681 \n\
2682 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
2683 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
2684 \telse cat\n\
2685 \tfi",
2686     (char*)NULL };
2687
2688 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2689  *
2690  *  Description of Math_Huge_Val_Ifndef fix
2691  */
2692 #define MATH_HUGE_VAL_IFNDEF_FIXIDX      64
2693 tSCC zMath_Huge_Val_IfndefName[] =
2694      "math_huge_val_ifndef";
2695
2696 /*
2697  *  File name selection pattern
2698  */
2699 tSCC zMath_Huge_Val_IfndefList[] =
2700   "|math.h|math/math.h|";
2701 /*
2702  *  Machine/OS name selection pattern
2703  */
2704 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
2705
2706 /*
2707  *  content selection pattern - do fix if pattern found
2708  */
2709 tSCC zMath_Huge_Val_IfndefSelect0[] =
2710        "define[ \t]+HUGE_VAL";
2711
2712 #define    MATH_HUGE_VAL_IFNDEF_TEST_CT  1
2713 tTestDesc aMath_Huge_Val_IfndefTests[] = {
2714   { TT_EGREP,    zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
2715
2716 /*
2717  *  Fix Command Arguments for Math_Huge_Val_Ifndef
2718  */
2719 const char* apzMath_Huge_Val_IfndefPatch[] = {
2720     "format",
2721     "#ifndef HUGE_VAL\n\
2722 %0\n\
2723 #endif",
2724     "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
2725     (char*)NULL };
2726
2727 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2728  *
2729  *  Description of Nested_Motorola fix
2730  */
2731 #define NESTED_MOTOROLA_FIXIDX           65
2732 tSCC zNested_MotorolaName[] =
2733      "nested_motorola";
2734
2735 /*
2736  *  File name selection pattern
2737  */
2738 tSCC zNested_MotorolaList[] =
2739   "|sys/limits.h|limits.h|";
2740 /*
2741  *  Machine/OS name selection pattern
2742  */
2743 tSCC* apzNested_MotorolaMachs[] = {
2744         "m68k-motorola-sysv*",
2745         (const char*)NULL };
2746
2747 /*
2748  *  content selection pattern - do fix if pattern found
2749  */
2750 tSCC zNested_MotorolaSelect0[] =
2751        "max # bytes atomic in write|error value returned by Math lib";
2752
2753 #define    NESTED_MOTOROLA_TEST_CT  1
2754 tTestDesc aNested_MotorolaTests[] = {
2755   { TT_EGREP,    zNested_MotorolaSelect0, (regex_t*)NULL }, };
2756
2757 /*
2758  *  Fix Command Arguments for Nested_Motorola
2759  */
2760 const char* apzNested_MotorolaPatch[] = { "sed",
2761     "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
2762     "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
2763     (char*)NULL };
2764
2765 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2766  *
2767  *  Description of Nested_Sys_Limits fix
2768  */
2769 #define NESTED_SYS_LIMITS_FIXIDX         66
2770 tSCC zNested_Sys_LimitsName[] =
2771      "nested_sys_limits";
2772
2773 /*
2774  *  File name selection pattern
2775  */
2776 tSCC zNested_Sys_LimitsList[] =
2777   "|sys/limits.h|";
2778 /*
2779  *  Machine/OS name selection pattern
2780  */
2781 #define apzNested_Sys_LimitsMachs (const char**)NULL
2782
2783 /*
2784  *  content selection pattern - do fix if pattern found
2785  */
2786 tSCC zNested_Sys_LimitsSelect0[] =
2787        "CHILD_MAX";
2788
2789 #define    NESTED_SYS_LIMITS_TEST_CT  1
2790 tTestDesc aNested_Sys_LimitsTests[] = {
2791   { TT_EGREP,    zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
2792
2793 /*
2794  *  Fix Command Arguments for Nested_Sys_Limits
2795  */
2796 const char* apzNested_Sys_LimitsPatch[] = { "sed",
2797     "-e", "/CHILD_MAX/s,/\\* Max, Max,",
2798     "-e", "/OPEN_MAX/s,/\\* Max, Max,",
2799     (char*)NULL };
2800
2801 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2802  *
2803  *  Description of Nested_Auth_Des fix
2804  */
2805 #define NESTED_AUTH_DES_FIXIDX           67
2806 tSCC zNested_Auth_DesName[] =
2807      "nested_auth_des";
2808
2809 /*
2810  *  File name selection pattern
2811  */
2812 tSCC zNested_Auth_DesList[] =
2813   "|rpc/rpc.h|";
2814 /*
2815  *  Machine/OS name selection pattern
2816  */
2817 #define apzNested_Auth_DesMachs (const char**)NULL
2818
2819 /*
2820  *  content selection pattern - do fix if pattern found
2821  */
2822 tSCC zNested_Auth_DesSelect0[] =
2823        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
2824
2825 #define    NESTED_AUTH_DES_TEST_CT  1
2826 tTestDesc aNested_Auth_DesTests[] = {
2827   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
2828
2829 /*
2830  *  Fix Command Arguments for Nested_Auth_Des
2831  */
2832 const char* apzNested_Auth_DesPatch[] = {
2833     "format",
2834     "%1*/ /*",
2835     (char*)NULL };
2836
2837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2838  *
2839  *  Description of News_Os_Recursion fix
2840  */
2841 #define NEWS_OS_RECURSION_FIXIDX         68
2842 tSCC zNews_Os_RecursionName[] =
2843      "news_os_recursion";
2844
2845 /*
2846  *  File name selection pattern
2847  */
2848 tSCC zNews_Os_RecursionList[] =
2849   "|stdlib.h|";
2850 /*
2851  *  Machine/OS name selection pattern
2852  */
2853 #define apzNews_Os_RecursionMachs (const char**)NULL
2854
2855 /*
2856  *  content selection pattern - do fix if pattern found
2857  */
2858 tSCC zNews_Os_RecursionSelect0[] =
2859        "[ \t]*#include <stdlib\\.h>.*";
2860
2861 #define    NEWS_OS_RECURSION_TEST_CT  1
2862 tTestDesc aNews_Os_RecursionTests[] = {
2863   { TT_EGREP,    zNews_Os_RecursionSelect0, (regex_t*)NULL }, };
2864
2865 /*
2866  *  Fix Command Arguments for News_Os_Recursion
2867  */
2868 const char* apzNews_Os_RecursionPatch[] = {
2869     "format",
2870     "#ifdef BOGUS_RECURSION\n\
2871 %0\n\
2872 #endif",
2873     (char*)NULL };
2874
2875 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2876  *
2877  *  Description of Next_Math_Prefix fix
2878  */
2879 #define NEXT_MATH_PREFIX_FIXIDX          69
2880 tSCC zNext_Math_PrefixName[] =
2881      "next_math_prefix";
2882
2883 /*
2884  *  File name selection pattern
2885  */
2886 tSCC zNext_Math_PrefixList[] =
2887   "|ansi/math.h|";
2888 /*
2889  *  Machine/OS name selection pattern
2890  */
2891 #define apzNext_Math_PrefixMachs (const char**)NULL
2892
2893 /*
2894  *  content selection pattern - do fix if pattern found
2895  */
2896 tSCC zNext_Math_PrefixSelect0[] =
2897        "^extern[ \t]+double[ \t]+__const__[ \t]";
2898
2899 #define    NEXT_MATH_PREFIX_TEST_CT  1
2900 tTestDesc aNext_Math_PrefixTests[] = {
2901   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
2902
2903 /*
2904  *  Fix Command Arguments for Next_Math_Prefix
2905  */
2906 const char* apzNext_Math_PrefixPatch[] = {
2907     "format",
2908     "extern double %1(",
2909     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
2910     (char*)NULL };
2911
2912 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2913  *
2914  *  Description of Next_Template fix
2915  */
2916 #define NEXT_TEMPLATE_FIXIDX             70
2917 tSCC zNext_TemplateName[] =
2918      "next_template";
2919
2920 /*
2921  *  File name selection pattern
2922  */
2923 tSCC zNext_TemplateList[] =
2924   "|bsd/libc.h|";
2925 /*
2926  *  Machine/OS name selection pattern
2927  */
2928 #define apzNext_TemplateMachs (const char**)NULL
2929
2930 /*
2931  *  content selection pattern - do fix if pattern found
2932  */
2933 tSCC zNext_TemplateSelect0[] =
2934        "[ \t]template\\)";
2935
2936 #define    NEXT_TEMPLATE_TEST_CT  1
2937 tTestDesc aNext_TemplateTests[] = {
2938   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
2939
2940 /*
2941  *  Fix Command Arguments for Next_Template
2942  */
2943 const char* apzNext_TemplatePatch[] = {
2944     "format",
2945     "(%1)",
2946     "\\(([^)]*)[ \t]template\\)",
2947     (char*)NULL };
2948
2949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2950  *
2951  *  Description of Next_Volitile fix
2952  */
2953 #define NEXT_VOLITILE_FIXIDX             71
2954 tSCC zNext_VolitileName[] =
2955      "next_volitile";
2956
2957 /*
2958  *  File name selection pattern
2959  */
2960 tSCC zNext_VolitileList[] =
2961   "|ansi/stdlib.h|";
2962 /*
2963  *  Machine/OS name selection pattern
2964  */
2965 #define apzNext_VolitileMachs (const char**)NULL
2966
2967 /*
2968  *  content selection pattern - do fix if pattern found
2969  */
2970 tSCC zNext_VolitileSelect0[] =
2971        "^extern[ \t]+volatile[ \t]+void[ \t]";
2972
2973 #define    NEXT_VOLITILE_TEST_CT  1
2974 tTestDesc aNext_VolitileTests[] = {
2975   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
2976
2977 /*
2978  *  Fix Command Arguments for Next_Volitile
2979  */
2980 const char* apzNext_VolitilePatch[] = {
2981     "format",
2982     "extern void %1(",
2983     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
2984     (char*)NULL };
2985
2986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2987  *
2988  *  Description of Next_Wait_Union fix
2989  */
2990 #define NEXT_WAIT_UNION_FIXIDX           72
2991 tSCC zNext_Wait_UnionName[] =
2992      "next_wait_union";
2993
2994 /*
2995  *  File name selection pattern
2996  */
2997 tSCC zNext_Wait_UnionList[] =
2998   "|sys/wait.h|";
2999 /*
3000  *  Machine/OS name selection pattern
3001  */
3002 #define apzNext_Wait_UnionMachs (const char**)NULL
3003
3004 /*
3005  *  content selection pattern - do fix if pattern found
3006  */
3007 tSCC zNext_Wait_UnionSelect0[] =
3008        "wait\\(union wait";
3009
3010 #define    NEXT_WAIT_UNION_TEST_CT  1
3011 tTestDesc aNext_Wait_UnionTests[] = {
3012   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3013
3014 /*
3015  *  Fix Command Arguments for Next_Wait_Union
3016  */
3017 const char* apzNext_Wait_UnionPatch[] = {
3018     "format",
3019     "wait(void",
3020     (char*)NULL };
3021
3022 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3023  *
3024  *  Description of Nodeent_Syntax fix
3025  */
3026 #define NODEENT_SYNTAX_FIXIDX            73
3027 tSCC zNodeent_SyntaxName[] =
3028      "nodeent_syntax";
3029
3030 /*
3031  *  File name selection pattern
3032  */
3033 tSCC zNodeent_SyntaxList[] =
3034   "|netdnet/dnetdb.h|";
3035 /*
3036  *  Machine/OS name selection pattern
3037  */
3038 #define apzNodeent_SyntaxMachs (const char**)NULL
3039
3040 /*
3041  *  content selection pattern - do fix if pattern found
3042  */
3043 tSCC zNodeent_SyntaxSelect0[] =
3044        "char[ \t]*\\*na_addr[ \t]*$";
3045
3046 #define    NODEENT_SYNTAX_TEST_CT  1
3047 tTestDesc aNodeent_SyntaxTests[] = {
3048   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3049
3050 /*
3051  *  Fix Command Arguments for Nodeent_Syntax
3052  */
3053 const char* apzNodeent_SyntaxPatch[] = {
3054     "format",
3055     "%0;",
3056     (char*)NULL };
3057
3058 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3059  *
3060  *  Description of Osf_Namespace_A fix
3061  */
3062 #define OSF_NAMESPACE_A_FIXIDX           74
3063 tSCC zOsf_Namespace_AName[] =
3064      "osf_namespace_a";
3065
3066 /*
3067  *  File name selection pattern
3068  */
3069 tSCC zOsf_Namespace_AList[] =
3070   "|reg_types.h|sys/lc_core.h|";
3071 /*
3072  *  Machine/OS name selection pattern
3073  */
3074 #define apzOsf_Namespace_AMachs (const char**)NULL
3075
3076 /*
3077  *  perform the 'test' shell command - do fix on success
3078  */
3079 tSCC zOsf_Namespace_ATest0[] =
3080        " -r reg_types.h";
3081 tSCC zOsf_Namespace_ATest1[] =
3082        " -r sys/lc_core.h";
3083 tSCC zOsf_Namespace_ATest2[] =
3084        " -n \"`grep '} regex_t;' reg_types.h`\"";
3085 tSCC zOsf_Namespace_ATest3[] =
3086        " -z \"`grep __regex_t regex.h`\"";
3087
3088 #define    OSF_NAMESPACE_A_TEST_CT  4
3089 tTestDesc aOsf_Namespace_ATests[] = {
3090   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
3091   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
3092   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
3093   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
3094
3095 /*
3096  *  Fix Command Arguments for Osf_Namespace_A
3097  */
3098 const char* apzOsf_Namespace_APatch[] = {
3099     "format",
3100     "__%0",
3101     "reg(ex|off|match)_t",
3102     (char*)NULL };
3103
3104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3105  *
3106  *  Description of Osf_Namespace_C fix
3107  */
3108 #define OSF_NAMESPACE_C_FIXIDX           75
3109 tSCC zOsf_Namespace_CName[] =
3110      "osf_namespace_c";
3111
3112 /*
3113  *  File name selection pattern
3114  */
3115 tSCC zOsf_Namespace_CList[] =
3116   "|regex.h|";
3117 /*
3118  *  Machine/OS name selection pattern
3119  */
3120 #define apzOsf_Namespace_CMachs (const char**)NULL
3121
3122 /*
3123  *  content selection pattern - do fix if pattern found
3124  */
3125 tSCC zOsf_Namespace_CSelect0[] =
3126        "#include <reg_types.h>.*";
3127
3128 /*
3129  *  perform the 'test' shell command - do fix on success
3130  */
3131 tSCC zOsf_Namespace_CTest0[] =
3132        " -r reg_types.h";
3133 tSCC zOsf_Namespace_CTest1[] =
3134        " -r sys/lc_core.h";
3135 tSCC zOsf_Namespace_CTest2[] =
3136        " -n \"`grep '} regex_t;' reg_types.h`\"";
3137 tSCC zOsf_Namespace_CTest3[] =
3138        " -z \"`grep __regex_t regex.h`\"";
3139
3140 #define    OSF_NAMESPACE_C_TEST_CT  5
3141 tTestDesc aOsf_Namespace_CTests[] = {
3142   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
3143   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
3144   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
3145   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
3146   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3147
3148 /*
3149  *  Fix Command Arguments for Osf_Namespace_C
3150  */
3151 const char* apzOsf_Namespace_CPatch[] = {
3152     "format",
3153     "%0\n\
3154 typedef __regex_t\tregex_t;\n\
3155 typedef __regoff_t\tregoff_t;\n\
3156 typedef __regmatch_t\tregmatch_t;",
3157     (char*)NULL };
3158
3159 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3160  *
3161  *  Description of Pthread_Page_Size fix
3162  */
3163 #define PTHREAD_PAGE_SIZE_FIXIDX         76
3164 tSCC zPthread_Page_SizeName[] =
3165      "pthread_page_size";
3166
3167 /*
3168  *  File name selection pattern
3169  */
3170 tSCC zPthread_Page_SizeList[] =
3171   "|pthread.h|";
3172 /*
3173  *  Machine/OS name selection pattern
3174  */
3175 #define apzPthread_Page_SizeMachs (const char**)NULL
3176
3177 /*
3178  *  content selection pattern - do fix if pattern found
3179  */
3180 tSCC zPthread_Page_SizeSelect0[] =
3181        "^int __page_size";
3182
3183 #define    PTHREAD_PAGE_SIZE_TEST_CT  1
3184 tTestDesc aPthread_Page_SizeTests[] = {
3185   { TT_EGREP,    zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
3186
3187 /*
3188  *  Fix Command Arguments for Pthread_Page_Size
3189  */
3190 const char* apzPthread_Page_SizePatch[] = {
3191     "format",
3192     "extern %0",
3193     (char*)NULL };
3194
3195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3196  *
3197  *  Description of Read_Ret_Type fix
3198  */
3199 #define READ_RET_TYPE_FIXIDX             77
3200 tSCC zRead_Ret_TypeName[] =
3201      "read_ret_type";
3202
3203 /*
3204  *  File name selection pattern
3205  */
3206 tSCC zRead_Ret_TypeList[] =
3207   "|stdio.h|";
3208 /*
3209  *  Machine/OS name selection pattern
3210  */
3211 #define apzRead_Ret_TypeMachs (const char**)NULL
3212
3213 /*
3214  *  content selection pattern - do fix if pattern found
3215  */
3216 tSCC zRead_Ret_TypeSelect0[] =
3217        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
3218
3219 #define    READ_RET_TYPE_TEST_CT  1
3220 tTestDesc aRead_Ret_TypeTests[] = {
3221   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
3222
3223 /*
3224  *  Fix Command Arguments for Read_Ret_Type
3225  */
3226 const char* apzRead_Ret_TypePatch[] = {
3227     "format",
3228     "extern unsigned int fread(), fwrite();\n\
3229 %1%2",
3230     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
3231     (char*)NULL };
3232
3233 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3234  *
3235  *  Description of Rs6000_Double fix
3236  */
3237 #define RS6000_DOUBLE_FIXIDX             78
3238 tSCC zRs6000_DoubleName[] =
3239      "rs6000_double";
3240
3241 /*
3242  *  File name selection pattern
3243  */
3244 tSCC zRs6000_DoubleList[] =
3245   "|math.h|";
3246 /*
3247  *  Machine/OS name selection pattern
3248  */
3249 #define apzRs6000_DoubleMachs (const char**)NULL
3250
3251 /*
3252  *  content selection pattern - do fix if pattern found
3253  */
3254 tSCC zRs6000_DoubleSelect0[] =
3255        "[^a-zA-Z_]class\\(";
3256
3257 #define    RS6000_DOUBLE_TEST_CT  1
3258 tTestDesc aRs6000_DoubleTests[] = {
3259   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
3260
3261 /*
3262  *  Fix Command Arguments for Rs6000_Double
3263  */
3264 const char* apzRs6000_DoublePatch[] = {
3265     "format",
3266     "#ifndef __cplusplus\n\
3267 %0\n\
3268 #endif",
3269     "^.*[^a-zA-Z_]class\\(.*",
3270     (char*)NULL };
3271
3272 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3273  *
3274  *  Description of Rs6000_Fchmod fix
3275  */
3276 #define RS6000_FCHMOD_FIXIDX             79
3277 tSCC zRs6000_FchmodName[] =
3278      "rs6000_fchmod";
3279
3280 /*
3281  *  File name selection pattern
3282  */
3283 tSCC zRs6000_FchmodList[] =
3284   "|sys/stat.h|";
3285 /*
3286  *  Machine/OS name selection pattern
3287  */
3288 #define apzRs6000_FchmodMachs (const char**)NULL
3289
3290 /*
3291  *  content selection pattern - do fix if pattern found
3292  */
3293 tSCC zRs6000_FchmodSelect0[] =
3294        "fchmod\\(char \\*";
3295
3296 #define    RS6000_FCHMOD_TEST_CT  1
3297 tTestDesc aRs6000_FchmodTests[] = {
3298   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
3299
3300 /*
3301  *  Fix Command Arguments for Rs6000_Fchmod
3302  */
3303 const char* apzRs6000_FchmodPatch[] = {
3304     "format",
3305     "fchmod(int",
3306     (char*)NULL };
3307
3308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3309  *
3310  *  Description of Rs6000_Param fix
3311  */
3312 #define RS6000_PARAM_FIXIDX              80
3313 tSCC zRs6000_ParamName[] =
3314      "rs6000_param";
3315
3316 /*
3317  *  File name selection pattern
3318  */
3319 tSCC zRs6000_ParamList[] =
3320   "|stdio.h|unistd.h|";
3321 /*
3322  *  Machine/OS name selection pattern
3323  */
3324 #define apzRs6000_ParamMachs (const char**)NULL
3325
3326 /*
3327  *  content selection pattern - do fix if pattern found
3328  */
3329 tSCC zRs6000_ParamSelect0[] =
3330        "rename\\(const char \\*old, const char \\*new\\)";
3331
3332 #define    RS6000_PARAM_TEST_CT  1
3333 tTestDesc aRs6000_ParamTests[] = {
3334   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
3335
3336 /*
3337  *  Fix Command Arguments for Rs6000_Param
3338  */
3339 const char* apzRs6000_ParamPatch[] = {
3340     "format",
3341     "rename(const char *_old, const char *_new)",
3342     (char*)NULL };
3343
3344 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3345  *
3346  *  Description of Sco_Static_Func fix
3347  */
3348 #define SCO_STATIC_FUNC_FIXIDX           81
3349 tSCC zSco_Static_FuncName[] =
3350      "sco_static_func";
3351
3352 /*
3353  *  File name selection pattern
3354  */
3355 tSCC zSco_Static_FuncList[] =
3356   "|sys/stat.h|";
3357 /*
3358  *  Machine/OS name selection pattern
3359  */
3360 tSCC* apzSco_Static_FuncMachs[] = {
3361         "i?86-*-sco3.2*",
3362         (const char*)NULL };
3363
3364 /*
3365  *  content selection pattern - do fix if pattern found
3366  */
3367 tSCC zSco_Static_FuncSelect0[] =
3368        "^static int";
3369
3370 #define    SCO_STATIC_FUNC_TEST_CT  1
3371 tTestDesc aSco_Static_FuncTests[] = {
3372   { TT_EGREP,    zSco_Static_FuncSelect0, (regex_t*)NULL }, };
3373
3374 /*
3375  *  Fix Command Arguments for Sco_Static_Func
3376  */
3377 const char* apzSco_Static_FuncPatch[] = { "sed",
3378     "-e", "/^static int/i\\\n\
3379 #if __cplusplus\\\n\
3380 extern \"C\" {\\\n\
3381 #endif /* __cplusplus */",
3382     "-e", "/^}$/a\\\n\
3383 #if __cplusplus\\\n\
3384  }\\\n\
3385 #endif /* __cplusplus */",
3386     (char*)NULL };
3387
3388 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3389  *
3390  *  Description of Sco_Strict_Ansi fix
3391  */
3392 #define SCO_STRICT_ANSI_FIXIDX           82
3393 tSCC zSco_Strict_AnsiName[] =
3394      "sco_strict_ansi";
3395
3396 /*
3397  *  File name selection pattern
3398  */
3399 #define zSco_Strict_AnsiList (char*)NULL
3400 /*
3401  *  Machine/OS name selection pattern
3402  */
3403 tSCC* apzSco_Strict_AnsiMachs[] = {
3404         "i?86-*-sco3.2*",
3405         (const char*)NULL };
3406
3407 /*
3408  *  content selection pattern - do fix if pattern found
3409  */
3410 tSCC zSco_Strict_AnsiSelect0[] =
3411        "^[ \t]*#[ \t]*if.*!__STDC__";
3412
3413 #define    SCO_STRICT_ANSI_TEST_CT  1
3414 tTestDesc aSco_Strict_AnsiTests[] = {
3415   { TT_EGREP,    zSco_Strict_AnsiSelect0, (regex_t*)NULL }, };
3416
3417 /*
3418  *  Fix Command Arguments for Sco_Strict_Ansi
3419  */
3420 const char* apzSco_Strict_AnsiPatch[] = {
3421     "format",
3422     "%1defined(__STRICT_ANSI__)%2",
3423     "^([ \t]*#[ \t]*if[ \t].*!)__STDC__(.*)",
3424     (char*)NULL };
3425
3426 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3427  *
3428  *  Description of Sco_Utime fix
3429  */
3430 #define SCO_UTIME_FIXIDX                 83
3431 tSCC zSco_UtimeName[] =
3432      "sco_utime";
3433
3434 /*
3435  *  File name selection pattern
3436  */
3437 tSCC zSco_UtimeList[] =
3438   "|sys/times.h|";
3439 /*
3440  *  Machine/OS name selection pattern
3441  */
3442 tSCC* apzSco_UtimeMachs[] = {
3443         "i?86-*-sco3.2v4*",
3444         (const char*)NULL };
3445
3446 /*
3447  *  content selection pattern - do fix if pattern found
3448  */
3449 tSCC zSco_UtimeSelect0[] =
3450        "\\(const char \\*, struct utimbuf \\*\\);";
3451
3452 #define    SCO_UTIME_TEST_CT  1
3453 tTestDesc aSco_UtimeTests[] = {
3454   { TT_EGREP,    zSco_UtimeSelect0, (regex_t*)NULL }, };
3455
3456 /*
3457  *  Fix Command Arguments for Sco_Utime
3458  */
3459 const char* apzSco_UtimePatch[] = {
3460     "format",
3461     "(const char *, const struct utimbuf *);",
3462     (char*)NULL };
3463
3464 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3465  *
3466  *  Description of Statsswtch fix
3467  */
3468 #define STATSSWTCH_FIXIDX                84
3469 tSCC zStatsswtchName[] =
3470      "statsswtch";
3471
3472 /*
3473  *  File name selection pattern
3474  */
3475 tSCC zStatsswtchList[] =
3476   "|rpcsvc/rstat.h|";
3477 /*
3478  *  Machine/OS name selection pattern
3479  */
3480 #define apzStatsswtchMachs (const char**)NULL
3481
3482 /*
3483  *  content selection pattern - do fix if pattern found
3484  */
3485 tSCC zStatsswtchSelect0[] =
3486        "boottime$";
3487
3488 #define    STATSSWTCH_TEST_CT  1
3489 tTestDesc aStatsswtchTests[] = {
3490   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
3491
3492 /*
3493  *  Fix Command Arguments for Statsswtch
3494  */
3495 const char* apzStatsswtchPatch[] = {
3496     "format",
3497     "boottime;",
3498     (char*)NULL };
3499
3500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3501  *
3502  *  Description of Stdio_Stdarg_H fix
3503  */
3504 #define STDIO_STDARG_H_FIXIDX            85
3505 tSCC zStdio_Stdarg_HName[] =
3506      "stdio_stdarg_h";
3507
3508 /*
3509  *  File name selection pattern
3510  */
3511 tSCC zStdio_Stdarg_HList[] =
3512   "|stdio.h|";
3513 /*
3514  *  Machine/OS name selection pattern
3515  */
3516 #define apzStdio_Stdarg_HMachs (const char**)NULL
3517
3518 /*
3519  *  content bypass pattern - skip fix if pattern found
3520  */
3521 tSCC zStdio_Stdarg_HBypass0[] =
3522        "include.*(stdarg.h|machine/ansi.h)";
3523
3524 #define    STDIO_STDARG_H_TEST_CT  1
3525 tTestDesc aStdio_Stdarg_HTests[] = {
3526   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
3527
3528 /*
3529  *  Fix Command Arguments for Stdio_Stdarg_H
3530  */
3531 const char* apzStdio_Stdarg_HPatch[] = {
3532     "wrap",
3533     "#define __need___va_list\n\
3534 #include <stdarg.h>\n",
3535     (char*)NULL };
3536
3537 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3538  *
3539  *  Description of Stdio_Va_List fix
3540  */
3541 #define STDIO_VA_LIST_FIXIDX             86
3542 tSCC zStdio_Va_ListName[] =
3543      "stdio_va_list";
3544
3545 /*
3546  *  File name selection pattern
3547  */
3548 tSCC zStdio_Va_ListList[] =
3549   "|stdio.h|";
3550 /*
3551  *  Machine/OS name selection pattern
3552  */
3553 #define apzStdio_Va_ListMachs (const char**)NULL
3554
3555 /*
3556  *  content bypass pattern - skip fix if pattern found
3557  */
3558 tSCC zStdio_Va_ListBypass0[] =
3559        "__gnuc_va_list|_BSD_VA_LIST_";
3560
3561 #define    STDIO_VA_LIST_TEST_CT  1
3562 tTestDesc aStdio_Va_ListTests[] = {
3563   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
3564
3565 /*
3566  *  Fix Command Arguments for Stdio_Va_List
3567  */
3568 const char* apzStdio_Va_ListPatch[] = { "sed",
3569     "-e", "s@ va_list @ __gnuc_va_list @\n\
3570 s@ va_list)@ __gnuc_va_list)@\n\
3571 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
3572 s@ va_list@ __not_va_list__@\n\
3573 s@\\*va_list@*__not_va_list__@\n\
3574 s@ __va_list)@ __gnuc_va_list)@\n\
3575 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
3576 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
3577 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
3578 s@VA_LIST@DUMMY_VA_LIST@\n\
3579 s@_Va_LIST@_VA_LIST@",
3580     (char*)NULL };
3581
3582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3583  *
3584  *  Description of Struct_File fix
3585  */
3586 #define STRUCT_FILE_FIXIDX               87
3587 tSCC zStruct_FileName[] =
3588      "struct_file";
3589
3590 /*
3591  *  File name selection pattern
3592  */
3593 tSCC zStruct_FileList[] =
3594   "|rpc/xdr.h|";
3595 /*
3596  *  Machine/OS name selection pattern
3597  */
3598 #define apzStruct_FileMachs (const char**)NULL
3599
3600 /*
3601  *  content selection pattern - do fix if pattern found
3602  */
3603 tSCC zStruct_FileSelect0[] =
3604        "^.*xdrstdio_create.*struct __file_s";
3605
3606 #define    STRUCT_FILE_TEST_CT  1
3607 tTestDesc aStruct_FileTests[] = {
3608   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
3609
3610 /*
3611  *  Fix Command Arguments for Struct_File
3612  */
3613 const char* apzStruct_FilePatch[] = {
3614     "format",
3615     "struct __file_s;\n\
3616 %0",
3617     (char*)NULL };
3618
3619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3620  *
3621  *  Description of Struct_Sockaddr fix
3622  */
3623 #define STRUCT_SOCKADDR_FIXIDX           88
3624 tSCC zStruct_SockaddrName[] =
3625      "struct_sockaddr";
3626
3627 /*
3628  *  File name selection pattern
3629  */
3630 tSCC zStruct_SockaddrList[] =
3631   "|rpc/auth.h|";
3632 /*
3633  *  Machine/OS name selection pattern
3634  */
3635 #define apzStruct_SockaddrMachs (const char**)NULL
3636
3637 /*
3638  *  content selection pattern - do fix if pattern found
3639  */
3640 tSCC zStruct_SockaddrSelect0[] =
3641        "^.*authdes_create.*struct sockaddr";
3642
3643 /*
3644  *  content bypass pattern - skip fix if pattern found
3645  */
3646 tSCC zStruct_SockaddrBypass0[] =
3647        "<sys/socket.h>";
3648
3649 #define    STRUCT_SOCKADDR_TEST_CT  2
3650 tTestDesc aStruct_SockaddrTests[] = {
3651   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
3652   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
3653
3654 /*
3655  *  Fix Command Arguments for Struct_Sockaddr
3656  */
3657 const char* apzStruct_SockaddrPatch[] = {
3658     "format",
3659     "struct sockaddr;\n\
3660 %0",
3661     (char*)NULL };
3662
3663 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3664  *
3665  *  Description of Sun_Auth_Proto fix
3666  */
3667 #define SUN_AUTH_PROTO_FIXIDX            89
3668 tSCC zSun_Auth_ProtoName[] =
3669      "sun_auth_proto";
3670
3671 /*
3672  *  File name selection pattern
3673  */
3674 tSCC zSun_Auth_ProtoList[] =
3675   "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
3676 /*
3677  *  Machine/OS name selection pattern
3678  */
3679 #define apzSun_Auth_ProtoMachs (const char**)NULL
3680
3681 /*
3682  *  content selection pattern - do fix if pattern found
3683  */
3684 tSCC zSun_Auth_ProtoSelect0[] =
3685        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
3686
3687 #define    SUN_AUTH_PROTO_TEST_CT  1
3688 tTestDesc aSun_Auth_ProtoTests[] = {
3689   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
3690
3691 /*
3692  *  Fix Command Arguments for Sun_Auth_Proto
3693  */
3694 const char* apzSun_Auth_ProtoPatch[] = {
3695     "format",
3696     "#ifdef __cplusplus\n\
3697 %1(...);%2\n\
3698 #else\n\
3699 %1();%2\n\
3700 #endif",
3701     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
3702     (char*)NULL };
3703
3704 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3705  *
3706  *  Description of Sun_Bogus_Ifdef fix
3707  */
3708 #define SUN_BOGUS_IFDEF_FIXIDX           90
3709 tSCC zSun_Bogus_IfdefName[] =
3710      "sun_bogus_ifdef";
3711
3712 /*
3713  *  File name selection pattern
3714  */
3715 tSCC zSun_Bogus_IfdefList[] =
3716   "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
3717 /*
3718  *  Machine/OS name selection pattern
3719  */
3720 #define apzSun_Bogus_IfdefMachs (const char**)NULL
3721
3722 /*
3723  *  content selection pattern - do fix if pattern found
3724  */
3725 tSCC zSun_Bogus_IfdefSelect0[] =
3726        "#ifdef(.*\\|\\|.*)";
3727
3728 #define    SUN_BOGUS_IFDEF_TEST_CT  1
3729 tTestDesc aSun_Bogus_IfdefTests[] = {
3730   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
3731
3732 /*
3733  *  Fix Command Arguments for Sun_Bogus_Ifdef
3734  */
3735 const char* apzSun_Bogus_IfdefPatch[] = {
3736     "format",
3737     "#if%1",
3738     (char*)NULL };
3739
3740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3741  *
3742  *  Description of Sun_Catmacro fix
3743  */
3744 #define SUN_CATMACRO_FIXIDX              91
3745 tSCC zSun_CatmacroName[] =
3746      "sun_catmacro";
3747
3748 /*
3749  *  File name selection pattern
3750  */
3751 tSCC zSun_CatmacroList[] =
3752   "|pixrect/memvar.h|";
3753 /*
3754  *  Machine/OS name selection pattern
3755  */
3756 #define apzSun_CatmacroMachs (const char**)NULL
3757
3758 /*
3759  *  content selection pattern - do fix if pattern found
3760  */
3761 tSCC zSun_CatmacroSelect0[] =
3762        "^#define[ \t]+CAT\\(a,b\\).*";
3763
3764 #define    SUN_CATMACRO_TEST_CT  1
3765 tTestDesc aSun_CatmacroTests[] = {
3766   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
3767
3768 /*
3769  *  Fix Command Arguments for Sun_Catmacro
3770  */
3771 const char* apzSun_CatmacroPatch[] = {
3772     "format",
3773     "#ifdef __STDC__\n\
3774 #  define CAT(a,b) a##b\n\
3775 #else\n\
3776 %0\n\
3777 #endif",
3778     (char*)NULL };
3779
3780 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3781  *
3782  *  Description of Sun_Malloc fix
3783  */
3784 #define SUN_MALLOC_FIXIDX                92
3785 tSCC zSun_MallocName[] =
3786      "sun_malloc";
3787
3788 /*
3789  *  File name selection pattern
3790  */
3791 tSCC zSun_MallocList[] =
3792   "|malloc.h|";
3793 /*
3794  *  Machine/OS name selection pattern
3795  */
3796 #define apzSun_MallocMachs (const char**)NULL
3797 #define SUN_MALLOC_TEST_CT  0
3798 #define aSun_MallocTests   (tTestDesc*)NULL
3799
3800 /*
3801  *  Fix Command Arguments for Sun_Malloc
3802  */
3803 const char* apzSun_MallocPatch[] = { "sed",
3804     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
3805     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
3806     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
3807     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
3808     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
3809     (char*)NULL };
3810
3811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3812  *
3813  *  Description of Sun_Rusers_Semi fix
3814  */
3815 #define SUN_RUSERS_SEMI_FIXIDX           93
3816 tSCC zSun_Rusers_SemiName[] =
3817      "sun_rusers_semi";
3818
3819 /*
3820  *  File name selection pattern
3821  */
3822 tSCC zSun_Rusers_SemiList[] =
3823   "|rpcsvc/rusers.h|";
3824 /*
3825  *  Machine/OS name selection pattern
3826  */
3827 #define apzSun_Rusers_SemiMachs (const char**)NULL
3828
3829 /*
3830  *  content selection pattern - do fix if pattern found
3831  */
3832 tSCC zSun_Rusers_SemiSelect0[] =
3833        "_cnt$";
3834
3835 #define    SUN_RUSERS_SEMI_TEST_CT  1
3836 tTestDesc aSun_Rusers_SemiTests[] = {
3837   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
3838
3839 /*
3840  *  Fix Command Arguments for Sun_Rusers_Semi
3841  */
3842 const char* apzSun_Rusers_SemiPatch[] = { "sed",
3843     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
3844     (char*)NULL };
3845
3846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3847  *
3848  *  Description of Sun_Signal fix
3849  */
3850 #define SUN_SIGNAL_FIXIDX                94
3851 tSCC zSun_SignalName[] =
3852      "sun_signal";
3853
3854 /*
3855  *  File name selection pattern
3856  */
3857 tSCC zSun_SignalList[] =
3858   "|sys/signal.h|signal.h|";
3859 /*
3860  *  Machine/OS name selection pattern
3861  */
3862 #define apzSun_SignalMachs (const char**)NULL
3863
3864 /*
3865  *  content selection pattern - do fix if pattern found
3866  */
3867 tSCC zSun_SignalSelect0[] =
3868        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
3869
3870 #define    SUN_SIGNAL_TEST_CT  1
3871 tTestDesc aSun_SignalTests[] = {
3872   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
3873
3874 /*
3875  *  Fix Command Arguments for Sun_Signal
3876  */
3877 const char* apzSun_SignalPatch[] = {
3878     "format",
3879     "#ifdef __cplusplus\n\
3880 void\t(*signal(...))(...);\n\
3881 #else\n\
3882 %0\n\
3883 #endif",
3884     (char*)NULL };
3885
3886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3887  *
3888  *  Description of Sunos_Matherr_Decl fix
3889  */
3890 #define SUNOS_MATHERR_DECL_FIXIDX        95
3891 tSCC zSunos_Matherr_DeclName[] =
3892      "sunos_matherr_decl";
3893
3894 /*
3895  *  File name selection pattern
3896  */
3897 tSCC zSunos_Matherr_DeclList[] =
3898   "|math.h|";
3899 /*
3900  *  Machine/OS name selection pattern
3901  */
3902 #define apzSunos_Matherr_DeclMachs (const char**)NULL
3903
3904 /*
3905  *  content selection pattern - do fix if pattern found
3906  */
3907 tSCC zSunos_Matherr_DeclSelect0[] =
3908        "matherr";
3909
3910 /*
3911  *  content bypass pattern - skip fix if pattern found
3912  */
3913 tSCC zSunos_Matherr_DeclBypass0[] =
3914        "matherr.*struct exception";
3915
3916 #define    SUNOS_MATHERR_DECL_TEST_CT  2
3917 tTestDesc aSunos_Matherr_DeclTests[] = {
3918   { TT_NEGREP,   zSunos_Matherr_DeclBypass0, (regex_t*)NULL },
3919   { TT_EGREP,    zSunos_Matherr_DeclSelect0, (regex_t*)NULL }, };
3920
3921 /*
3922  *  Fix Command Arguments for Sunos_Matherr_Decl
3923  */
3924 const char* apzSunos_Matherr_DeclPatch[] = {
3925     "wrap",
3926     "struct exception;\n",
3927     (char*)NULL };
3928
3929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3930  *
3931  *  Description of Sunos_Strlen fix
3932  */
3933 #define SUNOS_STRLEN_FIXIDX              96
3934 tSCC zSunos_StrlenName[] =
3935      "sunos_strlen";
3936
3937 /*
3938  *  File name selection pattern
3939  */
3940 tSCC zSunos_StrlenList[] =
3941   "|strings.h|";
3942 /*
3943  *  Machine/OS name selection pattern
3944  */
3945 #define apzSunos_StrlenMachs (const char**)NULL
3946
3947 /*
3948  *  content selection pattern - do fix if pattern found
3949  */
3950 tSCC zSunos_StrlenSelect0[] =
3951        "int[ \t]*strlen\\(\\);(.*)";
3952
3953 #define    SUNOS_STRLEN_TEST_CT  1
3954 tTestDesc aSunos_StrlenTests[] = {
3955   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
3956
3957 /*
3958  *  Fix Command Arguments for Sunos_Strlen
3959  */
3960 const char* apzSunos_StrlenPatch[] = {
3961     "format",
3962     "__SIZE_TYPE__ strlen();%1",
3963     (char*)NULL };
3964
3965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3966  *
3967  *  Description of Svr4__P fix
3968  */
3969 #define SVR4__P_FIXIDX                   97
3970 tSCC zSvr4__PName[] =
3971      "svr4__p";
3972
3973 /*
3974  *  File name selection pattern
3975  */
3976 tSCC zSvr4__PList[] =
3977   "|math.h|floatingpoint.h|";
3978 /*
3979  *  Machine/OS name selection pattern
3980  */
3981 #define apzSvr4__PMachs (const char**)NULL
3982
3983 /*
3984  *  content selection pattern - do fix if pattern found
3985  */
3986 tSCC zSvr4__PSelect0[] =
3987        "^#define[ \t]+__P.*";
3988
3989 #define    SVR4__P_TEST_CT  1
3990 tTestDesc aSvr4__PTests[] = {
3991   { TT_EGREP,    zSvr4__PSelect0, (regex_t*)NULL }, };
3992
3993 /*
3994  *  Fix Command Arguments for Svr4__P
3995  */
3996 const char* apzSvr4__PPatch[] = {
3997     "format",
3998     "#ifndef __P\n\
3999 %0\n\
4000 #endif",
4001     (char*)NULL };
4002
4003 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4004  *
4005  *  Description of Svr4_Getcwd fix
4006  */
4007 #define SVR4_GETCWD_FIXIDX               98
4008 tSCC zSvr4_GetcwdName[] =
4009      "svr4_getcwd";
4010
4011 /*
4012  *  File name selection pattern
4013  */
4014 tSCC zSvr4_GetcwdList[] =
4015   "|stdlib.h|unistd.h|prototypes.h|";
4016 /*
4017  *  Machine/OS name selection pattern
4018  */
4019 #define apzSvr4_GetcwdMachs (const char**)NULL
4020
4021 /*
4022  *  content selection pattern - do fix if pattern found
4023  */
4024 tSCC zSvr4_GetcwdSelect0[] =
4025        "getcwd\\(char \\*, int\\)";
4026
4027 #define    SVR4_GETCWD_TEST_CT  1
4028 tTestDesc aSvr4_GetcwdTests[] = {
4029   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
4030
4031 /*
4032  *  Fix Command Arguments for Svr4_Getcwd
4033  */
4034 const char* apzSvr4_GetcwdPatch[] = {
4035     "format",
4036     "getcwd(char *, size_t)",
4037     (char*)NULL };
4038
4039 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4040  *
4041  *  Description of Svr4_Profil fix
4042  */
4043 #define SVR4_PROFIL_FIXIDX               99
4044 tSCC zSvr4_ProfilName[] =
4045      "svr4_profil";
4046
4047 /*
4048  *  File name selection pattern
4049  */
4050 tSCC zSvr4_ProfilList[] =
4051   "|stdlib.h|unistd.h|";
4052 /*
4053  *  Machine/OS name selection pattern
4054  */
4055 #define apzSvr4_ProfilMachs (const char**)NULL
4056
4057 /*
4058  *  content selection pattern - do fix if pattern found
4059  */
4060 tSCC zSvr4_ProfilSelect0[] =
4061        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
4062
4063 #define    SVR4_PROFIL_TEST_CT  1
4064 tTestDesc aSvr4_ProfilTests[] = {
4065   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
4066
4067 /*
4068  *  Fix Command Arguments for Svr4_Profil
4069  */
4070 const char* apzSvr4_ProfilPatch[] = {
4071     "format",
4072     "profil(unsigned short *, size_t, int, unsigned int)",
4073     (char*)NULL };
4074
4075 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4076  *
4077  *  Description of Gnu_Types fix
4078  */
4079 #define GNU_TYPES_FIXIDX                 100
4080 tSCC zGnu_TypesName[] =
4081      "gnu_types";
4082
4083 /*
4084  *  File name selection pattern
4085  */
4086 tSCC zGnu_TypesList[] =
4087   "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
4088 /*
4089  *  Machine/OS name selection pattern
4090  */
4091 #define apzGnu_TypesMachs (const char**)NULL
4092
4093 /*
4094  *  content selection pattern - do fix if pattern found
4095  */
4096 tSCC zGnu_TypesSelect0[] =
4097        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
4098
4099 /*
4100  *  content bypass pattern - skip fix if pattern found
4101  */
4102 tSCC zGnu_TypesBypass0[] =
4103        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
4104
4105 #define    GNU_TYPES_TEST_CT  2
4106 tTestDesc aGnu_TypesTests[] = {
4107   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
4108   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
4109
4110 /*
4111  *  Fix Command Arguments for Gnu_Types
4112  */
4113 const char* apzGnu_TypesPatch[] = {
4114     "gnu_type",
4115     (char*)NULL };
4116
4117 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4118  *
4119  *  Description of Sysv68_String fix
4120  */
4121 #define SYSV68_STRING_FIXIDX             101
4122 tSCC zSysv68_StringName[] =
4123      "sysv68_string";
4124
4125 /*
4126  *  File name selection pattern
4127  */
4128 tSCC zSysv68_StringList[] =
4129   "|testing.h|string.h|";
4130 /*
4131  *  Machine/OS name selection pattern
4132  */
4133 #define apzSysv68_StringMachs (const char**)NULL
4134 #define SYSV68_STRING_TEST_CT  0
4135 #define aSysv68_StringTests   (tTestDesc*)NULL
4136
4137 /*
4138  *  Fix Command Arguments for Sysv68_String
4139  */
4140 const char* apzSysv68_StringPatch[] = { "sed",
4141     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
4142     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
4143     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
4144     "-e", "/^extern char$/N",
4145     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
4146     "-e", "/^\tstrncmp(),$/N",
4147     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
4148 extern unsigned int\\\n\
4149 \\2/",
4150     "-e", "/^extern int$/N",
4151     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
4152     (char*)NULL };
4153
4154 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4155  *
4156  *  Description of Sysz_Stdlib_For_Sun fix
4157  */
4158 #define SYSZ_STDLIB_FOR_SUN_FIXIDX       102
4159 tSCC zSysz_Stdlib_For_SunName[] =
4160      "sysz_stdlib_for_sun";
4161
4162 /*
4163  *  File name selection pattern
4164  */
4165 tSCC zSysz_Stdlib_For_SunList[] =
4166   "|stdlib.h|";
4167 /*
4168  *  Machine/OS name selection pattern
4169  */
4170 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
4171
4172 /*
4173  *  content selection pattern - do fix if pattern found
4174  */
4175 tSCC zSysz_Stdlib_For_SunSelect0[] =
4176        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
4177
4178 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  1
4179 tTestDesc aSysz_Stdlib_For_SunTests[] = {
4180   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
4181
4182 /*
4183  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
4184  */
4185 const char* apzSysz_Stdlib_For_SunPatch[] = {
4186     "format",
4187     "void *\t%1(",
4188     (char*)NULL };
4189
4190 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4191  *
4192  *  Description of Tinfo_Cplusplus fix
4193  */
4194 #define TINFO_CPLUSPLUS_FIXIDX           103
4195 tSCC zTinfo_CplusplusName[] =
4196      "tinfo_cplusplus";
4197
4198 /*
4199  *  File name selection pattern
4200  */
4201 tSCC zTinfo_CplusplusList[] =
4202   "|tinfo.h|";
4203 /*
4204  *  Machine/OS name selection pattern
4205  */
4206 #define apzTinfo_CplusplusMachs (const char**)NULL
4207
4208 /*
4209  *  content selection pattern - do fix if pattern found
4210  */
4211 tSCC zTinfo_CplusplusSelect0[] =
4212        "[ \t]_cplusplus";
4213
4214 #define    TINFO_CPLUSPLUS_TEST_CT  1
4215 tTestDesc aTinfo_CplusplusTests[] = {
4216   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
4217
4218 /*
4219  *  Fix Command Arguments for Tinfo_Cplusplus
4220  */
4221 const char* apzTinfo_CplusplusPatch[] = {
4222     "format",
4223     " __cplusplus",
4224     (char*)NULL };
4225
4226 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4227  *
4228  *  Description of Ultrix_Atof_Param fix
4229  */
4230 #define ULTRIX_ATOF_PARAM_FIXIDX         104
4231 tSCC zUltrix_Atof_ParamName[] =
4232      "ultrix_atof_param";
4233
4234 /*
4235  *  File name selection pattern
4236  */
4237 tSCC zUltrix_Atof_ParamList[] =
4238   "|math.h|";
4239 /*
4240  *  Machine/OS name selection pattern
4241  */
4242 #define apzUltrix_Atof_ParamMachs (const char**)NULL
4243
4244 /*
4245  *  content selection pattern - do fix if pattern found
4246  */
4247 tSCC zUltrix_Atof_ParamSelect0[] =
4248        "atof\\([ \t]*char";
4249
4250 #define    ULTRIX_ATOF_PARAM_TEST_CT  1
4251 tTestDesc aUltrix_Atof_ParamTests[] = {
4252   { TT_EGREP,    zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
4253
4254 /*
4255  *  Fix Command Arguments for Ultrix_Atof_Param
4256  */
4257 const char* apzUltrix_Atof_ParamPatch[] = {
4258     "format",
4259     "atof(const char",
4260     (char*)NULL };
4261
4262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4263  *
4264  *  Description of Ultrix_Const fix
4265  */
4266 #define ULTRIX_CONST_FIXIDX              105
4267 tSCC zUltrix_ConstName[] =
4268      "ultrix_const";
4269
4270 /*
4271  *  File name selection pattern
4272  */
4273 tSCC zUltrix_ConstList[] =
4274   "|stdio.h|";
4275 /*
4276  *  Machine/OS name selection pattern
4277  */
4278 #define apzUltrix_ConstMachs (const char**)NULL
4279
4280 /*
4281  *  content selection pattern - do fix if pattern found
4282  */
4283 tSCC zUltrix_ConstSelect0[] =
4284        "perror\\( char \\*";
4285
4286 #define    ULTRIX_CONST_TEST_CT  1
4287 tTestDesc aUltrix_ConstTests[] = {
4288   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
4289
4290 /*
4291  *  Fix Command Arguments for Ultrix_Const
4292  */
4293 const char* apzUltrix_ConstPatch[] = {
4294     "format",
4295     "%1 const %3 *__",
4296     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
4297     (char*)NULL };
4298
4299 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4300  *
4301  *  Description of Ultrix_Const2 fix
4302  */
4303 #define ULTRIX_CONST2_FIXIDX             106
4304 tSCC zUltrix_Const2Name[] =
4305      "ultrix_const2";
4306
4307 /*
4308  *  File name selection pattern
4309  */
4310 tSCC zUltrix_Const2List[] =
4311   "|stdio.h|";
4312 /*
4313  *  Machine/OS name selection pattern
4314  */
4315 #define apzUltrix_Const2Machs (const char**)NULL
4316
4317 /*
4318  *  content selection pattern - do fix if pattern found
4319  */
4320 tSCC zUltrix_Const2Select0[] =
4321        "\\*fopen\\( char \\*";
4322
4323 #define    ULTRIX_CONST2_TEST_CT  1
4324 tTestDesc aUltrix_Const2Tests[] = {
4325   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
4326
4327 /*
4328  *  Fix Command Arguments for Ultrix_Const2
4329  */
4330 const char* apzUltrix_Const2Patch[] = {
4331     "format",
4332     "%1( const char *%3, const char *",
4333     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
4334     (char*)NULL };
4335
4336 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4337  *
4338  *  Description of Ultrix_Fix_Fixproto fix
4339  */
4340 #define ULTRIX_FIX_FIXPROTO_FIXIDX       107
4341 tSCC zUltrix_Fix_FixprotoName[] =
4342      "ultrix_fix_fixproto";
4343
4344 /*
4345  *  File name selection pattern
4346  */
4347 tSCC zUltrix_Fix_FixprotoList[] =
4348   "|sys/utsname.h|";
4349 /*
4350  *  Machine/OS name selection pattern
4351  */
4352 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
4353
4354 /*
4355  *  content selection pattern - do fix if pattern found
4356  */
4357 tSCC zUltrix_Fix_FixprotoSelect0[] =
4358        "ULTRIX";
4359
4360 #define    ULTRIX_FIX_FIXPROTO_TEST_CT  1
4361 tTestDesc aUltrix_Fix_FixprotoTests[] = {
4362   { TT_EGREP,    zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
4363
4364 /*
4365  *  Fix Command Arguments for Ultrix_Fix_Fixproto
4366  */
4367 const char* apzUltrix_Fix_FixprotoPatch[] = {
4368     "format",
4369     "struct utsname;\n\
4370 %0",
4371     "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
4372     (char*)NULL };
4373
4374 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4375  *
4376  *  Description of Ultrix_Ifdef fix
4377  */
4378 #define ULTRIX_IFDEF_FIXIDX              108
4379 tSCC zUltrix_IfdefName[] =
4380      "ultrix_ifdef";
4381
4382 /*
4383  *  File name selection pattern
4384  */
4385 tSCC zUltrix_IfdefList[] =
4386   "|sys/file.h|";
4387 /*
4388  *  Machine/OS name selection pattern
4389  */
4390 #define apzUltrix_IfdefMachs (const char**)NULL
4391
4392 /*
4393  *  content selection pattern - do fix if pattern found
4394  */
4395 tSCC zUltrix_IfdefSelect0[] =
4396        "^#ifdef KERNEL[ \t]+&&";
4397
4398 #define    ULTRIX_IFDEF_TEST_CT  1
4399 tTestDesc aUltrix_IfdefTests[] = {
4400   { TT_EGREP,    zUltrix_IfdefSelect0, (regex_t*)NULL }, };
4401
4402 /*
4403  *  Fix Command Arguments for Ultrix_Ifdef
4404  */
4405 const char* apzUltrix_IfdefPatch[] = {
4406     "format",
4407     "#if defined(KERNEL) &&",
4408     (char*)NULL };
4409
4410 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4411  *
4412  *  Description of Ultrix_Math_Ifdef fix
4413  */
4414 #define ULTRIX_MATH_IFDEF_FIXIDX         109
4415 tSCC zUltrix_Math_IfdefName[] =
4416      "ultrix_math_ifdef";
4417
4418 /*
4419  *  File name selection pattern
4420  */
4421 tSCC zUltrix_Math_IfdefList[] =
4422   "|sys/limits.h|float.h|math.h|";
4423 /*
4424  *  Machine/OS name selection pattern
4425  */
4426 #define apzUltrix_Math_IfdefMachs (const char**)NULL
4427
4428 /*
4429  *  content selection pattern - do fix if pattern found
4430  */
4431 tSCC zUltrix_Math_IfdefSelect0[] =
4432        "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
4433
4434 #define    ULTRIX_MATH_IFDEF_TEST_CT  1
4435 tTestDesc aUltrix_Math_IfdefTests[] = {
4436   { TT_EGREP,    zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
4437
4438 /*
4439  *  Fix Command Arguments for Ultrix_Math_Ifdef
4440  */
4441 const char* apzUltrix_Math_IfdefPatch[] = {
4442     "format",
4443     "%1",
4444     (char*)NULL };
4445
4446 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4447  *
4448  *  Description of Ultrix_Nested_Ioctl fix
4449  */
4450 #define ULTRIX_NESTED_IOCTL_FIXIDX       110
4451 tSCC zUltrix_Nested_IoctlName[] =
4452      "ultrix_nested_ioctl";
4453
4454 /*
4455  *  File name selection pattern
4456  */
4457 tSCC zUltrix_Nested_IoctlList[] =
4458   "|sys/ioctl.h|";
4459 /*
4460  *  Machine/OS name selection pattern
4461  */
4462 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
4463
4464 /*
4465  *  content selection pattern - do fix if pattern found
4466  */
4467 tSCC zUltrix_Nested_IoctlSelect0[] =
4468        "^/\\* #define SIOCSCREEN";
4469
4470 #define    ULTRIX_NESTED_IOCTL_TEST_CT  1
4471 tTestDesc aUltrix_Nested_IoctlTests[] = {
4472   { TT_EGREP,    zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
4473
4474 /*
4475  *  Fix Command Arguments for Ultrix_Nested_Ioctl
4476  */
4477 const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
4478     "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
4479     (char*)NULL };
4480
4481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4482  *
4483  *  Description of Ultrix_Nested_Svc fix
4484  */
4485 #define ULTRIX_NESTED_SVC_FIXIDX         111
4486 tSCC zUltrix_Nested_SvcName[] =
4487      "ultrix_nested_svc";
4488
4489 /*
4490  *  File name selection pattern
4491  */
4492 tSCC zUltrix_Nested_SvcList[] =
4493   "|rpc/svc.h|";
4494 /*
4495  *  Machine/OS name selection pattern
4496  */
4497 #define apzUltrix_Nested_SvcMachs (const char**)NULL
4498
4499 /*
4500  *  content selection pattern - do fix if pattern found
4501  */
4502 tSCC zUltrix_Nested_SvcSelect0[] =
4503        "^ \\*[ \t]*int protocol;  */\\*";
4504
4505 #define    ULTRIX_NESTED_SVC_TEST_CT  1
4506 tTestDesc aUltrix_Nested_SvcTests[] = {
4507   { TT_EGREP,    zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
4508
4509 /*
4510  *  Fix Command Arguments for Ultrix_Nested_Svc
4511  */
4512 const char* apzUltrix_Nested_SvcPatch[] = { "sed",
4513     "-e", "s@^\\( \\*\tint protocol;  \\)/\\*@\\1*/ /*@",
4514     (char*)NULL };
4515
4516 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4517  *
4518  *  Description of Ultrix_Stat fix
4519  */
4520 #define ULTRIX_STAT_FIXIDX               112
4521 tSCC zUltrix_StatName[] =
4522      "ultrix_stat";
4523
4524 /*
4525  *  File name selection pattern
4526  */
4527 tSCC zUltrix_StatList[] =
4528   "|sys/stat.h|";
4529 /*
4530  *  Machine/OS name selection pattern
4531  */
4532 #define apzUltrix_StatMachs (const char**)NULL
4533
4534 /*
4535  *  content selection pattern - do fix if pattern found
4536  */
4537 tSCC zUltrix_StatSelect0[] =
4538        "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
4539
4540 #define    ULTRIX_STAT_TEST_CT  1
4541 tTestDesc aUltrix_StatTests[] = {
4542   { TT_EGREP,    zUltrix_StatSelect0, (regex_t*)NULL }, };
4543
4544 /*
4545  *  Fix Command Arguments for Ultrix_Stat
4546  */
4547 const char* apzUltrix_StatPatch[] = { "sed",
4548     "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
4549 \\\n\
4550 /* macro to test for symbolic link */\\\n\
4551 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\
4552 \n",
4553     "-e", "/^[ \t]*fstat(),$/a\\\n\
4554 \tlstat(),\n",
4555     (char*)NULL };
4556
4557 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4558  *
4559  *  Description of Ultrix_Static fix
4560  */
4561 #define ULTRIX_STATIC_FIXIDX             113
4562 tSCC zUltrix_StaticName[] =
4563      "ultrix_static";
4564
4565 /*
4566  *  File name selection pattern
4567  */
4568 tSCC zUltrix_StaticList[] =
4569   "|machine/cpu.h|";
4570 /*
4571  *  Machine/OS name selection pattern
4572  */
4573 #define apzUltrix_StaticMachs (const char**)NULL
4574
4575 /*
4576  *  content selection pattern - do fix if pattern found
4577  */
4578 tSCC zUltrix_StaticSelect0[] =
4579        "#include \"r[34]_cpu";
4580
4581 #define    ULTRIX_STATIC_TEST_CT  1
4582 tTestDesc aUltrix_StaticTests[] = {
4583   { TT_EGREP,    zUltrix_StaticSelect0, (regex_t*)NULL }, };
4584
4585 /*
4586  *  Fix Command Arguments for Ultrix_Static
4587  */
4588 const char* apzUltrix_StaticPatch[] = { "sed",
4589     "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
4590     "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
4591     "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
4592     (char*)NULL };
4593
4594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4595  *
4596  *  Description of Ultrix_Strings fix
4597  */
4598 #define ULTRIX_STRINGS_FIXIDX            114
4599 tSCC zUltrix_StringsName[] =
4600      "ultrix_strings";
4601
4602 /*
4603  *  File name selection pattern
4604  */
4605 tSCC zUltrix_StringsList[] =
4606   "|strings.h|";
4607 /*
4608  *  Machine/OS name selection pattern
4609  */
4610 #define apzUltrix_StringsMachs (const char**)NULL
4611
4612 /*
4613  *  content selection pattern - do fix if pattern found
4614  */
4615 tSCC zUltrix_StringsSelect0[] =
4616        "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
4617
4618 #define    ULTRIX_STRINGS_TEST_CT  1
4619 tTestDesc aUltrix_StringsTests[] = {
4620   { TT_EGREP,    zUltrix_StringsSelect0, (regex_t*)NULL }, };
4621
4622 /*
4623  *  Fix Command Arguments for Ultrix_Strings
4624  */
4625 const char* apzUltrix_StringsPatch[] = {
4626     "wrap",
4627     (char*)NULL };
4628
4629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4630  *
4631  *  Description of Undefine_Null fix
4632  */
4633 #define UNDEFINE_NULL_FIXIDX             115
4634 tSCC zUndefine_NullName[] =
4635      "undefine_null";
4636
4637 /*
4638  *  File name selection pattern
4639  */
4640 #define zUndefine_NullList (char*)NULL
4641 /*
4642  *  Machine/OS name selection pattern
4643  */
4644 #define apzUndefine_NullMachs (const char**)NULL
4645
4646 /*
4647  *  content selection pattern - do fix if pattern found
4648  */
4649 tSCC zUndefine_NullSelect0[] =
4650        "^#[ \t]*define[ \t]+NULL[ \t]";
4651
4652 /*
4653  *  content bypass pattern - skip fix if pattern found
4654  */
4655 tSCC zUndefine_NullBypass0[] =
4656        "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
4657
4658 #define    UNDEFINE_NULL_TEST_CT  2
4659 tTestDesc aUndefine_NullTests[] = {
4660   { TT_NEGREP,   zUndefine_NullBypass0, (regex_t*)NULL },
4661   { TT_EGREP,    zUndefine_NullSelect0, (regex_t*)NULL }, };
4662
4663 /*
4664  *  Fix Command Arguments for Undefine_Null
4665  */
4666 const char* apzUndefine_NullPatch[] = {
4667     "format",
4668     "#ifndef NULL%2\n\
4669 #define NULL%1%2\n\
4670 #endif%2\n",
4671     "^#[ \t]*define[ \t]*[ \t]NULL([^\r\n\
4672 ]+)([\r]*)\n",
4673     (char*)NULL };
4674
4675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4676  *
4677  *  Description of Uw7_Byteorder_Fix fix
4678  */
4679 #define UW7_BYTEORDER_FIX_FIXIDX         116
4680 tSCC zUw7_Byteorder_FixName[] =
4681      "uw7_byteorder_fix";
4682
4683 /*
4684  *  File name selection pattern
4685  */
4686 tSCC zUw7_Byteorder_FixList[] =
4687   "|arpa/inet.h|";
4688 /*
4689  *  Machine/OS name selection pattern
4690  */
4691 tSCC* apzUw7_Byteorder_FixMachs[] = {
4692         "*-*-sysv4*",
4693         "i?86-*-sysv5*",
4694         "i?86-*-udk*",
4695         "i?86-*-solaris2.[0-4]",
4696         "powerpcle-*-solaris2.[0-4]",
4697         "sparc-*-solaris2.[0-4]",
4698         (const char*)NULL };
4699
4700 /*
4701  *  content selection pattern - do fix if pattern found
4702  */
4703 tSCC zUw7_Byteorder_FixSelect0[] =
4704        "in_port_t";
4705
4706 /*
4707  *  perform the 'test' shell command - do fix on success
4708  */
4709 tSCC zUw7_Byteorder_FixTest0[] =
4710        "-f $DESTDIR/sys/byteorder.h";
4711
4712 #define    UW7_BYTEORDER_FIX_TEST_CT  2
4713 tTestDesc aUw7_Byteorder_FixTests[] = {
4714   { TT_TEST,     zUw7_Byteorder_FixTest0,   0 /* unused */ },
4715   { TT_EGREP,    zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
4716
4717 /*
4718  *  Fix Command Arguments for Uw7_Byteorder_Fix
4719  */
4720 const char* apzUw7_Byteorder_FixPatch[] = {
4721     "format",
4722     "",
4723     "^extern.*(htons|ntohs).*\\(in_port_t\\).*\n",
4724     (char*)NULL };
4725
4726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4727  *
4728  *  Description of Va_I960_Macro fix
4729  */
4730 #define VA_I960_MACRO_FIXIDX             117
4731 tSCC zVa_I960_MacroName[] =
4732      "va_i960_macro";
4733
4734 /*
4735  *  File name selection pattern
4736  */
4737 tSCC zVa_I960_MacroList[] =
4738   "|arch/i960/archI960.h|";
4739 /*
4740  *  Machine/OS name selection pattern
4741  */
4742 #define apzVa_I960_MacroMachs (const char**)NULL
4743
4744 /*
4745  *  content selection pattern - do fix if pattern found
4746  */
4747 tSCC zVa_I960_MacroSelect0[] =
4748        "__(vsiz|vali|vpad|alignof__)";
4749
4750 #define    VA_I960_MACRO_TEST_CT  1
4751 tTestDesc aVa_I960_MacroTests[] = {
4752   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
4753
4754 /*
4755  *  Fix Command Arguments for Va_I960_Macro
4756  */
4757 const char* apzVa_I960_MacroPatch[] = {
4758     "format",
4759     "__vx%1",
4760     (char*)NULL };
4761
4762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4763  *
4764  *  Description of Void_Null fix
4765  */
4766 #define VOID_NULL_FIXIDX                 118
4767 tSCC zVoid_NullName[] =
4768      "void_null";
4769
4770 /*
4771  *  File name selection pattern
4772  */
4773 tSCC zVoid_NullList[] =
4774   "|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|";
4775 /*
4776  *  Machine/OS name selection pattern
4777  */
4778 #define apzVoid_NullMachs (const char**)NULL
4779
4780 /*
4781  *  content selection pattern - do fix if pattern found
4782  */
4783 tSCC zVoid_NullSelect0[] =
4784        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
4785
4786 #define    VOID_NULL_TEST_CT  1
4787 tTestDesc aVoid_NullTests[] = {
4788   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
4789
4790 /*
4791  *  Fix Command Arguments for Void_Null
4792  */
4793 const char* apzVoid_NullPatch[] = {
4794     "format",
4795     "#define NULL 0",
4796     (char*)NULL };
4797
4798 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4799  *
4800  *  Description of Vxworks_Gcc_Problem fix
4801  */
4802 #define VXWORKS_GCC_PROBLEM_FIXIDX       119
4803 tSCC zVxworks_Gcc_ProblemName[] =
4804      "vxworks_gcc_problem";
4805
4806 /*
4807  *  File name selection pattern
4808  */
4809 tSCC zVxworks_Gcc_ProblemList[] =
4810   "|types/vxTypesBase.h|";
4811 /*
4812  *  Machine/OS name selection pattern
4813  */
4814 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
4815
4816 /*
4817  *  content selection pattern - do fix if pattern found
4818  */
4819 tSCC zVxworks_Gcc_ProblemSelect0[] =
4820        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
4821
4822 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
4823 tTestDesc aVxworks_Gcc_ProblemTests[] = {
4824   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
4825
4826 /*
4827  *  Fix Command Arguments for Vxworks_Gcc_Problem
4828  */
4829 const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
4830     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
4831     "-e", "/[ \t]size_t/i\\\n\
4832 #ifndef _GCC_SIZE_T\\\n\
4833 #define _GCC_SIZE_T\n",
4834     "-e", "/[ \t]size_t/a\\\n\
4835 #endif\n",
4836     "-e", "/[ \t]ptrdiff_t/i\\\n\
4837 #ifndef _GCC_PTRDIFF_T\\\n\
4838 #define _GCC_PTRDIFF_T\n",
4839     "-e", "/[ \t]ptrdiff_t/a\\\n\
4840 #endif\n",
4841     "-e", "/[ \t]wchar_t/i\\\n\
4842 #ifndef _GCC_WCHAR_T\\\n\
4843 #define _GCC_WCHAR_T\n",
4844     "-e", "/[ \t]wchar_t/a\\\n\
4845 #endif\n",
4846     (char*)NULL };
4847
4848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4849  *
4850  *  Description of Vxworks_Needs_Vxtypes fix
4851  */
4852 #define VXWORKS_NEEDS_VXTYPES_FIXIDX     120
4853 tSCC zVxworks_Needs_VxtypesName[] =
4854      "vxworks_needs_vxtypes";
4855
4856 /*
4857  *  File name selection pattern
4858  */
4859 tSCC zVxworks_Needs_VxtypesList[] =
4860   "|time.h|";
4861 /*
4862  *  Machine/OS name selection pattern
4863  */
4864 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
4865
4866 /*
4867  *  content selection pattern - do fix if pattern found
4868  */
4869 tSCC zVxworks_Needs_VxtypesSelect0[] =
4870        "uint_t([ \t]+_clocks_per_sec)";
4871
4872 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
4873 tTestDesc aVxworks_Needs_VxtypesTests[] = {
4874   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
4875
4876 /*
4877  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
4878  */
4879 const char* apzVxworks_Needs_VxtypesPatch[] = {
4880     "format",
4881     "unsigned int%1",
4882     (char*)NULL };
4883
4884 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4885  *
4886  *  Description of Vxworks_Needs_Vxworks fix
4887  */
4888 #define VXWORKS_NEEDS_VXWORKS_FIXIDX     121
4889 tSCC zVxworks_Needs_VxworksName[] =
4890      "vxworks_needs_vxworks";
4891
4892 /*
4893  *  File name selection pattern
4894  */
4895 tSCC zVxworks_Needs_VxworksList[] =
4896   "|sys/stat.h|";
4897 /*
4898  *  Machine/OS name selection pattern
4899  */
4900 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
4901
4902 /*
4903  *  content selection pattern - do fix if pattern found
4904  */
4905 tSCC zVxworks_Needs_VxworksSelect0[] =
4906        "#[ \t]define[ \t]+__INCstath";
4907
4908 /*
4909  *  perform the 'test' shell command - do fix on success
4910  */
4911 tSCC zVxworks_Needs_VxworksTest0[] =
4912        " -r types/vxTypesOld.h";
4913 tSCC zVxworks_Needs_VxworksTest1[] =
4914        " -n \"`egrep '#include' $file`\"";
4915 tSCC zVxworks_Needs_VxworksTest2[] =
4916        " -n \"`egrep ULONG $file`\"";
4917
4918 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
4919 tTestDesc aVxworks_Needs_VxworksTests[] = {
4920   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
4921   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
4922   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
4923   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
4924
4925 /*
4926  *  Fix Command Arguments for Vxworks_Needs_Vxworks
4927  */
4928 const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
4929     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
4930 #include <types/vxTypesOld.h>\n",
4931     (char*)NULL };
4932
4933 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4934  *
4935  *  Description of Vxworks_Time fix
4936  */
4937 #define VXWORKS_TIME_FIXIDX              122
4938 tSCC zVxworks_TimeName[] =
4939      "vxworks_time";
4940
4941 /*
4942  *  File name selection pattern
4943  */
4944 tSCC zVxworks_TimeList[] =
4945   "|time.h|";
4946 /*
4947  *  Machine/OS name selection pattern
4948  */
4949 #define apzVxworks_TimeMachs (const char**)NULL
4950
4951 /*
4952  *  content selection pattern - do fix if pattern found
4953  */
4954 tSCC zVxworks_TimeSelect0[] =
4955        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
4956
4957 /*
4958  *  perform the 'test' shell command - do fix on success
4959  */
4960 tSCC zVxworks_TimeTest0[] =
4961        " -r vxWorks.h";
4962
4963 #define    VXWORKS_TIME_TEST_CT  2
4964 tTestDesc aVxworks_TimeTests[] = {
4965   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
4966   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
4967
4968 /*
4969  *  Fix Command Arguments for Vxworks_Time
4970  */
4971 const char* apzVxworks_TimePatch[] = {
4972     "format",
4973     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
4974 #ifdef __cplusplus\n\
4975 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
4976 #else\n\
4977 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
4978 #endif\n\
4979 #define __gcc_VOIDFUNCPTR_defined\n\
4980 #endif\n\
4981 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
4982     (char*)NULL };
4983
4984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4985  *
4986  *  Description of X11_Class fix
4987  */
4988 #define X11_CLASS_FIXIDX                 123
4989 tSCC zX11_ClassName[] =
4990      "x11_class";
4991
4992 /*
4993  *  File name selection pattern
4994  */
4995 tSCC zX11_ClassList[] =
4996   "|X11/ShellP.h|";
4997 /*
4998  *  Machine/OS name selection pattern
4999  */
5000 #define apzX11_ClassMachs (const char**)NULL
5001
5002 /*
5003  *  content selection pattern - do fix if pattern found
5004  */
5005 tSCC zX11_ClassSelect0[] =
5006        "^([ \t]*char \\*)class;(.*)";
5007
5008 /*
5009  *  content bypass pattern - skip fix if pattern found
5010  */
5011 tSCC zX11_ClassBypass0[] =
5012        "__cplusplus";
5013
5014 #define    X11_CLASS_TEST_CT  2
5015 tTestDesc aX11_ClassTests[] = {
5016   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
5017   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
5018
5019 /*
5020  *  Fix Command Arguments for X11_Class
5021  */
5022 const char* apzX11_ClassPatch[] = {
5023     "format",
5024     "#ifdef __cplusplus\n\
5025 %1c_class;%2\n\
5026 #else\n\
5027 %1class;%2\n\
5028 #endif",
5029     (char*)NULL };
5030
5031 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5032  *
5033  *  Description of X11_Class_Usage fix
5034  */
5035 #define X11_CLASS_USAGE_FIXIDX           124
5036 tSCC zX11_Class_UsageName[] =
5037      "x11_class_usage";
5038
5039 /*
5040  *  File name selection pattern
5041  */
5042 tSCC zX11_Class_UsageList[] =
5043   "|Xm/BaseClassI.h|";
5044 /*
5045  *  Machine/OS name selection pattern
5046  */
5047 #define apzX11_Class_UsageMachs (const char**)NULL
5048
5049 /*
5050  *  content selection pattern - do fix if pattern found
5051  */
5052 tSCC zX11_Class_UsageSelect0[] =
5053        " class\\)";
5054
5055 /*
5056  *  content bypass pattern - skip fix if pattern found
5057  */
5058 tSCC zX11_Class_UsageBypass0[] =
5059        "__cplusplus";
5060
5061 #define    X11_CLASS_USAGE_TEST_CT  2
5062 tTestDesc aX11_Class_UsageTests[] = {
5063   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
5064   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
5065
5066 /*
5067  *  Fix Command Arguments for X11_Class_Usage
5068  */
5069 const char* apzX11_Class_UsagePatch[] = {
5070     "format",
5071     " c_class)",
5072     (char*)NULL };
5073
5074 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5075  *
5076  *  Description of X11_New fix
5077  */
5078 #define X11_NEW_FIXIDX                   125
5079 tSCC zX11_NewName[] =
5080      "x11_new";
5081
5082 /*
5083  *  File name selection pattern
5084  */
5085 tSCC zX11_NewList[] =
5086   "|Xm/Traversal.h|";
5087 /*
5088  *  Machine/OS name selection pattern
5089  */
5090 #define apzX11_NewMachs (const char**)NULL
5091
5092 /*
5093  *  content bypass pattern - skip fix if pattern found
5094  */
5095 tSCC zX11_NewBypass0[] =
5096        "__cplusplus";
5097
5098 #define    X11_NEW_TEST_CT  1
5099 tTestDesc aX11_NewTests[] = {
5100   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
5101
5102 /*
5103  *  Fix Command Arguments for X11_New
5104  */
5105 const char* apzX11_NewPatch[] = { "sed",
5106     "-e", "/Widget\told, new;/i\\\n\
5107 #ifdef __cplusplus\\\n\
5108 \tWidget\told, c_new;\\\n\
5109 #else\n",
5110     "-e", "/Widget\told, new;/a\\\n\
5111 #endif\n",
5112     "-e", "s/Widget new,/Widget c_new,/g",
5113     (char*)NULL };
5114
5115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5116  *
5117  *  Description of X11_Sprintf fix
5118  */
5119 #define X11_SPRINTF_FIXIDX               126
5120 tSCC zX11_SprintfName[] =
5121      "x11_sprintf";
5122
5123 /*
5124  *  File name selection pattern
5125  */
5126 tSCC zX11_SprintfList[] =
5127   "|X11/Xmu.h|X11/Xmu/Xmu.h|";
5128 /*
5129  *  Machine/OS name selection pattern
5130  */
5131 #define apzX11_SprintfMachs (const char**)NULL
5132
5133 /*
5134  *  content selection pattern - do fix if pattern found
5135  */
5136 tSCC zX11_SprintfSelect0[] =
5137        "^extern char \\*\tsprintf\\(\\);$";
5138
5139 #define    X11_SPRINTF_TEST_CT  1
5140 tTestDesc aX11_SprintfTests[] = {
5141   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
5142
5143 /*
5144  *  Fix Command Arguments for X11_Sprintf
5145  */
5146 const char* apzX11_SprintfPatch[] = {
5147     "format",
5148     "#ifndef __STDC__\n\
5149 %0\n\
5150 #endif /* !defined __STDC__ */",
5151     (char*)NULL };
5152
5153
5154 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5155  *
5156  *  List of all fixes
5157  */
5158 #define REGEX_COUNT          131
5159 #define MACH_LIST_SIZE_LIMIT 279
5160 #define FIX_COUNT            127
5161
5162 tFixDesc fixDescList[ FIX_COUNT ] = {
5163   {  zAaa_Ki_IfaceName,    zAaa_Ki_IfaceList,
5164      apzAaa_Ki_IfaceMachs,
5165      AAA_KI_IFACE_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5166      aAaa_Ki_IfaceTests,   apzAaa_Ki_IfacePatch },
5167
5168   {  zAaa_KiName,    zAaa_KiList,
5169      apzAaa_KiMachs,
5170      AAA_KI_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5171      aAaa_KiTests,   apzAaa_KiPatch },
5172
5173   {  zAaa_Ki_CallsName,    zAaa_Ki_CallsList,
5174      apzAaa_Ki_CallsMachs,
5175      AAA_KI_CALLS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5176      aAaa_Ki_CallsTests,   apzAaa_Ki_CallsPatch },
5177
5178   {  zAaa_Ki_DefsName,    zAaa_Ki_DefsList,
5179      apzAaa_Ki_DefsMachs,
5180      AAA_KI_DEFS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5181      aAaa_Ki_DefsTests,   apzAaa_Ki_DefsPatch },
5182
5183   {  zAaa_Bad_FixesName,    zAaa_Bad_FixesList,
5184      apzAaa_Bad_FixesMachs,
5185      AAA_BAD_FIXES_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5186      aAaa_Bad_FixesTests,   apzAaa_Bad_FixesPatch },
5187
5188   {  zAaa_TimeName,    zAaa_TimeList,
5189      apzAaa_TimeMachs,
5190      AAA_TIME_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5191      aAaa_TimeTests,   apzAaa_TimePatch },
5192
5193   {  zAab_Dgux_Int_VarargsName,    zAab_Dgux_Int_VarargsList,
5194      apzAab_Dgux_Int_VarargsMachs,
5195      AAB_DGUX_INT_VARARGS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5196      aAab_Dgux_Int_VarargsTests,   apzAab_Dgux_Int_VarargsPatch },
5197
5198   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
5199      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
5200      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5201      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch },
5202
5203   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
5204      apzAab_Fd_Zero_Gnu_Types_HMachs,
5205      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5206      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch },
5207
5208   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
5209      apzAab_Fd_Zero_Selectbits_HMachs,
5210      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5211      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch },
5212
5213   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
5214      apzAab_Sun_MemcpyMachs,
5215      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5216      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch },
5217
5218   {  zAab_Svr4_Replace_ByteorderName,    zAab_Svr4_Replace_ByteorderList,
5219      apzAab_Svr4_Replace_ByteorderMachs,
5220      AAB_SVR4_REPLACE_BYTEORDER_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5221      aAab_Svr4_Replace_ByteorderTests,   apzAab_Svr4_Replace_ByteorderPatch },
5222
5223   {  zAab_Ultrix_Ansi_CompatName,    zAab_Ultrix_Ansi_CompatList,
5224      apzAab_Ultrix_Ansi_CompatMachs,
5225      AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5226      aAab_Ultrix_Ansi_CompatTests,   apzAab_Ultrix_Ansi_CompatPatch },
5227
5228   {  zAab_Ultrix_LimitsName,    zAab_Ultrix_LimitsList,
5229      apzAab_Ultrix_LimitsMachs,
5230      AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5231      aAab_Ultrix_LimitsTests,   apzAab_Ultrix_LimitsPatch },
5232
5233   {  zAab_Ultrix_MemoryName,    zAab_Ultrix_MemoryList,
5234      apzAab_Ultrix_MemoryMachs,
5235      AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5236      aAab_Ultrix_MemoryTests,   apzAab_Ultrix_MemoryPatch },
5237
5238   {  zAab_Ultrix_StringName,    zAab_Ultrix_StringList,
5239      apzAab_Ultrix_StringMachs,
5240      AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5241      aAab_Ultrix_StringTests,   apzAab_Ultrix_StringPatch },
5242
5243   {  zAix_SyswaitName,    zAix_SyswaitList,
5244      apzAix_SyswaitMachs,
5245      AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5246      aAix_SyswaitTests,   apzAix_SyswaitPatch },
5247
5248   {  zAix_VolatileName,    zAix_VolatileList,
5249      apzAix_VolatileMachs,
5250      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5251      aAix_VolatileTests,   apzAix_VolatilePatch },
5252
5253   {  zAlpha_GetoptName,    zAlpha_GetoptList,
5254      apzAlpha_GetoptMachs,
5255      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5256      aAlpha_GetoptTests,   apzAlpha_GetoptPatch },
5257
5258   {  zAlpha_ParensName,    zAlpha_ParensList,
5259      apzAlpha_ParensMachs,
5260      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5261      aAlpha_ParensTests,   apzAlpha_ParensPatch },
5262
5263   {  zAlpha_SbrkName,    zAlpha_SbrkList,
5264      apzAlpha_SbrkMachs,
5265      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5266      aAlpha_SbrkTests,   apzAlpha_SbrkPatch },
5267
5268   {  zArm_Norcroft_HintName,    zArm_Norcroft_HintList,
5269      apzArm_Norcroft_HintMachs,
5270      ARM_NORCROFT_HINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5271      aArm_Norcroft_HintTests,   apzArm_Norcroft_HintPatch },
5272
5273   {  zArm_WcharName,    zArm_WcharList,
5274      apzArm_WcharMachs,
5275      ARM_WCHAR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5276      aArm_WcharTests,   apzArm_WcharPatch },
5277
5278   {  zAux_AsmName,    zAux_AsmList,
5279      apzAux_AsmMachs,
5280      AUX_ASM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5281      aAux_AsmTests,   apzAux_AsmPatch },
5282
5283   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
5284      apzAvoid_Bool_DefineMachs,
5285      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5286      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch },
5287
5288   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
5289      apzAvoid_Bool_TypeMachs,
5290      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5291      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch },
5292
5293   {  zBad_LvalName,    zBad_LvalList,
5294      apzBad_LvalMachs,
5295      BAD_LVAL_TEST_CT, FD_MACH_ONLY,
5296      aBad_LvalTests,   apzBad_LvalPatch },
5297
5298   {  zBad_Struct_TermName,    zBad_Struct_TermList,
5299      apzBad_Struct_TermMachs,
5300      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5301      aBad_Struct_TermTests,   apzBad_Struct_TermPatch },
5302
5303   {  zBadquoteName,    zBadquoteList,
5304      apzBadquoteMachs,
5305      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5306      aBadquoteTests,   apzBadquotePatch },
5307
5308   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
5309      apzBroken_Assert_StdioMachs,
5310      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5311      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch },
5312
5313   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
5314      apzBroken_Assert_StdlibMachs,
5315      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5316      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch },
5317
5318   {  zBroken_CabsName,    zBroken_CabsList,
5319      apzBroken_CabsMachs,
5320      BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5321      aBroken_CabsTests,   apzBroken_CabsPatch },
5322
5323   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
5324      apzCtrl_Quotes_DefMachs,
5325      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5326      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch },
5327
5328   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
5329      apzCtrl_Quotes_UseMachs,
5330      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5331      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch },
5332
5333   {  zCxx_UnreadyName,    zCxx_UnreadyList,
5334      apzCxx_UnreadyMachs,
5335      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5336      aCxx_UnreadyTests,   apzCxx_UnreadyPatch },
5337
5338   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
5339      apzDec_Intern_AsmMachs,
5340      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
5341      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch },
5342
5343   {  zEcd_CursorName,    zEcd_CursorList,
5344      apzEcd_CursorMachs,
5345      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5346      aEcd_CursorTests,   apzEcd_CursorPatch },
5347
5348   {  zFix_Header_BreakageName,    zFix_Header_BreakageList,
5349      apzFix_Header_BreakageMachs,
5350      FIX_HEADER_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5351      aFix_Header_BreakageTests,   apzFix_Header_BreakagePatch },
5352
5353   {  zHp_InlineName,    zHp_InlineList,
5354      apzHp_InlineMachs,
5355      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5356      aHp_InlineTests,   apzHp_InlinePatch },
5357
5358   {  zHp_SysfileName,    zHp_SysfileList,
5359      apzHp_SysfileMachs,
5360      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5361      aHp_SysfileTests,   apzHp_SysfilePatch },
5362
5363   {  zHpux11_FabsfName,    zHpux11_FabsfList,
5364      apzHpux11_FabsfMachs,
5365      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5366      aHpux11_FabsfTests,   apzHpux11_FabsfPatch },
5367
5368   {  zHpux11_Uint32_CName,    zHpux11_Uint32_CList,
5369      apzHpux11_Uint32_CMachs,
5370      HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5371      aHpux11_Uint32_CTests,   apzHpux11_Uint32_CPatch },
5372
5373   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
5374      apzHpux8_Bogus_InlinesMachs,
5375      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
5376      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch },
5377
5378   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
5379      apzInt_Abort_Free_And_ExitMachs,
5380      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5381      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch },
5382
5383   {  zIsc_Omits_With_StdcName,    zIsc_Omits_With_StdcList,
5384      apzIsc_Omits_With_StdcMachs,
5385      ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5386      aIsc_Omits_With_StdcTests,   apzIsc_Omits_With_StdcPatch },
5387
5388   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
5389      apzIo_Quotes_DefMachs,
5390      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5391      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch },
5392
5393   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
5394      apzIo_Quotes_UseMachs,
5395      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5396      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch },
5397
5398   {  zHpux_MaxintName,    zHpux_MaxintList,
5399      apzHpux_MaxintMachs,
5400      HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5401      aHpux_MaxintTests,   apzHpux_MaxintPatch },
5402
5403   {  zHpux_SystimeName,    zHpux_SystimeList,
5404      apzHpux_SystimeMachs,
5405      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5406      aHpux_SystimeTests,   apzHpux_SystimePatch },
5407
5408   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
5409      apzIp_Missing_SemiMachs,
5410      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
5411      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch },
5412
5413   {  zIrix_Asm_ApostropheName,    zIrix_Asm_ApostropheList,
5414      apzIrix_Asm_ApostropheMachs,
5415      IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5416      aIrix_Asm_ApostropheTests,   apzIrix_Asm_ApostrophePatch },
5417
5418   {  zIsc_FmodName,    zIsc_FmodList,
5419      apzIsc_FmodMachs,
5420      ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5421      aIsc_FmodTests,   apzIsc_FmodPatch },
5422
5423   {  zKandr_ConcatName,    zKandr_ConcatList,
5424      apzKandr_ConcatMachs,
5425      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5426      aKandr_ConcatTests,   apzKandr_ConcatPatch },
5427
5428   {  zLibc1_Ifdefd_MemxName,    zLibc1_Ifdefd_MemxList,
5429      apzLibc1_Ifdefd_MemxMachs,
5430      LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5431      aLibc1_Ifdefd_MemxTests,   apzLibc1_Ifdefd_MemxPatch },
5432
5433   {  zLimits_IfndefsName,    zLimits_IfndefsList,
5434      apzLimits_IfndefsMachs,
5435      LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5436      aLimits_IfndefsTests,   apzLimits_IfndefsPatch },
5437
5438   {  zLynx_Void_IntName,    zLynx_Void_IntList,
5439      apzLynx_Void_IntMachs,
5440      LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5441      aLynx_Void_IntTests,   apzLynx_Void_IntPatch },
5442
5443   {  zLynxos_Fcntl_ProtoName,    zLynxos_Fcntl_ProtoList,
5444      apzLynxos_Fcntl_ProtoMachs,
5445      LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5446      aLynxos_Fcntl_ProtoTests,   apzLynxos_Fcntl_ProtoPatch },
5447
5448   {  zM88k_Bad_Hypot_OptName,    zM88k_Bad_Hypot_OptList,
5449      apzM88k_Bad_Hypot_OptMachs,
5450      M88K_BAD_HYPOT_OPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5451      aM88k_Bad_Hypot_OptTests,   apzM88k_Bad_Hypot_OptPatch },
5452
5453   {  zM88k_Bad_S_IfName,    zM88k_Bad_S_IfList,
5454      apzM88k_Bad_S_IfMachs,
5455      M88K_BAD_S_IF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5456      aM88k_Bad_S_IfTests,   apzM88k_Bad_S_IfPatch },
5457
5458   {  zM88k_Multi_InclName,    zM88k_Multi_InclList,
5459      apzM88k_Multi_InclMachs,
5460      M88K_MULTI_INCL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5461      aM88k_Multi_InclTests,   apzM88k_Multi_InclPatch },
5462
5463   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
5464      apzMachine_Ansi_H_Va_ListMachs,
5465      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5466      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch },
5467
5468   {  zMachine_NameName,    zMachine_NameList,
5469      apzMachine_NameMachs,
5470      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5471      aMachine_NameTests,   apzMachine_NamePatch },
5472
5473   {  zMath_ExceptionName,    zMath_ExceptionList,
5474      apzMath_ExceptionMachs,
5475      MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5476      aMath_ExceptionTests,   apzMath_ExceptionPatch },
5477
5478   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
5479      apzMath_Huge_Val_From_Dbl_MaxMachs,
5480      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
5481      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch },
5482
5483   {  zMath_Huge_Val_IfndefName,    zMath_Huge_Val_IfndefList,
5484      apzMath_Huge_Val_IfndefMachs,
5485      MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5486      aMath_Huge_Val_IfndefTests,   apzMath_Huge_Val_IfndefPatch },
5487
5488   {  zNested_MotorolaName,    zNested_MotorolaList,
5489      apzNested_MotorolaMachs,
5490      NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
5491      aNested_MotorolaTests,   apzNested_MotorolaPatch },
5492
5493   {  zNested_Sys_LimitsName,    zNested_Sys_LimitsList,
5494      apzNested_Sys_LimitsMachs,
5495      NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
5496      aNested_Sys_LimitsTests,   apzNested_Sys_LimitsPatch },
5497
5498   {  zNested_Auth_DesName,    zNested_Auth_DesList,
5499      apzNested_Auth_DesMachs,
5500      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5501      aNested_Auth_DesTests,   apzNested_Auth_DesPatch },
5502
5503   {  zNews_Os_RecursionName,    zNews_Os_RecursionList,
5504      apzNews_Os_RecursionMachs,
5505      NEWS_OS_RECURSION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5506      aNews_Os_RecursionTests,   apzNews_Os_RecursionPatch },
5507
5508   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
5509      apzNext_Math_PrefixMachs,
5510      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5511      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch },
5512
5513   {  zNext_TemplateName,    zNext_TemplateList,
5514      apzNext_TemplateMachs,
5515      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5516      aNext_TemplateTests,   apzNext_TemplatePatch },
5517
5518   {  zNext_VolitileName,    zNext_VolitileList,
5519      apzNext_VolitileMachs,
5520      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5521      aNext_VolitileTests,   apzNext_VolitilePatch },
5522
5523   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
5524      apzNext_Wait_UnionMachs,
5525      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5526      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch },
5527
5528   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
5529      apzNodeent_SyntaxMachs,
5530      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5531      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch },
5532
5533   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
5534      apzOsf_Namespace_AMachs,
5535      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5536      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch },
5537
5538   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
5539      apzOsf_Namespace_CMachs,
5540      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5541      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch },
5542
5543   {  zPthread_Page_SizeName,    zPthread_Page_SizeList,
5544      apzPthread_Page_SizeMachs,
5545      PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5546      aPthread_Page_SizeTests,   apzPthread_Page_SizePatch },
5547
5548   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
5549      apzRead_Ret_TypeMachs,
5550      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5551      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch },
5552
5553   {  zRs6000_DoubleName,    zRs6000_DoubleList,
5554      apzRs6000_DoubleMachs,
5555      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5556      aRs6000_DoubleTests,   apzRs6000_DoublePatch },
5557
5558   {  zRs6000_FchmodName,    zRs6000_FchmodList,
5559      apzRs6000_FchmodMachs,
5560      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5561      aRs6000_FchmodTests,   apzRs6000_FchmodPatch },
5562
5563   {  zRs6000_ParamName,    zRs6000_ParamList,
5564      apzRs6000_ParamMachs,
5565      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5566      aRs6000_ParamTests,   apzRs6000_ParamPatch },
5567
5568   {  zSco_Static_FuncName,    zSco_Static_FuncList,
5569      apzSco_Static_FuncMachs,
5570      SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
5571      aSco_Static_FuncTests,   apzSco_Static_FuncPatch },
5572
5573   {  zSco_Strict_AnsiName,    zSco_Strict_AnsiList,
5574      apzSco_Strict_AnsiMachs,
5575      SCO_STRICT_ANSI_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5576      aSco_Strict_AnsiTests,   apzSco_Strict_AnsiPatch },
5577
5578   {  zSco_UtimeName,    zSco_UtimeList,
5579      apzSco_UtimeMachs,
5580      SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5581      aSco_UtimeTests,   apzSco_UtimePatch },
5582
5583   {  zStatsswtchName,    zStatsswtchList,
5584      apzStatsswtchMachs,
5585      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5586      aStatsswtchTests,   apzStatsswtchPatch },
5587
5588   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
5589      apzStdio_Stdarg_HMachs,
5590      STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5591      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch },
5592
5593   {  zStdio_Va_ListName,    zStdio_Va_ListList,
5594      apzStdio_Va_ListMachs,
5595      STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
5596      aStdio_Va_ListTests,   apzStdio_Va_ListPatch },
5597
5598   {  zStruct_FileName,    zStruct_FileList,
5599      apzStruct_FileMachs,
5600      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5601      aStruct_FileTests,   apzStruct_FilePatch },
5602
5603   {  zStruct_SockaddrName,    zStruct_SockaddrList,
5604      apzStruct_SockaddrMachs,
5605      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5606      aStruct_SockaddrTests,   apzStruct_SockaddrPatch },
5607
5608   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
5609      apzSun_Auth_ProtoMachs,
5610      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5611      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch },
5612
5613   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
5614      apzSun_Bogus_IfdefMachs,
5615      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5616      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch },
5617
5618   {  zSun_CatmacroName,    zSun_CatmacroList,
5619      apzSun_CatmacroMachs,
5620      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5621      aSun_CatmacroTests,   apzSun_CatmacroPatch },
5622
5623   {  zSun_MallocName,    zSun_MallocList,
5624      apzSun_MallocMachs,
5625      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
5626      aSun_MallocTests,   apzSun_MallocPatch },
5627
5628   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
5629      apzSun_Rusers_SemiMachs,
5630      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
5631      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch },
5632
5633   {  zSun_SignalName,    zSun_SignalList,
5634      apzSun_SignalMachs,
5635      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5636      aSun_SignalTests,   apzSun_SignalPatch },
5637
5638   {  zSunos_Matherr_DeclName,    zSunos_Matherr_DeclList,
5639      apzSunos_Matherr_DeclMachs,
5640      SUNOS_MATHERR_DECL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5641      aSunos_Matherr_DeclTests,   apzSunos_Matherr_DeclPatch },
5642
5643   {  zSunos_StrlenName,    zSunos_StrlenList,
5644      apzSunos_StrlenMachs,
5645      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5646      aSunos_StrlenTests,   apzSunos_StrlenPatch },
5647
5648   {  zSvr4__PName,    zSvr4__PList,
5649      apzSvr4__PMachs,
5650      SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5651      aSvr4__PTests,   apzSvr4__PPatch },
5652
5653   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
5654      apzSvr4_GetcwdMachs,
5655      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5656      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch },
5657
5658   {  zSvr4_ProfilName,    zSvr4_ProfilList,
5659      apzSvr4_ProfilMachs,
5660      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5661      aSvr4_ProfilTests,   apzSvr4_ProfilPatch },
5662
5663   {  zGnu_TypesName,    zGnu_TypesList,
5664      apzGnu_TypesMachs,
5665      GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5666      aGnu_TypesTests,   apzGnu_TypesPatch },
5667
5668   {  zSysv68_StringName,    zSysv68_StringList,
5669      apzSysv68_StringMachs,
5670      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
5671      aSysv68_StringTests,   apzSysv68_StringPatch },
5672
5673   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
5674      apzSysz_Stdlib_For_SunMachs,
5675      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5676      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch },
5677
5678   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
5679      apzTinfo_CplusplusMachs,
5680      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5681      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch },
5682
5683   {  zUltrix_Atof_ParamName,    zUltrix_Atof_ParamList,
5684      apzUltrix_Atof_ParamMachs,
5685      ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5686      aUltrix_Atof_ParamTests,   apzUltrix_Atof_ParamPatch },
5687
5688   {  zUltrix_ConstName,    zUltrix_ConstList,
5689      apzUltrix_ConstMachs,
5690      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5691      aUltrix_ConstTests,   apzUltrix_ConstPatch },
5692
5693   {  zUltrix_Const2Name,    zUltrix_Const2List,
5694      apzUltrix_Const2Machs,
5695      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5696      aUltrix_Const2Tests,   apzUltrix_Const2Patch },
5697
5698   {  zUltrix_Fix_FixprotoName,    zUltrix_Fix_FixprotoList,
5699      apzUltrix_Fix_FixprotoMachs,
5700      ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5701      aUltrix_Fix_FixprotoTests,   apzUltrix_Fix_FixprotoPatch },
5702
5703   {  zUltrix_IfdefName,    zUltrix_IfdefList,
5704      apzUltrix_IfdefMachs,
5705      ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5706      aUltrix_IfdefTests,   apzUltrix_IfdefPatch },
5707
5708   {  zUltrix_Math_IfdefName,    zUltrix_Math_IfdefList,
5709      apzUltrix_Math_IfdefMachs,
5710      ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5711      aUltrix_Math_IfdefTests,   apzUltrix_Math_IfdefPatch },
5712
5713   {  zUltrix_Nested_IoctlName,    zUltrix_Nested_IoctlList,
5714      apzUltrix_Nested_IoctlMachs,
5715      ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
5716      aUltrix_Nested_IoctlTests,   apzUltrix_Nested_IoctlPatch },
5717
5718   {  zUltrix_Nested_SvcName,    zUltrix_Nested_SvcList,
5719      apzUltrix_Nested_SvcMachs,
5720      ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
5721      aUltrix_Nested_SvcTests,   apzUltrix_Nested_SvcPatch },
5722
5723   {  zUltrix_StatName,    zUltrix_StatList,
5724      apzUltrix_StatMachs,
5725      ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
5726      aUltrix_StatTests,   apzUltrix_StatPatch },
5727
5728   {  zUltrix_StaticName,    zUltrix_StaticList,
5729      apzUltrix_StaticMachs,
5730      ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
5731      aUltrix_StaticTests,   apzUltrix_StaticPatch },
5732
5733   {  zUltrix_StringsName,    zUltrix_StringsList,
5734      apzUltrix_StringsMachs,
5735      ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5736      aUltrix_StringsTests,   apzUltrix_StringsPatch },
5737
5738   {  zUndefine_NullName,    zUndefine_NullList,
5739      apzUndefine_NullMachs,
5740      UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5741      aUndefine_NullTests,   apzUndefine_NullPatch },
5742
5743   {  zUw7_Byteorder_FixName,    zUw7_Byteorder_FixList,
5744      apzUw7_Byteorder_FixMachs,
5745      UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5746      aUw7_Byteorder_FixTests,   apzUw7_Byteorder_FixPatch },
5747
5748   {  zVa_I960_MacroName,    zVa_I960_MacroList,
5749      apzVa_I960_MacroMachs,
5750      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5751      aVa_I960_MacroTests,   apzVa_I960_MacroPatch },
5752
5753   {  zVoid_NullName,    zVoid_NullList,
5754      apzVoid_NullMachs,
5755      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5756      aVoid_NullTests,   apzVoid_NullPatch },
5757
5758   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
5759      apzVxworks_Gcc_ProblemMachs,
5760      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
5761      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch },
5762
5763   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
5764      apzVxworks_Needs_VxtypesMachs,
5765      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5766      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch },
5767
5768   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
5769      apzVxworks_Needs_VxworksMachs,
5770      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
5771      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch },
5772
5773   {  zVxworks_TimeName,    zVxworks_TimeList,
5774      apzVxworks_TimeMachs,
5775      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5776      aVxworks_TimeTests,   apzVxworks_TimePatch },
5777
5778   {  zX11_ClassName,    zX11_ClassList,
5779      apzX11_ClassMachs,
5780      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5781      aX11_ClassTests,   apzX11_ClassPatch },
5782
5783   {  zX11_Class_UsageName,    zX11_Class_UsageList,
5784      apzX11_Class_UsageMachs,
5785      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5786      aX11_Class_UsageTests,   apzX11_Class_UsagePatch },
5787
5788   {  zX11_NewName,    zX11_NewList,
5789      apzX11_NewMachs,
5790      X11_NEW_TEST_CT, FD_MACH_ONLY,
5791      aX11_NewTests,   apzX11_NewPatch },
5792
5793   {  zX11_SprintfName,    zX11_SprintfList,
5794      apzX11_SprintfMachs,
5795      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5796      aX11_SprintfTests,   apzX11_SprintfPatch }
5797 };
5798
5799 #define GNU_TYPE_CT 3
5800 int gnu_type_map_ct = GNU_TYPE_CT;
5801
5802 tSCC z_cxx_guard[] = " && !defined(__cplusplus)";
5803 tSCC z_nil[]       = "";
5804
5805 t_gnu_type_map gnu_type_map[ GNU_TYPE_CT ] = {
5806   { 7, "ptrdiff", "PTRDIFF", "long int", z_nil },
5807   { 4, "size", "SIZE", "long unsigned int", z_nil },
5808   { 5, "wchar", "WCHAR", "int", z_cxx_guard }
5809 };