OSDN Git Service

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