OSDN Git Service

PR tree-optimization/19853
[pf3gnuchains/gcc-fork.git] / fixincludes / fixincl.x
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  * 
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  * 
5  * It has been AutoGen-ed  Friday November 26, 2004 at 09:59:26 PM UTC
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT CVS-MERGE THIS FILE, EITHER Fri Nov 26 21:59:26 UTC 2004
10  *
11  * You must regenerate it.  Use the ./genfixes script.
12  *
13  *
14  * This is part of the fixincl program used to install modified versions of
15  * certain ANSI-incompatible system header files which are fixed to work
16  * correctly with ANSI C and placed in a directory that GNU C will search.
17  *
18  * This file contains 177 fixup descriptions.
19  *
20  * See README for more information.
21  *
22  *  inclhack copyright (c) 1998, 1999, 2000, 2001
23  *  The Free Software Foundation, Inc.
24  *
25   *  inclhack is free software.
26  *  
27  *  You may redistribute it and/or modify it under the terms of the
28  *  GNU General Public License, as published by the Free Software
29  *  Foundation; either version 2, or (at your option) any later version.
30  *  
31  *  inclhack is distributed in the hope that it will be useful,
32  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
33  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34  *  See the GNU General Public License for more details.
35  *  
36  *  You should have received a copy of the GNU General Public License
37  *  along with inclhack.  See the file "COPYING".  If not,
38  *  write to:  The Free Software Foundation, Inc.,
39  *             59 Temple Place - Suite 330,
40  *             Boston,  MA  02111-1307, USA.
41  */
42
43 /* * * * * * * * * * * * * * * * * * * * * * * * * *
44  *
45  *  Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
46  */
47 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
48      "AAB_fd_zero_asm_posix_types_h";
49
50 /*
51  *  File name selection pattern
52  */
53 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
54   "|asm/posix_types.h|";
55 /*
56  *  Machine/OS name selection pattern
57  */
58 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
59         "i[34567]86-*-linux*",
60         (const char*)NULL };
61
62 /*
63  *  content bypass pattern - skip fix if pattern found
64  */
65 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
66        "} while";
67
68 #define    AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT  1
69 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
70   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
71
72 /*
73  *  Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
74  */
75 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
76 "/* This file fixes a bug in the __FD_ZERO macro\n\
77    for older versions of the Linux kernel. */\n\
78 #ifndef _POSIX_TYPES_H_WRAPPER\n\
79 #include <features.h>\n\
80  #include_next <asm/posix_types.h>\n\n\
81 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
82 #undef __FD_ZERO\n\
83 #define __FD_ZERO(fdsetp) \\\n\
84   do { \\\n\
85     int __d0, __d1; \\\n\
86 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
87 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
88 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
89   \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
90   } while (0)\n\
91 #endif\n\n\
92 #define _POSIX_TYPES_H_WRAPPER\n\
93 #endif /* _POSIX_TYPES_H_WRAPPER */",
94     (char*)NULL };
95
96 /* * * * * * * * * * * * * * * * * * * * * * * * * *
97  *
98  *  Description of Aab_Fd_Zero_Gnu_Types_H fix
99  */
100 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
101      "AAB_fd_zero_gnu_types_h";
102
103 /*
104  *  File name selection pattern
105  */
106 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
107   "|gnu/types.h|";
108 /*
109  *  Machine/OS name selection pattern
110  */
111 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
112         "i[34567]86-*-linux*",
113         (const char*)NULL };
114 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT  0
115 #define aAab_Fd_Zero_Gnu_Types_HTests   (tTestDesc*)NULL
116
117 /*
118  *  Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
119  */
120 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
121 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
122 #ifndef _TYPES_H_WRAPPER\n\
123 #include <features.h>\n\
124 #include_next <gnu/types.h>\n\n\
125 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
126 #undef __FD_ZERO\n\
127 # define __FD_ZERO(fdsetp) \\\\\n\
128   do { \\\\\n\
129     int __d0, __d1; \\\\\n\
130 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\\\n\
131         \t: \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
132         \t: \"a\" (0), \"0\" (__FDSET_LONGS), \\\\\n\
133   \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\\\n\
134   } while (0)\n\
135 #endif\n\n\
136 #define _TYPES_H_WRAPPER\n\
137 #endif /* _TYPES_H_WRAPPER */",
138     (char*)NULL };
139
140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
141  *
142  *  Description of Aab_Fd_Zero_Selectbits_H fix
143  */
144 tSCC zAab_Fd_Zero_Selectbits_HName[] =
145      "AAB_fd_zero_selectbits_h";
146
147 /*
148  *  File name selection pattern
149  */
150 tSCC zAab_Fd_Zero_Selectbits_HList[] =
151   "|selectbits.h|";
152 /*
153  *  Machine/OS name selection pattern
154  */
155 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
156         "i[34567]86-*-linux*",
157         (const char*)NULL };
158 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT  0
159 #define aAab_Fd_Zero_Selectbits_HTests   (tTestDesc*)NULL
160
161 /*
162  *  Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
163  */
164 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
165 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
166 #ifndef _SELECTBITS_H_WRAPPER\n\
167   #include <features.h>\n\
168   #include_next <selectbits.h>\n\n\
169   #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
170   && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
171   && __GLIBC_MINOR__ == 0\n\
172      #undef __FD_ZERO\n\
173      #define __FD_ZERO(fdsetp) \\\\\n\
174      do { \\\\\n\
175         int __d0, __d1; \\\\\n\
176       __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
177                         : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
178                         : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
179                                         / sizeof (__fd_mask)), \\\\\n\
180                           \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
181                         : \"memory\"); \\\\\n\
182       } while (0)\n\
183   #endif\n\n\
184   #define _SELECTBITS_H_WRAPPER\n\
185 #endif /* _SELECTBITS_H_WRAPPER */",
186     (char*)NULL };
187
188 /* * * * * * * * * * * * * * * * * * * * * * * * * *
189  *
190  *  Description of Aab_Solaris_Sys_Varargs_H fix
191  */
192 tSCC zAab_Solaris_Sys_Varargs_HName[] =
193      "AAB_solaris_sys_varargs_h";
194
195 /*
196  *  File name selection pattern
197  */
198 tSCC zAab_Solaris_Sys_Varargs_HList[] =
199   "|sys/varargs.h|";
200 /*
201  *  Machine/OS name selection pattern
202  */
203 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
204         "*-*-solaris*",
205         (const char*)NULL };
206 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT  0
207 #define aAab_Solaris_Sys_Varargs_HTests   (tTestDesc*)NULL
208
209 /*
210  *  Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
211  */
212 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
213 "#ifdef __STDC__\n\
214   #include <stdarg.h>\n\
215 #else\n\
216   #include <varargs.h>\n\
217 #endif",
218     (char*)NULL };
219
220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
221  *
222  *  Description of Aab_Sun_Memcpy fix
223  */
224 tSCC zAab_Sun_MemcpyName[] =
225      "AAB_sun_memcpy";
226
227 /*
228  *  File name selection pattern
229  */
230 tSCC zAab_Sun_MemcpyList[] =
231   "|memory.h|";
232 /*
233  *  Machine/OS name selection pattern
234  */
235 #define apzAab_Sun_MemcpyMachs (const char**)NULL
236
237 /*
238  *  content selection pattern - do fix if pattern found
239  */
240 tSCC zAab_Sun_MemcpySelect0[] =
241        "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
242
243 #define    AAB_SUN_MEMCPY_TEST_CT  1
244 static tTestDesc aAab_Sun_MemcpyTests[] = {
245   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
246
247 /*
248  *  Fix Command Arguments for Aab_Sun_Memcpy
249  */
250 static const char* apzAab_Sun_MemcpyPatch[] = {
251 "/* This file was generated by fixincludes */\n\
252 #ifndef __memory_h__\n\
253   #define __memory_h__\n\n\
254   #ifdef __STDC__\n\
255     extern void *memccpy();\n\
256     extern void *memchr();\n\
257     extern void *memcpy();\n\
258     extern void *memset();\n\
259   #else\n\
260     extern char *memccpy();\n\
261     extern char *memchr();\n\
262     extern char *memcpy();\n\
263     extern char *memset();\n\
264   #endif /* __STDC__ */\n\n\
265   extern int memcmp();\n\n\
266 #endif /* __memory_h__ */\n\
267 _EndOfHeader;\n\
268 };\n\n\n\
269 /*\n\
270  *  Completely replace <sys/varargs.h> with a file that includes gcc's\n\
271  *  stdarg.h or varargs.h files as appropriate.\n\
272  */\n\
273 #ifdef SVR4\n\
274 fix = {\n\
275     hackname = AAB_svr4_no_varargs;\n\
276     files    = sys/varargs.h;\n\
277     replace  = \"/* This file was generated by fixincludes.  */\\n\"\n\
278                \"#ifndef _SYS_VARARGS_H\\n\"\n\
279                \"#define _SYS_VARARGS_H\\n\\n\"\n\n\
280                \"#ifdef __STDC__\\n\"\n\
281                \"#include <stdarg.h>\\n\"\n\
282                \"#else\\n\"\n\
283                \"#include <varargs.h>\\n\"\n\
284                \"#endif\\n\\n\"\n\n\
285                \"#endif  /* _SYS_VARARGS_H */\\n\";\n\
286 };\n\
287 #endif\n\n\n\
288 /*\n\
289  *  Completely replace <sys/byteorder.h> with a file that implements gcc's\n\
290  *  optimized byteswapping.  (The original probably implemented some\n\
291  *  incompatible optimized byteswapping.)\n\
292  */\n\
293 fix = {\n\
294     hackname = AAB_svr4_replace_byteorder;\n\
295     mach     = \"*-*-sysv4*\";\n\
296     mach     = \"i[34567]86-*-sysv5*\";\n\
297     mach     = \"i[34567]86-*-sco3.2v5*\";\n\
298     mach     = \"i[34567]86-*-udk*\";\n\
299     mach     = \"i[34567]86-*-solaris2.[0-4]\";\n\
300     mach     = \"powerpcle-*-solaris2.[0-4]\";\n\
301     mach     = \"sparc-*-solaris2.[0-4]\";\n\
302     mach     = \"i[34567]86-sequent-ptx*\";\n\
303     files    = sys/byteorder.h;\n\
304     replace  = <<-  _EndOfHeader_\n\
305 #ifndef _SYS_BYTEORDER_H\n\
306 #define _SYS_BYTEORDER_H\n\n\
307 /* Functions to convert `short' and `long' quantities from host byte order\n\
308    to (internet) network byte order (i.e. big-endian).\n\n\
309    Written by Ron Guilmette (rfg@ncd.com).\n\n\
310    This isn't actually used by GCC.  It is installed by fixinc.svr4.\n\n\
311    For big-endian machines these functions are essentially no-ops.\n\n\
312    For little-endian machines, we define the functions using specialized\n\
313    asm sequences in cases where doing so yields better code (e.g. i386).  */\n\n\
314 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
315   #error You lose!  This file is only useful with GNU compilers.\n\
316 #endif\n\n\
317 #ifndef __BYTE_ORDER__\n\
318   /* Byte order defines.  These are as defined on UnixWare 1.1, but with\n\
319      double underscores added at the front and back.  */\n\
320   #define __LITTLE_ENDIAN__   1234\n\
321   #define __BIG_ENDIAN__      4321\n\
322   #define __PDP_ENDIAN__      3412\n\
323 #endif\n\n\
324 #ifdef __STDC__\n\
325   static __inline__ unsigned long htonl (unsigned long);\n\
326   static __inline__ unsigned short htons (unsigned int);\n\
327   static __inline__ unsigned long ntohl (unsigned long);\n\
328   static __inline__ unsigned short ntohs (unsigned int);\n\
329 #endif /* defined (__STDC__) */\n\n\
330 #if defined (__i386__)\n\n\
331   #ifndef __BYTE_ORDER__\n\
332     #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
333   #endif\n\n\
334   /* Convert a host long to a network long.  */\n\n\
335   /* We must use a new-style function definition, so that this will also\n\
336      be valid for C++.  */\n\
337   static __inline__ unsigned long\n\
338   htonl (unsigned long __arg)\n\
339   {\n\
340     register unsigned long __result;\n\n\
341     __asm__ (\"xchg%B0 %b0,%h0\n\
342   ror%L0 $16,%0\n\
343   xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
344     return __result;\n\
345   }\n\n\
346   /* Convert a host short to a network short.  */\n\n\
347   static __inline__ unsigned short\n\
348   htons (unsigned int __arg)\n\
349   {\n\
350     register unsigned short __result;\n\n\
351     __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
352     return __result;\n\
353   }\n\n\
354 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
355   #ifndef __BYTE_ORDER__\n\
356     #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
357   #endif\n\n\
358   /* For other little-endian machines, using C code is just as efficient as\n\
359      using assembly code.  */\n\n\
360   /* Convert a host long to a network long.  */\n\n\
361   static __inline__ unsigned long\n\
362   htonl (unsigned long __arg)\n\
363   {\n\
364     register unsigned long __result;\n\n\
365     __result = (__arg >> 24) & 0x000000ff;\n\
366     __result |= (__arg >> 8) & 0x0000ff00;\n\
367     __result |= (__arg << 8) & 0x00ff0000;\n\
368     __result |= (__arg << 24) & 0xff000000;\n\
369     return __result;\n\
370   }\n\n\
371   /* Convert a host short to a network short.  */\n\n\
372   static __inline__ unsigned short\n\
373   htons (unsigned int __arg)\n\
374   {\n\
375     register unsigned short __result;\n\n\
376     __result = (__arg << 8) & 0xff00;\n\
377     __result |= (__arg >> 8) & 0x00ff;\n\
378     return __result;\n\
379   }\n\n\
380 #else /* must be a big-endian machine */\n\n\
381   #ifndef __BYTE_ORDER__\n\
382     #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
383   #endif\n\n\
384   /* Convert a host long to a network long.  */\n\n\
385   static __inline__ unsigned long\n\
386   htonl (unsigned long __arg)\n\
387   {\n\
388     return __arg;\n\
389   }\n\n\
390   /* Convert a host short to a network short.  */\n\n\
391   static __inline__ unsigned short\n\
392   htons (unsigned int __arg)\n\
393   {\n\
394     return __arg;\n\
395   }\n\n\
396 #endif /* big-endian */\n\n\
397 /* Convert a network long to a host long.  */\n\n\
398 static __inline__ unsigned long\n\
399 ntohl (unsigned long __arg)\n\
400 {\n\
401   return htonl (__arg);\n\
402 }\n\n\
403 /* Convert a network short to a host short.  */\n\n\
404 static __inline__ unsigned short\n\
405 ntohs (unsigned int __arg)\n\
406 {\n\
407   return htons (__arg);\n\
408 }\n\
409 #endif",
410     (char*)NULL };
411
412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
413  *
414  *  Description of Aab_Ultrix_Ansi_Compat fix
415  */
416 tSCC zAab_Ultrix_Ansi_CompatName[] =
417      "AAB_ultrix_ansi_compat";
418
419 /*
420  *  File name selection pattern
421  */
422 tSCC zAab_Ultrix_Ansi_CompatList[] =
423   "|ansi_compat.h|";
424 /*
425  *  Machine/OS name selection pattern
426  */
427 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
428
429 /*
430  *  content selection pattern - do fix if pattern found
431  */
432 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
433        "ULTRIX";
434
435 #define    AAB_ULTRIX_ANSI_COMPAT_TEST_CT  1
436 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
437   { TT_EGREP,    zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
438
439 /*
440  *  Fix Command Arguments for Aab_Ultrix_Ansi_Compat
441  */
442 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
443 "/* This file intentionally left blank.  */\n",
444     (char*)NULL };
445
446 /* * * * * * * * * * * * * * * * * * * * * * * * * *
447  *
448  *  Description of Aab_Ultrix_Limits fix
449  */
450 tSCC zAab_Ultrix_LimitsName[] =
451      "AAB_ultrix_limits";
452
453 /*
454  *  File name selection pattern
455  */
456 tSCC zAab_Ultrix_LimitsList[] =
457   "|limits.h|";
458 /*
459  *  Machine/OS name selection pattern
460  */
461 tSCC* apzAab_Ultrix_LimitsMachs[] = {
462         "*-*-ultrix4.3",
463         (const char*)NULL };
464 #define AAB_ULTRIX_LIMITS_TEST_CT  0
465 #define aAab_Ultrix_LimitsTests   (tTestDesc*)NULL
466
467 /*
468  *  Fix Command Arguments for Aab_Ultrix_Limits
469  */
470 static const char* apzAab_Ultrix_LimitsPatch[] = {
471 "#ifndef _LIMITS_INCLUDED\n\
472   #define _LIMITS_INCLUDED\n\
473   #include <sys/limits.h>\n\
474 #endif /* _LIMITS_INCLUDED */",
475     (char*)NULL };
476
477 /* * * * * * * * * * * * * * * * * * * * * * * * * *
478  *
479  *  Description of Aab_Ultrix_Memory fix
480  */
481 tSCC zAab_Ultrix_MemoryName[] =
482      "AAB_ultrix_memory";
483
484 /*
485  *  File name selection pattern
486  */
487 tSCC zAab_Ultrix_MemoryList[] =
488   "|memory.h|";
489 /*
490  *  Machine/OS name selection pattern
491  */
492 tSCC* apzAab_Ultrix_MemoryMachs[] = {
493         "*-*-ultrix4.3",
494         (const char*)NULL };
495 #define AAB_ULTRIX_MEMORY_TEST_CT  0
496 #define aAab_Ultrix_MemoryTests   (tTestDesc*)NULL
497
498 /*
499  *  Fix Command Arguments for Aab_Ultrix_Memory
500  */
501 static const char* apzAab_Ultrix_MemoryPatch[] = {
502 "#ifndef _MEMORY_INCLUDED\n\
503   #define _MEMORY_INCLUDED\n\
504   #include <strings.h>\n\
505 #endif /* _MEMORY_INCLUDED */",
506     (char*)NULL };
507
508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
509  *
510  *  Description of Aab_Ultrix_String fix
511  */
512 tSCC zAab_Ultrix_StringName[] =
513      "AAB_ultrix_string";
514
515 /*
516  *  File name selection pattern
517  */
518 tSCC zAab_Ultrix_StringList[] =
519   "|string.h|";
520 /*
521  *  Machine/OS name selection pattern
522  */
523 tSCC* apzAab_Ultrix_StringMachs[] = {
524         "*-*-ultrix4.3",
525         (const char*)NULL };
526 #define AAB_ULTRIX_STRING_TEST_CT  0
527 #define aAab_Ultrix_StringTests   (tTestDesc*)NULL
528
529 /*
530  *  Fix Command Arguments for Aab_Ultrix_String
531  */
532 static const char* apzAab_Ultrix_StringPatch[] = {
533 "#ifndef _STRING_INCLUDED\n\
534   #define _STRING_INCLUDED\n\
535   #include <strings.h>\n\
536 #endif /* _STRING_INCLUDED */",
537     (char*)NULL };
538
539 /* * * * * * * * * * * * * * * * * * * * * * * * * *
540  *
541  *  Description of Aix_Pthread fix
542  */
543 tSCC zAix_PthreadName[] =
544      "aix_pthread";
545
546 /*
547  *  File name selection pattern
548  */
549 tSCC zAix_PthreadList[] =
550   "|pthread.h|";
551 /*
552  *  Machine/OS name selection pattern
553  */
554 #define apzAix_PthreadMachs (const char**)NULL
555
556 /*
557  *  content selection pattern - do fix if pattern found
558  */
559 tSCC zAix_PthreadSelect0[] =
560        "(#define [A-Za-z_0-9]+)(\\\\\n\
561 [^A-Za-z_0-9 \t\n\
562 (])";
563
564 #define    AIX_PTHREAD_TEST_CT  1
565 static tTestDesc aAix_PthreadTests[] = {
566   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
567
568 /*
569  *  Fix Command Arguments for Aix_Pthread
570  */
571 static const char* apzAix_PthreadPatch[] = {
572     "format",
573     "%1 %2",
574     (char*)NULL };
575
576 /* * * * * * * * * * * * * * * * * * * * * * * * * *
577  *
578  *  Description of Aix_Sysmachine fix
579  */
580 tSCC zAix_SysmachineName[] =
581      "aix_sysmachine";
582
583 /*
584  *  File name selection pattern
585  */
586 tSCC zAix_SysmachineList[] =
587   "|sys/machine.h|";
588 /*
589  *  Machine/OS name selection pattern
590  */
591 #define apzAix_SysmachineMachs (const char**)NULL
592
593 /*
594  *  content selection pattern - do fix if pattern found
595  */
596 tSCC zAix_SysmachineSelect0[] =
597        "\\\\ +\n";
598
599 #define    AIX_SYSMACHINE_TEST_CT  1
600 static tTestDesc aAix_SysmachineTests[] = {
601   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
602
603 /*
604  *  Fix Command Arguments for Aix_Sysmachine
605  */
606 static const char* apzAix_SysmachinePatch[] = {
607     "format",
608     "\\\n",
609     (char*)NULL };
610
611 /* * * * * * * * * * * * * * * * * * * * * * * * * *
612  *
613  *  Description of Aix_Syswait fix
614  */
615 tSCC zAix_SyswaitName[] =
616      "aix_syswait";
617
618 /*
619  *  File name selection pattern
620  */
621 tSCC zAix_SyswaitList[] =
622   "|sys/wait.h|";
623 /*
624  *  Machine/OS name selection pattern
625  */
626 #define apzAix_SyswaitMachs (const char**)NULL
627
628 /*
629  *  content selection pattern - do fix if pattern found
630  */
631 tSCC zAix_SyswaitSelect0[] =
632        "^extern pid_t wait3\\(\\);\n";
633 tSCC zAix_SyswaitSelect1[] =
634        "bos325,";
635
636 #define    AIX_SYSWAIT_TEST_CT  2
637 static tTestDesc aAix_SyswaitTests[] = {
638   { TT_EGREP,    zAix_SyswaitSelect0, (regex_t*)NULL },
639   { TT_EGREP,    zAix_SyswaitSelect1, (regex_t*)NULL }, };
640
641 /*
642  *  Fix Command Arguments for Aix_Syswait
643  */
644 static const char* apzAix_SyswaitPatch[] = {
645     "format",
646     "struct rusage;\n\
647 %0",
648     (char*)NULL };
649
650 /* * * * * * * * * * * * * * * * * * * * * * * * * *
651  *
652  *  Description of Aix_Syswait_2 fix
653  */
654 tSCC zAix_Syswait_2Name[] =
655      "aix_syswait_2";
656
657 /*
658  *  File name selection pattern
659  */
660 tSCC zAix_Syswait_2List[] =
661   "|sys/wait.h|";
662 /*
663  *  Machine/OS name selection pattern
664  */
665 #define apzAix_Syswait_2Machs (const char**)NULL
666
667 /*
668  *  content selection pattern - do fix if pattern found
669  */
670 tSCC zAix_Syswait_2Select0[] =
671        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
672
673 #define    AIX_SYSWAIT_2_TEST_CT  1
674 static tTestDesc aAix_Syswait_2Tests[] = {
675   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
676
677 /*
678  *  Fix Command Arguments for Aix_Syswait_2
679  */
680 static const char* apzAix_Syswait_2Patch[] = {
681     "format",
682     "? (int)%1",
683     (char*)NULL };
684
685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
686  *
687  *  Description of Aix_Volatile fix
688  */
689 tSCC zAix_VolatileName[] =
690      "aix_volatile";
691
692 /*
693  *  File name selection pattern
694  */
695 tSCC zAix_VolatileList[] =
696   "|sys/signal.h|";
697 /*
698  *  Machine/OS name selection pattern
699  */
700 #define apzAix_VolatileMachs (const char**)NULL
701
702 /*
703  *  content selection pattern - do fix if pattern found
704  */
705 tSCC zAix_VolatileSelect0[] =
706        "typedef volatile int sig_atomic_t";
707
708 #define    AIX_VOLATILE_TEST_CT  1
709 static tTestDesc aAix_VolatileTests[] = {
710   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
711
712 /*
713  *  Fix Command Arguments for Aix_Volatile
714  */
715 static const char* apzAix_VolatilePatch[] = {
716     "format",
717     "typedef int sig_atomic_t",
718     (char*)NULL };
719
720 /* * * * * * * * * * * * * * * * * * * * * * * * * *
721  *
722  *  Description of Alpha___Assert fix
723  */
724 tSCC zAlpha___AssertName[] =
725      "alpha___assert";
726
727 /*
728  *  File name selection pattern
729  */
730 tSCC zAlpha___AssertList[] =
731   "|assert.h|";
732 /*
733  *  Machine/OS name selection pattern
734  */
735 #define apzAlpha___AssertMachs (const char**)NULL
736
737 /*
738  *  content selection pattern - do fix if pattern found
739  */
740 tSCC zAlpha___AssertSelect0[] =
741        "__assert\\(char \\*, char \\*, int\\)";
742
743 #define    ALPHA___ASSERT_TEST_CT  1
744 static tTestDesc aAlpha___AssertTests[] = {
745   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
746
747 /*
748  *  Fix Command Arguments for Alpha___Assert
749  */
750 static const char* apzAlpha___AssertPatch[] = {
751     "format",
752     "__assert(const char *, const char *, int)",
753     (char*)NULL };
754
755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
756  *
757  *  Description of Alpha___Extern_Prefix fix
758  */
759 tSCC zAlpha___Extern_PrefixName[] =
760      "alpha___extern_prefix";
761
762 /*
763  *  File name selection pattern
764  */
765 #define zAlpha___Extern_PrefixList (char*)NULL
766 /*
767  *  Machine/OS name selection pattern
768  */
769 tSCC* apzAlpha___Extern_PrefixMachs[] = {
770         "alpha*-dec-osf*",
771         (const char*)NULL };
772
773 /*
774  *  content selection pattern - do fix if pattern found
775  */
776 tSCC zAlpha___Extern_PrefixSelect0[] =
777        "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
778 (#[ \t]*pragma[ \t]*extern_prefix.*)";
779
780 #define    ALPHA___EXTERN_PREFIX_TEST_CT  1
781 static tTestDesc aAlpha___Extern_PrefixTests[] = {
782   { TT_EGREP,    zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
783
784 /*
785  *  Fix Command Arguments for Alpha___Extern_Prefix
786  */
787 static const char* apzAlpha___Extern_PrefixPatch[] = {
788     "format",
789     "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
790 %3",
791     (char*)NULL };
792
793 /* * * * * * * * * * * * * * * * * * * * * * * * * *
794  *
795  *  Description of Alpha___Extern_Prefix_Standards fix
796  */
797 tSCC zAlpha___Extern_Prefix_StandardsName[] =
798      "alpha___extern_prefix_standards";
799
800 /*
801  *  File name selection pattern
802  */
803 tSCC zAlpha___Extern_Prefix_StandardsList[] =
804   "|standards.h|";
805 /*
806  *  Machine/OS name selection pattern
807  */
808 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
809         "alpha*-dec-osf*",
810         (const char*)NULL };
811
812 /*
813  *  content selection pattern - do fix if pattern found
814  */
815 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
816        ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
817
818 #define    ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT  1
819 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
820   { TT_EGREP,    zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
821
822 /*
823  *  Fix Command Arguments for Alpha___Extern_Prefix_Standards
824  */
825 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
826     "format",
827     "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
828     (char*)NULL };
829
830 /* * * * * * * * * * * * * * * * * * * * * * * * * *
831  *
832  *  Description of Alpha___Extern_Prefix_Sys_Stat fix
833  */
834 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
835      "alpha___extern_prefix_sys_stat";
836
837 /*
838  *  File name selection pattern
839  */
840 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
841   "|sys/stat.h|sys/mount.h|";
842 /*
843  *  Machine/OS name selection pattern
844  */
845 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
846         "alpha*-dec-osf5*",
847         (const char*)NULL };
848
849 /*
850  *  content selection pattern - do fix if pattern found
851  */
852 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
853        "#[ \t]*if[ \t]*defined\\(__DECC\\)";
854
855 #define    ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT  1
856 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
857   { TT_EGREP,    zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
858
859 /*
860  *  Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
861  */
862 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
863     "format",
864     "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
865     (char*)NULL };
866
867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
868  *
869  *  Description of Alpha_Assert fix
870  */
871 tSCC zAlpha_AssertName[] =
872      "alpha_assert";
873
874 /*
875  *  File name selection pattern
876  */
877 tSCC zAlpha_AssertList[] =
878   "|assert.h|";
879 /*
880  *  Machine/OS name selection pattern
881  */
882 #define apzAlpha_AssertMachs (const char**)NULL
883
884 /*
885  *  content selection pattern - do fix if pattern found
886  */
887 tSCC zAlpha_AssertSelect0[] =
888        "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
889
890 #define    ALPHA_ASSERT_TEST_CT  1
891 static tTestDesc aAlpha_AssertTests[] = {
892   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
893
894 /*
895  *  Fix Command Arguments for Alpha_Assert
896  */
897 static const char* apzAlpha_AssertPatch[] = {
898     "format",
899     "%1(EX)",
900     (char*)NULL };
901
902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
903  *
904  *  Description of Alpha_Bad_Lval fix
905  */
906 tSCC zAlpha_Bad_LvalName[] =
907      "alpha_bad_lval";
908
909 /*
910  *  File name selection pattern
911  */
912 #define zAlpha_Bad_LvalList (char*)NULL
913 /*
914  *  Machine/OS name selection pattern
915  */
916 tSCC* apzAlpha_Bad_LvalMachs[] = {
917         "alpha*-dec-osf*",
918         (const char*)NULL };
919
920 /*
921  *  content selection pattern - do fix if pattern found
922  */
923 tSCC zAlpha_Bad_LvalSelect0[] =
924        "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
925
926 #define    ALPHA_BAD_LVAL_TEST_CT  1
927 static tTestDesc aAlpha_Bad_LvalTests[] = {
928   { TT_EGREP,    zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
929
930 /*
931  *  Fix Command Arguments for Alpha_Bad_Lval
932  */
933 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
934     "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
935     (char*)NULL };
936
937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
938  *
939  *  Description of Alpha_Getopt fix
940  */
941 tSCC zAlpha_GetoptName[] =
942      "alpha_getopt";
943
944 /*
945  *  File name selection pattern
946  */
947 tSCC zAlpha_GetoptList[] =
948   "|stdio.h|stdlib.h|";
949 /*
950  *  Machine/OS name selection pattern
951  */
952 #define apzAlpha_GetoptMachs (const char**)NULL
953
954 /*
955  *  content selection pattern - do fix if pattern found
956  */
957 tSCC zAlpha_GetoptSelect0[] =
958        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
959
960 #define    ALPHA_GETOPT_TEST_CT  1
961 static tTestDesc aAlpha_GetoptTests[] = {
962   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
963
964 /*
965  *  Fix Command Arguments for Alpha_Getopt
966  */
967 static const char* apzAlpha_GetoptPatch[] = {
968     "format",
969     "getopt(int, char *const[], const char *)",
970     (char*)NULL };
971
972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
973  *
974  *  Description of Alpha_Parens fix
975  */
976 tSCC zAlpha_ParensName[] =
977      "alpha_parens";
978
979 /*
980  *  File name selection pattern
981  */
982 tSCC zAlpha_ParensList[] =
983   "|sym.h|";
984 /*
985  *  Machine/OS name selection pattern
986  */
987 #define apzAlpha_ParensMachs (const char**)NULL
988
989 /*
990  *  content selection pattern - do fix if pattern found
991  */
992 tSCC zAlpha_ParensSelect0[] =
993        "#ifndef\\(__mips64\\)";
994
995 #define    ALPHA_PARENS_TEST_CT  1
996 static tTestDesc aAlpha_ParensTests[] = {
997   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
998
999 /*
1000  *  Fix Command Arguments for Alpha_Parens
1001  */
1002 static const char* apzAlpha_ParensPatch[] = {
1003     "format",
1004     "#ifndef __mips64",
1005     (char*)NULL };
1006
1007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1008  *
1009  *  Description of Alpha_Pthread fix
1010  */
1011 tSCC zAlpha_PthreadName[] =
1012      "alpha_pthread";
1013
1014 /*
1015  *  File name selection pattern
1016  */
1017 tSCC zAlpha_PthreadList[] =
1018   "|pthread.h|";
1019 /*
1020  *  Machine/OS name selection pattern
1021  */
1022 tSCC* apzAlpha_PthreadMachs[] = {
1023         "alpha*-dec-osf*",
1024         (const char*)NULL };
1025
1026 /*
1027  *  content selection pattern - do fix if pattern found
1028  */
1029 tSCC zAlpha_PthreadSelect0[] =
1030        "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1031 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1032
1033 #define    ALPHA_PTHREAD_TEST_CT  1
1034 static tTestDesc aAlpha_PthreadTests[] = {
1035   { TT_EGREP,    zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1036
1037 /*
1038  *  Fix Command Arguments for Alpha_Pthread
1039  */
1040 static const char* apzAlpha_PthreadPatch[] = {
1041     "format",
1042     "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1043 %5",
1044     (char*)NULL };
1045
1046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1047  *
1048  *  Description of Alpha_Pthread_Gcc fix
1049  */
1050 tSCC zAlpha_Pthread_GccName[] =
1051      "alpha_pthread_gcc";
1052
1053 /*
1054  *  File name selection pattern
1055  */
1056 tSCC zAlpha_Pthread_GccList[] =
1057   "|pthread.h|";
1058 /*
1059  *  Machine/OS name selection pattern
1060  */
1061 tSCC* apzAlpha_Pthread_GccMachs[] = {
1062         "alpha*-dec-osf*",
1063         (const char*)NULL };
1064
1065 /*
1066  *  content selection pattern - do fix if pattern found
1067  */
1068 tSCC zAlpha_Pthread_GccSelect0[] =
1069        "#else\n\
1070 # error <pthread.h>: unrecognized compiler.";
1071
1072 #define    ALPHA_PTHREAD_GCC_TEST_CT  1
1073 static tTestDesc aAlpha_Pthread_GccTests[] = {
1074   { TT_EGREP,    zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1075
1076 /*
1077  *  Fix Command Arguments for Alpha_Pthread_Gcc
1078  */
1079 static const char* apzAlpha_Pthread_GccPatch[] = {
1080     "format",
1081     "#elif defined (__GNUC__)\n\
1082 # define _PTHREAD_ENV_GCC\n\
1083 %0",
1084     (char*)NULL };
1085
1086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1087  *
1088  *  Description of Alpha_Pthread_Init fix
1089  */
1090 tSCC zAlpha_Pthread_InitName[] =
1091      "alpha_pthread_init";
1092
1093 /*
1094  *  File name selection pattern
1095  */
1096 tSCC zAlpha_Pthread_InitList[] =
1097   "|pthread.h|";
1098 /*
1099  *  Machine/OS name selection pattern
1100  */
1101 tSCC* apzAlpha_Pthread_InitMachs[] = {
1102         "alpha*-dec-osf*",
1103         (const char*)NULL };
1104
1105 /*
1106  *  content selection pattern - do fix if pattern found
1107  */
1108 tSCC zAlpha_Pthread_InitSelect0[] =
1109        " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1110
1111 #define    ALPHA_PTHREAD_INIT_TEST_CT  1
1112 static tTestDesc aAlpha_Pthread_InitTests[] = {
1113   { TT_EGREP,    zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1114
1115 /*
1116  *  Fix Command Arguments for Alpha_Pthread_Init
1117  */
1118 static const char* apzAlpha_Pthread_InitPatch[] = { "sed",
1119     "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1120 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1121 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1122 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1123 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1124 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1125     (char*)NULL };
1126
1127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1128  *
1129  *  Description of Alpha_Sbrk fix
1130  */
1131 tSCC zAlpha_SbrkName[] =
1132      "alpha_sbrk";
1133
1134 /*
1135  *  File name selection pattern
1136  */
1137 tSCC zAlpha_SbrkList[] =
1138   "|unistd.h|";
1139 /*
1140  *  Machine/OS name selection pattern
1141  */
1142 #define apzAlpha_SbrkMachs (const char**)NULL
1143
1144 /*
1145  *  content selection pattern - do fix if pattern found
1146  */
1147 tSCC zAlpha_SbrkSelect0[] =
1148        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1149
1150 #define    ALPHA_SBRK_TEST_CT  1
1151 static tTestDesc aAlpha_SbrkTests[] = {
1152   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1153
1154 /*
1155  *  Fix Command Arguments for Alpha_Sbrk
1156  */
1157 static const char* apzAlpha_SbrkPatch[] = {
1158     "format",
1159     "void *sbrk(",
1160     (char*)NULL };
1161
1162 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1163  *
1164  *  Description of Alpha_Wchar fix
1165  */
1166 tSCC zAlpha_WcharName[] =
1167      "alpha_wchar";
1168
1169 /*
1170  *  File name selection pattern
1171  */
1172 tSCC zAlpha_WcharList[] =
1173   "|wchar.h|";
1174 /*
1175  *  Machine/OS name selection pattern
1176  */
1177 tSCC* apzAlpha_WcharMachs[] = {
1178         "alpha*-dec-osf4*",
1179         (const char*)NULL };
1180
1181 /*
1182  *  content selection pattern - do fix if pattern found
1183  */
1184 tSCC zAlpha_WcharSelect0[] =
1185        "#define wcstok wcstok_r";
1186
1187 #define    ALPHA_WCHAR_TEST_CT  1
1188 static tTestDesc aAlpha_WcharTests[] = {
1189   { TT_EGREP,    zAlpha_WcharSelect0, (regex_t*)NULL }, };
1190
1191 /*
1192  *  Fix Command Arguments for Alpha_Wchar
1193  */
1194 static const char* apzAlpha_WcharPatch[] = { "sed",
1195     "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1196     "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t   wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1197     (char*)NULL };
1198
1199 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1200  *
1201  *  Description of Avoid_Bool_Define fix
1202  */
1203 tSCC zAvoid_Bool_DefineName[] =
1204      "avoid_bool_define";
1205
1206 /*
1207  *  File name selection pattern
1208  */
1209 tSCC zAvoid_Bool_DefineList[] =
1210   "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1211 /*
1212  *  Machine/OS name selection pattern
1213  */
1214 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1215
1216 /*
1217  *  content selection pattern - do fix if pattern found
1218  */
1219 tSCC zAvoid_Bool_DefineSelect0[] =
1220        "#[ \t]*define[ \t]+bool[ \t]";
1221
1222 /*
1223  *  content bypass pattern - skip fix if pattern found
1224  */
1225 tSCC zAvoid_Bool_DefineBypass0[] =
1226        "__cplusplus";
1227
1228 #define    AVOID_BOOL_DEFINE_TEST_CT  2
1229 static tTestDesc aAvoid_Bool_DefineTests[] = {
1230   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1231   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1232
1233 /*
1234  *  Fix Command Arguments for Avoid_Bool_Define
1235  */
1236 static const char* apzAvoid_Bool_DefinePatch[] = {
1237     "format",
1238     "#ifndef __cplusplus\n\
1239 %0\n\
1240 #endif",
1241     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1242     (char*)NULL };
1243
1244 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1245  *
1246  *  Description of Avoid_Bool_Type fix
1247  */
1248 tSCC zAvoid_Bool_TypeName[] =
1249      "avoid_bool_type";
1250
1251 /*
1252  *  File name selection pattern
1253  */
1254 tSCC zAvoid_Bool_TypeList[] =
1255   "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1256 /*
1257  *  Machine/OS name selection pattern
1258  */
1259 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1260
1261 /*
1262  *  content selection pattern - do fix if pattern found
1263  */
1264 tSCC zAvoid_Bool_TypeSelect0[] =
1265        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1266
1267 /*
1268  *  content bypass pattern - skip fix if pattern found
1269  */
1270 tSCC zAvoid_Bool_TypeBypass0[] =
1271        "__cplusplus";
1272
1273 #define    AVOID_BOOL_TYPE_TEST_CT  2
1274 static tTestDesc aAvoid_Bool_TypeTests[] = {
1275   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1276   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1277
1278 /*
1279  *  Fix Command Arguments for Avoid_Bool_Type
1280  */
1281 static const char* apzAvoid_Bool_TypePatch[] = {
1282     "format",
1283     "#ifndef __cplusplus\n\
1284 %0\n\
1285 #endif",
1286     (char*)NULL };
1287
1288 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1289  *
1290  *  Description of Avoid_Wchar_T_Type fix
1291  */
1292 tSCC zAvoid_Wchar_T_TypeName[] =
1293      "avoid_wchar_t_type";
1294
1295 /*
1296  *  File name selection pattern
1297  */
1298 #define zAvoid_Wchar_T_TypeList (char*)NULL
1299 /*
1300  *  Machine/OS name selection pattern
1301  */
1302 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1303
1304 /*
1305  *  content selection pattern - do fix if pattern found
1306  */
1307 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1308        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1309
1310 /*
1311  *  content bypass pattern - skip fix if pattern found
1312  */
1313 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1314        "__cplusplus";
1315 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1316        "_LINUX_NLS_H";
1317 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1318        "XFree86: xc/lib/X11/Xlib\\.h";
1319
1320 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
1321 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1322   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1323   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1324   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1325   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1326
1327 /*
1328  *  Fix Command Arguments for Avoid_Wchar_T_Type
1329  */
1330 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1331     "format",
1332     "#ifndef __cplusplus\n\
1333 %0\n\
1334 #endif",
1335     (char*)NULL };
1336
1337 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1338  *
1339  *  Description of Bad_Struct_Term fix
1340  */
1341 tSCC zBad_Struct_TermName[] =
1342      "bad_struct_term";
1343
1344 /*
1345  *  File name selection pattern
1346  */
1347 tSCC zBad_Struct_TermList[] =
1348   "|curses.h|";
1349 /*
1350  *  Machine/OS name selection pattern
1351  */
1352 #define apzBad_Struct_TermMachs (const char**)NULL
1353
1354 /*
1355  *  content selection pattern - do fix if pattern found
1356  */
1357 tSCC zBad_Struct_TermSelect0[] =
1358        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1359
1360 #define    BAD_STRUCT_TERM_TEST_CT  1
1361 static tTestDesc aBad_Struct_TermTests[] = {
1362   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1363
1364 /*
1365  *  Fix Command Arguments for Bad_Struct_Term
1366  */
1367 static const char* apzBad_Struct_TermPatch[] = {
1368     "format",
1369     "struct term;",
1370     (char*)NULL };
1371
1372 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1373  *
1374  *  Description of Badquote fix
1375  */
1376 tSCC zBadquoteName[] =
1377      "badquote";
1378
1379 /*
1380  *  File name selection pattern
1381  */
1382 tSCC zBadquoteList[] =
1383   "|sundev/vuid_event.h|";
1384 /*
1385  *  Machine/OS name selection pattern
1386  */
1387 #define apzBadquoteMachs (const char**)NULL
1388
1389 /*
1390  *  content selection pattern - do fix if pattern found
1391  */
1392 tSCC zBadquoteSelect0[] =
1393        "doesn't";
1394
1395 #define    BADQUOTE_TEST_CT  1
1396 static tTestDesc aBadquoteTests[] = {
1397   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
1398
1399 /*
1400  *  Fix Command Arguments for Badquote
1401  */
1402 static const char* apzBadquotePatch[] = {
1403     "format",
1404     "does not",
1405     (char*)NULL };
1406
1407 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1408  *
1409  *  Description of Broken_Assert_Stdio fix
1410  */
1411 tSCC zBroken_Assert_StdioName[] =
1412      "broken_assert_stdio";
1413
1414 /*
1415  *  File name selection pattern
1416  */
1417 tSCC zBroken_Assert_StdioList[] =
1418   "|assert.h|";
1419 /*
1420  *  Machine/OS name selection pattern
1421  */
1422 #define apzBroken_Assert_StdioMachs (const char**)NULL
1423
1424 /*
1425  *  content selection pattern - do fix if pattern found
1426  */
1427 tSCC zBroken_Assert_StdioSelect0[] =
1428        "stderr";
1429
1430 /*
1431  *  content bypass pattern - skip fix if pattern found
1432  */
1433 tSCC zBroken_Assert_StdioBypass0[] =
1434        "include.*stdio\\.h";
1435
1436 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
1437 static tTestDesc aBroken_Assert_StdioTests[] = {
1438   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1439   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1440
1441 /*
1442  *  Fix Command Arguments for Broken_Assert_Stdio
1443  */
1444 static const char* apzBroken_Assert_StdioPatch[] = {
1445     "wrap",
1446     "#include <stdio.h>\n",
1447     (char*)NULL };
1448
1449 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1450  *
1451  *  Description of Broken_Assert_Stdlib fix
1452  */
1453 tSCC zBroken_Assert_StdlibName[] =
1454      "broken_assert_stdlib";
1455
1456 /*
1457  *  File name selection pattern
1458  */
1459 tSCC zBroken_Assert_StdlibList[] =
1460   "|assert.h|";
1461 /*
1462  *  Machine/OS name selection pattern
1463  */
1464 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1465
1466 /*
1467  *  content selection pattern - do fix if pattern found
1468  */
1469 tSCC zBroken_Assert_StdlibSelect0[] =
1470        "exit *\\(|abort *\\(";
1471
1472 /*
1473  *  content bypass pattern - skip fix if pattern found
1474  */
1475 tSCC zBroken_Assert_StdlibBypass0[] =
1476        "include.*stdlib\\.h";
1477
1478 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
1479 static tTestDesc aBroken_Assert_StdlibTests[] = {
1480   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1481   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1482
1483 /*
1484  *  Fix Command Arguments for Broken_Assert_Stdlib
1485  */
1486 static const char* apzBroken_Assert_StdlibPatch[] = {
1487     "wrap",
1488     "#ifdef __cplusplus\n\
1489 #include <stdlib.h>\n\
1490 #endif\n",
1491     (char*)NULL };
1492
1493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1494  *
1495  *  Description of Broken_Cabs fix
1496  */
1497 tSCC zBroken_CabsName[] =
1498      "broken_cabs";
1499
1500 /*
1501  *  File name selection pattern
1502  */
1503 tSCC zBroken_CabsList[] =
1504   "|math.h|architecture/ppc/math.h|architecture/i386/math.h|";
1505 /*
1506  *  Machine/OS name selection pattern
1507  */
1508 #define apzBroken_CabsMachs (const char**)NULL
1509
1510 /*
1511  *  content selection pattern - do fix if pattern found
1512  */
1513 tSCC zBroken_CabsSelect0[] =
1514        "^extern[ \\t]+double[ \\t]+cabs";
1515
1516 #define    BROKEN_CABS_TEST_CT  1
1517 static tTestDesc aBroken_CabsTests[] = {
1518   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
1519
1520 /*
1521  *  Fix Command Arguments for Broken_Cabs
1522  */
1523 static const char* apzBroken_CabsPatch[] = {
1524     "format",
1525     "",
1526     "^extern[ \t]+double[ \t]+cabs[ \t]*\\([^\\)]*\\);",
1527     (char*)NULL };
1528
1529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1530  *
1531  *  Description of Bsd_Stdio_Attrs_Conflict fix
1532  */
1533 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1534      "bsd_stdio_attrs_conflict";
1535
1536 /*
1537  *  File name selection pattern
1538  */
1539 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1540   "|stdio.h|";
1541 /*
1542  *  Machine/OS name selection pattern
1543  */
1544 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1545         "*-*-*bsd*",
1546         "*-*-*darwin*",
1547         (const char*)NULL };
1548
1549 /*
1550  *  content selection pattern - do fix if pattern found
1551  */
1552 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1553        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1554
1555 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
1556 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1557   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1558
1559 /*
1560  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1561  */
1562 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1563     "format",
1564     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1565 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1566 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1567     (char*)NULL };
1568
1569 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1570  *
1571  *  Description of Ctrl_Quotes_Def fix
1572  */
1573 tSCC zCtrl_Quotes_DefName[] =
1574      "ctrl_quotes_def";
1575
1576 /*
1577  *  File name selection pattern
1578  */
1579 #define zCtrl_Quotes_DefList (char*)NULL
1580 /*
1581  *  Machine/OS name selection pattern
1582  */
1583 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1584
1585 /*
1586  *  content selection pattern - do fix if pattern found
1587  */
1588 tSCC zCtrl_Quotes_DefSelect0[] =
1589        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1590
1591 #define    CTRL_QUOTES_DEF_TEST_CT  1
1592 static tTestDesc aCtrl_Quotes_DefTests[] = {
1593   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1594
1595 /*
1596  *  Fix Command Arguments for Ctrl_Quotes_Def
1597  */
1598 static const char* apzCtrl_Quotes_DefPatch[] = {
1599     "char_macro_def",
1600     "CTRL",
1601     (char*)NULL };
1602
1603 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1604  *
1605  *  Description of Ctrl_Quotes_Use fix
1606  */
1607 tSCC zCtrl_Quotes_UseName[] =
1608      "ctrl_quotes_use";
1609
1610 /*
1611  *  File name selection pattern
1612  */
1613 #define zCtrl_Quotes_UseList (char*)NULL
1614 /*
1615  *  Machine/OS name selection pattern
1616  */
1617 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1618
1619 /*
1620  *  content selection pattern - do fix if pattern found
1621  */
1622 tSCC zCtrl_Quotes_UseSelect0[] =
1623        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1624
1625 #define    CTRL_QUOTES_USE_TEST_CT  1
1626 static tTestDesc aCtrl_Quotes_UseTests[] = {
1627   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1628
1629 /*
1630  *  Fix Command Arguments for Ctrl_Quotes_Use
1631  */
1632 static const char* apzCtrl_Quotes_UsePatch[] = {
1633     "char_macro_use",
1634     "CTRL",
1635     (char*)NULL };
1636
1637 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1638  *
1639  *  Description of Cxx_Unready fix
1640  */
1641 tSCC zCxx_UnreadyName[] =
1642      "cxx_unready";
1643
1644 /*
1645  *  File name selection pattern
1646  */
1647 tSCC zCxx_UnreadyList[] =
1648   "|sys/mman.h|rpc/types.h|";
1649 /*
1650  *  Machine/OS name selection pattern
1651  */
1652 #define apzCxx_UnreadyMachs (const char**)NULL
1653
1654 /*
1655  *  content selection pattern - do fix if pattern found
1656  */
1657 tSCC zCxx_UnreadySelect0[] =
1658        "[^#]+malloc.*;";
1659
1660 /*
1661  *  content bypass pattern - skip fix if pattern found
1662  */
1663 tSCC zCxx_UnreadyBypass0[] =
1664        "\"C\"|__BEGIN_DECLS";
1665
1666 #define    CXX_UNREADY_TEST_CT  2
1667 static tTestDesc aCxx_UnreadyTests[] = {
1668   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
1669   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
1670
1671 /*
1672  *  Fix Command Arguments for Cxx_Unready
1673  */
1674 static const char* apzCxx_UnreadyPatch[] = {
1675     "wrap",
1676     "#ifdef __cplusplus\n\
1677 extern \"C\" {\n\
1678 #endif\n",
1679     "#ifdef __cplusplus\n\
1680 }\n\
1681 #endif\n",
1682     (char*)NULL };
1683
1684 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1685  *
1686  *  Description of Darwin_Gcc4_Breakage fix
1687  */
1688 tSCC zDarwin_Gcc4_BreakageName[] =
1689      "darwin_gcc4_breakage";
1690
1691 /*
1692  *  File name selection pattern
1693  */
1694 tSCC zDarwin_Gcc4_BreakageList[] =
1695   "|AvailabilityMacros.h|";
1696 /*
1697  *  Machine/OS name selection pattern
1698  */
1699 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1700         "*-*-darwin*",
1701         (const char*)NULL };
1702
1703 /*
1704  *  content selection pattern - do fix if pattern found
1705  */
1706 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1707        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1708
1709 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
1710 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1711   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1712
1713 /*
1714  *  Fix Command Arguments for Darwin_Gcc4_Breakage
1715  */
1716 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1717     "format",
1718     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1719     (char*)NULL };
1720
1721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1722  *
1723  *  Description of Darwin_Private_Extern fix
1724  */
1725 tSCC zDarwin_Private_ExternName[] =
1726      "darwin_private_extern";
1727
1728 /*
1729  *  File name selection pattern
1730  */
1731 tSCC zDarwin_Private_ExternList[] =
1732   "|mach-o/dyld.h|";
1733 /*
1734  *  Machine/OS name selection pattern
1735  */
1736 tSCC* apzDarwin_Private_ExternMachs[] = {
1737         "*-*-darwin*",
1738         (const char*)NULL };
1739
1740 /*
1741  *  content selection pattern - do fix if pattern found
1742  */
1743 tSCC zDarwin_Private_ExternSelect0[] =
1744        "__private_extern__ [a-z_]+ _dyld_";
1745
1746 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
1747 static tTestDesc aDarwin_Private_ExternTests[] = {
1748   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1749
1750 /*
1751  *  Fix Command Arguments for Darwin_Private_Extern
1752  */
1753 static const char* apzDarwin_Private_ExternPatch[] = {
1754     "format",
1755     "extern",
1756     "__private_extern__",
1757     (char*)NULL };
1758
1759 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1760  *
1761  *  Description of Dec_Intern_Asm fix
1762  */
1763 tSCC zDec_Intern_AsmName[] =
1764      "dec_intern_asm";
1765
1766 /*
1767  *  File name selection pattern
1768  */
1769 tSCC zDec_Intern_AsmList[] =
1770   "|c_asm.h|";
1771 /*
1772  *  Machine/OS name selection pattern
1773  */
1774 #define apzDec_Intern_AsmMachs (const char**)NULL
1775 #define DEC_INTERN_ASM_TEST_CT  0
1776 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
1777
1778 /*
1779  *  Fix Command Arguments for Dec_Intern_Asm
1780  */
1781 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1782     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1783 #ifdef __DECC\n",
1784     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1785 #endif\n",
1786     (char*)NULL };
1787
1788 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1789  *
1790  *  Description of Djgpp_Wchar_H fix
1791  */
1792 tSCC zDjgpp_Wchar_HName[] =
1793      "djgpp_wchar_h";
1794
1795 /*
1796  *  File name selection pattern
1797  */
1798 #define zDjgpp_Wchar_HList (char*)NULL
1799 /*
1800  *  Machine/OS name selection pattern
1801  */
1802 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1803
1804 /*
1805  *  content selection pattern - do fix if pattern found
1806  */
1807 tSCC zDjgpp_Wchar_HSelect0[] =
1808        "__DJ_wint_t";
1809
1810 /*
1811  *  content bypass pattern - skip fix if pattern found
1812  */
1813 tSCC zDjgpp_Wchar_HBypass0[] =
1814        "sys/djtypes.h";
1815
1816 #define    DJGPP_WCHAR_H_TEST_CT  2
1817 static tTestDesc aDjgpp_Wchar_HTests[] = {
1818   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1819   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1820
1821 /*
1822  *  Fix Command Arguments for Djgpp_Wchar_H
1823  */
1824 static const char* apzDjgpp_Wchar_HPatch[] = {
1825     "format",
1826     "%0\n\
1827 #include <sys/djtypes.h>",
1828     "#include <stddef.h>",
1829     (char*)NULL };
1830
1831 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1832  *
1833  *  Description of Ecd_Cursor fix
1834  */
1835 tSCC zEcd_CursorName[] =
1836      "ecd_cursor";
1837
1838 /*
1839  *  File name selection pattern
1840  */
1841 tSCC zEcd_CursorList[] =
1842   "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1843 /*
1844  *  Machine/OS name selection pattern
1845  */
1846 #define apzEcd_CursorMachs (const char**)NULL
1847
1848 /*
1849  *  content selection pattern - do fix if pattern found
1850  */
1851 tSCC zEcd_CursorSelect0[] =
1852        "ecd\\.cursor";
1853
1854 #define    ECD_CURSOR_TEST_CT  1
1855 static tTestDesc aEcd_CursorTests[] = {
1856   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
1857
1858 /*
1859  *  Fix Command Arguments for Ecd_Cursor
1860  */
1861 static const char* apzEcd_CursorPatch[] = {
1862     "format",
1863     "ecd_cursor",
1864     (char*)NULL };
1865
1866 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1867  *
1868  *  Description of Exception_Structure fix
1869  */
1870 tSCC zException_StructureName[] =
1871      "exception_structure";
1872
1873 /*
1874  *  File name selection pattern
1875  */
1876 tSCC zException_StructureList[] =
1877   "|math.h|";
1878 /*
1879  *  Machine/OS name selection pattern
1880  */
1881 #define apzException_StructureMachs (const char**)NULL
1882
1883 /*
1884  *  content selection pattern - do fix if pattern found
1885  */
1886 tSCC zException_StructureSelect0[] =
1887        "matherr";
1888
1889 /*
1890  *  content bypass pattern - skip fix if pattern found
1891  */
1892 tSCC zException_StructureBypass0[] =
1893        "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
1894
1895 #define    EXCEPTION_STRUCTURE_TEST_CT  2
1896 static tTestDesc aException_StructureTests[] = {
1897   { TT_NEGREP,   zException_StructureBypass0, (regex_t*)NULL },
1898   { TT_EGREP,    zException_StructureSelect0, (regex_t*)NULL }, };
1899
1900 /*
1901  *  Fix Command Arguments for Exception_Structure
1902  */
1903 static const char* apzException_StructurePatch[] = {
1904     "wrap",
1905     "struct exception;\n",
1906     (char*)NULL };
1907
1908 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1909  *
1910  *  Description of Freebsd_Gcc3_Breakage fix
1911  */
1912 tSCC zFreebsd_Gcc3_BreakageName[] =
1913      "freebsd_gcc3_breakage";
1914
1915 /*
1916  *  File name selection pattern
1917  */
1918 tSCC zFreebsd_Gcc3_BreakageList[] =
1919   "|sys/cdefs.h|";
1920 /*
1921  *  Machine/OS name selection pattern
1922  */
1923 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1924         "*-*-freebsd*",
1925         (const char*)NULL };
1926
1927 /*
1928  *  content selection pattern - do fix if pattern found
1929  */
1930 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1931        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1932
1933 /*
1934  *  content bypass pattern - skip fix if pattern found
1935  */
1936 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1937        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
1938
1939 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
1940 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
1941   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
1942   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
1943
1944 /*
1945  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
1946  */
1947 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
1948     "format",
1949     "%0 || __GNUC__ >= 3",
1950     (char*)NULL };
1951
1952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1953  *
1954  *  Description of Freebsd_Gcc4_Breakage fix
1955  */
1956 tSCC zFreebsd_Gcc4_BreakageName[] =
1957      "freebsd_gcc4_breakage";
1958
1959 /*
1960  *  File name selection pattern
1961  */
1962 tSCC zFreebsd_Gcc4_BreakageList[] =
1963   "|sys/cdefs.h|";
1964 /*
1965  *  Machine/OS name selection pattern
1966  */
1967 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
1968         "*-*-freebsd*",
1969         (const char*)NULL };
1970
1971 /*
1972  *  content selection pattern - do fix if pattern found
1973  */
1974 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
1975        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
1976
1977 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
1978 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
1979   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1980
1981 /*
1982  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
1983  */
1984 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
1985     "format",
1986     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
1987     (char*)NULL };
1988
1989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1990  *
1991  *  Description of Gnu_Types fix
1992  */
1993 tSCC zGnu_TypesName[] =
1994      "gnu_types";
1995
1996 /*
1997  *  File name selection pattern
1998  */
1999 tSCC zGnu_TypesList[] =
2000   "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
2001 /*
2002  *  Machine/OS name selection pattern
2003  */
2004 tSCC* apzGnu_TypesMachs[] = {
2005         "*-*-solaris2.1[0-9]*",
2006         (const char*)NULL };
2007
2008 /*
2009  *  content selection pattern - do fix if pattern found
2010  */
2011 tSCC zGnu_TypesSelect0[] =
2012        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2013
2014 /*
2015  *  content bypass pattern - skip fix if pattern found
2016  */
2017 tSCC zGnu_TypesBypass0[] =
2018        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2019
2020 #define    GNU_TYPES_TEST_CT  2
2021 static tTestDesc aGnu_TypesTests[] = {
2022   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
2023   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
2024
2025 /*
2026  *  Fix Command Arguments for Gnu_Types
2027  */
2028 static const char* apzGnu_TypesPatch[] = {
2029     "gnu_type",
2030     (char*)NULL };
2031
2032 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2033  *
2034  *  Description of Hp_Inline fix
2035  */
2036 tSCC zHp_InlineName[] =
2037      "hp_inline";
2038
2039 /*
2040  *  File name selection pattern
2041  */
2042 tSCC zHp_InlineList[] =
2043   "|sys/spinlock.h|machine/machparam.h|";
2044 /*
2045  *  Machine/OS name selection pattern
2046  */
2047 #define apzHp_InlineMachs (const char**)NULL
2048
2049 /*
2050  *  content selection pattern - do fix if pattern found
2051  */
2052 tSCC zHp_InlineSelect0[] =
2053        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2054
2055 #define    HP_INLINE_TEST_CT  1
2056 static tTestDesc aHp_InlineTests[] = {
2057   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
2058
2059 /*
2060  *  Fix Command Arguments for Hp_Inline
2061  */
2062 static const char* apzHp_InlinePatch[] = {
2063     "format",
2064     "%1<machine/%2.h>",
2065     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2066     (char*)NULL };
2067
2068 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2069  *
2070  *  Description of Hp_Sysfile fix
2071  */
2072 tSCC zHp_SysfileName[] =
2073      "hp_sysfile";
2074
2075 /*
2076  *  File name selection pattern
2077  */
2078 tSCC zHp_SysfileList[] =
2079   "|sys/file.h|";
2080 /*
2081  *  Machine/OS name selection pattern
2082  */
2083 #define apzHp_SysfileMachs (const char**)NULL
2084
2085 /*
2086  *  content selection pattern - do fix if pattern found
2087  */
2088 tSCC zHp_SysfileSelect0[] =
2089        "HPUX_SOURCE";
2090
2091 #define    HP_SYSFILE_TEST_CT  1
2092 static tTestDesc aHp_SysfileTests[] = {
2093   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
2094
2095 /*
2096  *  Fix Command Arguments for Hp_Sysfile
2097  */
2098 static const char* apzHp_SysfilePatch[] = {
2099     "format",
2100     "(struct file *, ...)",
2101     "\\(\\.\\.\\.\\)",
2102     (char*)NULL };
2103
2104 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2105  *
2106  *  Description of Hpux10_Cpp_Pow_Inline fix
2107  */
2108 tSCC zHpux10_Cpp_Pow_InlineName[] =
2109      "hpux10_cpp_pow_inline";
2110
2111 /*
2112  *  File name selection pattern
2113  */
2114 tSCC zHpux10_Cpp_Pow_InlineList[] =
2115   "|fixinc-test-limits.h|math.h|";
2116 /*
2117  *  Machine/OS name selection pattern
2118  */
2119 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2120
2121 /*
2122  *  content selection pattern - do fix if pattern found
2123  */
2124 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2125        "^# +ifdef +__cplusplus\n\
2126  +\\}\n\
2127  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2128 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2129  +\\}\n\
2130  +extern +\"C\" +\\{\n\
2131 #else\n\
2132 # +endif";
2133
2134 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
2135 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2136   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2137
2138 /*
2139  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2140  */
2141 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2142     "format",
2143     "",
2144     (char*)NULL };
2145
2146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2147  *
2148  *  Description of Hpux11_Cpp_Pow_Inline fix
2149  */
2150 tSCC zHpux11_Cpp_Pow_InlineName[] =
2151      "hpux11_cpp_pow_inline";
2152
2153 /*
2154  *  File name selection pattern
2155  */
2156 tSCC zHpux11_Cpp_Pow_InlineList[] =
2157   "|math.h|";
2158 /*
2159  *  Machine/OS name selection pattern
2160  */
2161 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2162
2163 /*
2164  *  content selection pattern - do fix if pattern found
2165  */
2166 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2167        " +inline double pow\\(double d,int expon\\) \\{\n\
2168  +return pow\\(d, \\(double\\)expon\\);\n\
2169  +\\}\n";
2170
2171 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
2172 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2173   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2174
2175 /*
2176  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2177  */
2178 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2179     "format",
2180     "",
2181     (char*)NULL };
2182
2183 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2184  *
2185  *  Description of Hpux10_Ctype_Declarations1 fix
2186  */
2187 tSCC zHpux10_Ctype_Declarations1Name[] =
2188      "hpux10_ctype_declarations1";
2189
2190 /*
2191  *  File name selection pattern
2192  */
2193 tSCC zHpux10_Ctype_Declarations1List[] =
2194   "|ctype.h|";
2195 /*
2196  *  Machine/OS name selection pattern
2197  */
2198 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2199
2200 /*
2201  *  content selection pattern - do fix if pattern found
2202  */
2203 tSCC zHpux10_Ctype_Declarations1Select0[] =
2204        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2205
2206 /*
2207  *  content bypass pattern - skip fix if pattern found
2208  */
2209 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2210        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2211
2212 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
2213 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2214   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2215   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2216
2217 /*
2218  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
2219  */
2220 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2221     "format",
2222     "#ifdef _PROTOTYPES\n\
2223 extern int __tolower(int);\n\
2224 extern int __toupper(int);\n\
2225 #else /* NOT _PROTOTYPES */\n\
2226 extern int __tolower();\n\
2227 extern int __toupper();\n\
2228 #endif /* _PROTOTYPES */\n\n\
2229 %0\n",
2230     (char*)NULL };
2231
2232 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2233  *
2234  *  Description of Hpux10_Ctype_Declarations2 fix
2235  */
2236 tSCC zHpux10_Ctype_Declarations2Name[] =
2237      "hpux10_ctype_declarations2";
2238
2239 /*
2240  *  File name selection pattern
2241  */
2242 tSCC zHpux10_Ctype_Declarations2List[] =
2243   "|ctype.h|";
2244 /*
2245  *  Machine/OS name selection pattern
2246  */
2247 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2248
2249 /*
2250  *  content selection pattern - do fix if pattern found
2251  */
2252 tSCC zHpux10_Ctype_Declarations2Select0[] =
2253        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2254
2255 /*
2256  *  content bypass pattern - skip fix if pattern found
2257  */
2258 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2259        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2260
2261 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
2262 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2263   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2264   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2265
2266 /*
2267  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
2268  */
2269 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2270     "format",
2271     "%0\n\n\
2272 #ifdef _PROTOTYPES\n\
2273      extern int _isalnum(int);\n\
2274      extern int _isalpha(int);\n\
2275      extern int _iscntrl(int);\n\
2276      extern int _isdigit(int);\n\
2277      extern int _isgraph(int);\n\
2278      extern int _islower(int);\n\
2279      extern int _isprint(int);\n\
2280      extern int _ispunct(int);\n\
2281      extern int _isspace(int);\n\
2282      extern int _isupper(int);\n\
2283      extern int _isxdigit(int);\n\
2284 #  else /* not _PROTOTYPES */\n\
2285      extern int _isalnum();\n\
2286      extern int _isalpha();\n\
2287      extern int _iscntrl();\n\
2288      extern int _isdigit();\n\
2289      extern int _isgraph();\n\
2290      extern int _islower();\n\
2291      extern int _isprint();\n\
2292      extern int _ispunct();\n\
2293      extern int _isspace();\n\
2294      extern int _isupper();\n\
2295      extern int _isxdigit();\n\
2296 #endif /* _PROTOTYPES */\n",
2297     (char*)NULL };
2298
2299 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2300  *
2301  *  Description of Hpux10_Stdio_Declarations fix
2302  */
2303 tSCC zHpux10_Stdio_DeclarationsName[] =
2304      "hpux10_stdio_declarations";
2305
2306 /*
2307  *  File name selection pattern
2308  */
2309 tSCC zHpux10_Stdio_DeclarationsList[] =
2310   "|stdio.h|";
2311 /*
2312  *  Machine/OS name selection pattern
2313  */
2314 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2315
2316 /*
2317  *  content selection pattern - do fix if pattern found
2318  */
2319 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2320        "^#[ \t]*define _iob[ \t]*__iob";
2321
2322 /*
2323  *  content bypass pattern - skip fix if pattern found
2324  */
2325 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2326        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2327
2328 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
2329 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2330   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2331   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2332
2333 /*
2334  *  Fix Command Arguments for Hpux10_Stdio_Declarations
2335  */
2336 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2337     "format",
2338     "%0\n\n\
2339 #  if defined(__STDC__) || defined(__cplusplus)\n\
2340      extern int snprintf(char *, size_t, const char *, ...);\n\
2341      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2342 #  else /* not __STDC__) || __cplusplus */\n\
2343      extern int snprintf();\n\
2344      extern int vsnprintf();\n\
2345 #  endif /* __STDC__) || __cplusplus */\n",
2346     (char*)NULL };
2347
2348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2349  *
2350  *  Description of Hpux11_Abs fix
2351  */
2352 tSCC zHpux11_AbsName[] =
2353      "hpux11_abs";
2354
2355 /*
2356  *  File name selection pattern
2357  */
2358 tSCC zHpux11_AbsList[] =
2359   "|stdlib.h|";
2360 /*
2361  *  Machine/OS name selection pattern
2362  */
2363 tSCC* apzHpux11_AbsMachs[] = {
2364         "ia64-hp-hpux11*",
2365         (const char*)NULL };
2366
2367 /*
2368  *  content selection pattern - do fix if pattern found
2369  */
2370 tSCC zHpux11_AbsSelect0[] =
2371        "ifndef _MATH_INCLUDED";
2372
2373 #define    HPUX11_ABS_TEST_CT  1
2374 static tTestDesc aHpux11_AbsTests[] = {
2375   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
2376
2377 /*
2378  *  Fix Command Arguments for Hpux11_Abs
2379  */
2380 static const char* apzHpux11_AbsPatch[] = {
2381     "format",
2382     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2383     (char*)NULL };
2384
2385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2386  *
2387  *  Description of Hpux11_Fabsf fix
2388  */
2389 tSCC zHpux11_FabsfName[] =
2390      "hpux11_fabsf";
2391
2392 /*
2393  *  File name selection pattern
2394  */
2395 tSCC zHpux11_FabsfList[] =
2396   "|math.h|";
2397 /*
2398  *  Machine/OS name selection pattern
2399  */
2400 #define apzHpux11_FabsfMachs (const char**)NULL
2401
2402 /*
2403  *  content selection pattern - do fix if pattern found
2404  */
2405 tSCC zHpux11_FabsfSelect0[] =
2406        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2407
2408 /*
2409  *  content bypass pattern - skip fix if pattern found
2410  */
2411 tSCC zHpux11_FabsfBypass0[] =
2412        "__cplusplus";
2413
2414 #define    HPUX11_FABSF_TEST_CT  2
2415 static tTestDesc aHpux11_FabsfTests[] = {
2416   { TT_NEGREP,   zHpux11_FabsfBypass0, (regex_t*)NULL },
2417   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2418
2419 /*
2420  *  Fix Command Arguments for Hpux11_Fabsf
2421  */
2422 static const char* apzHpux11_FabsfPatch[] = {
2423     "format",
2424     "#ifndef __cplusplus\n\
2425 %0\n\
2426 #endif",
2427     (char*)NULL };
2428
2429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2430  *
2431  *  Description of Hpux11_Size_T fix
2432  */
2433 tSCC zHpux11_Size_TName[] =
2434      "hpux11_size_t";
2435
2436 /*
2437  *  File name selection pattern
2438  */
2439 #define zHpux11_Size_TList (char*)NULL
2440 /*
2441  *  Machine/OS name selection pattern
2442  */
2443 tSCC* apzHpux11_Size_TMachs[] = {
2444         "*-hp-hpux11*",
2445         (const char*)NULL };
2446
2447 /*
2448  *  content selection pattern - do fix if pattern found
2449  */
2450 tSCC zHpux11_Size_TSelect0[] =
2451        "__size_t";
2452
2453 #define    HPUX11_SIZE_T_TEST_CT  1
2454 static tTestDesc aHpux11_Size_TTests[] = {
2455   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2456
2457 /*
2458  *  Fix Command Arguments for Hpux11_Size_T
2459  */
2460 static const char* apzHpux11_Size_TPatch[] = {
2461     "format",
2462     "_hpux_size_t",
2463     (char*)NULL };
2464
2465 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2466  *
2467  *  Description of Hpux11_Snprintf fix
2468  */
2469 tSCC zHpux11_SnprintfName[] =
2470      "hpux11_snprintf";
2471
2472 /*
2473  *  File name selection pattern
2474  */
2475 tSCC zHpux11_SnprintfList[] =
2476   "|stdio.h|";
2477 /*
2478  *  Machine/OS name selection pattern
2479  */
2480 #define apzHpux11_SnprintfMachs (const char**)NULL
2481
2482 /*
2483  *  content selection pattern - do fix if pattern found
2484  */
2485 tSCC zHpux11_SnprintfSelect0[] =
2486        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2487
2488 #define    HPUX11_SNPRINTF_TEST_CT  1
2489 static tTestDesc aHpux11_SnprintfTests[] = {
2490   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2491
2492 /*
2493  *  Fix Command Arguments for Hpux11_Snprintf
2494  */
2495 static const char* apzHpux11_SnprintfPatch[] = {
2496     "format",
2497     "%1 const %3",
2498     (char*)NULL };
2499
2500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2501  *
2502  *  Description of Hpux11_Uint32_C fix
2503  */
2504 tSCC zHpux11_Uint32_CName[] =
2505      "hpux11_uint32_c";
2506
2507 /*
2508  *  File name selection pattern
2509  */
2510 tSCC zHpux11_Uint32_CList[] =
2511   "|inttypes.h|";
2512 /*
2513  *  Machine/OS name selection pattern
2514  */
2515 #define apzHpux11_Uint32_CMachs (const char**)NULL
2516
2517 /*
2518  *  content selection pattern - do fix if pattern found
2519  */
2520 tSCC zHpux11_Uint32_CSelect0[] =
2521        "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2522
2523 #define    HPUX11_UINT32_C_TEST_CT  1
2524 static tTestDesc aHpux11_Uint32_CTests[] = {
2525   { TT_EGREP,    zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2526
2527 /*
2528  *  Fix Command Arguments for Hpux11_Uint32_C
2529  */
2530 static const char* apzHpux11_Uint32_CPatch[] = {
2531     "format",
2532     "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2533     (char*)NULL };
2534
2535 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2536  *
2537  *  Description of Hpux11_Vsnprintf fix
2538  */
2539 tSCC zHpux11_VsnprintfName[] =
2540      "hpux11_vsnprintf";
2541
2542 /*
2543  *  File name selection pattern
2544  */
2545 tSCC zHpux11_VsnprintfList[] =
2546   "|stdio.h|";
2547 /*
2548  *  Machine/OS name selection pattern
2549  */
2550 #define apzHpux11_VsnprintfMachs (const char**)NULL
2551
2552 /*
2553  *  content selection pattern - do fix if pattern found
2554  */
2555 tSCC zHpux11_VsnprintfSelect0[] =
2556        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2557
2558 #define    HPUX11_VSNPRINTF_TEST_CT  1
2559 static tTestDesc aHpux11_VsnprintfTests[] = {
2560   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2561
2562 /*
2563  *  Fix Command Arguments for Hpux11_Vsnprintf
2564  */
2565 static const char* apzHpux11_VsnprintfPatch[] = {
2566     "format",
2567     "%1 __va_list);",
2568     (char*)NULL };
2569
2570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2571  *
2572  *  Description of Hpux8_Bogus_Inlines fix
2573  */
2574 tSCC zHpux8_Bogus_InlinesName[] =
2575      "hpux8_bogus_inlines";
2576
2577 /*
2578  *  File name selection pattern
2579  */
2580 tSCC zHpux8_Bogus_InlinesList[] =
2581   "|math.h|";
2582 /*
2583  *  Machine/OS name selection pattern
2584  */
2585 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2586
2587 /*
2588  *  content selection pattern - do fix if pattern found
2589  */
2590 tSCC zHpux8_Bogus_InlinesSelect0[] =
2591        "inline";
2592
2593 /*
2594  *  content bypass pattern - skip fix if pattern found
2595  */
2596 tSCC zHpux8_Bogus_InlinesBypass0[] =
2597        "__GNUG__";
2598
2599 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
2600 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2601   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
2602   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2603
2604 /*
2605  *  Fix Command Arguments for Hpux8_Bogus_Inlines
2606  */
2607 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2608     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2609     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2610     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2611     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2612     (char*)NULL };
2613
2614 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2615  *
2616  *  Description of Hpux_Ctype_Macros fix
2617  */
2618 tSCC zHpux_Ctype_MacrosName[] =
2619      "hpux_ctype_macros";
2620
2621 /*
2622  *  File name selection pattern
2623  */
2624 tSCC zHpux_Ctype_MacrosList[] =
2625   "|ctype.h|";
2626 /*
2627  *  Machine/OS name selection pattern
2628  */
2629 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2630
2631 /*
2632  *  content selection pattern - do fix if pattern found
2633  */
2634 tSCC zHpux_Ctype_MacrosSelect0[] =
2635        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2636
2637 #define    HPUX_CTYPE_MACROS_TEST_CT  1
2638 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2639   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
2640
2641 /*
2642  *  Fix Command Arguments for Hpux_Ctype_Macros
2643  */
2644 static const char* apzHpux_Ctype_MacrosPatch[] = {
2645     "format",
2646     "%1(int)%3",
2647     (char*)NULL };
2648
2649 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2650  *
2651  *  Description of Hpux_Long_Double fix
2652  */
2653 tSCC zHpux_Long_DoubleName[] =
2654      "hpux_long_double";
2655
2656 /*
2657  *  File name selection pattern
2658  */
2659 tSCC zHpux_Long_DoubleList[] =
2660   "|stdlib.h|";
2661 /*
2662  *  Machine/OS name selection pattern
2663  */
2664 #define apzHpux_Long_DoubleMachs (const char**)NULL
2665
2666 /*
2667  *  content selection pattern - do fix if pattern found
2668  */
2669 tSCC zHpux_Long_DoubleSelect0[] =
2670        "extern[ \t]long_double[ \t]strtold";
2671
2672 /*
2673  *  content bypass pattern - skip fix if pattern found
2674  */
2675 tSCC zHpux_Long_DoubleBypass0[] =
2676        "long_double_t";
2677
2678 #define    HPUX_LONG_DOUBLE_TEST_CT  2
2679 static tTestDesc aHpux_Long_DoubleTests[] = {
2680   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
2681   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
2682
2683 /*
2684  *  Fix Command Arguments for Hpux_Long_Double
2685  */
2686 static const char* apzHpux_Long_DoublePatch[] = { "sed",
2687     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
2688     "-e", "s/long_double/long double/g",
2689     (char*)NULL };
2690
2691 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2692  *
2693  *  Description of Hpux_Systime fix
2694  */
2695 tSCC zHpux_SystimeName[] =
2696      "hpux_systime";
2697
2698 /*
2699  *  File name selection pattern
2700  */
2701 tSCC zHpux_SystimeList[] =
2702   "|sys/time.h|";
2703 /*
2704  *  Machine/OS name selection pattern
2705  */
2706 #define apzHpux_SystimeMachs (const char**)NULL
2707
2708 /*
2709  *  content selection pattern - do fix if pattern found
2710  */
2711 tSCC zHpux_SystimeSelect0[] =
2712        "^extern struct sigevent;";
2713
2714 #define    HPUX_SYSTIME_TEST_CT  1
2715 static tTestDesc aHpux_SystimeTests[] = {
2716   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
2717
2718 /*
2719  *  Fix Command Arguments for Hpux_Systime
2720  */
2721 static const char* apzHpux_SystimePatch[] = {
2722     "format",
2723     "struct sigevent;",
2724     (char*)NULL };
2725
2726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2727  *
2728  *  Description of Int_Abort_Free_And_Exit fix
2729  */
2730 tSCC zInt_Abort_Free_And_ExitName[] =
2731      "int_abort_free_and_exit";
2732
2733 /*
2734  *  File name selection pattern
2735  */
2736 tSCC zInt_Abort_Free_And_ExitList[] =
2737   "|stdlib.h|";
2738 /*
2739  *  Machine/OS name selection pattern
2740  */
2741 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2742
2743 /*
2744  *  content selection pattern - do fix if pattern found
2745  */
2746 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2747        "int[ \t]+(abort|free|exit)[ \t]*\\(";
2748
2749 /*
2750  *  content bypass pattern - skip fix if pattern found
2751  */
2752 tSCC zInt_Abort_Free_And_ExitBypass0[] =
2753        "_CLASSIC_ANSI_TYPES";
2754
2755 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
2756 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
2757   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
2758   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
2759
2760 /*
2761  *  Fix Command Arguments for Int_Abort_Free_And_Exit
2762  */
2763 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
2764     "format",
2765     "void\t%1(",
2766     (char*)NULL };
2767
2768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2769  *
2770  *  Description of Io_Quotes_Def fix
2771  */
2772 tSCC zIo_Quotes_DefName[] =
2773      "io_quotes_def";
2774
2775 /*
2776  *  File name selection pattern
2777  */
2778 #define zIo_Quotes_DefList (char*)NULL
2779 /*
2780  *  Machine/OS name selection pattern
2781  */
2782 #define apzIo_Quotes_DefMachs (const char**)NULL
2783
2784 /*
2785  *  content selection pattern - do fix if pattern found
2786  */
2787 tSCC zIo_Quotes_DefSelect0[] =
2788        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
2789
2790 #define    IO_QUOTES_DEF_TEST_CT  1
2791 static tTestDesc aIo_Quotes_DefTests[] = {
2792   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
2793
2794 /*
2795  *  Fix Command Arguments for Io_Quotes_Def
2796  */
2797 static const char* apzIo_Quotes_DefPatch[] = {
2798     "char_macro_def",
2799     "IO",
2800     (char*)NULL };
2801
2802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2803  *
2804  *  Description of Io_Quotes_Use fix
2805  */
2806 tSCC zIo_Quotes_UseName[] =
2807      "io_quotes_use";
2808
2809 /*
2810  *  File name selection pattern
2811  */
2812 #define zIo_Quotes_UseList (char*)NULL
2813 /*
2814  *  Machine/OS name selection pattern
2815  */
2816 #define apzIo_Quotes_UseMachs (const char**)NULL
2817
2818 /*
2819  *  content selection pattern - do fix if pattern found
2820  */
2821 tSCC zIo_Quotes_UseSelect0[] =
2822        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
2823
2824 #define    IO_QUOTES_USE_TEST_CT  1
2825 static tTestDesc aIo_Quotes_UseTests[] = {
2826   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
2827
2828 /*
2829  *  Fix Command Arguments for Io_Quotes_Use
2830  */
2831 static const char* apzIo_Quotes_UsePatch[] = {
2832     "char_macro_use",
2833     "IO",
2834     (char*)NULL };
2835
2836 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2837  *
2838  *  Description of Ip_Missing_Semi fix
2839  */
2840 tSCC zIp_Missing_SemiName[] =
2841      "ip_missing_semi";
2842
2843 /*
2844  *  File name selection pattern
2845  */
2846 tSCC zIp_Missing_SemiList[] =
2847   "|netinet/ip.h|";
2848 /*
2849  *  Machine/OS name selection pattern
2850  */
2851 #define apzIp_Missing_SemiMachs (const char**)NULL
2852
2853 /*
2854  *  content selection pattern - do fix if pattern found
2855  */
2856 tSCC zIp_Missing_SemiSelect0[] =
2857        "}$";
2858
2859 #define    IP_MISSING_SEMI_TEST_CT  1
2860 static tTestDesc aIp_Missing_SemiTests[] = {
2861   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2862
2863 /*
2864  *  Fix Command Arguments for Ip_Missing_Semi
2865  */
2866 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2867     "-e", "/^struct/,/^};/s/}$/};/",
2868     (char*)NULL };
2869
2870 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2871  *
2872  *  Description of Irix___Restrict fix
2873  */
2874 tSCC zIrix___RestrictName[] =
2875      "irix___restrict";
2876
2877 /*
2878  *  File name selection pattern
2879  */
2880 tSCC zIrix___RestrictList[] =
2881   "|internal/sgimacros.h|";
2882 /*
2883  *  Machine/OS name selection pattern
2884  */
2885 tSCC* apzIrix___RestrictMachs[] = {
2886         "mips-sgi-irix6.5",
2887         (const char*)NULL };
2888
2889 /*
2890  *  content selection pattern - do fix if pattern found
2891  */
2892 tSCC zIrix___RestrictSelect0[] =
2893        "(#ifdef __c99\n\
2894 )(#[ \t]*define __restrict restrict)";
2895
2896 #define    IRIX___RESTRICT_TEST_CT  1
2897 static tTestDesc aIrix___RestrictTests[] = {
2898   { TT_EGREP,    zIrix___RestrictSelect0, (regex_t*)NULL }, };
2899
2900 /*
2901  *  Fix Command Arguments for Irix___Restrict
2902  */
2903 static const char* apzIrix___RestrictPatch[] = {
2904     "format",
2905     "%1#  ifndef __cplusplus\n\
2906 %2\n\
2907 #  endif",
2908     (char*)NULL };
2909
2910 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2911  *
2912  *  Description of Irix___Generic1 fix
2913  */
2914 tSCC zIrix___Generic1Name[] =
2915      "irix___generic1";
2916
2917 /*
2918  *  File name selection pattern
2919  */
2920 tSCC zIrix___Generic1List[] =
2921   "|internal/math_core.h|";
2922 /*
2923  *  Machine/OS name selection pattern
2924  */
2925 tSCC* apzIrix___Generic1Machs[] = {
2926         "mips-sgi-irix6.5",
2927         (const char*)NULL };
2928
2929 /*
2930  *  content selection pattern - do fix if pattern found
2931  */
2932 tSCC zIrix___Generic1Select0[] =
2933        "#define ([a-z]+)\\(x\\) *__generic.*";
2934
2935 #define    IRIX___GENERIC1_TEST_CT  1
2936 static tTestDesc aIrix___Generic1Tests[] = {
2937   { TT_EGREP,    zIrix___Generic1Select0, (regex_t*)NULL }, };
2938
2939 /*
2940  *  Fix Command Arguments for Irix___Generic1
2941  */
2942 static const char* apzIrix___Generic1Patch[] = {
2943     "format",
2944     "extern int %1(double);\n\
2945 extern int %1f(float);\n\
2946 extern int %1l(long double);\n\
2947 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
2948                : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
2949                : _%1l(x))\n",
2950     (char*)NULL };
2951
2952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2953  *
2954  *  Description of Irix___Generic2 fix
2955  */
2956 tSCC zIrix___Generic2Name[] =
2957      "irix___generic2";
2958
2959 /*
2960  *  File name selection pattern
2961  */
2962 tSCC zIrix___Generic2List[] =
2963   "|internal/math_core.h|";
2964 /*
2965  *  Machine/OS name selection pattern
2966  */
2967 tSCC* apzIrix___Generic2Machs[] = {
2968         "mips-sgi-irix6.5",
2969         (const char*)NULL };
2970
2971 /*
2972  *  content selection pattern - do fix if pattern found
2973  */
2974 tSCC zIrix___Generic2Select0[] =
2975        "#define ([a-z]+)\\(x,y\\) *__generic.*";
2976
2977 #define    IRIX___GENERIC2_TEST_CT  1
2978 static tTestDesc aIrix___Generic2Tests[] = {
2979   { TT_EGREP,    zIrix___Generic2Select0, (regex_t*)NULL }, };
2980
2981 /*
2982  *  Fix Command Arguments for Irix___Generic2
2983  */
2984 static const char* apzIrix___Generic2Patch[] = {
2985     "format",
2986     "#define %1(x,y) \\\n\
2987   ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
2988    : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
2989    : _%1l(x,y))\n",
2990     (char*)NULL };
2991
2992 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2993  *
2994  *  Description of Irix_Asm_Apostrophe fix
2995  */
2996 tSCC zIrix_Asm_ApostropheName[] =
2997      "irix_asm_apostrophe";
2998
2999 /*
3000  *  File name selection pattern
3001  */
3002 tSCC zIrix_Asm_ApostropheList[] =
3003   "|sys/asm.h|";
3004 /*
3005  *  Machine/OS name selection pattern
3006  */
3007 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3008
3009 /*
3010  *  content selection pattern - do fix if pattern found
3011  */
3012 tSCC zIrix_Asm_ApostropheSelect0[] =
3013        "^[ \t]*#.*[Ww]e're";
3014
3015 #define    IRIX_ASM_APOSTROPHE_TEST_CT  1
3016 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3017   { TT_EGREP,    zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3018
3019 /*
3020  *  Fix Command Arguments for Irix_Asm_Apostrophe
3021  */
3022 static const char* apzIrix_Asm_ApostrophePatch[] = {
3023     "format",
3024     "%1 are",
3025     "^([ \t]*#.*[Ww]e)'re",
3026     (char*)NULL };
3027
3028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3029  *
3030  *  Description of Irix_Limits_Const fix
3031  */
3032 tSCC zIrix_Limits_ConstName[] =
3033      "irix_limits_const";
3034
3035 /*
3036  *  File name selection pattern
3037  */
3038 tSCC zIrix_Limits_ConstList[] =
3039   "|fixinc-test-limits.h|limits.h|";
3040 /*
3041  *  Machine/OS name selection pattern
3042  */
3043 #define apzIrix_Limits_ConstMachs (const char**)NULL
3044
3045 /*
3046  *  content selection pattern - do fix if pattern found
3047  */
3048 tSCC zIrix_Limits_ConstSelect0[] =
3049        "^extern const ";
3050
3051 #define    IRIX_LIMITS_CONST_TEST_CT  1
3052 static tTestDesc aIrix_Limits_ConstTests[] = {
3053   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3054
3055 /*
3056  *  Fix Command Arguments for Irix_Limits_Const
3057  */
3058 static const char* apzIrix_Limits_ConstPatch[] = {
3059     "format",
3060     "extern __const ",
3061     (char*)NULL };
3062
3063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3064  *
3065  *  Description of Irix_Socklen_T fix
3066  */
3067 tSCC zIrix_Socklen_TName[] =
3068      "irix_socklen_t";
3069
3070 /*
3071  *  File name selection pattern
3072  */
3073 tSCC zIrix_Socklen_TList[] =
3074   "|sys/socket.h|";
3075 /*
3076  *  Machine/OS name selection pattern
3077  */
3078 tSCC* apzIrix_Socklen_TMachs[] = {
3079         "mips-sgi-irix6.5",
3080         (const char*)NULL };
3081
3082 /*
3083  *  content selection pattern - do fix if pattern found
3084  */
3085 tSCC zIrix_Socklen_TSelect0[] =
3086        "(#define _SOCKLEN_T\n\
3087 )(typedef u_int32_t socklen_t;)";
3088
3089 #define    IRIX_SOCKLEN_T_TEST_CT  1
3090 static tTestDesc aIrix_Socklen_TTests[] = {
3091   { TT_EGREP,    zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3092
3093 /*
3094  *  Fix Command Arguments for Irix_Socklen_T
3095  */
3096 static const char* apzIrix_Socklen_TPatch[] = {
3097     "format",
3098     "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3099 typedef int socklen_t;\n\
3100 #else\n\
3101 %2\n\
3102 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
3103     (char*)NULL };
3104
3105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3106  *
3107  *  Description of Irix_Stdio_Va_List fix
3108  */
3109 tSCC zIrix_Stdio_Va_ListName[] =
3110      "irix_stdio_va_list";
3111
3112 /*
3113  *  File name selection pattern
3114  */
3115 tSCC zIrix_Stdio_Va_ListList[] =
3116   "|stdio.h|internal/stdio_core.h|";
3117 /*
3118  *  Machine/OS name selection pattern
3119  */
3120 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
3121
3122 /*
3123  *  content selection pattern - do fix if pattern found
3124  */
3125 tSCC zIrix_Stdio_Va_ListSelect0[] =
3126        "/\\* va_list \\*/ char \\*";
3127
3128 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
3129 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
3130   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
3131
3132 /*
3133  *  Fix Command Arguments for Irix_Stdio_Va_List
3134  */
3135 static const char* apzIrix_Stdio_Va_ListPatch[] = {
3136     "format",
3137     "__gnuc_va_list",
3138     (char*)NULL };
3139
3140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3141  *
3142  *  Description of Irix_Wcsftime fix
3143  */
3144 tSCC zIrix_WcsftimeName[] =
3145      "irix_wcsftime";
3146
3147 /*
3148  *  File name selection pattern
3149  */
3150 tSCC zIrix_WcsftimeList[] =
3151   "|internal/wchar_core.h|";
3152 /*
3153  *  Machine/OS name selection pattern
3154  */
3155 tSCC* apzIrix_WcsftimeMachs[] = {
3156         "mips-sgi-irix6.5",
3157         (const char*)NULL };
3158
3159 /*
3160  *  content selection pattern - do fix if pattern found
3161  */
3162 tSCC zIrix_WcsftimeSelect0[] =
3163        "#if _NO_XOPEN5\n\
3164 (extern size_t[ \t]+wcsftime.*const char *.*)";
3165
3166 #define    IRIX_WCSFTIME_TEST_CT  1
3167 static tTestDesc aIrix_WcsftimeTests[] = {
3168   { TT_EGREP,    zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
3169
3170 /*
3171  *  Fix Command Arguments for Irix_Wcsftime
3172  */
3173 static const char* apzIrix_WcsftimePatch[] = {
3174     "format",
3175     "#if _NO_XOPEN5 && !defined(__c99)\n\
3176 %1",
3177     (char*)NULL };
3178
3179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3180  *
3181  *  Description of Isc_Fmod fix
3182  */
3183 tSCC zIsc_FmodName[] =
3184      "isc_fmod";
3185
3186 /*
3187  *  File name selection pattern
3188  */
3189 tSCC zIsc_FmodList[] =
3190   "|math.h|";
3191 /*
3192  *  Machine/OS name selection pattern
3193  */
3194 #define apzIsc_FmodMachs (const char**)NULL
3195
3196 /*
3197  *  content selection pattern - do fix if pattern found
3198  */
3199 tSCC zIsc_FmodSelect0[] =
3200        "fmod\\(double\\)";
3201
3202 #define    ISC_FMOD_TEST_CT  1
3203 static tTestDesc aIsc_FmodTests[] = {
3204   { TT_EGREP,    zIsc_FmodSelect0, (regex_t*)NULL }, };
3205
3206 /*
3207  *  Fix Command Arguments for Isc_Fmod
3208  */
3209 static const char* apzIsc_FmodPatch[] = {
3210     "format",
3211     "fmod(double, double)",
3212     (char*)NULL };
3213
3214 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3215  *
3216  *  Description of Isc_Omits_With_Stdc fix
3217  */
3218 tSCC zIsc_Omits_With_StdcName[] =
3219      "isc_omits_with_stdc";
3220
3221 /*
3222  *  File name selection pattern
3223  */
3224 tSCC zIsc_Omits_With_StdcList[] =
3225   "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
3226 /*
3227  *  Machine/OS name selection pattern
3228  */
3229 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
3230
3231 /*
3232  *  content selection pattern - do fix if pattern found
3233  */
3234 tSCC zIsc_Omits_With_StdcSelect0[] =
3235        "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
3236
3237 #define    ISC_OMITS_WITH_STDC_TEST_CT  1
3238 static tTestDesc aIsc_Omits_With_StdcTests[] = {
3239   { TT_EGREP,    zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
3240
3241 /*
3242  *  Fix Command Arguments for Isc_Omits_With_Stdc
3243  */
3244 static const char* apzIsc_Omits_With_StdcPatch[] = {
3245     "format",
3246     "!defined(_POSIX_SOURCE)",
3247     (char*)NULL };
3248
3249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3250  *
3251  *  Description of Kandr_Concat fix
3252  */
3253 tSCC zKandr_ConcatName[] =
3254      "kandr_concat";
3255
3256 /*
3257  *  File name selection pattern
3258  */
3259 tSCC zKandr_ConcatList[] =
3260   "|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|";
3261 /*
3262  *  Machine/OS name selection pattern
3263  */
3264 #define apzKandr_ConcatMachs (const char**)NULL
3265
3266 /*
3267  *  content selection pattern - do fix if pattern found
3268  */
3269 tSCC zKandr_ConcatSelect0[] =
3270        "/\\*\\*/";
3271
3272 #define    KANDR_CONCAT_TEST_CT  1
3273 static tTestDesc aKandr_ConcatTests[] = {
3274   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
3275
3276 /*
3277  *  Fix Command Arguments for Kandr_Concat
3278  */
3279 static const char* apzKandr_ConcatPatch[] = {
3280     "format",
3281     "##",
3282     (char*)NULL };
3283
3284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3285  *
3286  *  Description of Libc1_G_Va_List fix
3287  */
3288 tSCC zLibc1_G_Va_ListName[] =
3289      "libc1_G_va_list";
3290
3291 /*
3292  *  File name selection pattern
3293  */
3294 tSCC zLibc1_G_Va_ListList[] =
3295   "|_G_config.h|";
3296 /*
3297  *  Machine/OS name selection pattern
3298  */
3299 tSCC* apzLibc1_G_Va_ListMachs[] = {
3300         "*-*-linux*libc1",
3301         (const char*)NULL };
3302
3303 /*
3304  *  content selection pattern - do fix if pattern found
3305  */
3306 tSCC zLibc1_G_Va_ListSelect0[] =
3307        "typedef void \\* _G_va_list;";
3308
3309 #define    LIBC1_G_VA_LIST_TEST_CT  1
3310 static tTestDesc aLibc1_G_Va_ListTests[] = {
3311   { TT_EGREP,    zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
3312
3313 /*
3314  *  Fix Command Arguments for Libc1_G_Va_List
3315  */
3316 static const char* apzLibc1_G_Va_ListPatch[] = {
3317     "format",
3318     "typedef __builtin_va_list _G_va_list;",
3319     (char*)NULL };
3320
3321 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3322  *
3323  *  Description of Libc1_Ifdefd_Memx fix
3324  */
3325 tSCC zLibc1_Ifdefd_MemxName[] =
3326      "libc1_ifdefd_memx";
3327
3328 /*
3329  *  File name selection pattern
3330  */
3331 tSCC zLibc1_Ifdefd_MemxList[] =
3332   "|testing.h|string.h|";
3333 /*
3334  *  Machine/OS name selection pattern
3335  */
3336 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
3337
3338 /*
3339  *  content selection pattern - do fix if pattern found
3340  */
3341 tSCC zLibc1_Ifdefd_MemxSelect0[] =
3342        "' is a built-in function for gcc 2\\.x\\. \\*/";
3343
3344 /*
3345  *  content bypass pattern - skip fix if pattern found
3346  */
3347 tSCC zLibc1_Ifdefd_MemxBypass0[] =
3348        "__cplusplus";
3349
3350 #define    LIBC1_IFDEFD_MEMX_TEST_CT  2
3351 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
3352   { TT_NEGREP,   zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
3353   { TT_EGREP,    zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
3354
3355 /*
3356  *  Fix Command Arguments for Libc1_Ifdefd_Memx
3357  */
3358 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
3359     "format",
3360     "%1",
3361     "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
3362 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
3363 (/\\* .* \\*/\n\
3364 extern [a-z_]+ mem.*(\n\
3365 [^#].*)*;)\n\
3366 #endif",
3367     (char*)NULL };
3368
3369 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3370  *
3371  *  Description of Linux_Ia64_Ucontext fix
3372  */
3373 tSCC zLinux_Ia64_UcontextName[] =
3374      "linux_ia64_ucontext";
3375
3376 /*
3377  *  File name selection pattern
3378  */
3379 tSCC zLinux_Ia64_UcontextList[] =
3380   "|sys/ucontext.h|";
3381 /*
3382  *  Machine/OS name selection pattern
3383  */
3384 tSCC* apzLinux_Ia64_UcontextMachs[] = {
3385         "ia64-*-linux*",
3386         (const char*)NULL };
3387
3388 /*
3389  *  content selection pattern - do fix if pattern found
3390  */
3391 tSCC zLinux_Ia64_UcontextSelect0[] =
3392        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
3393
3394 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
3395 static tTestDesc aLinux_Ia64_UcontextTests[] = {
3396   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
3397
3398 /*
3399  *  Fix Command Arguments for Linux_Ia64_Ucontext
3400  */
3401 static const char* apzLinux_Ia64_UcontextPatch[] = {
3402     "format",
3403     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
3404     (char*)NULL };
3405
3406 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3407  *
3408  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
3409  */
3410 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
3411      "lynxos_no_warning_in_sys_time_h";
3412
3413 /*
3414  *  File name selection pattern
3415  */
3416 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
3417   "|sys/time.h|";
3418 /*
3419  *  Machine/OS name selection pattern
3420  */
3421 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
3422
3423 /*
3424  *  content selection pattern - do fix if pattern found
3425  */
3426 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
3427        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
3428
3429 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
3430 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
3431   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
3432
3433 /*
3434  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
3435  */
3436 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
3437     "format",
3438     "",
3439     (char*)NULL };
3440
3441 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3442  *
3443  *  Description of Lynxos_Missing_Putenv fix
3444  */
3445 tSCC zLynxos_Missing_PutenvName[] =
3446      "lynxos_missing_putenv";
3447
3448 /*
3449  *  File name selection pattern
3450  */
3451 tSCC zLynxos_Missing_PutenvList[] =
3452   "|stdlib.h|";
3453 /*
3454  *  Machine/OS name selection pattern
3455  */
3456 tSCC* apzLynxos_Missing_PutenvMachs[] = {
3457         "*-*-lynxos*",
3458         (const char*)NULL };
3459
3460 /*
3461  *  content selection pattern - do fix if pattern found
3462  */
3463 tSCC zLynxos_Missing_PutenvSelect0[] =
3464        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
3465
3466 /*
3467  *  content bypass pattern - skip fix if pattern found
3468  */
3469 tSCC zLynxos_Missing_PutenvBypass0[] =
3470        "putenv[ \\t]*\\(";
3471
3472 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
3473 static tTestDesc aLynxos_Missing_PutenvTests[] = {
3474   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
3475   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
3476
3477 /*
3478  *  Fix Command Arguments for Lynxos_Missing_Putenv
3479  */
3480 static const char* apzLynxos_Missing_PutenvPatch[] = {
3481     "format",
3482     "%0\n\
3483 extern int putenv\t\t\t\t_AP((char *));",
3484     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
3485     (char*)NULL };
3486
3487 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3488  *
3489  *  Description of Machine_Ansi_H_Va_List fix
3490  */
3491 tSCC zMachine_Ansi_H_Va_ListName[] =
3492      "machine_ansi_h_va_list";
3493
3494 /*
3495  *  File name selection pattern
3496  */
3497 #define zMachine_Ansi_H_Va_ListList (char*)NULL
3498 /*
3499  *  Machine/OS name selection pattern
3500  */
3501 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
3502
3503 /*
3504  *  content selection pattern - do fix if pattern found
3505  */
3506 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
3507        "define[ \t]+_BSD_VA_LIST_[ \t]";
3508
3509 /*
3510  *  content bypass pattern - skip fix if pattern found
3511  */
3512 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
3513        "__builtin_va_list";
3514
3515 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
3516 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
3517   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
3518   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
3519
3520 /*
3521  *  Fix Command Arguments for Machine_Ansi_H_Va_List
3522  */
3523 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
3524     "format",
3525     "%1__builtin_va_list",
3526     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
3527     (char*)NULL };
3528
3529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3530  *
3531  *  Description of Machine_Name fix
3532  */
3533 tSCC zMachine_NameName[] =
3534      "machine_name";
3535
3536 /*
3537  *  File name selection pattern
3538  */
3539 #define zMachine_NameList (char*)NULL
3540 /*
3541  *  Machine/OS name selection pattern
3542  */
3543 #define apzMachine_NameMachs (const char**)NULL
3544
3545 /*
3546  *  perform the C function call test
3547  */
3548 tSCC zMachine_NameFTst0[] = "machine_name";
3549
3550 #define    MACHINE_NAME_TEST_CT  1
3551 static tTestDesc aMachine_NameTests[] = {
3552   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
3553
3554 /*
3555  *  Fix Command Arguments for Machine_Name
3556  */
3557 static const char* apzMachine_NamePatch[] = {
3558     "machine_name",
3559     (char*)NULL };
3560
3561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3562  *
3563  *  Description of Math_Exception fix
3564  */
3565 tSCC zMath_ExceptionName[] =
3566      "math_exception";
3567
3568 /*
3569  *  File name selection pattern
3570  */
3571 tSCC zMath_ExceptionList[] =
3572   "|math.h|";
3573 /*
3574  *  Machine/OS name selection pattern
3575  */
3576 #define apzMath_ExceptionMachs (const char**)NULL
3577
3578 /*
3579  *  content selection pattern - do fix if pattern found
3580  */
3581 tSCC zMath_ExceptionSelect0[] =
3582        "struct exception";
3583
3584 /*
3585  *  content bypass pattern - skip fix if pattern found
3586  */
3587 tSCC zMath_ExceptionBypass0[] =
3588        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
3589
3590 #define    MATH_EXCEPTION_TEST_CT  2
3591 static tTestDesc aMath_ExceptionTests[] = {
3592   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
3593   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
3594
3595 /*
3596  *  Fix Command Arguments for Math_Exception
3597  */
3598 static const char* apzMath_ExceptionPatch[] = {
3599     "wrap",
3600     "#ifdef __cplusplus\n\
3601 #define exception __math_exception\n\
3602 #endif\n",
3603     "#ifdef __cplusplus\n\
3604 #undef exception\n\
3605 #endif\n",
3606     (char*)NULL };
3607
3608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3609  *
3610  *  Description of Math_Huge_Val_From_Dbl_Max fix
3611  */
3612 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
3613      "math_huge_val_from_dbl_max";
3614
3615 /*
3616  *  File name selection pattern
3617  */
3618 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
3619   "|math.h|";
3620 /*
3621  *  Machine/OS name selection pattern
3622  */
3623 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
3624
3625 /*
3626  *  content selection pattern - do fix if pattern found
3627  */
3628 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
3629        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
3630
3631 /*
3632  *  content bypass pattern - skip fix if pattern found
3633  */
3634 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
3635        "define[ \t]+DBL_MAX";
3636
3637 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
3638 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
3639   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
3640   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
3641
3642 /*
3643  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
3644  */
3645 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
3646     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
3647 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
3648 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
3649 \telse cat\n\
3650 \tfi",
3651     (char*)NULL };
3652
3653 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3654  *
3655  *  Description of Nested_Auth_Des fix
3656  */
3657 tSCC zNested_Auth_DesName[] =
3658      "nested_auth_des";
3659
3660 /*
3661  *  File name selection pattern
3662  */
3663 tSCC zNested_Auth_DesList[] =
3664   "|rpc/rpc.h|";
3665 /*
3666  *  Machine/OS name selection pattern
3667  */
3668 #define apzNested_Auth_DesMachs (const char**)NULL
3669
3670 /*
3671  *  content selection pattern - do fix if pattern found
3672  */
3673 tSCC zNested_Auth_DesSelect0[] =
3674        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
3675
3676 #define    NESTED_AUTH_DES_TEST_CT  1
3677 static tTestDesc aNested_Auth_DesTests[] = {
3678   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
3679
3680 /*
3681  *  Fix Command Arguments for Nested_Auth_Des
3682  */
3683 static const char* apzNested_Auth_DesPatch[] = {
3684     "format",
3685     "%1*/ /*",
3686     (char*)NULL };
3687
3688 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3689  *
3690  *  Description of Nested_Motorola fix
3691  */
3692 tSCC zNested_MotorolaName[] =
3693      "nested_motorola";
3694
3695 /*
3696  *  File name selection pattern
3697  */
3698 tSCC zNested_MotorolaList[] =
3699   "|sys/limits.h|limits.h|";
3700 /*
3701  *  Machine/OS name selection pattern
3702  */
3703 tSCC* apzNested_MotorolaMachs[] = {
3704         "m68k-motorola-sysv*",
3705         (const char*)NULL };
3706
3707 /*
3708  *  content selection pattern - do fix if pattern found
3709  */
3710 tSCC zNested_MotorolaSelect0[] =
3711        "max # bytes atomic in write|error value returned by Math lib";
3712
3713 #define    NESTED_MOTOROLA_TEST_CT  1
3714 static tTestDesc aNested_MotorolaTests[] = {
3715   { TT_EGREP,    zNested_MotorolaSelect0, (regex_t*)NULL }, };
3716
3717 /*
3718  *  Fix Command Arguments for Nested_Motorola
3719  */
3720 static const char* apzNested_MotorolaPatch[] = { "sed",
3721     "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3722     "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3723     (char*)NULL };
3724
3725 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3726  *
3727  *  Description of Nested_Sys_Limits fix
3728  */
3729 tSCC zNested_Sys_LimitsName[] =
3730      "nested_sys_limits";
3731
3732 /*
3733  *  File name selection pattern
3734  */
3735 tSCC zNested_Sys_LimitsList[] =
3736   "|sys/limits.h|";
3737 /*
3738  *  Machine/OS name selection pattern
3739  */
3740 #define apzNested_Sys_LimitsMachs (const char**)NULL
3741
3742 /*
3743  *  content selection pattern - do fix if pattern found
3744  */
3745 tSCC zNested_Sys_LimitsSelect0[] =
3746        "CHILD_MAX";
3747
3748 #define    NESTED_SYS_LIMITS_TEST_CT  1
3749 static tTestDesc aNested_Sys_LimitsTests[] = {
3750   { TT_EGREP,    zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3751
3752 /*
3753  *  Fix Command Arguments for Nested_Sys_Limits
3754  */
3755 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3756     "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3757     "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3758     (char*)NULL };
3759
3760 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3761  *
3762  *  Description of Netbsd_Extra_Semicolon fix
3763  */
3764 tSCC zNetbsd_Extra_SemicolonName[] =
3765      "netbsd_extra_semicolon";
3766
3767 /*
3768  *  File name selection pattern
3769  */
3770 tSCC zNetbsd_Extra_SemicolonList[] =
3771   "|sys/cdefs.h|";
3772 /*
3773  *  Machine/OS name selection pattern
3774  */
3775 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
3776         "*-*-netbsd*",
3777         (const char*)NULL };
3778
3779 /*
3780  *  content selection pattern - do fix if pattern found
3781  */
3782 tSCC zNetbsd_Extra_SemicolonSelect0[] =
3783        "#define[ \t]*__END_DECLS[ \t]*};";
3784
3785 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
3786 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
3787   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
3788
3789 /*
3790  *  Fix Command Arguments for Netbsd_Extra_Semicolon
3791  */
3792 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
3793     "format",
3794     "#define __END_DECLS }",
3795     (char*)NULL };
3796
3797 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3798  *
3799  *  Description of Next_Math_Prefix fix
3800  */
3801 tSCC zNext_Math_PrefixName[] =
3802      "next_math_prefix";
3803
3804 /*
3805  *  File name selection pattern
3806  */
3807 tSCC zNext_Math_PrefixList[] =
3808   "|ansi/math.h|";
3809 /*
3810  *  Machine/OS name selection pattern
3811  */
3812 #define apzNext_Math_PrefixMachs (const char**)NULL
3813
3814 /*
3815  *  content selection pattern - do fix if pattern found
3816  */
3817 tSCC zNext_Math_PrefixSelect0[] =
3818        "^extern[ \t]+double[ \t]+__const__[ \t]";
3819
3820 #define    NEXT_MATH_PREFIX_TEST_CT  1
3821 static tTestDesc aNext_Math_PrefixTests[] = {
3822   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3823
3824 /*
3825  *  Fix Command Arguments for Next_Math_Prefix
3826  */
3827 static const char* apzNext_Math_PrefixPatch[] = {
3828     "format",
3829     "extern double %1(",
3830     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3831     (char*)NULL };
3832
3833 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3834  *
3835  *  Description of Next_Template fix
3836  */
3837 tSCC zNext_TemplateName[] =
3838      "next_template";
3839
3840 /*
3841  *  File name selection pattern
3842  */
3843 tSCC zNext_TemplateList[] =
3844   "|bsd/libc.h|";
3845 /*
3846  *  Machine/OS name selection pattern
3847  */
3848 #define apzNext_TemplateMachs (const char**)NULL
3849
3850 /*
3851  *  content selection pattern - do fix if pattern found
3852  */
3853 tSCC zNext_TemplateSelect0[] =
3854        "[ \t]template\\)";
3855
3856 #define    NEXT_TEMPLATE_TEST_CT  1
3857 static tTestDesc aNext_TemplateTests[] = {
3858   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
3859
3860 /*
3861  *  Fix Command Arguments for Next_Template
3862  */
3863 static const char* apzNext_TemplatePatch[] = {
3864     "format",
3865     "(%1)",
3866     "\\(([^)]*)[ \t]template\\)",
3867     (char*)NULL };
3868
3869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3870  *
3871  *  Description of Next_Volitile fix
3872  */
3873 tSCC zNext_VolitileName[] =
3874      "next_volitile";
3875
3876 /*
3877  *  File name selection pattern
3878  */
3879 tSCC zNext_VolitileList[] =
3880   "|ansi/stdlib.h|";
3881 /*
3882  *  Machine/OS name selection pattern
3883  */
3884 #define apzNext_VolitileMachs (const char**)NULL
3885
3886 /*
3887  *  content selection pattern - do fix if pattern found
3888  */
3889 tSCC zNext_VolitileSelect0[] =
3890        "^extern[ \t]+volatile[ \t]+void[ \t]";
3891
3892 #define    NEXT_VOLITILE_TEST_CT  1
3893 static tTestDesc aNext_VolitileTests[] = {
3894   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
3895
3896 /*
3897  *  Fix Command Arguments for Next_Volitile
3898  */
3899 static const char* apzNext_VolitilePatch[] = {
3900     "format",
3901     "extern void %1(",
3902     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3903     (char*)NULL };
3904
3905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3906  *
3907  *  Description of Next_Wait_Union fix
3908  */
3909 tSCC zNext_Wait_UnionName[] =
3910      "next_wait_union";
3911
3912 /*
3913  *  File name selection pattern
3914  */
3915 tSCC zNext_Wait_UnionList[] =
3916   "|sys/wait.h|";
3917 /*
3918  *  Machine/OS name selection pattern
3919  */
3920 #define apzNext_Wait_UnionMachs (const char**)NULL
3921
3922 /*
3923  *  content selection pattern - do fix if pattern found
3924  */
3925 tSCC zNext_Wait_UnionSelect0[] =
3926        "wait\\(union wait";
3927
3928 #define    NEXT_WAIT_UNION_TEST_CT  1
3929 static tTestDesc aNext_Wait_UnionTests[] = {
3930   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3931
3932 /*
3933  *  Fix Command Arguments for Next_Wait_Union
3934  */
3935 static const char* apzNext_Wait_UnionPatch[] = {
3936     "format",
3937     "wait(void",
3938     (char*)NULL };
3939
3940 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3941  *
3942  *  Description of Nodeent_Syntax fix
3943  */
3944 tSCC zNodeent_SyntaxName[] =
3945      "nodeent_syntax";
3946
3947 /*
3948  *  File name selection pattern
3949  */
3950 tSCC zNodeent_SyntaxList[] =
3951   "|netdnet/dnetdb.h|";
3952 /*
3953  *  Machine/OS name selection pattern
3954  */
3955 #define apzNodeent_SyntaxMachs (const char**)NULL
3956
3957 /*
3958  *  content selection pattern - do fix if pattern found
3959  */
3960 tSCC zNodeent_SyntaxSelect0[] =
3961        "char[ \t]*\\*na_addr[ \t]*$";
3962
3963 #define    NODEENT_SYNTAX_TEST_CT  1
3964 static tTestDesc aNodeent_SyntaxTests[] = {
3965   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3966
3967 /*
3968  *  Fix Command Arguments for Nodeent_Syntax
3969  */
3970 static const char* apzNodeent_SyntaxPatch[] = {
3971     "format",
3972     "%0;",
3973     (char*)NULL };
3974
3975 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3976  *
3977  *  Description of Obstack_Lvalue_Cast fix
3978  */
3979 tSCC zObstack_Lvalue_CastName[] =
3980      "obstack_lvalue_cast";
3981
3982 /*
3983  *  File name selection pattern
3984  */
3985 tSCC zObstack_Lvalue_CastList[] =
3986   "|obstack.h|";
3987 /*
3988  *  Machine/OS name selection pattern
3989  */
3990 #define apzObstack_Lvalue_CastMachs (const char**)NULL
3991
3992 /*
3993  *  content selection pattern - do fix if pattern found
3994  */
3995 tSCC zObstack_Lvalue_CastSelect0[] =
3996        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
3997
3998 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
3999 static tTestDesc aObstack_Lvalue_CastTests[] = {
4000   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
4001
4002 /*
4003  *  Fix Command Arguments for Obstack_Lvalue_Cast
4004  */
4005 static const char* apzObstack_Lvalue_CastPatch[] = {
4006     "format",
4007     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
4008     (char*)NULL };
4009
4010 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4011  *
4012  *  Description of Osf_Namespace_A fix
4013  */
4014 tSCC zOsf_Namespace_AName[] =
4015      "osf_namespace_a";
4016
4017 /*
4018  *  File name selection pattern
4019  */
4020 tSCC zOsf_Namespace_AList[] =
4021   "|reg_types.h|sys/lc_core.h|";
4022 /*
4023  *  Machine/OS name selection pattern
4024  */
4025 #define apzOsf_Namespace_AMachs (const char**)NULL
4026
4027 /*
4028  *  perform the 'test' shell command - do fix on success
4029  */
4030 tSCC zOsf_Namespace_ATest0[] =
4031        " -r reg_types.h";
4032 tSCC zOsf_Namespace_ATest1[] =
4033        " -r sys/lc_core.h";
4034 tSCC zOsf_Namespace_ATest2[] =
4035        " -n \"`grep '} regex_t;' reg_types.h`\"";
4036 tSCC zOsf_Namespace_ATest3[] =
4037        " -z \"`grep __regex_t regex.h`\"";
4038
4039 #define    OSF_NAMESPACE_A_TEST_CT  4
4040 static tTestDesc aOsf_Namespace_ATests[] = {
4041   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
4042   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
4043   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
4044   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
4045
4046 /*
4047  *  Fix Command Arguments for Osf_Namespace_A
4048  */
4049 static const char* apzOsf_Namespace_APatch[] = {
4050     "format",
4051     "__%0",
4052     "reg(ex|off|match)_t",
4053     (char*)NULL };
4054
4055 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4056  *
4057  *  Description of Osf_Namespace_C fix
4058  */
4059 tSCC zOsf_Namespace_CName[] =
4060      "osf_namespace_c";
4061
4062 /*
4063  *  File name selection pattern
4064  */
4065 tSCC zOsf_Namespace_CList[] =
4066   "|regex.h|";
4067 /*
4068  *  Machine/OS name selection pattern
4069  */
4070 #define apzOsf_Namespace_CMachs (const char**)NULL
4071
4072 /*
4073  *  content selection pattern - do fix if pattern found
4074  */
4075 tSCC zOsf_Namespace_CSelect0[] =
4076        "#include <reg_types.h>.*";
4077
4078 /*
4079  *  perform the 'test' shell command - do fix on success
4080  */
4081 tSCC zOsf_Namespace_CTest0[] =
4082        " -r reg_types.h";
4083 tSCC zOsf_Namespace_CTest1[] =
4084        " -r sys/lc_core.h";
4085 tSCC zOsf_Namespace_CTest2[] =
4086        " -n \"`grep '} regex_t;' reg_types.h`\"";
4087 tSCC zOsf_Namespace_CTest3[] =
4088        " -z \"`grep __regex_t regex.h`\"";
4089
4090 #define    OSF_NAMESPACE_C_TEST_CT  5
4091 static tTestDesc aOsf_Namespace_CTests[] = {
4092   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
4093   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
4094   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
4095   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
4096   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
4097
4098 /*
4099  *  Fix Command Arguments for Osf_Namespace_C
4100  */
4101 static const char* apzOsf_Namespace_CPatch[] = {
4102     "format",
4103     "%0\n\
4104 typedef __regex_t\tregex_t;\n\
4105 typedef __regoff_t\tregoff_t;\n\
4106 typedef __regmatch_t\tregmatch_t;",
4107     (char*)NULL };
4108
4109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4110  *
4111  *  Description of Pthread_Page_Size fix
4112  */
4113 tSCC zPthread_Page_SizeName[] =
4114      "pthread_page_size";
4115
4116 /*
4117  *  File name selection pattern
4118  */
4119 tSCC zPthread_Page_SizeList[] =
4120   "|pthread.h|";
4121 /*
4122  *  Machine/OS name selection pattern
4123  */
4124 #define apzPthread_Page_SizeMachs (const char**)NULL
4125
4126 /*
4127  *  content selection pattern - do fix if pattern found
4128  */
4129 tSCC zPthread_Page_SizeSelect0[] =
4130        "^int __page_size";
4131
4132 #define    PTHREAD_PAGE_SIZE_TEST_CT  1
4133 static tTestDesc aPthread_Page_SizeTests[] = {
4134   { TT_EGREP,    zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
4135
4136 /*
4137  *  Fix Command Arguments for Pthread_Page_Size
4138  */
4139 static const char* apzPthread_Page_SizePatch[] = {
4140     "format",
4141     "extern %0",
4142     (char*)NULL };
4143
4144 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4145  *
4146  *  Description of Read_Ret_Type fix
4147  */
4148 tSCC zRead_Ret_TypeName[] =
4149      "read_ret_type";
4150
4151 /*
4152  *  File name selection pattern
4153  */
4154 tSCC zRead_Ret_TypeList[] =
4155   "|stdio.h|";
4156 /*
4157  *  Machine/OS name selection pattern
4158  */
4159 #define apzRead_Ret_TypeMachs (const char**)NULL
4160
4161 /*
4162  *  content selection pattern - do fix if pattern found
4163  */
4164 tSCC zRead_Ret_TypeSelect0[] =
4165        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
4166
4167 #define    READ_RET_TYPE_TEST_CT  1
4168 static tTestDesc aRead_Ret_TypeTests[] = {
4169   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
4170
4171 /*
4172  *  Fix Command Arguments for Read_Ret_Type
4173  */
4174 static const char* apzRead_Ret_TypePatch[] = {
4175     "format",
4176     "extern unsigned int fread(), fwrite();\n\
4177 %1%2",
4178     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
4179     (char*)NULL };
4180
4181 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4182  *
4183  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
4184  */
4185 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
4186      "rpc_xdr_lvalue_cast_a";
4187
4188 /*
4189  *  File name selection pattern
4190  */
4191 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
4192   "|rpc/xdr.h|";
4193 /*
4194  *  Machine/OS name selection pattern
4195  */
4196 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
4197
4198 /*
4199  *  content selection pattern - do fix if pattern found
4200  */
4201 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
4202        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
4203 .*__extension__.*";
4204
4205 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
4206 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
4207   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
4208
4209 /*
4210  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
4211  */
4212 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
4213     "format",
4214     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
4215     (char*)NULL };
4216
4217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4218  *
4219  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
4220  */
4221 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
4222      "rpc_xdr_lvalue_cast_b";
4223
4224 /*
4225  *  File name selection pattern
4226  */
4227 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
4228   "|rpc/xdr.h|";
4229 /*
4230  *  Machine/OS name selection pattern
4231  */
4232 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
4233
4234 /*
4235  *  content selection pattern - do fix if pattern found
4236  */
4237 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
4238        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
4239 .*__extension__.*";
4240
4241 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
4242 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
4243   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
4244
4245 /*
4246  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
4247  */
4248 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
4249     "format",
4250     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
4251     (char*)NULL };
4252
4253 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4254  *
4255  *  Description of Rs6000_Double fix
4256  */
4257 tSCC zRs6000_DoubleName[] =
4258      "rs6000_double";
4259
4260 /*
4261  *  File name selection pattern
4262  */
4263 tSCC zRs6000_DoubleList[] =
4264   "|math.h|";
4265 /*
4266  *  Machine/OS name selection pattern
4267  */
4268 #define apzRs6000_DoubleMachs (const char**)NULL
4269
4270 /*
4271  *  content selection pattern - do fix if pattern found
4272  */
4273 tSCC zRs6000_DoubleSelect0[] =
4274        "[^a-zA-Z_]class\\(";
4275
4276 #define    RS6000_DOUBLE_TEST_CT  1
4277 static tTestDesc aRs6000_DoubleTests[] = {
4278   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
4279
4280 /*
4281  *  Fix Command Arguments for Rs6000_Double
4282  */
4283 static const char* apzRs6000_DoublePatch[] = {
4284     "format",
4285     "#ifndef __cplusplus\n\
4286 %0\n\
4287 #endif",
4288     "^.*[^a-zA-Z_]class\\(.*",
4289     (char*)NULL };
4290
4291 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4292  *
4293  *  Description of Rs6000_Fchmod fix
4294  */
4295 tSCC zRs6000_FchmodName[] =
4296      "rs6000_fchmod";
4297
4298 /*
4299  *  File name selection pattern
4300  */
4301 tSCC zRs6000_FchmodList[] =
4302   "|sys/stat.h|";
4303 /*
4304  *  Machine/OS name selection pattern
4305  */
4306 #define apzRs6000_FchmodMachs (const char**)NULL
4307
4308 /*
4309  *  content selection pattern - do fix if pattern found
4310  */
4311 tSCC zRs6000_FchmodSelect0[] =
4312        "fchmod\\(char \\*";
4313
4314 #define    RS6000_FCHMOD_TEST_CT  1
4315 static tTestDesc aRs6000_FchmodTests[] = {
4316   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
4317
4318 /*
4319  *  Fix Command Arguments for Rs6000_Fchmod
4320  */
4321 static const char* apzRs6000_FchmodPatch[] = {
4322     "format",
4323     "fchmod(int",
4324     (char*)NULL };
4325
4326 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4327  *
4328  *  Description of Rs6000_Param fix
4329  */
4330 tSCC zRs6000_ParamName[] =
4331      "rs6000_param";
4332
4333 /*
4334  *  File name selection pattern
4335  */
4336 tSCC zRs6000_ParamList[] =
4337   "|stdio.h|unistd.h|";
4338 /*
4339  *  Machine/OS name selection pattern
4340  */
4341 #define apzRs6000_ParamMachs (const char**)NULL
4342
4343 /*
4344  *  content selection pattern - do fix if pattern found
4345  */
4346 tSCC zRs6000_ParamSelect0[] =
4347        "rename\\(const char \\*old, const char \\*new\\)";
4348
4349 #define    RS6000_PARAM_TEST_CT  1
4350 static tTestDesc aRs6000_ParamTests[] = {
4351   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
4352
4353 /*
4354  *  Fix Command Arguments for Rs6000_Param
4355  */
4356 static const char* apzRs6000_ParamPatch[] = {
4357     "format",
4358     "rename(const char *_old, const char *_new)",
4359     (char*)NULL };
4360
4361 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4362  *
4363  *  Description of Sco_Math fix
4364  */
4365 tSCC zSco_MathName[] =
4366      "sco_math";
4367
4368 /*
4369  *  File name selection pattern
4370  */
4371 tSCC zSco_MathList[] =
4372   "|math.h|ansi/math.h|posix/math.h|xpg4/math.h|xpg4v2/math.h|xpg4plus/math.h|ods_30_compat/math.h|oldstyle/math.h|";
4373 /*
4374  *  Machine/OS name selection pattern
4375  */
4376 #define apzSco_MathMachs (const char**)NULL
4377
4378 /*
4379  *  content selection pattern - do fix if pattern found
4380  */
4381 tSCC zSco_MathSelect0[] =
4382        "inline double abs";
4383
4384 /*
4385  *  content bypass pattern - skip fix if pattern found
4386  */
4387 tSCC zSco_MathBypass0[] =
4388        "__GNUG__";
4389
4390 #define    SCO_MATH_TEST_CT  2
4391 static tTestDesc aSco_MathTests[] = {
4392   { TT_NEGREP,   zSco_MathBypass0, (regex_t*)NULL },
4393   { TT_EGREP,    zSco_MathSelect0, (regex_t*)NULL }, };
4394
4395 /*
4396  *  Fix Command Arguments for Sco_Math
4397  */
4398 static const char* apzSco_MathPatch[] = { "sed",
4399     "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
4400 #ifndef __GNUC__\n",
4401     "-e", "/.*__builtin_generic/a\\\n\
4402 #else\\\n\
4403 #define __fp_class(a) \\\\\\\n\
4404   __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
4405    __fpclassifyl(a), \\\\\\\n\
4406     __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
4407       __fpclassifyf(a),__fpclassify(a)))\\\n\
4408 #endif",
4409     "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
4410 #ifndef __GNUC__\n",
4411     "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
4412 #endif /* ! __GNUC__ */",
4413     (char*)NULL };
4414
4415 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4416  *
4417  *  Description of Sco_Regset fix
4418  */
4419 tSCC zSco_RegsetName[] =
4420      "sco_regset";
4421
4422 /*
4423  *  File name selection pattern
4424  */
4425 tSCC zSco_RegsetList[] =
4426   "|sys/regset.h|";
4427 /*
4428  *  Machine/OS name selection pattern
4429  */
4430 tSCC* apzSco_RegsetMachs[] = {
4431         "*-*-sco3.2v5*",
4432         (const char*)NULL };
4433
4434 /*
4435  *  content selection pattern - do fix if pattern found
4436  */
4437 tSCC zSco_RegsetSelect0[] =
4438        "(struct[ \t]+.*)fpstate";
4439
4440 #define    SCO_REGSET_TEST_CT  1
4441 static tTestDesc aSco_RegsetTests[] = {
4442   { TT_EGREP,    zSco_RegsetSelect0, (regex_t*)NULL }, };
4443
4444 /*
4445  *  Fix Command Arguments for Sco_Regset
4446  */
4447 static const char* apzSco_RegsetPatch[] = {
4448     "format",
4449     "%1rsfpstate",
4450     (char*)NULL };
4451
4452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4453  *
4454  *  Description of Sco_Static_Func fix
4455  */
4456 tSCC zSco_Static_FuncName[] =
4457      "sco_static_func";
4458
4459 /*
4460  *  File name selection pattern
4461  */
4462 tSCC zSco_Static_FuncList[] =
4463   "|sys/stat.h|";
4464 /*
4465  *  Machine/OS name selection pattern
4466  */
4467 tSCC* apzSco_Static_FuncMachs[] = {
4468         "i?86-*-sco3.2*",
4469         (const char*)NULL };
4470
4471 /*
4472  *  content selection pattern - do fix if pattern found
4473  */
4474 tSCC zSco_Static_FuncSelect0[] =
4475        "^static int";
4476
4477 #define    SCO_STATIC_FUNC_TEST_CT  1
4478 static tTestDesc aSco_Static_FuncTests[] = {
4479   { TT_EGREP,    zSco_Static_FuncSelect0, (regex_t*)NULL }, };
4480
4481 /*
4482  *  Fix Command Arguments for Sco_Static_Func
4483  */
4484 static const char* apzSco_Static_FuncPatch[] = { "sed",
4485     "-e", "/^static int/i\\\n\
4486 #if __cplusplus\\\n\
4487 extern \"C\" {\\\n\
4488 #endif /* __cplusplus */",
4489     "-e", "/^}$/a\\\n\
4490 #if __cplusplus\\\n\
4491  }\\\n\
4492 #endif /* __cplusplus */",
4493     (char*)NULL };
4494
4495 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4496  *
4497  *  Description of Sco_Utime fix
4498  */
4499 tSCC zSco_UtimeName[] =
4500      "sco_utime";
4501
4502 /*
4503  *  File name selection pattern
4504  */
4505 tSCC zSco_UtimeList[] =
4506   "|sys/times.h|";
4507 /*
4508  *  Machine/OS name selection pattern
4509  */
4510 tSCC* apzSco_UtimeMachs[] = {
4511         "i?86-*-sco3.2v4*",
4512         (const char*)NULL };
4513
4514 /*
4515  *  content selection pattern - do fix if pattern found
4516  */
4517 tSCC zSco_UtimeSelect0[] =
4518        "\\(const char \\*, struct utimbuf \\*\\);";
4519
4520 #define    SCO_UTIME_TEST_CT  1
4521 static tTestDesc aSco_UtimeTests[] = {
4522   { TT_EGREP,    zSco_UtimeSelect0, (regex_t*)NULL }, };
4523
4524 /*
4525  *  Fix Command Arguments for Sco_Utime
4526  */
4527 static const char* apzSco_UtimePatch[] = {
4528     "format",
4529     "(const char *, const struct utimbuf *);",
4530     (char*)NULL };
4531
4532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4533  *
4534  *  Description of Solaris_Mutex_Init_1 fix
4535  */
4536 tSCC zSolaris_Mutex_Init_1Name[] =
4537      "solaris_mutex_init_1";
4538
4539 /*
4540  *  File name selection pattern
4541  */
4542 tSCC zSolaris_Mutex_Init_1List[] =
4543   "|pthread.h|";
4544 /*
4545  *  Machine/OS name selection pattern
4546  */
4547 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
4548
4549 /*
4550  *  content selection pattern - do fix if pattern found
4551  */
4552 tSCC zSolaris_Mutex_Init_1Select0[] =
4553        "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
4554
4555 #define    SOLARIS_MUTEX_INIT_1_TEST_CT  1
4556 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
4557   { TT_EGREP,    zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
4558
4559 /*
4560  *  Fix Command Arguments for Solaris_Mutex_Init_1
4561  */
4562 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
4563     "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
4564 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
4565     (char*)NULL };
4566
4567 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4568  *
4569  *  Description of Solaris_Mutex_Init_2 fix
4570  */
4571 tSCC zSolaris_Mutex_Init_2Name[] =
4572      "solaris_mutex_init_2";
4573
4574 /*
4575  *  File name selection pattern
4576  */
4577 tSCC zSolaris_Mutex_Init_2List[] =
4578   "|pthread.h|";
4579 /*
4580  *  Machine/OS name selection pattern
4581  */
4582 #define apzSolaris_Mutex_Init_2Machs (const char**)NULL
4583
4584 /*
4585  *  content selection pattern - do fix if pattern found
4586  */
4587 tSCC zSolaris_Mutex_Init_2Select0[] =
4588        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
4589
4590 #define    SOLARIS_MUTEX_INIT_2_TEST_CT  1
4591 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
4592   { TT_EGREP,    zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
4593
4594 /*
4595  *  Fix Command Arguments for Solaris_Mutex_Init_2
4596  */
4597 static const char* apzSolaris_Mutex_Init_2Patch[] = {
4598     "format",
4599     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
4600 %0\n\
4601 #else\n\
4602 %1, {0}}%3\n\
4603 #endif",
4604     "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+\\{.*),[ \t]*0\\}(|[ \t].*)$",
4605     (char*)NULL };
4606
4607 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4608  *
4609  *  Description of Solaris_Socket fix
4610  */
4611 tSCC zSolaris_SocketName[] =
4612      "solaris_socket";
4613
4614 /*
4615  *  File name selection pattern
4616  */
4617 tSCC zSolaris_SocketList[] =
4618   "|sys/socket.h|";
4619 /*
4620  *  Machine/OS name selection pattern
4621  */
4622 #define apzSolaris_SocketMachs (const char**)NULL
4623
4624 /*
4625  *  content selection pattern - do fix if pattern found
4626  */
4627 tSCC zSolaris_SocketSelect0[] =
4628        "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
4629
4630 #define    SOLARIS_SOCKET_TEST_CT  1
4631 static tTestDesc aSolaris_SocketTests[] = {
4632   { TT_EGREP,    zSolaris_SocketSelect0, (regex_t*)NULL }, };
4633
4634 /*
4635  *  Fix Command Arguments for Solaris_Socket
4636  */
4637 static const char* apzSolaris_SocketPatch[] = {
4638     "format",
4639     "extern int %1(int, %2void *, int, int);",
4640     "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
4641     (char*)NULL };
4642
4643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4644  *
4645  *  Description of Solaris_Stdio_Tag fix
4646  */
4647 tSCC zSolaris_Stdio_TagName[] =
4648      "solaris_stdio_tag";
4649
4650 /*
4651  *  File name selection pattern
4652  */
4653 tSCC zSolaris_Stdio_TagList[] =
4654   "|stdio_tag.h|";
4655 /*
4656  *  Machine/OS name selection pattern
4657  */
4658 #define apzSolaris_Stdio_TagMachs (const char**)NULL
4659
4660 /*
4661  *  content selection pattern - do fix if pattern found
4662  */
4663 tSCC zSolaris_Stdio_TagSelect0[] =
4664        "__cplusplus < 54321L";
4665
4666 /*
4667  *  content bypass pattern - skip fix if pattern found
4668  */
4669 tSCC zSolaris_Stdio_TagBypass0[] =
4670        "__GNUC__";
4671
4672 #define    SOLARIS_STDIO_TAG_TEST_CT  2
4673 static tTestDesc aSolaris_Stdio_TagTests[] = {
4674   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
4675   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
4676
4677 /*
4678  *  Fix Command Arguments for Solaris_Stdio_Tag
4679  */
4680 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
4681     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
4682     (char*)NULL };
4683
4684 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4685  *
4686  *  Description of Solaris_Unistd fix
4687  */
4688 tSCC zSolaris_UnistdName[] =
4689      "solaris_unistd";
4690
4691 /*
4692  *  File name selection pattern
4693  */
4694 tSCC zSolaris_UnistdList[] =
4695   "|unistd.h|";
4696 /*
4697  *  Machine/OS name selection pattern
4698  */
4699 #define apzSolaris_UnistdMachs (const char**)NULL
4700
4701 /*
4702  *  content selection pattern - do fix if pattern found
4703  */
4704 tSCC zSolaris_UnistdSelect0[] =
4705        "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
4706
4707 /*
4708  *  content bypass pattern - skip fix if pattern found
4709  */
4710 tSCC zSolaris_UnistdBypass0[] =
4711        "getpagesize";
4712
4713 #define    SOLARIS_UNISTD_TEST_CT  2
4714 static tTestDesc aSolaris_UnistdTests[] = {
4715   { TT_NEGREP,   zSolaris_UnistdBypass0, (regex_t*)NULL },
4716   { TT_EGREP,    zSolaris_UnistdSelect0, (regex_t*)NULL }, };
4717
4718 /*
4719  *  Fix Command Arguments for Solaris_Unistd
4720  */
4721 static const char* apzSolaris_UnistdPatch[] = {
4722     "format",
4723     "extern int getpagesize();\n\
4724 %0",
4725     "^extern (pid_t|int) getpgid\\(.*\\);",
4726     (char*)NULL };
4727
4728 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4729  *
4730  *  Description of Solaris_Widec fix
4731  */
4732 tSCC zSolaris_WidecName[] =
4733      "solaris_widec";
4734
4735 /*
4736  *  File name selection pattern
4737  */
4738 tSCC zSolaris_WidecList[] =
4739   "|widec.h|";
4740 /*
4741  *  Machine/OS name selection pattern
4742  */
4743 tSCC* apzSolaris_WidecMachs[] = {
4744         "*-*-solaris2.[0-5]",
4745         "*-*-solaris2.[0-5].*",
4746         (const char*)NULL };
4747
4748 /*
4749  *  content selection pattern - do fix if pattern found
4750  */
4751 tSCC zSolaris_WidecSelect0[] =
4752        "#include <euc.h>";
4753
4754 /*
4755  *  content bypass pattern - skip fix if pattern found
4756  */
4757 tSCC zSolaris_WidecBypass0[] =
4758        "include.*wchar\\.h";
4759
4760 #define    SOLARIS_WIDEC_TEST_CT  2
4761 static tTestDesc aSolaris_WidecTests[] = {
4762   { TT_NEGREP,   zSolaris_WidecBypass0, (regex_t*)NULL },
4763   { TT_EGREP,    zSolaris_WidecSelect0, (regex_t*)NULL }, };
4764
4765 /*
4766  *  Fix Command Arguments for Solaris_Widec
4767  */
4768 static const char* apzSolaris_WidecPatch[] = {
4769     "format",
4770     "%0\n\
4771 #include <wchar.h>",
4772     (char*)NULL };
4773
4774 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4775  *
4776  *  Description of Statsswtch fix
4777  */
4778 tSCC zStatsswtchName[] =
4779      "statsswtch";
4780
4781 /*
4782  *  File name selection pattern
4783  */
4784 tSCC zStatsswtchList[] =
4785   "|rpcsvc/rstat.h|";
4786 /*
4787  *  Machine/OS name selection pattern
4788  */
4789 #define apzStatsswtchMachs (const char**)NULL
4790
4791 /*
4792  *  content selection pattern - do fix if pattern found
4793  */
4794 tSCC zStatsswtchSelect0[] =
4795        "boottime$";
4796
4797 #define    STATSSWTCH_TEST_CT  1
4798 static tTestDesc aStatsswtchTests[] = {
4799   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
4800
4801 /*
4802  *  Fix Command Arguments for Statsswtch
4803  */
4804 static const char* apzStatsswtchPatch[] = {
4805     "format",
4806     "boottime;",
4807     (char*)NULL };
4808
4809 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4810  *
4811  *  Description of Stdio_Stdarg_H fix
4812  */
4813 tSCC zStdio_Stdarg_HName[] =
4814      "stdio_stdarg_h";
4815
4816 /*
4817  *  File name selection pattern
4818  */
4819 tSCC zStdio_Stdarg_HList[] =
4820   "|stdio.h|";
4821 /*
4822  *  Machine/OS name selection pattern
4823  */
4824 tSCC* apzStdio_Stdarg_HMachs[] = {
4825         "*-*-solaris2.1[0-9]",
4826         (const char*)NULL };
4827
4828 /*
4829  *  content bypass pattern - skip fix if pattern found
4830  */
4831 tSCC zStdio_Stdarg_HBypass0[] =
4832        "include.*(stdarg.h|machine/ansi.h)";
4833
4834 #define    STDIO_STDARG_H_TEST_CT  1
4835 static tTestDesc aStdio_Stdarg_HTests[] = {
4836   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
4837
4838 /*
4839  *  Fix Command Arguments for Stdio_Stdarg_H
4840  */
4841 static const char* apzStdio_Stdarg_HPatch[] = {
4842     "wrap",
4843     "#define __need___va_list\n\
4844 #include <stdarg.h>\n",
4845     (char*)NULL };
4846
4847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4848  *
4849  *  Description of Stdio_Va_List fix
4850  */
4851 tSCC zStdio_Va_ListName[] =
4852      "stdio_va_list";
4853
4854 /*
4855  *  File name selection pattern
4856  */
4857 tSCC zStdio_Va_ListList[] =
4858   "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|";
4859 /*
4860  *  Machine/OS name selection pattern
4861  */
4862 tSCC* apzStdio_Va_ListMachs[] = {
4863         "*-*-solaris2.1[0-9]",
4864         (const char*)NULL };
4865
4866 /*
4867  *  content bypass pattern - skip fix if pattern found
4868  */
4869 tSCC zStdio_Va_ListBypass0[] =
4870        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
4871
4872 #define    STDIO_VA_LIST_TEST_CT  1
4873 static tTestDesc aStdio_Va_ListTests[] = {
4874   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
4875
4876 /*
4877  *  Fix Command Arguments for Stdio_Va_List
4878  */
4879 static const char* apzStdio_Va_ListPatch[] = { "sed",
4880     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
4881 s@(va_list)&@(__gnuc_va_list)\\&@\n\
4882 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
4883 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
4884 s@ va_list@ __not_va_list__@\n\
4885 s@\\*va_list@*__not_va_list__@\n\
4886 s@ __va_list)@ __gnuc_va_list)@\n\
4887 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
4888 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
4889 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
4890 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
4891 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
4892 s@VA_LIST@DUMMY_VA_LIST@\n\
4893 s@_Va_LIST@_VA_LIST@",
4894     (char*)NULL };
4895
4896 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4897  *
4898  *  Description of Stdio_Va_List_Clients fix
4899  */
4900 tSCC zStdio_Va_List_ClientsName[] =
4901      "stdio_va_list_clients";
4902
4903 /*
4904  *  File name selection pattern
4905  */
4906 tSCC zStdio_Va_List_ClientsList[] =
4907   "|com_err.h|cps.h|curses.h|krb5.h|lc_core.h|pfmt.h|wchar.h|curses_colr/curses.h|";
4908 /*
4909  *  Machine/OS name selection pattern
4910  */
4911 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
4912
4913 /*
4914  *  content bypass pattern - skip fix if pattern found
4915  */
4916 tSCC zStdio_Va_List_ClientsBypass0[] =
4917        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
4918 tSCC zStdio_Va_List_ClientsBypass1[] =
4919        "include <stdarg\\.h>|#ifdef va_start";
4920
4921 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
4922 static tTestDesc aStdio_Va_List_ClientsTests[] = {
4923   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
4924   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
4925
4926 /*
4927  *  Fix Command Arguments for Stdio_Va_List_Clients
4928  */
4929 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
4930     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
4931 s@(va_list)&@(__gnuc_va_list)\\&@\n\
4932 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
4933 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
4934 s@ va_list@ __not_va_list__@\n\
4935 s@\\*va_list@*__not_va_list__@\n\
4936 s@ __va_list)@ __gnuc_va_list)@\n\
4937 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
4938 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
4939 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
4940 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
4941 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
4942 s@VA_LIST@DUMMY_VA_LIST@\n\
4943 s@_Va_LIST@_VA_LIST@",
4944     (char*)NULL };
4945
4946 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4947  *
4948  *  Description of Strict_Ansi_Not fix
4949  */
4950 tSCC zStrict_Ansi_NotName[] =
4951      "strict_ansi_not";
4952
4953 /*
4954  *  File name selection pattern
4955  */
4956 #define zStrict_Ansi_NotList (char*)NULL
4957 /*
4958  *  Machine/OS name selection pattern
4959  */
4960 #define apzStrict_Ansi_NotMachs (const char**)NULL
4961
4962 /*
4963  *  content selection pattern - do fix if pattern found
4964  */
4965 tSCC zStrict_Ansi_NotSelect0[] =
4966        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
4967
4968 /*
4969  *  content bypass pattern - skip fix if pattern found
4970  */
4971 tSCC zStrict_Ansi_NotBypass0[] =
4972        "GNU and MIPS C compilers define __STDC__ differently";
4973 tSCC zStrict_Ansi_NotBypass1[] =
4974        "__SCO_VERSION__.*__STDC__ != 1";
4975
4976 /*
4977  *  perform the C function call test
4978  */
4979 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
4980
4981 #define    STRICT_ANSI_NOT_TEST_CT  4
4982 static tTestDesc aStrict_Ansi_NotTests[] = {
4983   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
4984   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
4985   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
4986   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
4987
4988 /*
4989  *  Fix Command Arguments for Strict_Ansi_Not
4990  */
4991 static const char* apzStrict_Ansi_NotPatch[] = {
4992     "format",
4993     "%1 !defined(__STRICT_ANSI__)",
4994     (char*)NULL };
4995
4996 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4997  *
4998  *  Description of Strict_Ansi_Not_Ctd fix
4999  */
5000 tSCC zStrict_Ansi_Not_CtdName[] =
5001      "strict_ansi_not_ctd";
5002
5003 /*
5004  *  File name selection pattern
5005  */
5006 tSCC zStrict_Ansi_Not_CtdList[] =
5007   "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
5008 /*
5009  *  Machine/OS name selection pattern
5010  */
5011 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
5012
5013 /*
5014  *  content selection pattern - do fix if pattern found
5015  */
5016 tSCC zStrict_Ansi_Not_CtdSelect0[] =
5017        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
5018
5019 /*
5020  *  perform the C function call test
5021  */
5022 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
5023
5024 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
5025 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
5026   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
5027   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
5028
5029 /*
5030  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
5031  */
5032 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
5033     "format",
5034     "%1 !defined(__STRICT_ANSI__)",
5035     (char*)NULL };
5036
5037 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5038  *
5039  *  Description of Strict_Ansi_Only fix
5040  */
5041 tSCC zStrict_Ansi_OnlyName[] =
5042      "strict_ansi_only";
5043
5044 /*
5045  *  File name selection pattern
5046  */
5047 #define zStrict_Ansi_OnlyList (char*)NULL
5048 /*
5049  *  Machine/OS name selection pattern
5050  */
5051 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
5052
5053 /*
5054  *  content selection pattern - do fix if pattern found
5055  */
5056 tSCC zStrict_Ansi_OnlySelect0[] =
5057        "^([ \t]*#[ \t]*if.*)(__STDC__[ \t]*!=[ \t]*0|__STDC__[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*!=[ \t]*0)";
5058
5059 /*
5060  *  perform the C function call test
5061  */
5062 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
5063
5064 #define    STRICT_ANSI_ONLY_TEST_CT  2
5065 static tTestDesc aStrict_Ansi_OnlyTests[] = {
5066   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
5067   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
5068
5069 /*
5070  *  Fix Command Arguments for Strict_Ansi_Only
5071  */
5072 static const char* apzStrict_Ansi_OnlyPatch[] = {
5073     "format",
5074     "%1 defined(__STRICT_ANSI__)",
5075     (char*)NULL };
5076
5077 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5078  *
5079  *  Description of Struct_File fix
5080  */
5081 tSCC zStruct_FileName[] =
5082      "struct_file";
5083
5084 /*
5085  *  File name selection pattern
5086  */
5087 tSCC zStruct_FileList[] =
5088   "|rpc/xdr.h|";
5089 /*
5090  *  Machine/OS name selection pattern
5091  */
5092 #define apzStruct_FileMachs (const char**)NULL
5093
5094 /*
5095  *  content selection pattern - do fix if pattern found
5096  */
5097 tSCC zStruct_FileSelect0[] =
5098        "^.*xdrstdio_create.*struct __file_s";
5099
5100 #define    STRUCT_FILE_TEST_CT  1
5101 static tTestDesc aStruct_FileTests[] = {
5102   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
5103
5104 /*
5105  *  Fix Command Arguments for Struct_File
5106  */
5107 static const char* apzStruct_FilePatch[] = {
5108     "format",
5109     "struct __file_s;\n\
5110 %0",
5111     (char*)NULL };
5112
5113 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5114  *
5115  *  Description of Struct_Sockaddr fix
5116  */
5117 tSCC zStruct_SockaddrName[] =
5118      "struct_sockaddr";
5119
5120 /*
5121  *  File name selection pattern
5122  */
5123 tSCC zStruct_SockaddrList[] =
5124   "|rpc/auth.h|";
5125 /*
5126  *  Machine/OS name selection pattern
5127  */
5128 #define apzStruct_SockaddrMachs (const char**)NULL
5129
5130 /*
5131  *  content selection pattern - do fix if pattern found
5132  */
5133 tSCC zStruct_SockaddrSelect0[] =
5134        "^.*authdes_create.*struct sockaddr[^_]";
5135
5136 /*
5137  *  content bypass pattern - skip fix if pattern found
5138  */
5139 tSCC zStruct_SockaddrBypass0[] =
5140        "<sys/socket.h>";
5141 tSCC zStruct_SockaddrBypass1[] =
5142        "struct sockaddr;\n";
5143
5144 #define    STRUCT_SOCKADDR_TEST_CT  3
5145 static tTestDesc aStruct_SockaddrTests[] = {
5146   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
5147   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
5148   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
5149
5150 /*
5151  *  Fix Command Arguments for Struct_Sockaddr
5152  */
5153 static const char* apzStruct_SockaddrPatch[] = {
5154     "format",
5155     "struct sockaddr;\n\
5156 %0",
5157     (char*)NULL };
5158
5159 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5160  *
5161  *  Description of Sun_Auth_Proto fix
5162  */
5163 tSCC zSun_Auth_ProtoName[] =
5164      "sun_auth_proto";
5165
5166 /*
5167  *  File name selection pattern
5168  */
5169 tSCC zSun_Auth_ProtoList[] =
5170   "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
5171 /*
5172  *  Machine/OS name selection pattern
5173  */
5174 #define apzSun_Auth_ProtoMachs (const char**)NULL
5175
5176 /*
5177  *  content selection pattern - do fix if pattern found
5178  */
5179 tSCC zSun_Auth_ProtoSelect0[] =
5180        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
5181
5182 /*
5183  *  content bypass pattern - skip fix if pattern found
5184  */
5185 tSCC zSun_Auth_ProtoBypass0[] =
5186        "__cplusplus";
5187
5188 #define    SUN_AUTH_PROTO_TEST_CT  2
5189 static tTestDesc aSun_Auth_ProtoTests[] = {
5190   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
5191   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
5192
5193 /*
5194  *  Fix Command Arguments for Sun_Auth_Proto
5195  */
5196 static const char* apzSun_Auth_ProtoPatch[] = {
5197     "format",
5198     "#ifdef __cplusplus\n\
5199 %1(...);%2\n\
5200 #else\n\
5201 %1();%2\n\
5202 #endif",
5203     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
5204     (char*)NULL };
5205
5206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5207  *
5208  *  Description of Sun_Bogus_Ifdef fix
5209  */
5210 tSCC zSun_Bogus_IfdefName[] =
5211      "sun_bogus_ifdef";
5212
5213 /*
5214  *  File name selection pattern
5215  */
5216 tSCC zSun_Bogus_IfdefList[] =
5217   "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
5218 /*
5219  *  Machine/OS name selection pattern
5220  */
5221 #define apzSun_Bogus_IfdefMachs (const char**)NULL
5222
5223 /*
5224  *  content selection pattern - do fix if pattern found
5225  */
5226 tSCC zSun_Bogus_IfdefSelect0[] =
5227        "#ifdef(.*\\|\\|.*)";
5228
5229 #define    SUN_BOGUS_IFDEF_TEST_CT  1
5230 static tTestDesc aSun_Bogus_IfdefTests[] = {
5231   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
5232
5233 /*
5234  *  Fix Command Arguments for Sun_Bogus_Ifdef
5235  */
5236 static const char* apzSun_Bogus_IfdefPatch[] = {
5237     "format",
5238     "#if%1",
5239     (char*)NULL };
5240
5241 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5242  *
5243  *  Description of Sun_Catmacro fix
5244  */
5245 tSCC zSun_CatmacroName[] =
5246      "sun_catmacro";
5247
5248 /*
5249  *  File name selection pattern
5250  */
5251 tSCC zSun_CatmacroList[] =
5252   "|pixrect/memvar.h|";
5253 /*
5254  *  Machine/OS name selection pattern
5255  */
5256 #define apzSun_CatmacroMachs (const char**)NULL
5257
5258 /*
5259  *  content selection pattern - do fix if pattern found
5260  */
5261 tSCC zSun_CatmacroSelect0[] =
5262        "^#define[ \t]+CAT\\(a,b\\).*";
5263
5264 #define    SUN_CATMACRO_TEST_CT  1
5265 static tTestDesc aSun_CatmacroTests[] = {
5266   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
5267
5268 /*
5269  *  Fix Command Arguments for Sun_Catmacro
5270  */
5271 static const char* apzSun_CatmacroPatch[] = {
5272     "format",
5273     "#ifdef __STDC__\n\
5274 #  define CAT(a,b) a##b\n\
5275 #else\n\
5276 %0\n\
5277 #endif",
5278     (char*)NULL };
5279
5280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5281  *
5282  *  Description of Sun_Malloc fix
5283  */
5284 tSCC zSun_MallocName[] =
5285      "sun_malloc";
5286
5287 /*
5288  *  File name selection pattern
5289  */
5290 tSCC zSun_MallocList[] =
5291   "|malloc.h|";
5292 /*
5293  *  Machine/OS name selection pattern
5294  */
5295 #define apzSun_MallocMachs (const char**)NULL
5296
5297 /*
5298  *  content bypass pattern - skip fix if pattern found
5299  */
5300 tSCC zSun_MallocBypass0[] =
5301        "_CLASSIC_ANSI_TYPES";
5302
5303 #define    SUN_MALLOC_TEST_CT  1
5304 static tTestDesc aSun_MallocTests[] = {
5305   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
5306
5307 /*
5308  *  Fix Command Arguments for Sun_Malloc
5309  */
5310 static const char* apzSun_MallocPatch[] = { "sed",
5311     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
5312     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
5313     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
5314     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
5315     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
5316     (char*)NULL };
5317
5318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5319  *
5320  *  Description of Sun_Rusers_Semi fix
5321  */
5322 tSCC zSun_Rusers_SemiName[] =
5323      "sun_rusers_semi";
5324
5325 /*
5326  *  File name selection pattern
5327  */
5328 tSCC zSun_Rusers_SemiList[] =
5329   "|rpcsvc/rusers.h|";
5330 /*
5331  *  Machine/OS name selection pattern
5332  */
5333 #define apzSun_Rusers_SemiMachs (const char**)NULL
5334
5335 /*
5336  *  content selection pattern - do fix if pattern found
5337  */
5338 tSCC zSun_Rusers_SemiSelect0[] =
5339        "_cnt$";
5340
5341 #define    SUN_RUSERS_SEMI_TEST_CT  1
5342 static tTestDesc aSun_Rusers_SemiTests[] = {
5343   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
5344
5345 /*
5346  *  Fix Command Arguments for Sun_Rusers_Semi
5347  */
5348 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
5349     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
5350     (char*)NULL };
5351
5352 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5353  *
5354  *  Description of Sun_Signal fix
5355  */
5356 tSCC zSun_SignalName[] =
5357      "sun_signal";
5358
5359 /*
5360  *  File name selection pattern
5361  */
5362 tSCC zSun_SignalList[] =
5363   "|sys/signal.h|signal.h|";
5364 /*
5365  *  Machine/OS name selection pattern
5366  */
5367 #define apzSun_SignalMachs (const char**)NULL
5368
5369 /*
5370  *  content selection pattern - do fix if pattern found
5371  */
5372 tSCC zSun_SignalSelect0[] =
5373        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
5374
5375 #define    SUN_SIGNAL_TEST_CT  1
5376 static tTestDesc aSun_SignalTests[] = {
5377   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
5378
5379 /*
5380  *  Fix Command Arguments for Sun_Signal
5381  */
5382 static const char* apzSun_SignalPatch[] = {
5383     "format",
5384     "#ifdef __cplusplus\n\
5385 void\t(*signal(...))(...);\n\
5386 #else\n\
5387 %0\n\
5388 #endif",
5389     (char*)NULL };
5390
5391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5392  *
5393  *  Description of Sunos_Strlen fix
5394  */
5395 tSCC zSunos_StrlenName[] =
5396      "sunos_strlen";
5397
5398 /*
5399  *  File name selection pattern
5400  */
5401 tSCC zSunos_StrlenList[] =
5402   "|strings.h|";
5403 /*
5404  *  Machine/OS name selection pattern
5405  */
5406 #define apzSunos_StrlenMachs (const char**)NULL
5407
5408 /*
5409  *  content selection pattern - do fix if pattern found
5410  */
5411 tSCC zSunos_StrlenSelect0[] =
5412        "int[ \t]*strlen\\(\\);(.*)";
5413
5414 #define    SUNOS_STRLEN_TEST_CT  1
5415 static tTestDesc aSunos_StrlenTests[] = {
5416   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
5417
5418 /*
5419  *  Fix Command Arguments for Sunos_Strlen
5420  */
5421 static const char* apzSunos_StrlenPatch[] = {
5422     "format",
5423     "__SIZE_TYPE__ strlen();%1",
5424     (char*)NULL };
5425
5426 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5427  *
5428  *  Description of Svr4_Disable_Opt fix
5429  */
5430 tSCC zSvr4_Disable_OptName[] =
5431      "svr4_disable_opt";
5432
5433 /*
5434  *  File name selection pattern
5435  */
5436 tSCC zSvr4_Disable_OptList[] =
5437   "|string.h|";
5438 /*
5439  *  Machine/OS name selection pattern
5440  */
5441 #define apzSvr4_Disable_OptMachs (const char**)NULL
5442
5443 /*
5444  *  content selection pattern - do fix if pattern found
5445  */
5446 tSCC zSvr4_Disable_OptSelect0[] =
5447        "#define.*__std_hdr_";
5448
5449 #define    SVR4_DISABLE_OPT_TEST_CT  1
5450 static tTestDesc aSvr4_Disable_OptTests[] = {
5451   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
5452
5453 /*
5454  *  Fix Command Arguments for Svr4_Disable_Opt
5455  */
5456 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
5457     "-e", "/#define.*__std_hdr_/d",
5458     (char*)NULL };
5459
5460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5461  *
5462  *  Description of Svr4_Getcwd fix
5463  */
5464 tSCC zSvr4_GetcwdName[] =
5465      "svr4_getcwd";
5466
5467 /*
5468  *  File name selection pattern
5469  */
5470 tSCC zSvr4_GetcwdList[] =
5471   "|stdlib.h|unistd.h|prototypes.h|";
5472 /*
5473  *  Machine/OS name selection pattern
5474  */
5475 #define apzSvr4_GetcwdMachs (const char**)NULL
5476
5477 /*
5478  *  content selection pattern - do fix if pattern found
5479  */
5480 tSCC zSvr4_GetcwdSelect0[] =
5481        "getcwd\\(char \\*, int\\)";
5482
5483 #define    SVR4_GETCWD_TEST_CT  1
5484 static tTestDesc aSvr4_GetcwdTests[] = {
5485   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
5486
5487 /*
5488  *  Fix Command Arguments for Svr4_Getcwd
5489  */
5490 static const char* apzSvr4_GetcwdPatch[] = {
5491     "format",
5492     "getcwd(char *, size_t)",
5493     (char*)NULL };
5494
5495 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5496  *
5497  *  Description of Svr4_Krnl fix
5498  */
5499 tSCC zSvr4_KrnlName[] =
5500      "svr4_krnl";
5501
5502 /*
5503  *  File name selection pattern
5504  */
5505 tSCC zSvr4_KrnlList[] =
5506   "|fs/rfs/rf_cache.h|sys/erec.h|sys/err.h|sys/char.h|sys/getpages.h|sys/map.h|sys/cmn_err.h|sys/kdebugger.h|";
5507 /*
5508  *  Machine/OS name selection pattern
5509  */
5510 tSCC* apzSvr4_KrnlMachs[] = {
5511         "*-*-sysv4*",
5512         "i?86-sequent-ptx*",
5513         (const char*)NULL };
5514
5515 /*
5516  *  content bypass pattern - skip fix if pattern found
5517  */
5518 tSCC zSvr4_KrnlBypass0[] =
5519        "_KERNEL";
5520
5521 #define    SVR4_KRNL_TEST_CT  1
5522 static tTestDesc aSvr4_KrnlTests[] = {
5523   { TT_NEGREP,   zSvr4_KrnlBypass0, (regex_t*)NULL }, };
5524
5525 /*
5526  *  Fix Command Arguments for Svr4_Krnl
5527  */
5528 static const char* apzSvr4_KrnlPatch[] = {
5529     "wrap",
5530     "#ifdef _KERNEL\n",
5531     "#endif /* _KERNEL */\n",
5532     (char*)NULL };
5533
5534 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5535  *
5536  *  Description of Svr4_Profil fix
5537  */
5538 tSCC zSvr4_ProfilName[] =
5539      "svr4_profil";
5540
5541 /*
5542  *  File name selection pattern
5543  */
5544 tSCC zSvr4_ProfilList[] =
5545   "|stdlib.h|unistd.h|";
5546 /*
5547  *  Machine/OS name selection pattern
5548  */
5549 #define apzSvr4_ProfilMachs (const char**)NULL
5550
5551 /*
5552  *  content selection pattern - do fix if pattern found
5553  */
5554 tSCC zSvr4_ProfilSelect0[] =
5555        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
5556
5557 /*
5558  *  content bypass pattern - skip fix if pattern found
5559  */
5560 tSCC zSvr4_ProfilBypass0[] =
5561        "Silicon Graphics";
5562
5563 #define    SVR4_PROFIL_TEST_CT  2
5564 static tTestDesc aSvr4_ProfilTests[] = {
5565   { TT_NEGREP,   zSvr4_ProfilBypass0, (regex_t*)NULL },
5566   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
5567
5568 /*
5569  *  Fix Command Arguments for Svr4_Profil
5570  */
5571 static const char* apzSvr4_ProfilPatch[] = {
5572     "format",
5573     "profil(unsigned short *, size_t, int, unsigned int)",
5574     (char*)NULL };
5575
5576 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5577  *
5578  *  Description of Svr4_Sighandler_Type fix
5579  */
5580 tSCC zSvr4_Sighandler_TypeName[] =
5581      "svr4_sighandler_type";
5582
5583 /*
5584  *  File name selection pattern
5585  */
5586 tSCC zSvr4_Sighandler_TypeList[] =
5587   "|sys/signal.h|";
5588 /*
5589  *  Machine/OS name selection pattern
5590  */
5591 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
5592
5593 /*
5594  *  content selection pattern - do fix if pattern found
5595  */
5596 tSCC zSvr4_Sighandler_TypeSelect0[] =
5597        "void *\\(\\*\\)\\(\\)";
5598
5599 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
5600 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
5601   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
5602
5603 /*
5604  *  Fix Command Arguments for Svr4_Sighandler_Type
5605  */
5606 static const char* apzSvr4_Sighandler_TypePatch[] = {
5607     "format",
5608     "void (*)(int)",
5609     (char*)NULL };
5610
5611 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5612  *
5613  *  Description of Svr4_Undeclared_Getrnge fix
5614  */
5615 tSCC zSvr4_Undeclared_GetrngeName[] =
5616      "svr4_undeclared_getrnge";
5617
5618 /*
5619  *  File name selection pattern
5620  */
5621 tSCC zSvr4_Undeclared_GetrngeList[] =
5622   "|regexp.h|";
5623 /*
5624  *  Machine/OS name selection pattern
5625  */
5626 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
5627
5628 /*
5629  *  content selection pattern - do fix if pattern found
5630  */
5631 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
5632        "getrnge";
5633
5634 /*
5635  *  content bypass pattern - skip fix if pattern found
5636  */
5637 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
5638        "static void getrnge";
5639
5640 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
5641 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
5642   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
5643   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
5644
5645 /*
5646  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
5647  */
5648 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
5649     "format",
5650     "%0\n\
5651 static int getrnge ();",
5652     "^static int[ \t]+size;",
5653     (char*)NULL };
5654
5655 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5656  *
5657  *  Description of Sysv68_String fix
5658  */
5659 tSCC zSysv68_StringName[] =
5660      "sysv68_string";
5661
5662 /*
5663  *  File name selection pattern
5664  */
5665 tSCC zSysv68_StringList[] =
5666   "|testing.h|string.h|";
5667 /*
5668  *  Machine/OS name selection pattern
5669  */
5670 #define apzSysv68_StringMachs (const char**)NULL
5671
5672 /*
5673  *  content bypass pattern - skip fix if pattern found
5674  */
5675 tSCC zSysv68_StringBypass0[] =
5676        "_CLASSIC_ANSI_TYPES";
5677
5678 #define    SYSV68_STRING_TEST_CT  1
5679 static tTestDesc aSysv68_StringTests[] = {
5680   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
5681
5682 /*
5683  *  Fix Command Arguments for Sysv68_String
5684  */
5685 static const char* apzSysv68_StringPatch[] = { "sed",
5686     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
5687     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
5688     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
5689     "-e", "/^extern char$/N",
5690     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
5691     "-e", "/^extern int$/N",
5692     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
5693     "-e", "/^\tstrncmp(),$/N",
5694     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
5695 extern unsigned int\\\n\
5696 \\2/",
5697     (char*)NULL };
5698
5699 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5700  *
5701  *  Description of Sysz_Stdlib_For_Sun fix
5702  */
5703 tSCC zSysz_Stdlib_For_SunName[] =
5704      "sysz_stdlib_for_sun";
5705
5706 /*
5707  *  File name selection pattern
5708  */
5709 tSCC zSysz_Stdlib_For_SunList[] =
5710   "|stdlib.h|";
5711 /*
5712  *  Machine/OS name selection pattern
5713  */
5714 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
5715
5716 /*
5717  *  content selection pattern - do fix if pattern found
5718  */
5719 tSCC zSysz_Stdlib_For_SunSelect0[] =
5720        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
5721
5722 /*
5723  *  content bypass pattern - skip fix if pattern found
5724  */
5725 tSCC zSysz_Stdlib_For_SunBypass0[] =
5726        "_CLASSIC_ANSI_TYPES";
5727
5728 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
5729 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
5730   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
5731   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
5732
5733 /*
5734  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
5735  */
5736 static const char* apzSysz_Stdlib_For_SunPatch[] = {
5737     "format",
5738     "void *\t%1(",
5739     (char*)NULL };
5740
5741 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5742  *
5743  *  Description of Thread_Keyword fix
5744  */
5745 tSCC zThread_KeywordName[] =
5746      "thread_keyword";
5747
5748 /*
5749  *  File name selection pattern
5750  */
5751 tSCC zThread_KeywordList[] =
5752   "|pthread.h|bits/sigthread.h|";
5753 /*
5754  *  Machine/OS name selection pattern
5755  */
5756 #define apzThread_KeywordMachs (const char**)NULL
5757
5758 /*
5759  *  content selection pattern - do fix if pattern found
5760  */
5761 tSCC zThread_KeywordSelect0[] =
5762        "([* ])__thread([,)])";
5763
5764 #define    THREAD_KEYWORD_TEST_CT  1
5765 static tTestDesc aThread_KeywordTests[] = {
5766   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
5767
5768 /*
5769  *  Fix Command Arguments for Thread_Keyword
5770  */
5771 static const char* apzThread_KeywordPatch[] = {
5772     "format",
5773     "%1__thr%2",
5774     (char*)NULL };
5775
5776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5777  *
5778  *  Description of Tinfo_Cplusplus fix
5779  */
5780 tSCC zTinfo_CplusplusName[] =
5781      "tinfo_cplusplus";
5782
5783 /*
5784  *  File name selection pattern
5785  */
5786 tSCC zTinfo_CplusplusList[] =
5787   "|tinfo.h|";
5788 /*
5789  *  Machine/OS name selection pattern
5790  */
5791 #define apzTinfo_CplusplusMachs (const char**)NULL
5792
5793 /*
5794  *  content selection pattern - do fix if pattern found
5795  */
5796 tSCC zTinfo_CplusplusSelect0[] =
5797        "[ \t]_cplusplus";
5798
5799 #define    TINFO_CPLUSPLUS_TEST_CT  1
5800 static tTestDesc aTinfo_CplusplusTests[] = {
5801   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
5802
5803 /*
5804  *  Fix Command Arguments for Tinfo_Cplusplus
5805  */
5806 static const char* apzTinfo_CplusplusPatch[] = {
5807     "format",
5808     " __cplusplus",
5809     (char*)NULL };
5810
5811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5812  *
5813  *  Description of Ultrix_Atexit_Param fix
5814  */
5815 tSCC zUltrix_Atexit_ParamName[] =
5816      "ultrix_atexit_param";
5817
5818 /*
5819  *  File name selection pattern
5820  */
5821 tSCC zUltrix_Atexit_ParamList[] =
5822   "|stdlib.h|";
5823 /*
5824  *  Machine/OS name selection pattern
5825  */
5826 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
5827
5828 /*
5829  *  content selection pattern - do fix if pattern found
5830  */
5831 tSCC zUltrix_Atexit_ParamSelect0[] =
5832        "atexit\\(.*\\(\\)";
5833
5834 #define    ULTRIX_ATEXIT_PARAM_TEST_CT  1
5835 static tTestDesc aUltrix_Atexit_ParamTests[] = {
5836   { TT_EGREP,    zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
5837
5838 /*
5839  *  Fix Command Arguments for Ultrix_Atexit_Param
5840  */
5841 static const char* apzUltrix_Atexit_ParamPatch[] = {
5842     "format",
5843     "atexit( void (*__func)( void )",
5844     (char*)NULL };
5845
5846 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5847  *
5848  *  Description of Ultrix_Atof_Param fix
5849  */
5850 tSCC zUltrix_Atof_ParamName[] =
5851      "ultrix_atof_param";
5852
5853 /*
5854  *  File name selection pattern
5855  */
5856 tSCC zUltrix_Atof_ParamList[] =
5857   "|math.h|";
5858 /*
5859  *  Machine/OS name selection pattern
5860  */
5861 #define apzUltrix_Atof_ParamMachs (const char**)NULL
5862
5863 /*
5864  *  content selection pattern - do fix if pattern found
5865  */
5866 tSCC zUltrix_Atof_ParamSelect0[] =
5867        "atof\\([ \t]*char";
5868
5869 #define    ULTRIX_ATOF_PARAM_TEST_CT  1
5870 static tTestDesc aUltrix_Atof_ParamTests[] = {
5871   { TT_EGREP,    zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
5872
5873 /*
5874  *  Fix Command Arguments for Ultrix_Atof_Param
5875  */
5876 static const char* apzUltrix_Atof_ParamPatch[] = {
5877     "format",
5878     "atof(const char",
5879     (char*)NULL };
5880
5881 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5882  *
5883  *  Description of Ultrix_Const fix
5884  */
5885 tSCC zUltrix_ConstName[] =
5886      "ultrix_const";
5887
5888 /*
5889  *  File name selection pattern
5890  */
5891 tSCC zUltrix_ConstList[] =
5892   "|stdio.h|";
5893 /*
5894  *  Machine/OS name selection pattern
5895  */
5896 #define apzUltrix_ConstMachs (const char**)NULL
5897
5898 /*
5899  *  content selection pattern - do fix if pattern found
5900  */
5901 tSCC zUltrix_ConstSelect0[] =
5902        "perror\\( char \\*";
5903
5904 #define    ULTRIX_CONST_TEST_CT  1
5905 static tTestDesc aUltrix_ConstTests[] = {
5906   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
5907
5908 /*
5909  *  Fix Command Arguments for Ultrix_Const
5910  */
5911 static const char* apzUltrix_ConstPatch[] = {
5912     "format",
5913     "%1 const %3 *__",
5914     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
5915     (char*)NULL };
5916
5917 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5918  *
5919  *  Description of Ultrix_Const2 fix
5920  */
5921 tSCC zUltrix_Const2Name[] =
5922      "ultrix_const2";
5923
5924 /*
5925  *  File name selection pattern
5926  */
5927 tSCC zUltrix_Const2List[] =
5928   "|stdio.h|";
5929 /*
5930  *  Machine/OS name selection pattern
5931  */
5932 #define apzUltrix_Const2Machs (const char**)NULL
5933
5934 /*
5935  *  content selection pattern - do fix if pattern found
5936  */
5937 tSCC zUltrix_Const2Select0[] =
5938        "\\*fopen\\( char \\*";
5939
5940 #define    ULTRIX_CONST2_TEST_CT  1
5941 static tTestDesc aUltrix_Const2Tests[] = {
5942   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
5943
5944 /*
5945  *  Fix Command Arguments for Ultrix_Const2
5946  */
5947 static const char* apzUltrix_Const2Patch[] = {
5948     "format",
5949     "%1( const char *%3, const char *",
5950     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
5951     (char*)NULL };
5952
5953 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5954  *
5955  *  Description of Ultrix_Const3 fix
5956  */
5957 tSCC zUltrix_Const3Name[] =
5958      "ultrix_const3";
5959
5960 /*
5961  *  File name selection pattern
5962  */
5963 tSCC zUltrix_Const3List[] =
5964   "|stdio.h|";
5965 /*
5966  *  Machine/OS name selection pattern
5967  */
5968 #define apzUltrix_Const3Machs (const char**)NULL
5969
5970 /*
5971  *  content selection pattern - do fix if pattern found
5972  */
5973 tSCC zUltrix_Const3Select0[] =
5974        "fdopen\\( .*, char \\*";
5975
5976 #define    ULTRIX_CONST3_TEST_CT  1
5977 static tTestDesc aUltrix_Const3Tests[] = {
5978   { TT_EGREP,    zUltrix_Const3Select0, (regex_t*)NULL }, };
5979
5980 /*
5981  *  Fix Command Arguments for Ultrix_Const3
5982  */
5983 static const char* apzUltrix_Const3Patch[] = {
5984     "format",
5985     "%1 const %3 *__",
5986     "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
5987     (char*)NULL };
5988
5989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5990  *
5991  *  Description of Ultrix_Fix_Fixproto fix
5992  */
5993 tSCC zUltrix_Fix_FixprotoName[] =
5994      "ultrix_fix_fixproto";
5995
5996 /*
5997  *  File name selection pattern
5998  */
5999 tSCC zUltrix_Fix_FixprotoList[] =
6000   "|sys/utsname.h|";
6001 /*
6002  *  Machine/OS name selection pattern
6003  */
6004 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
6005
6006 /*
6007  *  content selection pattern - do fix if pattern found
6008  */
6009 tSCC zUltrix_Fix_FixprotoSelect0[] =
6010        "ULTRIX";
6011
6012 #define    ULTRIX_FIX_FIXPROTO_TEST_CT  1
6013 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
6014   { TT_EGREP,    zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
6015
6016 /*
6017  *  Fix Command Arguments for Ultrix_Fix_Fixproto
6018  */
6019 static const char* apzUltrix_Fix_FixprotoPatch[] = {
6020     "format",
6021     "struct utsname;\n\
6022 %0",
6023     "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
6024     (char*)NULL };
6025
6026 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6027  *
6028  *  Description of Ultrix_Ifdef fix
6029  */
6030 tSCC zUltrix_IfdefName[] =
6031      "ultrix_ifdef";
6032
6033 /*
6034  *  File name selection pattern
6035  */
6036 tSCC zUltrix_IfdefList[] =
6037   "|sys/file.h|";
6038 /*
6039  *  Machine/OS name selection pattern
6040  */
6041 #define apzUltrix_IfdefMachs (const char**)NULL
6042
6043 /*
6044  *  content selection pattern - do fix if pattern found
6045  */
6046 tSCC zUltrix_IfdefSelect0[] =
6047        "^#ifdef KERNEL[ \t]+&&";
6048
6049 #define    ULTRIX_IFDEF_TEST_CT  1
6050 static tTestDesc aUltrix_IfdefTests[] = {
6051   { TT_EGREP,    zUltrix_IfdefSelect0, (regex_t*)NULL }, };
6052
6053 /*
6054  *  Fix Command Arguments for Ultrix_Ifdef
6055  */
6056 static const char* apzUltrix_IfdefPatch[] = {
6057     "format",
6058     "#if defined(KERNEL) &&",
6059     (char*)NULL };
6060
6061 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6062  *
6063  *  Description of Ultrix_Locale fix
6064  */
6065 tSCC zUltrix_LocaleName[] =
6066      "ultrix_locale";
6067
6068 /*
6069  *  File name selection pattern
6070  */
6071 tSCC zUltrix_LocaleList[] =
6072   "|locale.h|";
6073 /*
6074  *  Machine/OS name selection pattern
6075  */
6076 #define apzUltrix_LocaleMachs (const char**)NULL
6077
6078 /*
6079  *  content selection pattern - do fix if pattern found
6080  */
6081 tSCC zUltrix_LocaleSelect0[] =
6082        "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
6083
6084 #define    ULTRIX_LOCALE_TEST_CT  1
6085 static tTestDesc aUltrix_LocaleTests[] = {
6086   { TT_EGREP,    zUltrix_LocaleSelect0, (regex_t*)NULL }, };
6087
6088 /*
6089  *  Fix Command Arguments for Ultrix_Locale
6090  */
6091 static const char* apzUltrix_LocalePatch[] = {
6092     "wrap",
6093     (char*)NULL };
6094
6095 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6096  *
6097  *  Description of Ultrix_Math_Ifdef fix
6098  */
6099 tSCC zUltrix_Math_IfdefName[] =
6100      "ultrix_math_ifdef";
6101
6102 /*
6103  *  File name selection pattern
6104  */
6105 tSCC zUltrix_Math_IfdefList[] =
6106   "|sys/limits.h|float.h|math.h|";
6107 /*
6108  *  Machine/OS name selection pattern
6109  */
6110 #define apzUltrix_Math_IfdefMachs (const char**)NULL
6111
6112 /*
6113  *  content selection pattern - do fix if pattern found
6114  */
6115 tSCC zUltrix_Math_IfdefSelect0[] =
6116        "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
6117
6118 #define    ULTRIX_MATH_IFDEF_TEST_CT  1
6119 static tTestDesc aUltrix_Math_IfdefTests[] = {
6120   { TT_EGREP,    zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
6121
6122 /*
6123  *  Fix Command Arguments for Ultrix_Math_Ifdef
6124  */
6125 static const char* apzUltrix_Math_IfdefPatch[] = {
6126     "format",
6127     "%1",
6128     (char*)NULL };
6129
6130 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6131  *
6132  *  Description of Ultrix_Nested_Ioctl fix
6133  */
6134 tSCC zUltrix_Nested_IoctlName[] =
6135      "ultrix_nested_ioctl";
6136
6137 /*
6138  *  File name selection pattern
6139  */
6140 tSCC zUltrix_Nested_IoctlList[] =
6141   "|sys/ioctl.h|";
6142 /*
6143  *  Machine/OS name selection pattern
6144  */
6145 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
6146
6147 /*
6148  *  content selection pattern - do fix if pattern found
6149  */
6150 tSCC zUltrix_Nested_IoctlSelect0[] =
6151        "^/\\* #define SIOCSCREEN";
6152
6153 #define    ULTRIX_NESTED_IOCTL_TEST_CT  1
6154 static tTestDesc aUltrix_Nested_IoctlTests[] = {
6155   { TT_EGREP,    zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
6156
6157 /*
6158  *  Fix Command Arguments for Ultrix_Nested_Ioctl
6159  */
6160 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
6161     "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
6162     (char*)NULL };
6163
6164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6165  *
6166  *  Description of Ultrix_Nested_Svc fix
6167  */
6168 tSCC zUltrix_Nested_SvcName[] =
6169      "ultrix_nested_svc";
6170
6171 /*
6172  *  File name selection pattern
6173  */
6174 tSCC zUltrix_Nested_SvcList[] =
6175   "|rpc/svc.h|";
6176 /*
6177  *  Machine/OS name selection pattern
6178  */
6179 #define apzUltrix_Nested_SvcMachs (const char**)NULL
6180
6181 /*
6182  *  content selection pattern - do fix if pattern found
6183  */
6184 tSCC zUltrix_Nested_SvcSelect0[] =
6185        "^ \\*[ \t]*int protocol;  */\\*";
6186
6187 #define    ULTRIX_NESTED_SVC_TEST_CT  1
6188 static tTestDesc aUltrix_Nested_SvcTests[] = {
6189   { TT_EGREP,    zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
6190
6191 /*
6192  *  Fix Command Arguments for Ultrix_Nested_Svc
6193  */
6194 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
6195     "-e", "s@^\\( \\*\tint protocol;  \\)/\\*@\\1*/ /*@",
6196     (char*)NULL };
6197
6198 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6199  *
6200  *  Description of Ultrix_Stat fix
6201  */
6202 tSCC zUltrix_StatName[] =
6203      "ultrix_stat";
6204
6205 /*
6206  *  File name selection pattern
6207  */
6208 tSCC zUltrix_StatList[] =
6209   "|sys/stat.h|";
6210 /*
6211  *  Machine/OS name selection pattern
6212  */
6213 #define apzUltrix_StatMachs (const char**)NULL
6214
6215 /*
6216  *  content selection pattern - do fix if pattern found
6217  */
6218 tSCC zUltrix_StatSelect0[] =
6219        "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
6220
6221 #define    ULTRIX_STAT_TEST_CT  1
6222 static tTestDesc aUltrix_StatTests[] = {
6223   { TT_EGREP,    zUltrix_StatSelect0, (regex_t*)NULL }, };
6224
6225 /*
6226  *  Fix Command Arguments for Ultrix_Stat
6227  */
6228 static const char* apzUltrix_StatPatch[] = { "sed",
6229     "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
6230 \\\n\
6231 /* macro to test for symbolic link */\\\n\
6232 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
6233     "-e", "/^[ \t]*fstat(),$/a\\\n\
6234 \tlstat(),\n",
6235     (char*)NULL };
6236
6237 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6238  *
6239  *  Description of Ultrix_Static fix
6240  */
6241 tSCC zUltrix_StaticName[] =
6242      "ultrix_static";
6243
6244 /*
6245  *  File name selection pattern
6246  */
6247 tSCC zUltrix_StaticList[] =
6248   "|machine/cpu.h|";
6249 /*
6250  *  Machine/OS name selection pattern
6251  */
6252 #define apzUltrix_StaticMachs (const char**)NULL
6253
6254 /*
6255  *  content selection pattern - do fix if pattern found
6256  */
6257 tSCC zUltrix_StaticSelect0[] =
6258        "#include \"r[34]_cpu";
6259
6260 #define    ULTRIX_STATIC_TEST_CT  1
6261 static tTestDesc aUltrix_StaticTests[] = {
6262   { TT_EGREP,    zUltrix_StaticSelect0, (regex_t*)NULL }, };
6263
6264 /*
6265  *  Fix Command Arguments for Ultrix_Static
6266  */
6267 static const char* apzUltrix_StaticPatch[] = { "sed",
6268     "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
6269     "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
6270     "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
6271     (char*)NULL };
6272
6273 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6274  *
6275  *  Description of Ultrix_Stdlib fix
6276  */
6277 tSCC zUltrix_StdlibName[] =
6278      "ultrix_stdlib";
6279
6280 /*
6281  *  File name selection pattern
6282  */
6283 tSCC zUltrix_StdlibList[] =
6284   "|stdlib.h|";
6285 /*
6286  *  Machine/OS name selection pattern
6287  */
6288 #define apzUltrix_StdlibMachs (const char**)NULL
6289
6290 /*
6291  *  content selection pattern - do fix if pattern found
6292  */
6293 tSCC zUltrix_StdlibSelect0[] =
6294        "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
6295
6296 #define    ULTRIX_STDLIB_TEST_CT  1
6297 static tTestDesc aUltrix_StdlibTests[] = {
6298   { TT_EGREP,    zUltrix_StdlibSelect0, (regex_t*)NULL }, };
6299
6300 /*
6301  *  Fix Command Arguments for Ultrix_Stdlib
6302  */
6303 static const char* apzUltrix_StdlibPatch[] = { "sed",
6304     "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
6305 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
6306 void\t\tunsetenv( const char *__name );\\\n\
6307 int\t\tputenv( char *__s );\n",
6308     "-e", "/^char.*getenv();.*$/a\\\n\
6309 int\tsetenv();\\\n\
6310 void\tunsetenv();\\\n\
6311 int\tputenv();\n",
6312     (char*)NULL };
6313
6314 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6315  *
6316  *  Description of Ultrix_Strings fix
6317  */
6318 tSCC zUltrix_StringsName[] =
6319      "ultrix_strings";
6320
6321 /*
6322  *  File name selection pattern
6323  */
6324 tSCC zUltrix_StringsList[] =
6325   "|strings.h|";
6326 /*
6327  *  Machine/OS name selection pattern
6328  */
6329 #define apzUltrix_StringsMachs (const char**)NULL
6330
6331 /*
6332  *  content selection pattern - do fix if pattern found
6333  */
6334 tSCC zUltrix_StringsSelect0[] =
6335        "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
6336
6337 #define    ULTRIX_STRINGS_TEST_CT  1
6338 static tTestDesc aUltrix_StringsTests[] = {
6339   { TT_EGREP,    zUltrix_StringsSelect0, (regex_t*)NULL }, };
6340
6341 /*
6342  *  Fix Command Arguments for Ultrix_Strings
6343  */
6344 static const char* apzUltrix_StringsPatch[] = {
6345     "wrap",
6346     (char*)NULL };
6347
6348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6349  *
6350  *  Description of Ultrix_Strings2 fix
6351  */
6352 tSCC zUltrix_Strings2Name[] =
6353      "ultrix_strings2";
6354
6355 /*
6356  *  File name selection pattern
6357  */
6358 tSCC zUltrix_Strings2List[] =
6359   "|strings.h|";
6360 /*
6361  *  Machine/OS name selection pattern
6362  */
6363 #define apzUltrix_Strings2Machs (const char**)NULL
6364
6365 /*
6366  *  content selection pattern - do fix if pattern found
6367  */
6368 tSCC zUltrix_Strings2Select0[] =
6369        "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
6370
6371 #define    ULTRIX_STRINGS2_TEST_CT  1
6372 static tTestDesc aUltrix_Strings2Tests[] = {
6373   { TT_EGREP,    zUltrix_Strings2Select0, (regex_t*)NULL }, };
6374
6375 /*
6376  *  Fix Command Arguments for Ultrix_Strings2
6377  */
6378 static const char* apzUltrix_Strings2Patch[] = { "sed",
6379     "-e", "/^.*strncmp( const .* );.*/a\\\n\
6380 \\\n\
6381 extern int\\\n\
6382 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
6383 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
6384     "-e", "/^.*strncmp();.*/a\\\n\
6385 extern int\\\n\
6386 \tstrcasecmp(),\\\n\
6387 \tstrncasecmp();\n",
6388     (char*)NULL };
6389
6390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6391  *
6392  *  Description of Ultrix_Sys_Time fix
6393  */
6394 tSCC zUltrix_Sys_TimeName[] =
6395      "ultrix_sys_time";
6396
6397 /*
6398  *  File name selection pattern
6399  */
6400 tSCC zUltrix_Sys_TimeList[] =
6401   "|sys/time.h|";
6402 /*
6403  *  Machine/OS name selection pattern
6404  */
6405 #define apzUltrix_Sys_TimeMachs (const char**)NULL
6406
6407 /*
6408  *  content selection pattern - do fix if pattern found
6409  */
6410 tSCC zUltrix_Sys_TimeSelect0[] =
6411        "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
6412
6413 #define    ULTRIX_SYS_TIME_TEST_CT  1
6414 static tTestDesc aUltrix_Sys_TimeTests[] = {
6415   { TT_EGREP,    zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
6416
6417 /*
6418  *  Fix Command Arguments for Ultrix_Sys_Time
6419  */
6420 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
6421     "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
6422 \\\n\
6423 extern int adjtime(struct timeval *, struct timeval *);\\\n\
6424 extern int getitimer(int, struct itimerval *);\\\n\
6425 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
6426 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
6427 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
6428 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
6429 extern int stime(const time_t *);\\\n\
6430 extern int utimes(const char *, const struct timeval[2]);\\\n\
6431 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
6432     "-e", "/^extern.*double.*difftime();.*$/a\\\n\
6433 extern\tint adjtime();\\\n\
6434 extern\tint getitimer();\\\n\
6435 extern\tint setitimer();\\\n\
6436 extern\tint gettimeofday();\\\n\
6437 extern\tint settimeofday();\\\n\
6438 extern\tvoid profil();\\\n\
6439 extern\tint stime();\\\n\
6440 extern\tint utimes();\\\n\
6441 extern\tint select();\n",
6442     (char*)NULL };
6443
6444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6445  *
6446  *  Description of Ultrix_Unistd fix
6447  */
6448 tSCC zUltrix_UnistdName[] =
6449      "ultrix_unistd";
6450
6451 /*
6452  *  File name selection pattern
6453  */
6454 tSCC zUltrix_UnistdList[] =
6455   "|unistd.h|";
6456 /*
6457  *  Machine/OS name selection pattern
6458  */
6459 #define apzUltrix_UnistdMachs (const char**)NULL
6460
6461 /*
6462  *  content selection pattern - do fix if pattern found
6463  */
6464 tSCC zUltrix_UnistdSelect0[] =
6465        "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
6466
6467 #define    ULTRIX_UNISTD_TEST_CT  1
6468 static tTestDesc aUltrix_UnistdTests[] = {
6469   { TT_EGREP,    zUltrix_UnistdSelect0, (regex_t*)NULL }, };
6470
6471 /*
6472  *  Fix Command Arguments for Ultrix_Unistd
6473  */
6474 static const char* apzUltrix_UnistdPatch[] = { "sed",
6475     "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
6476 \tgetpagesize(),\n",
6477     "-e", "/^[ \t]*fork(),.*$/a\\\n\
6478 \tvfork(),\n",
6479     (char*)NULL };
6480
6481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6482  *
6483  *  Description of Unicosmk_Restrict fix
6484  */
6485 tSCC zUnicosmk_RestrictName[] =
6486      "unicosmk_restrict";
6487
6488 /*
6489  *  File name selection pattern
6490  */
6491 tSCC zUnicosmk_RestrictList[] =
6492   "|stdio.h|stdlib.h|wchar.h|";
6493 /*
6494  *  Machine/OS name selection pattern
6495  */
6496 tSCC* apzUnicosmk_RestrictMachs[] = {
6497         "*-*-unicosmk*",
6498         (const char*)NULL };
6499
6500 /*
6501  *  content selection pattern - do fix if pattern found
6502  */
6503 tSCC zUnicosmk_RestrictSelect0[] =
6504        "(\\*[ \t]*)restrict([ \t]+)";
6505
6506 #define    UNICOSMK_RESTRICT_TEST_CT  1
6507 static tTestDesc aUnicosmk_RestrictTests[] = {
6508   { TT_EGREP,    zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
6509
6510 /*
6511  *  Fix Command Arguments for Unicosmk_Restrict
6512  */
6513 static const char* apzUnicosmk_RestrictPatch[] = {
6514     "format",
6515     "%1__restrict__%2",
6516     (char*)NULL };
6517
6518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6519  *
6520  *  Description of Uw7_Byteorder_Fix fix
6521  */
6522 tSCC zUw7_Byteorder_FixName[] =
6523      "uw7_byteorder_fix";
6524
6525 /*
6526  *  File name selection pattern
6527  */
6528 tSCC zUw7_Byteorder_FixList[] =
6529   "|arpa/inet.h|";
6530 /*
6531  *  Machine/OS name selection pattern
6532  */
6533 tSCC* apzUw7_Byteorder_FixMachs[] = {
6534         "*-*-sysv4*",
6535         "i?86-*-sysv5*",
6536         "i?86-*-udk*",
6537         "i?86-*-solaris2.[0-4]",
6538         "powerpcle-*-solaris2.[0-4]",
6539         "sparc-*-solaris2.[0-4]",
6540         (const char*)NULL };
6541
6542 /*
6543  *  content selection pattern - do fix if pattern found
6544  */
6545 tSCC zUw7_Byteorder_FixSelect0[] =
6546        "in_port_t";
6547
6548 /*
6549  *  perform the 'test' shell command - do fix on success
6550  */
6551 tSCC zUw7_Byteorder_FixTest0[] =
6552        "-f sys/byteorder.h";
6553
6554 #define    UW7_BYTEORDER_FIX_TEST_CT  2
6555 static tTestDesc aUw7_Byteorder_FixTests[] = {
6556   { TT_TEST,     zUw7_Byteorder_FixTest0,   0 /* unused */ },
6557   { TT_EGREP,    zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
6558
6559 /*
6560  *  Fix Command Arguments for Uw7_Byteorder_Fix
6561  */
6562 static const char* apzUw7_Byteorder_FixPatch[] = {
6563     "format",
6564     "",
6565     "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
6566     (char*)NULL };
6567
6568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6569  *
6570  *  Description of Va_I960_Macro fix
6571  */
6572 tSCC zVa_I960_MacroName[] =
6573      "va_i960_macro";
6574
6575 /*
6576  *  File name selection pattern
6577  */
6578 tSCC zVa_I960_MacroList[] =
6579   "|arch/i960/archI960.h|";
6580 /*
6581  *  Machine/OS name selection pattern
6582  */
6583 #define apzVa_I960_MacroMachs (const char**)NULL
6584
6585 /*
6586  *  content selection pattern - do fix if pattern found
6587  */
6588 tSCC zVa_I960_MacroSelect0[] =
6589        "__(vsiz|vali|vpad|alignof__)";
6590
6591 #define    VA_I960_MACRO_TEST_CT  1
6592 static tTestDesc aVa_I960_MacroTests[] = {
6593   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
6594
6595 /*
6596  *  Fix Command Arguments for Va_I960_Macro
6597  */
6598 static const char* apzVa_I960_MacroPatch[] = {
6599     "format",
6600     "__vx%1",
6601     (char*)NULL };
6602
6603 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6604  *
6605  *  Description of Void_Null fix
6606  */
6607 tSCC zVoid_NullName[] =
6608      "void_null";
6609
6610 /*
6611  *  File name selection pattern
6612  */
6613 tSCC zVoid_NullList[] =
6614   "|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|";
6615 /*
6616  *  Machine/OS name selection pattern
6617  */
6618 #define apzVoid_NullMachs (const char**)NULL
6619
6620 /*
6621  *  content selection pattern - do fix if pattern found
6622  */
6623 tSCC zVoid_NullSelect0[] =
6624        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
6625
6626 /*
6627  *  content bypass pattern - skip fix if pattern found
6628  */
6629 tSCC zVoid_NullBypass0[] =
6630        "__cplusplus";
6631
6632 #define    VOID_NULL_TEST_CT  2
6633 static tTestDesc aVoid_NullTests[] = {
6634   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
6635   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
6636
6637 /*
6638  *  Fix Command Arguments for Void_Null
6639  */
6640 static const char* apzVoid_NullPatch[] = {
6641     "format",
6642     "#define NULL 0",
6643     (char*)NULL };
6644
6645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6646  *
6647  *  Description of Vxworks_Gcc_Problem fix
6648  */
6649 tSCC zVxworks_Gcc_ProblemName[] =
6650      "vxworks_gcc_problem";
6651
6652 /*
6653  *  File name selection pattern
6654  */
6655 tSCC zVxworks_Gcc_ProblemList[] =
6656   "|types/vxTypesBase.h|";
6657 /*
6658  *  Machine/OS name selection pattern
6659  */
6660 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
6661
6662 /*
6663  *  content selection pattern - do fix if pattern found
6664  */
6665 tSCC zVxworks_Gcc_ProblemSelect0[] =
6666        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
6667
6668 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
6669 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
6670   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
6671
6672 /*
6673  *  Fix Command Arguments for Vxworks_Gcc_Problem
6674  */
6675 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
6676     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
6677     "-e", "/[ \t]size_t/i\\\n\
6678 #ifndef _GCC_SIZE_T\\\n\
6679 #define _GCC_SIZE_T\n",
6680     "-e", "/[ \t]size_t/a\\\n\
6681 #endif\n",
6682     "-e", "/[ \t]ptrdiff_t/i\\\n\
6683 #ifndef _GCC_PTRDIFF_T\\\n\
6684 #define _GCC_PTRDIFF_T\n",
6685     "-e", "/[ \t]ptrdiff_t/a\\\n\
6686 #endif\n",
6687     "-e", "/[ \t]wchar_t/i\\\n\
6688 #ifndef _GCC_WCHAR_T\\\n\
6689 #define _GCC_WCHAR_T\n",
6690     "-e", "/[ \t]wchar_t/a\\\n\
6691 #endif\n",
6692     (char*)NULL };
6693
6694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6695  *
6696  *  Description of Vxworks_Needs_Vxtypes fix
6697  */
6698 tSCC zVxworks_Needs_VxtypesName[] =
6699      "vxworks_needs_vxtypes";
6700
6701 /*
6702  *  File name selection pattern
6703  */
6704 tSCC zVxworks_Needs_VxtypesList[] =
6705   "|time.h|";
6706 /*
6707  *  Machine/OS name selection pattern
6708  */
6709 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
6710
6711 /*
6712  *  content selection pattern - do fix if pattern found
6713  */
6714 tSCC zVxworks_Needs_VxtypesSelect0[] =
6715        "uint_t([ \t]+_clocks_per_sec)";
6716
6717 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
6718 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
6719   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
6720
6721 /*
6722  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
6723  */
6724 static const char* apzVxworks_Needs_VxtypesPatch[] = {
6725     "format",
6726     "unsigned int%1",
6727     (char*)NULL };
6728
6729 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6730  *
6731  *  Description of Vxworks_Needs_Vxworks fix
6732  */
6733 tSCC zVxworks_Needs_VxworksName[] =
6734      "vxworks_needs_vxworks";
6735
6736 /*
6737  *  File name selection pattern
6738  */
6739 tSCC zVxworks_Needs_VxworksList[] =
6740   "|sys/stat.h|";
6741 /*
6742  *  Machine/OS name selection pattern
6743  */
6744 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
6745
6746 /*
6747  *  content selection pattern - do fix if pattern found
6748  */
6749 tSCC zVxworks_Needs_VxworksSelect0[] =
6750        "#[ \t]define[ \t]+__INCstath";
6751
6752 /*
6753  *  perform the 'test' shell command - do fix on success
6754  */
6755 tSCC zVxworks_Needs_VxworksTest0[] =
6756        " -r types/vxTypesOld.h";
6757 tSCC zVxworks_Needs_VxworksTest1[] =
6758        " -n \"`egrep '#include' $file`\"";
6759 tSCC zVxworks_Needs_VxworksTest2[] =
6760        " -n \"`egrep ULONG $file`\"";
6761
6762 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
6763 static tTestDesc aVxworks_Needs_VxworksTests[] = {
6764   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
6765   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
6766   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
6767   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
6768
6769 /*
6770  *  Fix Command Arguments for Vxworks_Needs_Vxworks
6771  */
6772 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
6773     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
6774 #include <types/vxTypesOld.h>\n",
6775     (char*)NULL };
6776
6777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6778  *
6779  *  Description of Vxworks_Time fix
6780  */
6781 tSCC zVxworks_TimeName[] =
6782      "vxworks_time";
6783
6784 /*
6785  *  File name selection pattern
6786  */
6787 tSCC zVxworks_TimeList[] =
6788   "|time.h|";
6789 /*
6790  *  Machine/OS name selection pattern
6791  */
6792 #define apzVxworks_TimeMachs (const char**)NULL
6793
6794 /*
6795  *  content selection pattern - do fix if pattern found
6796  */
6797 tSCC zVxworks_TimeSelect0[] =
6798        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
6799
6800 /*
6801  *  perform the 'test' shell command - do fix on success
6802  */
6803 tSCC zVxworks_TimeTest0[] =
6804        " -r vxWorks.h";
6805
6806 #define    VXWORKS_TIME_TEST_CT  2
6807 static tTestDesc aVxworks_TimeTests[] = {
6808   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
6809   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
6810
6811 /*
6812  *  Fix Command Arguments for Vxworks_Time
6813  */
6814 static const char* apzVxworks_TimePatch[] = {
6815     "format",
6816     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
6817 #ifdef __cplusplus\n\
6818 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
6819 #else\n\
6820 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
6821 #endif\n\
6822 #define __gcc_VOIDFUNCPTR_defined\n\
6823 #endif\n\
6824 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
6825     (char*)NULL };
6826
6827 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6828  *
6829  *  Description of Windiss_Math1 fix
6830  */
6831 tSCC zWindiss_Math1Name[] =
6832      "windiss_math1";
6833
6834 /*
6835  *  File name selection pattern
6836  */
6837 tSCC zWindiss_Math1List[] =
6838   "|math.h|";
6839 /*
6840  *  Machine/OS name selection pattern
6841  */
6842 tSCC* apzWindiss_Math1Machs[] = {
6843         "*-*-windiss",
6844         (const char*)NULL };
6845 #define WINDISS_MATH1_TEST_CT  0
6846 #define aWindiss_Math1Tests   (tTestDesc*)NULL
6847
6848 /*
6849  *  Fix Command Arguments for Windiss_Math1
6850  */
6851 static const char* apzWindiss_Math1Patch[] = { "sed",
6852     "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
6853     (char*)NULL };
6854
6855 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6856  *
6857  *  Description of Windiss_Math2 fix
6858  */
6859 tSCC zWindiss_Math2Name[] =
6860      "windiss_math2";
6861
6862 /*
6863  *  File name selection pattern
6864  */
6865 tSCC zWindiss_Math2List[] =
6866   "|math.h|";
6867 /*
6868  *  Machine/OS name selection pattern
6869  */
6870 tSCC* apzWindiss_Math2Machs[] = {
6871         "*-*-windiss",
6872         (const char*)NULL };
6873 #define WINDISS_MATH2_TEST_CT  0
6874 #define aWindiss_Math2Tests   (tTestDesc*)NULL
6875
6876 /*
6877  *  Fix Command Arguments for Windiss_Math2
6878  */
6879 static const char* apzWindiss_Math2Patch[] = { "sed",
6880     "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
6881     (char*)NULL };
6882
6883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6884  *
6885  *  Description of Windiss_Valist fix
6886  */
6887 tSCC zWindiss_ValistName[] =
6888      "windiss_valist";
6889
6890 /*
6891  *  File name selection pattern
6892  */
6893 #define zWindiss_ValistList (char*)NULL
6894 /*
6895  *  Machine/OS name selection pattern
6896  */
6897 tSCC* apzWindiss_ValistMachs[] = {
6898         "*-*-windiss",
6899         (const char*)NULL };
6900
6901 /*
6902  *  content selection pattern - do fix if pattern found
6903  */
6904 tSCC zWindiss_ValistSelect0[] =
6905        "(#include.*)diab/va_list.h";
6906
6907 #define    WINDISS_VALIST_TEST_CT  1
6908 static tTestDesc aWindiss_ValistTests[] = {
6909   { TT_EGREP,    zWindiss_ValistSelect0, (regex_t*)NULL }, };
6910
6911 /*
6912  *  Fix Command Arguments for Windiss_Valist
6913  */
6914 static const char* apzWindiss_ValistPatch[] = { "sed",
6915     "-e", "s|diab/va_list.h|stdarg.h|",
6916     (char*)NULL };
6917
6918 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6919  *
6920  *  Description of X11_Class fix
6921  */
6922 tSCC zX11_ClassName[] =
6923      "x11_class";
6924
6925 /*
6926  *  File name selection pattern
6927  */
6928 tSCC zX11_ClassList[] =
6929   "|X11/ShellP.h|";
6930 /*
6931  *  Machine/OS name selection pattern
6932  */
6933 #define apzX11_ClassMachs (const char**)NULL
6934
6935 /*
6936  *  content selection pattern - do fix if pattern found
6937  */
6938 tSCC zX11_ClassSelect0[] =
6939        "^([ \t]*char \\*)class;(.*)";
6940
6941 /*
6942  *  content bypass pattern - skip fix if pattern found
6943  */
6944 tSCC zX11_ClassBypass0[] =
6945        "__cplusplus";
6946
6947 #define    X11_CLASS_TEST_CT  2
6948 static tTestDesc aX11_ClassTests[] = {
6949   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
6950   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
6951
6952 /*
6953  *  Fix Command Arguments for X11_Class
6954  */
6955 static const char* apzX11_ClassPatch[] = {
6956     "format",
6957     "#ifdef __cplusplus\n\
6958 %1c_class;%2\n\
6959 #else\n\
6960 %1class;%2\n\
6961 #endif",
6962     (char*)NULL };
6963
6964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6965  *
6966  *  Description of X11_Class_Usage fix
6967  */
6968 tSCC zX11_Class_UsageName[] =
6969      "x11_class_usage";
6970
6971 /*
6972  *  File name selection pattern
6973  */
6974 tSCC zX11_Class_UsageList[] =
6975   "|Xm/BaseClassI.h|";
6976 /*
6977  *  Machine/OS name selection pattern
6978  */
6979 #define apzX11_Class_UsageMachs (const char**)NULL
6980
6981 /*
6982  *  content selection pattern - do fix if pattern found
6983  */
6984 tSCC zX11_Class_UsageSelect0[] =
6985        " class\\)";
6986
6987 /*
6988  *  content bypass pattern - skip fix if pattern found
6989  */
6990 tSCC zX11_Class_UsageBypass0[] =
6991        "__cplusplus";
6992
6993 #define    X11_CLASS_USAGE_TEST_CT  2
6994 static tTestDesc aX11_Class_UsageTests[] = {
6995   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
6996   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
6997
6998 /*
6999  *  Fix Command Arguments for X11_Class_Usage
7000  */
7001 static const char* apzX11_Class_UsagePatch[] = {
7002     "format",
7003     " c_class)",
7004     (char*)NULL };
7005
7006 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7007  *
7008  *  Description of X11_New fix
7009  */
7010 tSCC zX11_NewName[] =
7011      "x11_new";
7012
7013 /*
7014  *  File name selection pattern
7015  */
7016 tSCC zX11_NewList[] =
7017   "|Xm/Traversal.h|";
7018 /*
7019  *  Machine/OS name selection pattern
7020  */
7021 #define apzX11_NewMachs (const char**)NULL
7022
7023 /*
7024  *  content bypass pattern - skip fix if pattern found
7025  */
7026 tSCC zX11_NewBypass0[] =
7027        "__cplusplus";
7028
7029 #define    X11_NEW_TEST_CT  1
7030 static tTestDesc aX11_NewTests[] = {
7031   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
7032
7033 /*
7034  *  Fix Command Arguments for X11_New
7035  */
7036 static const char* apzX11_NewPatch[] = { "sed",
7037     "-e", "/Widget\told, new;/i\\\n\
7038 #ifdef __cplusplus\\\n\
7039 \tWidget\told, c_new;\\\n\
7040 #else\n",
7041     "-e", "/Widget\told, new;/a\\\n\
7042 #endif\n",
7043     "-e", "s/Widget new,/Widget c_new,/g",
7044     (char*)NULL };
7045
7046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7047  *
7048  *  Description of X11_Sprintf fix
7049  */
7050 tSCC zX11_SprintfName[] =
7051      "x11_sprintf";
7052
7053 /*
7054  *  File name selection pattern
7055  */
7056 tSCC zX11_SprintfList[] =
7057   "|X11/Xmu.h|X11/Xmu/Xmu.h|";
7058 /*
7059  *  Machine/OS name selection pattern
7060  */
7061 #define apzX11_SprintfMachs (const char**)NULL
7062
7063 /*
7064  *  content selection pattern - do fix if pattern found
7065  */
7066 tSCC zX11_SprintfSelect0[] =
7067        "^extern char \\*\tsprintf\\(\\);$";
7068
7069 #define    X11_SPRINTF_TEST_CT  1
7070 static tTestDesc aX11_SprintfTests[] = {
7071   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
7072
7073 /*
7074  *  Fix Command Arguments for X11_Sprintf
7075  */
7076 static const char* apzX11_SprintfPatch[] = {
7077     "format",
7078     "#ifndef __STDC__\n\
7079 %0\n\
7080 #endif /* !defined __STDC__ */",
7081     (char*)NULL };
7082
7083
7084 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7085  *
7086  *  List of all fixes
7087  */
7088 #define REGEX_COUNT          207
7089 #define MACH_LIST_SIZE_LIMIT 261
7090 #define FIX_COUNT            177
7091
7092 /*
7093  *  Enumerate the fixes
7094  */
7095 typedef enum {
7096     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
7097     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
7098     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
7099     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
7100     AAB_SUN_MEMCPY_FIXIDX,
7101     AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
7102     AAB_ULTRIX_LIMITS_FIXIDX,
7103     AAB_ULTRIX_MEMORY_FIXIDX,
7104     AAB_ULTRIX_STRING_FIXIDX,
7105     AIX_PTHREAD_FIXIDX,
7106     AIX_SYSMACHINE_FIXIDX,
7107     AIX_SYSWAIT_FIXIDX,
7108     AIX_SYSWAIT_2_FIXIDX,
7109     AIX_VOLATILE_FIXIDX,
7110     ALPHA___ASSERT_FIXIDX,
7111     ALPHA___EXTERN_PREFIX_FIXIDX,
7112     ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
7113     ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
7114     ALPHA_ASSERT_FIXIDX,
7115     ALPHA_BAD_LVAL_FIXIDX,
7116     ALPHA_GETOPT_FIXIDX,
7117     ALPHA_PARENS_FIXIDX,
7118     ALPHA_PTHREAD_FIXIDX,
7119     ALPHA_PTHREAD_GCC_FIXIDX,
7120     ALPHA_PTHREAD_INIT_FIXIDX,
7121     ALPHA_SBRK_FIXIDX,
7122     ALPHA_WCHAR_FIXIDX,
7123     AVOID_BOOL_DEFINE_FIXIDX,
7124     AVOID_BOOL_TYPE_FIXIDX,
7125     AVOID_WCHAR_T_TYPE_FIXIDX,
7126     BAD_STRUCT_TERM_FIXIDX,
7127     BADQUOTE_FIXIDX,
7128     BROKEN_ASSERT_STDIO_FIXIDX,
7129     BROKEN_ASSERT_STDLIB_FIXIDX,
7130     BROKEN_CABS_FIXIDX,
7131     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
7132     CTRL_QUOTES_DEF_FIXIDX,
7133     CTRL_QUOTES_USE_FIXIDX,
7134     CXX_UNREADY_FIXIDX,
7135     DARWIN_GCC4_BREAKAGE_FIXIDX,
7136     DARWIN_PRIVATE_EXTERN_FIXIDX,
7137     DEC_INTERN_ASM_FIXIDX,
7138     DJGPP_WCHAR_H_FIXIDX,
7139     ECD_CURSOR_FIXIDX,
7140     EXCEPTION_STRUCTURE_FIXIDX,
7141     FREEBSD_GCC3_BREAKAGE_FIXIDX,
7142     FREEBSD_GCC4_BREAKAGE_FIXIDX,
7143     GNU_TYPES_FIXIDX,
7144     HP_INLINE_FIXIDX,
7145     HP_SYSFILE_FIXIDX,
7146     HPUX10_CPP_POW_INLINE_FIXIDX,
7147     HPUX11_CPP_POW_INLINE_FIXIDX,
7148     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
7149     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
7150     HPUX10_STDIO_DECLARATIONS_FIXIDX,
7151     HPUX11_ABS_FIXIDX,
7152     HPUX11_FABSF_FIXIDX,
7153     HPUX11_SIZE_T_FIXIDX,
7154     HPUX11_SNPRINTF_FIXIDX,
7155     HPUX11_UINT32_C_FIXIDX,
7156     HPUX11_VSNPRINTF_FIXIDX,
7157     HPUX8_BOGUS_INLINES_FIXIDX,
7158     HPUX_CTYPE_MACROS_FIXIDX,
7159     HPUX_LONG_DOUBLE_FIXIDX,
7160     HPUX_SYSTIME_FIXIDX,
7161     INT_ABORT_FREE_AND_EXIT_FIXIDX,
7162     IO_QUOTES_DEF_FIXIDX,
7163     IO_QUOTES_USE_FIXIDX,
7164     IP_MISSING_SEMI_FIXIDX,
7165     IRIX___RESTRICT_FIXIDX,
7166     IRIX___GENERIC1_FIXIDX,
7167     IRIX___GENERIC2_FIXIDX,
7168     IRIX_ASM_APOSTROPHE_FIXIDX,
7169     IRIX_LIMITS_CONST_FIXIDX,
7170     IRIX_SOCKLEN_T_FIXIDX,
7171     IRIX_STDIO_VA_LIST_FIXIDX,
7172     IRIX_WCSFTIME_FIXIDX,
7173     ISC_FMOD_FIXIDX,
7174     ISC_OMITS_WITH_STDC_FIXIDX,
7175     KANDR_CONCAT_FIXIDX,
7176     LIBC1_G_VA_LIST_FIXIDX,
7177     LIBC1_IFDEFD_MEMX_FIXIDX,
7178     LINUX_IA64_UCONTEXT_FIXIDX,
7179     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
7180     LYNXOS_MISSING_PUTENV_FIXIDX,
7181     MACHINE_ANSI_H_VA_LIST_FIXIDX,
7182     MACHINE_NAME_FIXIDX,
7183     MATH_EXCEPTION_FIXIDX,
7184     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
7185     NESTED_AUTH_DES_FIXIDX,
7186     NESTED_MOTOROLA_FIXIDX,
7187     NESTED_SYS_LIMITS_FIXIDX,
7188     NETBSD_EXTRA_SEMICOLON_FIXIDX,
7189     NEXT_MATH_PREFIX_FIXIDX,
7190     NEXT_TEMPLATE_FIXIDX,
7191     NEXT_VOLITILE_FIXIDX,
7192     NEXT_WAIT_UNION_FIXIDX,
7193     NODEENT_SYNTAX_FIXIDX,
7194     OBSTACK_LVALUE_CAST_FIXIDX,
7195     OSF_NAMESPACE_A_FIXIDX,
7196     OSF_NAMESPACE_C_FIXIDX,
7197     PTHREAD_PAGE_SIZE_FIXIDX,
7198     READ_RET_TYPE_FIXIDX,
7199     RPC_XDR_LVALUE_CAST_A_FIXIDX,
7200     RPC_XDR_LVALUE_CAST_B_FIXIDX,
7201     RS6000_DOUBLE_FIXIDX,
7202     RS6000_FCHMOD_FIXIDX,
7203     RS6000_PARAM_FIXIDX,
7204     SCO_MATH_FIXIDX,
7205     SCO_REGSET_FIXIDX,
7206     SCO_STATIC_FUNC_FIXIDX,
7207     SCO_UTIME_FIXIDX,
7208     SOLARIS_MUTEX_INIT_1_FIXIDX,
7209     SOLARIS_MUTEX_INIT_2_FIXIDX,
7210     SOLARIS_SOCKET_FIXIDX,
7211     SOLARIS_STDIO_TAG_FIXIDX,
7212     SOLARIS_UNISTD_FIXIDX,
7213     SOLARIS_WIDEC_FIXIDX,
7214     STATSSWTCH_FIXIDX,
7215     STDIO_STDARG_H_FIXIDX,
7216     STDIO_VA_LIST_FIXIDX,
7217     STDIO_VA_LIST_CLIENTS_FIXIDX,
7218     STRICT_ANSI_NOT_FIXIDX,
7219     STRICT_ANSI_NOT_CTD_FIXIDX,
7220     STRICT_ANSI_ONLY_FIXIDX,
7221     STRUCT_FILE_FIXIDX,
7222     STRUCT_SOCKADDR_FIXIDX,
7223     SUN_AUTH_PROTO_FIXIDX,
7224     SUN_BOGUS_IFDEF_FIXIDX,
7225     SUN_CATMACRO_FIXIDX,
7226     SUN_MALLOC_FIXIDX,
7227     SUN_RUSERS_SEMI_FIXIDX,
7228     SUN_SIGNAL_FIXIDX,
7229     SUNOS_STRLEN_FIXIDX,
7230     SVR4_DISABLE_OPT_FIXIDX,
7231     SVR4_GETCWD_FIXIDX,
7232     SVR4_KRNL_FIXIDX,
7233     SVR4_PROFIL_FIXIDX,
7234     SVR4_SIGHANDLER_TYPE_FIXIDX,
7235     SVR4_UNDECLARED_GETRNGE_FIXIDX,
7236     SYSV68_STRING_FIXIDX,
7237     SYSZ_STDLIB_FOR_SUN_FIXIDX,
7238     THREAD_KEYWORD_FIXIDX,
7239     TINFO_CPLUSPLUS_FIXIDX,
7240     ULTRIX_ATEXIT_PARAM_FIXIDX,
7241     ULTRIX_ATOF_PARAM_FIXIDX,
7242     ULTRIX_CONST_FIXIDX,
7243     ULTRIX_CONST2_FIXIDX,
7244     ULTRIX_CONST3_FIXIDX,
7245     ULTRIX_FIX_FIXPROTO_FIXIDX,
7246     ULTRIX_IFDEF_FIXIDX,
7247     ULTRIX_LOCALE_FIXIDX,
7248     ULTRIX_MATH_IFDEF_FIXIDX,
7249     ULTRIX_NESTED_IOCTL_FIXIDX,
7250     ULTRIX_NESTED_SVC_FIXIDX,
7251     ULTRIX_STAT_FIXIDX,
7252     ULTRIX_STATIC_FIXIDX,
7253     ULTRIX_STDLIB_FIXIDX,
7254     ULTRIX_STRINGS_FIXIDX,
7255     ULTRIX_STRINGS2_FIXIDX,
7256     ULTRIX_SYS_TIME_FIXIDX,
7257     ULTRIX_UNISTD_FIXIDX,
7258     UNICOSMK_RESTRICT_FIXIDX,
7259     UW7_BYTEORDER_FIX_FIXIDX,
7260     VA_I960_MACRO_FIXIDX,
7261     VOID_NULL_FIXIDX,
7262     VXWORKS_GCC_PROBLEM_FIXIDX,
7263     VXWORKS_NEEDS_VXTYPES_FIXIDX,
7264     VXWORKS_NEEDS_VXWORKS_FIXIDX,
7265     VXWORKS_TIME_FIXIDX,
7266     WINDISS_MATH1_FIXIDX,
7267     WINDISS_MATH2_FIXIDX,
7268     WINDISS_VALIST_FIXIDX,
7269     X11_CLASS_FIXIDX,
7270     X11_CLASS_USAGE_FIXIDX,
7271     X11_NEW_FIXIDX,
7272     X11_SPRINTF_FIXIDX
7273 } t_fixinc_idx;
7274
7275 tFixDesc fixDescList[ FIX_COUNT ] = {
7276   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
7277      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
7278      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7279      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
7280
7281   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
7282      apzAab_Fd_Zero_Gnu_Types_HMachs,
7283      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7284      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
7285
7286   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
7287      apzAab_Fd_Zero_Selectbits_HMachs,
7288      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7289      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
7290
7291   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
7292      apzAab_Solaris_Sys_Varargs_HMachs,
7293      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7294      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
7295
7296   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
7297      apzAab_Sun_MemcpyMachs,
7298      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7299      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
7300
7301   {  zAab_Ultrix_Ansi_CompatName,    zAab_Ultrix_Ansi_CompatList,
7302      apzAab_Ultrix_Ansi_CompatMachs,
7303      AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7304      aAab_Ultrix_Ansi_CompatTests,   apzAab_Ultrix_Ansi_CompatPatch, 0 },
7305
7306   {  zAab_Ultrix_LimitsName,    zAab_Ultrix_LimitsList,
7307      apzAab_Ultrix_LimitsMachs,
7308      AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7309      aAab_Ultrix_LimitsTests,   apzAab_Ultrix_LimitsPatch, 0 },
7310
7311   {  zAab_Ultrix_MemoryName,    zAab_Ultrix_MemoryList,
7312      apzAab_Ultrix_MemoryMachs,
7313      AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7314      aAab_Ultrix_MemoryTests,   apzAab_Ultrix_MemoryPatch, 0 },
7315
7316   {  zAab_Ultrix_StringName,    zAab_Ultrix_StringList,
7317      apzAab_Ultrix_StringMachs,
7318      AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7319      aAab_Ultrix_StringTests,   apzAab_Ultrix_StringPatch, 0 },
7320
7321   {  zAix_PthreadName,    zAix_PthreadList,
7322      apzAix_PthreadMachs,
7323      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7324      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
7325
7326   {  zAix_SysmachineName,    zAix_SysmachineList,
7327      apzAix_SysmachineMachs,
7328      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7329      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
7330
7331   {  zAix_SyswaitName,    zAix_SyswaitList,
7332      apzAix_SyswaitMachs,
7333      AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7334      aAix_SyswaitTests,   apzAix_SyswaitPatch, 0 },
7335
7336   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
7337      apzAix_Syswait_2Machs,
7338      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7339      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
7340
7341   {  zAix_VolatileName,    zAix_VolatileList,
7342      apzAix_VolatileMachs,
7343      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7344      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
7345
7346   {  zAlpha___AssertName,    zAlpha___AssertList,
7347      apzAlpha___AssertMachs,
7348      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7349      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
7350
7351   {  zAlpha___Extern_PrefixName,    zAlpha___Extern_PrefixList,
7352      apzAlpha___Extern_PrefixMachs,
7353      ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7354      aAlpha___Extern_PrefixTests,   apzAlpha___Extern_PrefixPatch, 0 },
7355
7356   {  zAlpha___Extern_Prefix_StandardsName,    zAlpha___Extern_Prefix_StandardsList,
7357      apzAlpha___Extern_Prefix_StandardsMachs,
7358      ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7359      aAlpha___Extern_Prefix_StandardsTests,   apzAlpha___Extern_Prefix_StandardsPatch, 0 },
7360
7361   {  zAlpha___Extern_Prefix_Sys_StatName,    zAlpha___Extern_Prefix_Sys_StatList,
7362      apzAlpha___Extern_Prefix_Sys_StatMachs,
7363      ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7364      aAlpha___Extern_Prefix_Sys_StatTests,   apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
7365
7366   {  zAlpha_AssertName,    zAlpha_AssertList,
7367      apzAlpha_AssertMachs,
7368      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7369      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
7370
7371   {  zAlpha_Bad_LvalName,    zAlpha_Bad_LvalList,
7372      apzAlpha_Bad_LvalMachs,
7373      ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
7374      aAlpha_Bad_LvalTests,   apzAlpha_Bad_LvalPatch, 0 },
7375
7376   {  zAlpha_GetoptName,    zAlpha_GetoptList,
7377      apzAlpha_GetoptMachs,
7378      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7379      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
7380
7381   {  zAlpha_ParensName,    zAlpha_ParensList,
7382      apzAlpha_ParensMachs,
7383      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7384      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
7385
7386   {  zAlpha_PthreadName,    zAlpha_PthreadList,
7387      apzAlpha_PthreadMachs,
7388      ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7389      aAlpha_PthreadTests,   apzAlpha_PthreadPatch, 0 },
7390
7391   {  zAlpha_Pthread_GccName,    zAlpha_Pthread_GccList,
7392      apzAlpha_Pthread_GccMachs,
7393      ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7394      aAlpha_Pthread_GccTests,   apzAlpha_Pthread_GccPatch, 0 },
7395
7396   {  zAlpha_Pthread_InitName,    zAlpha_Pthread_InitList,
7397      apzAlpha_Pthread_InitMachs,
7398      ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
7399      aAlpha_Pthread_InitTests,   apzAlpha_Pthread_InitPatch, 0 },
7400
7401   {  zAlpha_SbrkName,    zAlpha_SbrkList,
7402      apzAlpha_SbrkMachs,
7403      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7404      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
7405
7406   {  zAlpha_WcharName,    zAlpha_WcharList,
7407      apzAlpha_WcharMachs,
7408      ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
7409      aAlpha_WcharTests,   apzAlpha_WcharPatch, 0 },
7410
7411   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
7412      apzAvoid_Bool_DefineMachs,
7413      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7414      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
7415
7416   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
7417      apzAvoid_Bool_TypeMachs,
7418      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7419      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
7420
7421   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
7422      apzAvoid_Wchar_T_TypeMachs,
7423      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7424      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
7425
7426   {  zBad_Struct_TermName,    zBad_Struct_TermList,
7427      apzBad_Struct_TermMachs,
7428      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7429      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
7430
7431   {  zBadquoteName,    zBadquoteList,
7432      apzBadquoteMachs,
7433      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7434      aBadquoteTests,   apzBadquotePatch, 0 },
7435
7436   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
7437      apzBroken_Assert_StdioMachs,
7438      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7439      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
7440
7441   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
7442      apzBroken_Assert_StdlibMachs,
7443      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7444      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
7445
7446   {  zBroken_CabsName,    zBroken_CabsList,
7447      apzBroken_CabsMachs,
7448      BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7449      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
7450
7451   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
7452      apzBsd_Stdio_Attrs_ConflictMachs,
7453      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7454      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
7455
7456   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
7457      apzCtrl_Quotes_DefMachs,
7458      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7459      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
7460
7461   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
7462      apzCtrl_Quotes_UseMachs,
7463      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7464      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
7465
7466   {  zCxx_UnreadyName,    zCxx_UnreadyList,
7467      apzCxx_UnreadyMachs,
7468      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7469      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
7470
7471   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
7472      apzDarwin_Gcc4_BreakageMachs,
7473      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7474      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
7475
7476   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
7477      apzDarwin_Private_ExternMachs,
7478      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7479      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
7480
7481   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
7482      apzDec_Intern_AsmMachs,
7483      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
7484      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
7485
7486   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
7487      apzDjgpp_Wchar_HMachs,
7488      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7489      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
7490
7491   {  zEcd_CursorName,    zEcd_CursorList,
7492      apzEcd_CursorMachs,
7493      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7494      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
7495
7496   {  zException_StructureName,    zException_StructureList,
7497      apzException_StructureMachs,
7498      EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7499      aException_StructureTests,   apzException_StructurePatch, 0 },
7500
7501   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
7502      apzFreebsd_Gcc3_BreakageMachs,
7503      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7504      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
7505
7506   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
7507      apzFreebsd_Gcc4_BreakageMachs,
7508      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7509      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
7510
7511   {  zGnu_TypesName,    zGnu_TypesList,
7512      apzGnu_TypesMachs,
7513      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
7514      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
7515
7516   {  zHp_InlineName,    zHp_InlineList,
7517      apzHp_InlineMachs,
7518      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7519      aHp_InlineTests,   apzHp_InlinePatch, 0 },
7520
7521   {  zHp_SysfileName,    zHp_SysfileList,
7522      apzHp_SysfileMachs,
7523      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7524      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
7525
7526   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
7527      apzHpux10_Cpp_Pow_InlineMachs,
7528      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7529      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
7530
7531   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
7532      apzHpux11_Cpp_Pow_InlineMachs,
7533      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7534      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
7535
7536   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
7537      apzHpux10_Ctype_Declarations1Machs,
7538      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7539      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
7540
7541   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
7542      apzHpux10_Ctype_Declarations2Machs,
7543      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7544      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
7545
7546   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
7547      apzHpux10_Stdio_DeclarationsMachs,
7548      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7549      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
7550
7551   {  zHpux11_AbsName,    zHpux11_AbsList,
7552      apzHpux11_AbsMachs,
7553      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7554      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
7555
7556   {  zHpux11_FabsfName,    zHpux11_FabsfList,
7557      apzHpux11_FabsfMachs,
7558      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7559      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
7560
7561   {  zHpux11_Size_TName,    zHpux11_Size_TList,
7562      apzHpux11_Size_TMachs,
7563      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7564      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
7565
7566   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
7567      apzHpux11_SnprintfMachs,
7568      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7569      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
7570
7571   {  zHpux11_Uint32_CName,    zHpux11_Uint32_CList,
7572      apzHpux11_Uint32_CMachs,
7573      HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7574      aHpux11_Uint32_CTests,   apzHpux11_Uint32_CPatch, 0 },
7575
7576   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
7577      apzHpux11_VsnprintfMachs,
7578      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7579      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
7580
7581   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
7582      apzHpux8_Bogus_InlinesMachs,
7583      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
7584      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
7585
7586   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
7587      apzHpux_Ctype_MacrosMachs,
7588      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7589      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
7590
7591   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
7592      apzHpux_Long_DoubleMachs,
7593      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
7594      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
7595
7596   {  zHpux_SystimeName,    zHpux_SystimeList,
7597      apzHpux_SystimeMachs,
7598      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7599      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
7600
7601   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
7602      apzInt_Abort_Free_And_ExitMachs,
7603      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7604      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
7605
7606   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
7607      apzIo_Quotes_DefMachs,
7608      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7609      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
7610
7611   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
7612      apzIo_Quotes_UseMachs,
7613      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7614      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
7615
7616   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
7617      apzIp_Missing_SemiMachs,
7618      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
7619      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
7620
7621   {  zIrix___RestrictName,    zIrix___RestrictList,
7622      apzIrix___RestrictMachs,
7623      IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7624      aIrix___RestrictTests,   apzIrix___RestrictPatch, 0 },
7625
7626   {  zIrix___Generic1Name,    zIrix___Generic1List,
7627      apzIrix___Generic1Machs,
7628      IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7629      aIrix___Generic1Tests,   apzIrix___Generic1Patch, 0 },
7630
7631   {  zIrix___Generic2Name,    zIrix___Generic2List,
7632      apzIrix___Generic2Machs,
7633      IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7634      aIrix___Generic2Tests,   apzIrix___Generic2Patch, 0 },
7635
7636   {  zIrix_Asm_ApostropheName,    zIrix_Asm_ApostropheList,
7637      apzIrix_Asm_ApostropheMachs,
7638      IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7639      aIrix_Asm_ApostropheTests,   apzIrix_Asm_ApostrophePatch, 0 },
7640
7641   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
7642      apzIrix_Limits_ConstMachs,
7643      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7644      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
7645
7646   {  zIrix_Socklen_TName,    zIrix_Socklen_TList,
7647      apzIrix_Socklen_TMachs,
7648      IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7649      aIrix_Socklen_TTests,   apzIrix_Socklen_TPatch, 0 },
7650
7651   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
7652      apzIrix_Stdio_Va_ListMachs,
7653      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7654      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
7655
7656   {  zIrix_WcsftimeName,    zIrix_WcsftimeList,
7657      apzIrix_WcsftimeMachs,
7658      IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7659      aIrix_WcsftimeTests,   apzIrix_WcsftimePatch, 0 },
7660
7661   {  zIsc_FmodName,    zIsc_FmodList,
7662      apzIsc_FmodMachs,
7663      ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7664      aIsc_FmodTests,   apzIsc_FmodPatch, 0 },
7665
7666   {  zIsc_Omits_With_StdcName,    zIsc_Omits_With_StdcList,
7667      apzIsc_Omits_With_StdcMachs,
7668      ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7669      aIsc_Omits_With_StdcTests,   apzIsc_Omits_With_StdcPatch, 0 },
7670
7671   {  zKandr_ConcatName,    zKandr_ConcatList,
7672      apzKandr_ConcatMachs,
7673      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7674      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
7675
7676   {  zLibc1_G_Va_ListName,    zLibc1_G_Va_ListList,
7677      apzLibc1_G_Va_ListMachs,
7678      LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7679      aLibc1_G_Va_ListTests,   apzLibc1_G_Va_ListPatch, 0 },
7680
7681   {  zLibc1_Ifdefd_MemxName,    zLibc1_Ifdefd_MemxList,
7682      apzLibc1_Ifdefd_MemxMachs,
7683      LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7684      aLibc1_Ifdefd_MemxTests,   apzLibc1_Ifdefd_MemxPatch, 0 },
7685
7686   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
7687      apzLinux_Ia64_UcontextMachs,
7688      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7689      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
7690
7691   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
7692      apzLynxos_No_Warning_In_Sys_Time_HMachs,
7693      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7694      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
7695
7696   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
7697      apzLynxos_Missing_PutenvMachs,
7698      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7699      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
7700
7701   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
7702      apzMachine_Ansi_H_Va_ListMachs,
7703      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7704      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
7705
7706   {  zMachine_NameName,    zMachine_NameList,
7707      apzMachine_NameMachs,
7708      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7709      aMachine_NameTests,   apzMachine_NamePatch, 0 },
7710
7711   {  zMath_ExceptionName,    zMath_ExceptionList,
7712      apzMath_ExceptionMachs,
7713      MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7714      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
7715
7716   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
7717      apzMath_Huge_Val_From_Dbl_MaxMachs,
7718      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
7719      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
7720
7721   {  zNested_Auth_DesName,    zNested_Auth_DesList,
7722      apzNested_Auth_DesMachs,
7723      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7724      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
7725
7726   {  zNested_MotorolaName,    zNested_MotorolaList,
7727      apzNested_MotorolaMachs,
7728      NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
7729      aNested_MotorolaTests,   apzNested_MotorolaPatch, 0 },
7730
7731   {  zNested_Sys_LimitsName,    zNested_Sys_LimitsList,
7732      apzNested_Sys_LimitsMachs,
7733      NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
7734      aNested_Sys_LimitsTests,   apzNested_Sys_LimitsPatch, 0 },
7735
7736   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
7737      apzNetbsd_Extra_SemicolonMachs,
7738      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7739      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
7740
7741   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
7742      apzNext_Math_PrefixMachs,
7743      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7744      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
7745
7746   {  zNext_TemplateName,    zNext_TemplateList,
7747      apzNext_TemplateMachs,
7748      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7749      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
7750
7751   {  zNext_VolitileName,    zNext_VolitileList,
7752      apzNext_VolitileMachs,
7753      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7754      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
7755
7756   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
7757      apzNext_Wait_UnionMachs,
7758      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7759      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
7760
7761   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
7762      apzNodeent_SyntaxMachs,
7763      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7764      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
7765
7766   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
7767      apzObstack_Lvalue_CastMachs,
7768      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7769      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
7770
7771   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
7772      apzOsf_Namespace_AMachs,
7773      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7774      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
7775
7776   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
7777      apzOsf_Namespace_CMachs,
7778      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7779      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
7780
7781   {  zPthread_Page_SizeName,    zPthread_Page_SizeList,
7782      apzPthread_Page_SizeMachs,
7783      PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7784      aPthread_Page_SizeTests,   apzPthread_Page_SizePatch, 0 },
7785
7786   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
7787      apzRead_Ret_TypeMachs,
7788      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7789      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
7790
7791   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
7792      apzRpc_Xdr_Lvalue_Cast_AMachs,
7793      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7794      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
7795
7796   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
7797      apzRpc_Xdr_Lvalue_Cast_BMachs,
7798      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7799      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
7800
7801   {  zRs6000_DoubleName,    zRs6000_DoubleList,
7802      apzRs6000_DoubleMachs,
7803      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7804      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
7805
7806   {  zRs6000_FchmodName,    zRs6000_FchmodList,
7807      apzRs6000_FchmodMachs,
7808      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7809      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
7810
7811   {  zRs6000_ParamName,    zRs6000_ParamList,
7812      apzRs6000_ParamMachs,
7813      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7814      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
7815
7816   {  zSco_MathName,    zSco_MathList,
7817      apzSco_MathMachs,
7818      SCO_MATH_TEST_CT, FD_MACH_ONLY,
7819      aSco_MathTests,   apzSco_MathPatch, 0 },
7820
7821   {  zSco_RegsetName,    zSco_RegsetList,
7822      apzSco_RegsetMachs,
7823      SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7824      aSco_RegsetTests,   apzSco_RegsetPatch, 0 },
7825
7826   {  zSco_Static_FuncName,    zSco_Static_FuncList,
7827      apzSco_Static_FuncMachs,
7828      SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
7829      aSco_Static_FuncTests,   apzSco_Static_FuncPatch, 0 },
7830
7831   {  zSco_UtimeName,    zSco_UtimeList,
7832      apzSco_UtimeMachs,
7833      SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7834      aSco_UtimeTests,   apzSco_UtimePatch, 0 },
7835
7836   {  zSolaris_Mutex_Init_1Name,    zSolaris_Mutex_Init_1List,
7837      apzSolaris_Mutex_Init_1Machs,
7838      SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
7839      aSolaris_Mutex_Init_1Tests,   apzSolaris_Mutex_Init_1Patch, 0 },
7840
7841   {  zSolaris_Mutex_Init_2Name,    zSolaris_Mutex_Init_2List,
7842      apzSolaris_Mutex_Init_2Machs,
7843      SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7844      aSolaris_Mutex_Init_2Tests,   apzSolaris_Mutex_Init_2Patch, 0 },
7845
7846   {  zSolaris_SocketName,    zSolaris_SocketList,
7847      apzSolaris_SocketMachs,
7848      SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7849      aSolaris_SocketTests,   apzSolaris_SocketPatch, 0 },
7850
7851   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
7852      apzSolaris_Stdio_TagMachs,
7853      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
7854      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
7855
7856   {  zSolaris_UnistdName,    zSolaris_UnistdList,
7857      apzSolaris_UnistdMachs,
7858      SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7859      aSolaris_UnistdTests,   apzSolaris_UnistdPatch, 0 },
7860
7861   {  zSolaris_WidecName,    zSolaris_WidecList,
7862      apzSolaris_WidecMachs,
7863      SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7864      aSolaris_WidecTests,   apzSolaris_WidecPatch, 0 },
7865
7866   {  zStatsswtchName,    zStatsswtchList,
7867      apzStatsswtchMachs,
7868      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7869      aStatsswtchTests,   apzStatsswtchPatch, 0 },
7870
7871   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
7872      apzStdio_Stdarg_HMachs,
7873      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
7874      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
7875
7876   {  zStdio_Va_ListName,    zStdio_Va_ListList,
7877      apzStdio_Va_ListMachs,
7878      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
7879      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
7880
7881   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
7882      apzStdio_Va_List_ClientsMachs,
7883      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
7884      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
7885
7886   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
7887      apzStrict_Ansi_NotMachs,
7888      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7889      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
7890
7891   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
7892      apzStrict_Ansi_Not_CtdMachs,
7893      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7894      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
7895
7896   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
7897      apzStrict_Ansi_OnlyMachs,
7898      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7899      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
7900
7901   {  zStruct_FileName,    zStruct_FileList,
7902      apzStruct_FileMachs,
7903      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7904      aStruct_FileTests,   apzStruct_FilePatch, 0 },
7905
7906   {  zStruct_SockaddrName,    zStruct_SockaddrList,
7907      apzStruct_SockaddrMachs,
7908      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7909      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
7910
7911   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
7912      apzSun_Auth_ProtoMachs,
7913      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7914      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
7915
7916   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
7917      apzSun_Bogus_IfdefMachs,
7918      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7919      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
7920
7921   {  zSun_CatmacroName,    zSun_CatmacroList,
7922      apzSun_CatmacroMachs,
7923      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7924      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
7925
7926   {  zSun_MallocName,    zSun_MallocList,
7927      apzSun_MallocMachs,
7928      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
7929      aSun_MallocTests,   apzSun_MallocPatch, 0 },
7930
7931   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
7932      apzSun_Rusers_SemiMachs,
7933      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
7934      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
7935
7936   {  zSun_SignalName,    zSun_SignalList,
7937      apzSun_SignalMachs,
7938      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7939      aSun_SignalTests,   apzSun_SignalPatch, 0 },
7940
7941   {  zSunos_StrlenName,    zSunos_StrlenList,
7942      apzSunos_StrlenMachs,
7943      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7944      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
7945
7946   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
7947      apzSvr4_Disable_OptMachs,
7948      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
7949      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
7950
7951   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
7952      apzSvr4_GetcwdMachs,
7953      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7954      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
7955
7956   {  zSvr4_KrnlName,    zSvr4_KrnlList,
7957      apzSvr4_KrnlMachs,
7958      SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7959      aSvr4_KrnlTests,   apzSvr4_KrnlPatch, 0 },
7960
7961   {  zSvr4_ProfilName,    zSvr4_ProfilList,
7962      apzSvr4_ProfilMachs,
7963      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7964      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
7965
7966   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
7967      apzSvr4_Sighandler_TypeMachs,
7968      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7969      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
7970
7971   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
7972      apzSvr4_Undeclared_GetrngeMachs,
7973      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7974      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
7975
7976   {  zSysv68_StringName,    zSysv68_StringList,
7977      apzSysv68_StringMachs,
7978      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
7979      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
7980
7981   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
7982      apzSysz_Stdlib_For_SunMachs,
7983      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7984      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
7985
7986   {  zThread_KeywordName,    zThread_KeywordList,
7987      apzThread_KeywordMachs,
7988      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7989      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
7990
7991   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
7992      apzTinfo_CplusplusMachs,
7993      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7994      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
7995
7996   {  zUltrix_Atexit_ParamName,    zUltrix_Atexit_ParamList,
7997      apzUltrix_Atexit_ParamMachs,
7998      ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7999      aUltrix_Atexit_ParamTests,   apzUltrix_Atexit_ParamPatch, 0 },
8000
8001   {  zUltrix_Atof_ParamName,    zUltrix_Atof_ParamList,
8002      apzUltrix_Atof_ParamMachs,
8003      ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8004      aUltrix_Atof_ParamTests,   apzUltrix_Atof_ParamPatch, 0 },
8005
8006   {  zUltrix_ConstName,    zUltrix_ConstList,
8007      apzUltrix_ConstMachs,
8008      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8009      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
8010
8011   {  zUltrix_Const2Name,    zUltrix_Const2List,
8012      apzUltrix_Const2Machs,
8013      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8014      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
8015
8016   {  zUltrix_Const3Name,    zUltrix_Const3List,
8017      apzUltrix_Const3Machs,
8018      ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8019      aUltrix_Const3Tests,   apzUltrix_Const3Patch, 0 },
8020
8021   {  zUltrix_Fix_FixprotoName,    zUltrix_Fix_FixprotoList,
8022      apzUltrix_Fix_FixprotoMachs,
8023      ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8024      aUltrix_Fix_FixprotoTests,   apzUltrix_Fix_FixprotoPatch, 0 },
8025
8026   {  zUltrix_IfdefName,    zUltrix_IfdefList,
8027      apzUltrix_IfdefMachs,
8028      ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8029      aUltrix_IfdefTests,   apzUltrix_IfdefPatch, 0 },
8030
8031   {  zUltrix_LocaleName,    zUltrix_LocaleList,
8032      apzUltrix_LocaleMachs,
8033      ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8034      aUltrix_LocaleTests,   apzUltrix_LocalePatch, 0 },
8035
8036   {  zUltrix_Math_IfdefName,    zUltrix_Math_IfdefList,
8037      apzUltrix_Math_IfdefMachs,
8038      ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8039      aUltrix_Math_IfdefTests,   apzUltrix_Math_IfdefPatch, 0 },
8040
8041   {  zUltrix_Nested_IoctlName,    zUltrix_Nested_IoctlList,
8042      apzUltrix_Nested_IoctlMachs,
8043      ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
8044      aUltrix_Nested_IoctlTests,   apzUltrix_Nested_IoctlPatch, 0 },
8045
8046   {  zUltrix_Nested_SvcName,    zUltrix_Nested_SvcList,
8047      apzUltrix_Nested_SvcMachs,
8048      ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
8049      aUltrix_Nested_SvcTests,   apzUltrix_Nested_SvcPatch, 0 },
8050
8051   {  zUltrix_StatName,    zUltrix_StatList,
8052      apzUltrix_StatMachs,
8053      ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
8054      aUltrix_StatTests,   apzUltrix_StatPatch, 0 },
8055
8056   {  zUltrix_StaticName,    zUltrix_StaticList,
8057      apzUltrix_StaticMachs,
8058      ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
8059      aUltrix_StaticTests,   apzUltrix_StaticPatch, 0 },
8060
8061   {  zUltrix_StdlibName,    zUltrix_StdlibList,
8062      apzUltrix_StdlibMachs,
8063      ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
8064      aUltrix_StdlibTests,   apzUltrix_StdlibPatch, 0 },
8065
8066   {  zUltrix_StringsName,    zUltrix_StringsList,
8067      apzUltrix_StringsMachs,
8068      ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8069      aUltrix_StringsTests,   apzUltrix_StringsPatch, 0 },
8070
8071   {  zUltrix_Strings2Name,    zUltrix_Strings2List,
8072      apzUltrix_Strings2Machs,
8073      ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
8074      aUltrix_Strings2Tests,   apzUltrix_Strings2Patch, 0 },
8075
8076   {  zUltrix_Sys_TimeName,    zUltrix_Sys_TimeList,
8077      apzUltrix_Sys_TimeMachs,
8078      ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
8079      aUltrix_Sys_TimeTests,   apzUltrix_Sys_TimePatch, 0 },
8080
8081   {  zUltrix_UnistdName,    zUltrix_UnistdList,
8082      apzUltrix_UnistdMachs,
8083      ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
8084      aUltrix_UnistdTests,   apzUltrix_UnistdPatch, 0 },
8085
8086   {  zUnicosmk_RestrictName,    zUnicosmk_RestrictList,
8087      apzUnicosmk_RestrictMachs,
8088      UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8089      aUnicosmk_RestrictTests,   apzUnicosmk_RestrictPatch, 0 },
8090
8091   {  zUw7_Byteorder_FixName,    zUw7_Byteorder_FixList,
8092      apzUw7_Byteorder_FixMachs,
8093      UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8094      aUw7_Byteorder_FixTests,   apzUw7_Byteorder_FixPatch, 0 },
8095
8096   {  zVa_I960_MacroName,    zVa_I960_MacroList,
8097      apzVa_I960_MacroMachs,
8098      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8099      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
8100
8101   {  zVoid_NullName,    zVoid_NullList,
8102      apzVoid_NullMachs,
8103      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8104      aVoid_NullTests,   apzVoid_NullPatch, 0 },
8105
8106   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
8107      apzVxworks_Gcc_ProblemMachs,
8108      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
8109      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
8110
8111   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
8112      apzVxworks_Needs_VxtypesMachs,
8113      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8114      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
8115
8116   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
8117      apzVxworks_Needs_VxworksMachs,
8118      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
8119      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
8120
8121   {  zVxworks_TimeName,    zVxworks_TimeList,
8122      apzVxworks_TimeMachs,
8123      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8124      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
8125
8126   {  zWindiss_Math1Name,    zWindiss_Math1List,
8127      apzWindiss_Math1Machs,
8128      WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
8129      aWindiss_Math1Tests,   apzWindiss_Math1Patch, 0 },
8130
8131   {  zWindiss_Math2Name,    zWindiss_Math2List,
8132      apzWindiss_Math2Machs,
8133      WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
8134      aWindiss_Math2Tests,   apzWindiss_Math2Patch, 0 },
8135
8136   {  zWindiss_ValistName,    zWindiss_ValistList,
8137      apzWindiss_ValistMachs,
8138      WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
8139      aWindiss_ValistTests,   apzWindiss_ValistPatch, 0 },
8140
8141   {  zX11_ClassName,    zX11_ClassList,
8142      apzX11_ClassMachs,
8143      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8144      aX11_ClassTests,   apzX11_ClassPatch, 0 },
8145
8146   {  zX11_Class_UsageName,    zX11_Class_UsageList,
8147      apzX11_Class_UsageMachs,
8148      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8149      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
8150
8151   {  zX11_NewName,    zX11_NewList,
8152      apzX11_NewMachs,
8153      X11_NEW_TEST_CT, FD_MACH_ONLY,
8154      aX11_NewTests,   apzX11_NewPatch, 0 },
8155
8156   {  zX11_SprintfName,    zX11_SprintfList,
8157      apzX11_SprintfMachs,
8158      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8159      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }
8160 };