OSDN Git Service

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