OSDN Git Service

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