OSDN Git Service

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