OSDN Git Service

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