OSDN Git Service

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