* doc/contrib.texi (Contributors): Add gfortran contributors and
[official-gcc.git] / gcc / fixinc / fixincl.x
bloba1b650e5dc6c37d69864929288b1457345481f55
1 /*  -*- buffer-read-only: t -*- vi: set ro:
2  * 
3  * DO NOT EDIT THIS FILE   (fixincl.x)
4  * 
5  * It has been AutoGen-ed  Monday May  3, 2004 at 05:17:48 PM MEST
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT CVS-MERGE THIS FILE, EITHER Mon May  3 17:17:49 MEST 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 175 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  */
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";
51  *  File name selection pattern
52  */
53 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
54   "|asm/posix_types.h|";
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 };
63  *  content bypass pattern - skip fix if pattern found
64  */
65 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
66        "} while";
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 }, };
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 };
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";
104  *  File name selection pattern
105  */
106 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
107   "|gnu/types.h|";
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
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 };
140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
142  *  Description of Aab_Fd_Zero_Selectbits_H fix
143  */
144 tSCC zAab_Fd_Zero_Selectbits_HName[] =
145      "AAB_fd_zero_selectbits_h";
148  *  File name selection pattern
149  */
150 tSCC zAab_Fd_Zero_Selectbits_HList[] =
151   "|selectbits.h|";
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
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 };
188 /* * * * * * * * * * * * * * * * * * * * * * * * * *
190  *  Description of Aab_Solaris_Sys_Varargs_H fix
191  */
192 tSCC zAab_Solaris_Sys_Varargs_HName[] =
193      "AAB_solaris_sys_varargs_h";
196  *  File name selection pattern
197  */
198 tSCC zAab_Solaris_Sys_Varargs_HList[] =
199   "|sys/varargs.h|";
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
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 };
220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
222  *  Description of Aab_Sun_Memcpy fix
223  */
224 tSCC zAab_Sun_MemcpyName[] =
225      "AAB_sun_memcpy";
228  *  File name selection pattern
229  */
230 tSCC zAab_Sun_MemcpyList[] =
231   "|memory.h|";
233  *  Machine/OS name selection pattern
234  */
235 #define apzAab_Sun_MemcpyMachs (const char**)NULL
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)\\*/";
243 #define    AAB_SUN_MEMCPY_TEST_CT  1
244 static tTestDesc aAab_Sun_MemcpyTests[] = {
245   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
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 };
412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
414  *  Description of Aab_Ultrix_Ansi_Compat fix
415  */
416 tSCC zAab_Ultrix_Ansi_CompatName[] =
417      "AAB_ultrix_ansi_compat";
420  *  File name selection pattern
421  */
422 tSCC zAab_Ultrix_Ansi_CompatList[] =
423   "|ansi_compat.h|";
425  *  Machine/OS name selection pattern
426  */
427 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
430  *  content selection pattern - do fix if pattern found
431  */
432 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
433        "ULTRIX";
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 }, };
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 };
446 /* * * * * * * * * * * * * * * * * * * * * * * * * *
448  *  Description of Aab_Ultrix_Limits fix
449  */
450 tSCC zAab_Ultrix_LimitsName[] =
451      "AAB_ultrix_limits";
454  *  File name selection pattern
455  */
456 tSCC zAab_Ultrix_LimitsList[] =
457   "|limits.h|";
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
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 };
477 /* * * * * * * * * * * * * * * * * * * * * * * * * *
479  *  Description of Aab_Ultrix_Memory fix
480  */
481 tSCC zAab_Ultrix_MemoryName[] =
482      "AAB_ultrix_memory";
485  *  File name selection pattern
486  */
487 tSCC zAab_Ultrix_MemoryList[] =
488   "|memory.h|";
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
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 };
508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
510  *  Description of Aab_Ultrix_String fix
511  */
512 tSCC zAab_Ultrix_StringName[] =
513      "AAB_ultrix_string";
516  *  File name selection pattern
517  */
518 tSCC zAab_Ultrix_StringList[] =
519   "|string.h|";
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
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 };
539 /* * * * * * * * * * * * * * * * * * * * * * * * * *
541  *  Description of Aix_Pthread fix
542  */
543 tSCC zAix_PthreadName[] =
544      "aix_pthread";
547  *  File name selection pattern
548  */
549 tSCC zAix_PthreadList[] =
550   "|pthread.h|";
552  *  Machine/OS name selection pattern
553  */
554 #define apzAix_PthreadMachs (const char**)NULL
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 (])";
564 #define    AIX_PTHREAD_TEST_CT  1
565 static tTestDesc aAix_PthreadTests[] = {
566   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
569  *  Fix Command Arguments for Aix_Pthread
570  */
571 static const char* apzAix_PthreadPatch[] = {
572     "format",
573     "%1 %2",
574     (char*)NULL };
576 /* * * * * * * * * * * * * * * * * * * * * * * * * *
578  *  Description of Aix_Sysmachine fix
579  */
580 tSCC zAix_SysmachineName[] =
581      "aix_sysmachine";
584  *  File name selection pattern
585  */
586 tSCC zAix_SysmachineList[] =
587   "|sys/machine.h|";
589  *  Machine/OS name selection pattern
590  */
591 #define apzAix_SysmachineMachs (const char**)NULL
594  *  content selection pattern - do fix if pattern found
595  */
596 tSCC zAix_SysmachineSelect0[] =
597        "\\\\ +\n";
599 #define    AIX_SYSMACHINE_TEST_CT  1
600 static tTestDesc aAix_SysmachineTests[] = {
601   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
604  *  Fix Command Arguments for Aix_Sysmachine
605  */
606 static const char* apzAix_SysmachinePatch[] = {
607     "format",
608     "\\\n",
609     (char*)NULL };
611 /* * * * * * * * * * * * * * * * * * * * * * * * * *
613  *  Description of Aix_Syswait fix
614  */
615 tSCC zAix_SyswaitName[] =
616      "aix_syswait";
619  *  File name selection pattern
620  */
621 tSCC zAix_SyswaitList[] =
622   "|sys/wait.h|";
624  *  Machine/OS name selection pattern
625  */
626 #define apzAix_SyswaitMachs (const char**)NULL
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,";
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 }, };
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 };
650 /* * * * * * * * * * * * * * * * * * * * * * * * * *
652  *  Description of Aix_Syswait_2 fix
653  */
654 tSCC zAix_Syswait_2Name[] =
655      "aix_syswait_2";
658  *  File name selection pattern
659  */
660 tSCC zAix_Syswait_2List[] =
661   "|sys/wait.h|";
663  *  Machine/OS name selection pattern
664  */
665 #define apzAix_Syswait_2Machs (const char**)NULL
668  *  content selection pattern - do fix if pattern found
669  */
670 tSCC zAix_Syswait_2Select0[] =
671        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
673 #define    AIX_SYSWAIT_2_TEST_CT  1
674 static tTestDesc aAix_Syswait_2Tests[] = {
675   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
678  *  Fix Command Arguments for Aix_Syswait_2
679  */
680 static const char* apzAix_Syswait_2Patch[] = {
681     "format",
682     "? (int)%1",
683     (char*)NULL };
685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
687  *  Description of Aix_Volatile fix
688  */
689 tSCC zAix_VolatileName[] =
690      "aix_volatile";
693  *  File name selection pattern
694  */
695 tSCC zAix_VolatileList[] =
696   "|sys/signal.h|";
698  *  Machine/OS name selection pattern
699  */
700 #define apzAix_VolatileMachs (const char**)NULL
703  *  content selection pattern - do fix if pattern found
704  */
705 tSCC zAix_VolatileSelect0[] =
706        "typedef volatile int sig_atomic_t";
708 #define    AIX_VOLATILE_TEST_CT  1
709 static tTestDesc aAix_VolatileTests[] = {
710   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
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 };
720 /* * * * * * * * * * * * * * * * * * * * * * * * * *
722  *  Description of Alpha___Assert fix
723  */
724 tSCC zAlpha___AssertName[] =
725      "alpha___assert";
728  *  File name selection pattern
729  */
730 tSCC zAlpha___AssertList[] =
731   "|assert.h|";
733  *  Machine/OS name selection pattern
734  */
735 #define apzAlpha___AssertMachs (const char**)NULL
738  *  content selection pattern - do fix if pattern found
739  */
740 tSCC zAlpha___AssertSelect0[] =
741        "__assert\\(char \\*, char \\*, int\\)";
743 #define    ALPHA___ASSERT_TEST_CT  1
744 static tTestDesc aAlpha___AssertTests[] = {
745   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
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 };
755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
757  *  Description of Alpha___Extern_Prefix fix
758  */
759 tSCC zAlpha___Extern_PrefixName[] =
760      "alpha___extern_prefix";
763  *  File name selection pattern
764  */
765 #define zAlpha___Extern_PrefixList (char*)NULL
767  *  Machine/OS name selection pattern
768  */
769 tSCC* apzAlpha___Extern_PrefixMachs[] = {
770         "alpha*-dec-osf*",
771         (const char*)NULL };
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.*)";
780 #define    ALPHA___EXTERN_PREFIX_TEST_CT  1
781 static tTestDesc aAlpha___Extern_PrefixTests[] = {
782   { TT_EGREP,    zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
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 };
793 /* * * * * * * * * * * * * * * * * * * * * * * * * *
795  *  Description of Alpha___Extern_Prefix_Standards fix
796  */
797 tSCC zAlpha___Extern_Prefix_StandardsName[] =
798      "alpha___extern_prefix_standards";
801  *  File name selection pattern
802  */
803 tSCC zAlpha___Extern_Prefix_StandardsList[] =
804   "|standards.h|";
806  *  Machine/OS name selection pattern
807  */
808 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
809         "alpha*-dec-osf*",
810         (const char*)NULL };
813  *  content selection pattern - do fix if pattern found
814  */
815 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
816        ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
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 }, };
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 };
830 /* * * * * * * * * * * * * * * * * * * * * * * * * *
832  *  Description of Alpha___Extern_Prefix_Sys_Stat fix
833  */
834 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
835      "alpha___extern_prefix_sys_stat";
838  *  File name selection pattern
839  */
840 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
841   "|sys/stat.h|sys/mount.h|";
843  *  Machine/OS name selection pattern
844  */
845 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
846         "alpha*-dec-osf5*",
847         (const char*)NULL };
850  *  content selection pattern - do fix if pattern found
851  */
852 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
853        "#[ \t]*if[ \t]*defined\\(__DECC\\)";
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 }, };
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 };
867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
869  *  Description of Alpha_Assert fix
870  */
871 tSCC zAlpha_AssertName[] =
872      "alpha_assert";
875  *  File name selection pattern
876  */
877 tSCC zAlpha_AssertList[] =
878   "|assert.h|";
880  *  Machine/OS name selection pattern
881  */
882 #define apzAlpha_AssertMachs (const char**)NULL
885  *  content selection pattern - do fix if pattern found
886  */
887 tSCC zAlpha_AssertSelect0[] =
888        "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
890 #define    ALPHA_ASSERT_TEST_CT  1
891 static tTestDesc aAlpha_AssertTests[] = {
892   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
895  *  Fix Command Arguments for Alpha_Assert
896  */
897 static const char* apzAlpha_AssertPatch[] = {
898     "format",
899     "%1(EX)",
900     (char*)NULL };
902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
904  *  Description of Alpha_Bad_Lval fix
905  */
906 tSCC zAlpha_Bad_LvalName[] =
907      "alpha_bad_lval";
910  *  File name selection pattern
911  */
912 #define zAlpha_Bad_LvalList (char*)NULL
914  *  Machine/OS name selection pattern
915  */
916 tSCC* apzAlpha_Bad_LvalMachs[] = {
917         "alpha*-dec-osf*",
918         (const char*)NULL };
921  *  content selection pattern - do fix if pattern found
922  */
923 tSCC zAlpha_Bad_LvalSelect0[] =
924        "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
926 #define    ALPHA_BAD_LVAL_TEST_CT  1
927 static tTestDesc aAlpha_Bad_LvalTests[] = {
928   { TT_EGREP,    zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
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 };
937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
939  *  Description of Alpha_Getopt fix
940  */
941 tSCC zAlpha_GetoptName[] =
942      "alpha_getopt";
945  *  File name selection pattern
946  */
947 tSCC zAlpha_GetoptList[] =
948   "|stdio.h|stdlib.h|";
950  *  Machine/OS name selection pattern
951  */
952 #define apzAlpha_GetoptMachs (const char**)NULL
955  *  content selection pattern - do fix if pattern found
956  */
957 tSCC zAlpha_GetoptSelect0[] =
958        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
960 #define    ALPHA_GETOPT_TEST_CT  1
961 static tTestDesc aAlpha_GetoptTests[] = {
962   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
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 };
972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
974  *  Description of Alpha_Parens fix
975  */
976 tSCC zAlpha_ParensName[] =
977      "alpha_parens";
980  *  File name selection pattern
981  */
982 tSCC zAlpha_ParensList[] =
983   "|sym.h|";
985  *  Machine/OS name selection pattern
986  */
987 #define apzAlpha_ParensMachs (const char**)NULL
990  *  content selection pattern - do fix if pattern found
991  */
992 tSCC zAlpha_ParensSelect0[] =
993        "#ifndef\\(__mips64\\)";
995 #define    ALPHA_PARENS_TEST_CT  1
996 static tTestDesc aAlpha_ParensTests[] = {
997   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
1000  *  Fix Command Arguments for Alpha_Parens
1001  */
1002 static const char* apzAlpha_ParensPatch[] = {
1003     "format",
1004     "#ifndef __mips64",
1005     (char*)NULL };
1007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1009  *  Description of Alpha_Pthread fix
1010  */
1011 tSCC zAlpha_PthreadName[] =
1012      "alpha_pthread";
1015  *  File name selection pattern
1016  */
1017 tSCC zAlpha_PthreadList[] =
1018   "|pthread.h|";
1020  *  Machine/OS name selection pattern
1021  */
1022 tSCC* apzAlpha_PthreadMachs[] = {
1023         "alpha*-dec-osf*",
1024         (const char*)NULL };
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_)";
1033 #define    ALPHA_PTHREAD_TEST_CT  1
1034 static tTestDesc aAlpha_PthreadTests[] = {
1035   { TT_EGREP,    zAlpha_PthreadSelect0, (regex_t*)NULL }, };
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 };
1046 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1048  *  Description of Alpha_Pthread_Gcc fix
1049  */
1050 tSCC zAlpha_Pthread_GccName[] =
1051      "alpha_pthread_gcc";
1054  *  File name selection pattern
1055  */
1056 tSCC zAlpha_Pthread_GccList[] =
1057   "|pthread.h|";
1059  *  Machine/OS name selection pattern
1060  */
1061 tSCC* apzAlpha_Pthread_GccMachs[] = {
1062         "alpha*-dec-osf*",
1063         (const char*)NULL };
1066  *  content selection pattern - do fix if pattern found
1067  */
1068 tSCC zAlpha_Pthread_GccSelect0[] =
1069        "#else\n\
1070 # error <pthread.h>: unrecognized compiler.";
1072 #define    ALPHA_PTHREAD_GCC_TEST_CT  1
1073 static tTestDesc aAlpha_Pthread_GccTests[] = {
1074   { TT_EGREP,    zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
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 };
1086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1088  *  Description of Alpha_Sbrk fix
1089  */
1090 tSCC zAlpha_SbrkName[] =
1091      "alpha_sbrk";
1094  *  File name selection pattern
1095  */
1096 tSCC zAlpha_SbrkList[] =
1097   "|unistd.h|";
1099  *  Machine/OS name selection pattern
1100  */
1101 #define apzAlpha_SbrkMachs (const char**)NULL
1104  *  content selection pattern - do fix if pattern found
1105  */
1106 tSCC zAlpha_SbrkSelect0[] =
1107        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1109 #define    ALPHA_SBRK_TEST_CT  1
1110 static tTestDesc aAlpha_SbrkTests[] = {
1111   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1114  *  Fix Command Arguments for Alpha_Sbrk
1115  */
1116 static const char* apzAlpha_SbrkPatch[] = {
1117     "format",
1118     "void *sbrk(",
1119     (char*)NULL };
1121 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1123  *  Description of Alpha_Wchar fix
1124  */
1125 tSCC zAlpha_WcharName[] =
1126      "alpha_wchar";
1129  *  File name selection pattern
1130  */
1131 tSCC zAlpha_WcharList[] =
1132   "|wchar.h|";
1134  *  Machine/OS name selection pattern
1135  */
1136 tSCC* apzAlpha_WcharMachs[] = {
1137         "alpha*-dec-osf4*",
1138         (const char*)NULL };
1141  *  content selection pattern - do fix if pattern found
1142  */
1143 tSCC zAlpha_WcharSelect0[] =
1144        "#define wcstok wcstok_r";
1146 #define    ALPHA_WCHAR_TEST_CT  1
1147 static tTestDesc aAlpha_WcharTests[] = {
1148   { TT_EGREP,    zAlpha_WcharSelect0, (regex_t*)NULL }, };
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 };
1158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1160  *  Description of Avoid_Bool_Define fix
1161  */
1162 tSCC zAvoid_Bool_DefineName[] =
1163      "avoid_bool_define";
1166  *  File name selection pattern
1167  */
1168 tSCC zAvoid_Bool_DefineList[] =
1169   "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1171  *  Machine/OS name selection pattern
1172  */
1173 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1176  *  content selection pattern - do fix if pattern found
1177  */
1178 tSCC zAvoid_Bool_DefineSelect0[] =
1179        "#[ \t]*define[ \t]+bool[ \t]";
1182  *  content bypass pattern - skip fix if pattern found
1183  */
1184 tSCC zAvoid_Bool_DefineBypass0[] =
1185        "__cplusplus";
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 }, };
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 };
1203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1205  *  Description of Avoid_Bool_Type fix
1206  */
1207 tSCC zAvoid_Bool_TypeName[] =
1208      "avoid_bool_type";
1211  *  File name selection pattern
1212  */
1213 tSCC zAvoid_Bool_TypeList[] =
1214   "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1216  *  Machine/OS name selection pattern
1217  */
1218 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1221  *  content selection pattern - do fix if pattern found
1222  */
1223 tSCC zAvoid_Bool_TypeSelect0[] =
1224        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1227  *  content bypass pattern - skip fix if pattern found
1228  */
1229 tSCC zAvoid_Bool_TypeBypass0[] =
1230        "__cplusplus";
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 }, };
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 };
1247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1249  *  Description of Avoid_Wchar_T_Type fix
1250  */
1251 tSCC zAvoid_Wchar_T_TypeName[] =
1252      "avoid_wchar_t_type";
1255  *  File name selection pattern
1256  */
1257 #define zAvoid_Wchar_T_TypeList (char*)NULL
1259  *  Machine/OS name selection pattern
1260  */
1261 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1264  *  content selection pattern - do fix if pattern found
1265  */
1266 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1267        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
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";
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 }, };
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 };
1296 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1298  *  Description of Bad_Struct_Term fix
1299  */
1300 tSCC zBad_Struct_TermName[] =
1301      "bad_struct_term";
1304  *  File name selection pattern
1305  */
1306 tSCC zBad_Struct_TermList[] =
1307   "|curses.h|";
1309  *  Machine/OS name selection pattern
1310  */
1311 #define apzBad_Struct_TermMachs (const char**)NULL
1314  *  content selection pattern - do fix if pattern found
1315  */
1316 tSCC zBad_Struct_TermSelect0[] =
1317        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1319 #define    BAD_STRUCT_TERM_TEST_CT  1
1320 static tTestDesc aBad_Struct_TermTests[] = {
1321   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1324  *  Fix Command Arguments for Bad_Struct_Term
1325  */
1326 static const char* apzBad_Struct_TermPatch[] = {
1327     "format",
1328     "struct term;",
1329     (char*)NULL };
1331 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1333  *  Description of Badquote fix
1334  */
1335 tSCC zBadquoteName[] =
1336      "badquote";
1339  *  File name selection pattern
1340  */
1341 tSCC zBadquoteList[] =
1342   "|sundev/vuid_event.h|";
1344  *  Machine/OS name selection pattern
1345  */
1346 #define apzBadquoteMachs (const char**)NULL
1349  *  content selection pattern - do fix if pattern found
1350  */
1351 tSCC zBadquoteSelect0[] =
1352        "doesn't";
1354 #define    BADQUOTE_TEST_CT  1
1355 static tTestDesc aBadquoteTests[] = {
1356   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
1359  *  Fix Command Arguments for Badquote
1360  */
1361 static const char* apzBadquotePatch[] = {
1362     "format",
1363     "does not",
1364     (char*)NULL };
1366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1368  *  Description of Broken_Assert_Stdio fix
1369  */
1370 tSCC zBroken_Assert_StdioName[] =
1371      "broken_assert_stdio";
1374  *  File name selection pattern
1375  */
1376 tSCC zBroken_Assert_StdioList[] =
1377   "|assert.h|";
1379  *  Machine/OS name selection pattern
1380  */
1381 #define apzBroken_Assert_StdioMachs (const char**)NULL
1384  *  content selection pattern - do fix if pattern found
1385  */
1386 tSCC zBroken_Assert_StdioSelect0[] =
1387        "stderr";
1390  *  content bypass pattern - skip fix if pattern found
1391  */
1392 tSCC zBroken_Assert_StdioBypass0[] =
1393        "include.*stdio\\.h";
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 }, };
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 };
1408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1410  *  Description of Broken_Assert_Stdlib fix
1411  */
1412 tSCC zBroken_Assert_StdlibName[] =
1413      "broken_assert_stdlib";
1416  *  File name selection pattern
1417  */
1418 tSCC zBroken_Assert_StdlibList[] =
1419   "|assert.h|";
1421  *  Machine/OS name selection pattern
1422  */
1423 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1426  *  content selection pattern - do fix if pattern found
1427  */
1428 tSCC zBroken_Assert_StdlibSelect0[] =
1429        "exit *\\(|abort *\\(";
1432  *  content bypass pattern - skip fix if pattern found
1433  */
1434 tSCC zBroken_Assert_StdlibBypass0[] =
1435        "include.*stdlib\\.h";
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 }, };
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 };
1452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1454  *  Description of Broken_Cabs fix
1455  */
1456 tSCC zBroken_CabsName[] =
1457      "broken_cabs";
1460  *  File name selection pattern
1461  */
1462 tSCC zBroken_CabsList[] =
1463   "|math.h|architecture/ppc/math.h|architecture/i386/math.h|";
1465  *  Machine/OS name selection pattern
1466  */
1467 #define apzBroken_CabsMachs (const char**)NULL
1470  *  content selection pattern - do fix if pattern found
1471  */
1472 tSCC zBroken_CabsSelect0[] =
1473        "^extern[ \\t]+double[ \\t]+cabs";
1475 #define    BROKEN_CABS_TEST_CT  1
1476 static tTestDesc aBroken_CabsTests[] = {
1477   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
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 };
1488 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1490  *  Description of Bsd_Stdio_Attrs_Conflict fix
1491  */
1492 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1493      "bsd_stdio_attrs_conflict";
1496  *  File name selection pattern
1497  */
1498 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1499   "|stdio.h|";
1501  *  Machine/OS name selection pattern
1502  */
1503 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1504         "*-*-*bsd*",
1505         "*-*-*darwin*",
1506         (const char*)NULL };
1509  *  content selection pattern - do fix if pattern found
1510  */
1511 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1512        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
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 }, };
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 };
1528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1530  *  Description of Ctrl_Quotes_Def fix
1531  */
1532 tSCC zCtrl_Quotes_DefName[] =
1533      "ctrl_quotes_def";
1536  *  File name selection pattern
1537  */
1538 #define zCtrl_Quotes_DefList (char*)NULL
1540  *  Machine/OS name selection pattern
1541  */
1542 #define apzCtrl_Quotes_DefMachs (const char**)NULL
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][,)]";
1550 #define    CTRL_QUOTES_DEF_TEST_CT  1
1551 static tTestDesc aCtrl_Quotes_DefTests[] = {
1552   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
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 };
1562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1564  *  Description of Ctrl_Quotes_Use fix
1565  */
1566 tSCC zCtrl_Quotes_UseName[] =
1567      "ctrl_quotes_use";
1570  *  File name selection pattern
1571  */
1572 #define zCtrl_Quotes_UseList (char*)NULL
1574  *  Machine/OS name selection pattern
1575  */
1576 #define apzCtrl_Quotes_UseMachs (const char**)NULL
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]*\\( *[^,']";
1584 #define    CTRL_QUOTES_USE_TEST_CT  1
1585 static tTestDesc aCtrl_Quotes_UseTests[] = {
1586   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
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 };
1596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1598  *  Description of Cxx_Unready fix
1599  */
1600 tSCC zCxx_UnreadyName[] =
1601      "cxx_unready";
1604  *  File name selection pattern
1605  */
1606 tSCC zCxx_UnreadyList[] =
1607   "|sys/mman.h|rpc/types.h|";
1609  *  Machine/OS name selection pattern
1610  */
1611 #define apzCxx_UnreadyMachs (const char**)NULL
1614  *  content selection pattern - do fix if pattern found
1615  */
1616 tSCC zCxx_UnreadySelect0[] =
1617        "[^#]+malloc.*;";
1620  *  content bypass pattern - skip fix if pattern found
1621  */
1622 tSCC zCxx_UnreadyBypass0[] =
1623        "\"C\"|__BEGIN_DECLS";
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 }, };
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 };
1643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1645  *  Description of Darwin_Private_Extern fix
1646  */
1647 tSCC zDarwin_Private_ExternName[] =
1648      "darwin_private_extern";
1651  *  File name selection pattern
1652  */
1653 tSCC zDarwin_Private_ExternList[] =
1654   "|mach-o/dyld.h|";
1656  *  Machine/OS name selection pattern
1657  */
1658 tSCC* apzDarwin_Private_ExternMachs[] = {
1659         "*-*-darwin*",
1660         (const char*)NULL };
1663  *  content selection pattern - do fix if pattern found
1664  */
1665 tSCC zDarwin_Private_ExternSelect0[] =
1666        "__private_extern__ [a-z_]+ _dyld_";
1668 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
1669 static tTestDesc aDarwin_Private_ExternTests[] = {
1670   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
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 };
1681 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1683  *  Description of Dec_Intern_Asm fix
1684  */
1685 tSCC zDec_Intern_AsmName[] =
1686      "dec_intern_asm";
1689  *  File name selection pattern
1690  */
1691 tSCC zDec_Intern_AsmList[] =
1692   "|c_asm.h|";
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
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 };
1710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1712  *  Description of Djgpp_Wchar_H fix
1713  */
1714 tSCC zDjgpp_Wchar_HName[] =
1715      "djgpp_wchar_h";
1718  *  File name selection pattern
1719  */
1720 #define zDjgpp_Wchar_HList (char*)NULL
1722  *  Machine/OS name selection pattern
1723  */
1724 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1727  *  content selection pattern - do fix if pattern found
1728  */
1729 tSCC zDjgpp_Wchar_HSelect0[] =
1730        "__DJ_wint_t";
1733  *  content bypass pattern - skip fix if pattern found
1734  */
1735 tSCC zDjgpp_Wchar_HBypass0[] =
1736        "sys/djtypes.h";
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 }, };
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 };
1753 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1755  *  Description of Ecd_Cursor fix
1756  */
1757 tSCC zEcd_CursorName[] =
1758      "ecd_cursor";
1761  *  File name selection pattern
1762  */
1763 tSCC zEcd_CursorList[] =
1764   "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1766  *  Machine/OS name selection pattern
1767  */
1768 #define apzEcd_CursorMachs (const char**)NULL
1771  *  content selection pattern - do fix if pattern found
1772  */
1773 tSCC zEcd_CursorSelect0[] =
1774        "ecd\\.cursor";
1776 #define    ECD_CURSOR_TEST_CT  1
1777 static tTestDesc aEcd_CursorTests[] = {
1778   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
1781  *  Fix Command Arguments for Ecd_Cursor
1782  */
1783 static const char* apzEcd_CursorPatch[] = {
1784     "format",
1785     "ecd_cursor",
1786     (char*)NULL };
1788 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1790  *  Description of Exception_Structure fix
1791  */
1792 tSCC zException_StructureName[] =
1793      "exception_structure";
1796  *  File name selection pattern
1797  */
1798 tSCC zException_StructureList[] =
1799   "|math.h|";
1801  *  Machine/OS name selection pattern
1802  */
1803 #define apzException_StructureMachs (const char**)NULL
1806  *  content selection pattern - do fix if pattern found
1807  */
1808 tSCC zException_StructureSelect0[] =
1809        "matherr";
1812  *  content bypass pattern - skip fix if pattern found
1813  */
1814 tSCC zException_StructureBypass0[] =
1815        "matherr.*(struct exception|__MATH_EXCEPTION)";
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 }, };
1823  *  Fix Command Arguments for Exception_Structure
1824  */
1825 static const char* apzException_StructurePatch[] = {
1826     "wrap",
1827     "struct exception;\n",
1828     (char*)NULL };
1830 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1832  *  Description of Freebsd_Gcc3_Breakage fix
1833  */
1834 tSCC zFreebsd_Gcc3_BreakageName[] =
1835      "freebsd_gcc3_breakage";
1838  *  File name selection pattern
1839  */
1840 tSCC zFreebsd_Gcc3_BreakageList[] =
1841   "|sys/cdefs.h|";
1843  *  Machine/OS name selection pattern
1844  */
1845 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
1846         "*-*-freebsd*",
1847         (const char*)NULL };
1850  *  content selection pattern - do fix if pattern found
1851  */
1852 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
1853        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
1856  *  content bypass pattern - skip fix if pattern found
1857  */
1858 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
1859        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
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 }, };
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 };
1874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1876  *  Description of Gnu_Types fix
1877  */
1878 tSCC zGnu_TypesName[] =
1879      "gnu_types";
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|";
1887  *  Machine/OS name selection pattern
1888  */
1889 #define apzGnu_TypesMachs (const char**)NULL
1892  *  content selection pattern - do fix if pattern found
1893  */
1894 tSCC zGnu_TypesSelect0[] =
1895        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
1898  *  content bypass pattern - skip fix if pattern found
1899  */
1900 tSCC zGnu_TypesBypass0[] =
1901        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
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 }, };
1909  *  Fix Command Arguments for Gnu_Types
1910  */
1911 static const char* apzGnu_TypesPatch[] = {
1912     "gnu_type",
1913     (char*)NULL };
1915 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1917  *  Description of Hp_Inline fix
1918  */
1919 tSCC zHp_InlineName[] =
1920      "hp_inline";
1923  *  File name selection pattern
1924  */
1925 tSCC zHp_InlineList[] =
1926   "|sys/spinlock.h|machine/machparam.h|";
1928  *  Machine/OS name selection pattern
1929  */
1930 #define apzHp_InlineMachs (const char**)NULL
1933  *  content selection pattern - do fix if pattern found
1934  */
1935 tSCC zHp_InlineSelect0[] =
1936        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
1938 #define    HP_INLINE_TEST_CT  1
1939 static tTestDesc aHp_InlineTests[] = {
1940   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
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 };
1951 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1953  *  Description of Hp_Sysfile fix
1954  */
1955 tSCC zHp_SysfileName[] =
1956      "hp_sysfile";
1959  *  File name selection pattern
1960  */
1961 tSCC zHp_SysfileList[] =
1962   "|sys/file.h|";
1964  *  Machine/OS name selection pattern
1965  */
1966 #define apzHp_SysfileMachs (const char**)NULL
1969  *  content selection pattern - do fix if pattern found
1970  */
1971 tSCC zHp_SysfileSelect0[] =
1972        "HPUX_SOURCE";
1974 #define    HP_SYSFILE_TEST_CT  1
1975 static tTestDesc aHp_SysfileTests[] = {
1976   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
1979  *  Fix Command Arguments for Hp_Sysfile
1980  */
1981 static const char* apzHp_SysfilePatch[] = {
1982     "format",
1983     "(struct file *, ...)",
1984     "\\(\\.\\.\\.\\)",
1985     (char*)NULL };
1987 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1989  *  Description of Hpux10_Cpp_Pow_Inline fix
1990  */
1991 tSCC zHpux10_Cpp_Pow_InlineName[] =
1992      "hpux10_cpp_pow_inline";
1995  *  File name selection pattern
1996  */
1997 tSCC zHpux10_Cpp_Pow_InlineList[] =
1998   "|fixinc-test-limits.h|math.h|";
2000  *  Machine/OS name selection pattern
2001  */
2002 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
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";
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 }, };
2022  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2023  */
2024 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2025     "format",
2026     "",
2027     (char*)NULL };
2029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2031  *  Description of Hpux11_Cpp_Pow_Inline fix
2032  */
2033 tSCC zHpux11_Cpp_Pow_InlineName[] =
2034      "hpux11_cpp_pow_inline";
2037  *  File name selection pattern
2038  */
2039 tSCC zHpux11_Cpp_Pow_InlineList[] =
2040   "|math.h|";
2042  *  Machine/OS name selection pattern
2043  */
2044 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
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";
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 }, };
2059  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2060  */
2061 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2062     "format",
2063     "",
2064     (char*)NULL };
2066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2068  *  Description of Hpux10_Ctype_Declarations1 fix
2069  */
2070 tSCC zHpux10_Ctype_Declarations1Name[] =
2071      "hpux10_ctype_declarations1";
2074  *  File name selection pattern
2075  */
2076 tSCC zHpux10_Ctype_Declarations1List[] =
2077   "|ctype.h|";
2079  *  Machine/OS name selection pattern
2080  */
2081 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2084  *  content selection pattern - do fix if pattern found
2085  */
2086 tSCC zHpux10_Ctype_Declarations1Select0[] =
2087        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2090  *  content bypass pattern - skip fix if pattern found
2091  */
2092 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2093        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
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 }, };
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 };
2115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2117  *  Description of Hpux10_Ctype_Declarations2 fix
2118  */
2119 tSCC zHpux10_Ctype_Declarations2Name[] =
2120      "hpux10_ctype_declarations2";
2123  *  File name selection pattern
2124  */
2125 tSCC zHpux10_Ctype_Declarations2List[] =
2126   "|ctype.h|";
2128  *  Machine/OS name selection pattern
2129  */
2130 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2133  *  content selection pattern - do fix if pattern found
2134  */
2135 tSCC zHpux10_Ctype_Declarations2Select0[] =
2136        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2139  *  content bypass pattern - skip fix if pattern found
2140  */
2141 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2142        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
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 }, };
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 };
2182 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2184  *  Description of Hpux10_Stdio_Declarations fix
2185  */
2186 tSCC zHpux10_Stdio_DeclarationsName[] =
2187      "hpux10_stdio_declarations";
2190  *  File name selection pattern
2191  */
2192 tSCC zHpux10_Stdio_DeclarationsList[] =
2193   "|stdio.h|";
2195  *  Machine/OS name selection pattern
2196  */
2197 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2200  *  content selection pattern - do fix if pattern found
2201  */
2202 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2203        "^#[ \t]*define _iob[ \t]*__iob";
2206  *  content bypass pattern - skip fix if pattern found
2207  */
2208 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2209        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
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 }, };
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 };
2231 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2233  *  Description of Hpux11_Abs fix
2234  */
2235 tSCC zHpux11_AbsName[] =
2236      "hpux11_abs";
2239  *  File name selection pattern
2240  */
2241 tSCC zHpux11_AbsList[] =
2242   "|stdlib.h|";
2244  *  Machine/OS name selection pattern
2245  */
2246 tSCC* apzHpux11_AbsMachs[] = {
2247         "ia64-hp-hpux11*",
2248         (const char*)NULL };
2251  *  content selection pattern - do fix if pattern found
2252  */
2253 tSCC zHpux11_AbsSelect0[] =
2254        "ifndef _MATH_INCLUDED";
2256 #define    HPUX11_ABS_TEST_CT  1
2257 static tTestDesc aHpux11_AbsTests[] = {
2258   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
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 };
2268 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2270  *  Description of Hpux11_Fabsf fix
2271  */
2272 tSCC zHpux11_FabsfName[] =
2273      "hpux11_fabsf";
2276  *  File name selection pattern
2277  */
2278 tSCC zHpux11_FabsfList[] =
2279   "|math.h|";
2281  *  Machine/OS name selection pattern
2282  */
2283 #define apzHpux11_FabsfMachs (const char**)NULL
2286  *  content selection pattern - do fix if pattern found
2287  */
2288 tSCC zHpux11_FabsfSelect0[] =
2289        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2292  *  content bypass pattern - skip fix if pattern found
2293  */
2294 tSCC zHpux11_FabsfBypass0[] =
2295        "__cplusplus";
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 }, };
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 };
2312 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2314  *  Description of Hpux11_Size_T fix
2315  */
2316 tSCC zHpux11_Size_TName[] =
2317      "hpux11_size_t";
2320  *  File name selection pattern
2321  */
2322 #define zHpux11_Size_TList (char*)NULL
2324  *  Machine/OS name selection pattern
2325  */
2326 tSCC* apzHpux11_Size_TMachs[] = {
2327         "*-hp-hpux11*",
2328         (const char*)NULL };
2331  *  content selection pattern - do fix if pattern found
2332  */
2333 tSCC zHpux11_Size_TSelect0[] =
2334        "__size_t";
2336 #define    HPUX11_SIZE_T_TEST_CT  1
2337 static tTestDesc aHpux11_Size_TTests[] = {
2338   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
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 };
2348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2350  *  Description of Hpux11_Snprintf fix
2351  */
2352 tSCC zHpux11_SnprintfName[] =
2353      "hpux11_snprintf";
2356  *  File name selection pattern
2357  */
2358 tSCC zHpux11_SnprintfList[] =
2359   "|stdio.h|";
2361  *  Machine/OS name selection pattern
2362  */
2363 #define apzHpux11_SnprintfMachs (const char**)NULL
2366  *  content selection pattern - do fix if pattern found
2367  */
2368 tSCC zHpux11_SnprintfSelect0[] =
2369        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2371 #define    HPUX11_SNPRINTF_TEST_CT  1
2372 static tTestDesc aHpux11_SnprintfTests[] = {
2373   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2376  *  Fix Command Arguments for Hpux11_Snprintf
2377  */
2378 static const char* apzHpux11_SnprintfPatch[] = {
2379     "format",
2380     "%1 const %3",
2381     (char*)NULL };
2383 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2385  *  Description of Hpux11_Uint32_C fix
2386  */
2387 tSCC zHpux11_Uint32_CName[] =
2388      "hpux11_uint32_c";
2391  *  File name selection pattern
2392  */
2393 tSCC zHpux11_Uint32_CList[] =
2394   "|inttypes.h|";
2396  *  Machine/OS name selection pattern
2397  */
2398 #define apzHpux11_Uint32_CMachs (const char**)NULL
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\\)";
2406 #define    HPUX11_UINT32_C_TEST_CT  1
2407 static tTestDesc aHpux11_Uint32_CTests[] = {
2408   { TT_EGREP,    zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
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 };
2418 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2420  *  Description of Hpux11_Vsnprintf fix
2421  */
2422 tSCC zHpux11_VsnprintfName[] =
2423      "hpux11_vsnprintf";
2426  *  File name selection pattern
2427  */
2428 tSCC zHpux11_VsnprintfList[] =
2429   "|stdio.h|";
2431  *  Machine/OS name selection pattern
2432  */
2433 #define apzHpux11_VsnprintfMachs (const char**)NULL
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\\);";
2441 #define    HPUX11_VSNPRINTF_TEST_CT  1
2442 static tTestDesc aHpux11_VsnprintfTests[] = {
2443   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2446  *  Fix Command Arguments for Hpux11_Vsnprintf
2447  */
2448 static const char* apzHpux11_VsnprintfPatch[] = {
2449     "format",
2450     "%1 __va_list);",
2451     (char*)NULL };
2453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2455  *  Description of Hpux8_Bogus_Inlines fix
2456  */
2457 tSCC zHpux8_Bogus_InlinesName[] =
2458      "hpux8_bogus_inlines";
2461  *  File name selection pattern
2462  */
2463 tSCC zHpux8_Bogus_InlinesList[] =
2464   "|math.h|";
2466  *  Machine/OS name selection pattern
2467  */
2468 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2471  *  content selection pattern - do fix if pattern found
2472  */
2473 tSCC zHpux8_Bogus_InlinesSelect0[] =
2474        "inline";
2476 #define    HPUX8_BOGUS_INLINES_TEST_CT  1
2477 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2478   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
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 };
2490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2492  *  Description of Hpux_Ctype_Macros fix
2493  */
2494 tSCC zHpux_Ctype_MacrosName[] =
2495      "hpux_ctype_macros";
2498  *  File name selection pattern
2499  */
2500 tSCC zHpux_Ctype_MacrosList[] =
2501   "|ctype.h|";
2503  *  Machine/OS name selection pattern
2504  */
2505 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2508  *  content selection pattern - do fix if pattern found
2509  */
2510 tSCC zHpux_Ctype_MacrosSelect0[] =
2511        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2513 #define    HPUX_CTYPE_MACROS_TEST_CT  1
2514 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2515   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
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 };
2525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2527  *  Description of Hpux_Long_Double fix
2528  */
2529 tSCC zHpux_Long_DoubleName[] =
2530      "hpux_long_double";
2533  *  File name selection pattern
2534  */
2535 tSCC zHpux_Long_DoubleList[] =
2536   "|stdlib.h|";
2538  *  Machine/OS name selection pattern
2539  */
2540 #define apzHpux_Long_DoubleMachs (const char**)NULL
2543  *  content selection pattern - do fix if pattern found
2544  */
2545 tSCC zHpux_Long_DoubleSelect0[] =
2546        "extern[ \t]long_double[ \t]strtold";
2549  *  content bypass pattern - skip fix if pattern found
2550  */
2551 tSCC zHpux_Long_DoubleBypass0[] =
2552        "long_double_t";
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 }, };
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 };
2567 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2569  *  Description of Hpux_Maxint fix
2570  */
2571 tSCC zHpux_MaxintName[] =
2572      "hpux_maxint";
2575  *  File name selection pattern
2576  */
2577 tSCC zHpux_MaxintList[] =
2578   "|sys/param.h|values.h|";
2580  *  Machine/OS name selection pattern
2581  */
2582 #define apzHpux_MaxintMachs (const char**)NULL
2585  *  content selection pattern - do fix if pattern found
2586  */
2587 tSCC zHpux_MaxintSelect0[] =
2588        "^#[ \t]*define[ \t]+MAXINT[ \t]";
2591  *  content bypass pattern - skip fix if pattern found
2592  */
2593 tSCC zHpux_MaxintBypass0[] =
2594        "^#[ \t]*ifndef[ \t]+MAXINT";
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`\"";
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 }, };
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 };
2619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2621  *  Description of Hpux_Systime fix
2622  */
2623 tSCC zHpux_SystimeName[] =
2624      "hpux_systime";
2627  *  File name selection pattern
2628  */
2629 tSCC zHpux_SystimeList[] =
2630   "|sys/time.h|";
2632  *  Machine/OS name selection pattern
2633  */
2634 #define apzHpux_SystimeMachs (const char**)NULL
2637  *  content selection pattern - do fix if pattern found
2638  */
2639 tSCC zHpux_SystimeSelect0[] =
2640        "^extern struct sigevent;";
2642 #define    HPUX_SYSTIME_TEST_CT  1
2643 static tTestDesc aHpux_SystimeTests[] = {
2644   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
2647  *  Fix Command Arguments for Hpux_Systime
2648  */
2649 static const char* apzHpux_SystimePatch[] = {
2650     "format",
2651     "struct sigevent;",
2652     (char*)NULL };
2654 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2656  *  Description of Int_Abort_Free_And_Exit fix
2657  */
2658 tSCC zInt_Abort_Free_And_ExitName[] =
2659      "int_abort_free_and_exit";
2662  *  File name selection pattern
2663  */
2664 tSCC zInt_Abort_Free_And_ExitList[] =
2665   "|stdlib.h|";
2667  *  Machine/OS name selection pattern
2668  */
2669 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
2672  *  content selection pattern - do fix if pattern found
2673  */
2674 tSCC zInt_Abort_Free_And_ExitSelect0[] =
2675        "int[ \t]+(abort|free|exit)[ \t]*\\(";
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 }, };
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 };
2689 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2691  *  Description of Io_Quotes_Def fix
2692  */
2693 tSCC zIo_Quotes_DefName[] =
2694      "io_quotes_def";
2697  *  File name selection pattern
2698  */
2699 #define zIo_Quotes_DefList (char*)NULL
2701  *  Machine/OS name selection pattern
2702  */
2703 #define apzIo_Quotes_DefMachs (const char**)NULL
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][,)]";
2711 #define    IO_QUOTES_DEF_TEST_CT  1
2712 static tTestDesc aIo_Quotes_DefTests[] = {
2713   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
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 };
2723 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2725  *  Description of Io_Quotes_Use fix
2726  */
2727 tSCC zIo_Quotes_UseName[] =
2728      "io_quotes_use";
2731  *  File name selection pattern
2732  */
2733 #define zIo_Quotes_UseList (char*)NULL
2735  *  Machine/OS name selection pattern
2736  */
2737 #define apzIo_Quotes_UseMachs (const char**)NULL
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]*\\( *[^,']";
2745 #define    IO_QUOTES_USE_TEST_CT  1
2746 static tTestDesc aIo_Quotes_UseTests[] = {
2747   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
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 };
2757 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2759  *  Description of Ip_Missing_Semi fix
2760  */
2761 tSCC zIp_Missing_SemiName[] =
2762      "ip_missing_semi";
2765  *  File name selection pattern
2766  */
2767 tSCC zIp_Missing_SemiList[] =
2768   "|netinet/ip.h|";
2770  *  Machine/OS name selection pattern
2771  */
2772 #define apzIp_Missing_SemiMachs (const char**)NULL
2775  *  content selection pattern - do fix if pattern found
2776  */
2777 tSCC zIp_Missing_SemiSelect0[] =
2778        "}$";
2780 #define    IP_MISSING_SEMI_TEST_CT  1
2781 static tTestDesc aIp_Missing_SemiTests[] = {
2782   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
2785  *  Fix Command Arguments for Ip_Missing_Semi
2786  */
2787 static const char* apzIp_Missing_SemiPatch[] = { "sed",
2788     "-e", "/^struct/,/^};/s/}$/};/",
2789     (char*)NULL };
2791 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2793  *  Description of Irix___Restrict fix
2794  */
2795 tSCC zIrix___RestrictName[] =
2796      "irix___restrict";
2799  *  File name selection pattern
2800  */
2801 tSCC zIrix___RestrictList[] =
2802   "|internal/sgimacros.h|";
2804  *  Machine/OS name selection pattern
2805  */
2806 tSCC* apzIrix___RestrictMachs[] = {
2807         "mips-sgi-irix6.5",
2808         (const char*)NULL };
2811  *  content selection pattern - do fix if pattern found
2812  */
2813 tSCC zIrix___RestrictSelect0[] =
2814        "(#ifdef __c99\n\
2815 )(#[ \t]*define __restrict restrict)";
2817 #define    IRIX___RESTRICT_TEST_CT  1
2818 static tTestDesc aIrix___RestrictTests[] = {
2819   { TT_EGREP,    zIrix___RestrictSelect0, (regex_t*)NULL }, };
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 };
2831 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2833  *  Description of Irix_Asm_Apostrophe fix
2834  */
2835 tSCC zIrix_Asm_ApostropheName[] =
2836      "irix_asm_apostrophe";
2839  *  File name selection pattern
2840  */
2841 tSCC zIrix_Asm_ApostropheList[] =
2842   "|sys/asm.h|";
2844  *  Machine/OS name selection pattern
2845  */
2846 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
2849  *  content selection pattern - do fix if pattern found
2850  */
2851 tSCC zIrix_Asm_ApostropheSelect0[] =
2852        "^[ \t]*#.*[Ww]e're";
2854 #define    IRIX_ASM_APOSTROPHE_TEST_CT  1
2855 static tTestDesc aIrix_Asm_ApostropheTests[] = {
2856   { TT_EGREP,    zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
2859  *  Fix Command Arguments for Irix_Asm_Apostrophe
2860  */
2861 static const char* apzIrix_Asm_ApostrophePatch[] = {
2862     "format",
2863     "%1 are",
2864     "^([ \t]*#.*[Ww]e)'re",
2865     (char*)NULL };
2867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2869  *  Description of Irix_Limits_Const fix
2870  */
2871 tSCC zIrix_Limits_ConstName[] =
2872      "irix_limits_const";
2875  *  File name selection pattern
2876  */
2877 tSCC zIrix_Limits_ConstList[] =
2878   "|fixinc-test-limits.h|limits.h|";
2880  *  Machine/OS name selection pattern
2881  */
2882 #define apzIrix_Limits_ConstMachs (const char**)NULL
2885  *  content selection pattern - do fix if pattern found
2886  */
2887 tSCC zIrix_Limits_ConstSelect0[] =
2888        "^extern const ";
2890 #define    IRIX_LIMITS_CONST_TEST_CT  1
2891 static tTestDesc aIrix_Limits_ConstTests[] = {
2892   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
2895  *  Fix Command Arguments for Irix_Limits_Const
2896  */
2897 static const char* apzIrix_Limits_ConstPatch[] = {
2898     "format",
2899     "extern __const ",
2900     (char*)NULL };
2902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2904  *  Description of Irix_Socklen_T fix
2905  */
2906 tSCC zIrix_Socklen_TName[] =
2907      "irix_socklen_t";
2910  *  File name selection pattern
2911  */
2912 tSCC zIrix_Socklen_TList[] =
2913   "|sys/socket.h|";
2915  *  Machine/OS name selection pattern
2916  */
2917 tSCC* apzIrix_Socklen_TMachs[] = {
2918         "mips-sgi-irix6.5",
2919         (const char*)NULL };
2922  *  content selection pattern - do fix if pattern found
2923  */
2924 tSCC zIrix_Socklen_TSelect0[] =
2925        "(#define _SOCKLEN_T\n\
2926 )(typedef u_int32_t socklen_t;)";
2928 #define    IRIX_SOCKLEN_T_TEST_CT  1
2929 static tTestDesc aIrix_Socklen_TTests[] = {
2930   { TT_EGREP,    zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
2933  *  Fix Command Arguments for Irix_Socklen_T
2934  */
2935 static const char* apzIrix_Socklen_TPatch[] = {
2936     "format",
2937     "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
2938 typedef int socklen_t;\n\
2939 #else\n\
2940 %2\n\
2941 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
2942     (char*)NULL };
2944 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2946  *  Description of Irix_Stdio_Va_List fix
2947  */
2948 tSCC zIrix_Stdio_Va_ListName[] =
2949      "irix_stdio_va_list";
2952  *  File name selection pattern
2953  */
2954 tSCC zIrix_Stdio_Va_ListList[] =
2955   "|stdio.h|internal/stdio_core.h|";
2957  *  Machine/OS name selection pattern
2958  */
2959 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
2962  *  content selection pattern - do fix if pattern found
2963  */
2964 tSCC zIrix_Stdio_Va_ListSelect0[] =
2965        "/\\* va_list \\*/ char \\*";
2967 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
2968 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
2969   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
2972  *  Fix Command Arguments for Irix_Stdio_Va_List
2973  */
2974 static const char* apzIrix_Stdio_Va_ListPatch[] = {
2975     "format",
2976     "__gnuc_va_list",
2977     (char*)NULL };
2979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2981  *  Description of Irix_Wcsftime fix
2982  */
2983 tSCC zIrix_WcsftimeName[] =
2984      "irix_wcsftime";
2987  *  File name selection pattern
2988  */
2989 tSCC zIrix_WcsftimeList[] =
2990   "|internal/wchar_core.h|";
2992  *  Machine/OS name selection pattern
2993  */
2994 tSCC* apzIrix_WcsftimeMachs[] = {
2995         "mips-sgi-irix6.5",
2996         (const char*)NULL };
2999  *  content selection pattern - do fix if pattern found
3000  */
3001 tSCC zIrix_WcsftimeSelect0[] =
3002        "#if _NO_XOPEN5\n\
3003 (extern size_t[ \t]+wcsftime.*const char *.*)";
3005 #define    IRIX_WCSFTIME_TEST_CT  1
3006 static tTestDesc aIrix_WcsftimeTests[] = {
3007   { TT_EGREP,    zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
3010  *  Fix Command Arguments for Irix_Wcsftime
3011  */
3012 static const char* apzIrix_WcsftimePatch[] = {
3013     "format",
3014     "#if _NO_XOPEN5 && !defined(__c99)\n\
3015 %1",
3016     (char*)NULL };
3018 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3020  *  Description of Isc_Fmod fix
3021  */
3022 tSCC zIsc_FmodName[] =
3023      "isc_fmod";
3026  *  File name selection pattern
3027  */
3028 tSCC zIsc_FmodList[] =
3029   "|math.h|";
3031  *  Machine/OS name selection pattern
3032  */
3033 #define apzIsc_FmodMachs (const char**)NULL
3036  *  content selection pattern - do fix if pattern found
3037  */
3038 tSCC zIsc_FmodSelect0[] =
3039        "fmod\\(double\\)";
3041 #define    ISC_FMOD_TEST_CT  1
3042 static tTestDesc aIsc_FmodTests[] = {
3043   { TT_EGREP,    zIsc_FmodSelect0, (regex_t*)NULL }, };
3046  *  Fix Command Arguments for Isc_Fmod
3047  */
3048 static const char* apzIsc_FmodPatch[] = {
3049     "format",
3050     "fmod(double, double)",
3051     (char*)NULL };
3053 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3055  *  Description of Isc_Omits_With_Stdc fix
3056  */
3057 tSCC zIsc_Omits_With_StdcName[] =
3058      "isc_omits_with_stdc";
3061  *  File name selection pattern
3062  */
3063 tSCC zIsc_Omits_With_StdcList[] =
3064   "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
3066  *  Machine/OS name selection pattern
3067  */
3068 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
3071  *  content selection pattern - do fix if pattern found
3072  */
3073 tSCC zIsc_Omits_With_StdcSelect0[] =
3074        "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
3076 #define    ISC_OMITS_WITH_STDC_TEST_CT  1
3077 static tTestDesc aIsc_Omits_With_StdcTests[] = {
3078   { TT_EGREP,    zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
3081  *  Fix Command Arguments for Isc_Omits_With_Stdc
3082  */
3083 static const char* apzIsc_Omits_With_StdcPatch[] = {
3084     "format",
3085     "!defined(_POSIX_SOURCE)",
3086     (char*)NULL };
3088 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3090  *  Description of Kandr_Concat fix
3091  */
3092 tSCC zKandr_ConcatName[] =
3093      "kandr_concat";
3096  *  File name selection pattern
3097  */
3098 tSCC zKandr_ConcatList[] =
3099   "|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|";
3101  *  Machine/OS name selection pattern
3102  */
3103 #define apzKandr_ConcatMachs (const char**)NULL
3106  *  content selection pattern - do fix if pattern found
3107  */
3108 tSCC zKandr_ConcatSelect0[] =
3109        "/\\*\\*/";
3111 #define    KANDR_CONCAT_TEST_CT  1
3112 static tTestDesc aKandr_ConcatTests[] = {
3113   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
3116  *  Fix Command Arguments for Kandr_Concat
3117  */
3118 static const char* apzKandr_ConcatPatch[] = {
3119     "format",
3120     "##",
3121     (char*)NULL };
3123 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3125  *  Description of Libc1_G_Va_List fix
3126  */
3127 tSCC zLibc1_G_Va_ListName[] =
3128      "libc1_G_va_list";
3131  *  File name selection pattern
3132  */
3133 tSCC zLibc1_G_Va_ListList[] =
3134   "|_G_config.h|";
3136  *  Machine/OS name selection pattern
3137  */
3138 tSCC* apzLibc1_G_Va_ListMachs[] = {
3139         "*-*-linux*libc1",
3140         (const char*)NULL };
3143  *  content selection pattern - do fix if pattern found
3144  */
3145 tSCC zLibc1_G_Va_ListSelect0[] =
3146        "typedef void \\* _G_va_list;";
3148 #define    LIBC1_G_VA_LIST_TEST_CT  1
3149 static tTestDesc aLibc1_G_Va_ListTests[] = {
3150   { TT_EGREP,    zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
3153  *  Fix Command Arguments for Libc1_G_Va_List
3154  */
3155 static const char* apzLibc1_G_Va_ListPatch[] = {
3156     "format",
3157     "typedef __builtin_va_list _G_va_list;",
3158     (char*)NULL };
3160 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3162  *  Description of Libc1_Ifdefd_Memx fix
3163  */
3164 tSCC zLibc1_Ifdefd_MemxName[] =
3165      "libc1_ifdefd_memx";
3168  *  File name selection pattern
3169  */
3170 tSCC zLibc1_Ifdefd_MemxList[] =
3171   "|testing.h|string.h|";
3173  *  Machine/OS name selection pattern
3174  */
3175 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
3178  *  content selection pattern - do fix if pattern found
3179  */
3180 tSCC zLibc1_Ifdefd_MemxSelect0[] =
3181        "' is a built-in function for gcc 2\\.x\\. \\*/";
3184  *  content bypass pattern - skip fix if pattern found
3185  */
3186 tSCC zLibc1_Ifdefd_MemxBypass0[] =
3187        "__cplusplus";
3189 #define    LIBC1_IFDEFD_MEMX_TEST_CT  2
3190 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
3191   { TT_NEGREP,   zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
3192   { TT_EGREP,    zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
3195  *  Fix Command Arguments for Libc1_Ifdefd_Memx
3196  */
3197 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
3198     "format",
3199     "%1",
3200     "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
3201 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
3202 (/\\* .* \\*/\n\
3203 extern [a-z_]+ mem.*(\n\
3204 [^#].*)*;)\n\
3205 #endif",
3206     (char*)NULL };
3208 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3210  *  Description of Limits_Ifndefs fix
3211  */
3212 tSCC zLimits_IfndefsName[] =
3213      "limits_ifndefs";
3216  *  File name selection pattern
3217  */
3218 tSCC zLimits_IfndefsList[] =
3219   "|sys/limits.h|limits.h|";
3221  *  Machine/OS name selection pattern
3222  */
3223 #define apzLimits_IfndefsMachs (const char**)NULL
3226  *  content selection pattern - do fix if pattern found
3227  */
3228 tSCC zLimits_IfndefsSelect0[] =
3229        "^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*";
3232  *  content bypass pattern - skip fix if pattern found
3233  */
3234 tSCC zLimits_IfndefsBypass0[] =
3235        "ifndef[ \t]+FLT_(MIN|MAX)";
3237 #define    LIMITS_IFNDEFS_TEST_CT  2
3238 static tTestDesc aLimits_IfndefsTests[] = {
3239   { TT_NEGREP,   zLimits_IfndefsBypass0, (regex_t*)NULL },
3240   { TT_EGREP,    zLimits_IfndefsSelect0, (regex_t*)NULL }, };
3243  *  Fix Command Arguments for Limits_Ifndefs
3244  */
3245 static const char* apzLimits_IfndefsPatch[] = {
3246     "format",
3247     "#ifndef %1\n\
3248 %0\n\
3249 #endif",
3250     (char*)NULL };
3252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3254  *  Description of Lynx_Void_Int fix
3255  */
3256 tSCC zLynx_Void_IntName[] =
3257      "lynx_void_int";
3260  *  File name selection pattern
3261  */
3262 tSCC zLynx_Void_IntList[] =
3263   "|curses.h|";
3265  *  Machine/OS name selection pattern
3266  */
3267 #define apzLynx_Void_IntMachs (const char**)NULL
3270  *  content selection pattern - do fix if pattern found
3271  */
3272 tSCC zLynx_Void_IntSelect0[] =
3273        "#[ \t]*define[ \t]+void[ \t]+int[ \t]*";
3275 #define    LYNX_VOID_INT_TEST_CT  1
3276 static tTestDesc aLynx_Void_IntTests[] = {
3277   { TT_EGREP,    zLynx_Void_IntSelect0, (regex_t*)NULL }, };
3280  *  Fix Command Arguments for Lynx_Void_Int
3281  */
3282 static const char* apzLynx_Void_IntPatch[] = {
3283     "format",
3284     "",
3285     (char*)NULL };
3287 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3289  *  Description of Lynxos_Fcntl_Proto fix
3290  */
3291 tSCC zLynxos_Fcntl_ProtoName[] =
3292      "lynxos_fcntl_proto";
3295  *  File name selection pattern
3296  */
3297 tSCC zLynxos_Fcntl_ProtoList[] =
3298   "|fcntl.h|";
3300  *  Machine/OS name selection pattern
3301  */
3302 #define apzLynxos_Fcntl_ProtoMachs (const char**)NULL
3305  *  content selection pattern - do fix if pattern found
3306  */
3307 tSCC zLynxos_Fcntl_ProtoSelect0[] =
3308        "fcntl[ \t]*\\(int, int, int\\)";
3310 #define    LYNXOS_FCNTL_PROTO_TEST_CT  1
3311 static tTestDesc aLynxos_Fcntl_ProtoTests[] = {
3312   { TT_EGREP,    zLynxos_Fcntl_ProtoSelect0, (regex_t*)NULL }, };
3315  *  Fix Command Arguments for Lynxos_Fcntl_Proto
3316  */
3317 static const char* apzLynxos_Fcntl_ProtoPatch[] = {
3318     "format",
3319     "%1...)",
3320     "(fcntl[ \t]*\\(int, int, )int\\)",
3321     (char*)NULL };
3323 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3325  *  Description of Machine_Ansi_H_Va_List fix
3326  */
3327 tSCC zMachine_Ansi_H_Va_ListName[] =
3328      "machine_ansi_h_va_list";
3331  *  File name selection pattern
3332  */
3333 #define zMachine_Ansi_H_Va_ListList (char*)NULL
3335  *  Machine/OS name selection pattern
3336  */
3337 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
3340  *  content selection pattern - do fix if pattern found
3341  */
3342 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
3343        "define[ \t]+_BSD_VA_LIST_[ \t]";
3346  *  content bypass pattern - skip fix if pattern found
3347  */
3348 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
3349        "__builtin_va_list";
3351 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
3352 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
3353   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
3354   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
3357  *  Fix Command Arguments for Machine_Ansi_H_Va_List
3358  */
3359 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
3360     "format",
3361     "%1__builtin_va_list",
3362     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
3363     (char*)NULL };
3365 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3367  *  Description of Machine_Name fix
3368  */
3369 tSCC zMachine_NameName[] =
3370      "machine_name";
3373  *  File name selection pattern
3374  */
3375 #define zMachine_NameList (char*)NULL
3377  *  Machine/OS name selection pattern
3378  */
3379 #define apzMachine_NameMachs (const char**)NULL
3382  *  perform the C function call test
3383  */
3384 tSCC zMachine_NameFTst0[] = "machine_name";
3386 #define    MACHINE_NAME_TEST_CT  1
3387 static tTestDesc aMachine_NameTests[] = {
3388   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
3391  *  Fix Command Arguments for Machine_Name
3392  */
3393 static const char* apzMachine_NamePatch[] = {
3394     "machine_name",
3395     (char*)NULL };
3397 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3399  *  Description of Math_Exception fix
3400  */
3401 tSCC zMath_ExceptionName[] =
3402      "math_exception";
3405  *  File name selection pattern
3406  */
3407 tSCC zMath_ExceptionList[] =
3408   "|math.h|";
3410  *  Machine/OS name selection pattern
3411  */
3412 #define apzMath_ExceptionMachs (const char**)NULL
3415  *  content selection pattern - do fix if pattern found
3416  */
3417 tSCC zMath_ExceptionSelect0[] =
3418        "struct exception";
3421  *  content bypass pattern - skip fix if pattern found
3422  */
3423 tSCC zMath_ExceptionBypass0[] =
3424        "We have a problem when using C\\+\\+";
3426 #define    MATH_EXCEPTION_TEST_CT  2
3427 static tTestDesc aMath_ExceptionTests[] = {
3428   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
3429   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
3432  *  Fix Command Arguments for Math_Exception
3433  */
3434 static const char* apzMath_ExceptionPatch[] = {
3435     "wrap",
3436     "#ifdef __cplusplus\n\
3437 #define exception __math_exception\n\
3438 #endif\n",
3439     "#ifdef __cplusplus\n\
3440 #undef exception\n\
3441 #endif\n",
3442     (char*)NULL };
3444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3446  *  Description of Math_Huge_Val_From_Dbl_Max fix
3447  */
3448 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
3449      "math_huge_val_from_dbl_max";
3452  *  File name selection pattern
3453  */
3454 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
3455   "|math.h|";
3457  *  Machine/OS name selection pattern
3458  */
3459 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
3462  *  content selection pattern - do fix if pattern found
3463  */
3464 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
3465        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
3468  *  content bypass pattern - skip fix if pattern found
3469  */
3470 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
3471        "define[ \t]+DBL_MAX";
3473 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
3474 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
3475   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
3476   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
3479  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
3480  */
3481 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
3482     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
3483 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
3484 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
3485 \telse cat\n\
3486 \tfi",
3487     (char*)NULL };
3489 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3491  *  Description of Math_Huge_Val_Ifndef fix
3492  */
3493 tSCC zMath_Huge_Val_IfndefName[] =
3494      "math_huge_val_ifndef";
3497  *  File name selection pattern
3498  */
3499 tSCC zMath_Huge_Val_IfndefList[] =
3500   "|math.h|math/math.h|";
3502  *  Machine/OS name selection pattern
3503  */
3504 #define apzMath_Huge_Val_IfndefMachs (const char**)NULL
3507  *  content selection pattern - do fix if pattern found
3508  */
3509 tSCC zMath_Huge_Val_IfndefSelect0[] =
3510        "define[ \t]+HUGE_VAL";
3512 #define    MATH_HUGE_VAL_IFNDEF_TEST_CT  1
3513 static tTestDesc aMath_Huge_Val_IfndefTests[] = {
3514   { TT_EGREP,    zMath_Huge_Val_IfndefSelect0, (regex_t*)NULL }, };
3517  *  Fix Command Arguments for Math_Huge_Val_Ifndef
3518  */
3519 static const char* apzMath_Huge_Val_IfndefPatch[] = {
3520     "format",
3521     "#ifndef HUGE_VAL\n\
3522 %0\n\
3523 #endif",
3524     "^[ \t]*#[ \t]*define[ \t]+HUGE_VAL[ \t].*",
3525     (char*)NULL };
3527 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3529  *  Description of Nested_Auth_Des fix
3530  */
3531 tSCC zNested_Auth_DesName[] =
3532      "nested_auth_des";
3535  *  File name selection pattern
3536  */
3537 tSCC zNested_Auth_DesList[] =
3538   "|rpc/rpc.h|";
3540  *  Machine/OS name selection pattern
3541  */
3542 #define apzNested_Auth_DesMachs (const char**)NULL
3545  *  content selection pattern - do fix if pattern found
3546  */
3547 tSCC zNested_Auth_DesSelect0[] =
3548        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
3550 #define    NESTED_AUTH_DES_TEST_CT  1
3551 static tTestDesc aNested_Auth_DesTests[] = {
3552   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
3555  *  Fix Command Arguments for Nested_Auth_Des
3556  */
3557 static const char* apzNested_Auth_DesPatch[] = {
3558     "format",
3559     "%1*/ /*",
3560     (char*)NULL };
3562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3564  *  Description of Nested_Motorola fix
3565  */
3566 tSCC zNested_MotorolaName[] =
3567      "nested_motorola";
3570  *  File name selection pattern
3571  */
3572 tSCC zNested_MotorolaList[] =
3573   "|sys/limits.h|limits.h|";
3575  *  Machine/OS name selection pattern
3576  */
3577 tSCC* apzNested_MotorolaMachs[] = {
3578         "m68k-motorola-sysv*",
3579         (const char*)NULL };
3582  *  content selection pattern - do fix if pattern found
3583  */
3584 tSCC zNested_MotorolaSelect0[] =
3585        "max # bytes atomic in write|error value returned by Math lib";
3587 #define    NESTED_MOTOROLA_TEST_CT  1
3588 static tTestDesc aNested_MotorolaTests[] = {
3589   { TT_EGREP,    zNested_MotorolaSelect0, (regex_t*)NULL }, };
3592  *  Fix Command Arguments for Nested_Motorola
3593  */
3594 static const char* apzNested_MotorolaPatch[] = { "sed",
3595     "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
3596     "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
3597     (char*)NULL };
3599 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3601  *  Description of Nested_Sys_Limits fix
3602  */
3603 tSCC zNested_Sys_LimitsName[] =
3604      "nested_sys_limits";
3607  *  File name selection pattern
3608  */
3609 tSCC zNested_Sys_LimitsList[] =
3610   "|sys/limits.h|";
3612  *  Machine/OS name selection pattern
3613  */
3614 #define apzNested_Sys_LimitsMachs (const char**)NULL
3617  *  content selection pattern - do fix if pattern found
3618  */
3619 tSCC zNested_Sys_LimitsSelect0[] =
3620        "CHILD_MAX";
3622 #define    NESTED_SYS_LIMITS_TEST_CT  1
3623 static tTestDesc aNested_Sys_LimitsTests[] = {
3624   { TT_EGREP,    zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
3627  *  Fix Command Arguments for Nested_Sys_Limits
3628  */
3629 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
3630     "-e", "/CHILD_MAX/s,/\\* Max, Max,",
3631     "-e", "/OPEN_MAX/s,/\\* Max, Max,",
3632     (char*)NULL };
3634 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3636  *  Description of Netbsd_Extra_Semicolon fix
3637  */
3638 tSCC zNetbsd_Extra_SemicolonName[] =
3639      "netbsd_extra_semicolon";
3642  *  File name selection pattern
3643  */
3644 tSCC zNetbsd_Extra_SemicolonList[] =
3645   "|sys/cdefs.h|";
3647  *  Machine/OS name selection pattern
3648  */
3649 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
3650         "*-*-netbsd*",
3651         (const char*)NULL };
3654  *  content selection pattern - do fix if pattern found
3655  */
3656 tSCC zNetbsd_Extra_SemicolonSelect0[] =
3657        "#define[ \t]*__END_DECLS[ \t]*};";
3659 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
3660 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
3661   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
3664  *  Fix Command Arguments for Netbsd_Extra_Semicolon
3665  */
3666 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
3667     "format",
3668     "#define __END_DECLS }",
3669     (char*)NULL };
3671 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3673  *  Description of Next_Math_Prefix fix
3674  */
3675 tSCC zNext_Math_PrefixName[] =
3676      "next_math_prefix";
3679  *  File name selection pattern
3680  */
3681 tSCC zNext_Math_PrefixList[] =
3682   "|ansi/math.h|";
3684  *  Machine/OS name selection pattern
3685  */
3686 #define apzNext_Math_PrefixMachs (const char**)NULL
3689  *  content selection pattern - do fix if pattern found
3690  */
3691 tSCC zNext_Math_PrefixSelect0[] =
3692        "^extern[ \t]+double[ \t]+__const__[ \t]";
3694 #define    NEXT_MATH_PREFIX_TEST_CT  1
3695 static tTestDesc aNext_Math_PrefixTests[] = {
3696   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
3699  *  Fix Command Arguments for Next_Math_Prefix
3700  */
3701 static const char* apzNext_Math_PrefixPatch[] = {
3702     "format",
3703     "extern double %1(",
3704     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
3705     (char*)NULL };
3707 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3709  *  Description of Next_Template fix
3710  */
3711 tSCC zNext_TemplateName[] =
3712      "next_template";
3715  *  File name selection pattern
3716  */
3717 tSCC zNext_TemplateList[] =
3718   "|bsd/libc.h|";
3720  *  Machine/OS name selection pattern
3721  */
3722 #define apzNext_TemplateMachs (const char**)NULL
3725  *  content selection pattern - do fix if pattern found
3726  */
3727 tSCC zNext_TemplateSelect0[] =
3728        "[ \t]template\\)";
3730 #define    NEXT_TEMPLATE_TEST_CT  1
3731 static tTestDesc aNext_TemplateTests[] = {
3732   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
3735  *  Fix Command Arguments for Next_Template
3736  */
3737 static const char* apzNext_TemplatePatch[] = {
3738     "format",
3739     "(%1)",
3740     "\\(([^)]*)[ \t]template\\)",
3741     (char*)NULL };
3743 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3745  *  Description of Next_Volitile fix
3746  */
3747 tSCC zNext_VolitileName[] =
3748      "next_volitile";
3751  *  File name selection pattern
3752  */
3753 tSCC zNext_VolitileList[] =
3754   "|ansi/stdlib.h|";
3756  *  Machine/OS name selection pattern
3757  */
3758 #define apzNext_VolitileMachs (const char**)NULL
3761  *  content selection pattern - do fix if pattern found
3762  */
3763 tSCC zNext_VolitileSelect0[] =
3764        "^extern[ \t]+volatile[ \t]+void[ \t]";
3766 #define    NEXT_VOLITILE_TEST_CT  1
3767 static tTestDesc aNext_VolitileTests[] = {
3768   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
3771  *  Fix Command Arguments for Next_Volitile
3772  */
3773 static const char* apzNext_VolitilePatch[] = {
3774     "format",
3775     "extern void %1(",
3776     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
3777     (char*)NULL };
3779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3781  *  Description of Next_Wait_Union fix
3782  */
3783 tSCC zNext_Wait_UnionName[] =
3784      "next_wait_union";
3787  *  File name selection pattern
3788  */
3789 tSCC zNext_Wait_UnionList[] =
3790   "|sys/wait.h|";
3792  *  Machine/OS name selection pattern
3793  */
3794 #define apzNext_Wait_UnionMachs (const char**)NULL
3797  *  content selection pattern - do fix if pattern found
3798  */
3799 tSCC zNext_Wait_UnionSelect0[] =
3800        "wait\\(union wait";
3802 #define    NEXT_WAIT_UNION_TEST_CT  1
3803 static tTestDesc aNext_Wait_UnionTests[] = {
3804   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
3807  *  Fix Command Arguments for Next_Wait_Union
3808  */
3809 static const char* apzNext_Wait_UnionPatch[] = {
3810     "format",
3811     "wait(void",
3812     (char*)NULL };
3814 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3816  *  Description of Nodeent_Syntax fix
3817  */
3818 tSCC zNodeent_SyntaxName[] =
3819      "nodeent_syntax";
3822  *  File name selection pattern
3823  */
3824 tSCC zNodeent_SyntaxList[] =
3825   "|netdnet/dnetdb.h|";
3827  *  Machine/OS name selection pattern
3828  */
3829 #define apzNodeent_SyntaxMachs (const char**)NULL
3832  *  content selection pattern - do fix if pattern found
3833  */
3834 tSCC zNodeent_SyntaxSelect0[] =
3835        "char[ \t]*\\*na_addr[ \t]*$";
3837 #define    NODEENT_SYNTAX_TEST_CT  1
3838 static tTestDesc aNodeent_SyntaxTests[] = {
3839   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
3842  *  Fix Command Arguments for Nodeent_Syntax
3843  */
3844 static const char* apzNodeent_SyntaxPatch[] = {
3845     "format",
3846     "%0;",
3847     (char*)NULL };
3849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3851  *  Description of Obstack_Lvalue_Cast fix
3852  */
3853 tSCC zObstack_Lvalue_CastName[] =
3854      "obstack_lvalue_cast";
3857  *  File name selection pattern
3858  */
3859 tSCC zObstack_Lvalue_CastList[] =
3860   "|obstack.h|";
3862  *  Machine/OS name selection pattern
3863  */
3864 #define apzObstack_Lvalue_CastMachs (const char**)NULL
3867  *  content selection pattern - do fix if pattern found
3868  */
3869 tSCC zObstack_Lvalue_CastSelect0[] =
3870        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
3872 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
3873 static tTestDesc aObstack_Lvalue_CastTests[] = {
3874   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
3877  *  Fix Command Arguments for Obstack_Lvalue_Cast
3878  */
3879 static const char* apzObstack_Lvalue_CastPatch[] = {
3880     "format",
3881     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
3882     (char*)NULL };
3884 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3886  *  Description of Osf_Namespace_A fix
3887  */
3888 tSCC zOsf_Namespace_AName[] =
3889      "osf_namespace_a";
3892  *  File name selection pattern
3893  */
3894 tSCC zOsf_Namespace_AList[] =
3895   "|reg_types.h|sys/lc_core.h|";
3897  *  Machine/OS name selection pattern
3898  */
3899 #define apzOsf_Namespace_AMachs (const char**)NULL
3902  *  perform the 'test' shell command - do fix on success
3903  */
3904 tSCC zOsf_Namespace_ATest0[] =
3905        " -r reg_types.h";
3906 tSCC zOsf_Namespace_ATest1[] =
3907        " -r sys/lc_core.h";
3908 tSCC zOsf_Namespace_ATest2[] =
3909        " -n \"`grep '} regex_t;' reg_types.h`\"";
3910 tSCC zOsf_Namespace_ATest3[] =
3911        " -z \"`grep __regex_t regex.h`\"";
3913 #define    OSF_NAMESPACE_A_TEST_CT  4
3914 static tTestDesc aOsf_Namespace_ATests[] = {
3915   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
3916   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
3917   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
3918   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
3921  *  Fix Command Arguments for Osf_Namespace_A
3922  */
3923 static const char* apzOsf_Namespace_APatch[] = {
3924     "format",
3925     "__%0",
3926     "reg(ex|off|match)_t",
3927     (char*)NULL };
3929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3931  *  Description of Osf_Namespace_C fix
3932  */
3933 tSCC zOsf_Namespace_CName[] =
3934      "osf_namespace_c";
3937  *  File name selection pattern
3938  */
3939 tSCC zOsf_Namespace_CList[] =
3940   "|regex.h|";
3942  *  Machine/OS name selection pattern
3943  */
3944 #define apzOsf_Namespace_CMachs (const char**)NULL
3947  *  content selection pattern - do fix if pattern found
3948  */
3949 tSCC zOsf_Namespace_CSelect0[] =
3950        "#include <reg_types.h>.*";
3953  *  perform the 'test' shell command - do fix on success
3954  */
3955 tSCC zOsf_Namespace_CTest0[] =
3956        " -r reg_types.h";
3957 tSCC zOsf_Namespace_CTest1[] =
3958        " -r sys/lc_core.h";
3959 tSCC zOsf_Namespace_CTest2[] =
3960        " -n \"`grep '} regex_t;' reg_types.h`\"";
3961 tSCC zOsf_Namespace_CTest3[] =
3962        " -z \"`grep __regex_t regex.h`\"";
3964 #define    OSF_NAMESPACE_C_TEST_CT  5
3965 static tTestDesc aOsf_Namespace_CTests[] = {
3966   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
3967   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
3968   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
3969   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
3970   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
3973  *  Fix Command Arguments for Osf_Namespace_C
3974  */
3975 static const char* apzOsf_Namespace_CPatch[] = {
3976     "format",
3977     "%0\n\
3978 typedef __regex_t\tregex_t;\n\
3979 typedef __regoff_t\tregoff_t;\n\
3980 typedef __regmatch_t\tregmatch_t;",
3981     (char*)NULL };
3983 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3985  *  Description of Pthread_Page_Size fix
3986  */
3987 tSCC zPthread_Page_SizeName[] =
3988      "pthread_page_size";
3991  *  File name selection pattern
3992  */
3993 tSCC zPthread_Page_SizeList[] =
3994   "|pthread.h|";
3996  *  Machine/OS name selection pattern
3997  */
3998 #define apzPthread_Page_SizeMachs (const char**)NULL
4001  *  content selection pattern - do fix if pattern found
4002  */
4003 tSCC zPthread_Page_SizeSelect0[] =
4004        "^int __page_size";
4006 #define    PTHREAD_PAGE_SIZE_TEST_CT  1
4007 static tTestDesc aPthread_Page_SizeTests[] = {
4008   { TT_EGREP,    zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
4011  *  Fix Command Arguments for Pthread_Page_Size
4012  */
4013 static const char* apzPthread_Page_SizePatch[] = {
4014     "format",
4015     "extern %0",
4016     (char*)NULL };
4018 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4020  *  Description of Read_Ret_Type fix
4021  */
4022 tSCC zRead_Ret_TypeName[] =
4023      "read_ret_type";
4026  *  File name selection pattern
4027  */
4028 tSCC zRead_Ret_TypeList[] =
4029   "|stdio.h|";
4031  *  Machine/OS name selection pattern
4032  */
4033 #define apzRead_Ret_TypeMachs (const char**)NULL
4036  *  content selection pattern - do fix if pattern found
4037  */
4038 tSCC zRead_Ret_TypeSelect0[] =
4039        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
4041 #define    READ_RET_TYPE_TEST_CT  1
4042 static tTestDesc aRead_Ret_TypeTests[] = {
4043   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
4046  *  Fix Command Arguments for Read_Ret_Type
4047  */
4048 static const char* apzRead_Ret_TypePatch[] = {
4049     "format",
4050     "extern unsigned int fread(), fwrite();\n\
4051 %1%2",
4052     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
4053     (char*)NULL };
4055 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4057  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
4058  */
4059 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
4060      "rpc_xdr_lvalue_cast_a";
4063  *  File name selection pattern
4064  */
4065 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
4066   "|rpc/xdr.h|";
4068  *  Machine/OS name selection pattern
4069  */
4070 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
4073  *  content selection pattern - do fix if pattern found
4074  */
4075 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
4076        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
4077 .*__extension__.*";
4079 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
4080 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
4081   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
4084  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
4085  */
4086 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
4087     "format",
4088     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
4089     (char*)NULL };
4091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4093  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
4094  */
4095 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
4096      "rpc_xdr_lvalue_cast_b";
4099  *  File name selection pattern
4100  */
4101 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
4102   "|rpc/xdr.h|";
4104  *  Machine/OS name selection pattern
4105  */
4106 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
4109  *  content selection pattern - do fix if pattern found
4110  */
4111 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
4112        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
4113 .*__extension__.*";
4115 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
4116 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
4117   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
4120  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
4121  */
4122 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
4123     "format",
4124     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
4125     (char*)NULL };
4127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4129  *  Description of Rs6000_Double fix
4130  */
4131 tSCC zRs6000_DoubleName[] =
4132      "rs6000_double";
4135  *  File name selection pattern
4136  */
4137 tSCC zRs6000_DoubleList[] =
4138   "|math.h|";
4140  *  Machine/OS name selection pattern
4141  */
4142 #define apzRs6000_DoubleMachs (const char**)NULL
4145  *  content selection pattern - do fix if pattern found
4146  */
4147 tSCC zRs6000_DoubleSelect0[] =
4148        "[^a-zA-Z_]class\\(";
4150 #define    RS6000_DOUBLE_TEST_CT  1
4151 static tTestDesc aRs6000_DoubleTests[] = {
4152   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
4155  *  Fix Command Arguments for Rs6000_Double
4156  */
4157 static const char* apzRs6000_DoublePatch[] = {
4158     "format",
4159     "#ifndef __cplusplus\n\
4160 %0\n\
4161 #endif",
4162     "^.*[^a-zA-Z_]class\\(.*",
4163     (char*)NULL };
4165 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4167  *  Description of Rs6000_Fchmod fix
4168  */
4169 tSCC zRs6000_FchmodName[] =
4170      "rs6000_fchmod";
4173  *  File name selection pattern
4174  */
4175 tSCC zRs6000_FchmodList[] =
4176   "|sys/stat.h|";
4178  *  Machine/OS name selection pattern
4179  */
4180 #define apzRs6000_FchmodMachs (const char**)NULL
4183  *  content selection pattern - do fix if pattern found
4184  */
4185 tSCC zRs6000_FchmodSelect0[] =
4186        "fchmod\\(char \\*";
4188 #define    RS6000_FCHMOD_TEST_CT  1
4189 static tTestDesc aRs6000_FchmodTests[] = {
4190   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
4193  *  Fix Command Arguments for Rs6000_Fchmod
4194  */
4195 static const char* apzRs6000_FchmodPatch[] = {
4196     "format",
4197     "fchmod(int",
4198     (char*)NULL };
4200 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4202  *  Description of Rs6000_Param fix
4203  */
4204 tSCC zRs6000_ParamName[] =
4205      "rs6000_param";
4208  *  File name selection pattern
4209  */
4210 tSCC zRs6000_ParamList[] =
4211   "|stdio.h|unistd.h|";
4213  *  Machine/OS name selection pattern
4214  */
4215 #define apzRs6000_ParamMachs (const char**)NULL
4218  *  content selection pattern - do fix if pattern found
4219  */
4220 tSCC zRs6000_ParamSelect0[] =
4221        "rename\\(const char \\*old, const char \\*new\\)";
4223 #define    RS6000_PARAM_TEST_CT  1
4224 static tTestDesc aRs6000_ParamTests[] = {
4225   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
4228  *  Fix Command Arguments for Rs6000_Param
4229  */
4230 static const char* apzRs6000_ParamPatch[] = {
4231     "format",
4232     "rename(const char *_old, const char *_new)",
4233     (char*)NULL };
4235 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4237  *  Description of Sco_Math fix
4238  */
4239 tSCC zSco_MathName[] =
4240      "sco_math";
4243  *  File name selection pattern
4244  */
4245 tSCC zSco_MathList[] =
4246   "|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|";
4248  *  Machine/OS name selection pattern
4249  */
4250 #define apzSco_MathMachs (const char**)NULL
4253  *  content selection pattern - do fix if pattern found
4254  */
4255 tSCC zSco_MathSelect0[] =
4256        "inline double abs";
4258 #define    SCO_MATH_TEST_CT  1
4259 static tTestDesc aSco_MathTests[] = {
4260   { TT_EGREP,    zSco_MathSelect0, (regex_t*)NULL }, };
4263  *  Fix Command Arguments for Sco_Math
4264  */
4265 static const char* apzSco_MathPatch[] = { "sed",
4266     "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
4267 #ifndef __GNUC__\n",
4268     "-e", "/.*__builtin_generic/a\\\n\
4269 #else\\\n\
4270 #define __fp_class(a) \\\\\\\n\
4271   __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
4272    __fpclassifyl(a), \\\\\\\n\
4273     __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
4274       __fpclassifyf(a),__fpclassify(a)))\\\n\
4275 #endif",
4276     "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
4277 #ifndef __GNUC__\n",
4278     "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
4279 #endif /* ! __GNUC__ */",
4280     (char*)NULL };
4282 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4284  *  Description of Sco_Regset fix
4285  */
4286 tSCC zSco_RegsetName[] =
4287      "sco_regset";
4290  *  File name selection pattern
4291  */
4292 tSCC zSco_RegsetList[] =
4293   "|sys/regset.h|";
4295  *  Machine/OS name selection pattern
4296  */
4297 tSCC* apzSco_RegsetMachs[] = {
4298         "*-*-sco3.2v5*",
4299         (const char*)NULL };
4302  *  content selection pattern - do fix if pattern found
4303  */
4304 tSCC zSco_RegsetSelect0[] =
4305        "(struct[ \t]+.*)fpstate";
4307 #define    SCO_REGSET_TEST_CT  1
4308 static tTestDesc aSco_RegsetTests[] = {
4309   { TT_EGREP,    zSco_RegsetSelect0, (regex_t*)NULL }, };
4312  *  Fix Command Arguments for Sco_Regset
4313  */
4314 static const char* apzSco_RegsetPatch[] = {
4315     "format",
4316     "%1rsfpstate",
4317     (char*)NULL };
4319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4321  *  Description of Sco_Static_Func fix
4322  */
4323 tSCC zSco_Static_FuncName[] =
4324      "sco_static_func";
4327  *  File name selection pattern
4328  */
4329 tSCC zSco_Static_FuncList[] =
4330   "|sys/stat.h|";
4332  *  Machine/OS name selection pattern
4333  */
4334 tSCC* apzSco_Static_FuncMachs[] = {
4335         "i?86-*-sco3.2*",
4336         (const char*)NULL };
4339  *  content selection pattern - do fix if pattern found
4340  */
4341 tSCC zSco_Static_FuncSelect0[] =
4342        "^static int";
4344 #define    SCO_STATIC_FUNC_TEST_CT  1
4345 static tTestDesc aSco_Static_FuncTests[] = {
4346   { TT_EGREP,    zSco_Static_FuncSelect0, (regex_t*)NULL }, };
4349  *  Fix Command Arguments for Sco_Static_Func
4350  */
4351 static const char* apzSco_Static_FuncPatch[] = { "sed",
4352     "-e", "/^static int/i\\\n\
4353 #if __cplusplus\\\n\
4354 extern \"C\" {\\\n\
4355 #endif /* __cplusplus */",
4356     "-e", "/^}$/a\\\n\
4357 #if __cplusplus\\\n\
4358  }\\\n\
4359 #endif /* __cplusplus */",
4360     (char*)NULL };
4362 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4364  *  Description of Sco_Utime fix
4365  */
4366 tSCC zSco_UtimeName[] =
4367      "sco_utime";
4370  *  File name selection pattern
4371  */
4372 tSCC zSco_UtimeList[] =
4373   "|sys/times.h|";
4375  *  Machine/OS name selection pattern
4376  */
4377 tSCC* apzSco_UtimeMachs[] = {
4378         "i?86-*-sco3.2v4*",
4379         (const char*)NULL };
4382  *  content selection pattern - do fix if pattern found
4383  */
4384 tSCC zSco_UtimeSelect0[] =
4385        "\\(const char \\*, struct utimbuf \\*\\);";
4387 #define    SCO_UTIME_TEST_CT  1
4388 static tTestDesc aSco_UtimeTests[] = {
4389   { TT_EGREP,    zSco_UtimeSelect0, (regex_t*)NULL }, };
4392  *  Fix Command Arguments for Sco_Utime
4393  */
4394 static const char* apzSco_UtimePatch[] = {
4395     "format",
4396     "(const char *, const struct utimbuf *);",
4397     (char*)NULL };
4399 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4401  *  Description of Solaris_Mutex_Init_1 fix
4402  */
4403 tSCC zSolaris_Mutex_Init_1Name[] =
4404      "solaris_mutex_init_1";
4407  *  File name selection pattern
4408  */
4409 tSCC zSolaris_Mutex_Init_1List[] =
4410   "|pthread.h|";
4412  *  Machine/OS name selection pattern
4413  */
4414 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
4417  *  content selection pattern - do fix if pattern found
4418  */
4419 tSCC zSolaris_Mutex_Init_1Select0[] =
4420        "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
4422 #define    SOLARIS_MUTEX_INIT_1_TEST_CT  1
4423 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
4424   { TT_EGREP,    zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
4427  *  Fix Command Arguments for Solaris_Mutex_Init_1
4428  */
4429 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
4430     "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
4431 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
4432     (char*)NULL };
4434 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4436  *  Description of Solaris_Mutex_Init_2 fix
4437  */
4438 tSCC zSolaris_Mutex_Init_2Name[] =
4439      "solaris_mutex_init_2";
4442  *  File name selection pattern
4443  */
4444 tSCC zSolaris_Mutex_Init_2List[] =
4445   "|pthread.h|";
4447  *  Machine/OS name selection pattern
4448  */
4449 #define apzSolaris_Mutex_Init_2Machs (const char**)NULL
4452  *  content selection pattern - do fix if pattern found
4453  */
4454 tSCC zSolaris_Mutex_Init_2Select0[] =
4455        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
4457 #define    SOLARIS_MUTEX_INIT_2_TEST_CT  1
4458 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
4459   { TT_EGREP,    zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
4462  *  Fix Command Arguments for Solaris_Mutex_Init_2
4463  */
4464 static const char* apzSolaris_Mutex_Init_2Patch[] = {
4465     "format",
4466     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
4467 %0\n\
4468 #else\n\
4469 %1, {0}}%3\n\
4470 #endif",
4471     "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+\\{.*),[ \t]*0\\}(|[ \t].*)$",
4472     (char*)NULL };
4474 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4476  *  Description of Solaris_Socket fix
4477  */
4478 tSCC zSolaris_SocketName[] =
4479      "solaris_socket";
4482  *  File name selection pattern
4483  */
4484 tSCC zSolaris_SocketList[] =
4485   "|sys/socket.h|";
4487  *  Machine/OS name selection pattern
4488  */
4489 #define apzSolaris_SocketMachs (const char**)NULL
4492  *  content selection pattern - do fix if pattern found
4493  */
4494 tSCC zSolaris_SocketSelect0[] =
4495        "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
4497 #define    SOLARIS_SOCKET_TEST_CT  1
4498 static tTestDesc aSolaris_SocketTests[] = {
4499   { TT_EGREP,    zSolaris_SocketSelect0, (regex_t*)NULL }, };
4502  *  Fix Command Arguments for Solaris_Socket
4503  */
4504 static const char* apzSolaris_SocketPatch[] = {
4505     "format",
4506     "extern int %1(int, %2void *, int, int);",
4507     "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
4508     (char*)NULL };
4510 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4512  *  Description of Solaris_Stdio_Tag fix
4513  */
4514 tSCC zSolaris_Stdio_TagName[] =
4515      "solaris_stdio_tag";
4518  *  File name selection pattern
4519  */
4520 tSCC zSolaris_Stdio_TagList[] =
4521   "|stdio_tag.h|";
4523  *  Machine/OS name selection pattern
4524  */
4525 #define apzSolaris_Stdio_TagMachs (const char**)NULL
4528  *  content selection pattern - do fix if pattern found
4529  */
4530 tSCC zSolaris_Stdio_TagSelect0[] =
4531        "__cplusplus < 54321L";
4533 #define    SOLARIS_STDIO_TAG_TEST_CT  1
4534 static tTestDesc aSolaris_Stdio_TagTests[] = {
4535   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
4538  *  Fix Command Arguments for Solaris_Stdio_Tag
4539  */
4540 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
4541     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
4542     (char*)NULL };
4544 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4546  *  Description of Solaris_Unistd fix
4547  */
4548 tSCC zSolaris_UnistdName[] =
4549      "solaris_unistd";
4552  *  File name selection pattern
4553  */
4554 tSCC zSolaris_UnistdList[] =
4555   "|unistd.h|";
4557  *  Machine/OS name selection pattern
4558  */
4559 #define apzSolaris_UnistdMachs (const char**)NULL
4562  *  content selection pattern - do fix if pattern found
4563  */
4564 tSCC zSolaris_UnistdSelect0[] =
4565        "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
4568  *  content bypass pattern - skip fix if pattern found
4569  */
4570 tSCC zSolaris_UnistdBypass0[] =
4571        "getpagesize";
4573 #define    SOLARIS_UNISTD_TEST_CT  2
4574 static tTestDesc aSolaris_UnistdTests[] = {
4575   { TT_NEGREP,   zSolaris_UnistdBypass0, (regex_t*)NULL },
4576   { TT_EGREP,    zSolaris_UnistdSelect0, (regex_t*)NULL }, };
4579  *  Fix Command Arguments for Solaris_Unistd
4580  */
4581 static const char* apzSolaris_UnistdPatch[] = {
4582     "format",
4583     "extern int getpagesize();\n\
4584 %0",
4585     "^extern (pid_t|int) getpgid\\(.*\\);",
4586     (char*)NULL };
4588 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4590  *  Description of Solaris_Widec fix
4591  */
4592 tSCC zSolaris_WidecName[] =
4593      "solaris_widec";
4596  *  File name selection pattern
4597  */
4598 tSCC zSolaris_WidecList[] =
4599   "|widec.h|";
4601  *  Machine/OS name selection pattern
4602  */
4603 tSCC* apzSolaris_WidecMachs[] = {
4604         "*-*-solaris2.[0-5]",
4605         "*-*-solaris2.[0-5].*",
4606         (const char*)NULL };
4609  *  content selection pattern - do fix if pattern found
4610  */
4611 tSCC zSolaris_WidecSelect0[] =
4612        "#include <euc.h>";
4615  *  content bypass pattern - skip fix if pattern found
4616  */
4617 tSCC zSolaris_WidecBypass0[] =
4618        "include.*wchar\\.h";
4620 #define    SOLARIS_WIDEC_TEST_CT  2
4621 static tTestDesc aSolaris_WidecTests[] = {
4622   { TT_NEGREP,   zSolaris_WidecBypass0, (regex_t*)NULL },
4623   { TT_EGREP,    zSolaris_WidecSelect0, (regex_t*)NULL }, };
4626  *  Fix Command Arguments for Solaris_Widec
4627  */
4628 static const char* apzSolaris_WidecPatch[] = {
4629     "format",
4630     "%0\n\
4631 #include <wchar.h>",
4632     (char*)NULL };
4634 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4636  *  Description of Statsswtch fix
4637  */
4638 tSCC zStatsswtchName[] =
4639      "statsswtch";
4642  *  File name selection pattern
4643  */
4644 tSCC zStatsswtchList[] =
4645   "|rpcsvc/rstat.h|";
4647  *  Machine/OS name selection pattern
4648  */
4649 #define apzStatsswtchMachs (const char**)NULL
4652  *  content selection pattern - do fix if pattern found
4653  */
4654 tSCC zStatsswtchSelect0[] =
4655        "boottime$";
4657 #define    STATSSWTCH_TEST_CT  1
4658 static tTestDesc aStatsswtchTests[] = {
4659   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
4662  *  Fix Command Arguments for Statsswtch
4663  */
4664 static const char* apzStatsswtchPatch[] = {
4665     "format",
4666     "boottime;",
4667     (char*)NULL };
4669 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4671  *  Description of Stdio_Stdarg_H fix
4672  */
4673 tSCC zStdio_Stdarg_HName[] =
4674      "stdio_stdarg_h";
4677  *  File name selection pattern
4678  */
4679 tSCC zStdio_Stdarg_HList[] =
4680   "|stdio.h|";
4682  *  Machine/OS name selection pattern
4683  */
4684 #define apzStdio_Stdarg_HMachs (const char**)NULL
4687  *  content bypass pattern - skip fix if pattern found
4688  */
4689 tSCC zStdio_Stdarg_HBypass0[] =
4690        "include.*(stdarg.h|machine/ansi.h)";
4692 #define    STDIO_STDARG_H_TEST_CT  1
4693 static tTestDesc aStdio_Stdarg_HTests[] = {
4694   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
4697  *  Fix Command Arguments for Stdio_Stdarg_H
4698  */
4699 static const char* apzStdio_Stdarg_HPatch[] = {
4700     "wrap",
4701     "#define __need___va_list\n\
4702 #include <stdarg.h>\n",
4703     (char*)NULL };
4705 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4707  *  Description of Stdio_Va_List fix
4708  */
4709 tSCC zStdio_Va_ListName[] =
4710      "stdio_va_list";
4713  *  File name selection pattern
4714  */
4715 tSCC zStdio_Va_ListList[] =
4716   "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|";
4718  *  Machine/OS name selection pattern
4719  */
4720 #define apzStdio_Va_ListMachs (const char**)NULL
4723  *  content bypass pattern - skip fix if pattern found
4724  */
4725 tSCC zStdio_Va_ListBypass0[] =
4726        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
4728 #define    STDIO_VA_LIST_TEST_CT  1
4729 static tTestDesc aStdio_Va_ListTests[] = {
4730   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
4733  *  Fix Command Arguments for Stdio_Va_List
4734  */
4735 static const char* apzStdio_Va_ListPatch[] = { "sed",
4736     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
4737 s@(va_list)&@(__gnuc_va_list)\\&@\n\
4738 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
4739 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
4740 s@ va_list@ __not_va_list__@\n\
4741 s@\\*va_list@*__not_va_list__@\n\
4742 s@ __va_list)@ __gnuc_va_list)@\n\
4743 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
4744 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
4745 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
4746 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
4747 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
4748 s@VA_LIST@DUMMY_VA_LIST@\n\
4749 s@_Va_LIST@_VA_LIST@",
4750     (char*)NULL };
4752 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4754  *  Description of Strict_Ansi_Not fix
4755  */
4756 tSCC zStrict_Ansi_NotName[] =
4757      "strict_ansi_not";
4760  *  File name selection pattern
4761  */
4762 #define zStrict_Ansi_NotList (char*)NULL
4764  *  Machine/OS name selection pattern
4765  */
4766 #define apzStrict_Ansi_NotMachs (const char**)NULL
4769  *  content selection pattern - do fix if pattern found
4770  */
4771 tSCC zStrict_Ansi_NotSelect0[] =
4772        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
4775  *  content bypass pattern - skip fix if pattern found
4776  */
4777 tSCC zStrict_Ansi_NotBypass0[] =
4778        "GNU and MIPS C compilers define __STDC__ differently";
4779 tSCC zStrict_Ansi_NotBypass1[] =
4780        "__SCO_VERSION__.*__STDC__ != 1";
4783  *  perform the C function call test
4784  */
4785 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
4787 #define    STRICT_ANSI_NOT_TEST_CT  4
4788 static tTestDesc aStrict_Ansi_NotTests[] = {
4789   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
4790   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
4791   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
4792   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
4795  *  Fix Command Arguments for Strict_Ansi_Not
4796  */
4797 static const char* apzStrict_Ansi_NotPatch[] = {
4798     "format",
4799     "%1 !defined(__STRICT_ANSI__)",
4800     (char*)NULL };
4802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4804  *  Description of Strict_Ansi_Not_Ctd fix
4805  */
4806 tSCC zStrict_Ansi_Not_CtdName[] =
4807      "strict_ansi_not_ctd";
4810  *  File name selection pattern
4811  */
4812 tSCC zStrict_Ansi_Not_CtdList[] =
4813   "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
4815  *  Machine/OS name selection pattern
4816  */
4817 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
4820  *  content selection pattern - do fix if pattern found
4821  */
4822 tSCC zStrict_Ansi_Not_CtdSelect0[] =
4823        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
4826  *  perform the C function call test
4827  */
4828 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
4830 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
4831 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
4832   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
4833   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
4836  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
4837  */
4838 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
4839     "format",
4840     "%1 !defined(__STRICT_ANSI__)",
4841     (char*)NULL };
4843 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4845  *  Description of Strict_Ansi_Only fix
4846  */
4847 tSCC zStrict_Ansi_OnlyName[] =
4848      "strict_ansi_only";
4851  *  File name selection pattern
4852  */
4853 #define zStrict_Ansi_OnlyList (char*)NULL
4855  *  Machine/OS name selection pattern
4856  */
4857 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
4860  *  content selection pattern - do fix if pattern found
4861  */
4862 tSCC zStrict_Ansi_OnlySelect0[] =
4863        "^([ \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)";
4866  *  perform the C function call test
4867  */
4868 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
4870 #define    STRICT_ANSI_ONLY_TEST_CT  2
4871 static tTestDesc aStrict_Ansi_OnlyTests[] = {
4872   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
4873   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
4876  *  Fix Command Arguments for Strict_Ansi_Only
4877  */
4878 static const char* apzStrict_Ansi_OnlyPatch[] = {
4879     "format",
4880     "%1 defined(__STRICT_ANSI__)",
4881     (char*)NULL };
4883 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4885  *  Description of Struct_File fix
4886  */
4887 tSCC zStruct_FileName[] =
4888      "struct_file";
4891  *  File name selection pattern
4892  */
4893 tSCC zStruct_FileList[] =
4894   "|rpc/xdr.h|";
4896  *  Machine/OS name selection pattern
4897  */
4898 #define apzStruct_FileMachs (const char**)NULL
4901  *  content selection pattern - do fix if pattern found
4902  */
4903 tSCC zStruct_FileSelect0[] =
4904        "^.*xdrstdio_create.*struct __file_s";
4906 #define    STRUCT_FILE_TEST_CT  1
4907 static tTestDesc aStruct_FileTests[] = {
4908   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
4911  *  Fix Command Arguments for Struct_File
4912  */
4913 static const char* apzStruct_FilePatch[] = {
4914     "format",
4915     "struct __file_s;\n\
4916 %0",
4917     (char*)NULL };
4919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4921  *  Description of Struct_Sockaddr fix
4922  */
4923 tSCC zStruct_SockaddrName[] =
4924      "struct_sockaddr";
4927  *  File name selection pattern
4928  */
4929 tSCC zStruct_SockaddrList[] =
4930   "|rpc/auth.h|";
4932  *  Machine/OS name selection pattern
4933  */
4934 #define apzStruct_SockaddrMachs (const char**)NULL
4937  *  content selection pattern - do fix if pattern found
4938  */
4939 tSCC zStruct_SockaddrSelect0[] =
4940        "^.*authdes_create.*struct sockaddr[^_]";
4943  *  content bypass pattern - skip fix if pattern found
4944  */
4945 tSCC zStruct_SockaddrBypass0[] =
4946        "<sys/socket.h>";
4947 tSCC zStruct_SockaddrBypass1[] =
4948        "struct sockaddr;\n";
4950 #define    STRUCT_SOCKADDR_TEST_CT  3
4951 static tTestDesc aStruct_SockaddrTests[] = {
4952   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
4953   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
4954   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
4957  *  Fix Command Arguments for Struct_Sockaddr
4958  */
4959 static const char* apzStruct_SockaddrPatch[] = {
4960     "format",
4961     "struct sockaddr;\n\
4962 %0",
4963     (char*)NULL };
4965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4967  *  Description of Sun_Auth_Proto fix
4968  */
4969 tSCC zSun_Auth_ProtoName[] =
4970      "sun_auth_proto";
4973  *  File name selection pattern
4974  */
4975 tSCC zSun_Auth_ProtoList[] =
4976   "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
4978  *  Machine/OS name selection pattern
4979  */
4980 #define apzSun_Auth_ProtoMachs (const char**)NULL
4983  *  content selection pattern - do fix if pattern found
4984  */
4985 tSCC zSun_Auth_ProtoSelect0[] =
4986        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
4988 #define    SUN_AUTH_PROTO_TEST_CT  1
4989 static tTestDesc aSun_Auth_ProtoTests[] = {
4990   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
4993  *  Fix Command Arguments for Sun_Auth_Proto
4994  */
4995 static const char* apzSun_Auth_ProtoPatch[] = {
4996     "format",
4997     "#ifdef __cplusplus\n\
4998 %1(...);%2\n\
4999 #else\n\
5000 %1();%2\n\
5001 #endif",
5002     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
5003     (char*)NULL };
5005 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5007  *  Description of Sun_Bogus_Ifdef fix
5008  */
5009 tSCC zSun_Bogus_IfdefName[] =
5010      "sun_bogus_ifdef";
5013  *  File name selection pattern
5014  */
5015 tSCC zSun_Bogus_IfdefList[] =
5016   "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
5018  *  Machine/OS name selection pattern
5019  */
5020 #define apzSun_Bogus_IfdefMachs (const char**)NULL
5023  *  content selection pattern - do fix if pattern found
5024  */
5025 tSCC zSun_Bogus_IfdefSelect0[] =
5026        "#ifdef(.*\\|\\|.*)";
5028 #define    SUN_BOGUS_IFDEF_TEST_CT  1
5029 static tTestDesc aSun_Bogus_IfdefTests[] = {
5030   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
5033  *  Fix Command Arguments for Sun_Bogus_Ifdef
5034  */
5035 static const char* apzSun_Bogus_IfdefPatch[] = {
5036     "format",
5037     "#if%1",
5038     (char*)NULL };
5040 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5042  *  Description of Sun_Catmacro fix
5043  */
5044 tSCC zSun_CatmacroName[] =
5045      "sun_catmacro";
5048  *  File name selection pattern
5049  */
5050 tSCC zSun_CatmacroList[] =
5051   "|pixrect/memvar.h|";
5053  *  Machine/OS name selection pattern
5054  */
5055 #define apzSun_CatmacroMachs (const char**)NULL
5058  *  content selection pattern - do fix if pattern found
5059  */
5060 tSCC zSun_CatmacroSelect0[] =
5061        "^#define[ \t]+CAT\\(a,b\\).*";
5063 #define    SUN_CATMACRO_TEST_CT  1
5064 static tTestDesc aSun_CatmacroTests[] = {
5065   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
5068  *  Fix Command Arguments for Sun_Catmacro
5069  */
5070 static const char* apzSun_CatmacroPatch[] = {
5071     "format",
5072     "#ifdef __STDC__\n\
5073 #  define CAT(a,b) a##b\n\
5074 #else\n\
5075 %0\n\
5076 #endif",
5077     (char*)NULL };
5079 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5081  *  Description of Sun_Malloc fix
5082  */
5083 tSCC zSun_MallocName[] =
5084      "sun_malloc";
5087  *  File name selection pattern
5088  */
5089 tSCC zSun_MallocList[] =
5090   "|malloc.h|";
5092  *  Machine/OS name selection pattern
5093  */
5094 #define apzSun_MallocMachs (const char**)NULL
5095 #define SUN_MALLOC_TEST_CT  0
5096 #define aSun_MallocTests   (tTestDesc*)NULL
5099  *  Fix Command Arguments for Sun_Malloc
5100  */
5101 static const char* apzSun_MallocPatch[] = { "sed",
5102     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
5103     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
5104     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
5105     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
5106     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
5107     (char*)NULL };
5109 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5111  *  Description of Sun_Rusers_Semi fix
5112  */
5113 tSCC zSun_Rusers_SemiName[] =
5114      "sun_rusers_semi";
5117  *  File name selection pattern
5118  */
5119 tSCC zSun_Rusers_SemiList[] =
5120   "|rpcsvc/rusers.h|";
5122  *  Machine/OS name selection pattern
5123  */
5124 #define apzSun_Rusers_SemiMachs (const char**)NULL
5127  *  content selection pattern - do fix if pattern found
5128  */
5129 tSCC zSun_Rusers_SemiSelect0[] =
5130        "_cnt$";
5132 #define    SUN_RUSERS_SEMI_TEST_CT  1
5133 static tTestDesc aSun_Rusers_SemiTests[] = {
5134   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
5137  *  Fix Command Arguments for Sun_Rusers_Semi
5138  */
5139 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
5140     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
5141     (char*)NULL };
5143 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5145  *  Description of Sun_Signal fix
5146  */
5147 tSCC zSun_SignalName[] =
5148      "sun_signal";
5151  *  File name selection pattern
5152  */
5153 tSCC zSun_SignalList[] =
5154   "|sys/signal.h|signal.h|";
5156  *  Machine/OS name selection pattern
5157  */
5158 #define apzSun_SignalMachs (const char**)NULL
5161  *  content selection pattern - do fix if pattern found
5162  */
5163 tSCC zSun_SignalSelect0[] =
5164        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
5166 #define    SUN_SIGNAL_TEST_CT  1
5167 static tTestDesc aSun_SignalTests[] = {
5168   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
5171  *  Fix Command Arguments for Sun_Signal
5172  */
5173 static const char* apzSun_SignalPatch[] = {
5174     "format",
5175     "#ifdef __cplusplus\n\
5176 void\t(*signal(...))(...);\n\
5177 #else\n\
5178 %0\n\
5179 #endif",
5180     (char*)NULL };
5182 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5184  *  Description of Sunos_Strlen fix
5185  */
5186 tSCC zSunos_StrlenName[] =
5187      "sunos_strlen";
5190  *  File name selection pattern
5191  */
5192 tSCC zSunos_StrlenList[] =
5193   "|strings.h|";
5195  *  Machine/OS name selection pattern
5196  */
5197 #define apzSunos_StrlenMachs (const char**)NULL
5200  *  content selection pattern - do fix if pattern found
5201  */
5202 tSCC zSunos_StrlenSelect0[] =
5203        "int[ \t]*strlen\\(\\);(.*)";
5205 #define    SUNOS_STRLEN_TEST_CT  1
5206 static tTestDesc aSunos_StrlenTests[] = {
5207   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
5210  *  Fix Command Arguments for Sunos_Strlen
5211  */
5212 static const char* apzSunos_StrlenPatch[] = {
5213     "format",
5214     "__SIZE_TYPE__ strlen();%1",
5215     (char*)NULL };
5217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5219  *  Description of Svr4__P fix
5220  */
5221 tSCC zSvr4__PName[] =
5222      "svr4__p";
5225  *  File name selection pattern
5226  */
5227 tSCC zSvr4__PList[] =
5228   "|math.h|floatingpoint.h|";
5230  *  Machine/OS name selection pattern
5231  */
5232 #define apzSvr4__PMachs (const char**)NULL
5235  *  content selection pattern - do fix if pattern found
5236  */
5237 tSCC zSvr4__PSelect0[] =
5238        "^#define[ \t]+__P.*";
5240 #define    SVR4__P_TEST_CT  1
5241 static tTestDesc aSvr4__PTests[] = {
5242   { TT_EGREP,    zSvr4__PSelect0, (regex_t*)NULL }, };
5245  *  Fix Command Arguments for Svr4__P
5246  */
5247 static const char* apzSvr4__PPatch[] = {
5248     "format",
5249     "#ifndef __P\n\
5250 %0\n\
5251 #endif",
5252     (char*)NULL };
5254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5256  *  Description of Svr4_Disable_Opt fix
5257  */
5258 tSCC zSvr4_Disable_OptName[] =
5259      "svr4_disable_opt";
5262  *  File name selection pattern
5263  */
5264 tSCC zSvr4_Disable_OptList[] =
5265   "|string.h|";
5267  *  Machine/OS name selection pattern
5268  */
5269 #define apzSvr4_Disable_OptMachs (const char**)NULL
5272  *  content selection pattern - do fix if pattern found
5273  */
5274 tSCC zSvr4_Disable_OptSelect0[] =
5275        "#define.*__std_hdr_";
5277 #define    SVR4_DISABLE_OPT_TEST_CT  1
5278 static tTestDesc aSvr4_Disable_OptTests[] = {
5279   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
5282  *  Fix Command Arguments for Svr4_Disable_Opt
5283  */
5284 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
5285     "-e", "/#define.*__std_hdr_/d",
5286     (char*)NULL };
5288 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5290  *  Description of Svr4_Getcwd fix
5291  */
5292 tSCC zSvr4_GetcwdName[] =
5293      "svr4_getcwd";
5296  *  File name selection pattern
5297  */
5298 tSCC zSvr4_GetcwdList[] =
5299   "|stdlib.h|unistd.h|prototypes.h|";
5301  *  Machine/OS name selection pattern
5302  */
5303 #define apzSvr4_GetcwdMachs (const char**)NULL
5306  *  content selection pattern - do fix if pattern found
5307  */
5308 tSCC zSvr4_GetcwdSelect0[] =
5309        "getcwd\\(char \\*, int\\)";
5311 #define    SVR4_GETCWD_TEST_CT  1
5312 static tTestDesc aSvr4_GetcwdTests[] = {
5313   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
5316  *  Fix Command Arguments for Svr4_Getcwd
5317  */
5318 static const char* apzSvr4_GetcwdPatch[] = {
5319     "format",
5320     "getcwd(char *, size_t)",
5321     (char*)NULL };
5323 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5325  *  Description of Svr4_Krnl fix
5326  */
5327 tSCC zSvr4_KrnlName[] =
5328      "svr4_krnl";
5331  *  File name selection pattern
5332  */
5333 tSCC zSvr4_KrnlList[] =
5334   "|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|";
5336  *  Machine/OS name selection pattern
5337  */
5338 tSCC* apzSvr4_KrnlMachs[] = {
5339         "*-*-sysv4*",
5340         "i?86-sequent-ptx*",
5341         (const char*)NULL };
5344  *  content bypass pattern - skip fix if pattern found
5345  */
5346 tSCC zSvr4_KrnlBypass0[] =
5347        "_KERNEL";
5349 #define    SVR4_KRNL_TEST_CT  1
5350 static tTestDesc aSvr4_KrnlTests[] = {
5351   { TT_NEGREP,   zSvr4_KrnlBypass0, (regex_t*)NULL }, };
5354  *  Fix Command Arguments for Svr4_Krnl
5355  */
5356 static const char* apzSvr4_KrnlPatch[] = {
5357     "wrap",
5358     "#ifdef _KERNEL\n",
5359     "#endif /* _KERNEL */\n",
5360     (char*)NULL };
5362 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5364  *  Description of Svr4_Profil fix
5365  */
5366 tSCC zSvr4_ProfilName[] =
5367      "svr4_profil";
5370  *  File name selection pattern
5371  */
5372 tSCC zSvr4_ProfilList[] =
5373   "|stdlib.h|unistd.h|";
5375  *  Machine/OS name selection pattern
5376  */
5377 #define apzSvr4_ProfilMachs (const char**)NULL
5380  *  content selection pattern - do fix if pattern found
5381  */
5382 tSCC zSvr4_ProfilSelect0[] =
5383        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
5386  *  content bypass pattern - skip fix if pattern found
5387  */
5388 tSCC zSvr4_ProfilBypass0[] =
5389        "Silicon Graphics";
5391 #define    SVR4_PROFIL_TEST_CT  2
5392 static tTestDesc aSvr4_ProfilTests[] = {
5393   { TT_NEGREP,   zSvr4_ProfilBypass0, (regex_t*)NULL },
5394   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
5397  *  Fix Command Arguments for Svr4_Profil
5398  */
5399 static const char* apzSvr4_ProfilPatch[] = {
5400     "format",
5401     "profil(unsigned short *, size_t, int, unsigned int)",
5402     (char*)NULL };
5404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5406  *  Description of Svr4_Sighandler_Type fix
5407  */
5408 tSCC zSvr4_Sighandler_TypeName[] =
5409      "svr4_sighandler_type";
5412  *  File name selection pattern
5413  */
5414 tSCC zSvr4_Sighandler_TypeList[] =
5415   "|sys/signal.h|";
5417  *  Machine/OS name selection pattern
5418  */
5419 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
5422  *  content selection pattern - do fix if pattern found
5423  */
5424 tSCC zSvr4_Sighandler_TypeSelect0[] =
5425        "void *\\(\\*\\)\\(\\)";
5427 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
5428 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
5429   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
5432  *  Fix Command Arguments for Svr4_Sighandler_Type
5433  */
5434 static const char* apzSvr4_Sighandler_TypePatch[] = {
5435     "format",
5436     "void (*)(int)",
5437     (char*)NULL };
5439 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5441  *  Description of Svr4_Undeclared_Getrnge fix
5442  */
5443 tSCC zSvr4_Undeclared_GetrngeName[] =
5444      "svr4_undeclared_getrnge";
5447  *  File name selection pattern
5448  */
5449 tSCC zSvr4_Undeclared_GetrngeList[] =
5450   "|regexp.h|";
5452  *  Machine/OS name selection pattern
5453  */
5454 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
5457  *  content selection pattern - do fix if pattern found
5458  */
5459 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
5460        "getrnge";
5463  *  content bypass pattern - skip fix if pattern found
5464  */
5465 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
5466        "static void getrnge";
5468 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
5469 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
5470   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
5471   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
5474  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
5475  */
5476 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
5477     "format",
5478     "%0\n\
5479 static int getrnge ();",
5480     "^static int[ \t]+size;",
5481     (char*)NULL };
5483 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5485  *  Description of Sysv68_String fix
5486  */
5487 tSCC zSysv68_StringName[] =
5488      "sysv68_string";
5491  *  File name selection pattern
5492  */
5493 tSCC zSysv68_StringList[] =
5494   "|testing.h|string.h|";
5496  *  Machine/OS name selection pattern
5497  */
5498 #define apzSysv68_StringMachs (const char**)NULL
5499 #define SYSV68_STRING_TEST_CT  0
5500 #define aSysv68_StringTests   (tTestDesc*)NULL
5503  *  Fix Command Arguments for Sysv68_String
5504  */
5505 static const char* apzSysv68_StringPatch[] = { "sed",
5506     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
5507     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
5508     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
5509     "-e", "/^extern char$/N",
5510     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
5511     "-e", "/^extern int$/N",
5512     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
5513     "-e", "/^\tstrncmp(),$/N",
5514     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
5515 extern unsigned int\\\n\
5516 \\2/",
5517     (char*)NULL };
5519 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5521  *  Description of Sysz_Stdlib_For_Sun fix
5522  */
5523 tSCC zSysz_Stdlib_For_SunName[] =
5524      "sysz_stdlib_for_sun";
5527  *  File name selection pattern
5528  */
5529 tSCC zSysz_Stdlib_For_SunList[] =
5530   "|stdlib.h|";
5532  *  Machine/OS name selection pattern
5533  */
5534 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
5537  *  content selection pattern - do fix if pattern found
5538  */
5539 tSCC zSysz_Stdlib_For_SunSelect0[] =
5540        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
5542 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  1
5543 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
5544   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
5547  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
5548  */
5549 static const char* apzSysz_Stdlib_For_SunPatch[] = {
5550     "format",
5551     "void *\t%1(",
5552     (char*)NULL };
5554 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5556  *  Description of Thread_Keyword fix
5557  */
5558 tSCC zThread_KeywordName[] =
5559      "thread_keyword";
5562  *  File name selection pattern
5563  */
5564 tSCC zThread_KeywordList[] =
5565   "|pthread.h|bits/sigthread.h|";
5567  *  Machine/OS name selection pattern
5568  */
5569 #define apzThread_KeywordMachs (const char**)NULL
5572  *  content selection pattern - do fix if pattern found
5573  */
5574 tSCC zThread_KeywordSelect0[] =
5575        "([* ])__thread([,)])";
5577 #define    THREAD_KEYWORD_TEST_CT  1
5578 static tTestDesc aThread_KeywordTests[] = {
5579   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
5582  *  Fix Command Arguments for Thread_Keyword
5583  */
5584 static const char* apzThread_KeywordPatch[] = {
5585     "format",
5586     "%1__thr%2",
5587     (char*)NULL };
5589 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5591  *  Description of Tinfo_Cplusplus fix
5592  */
5593 tSCC zTinfo_CplusplusName[] =
5594      "tinfo_cplusplus";
5597  *  File name selection pattern
5598  */
5599 tSCC zTinfo_CplusplusList[] =
5600   "|tinfo.h|";
5602  *  Machine/OS name selection pattern
5603  */
5604 #define apzTinfo_CplusplusMachs (const char**)NULL
5607  *  content selection pattern - do fix if pattern found
5608  */
5609 tSCC zTinfo_CplusplusSelect0[] =
5610        "[ \t]_cplusplus";
5612 #define    TINFO_CPLUSPLUS_TEST_CT  1
5613 static tTestDesc aTinfo_CplusplusTests[] = {
5614   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
5617  *  Fix Command Arguments for Tinfo_Cplusplus
5618  */
5619 static const char* apzTinfo_CplusplusPatch[] = {
5620     "format",
5621     " __cplusplus",
5622     (char*)NULL };
5624 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5626  *  Description of Ultrix_Atexit_Param fix
5627  */
5628 tSCC zUltrix_Atexit_ParamName[] =
5629      "ultrix_atexit_param";
5632  *  File name selection pattern
5633  */
5634 tSCC zUltrix_Atexit_ParamList[] =
5635   "|stdlib.h|";
5637  *  Machine/OS name selection pattern
5638  */
5639 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
5642  *  content selection pattern - do fix if pattern found
5643  */
5644 tSCC zUltrix_Atexit_ParamSelect0[] =
5645        "atexit\\(.*\\(\\)";
5647 #define    ULTRIX_ATEXIT_PARAM_TEST_CT  1
5648 static tTestDesc aUltrix_Atexit_ParamTests[] = {
5649   { TT_EGREP,    zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
5652  *  Fix Command Arguments for Ultrix_Atexit_Param
5653  */
5654 static const char* apzUltrix_Atexit_ParamPatch[] = {
5655     "format",
5656     "atexit( void (*__func)( void )",
5657     (char*)NULL };
5659 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5661  *  Description of Ultrix_Atof_Param fix
5662  */
5663 tSCC zUltrix_Atof_ParamName[] =
5664      "ultrix_atof_param";
5667  *  File name selection pattern
5668  */
5669 tSCC zUltrix_Atof_ParamList[] =
5670   "|math.h|";
5672  *  Machine/OS name selection pattern
5673  */
5674 #define apzUltrix_Atof_ParamMachs (const char**)NULL
5677  *  content selection pattern - do fix if pattern found
5678  */
5679 tSCC zUltrix_Atof_ParamSelect0[] =
5680        "atof\\([ \t]*char";
5682 #define    ULTRIX_ATOF_PARAM_TEST_CT  1
5683 static tTestDesc aUltrix_Atof_ParamTests[] = {
5684   { TT_EGREP,    zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
5687  *  Fix Command Arguments for Ultrix_Atof_Param
5688  */
5689 static const char* apzUltrix_Atof_ParamPatch[] = {
5690     "format",
5691     "atof(const char",
5692     (char*)NULL };
5694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5696  *  Description of Ultrix_Const fix
5697  */
5698 tSCC zUltrix_ConstName[] =
5699      "ultrix_const";
5702  *  File name selection pattern
5703  */
5704 tSCC zUltrix_ConstList[] =
5705   "|stdio.h|";
5707  *  Machine/OS name selection pattern
5708  */
5709 #define apzUltrix_ConstMachs (const char**)NULL
5712  *  content selection pattern - do fix if pattern found
5713  */
5714 tSCC zUltrix_ConstSelect0[] =
5715        "perror\\( char \\*";
5717 #define    ULTRIX_CONST_TEST_CT  1
5718 static tTestDesc aUltrix_ConstTests[] = {
5719   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
5722  *  Fix Command Arguments for Ultrix_Const
5723  */
5724 static const char* apzUltrix_ConstPatch[] = {
5725     "format",
5726     "%1 const %3 *__",
5727     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
5728     (char*)NULL };
5730 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5732  *  Description of Ultrix_Const2 fix
5733  */
5734 tSCC zUltrix_Const2Name[] =
5735      "ultrix_const2";
5738  *  File name selection pattern
5739  */
5740 tSCC zUltrix_Const2List[] =
5741   "|stdio.h|";
5743  *  Machine/OS name selection pattern
5744  */
5745 #define apzUltrix_Const2Machs (const char**)NULL
5748  *  content selection pattern - do fix if pattern found
5749  */
5750 tSCC zUltrix_Const2Select0[] =
5751        "\\*fopen\\( char \\*";
5753 #define    ULTRIX_CONST2_TEST_CT  1
5754 static tTestDesc aUltrix_Const2Tests[] = {
5755   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
5758  *  Fix Command Arguments for Ultrix_Const2
5759  */
5760 static const char* apzUltrix_Const2Patch[] = {
5761     "format",
5762     "%1( const char *%3, const char *",
5763     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
5764     (char*)NULL };
5766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5768  *  Description of Ultrix_Const3 fix
5769  */
5770 tSCC zUltrix_Const3Name[] =
5771      "ultrix_const3";
5774  *  File name selection pattern
5775  */
5776 tSCC zUltrix_Const3List[] =
5777   "|stdio.h|";
5779  *  Machine/OS name selection pattern
5780  */
5781 #define apzUltrix_Const3Machs (const char**)NULL
5784  *  content selection pattern - do fix if pattern found
5785  */
5786 tSCC zUltrix_Const3Select0[] =
5787        "fdopen\\( .*, char \\*";
5789 #define    ULTRIX_CONST3_TEST_CT  1
5790 static tTestDesc aUltrix_Const3Tests[] = {
5791   { TT_EGREP,    zUltrix_Const3Select0, (regex_t*)NULL }, };
5794  *  Fix Command Arguments for Ultrix_Const3
5795  */
5796 static const char* apzUltrix_Const3Patch[] = {
5797     "format",
5798     "%1 const %3 *__",
5799     "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
5800     (char*)NULL };
5802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5804  *  Description of Ultrix_Fix_Fixproto fix
5805  */
5806 tSCC zUltrix_Fix_FixprotoName[] =
5807      "ultrix_fix_fixproto";
5810  *  File name selection pattern
5811  */
5812 tSCC zUltrix_Fix_FixprotoList[] =
5813   "|sys/utsname.h|";
5815  *  Machine/OS name selection pattern
5816  */
5817 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
5820  *  content selection pattern - do fix if pattern found
5821  */
5822 tSCC zUltrix_Fix_FixprotoSelect0[] =
5823        "ULTRIX";
5825 #define    ULTRIX_FIX_FIXPROTO_TEST_CT  1
5826 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
5827   { TT_EGREP,    zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
5830  *  Fix Command Arguments for Ultrix_Fix_Fixproto
5831  */
5832 static const char* apzUltrix_Fix_FixprotoPatch[] = {
5833     "format",
5834     "struct utsname;\n\
5835 %0",
5836     "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
5837     (char*)NULL };
5839 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5841  *  Description of Ultrix_Ifdef fix
5842  */
5843 tSCC zUltrix_IfdefName[] =
5844      "ultrix_ifdef";
5847  *  File name selection pattern
5848  */
5849 tSCC zUltrix_IfdefList[] =
5850   "|sys/file.h|";
5852  *  Machine/OS name selection pattern
5853  */
5854 #define apzUltrix_IfdefMachs (const char**)NULL
5857  *  content selection pattern - do fix if pattern found
5858  */
5859 tSCC zUltrix_IfdefSelect0[] =
5860        "^#ifdef KERNEL[ \t]+&&";
5862 #define    ULTRIX_IFDEF_TEST_CT  1
5863 static tTestDesc aUltrix_IfdefTests[] = {
5864   { TT_EGREP,    zUltrix_IfdefSelect0, (regex_t*)NULL }, };
5867  *  Fix Command Arguments for Ultrix_Ifdef
5868  */
5869 static const char* apzUltrix_IfdefPatch[] = {
5870     "format",
5871     "#if defined(KERNEL) &&",
5872     (char*)NULL };
5874 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5876  *  Description of Ultrix_Locale fix
5877  */
5878 tSCC zUltrix_LocaleName[] =
5879      "ultrix_locale";
5882  *  File name selection pattern
5883  */
5884 tSCC zUltrix_LocaleList[] =
5885   "|locale.h|";
5887  *  Machine/OS name selection pattern
5888  */
5889 #define apzUltrix_LocaleMachs (const char**)NULL
5892  *  content selection pattern - do fix if pattern found
5893  */
5894 tSCC zUltrix_LocaleSelect0[] =
5895        "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
5897 #define    ULTRIX_LOCALE_TEST_CT  1
5898 static tTestDesc aUltrix_LocaleTests[] = {
5899   { TT_EGREP,    zUltrix_LocaleSelect0, (regex_t*)NULL }, };
5902  *  Fix Command Arguments for Ultrix_Locale
5903  */
5904 static const char* apzUltrix_LocalePatch[] = {
5905     "wrap",
5906     (char*)NULL };
5908 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5910  *  Description of Ultrix_Math_Ifdef fix
5911  */
5912 tSCC zUltrix_Math_IfdefName[] =
5913      "ultrix_math_ifdef";
5916  *  File name selection pattern
5917  */
5918 tSCC zUltrix_Math_IfdefList[] =
5919   "|sys/limits.h|float.h|math.h|";
5921  *  Machine/OS name selection pattern
5922  */
5923 #define apzUltrix_Math_IfdefMachs (const char**)NULL
5926  *  content selection pattern - do fix if pattern found
5927  */
5928 tSCC zUltrix_Math_IfdefSelect0[] =
5929        "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
5931 #define    ULTRIX_MATH_IFDEF_TEST_CT  1
5932 static tTestDesc aUltrix_Math_IfdefTests[] = {
5933   { TT_EGREP,    zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
5936  *  Fix Command Arguments for Ultrix_Math_Ifdef
5937  */
5938 static const char* apzUltrix_Math_IfdefPatch[] = {
5939     "format",
5940     "%1",
5941     (char*)NULL };
5943 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5945  *  Description of Ultrix_Nested_Ioctl fix
5946  */
5947 tSCC zUltrix_Nested_IoctlName[] =
5948      "ultrix_nested_ioctl";
5951  *  File name selection pattern
5952  */
5953 tSCC zUltrix_Nested_IoctlList[] =
5954   "|sys/ioctl.h|";
5956  *  Machine/OS name selection pattern
5957  */
5958 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
5961  *  content selection pattern - do fix if pattern found
5962  */
5963 tSCC zUltrix_Nested_IoctlSelect0[] =
5964        "^/\\* #define SIOCSCREEN";
5966 #define    ULTRIX_NESTED_IOCTL_TEST_CT  1
5967 static tTestDesc aUltrix_Nested_IoctlTests[] = {
5968   { TT_EGREP,    zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
5971  *  Fix Command Arguments for Ultrix_Nested_Ioctl
5972  */
5973 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
5974     "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
5975     (char*)NULL };
5977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5979  *  Description of Ultrix_Nested_Svc fix
5980  */
5981 tSCC zUltrix_Nested_SvcName[] =
5982      "ultrix_nested_svc";
5985  *  File name selection pattern
5986  */
5987 tSCC zUltrix_Nested_SvcList[] =
5988   "|rpc/svc.h|";
5990  *  Machine/OS name selection pattern
5991  */
5992 #define apzUltrix_Nested_SvcMachs (const char**)NULL
5995  *  content selection pattern - do fix if pattern found
5996  */
5997 tSCC zUltrix_Nested_SvcSelect0[] =
5998        "^ \\*[ \t]*int protocol;  */\\*";
6000 #define    ULTRIX_NESTED_SVC_TEST_CT  1
6001 static tTestDesc aUltrix_Nested_SvcTests[] = {
6002   { TT_EGREP,    zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
6005  *  Fix Command Arguments for Ultrix_Nested_Svc
6006  */
6007 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
6008     "-e", "s@^\\( \\*\tint protocol;  \\)/\\*@\\1*/ /*@",
6009     (char*)NULL };
6011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6013  *  Description of Ultrix_Stat fix
6014  */
6015 tSCC zUltrix_StatName[] =
6016      "ultrix_stat";
6019  *  File name selection pattern
6020  */
6021 tSCC zUltrix_StatList[] =
6022   "|sys/stat.h|";
6024  *  Machine/OS name selection pattern
6025  */
6026 #define apzUltrix_StatMachs (const char**)NULL
6029  *  content selection pattern - do fix if pattern found
6030  */
6031 tSCC zUltrix_StatSelect0[] =
6032        "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
6034 #define    ULTRIX_STAT_TEST_CT  1
6035 static tTestDesc aUltrix_StatTests[] = {
6036   { TT_EGREP,    zUltrix_StatSelect0, (regex_t*)NULL }, };
6039  *  Fix Command Arguments for Ultrix_Stat
6040  */
6041 static const char* apzUltrix_StatPatch[] = { "sed",
6042     "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
6043 \\\n\
6044 /* macro to test for symbolic link */\\\n\
6045 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
6046     "-e", "/^[ \t]*fstat(),$/a\\\n\
6047 \tlstat(),\n",
6048     (char*)NULL };
6050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6052  *  Description of Ultrix_Static fix
6053  */
6054 tSCC zUltrix_StaticName[] =
6055      "ultrix_static";
6058  *  File name selection pattern
6059  */
6060 tSCC zUltrix_StaticList[] =
6061   "|machine/cpu.h|";
6063  *  Machine/OS name selection pattern
6064  */
6065 #define apzUltrix_StaticMachs (const char**)NULL
6068  *  content selection pattern - do fix if pattern found
6069  */
6070 tSCC zUltrix_StaticSelect0[] =
6071        "#include \"r[34]_cpu";
6073 #define    ULTRIX_STATIC_TEST_CT  1
6074 static tTestDesc aUltrix_StaticTests[] = {
6075   { TT_EGREP,    zUltrix_StaticSelect0, (regex_t*)NULL }, };
6078  *  Fix Command Arguments for Ultrix_Static
6079  */
6080 static const char* apzUltrix_StaticPatch[] = { "sed",
6081     "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
6082     "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
6083     "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
6084     (char*)NULL };
6086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6088  *  Description of Ultrix_Stdlib fix
6089  */
6090 tSCC zUltrix_StdlibName[] =
6091      "ultrix_stdlib";
6094  *  File name selection pattern
6095  */
6096 tSCC zUltrix_StdlibList[] =
6097   "|stdlib.h|";
6099  *  Machine/OS name selection pattern
6100  */
6101 #define apzUltrix_StdlibMachs (const char**)NULL
6104  *  content selection pattern - do fix if pattern found
6105  */
6106 tSCC zUltrix_StdlibSelect0[] =
6107        "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
6109 #define    ULTRIX_STDLIB_TEST_CT  1
6110 static tTestDesc aUltrix_StdlibTests[] = {
6111   { TT_EGREP,    zUltrix_StdlibSelect0, (regex_t*)NULL }, };
6114  *  Fix Command Arguments for Ultrix_Stdlib
6115  */
6116 static const char* apzUltrix_StdlibPatch[] = { "sed",
6117     "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
6118 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
6119 void\t\tunsetenv( const char *__name );\\\n\
6120 int\t\tputenv( char *__s );\n",
6121     "-e", "/^char.*getenv();.*$/a\\\n\
6122 int\tsetenv();\\\n\
6123 void\tunsetenv();\\\n\
6124 int\tputenv();\n",
6125     (char*)NULL };
6127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6129  *  Description of Ultrix_Strings fix
6130  */
6131 tSCC zUltrix_StringsName[] =
6132      "ultrix_strings";
6135  *  File name selection pattern
6136  */
6137 tSCC zUltrix_StringsList[] =
6138   "|strings.h|";
6140  *  Machine/OS name selection pattern
6141  */
6142 #define apzUltrix_StringsMachs (const char**)NULL
6145  *  content selection pattern - do fix if pattern found
6146  */
6147 tSCC zUltrix_StringsSelect0[] =
6148        "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
6150 #define    ULTRIX_STRINGS_TEST_CT  1
6151 static tTestDesc aUltrix_StringsTests[] = {
6152   { TT_EGREP,    zUltrix_StringsSelect0, (regex_t*)NULL }, };
6155  *  Fix Command Arguments for Ultrix_Strings
6156  */
6157 static const char* apzUltrix_StringsPatch[] = {
6158     "wrap",
6159     (char*)NULL };
6161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6163  *  Description of Ultrix_Strings2 fix
6164  */
6165 tSCC zUltrix_Strings2Name[] =
6166      "ultrix_strings2";
6169  *  File name selection pattern
6170  */
6171 tSCC zUltrix_Strings2List[] =
6172   "|strings.h|";
6174  *  Machine/OS name selection pattern
6175  */
6176 #define apzUltrix_Strings2Machs (const char**)NULL
6179  *  content selection pattern - do fix if pattern found
6180  */
6181 tSCC zUltrix_Strings2Select0[] =
6182        "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
6184 #define    ULTRIX_STRINGS2_TEST_CT  1
6185 static tTestDesc aUltrix_Strings2Tests[] = {
6186   { TT_EGREP,    zUltrix_Strings2Select0, (regex_t*)NULL }, };
6189  *  Fix Command Arguments for Ultrix_Strings2
6190  */
6191 static const char* apzUltrix_Strings2Patch[] = { "sed",
6192     "-e", "/^.*strncmp( const .* );.*/a\\\n\
6193 \\\n\
6194 extern int\\\n\
6195 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
6196 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
6197     "-e", "/^.*strncmp();.*/a\\\n\
6198 extern int\\\n\
6199 \tstrcasecmp(),\\\n\
6200 \tstrncasecmp();\n",
6201     (char*)NULL };
6203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6205  *  Description of Ultrix_Sys_Time fix
6206  */
6207 tSCC zUltrix_Sys_TimeName[] =
6208      "ultrix_sys_time";
6211  *  File name selection pattern
6212  */
6213 tSCC zUltrix_Sys_TimeList[] =
6214   "|sys/time.h|";
6216  *  Machine/OS name selection pattern
6217  */
6218 #define apzUltrix_Sys_TimeMachs (const char**)NULL
6221  *  content selection pattern - do fix if pattern found
6222  */
6223 tSCC zUltrix_Sys_TimeSelect0[] =
6224        "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
6226 #define    ULTRIX_SYS_TIME_TEST_CT  1
6227 static tTestDesc aUltrix_Sys_TimeTests[] = {
6228   { TT_EGREP,    zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
6231  *  Fix Command Arguments for Ultrix_Sys_Time
6232  */
6233 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
6234     "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
6235 \\\n\
6236 extern int adjtime(struct timeval *, struct timeval *);\\\n\
6237 extern int getitimer(int, struct itimerval *);\\\n\
6238 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
6239 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
6240 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
6241 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
6242 extern int stime(const time_t *);\\\n\
6243 extern int utimes(const char *, const struct timeval[2]);\\\n\
6244 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
6245     "-e", "/^extern.*double.*difftime();.*$/a\\\n\
6246 extern\tint adjtime();\\\n\
6247 extern\tint getitimer();\\\n\
6248 extern\tint setitimer();\\\n\
6249 extern\tint gettimeofday();\\\n\
6250 extern\tint settimeofday();\\\n\
6251 extern\tvoid profil();\\\n\
6252 extern\tint stime();\\\n\
6253 extern\tint utimes();\\\n\
6254 extern\tint select();\n",
6255     (char*)NULL };
6257 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6259  *  Description of Ultrix_Unistd fix
6260  */
6261 tSCC zUltrix_UnistdName[] =
6262      "ultrix_unistd";
6265  *  File name selection pattern
6266  */
6267 tSCC zUltrix_UnistdList[] =
6268   "|unistd.h|";
6270  *  Machine/OS name selection pattern
6271  */
6272 #define apzUltrix_UnistdMachs (const char**)NULL
6275  *  content selection pattern - do fix if pattern found
6276  */
6277 tSCC zUltrix_UnistdSelect0[] =
6278        "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
6280 #define    ULTRIX_UNISTD_TEST_CT  1
6281 static tTestDesc aUltrix_UnistdTests[] = {
6282   { TT_EGREP,    zUltrix_UnistdSelect0, (regex_t*)NULL }, };
6285  *  Fix Command Arguments for Ultrix_Unistd
6286  */
6287 static const char* apzUltrix_UnistdPatch[] = { "sed",
6288     "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
6289 \tgetpagesize(),\n",
6290     "-e", "/^[ \t]*fork(),.*$/a\\\n\
6291 \tvfork(),\n",
6292     (char*)NULL };
6294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6296  *  Description of Undefine_Null fix
6297  */
6298 tSCC zUndefine_NullName[] =
6299      "undefine_null";
6302  *  File name selection pattern
6303  */
6304 #define zUndefine_NullList (char*)NULL
6306  *  Machine/OS name selection pattern
6307  */
6308 #define apzUndefine_NullMachs (const char**)NULL
6311  *  content selection pattern - do fix if pattern found
6312  */
6313 tSCC zUndefine_NullSelect0[] =
6314        "^#[ \t]*define[ \t]+NULL[ \t]";
6317  *  content bypass pattern - skip fix if pattern found
6318  */
6319 tSCC zUndefine_NullBypass0[] =
6320        "#[ \t]*(ifn|un)def[ \t]+NULL($|[ \t\r])";
6322 #define    UNDEFINE_NULL_TEST_CT  2
6323 static tTestDesc aUndefine_NullTests[] = {
6324   { TT_NEGREP,   zUndefine_NullBypass0, (regex_t*)NULL },
6325   { TT_EGREP,    zUndefine_NullSelect0, (regex_t*)NULL }, };
6328  *  Fix Command Arguments for Undefine_Null
6329  */
6330 static const char* apzUndefine_NullPatch[] = {
6331     "format",
6332     "#ifndef NULL\n\
6333 #define NULL%1\n\
6334 #endif\n",
6335     "^#[ \t]*define[ \t]+NULL([^\r\n\
6336 ]+)[\r]*\n",
6337     (char*)NULL };
6339 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6341  *  Description of Unicosmk_Restrict fix
6342  */
6343 tSCC zUnicosmk_RestrictName[] =
6344      "unicosmk_restrict";
6347  *  File name selection pattern
6348  */
6349 tSCC zUnicosmk_RestrictList[] =
6350   "|stdio.h|stdlib.h|wchar.h|";
6352  *  Machine/OS name selection pattern
6353  */
6354 tSCC* apzUnicosmk_RestrictMachs[] = {
6355         "*-*-unicosmk*",
6356         (const char*)NULL };
6359  *  content selection pattern - do fix if pattern found
6360  */
6361 tSCC zUnicosmk_RestrictSelect0[] =
6362        "(\\*[ \t]*)restrict([ \t]+)";
6364 #define    UNICOSMK_RESTRICT_TEST_CT  1
6365 static tTestDesc aUnicosmk_RestrictTests[] = {
6366   { TT_EGREP,    zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
6369  *  Fix Command Arguments for Unicosmk_Restrict
6370  */
6371 static const char* apzUnicosmk_RestrictPatch[] = {
6372     "format",
6373     "%1__restrict__%2",
6374     (char*)NULL };
6376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6378  *  Description of Uw7_Byteorder_Fix fix
6379  */
6380 tSCC zUw7_Byteorder_FixName[] =
6381      "uw7_byteorder_fix";
6384  *  File name selection pattern
6385  */
6386 tSCC zUw7_Byteorder_FixList[] =
6387   "|arpa/inet.h|";
6389  *  Machine/OS name selection pattern
6390  */
6391 tSCC* apzUw7_Byteorder_FixMachs[] = {
6392         "*-*-sysv4*",
6393         "i?86-*-sysv5*",
6394         "i?86-*-udk*",
6395         "i?86-*-solaris2.[0-4]",
6396         "powerpcle-*-solaris2.[0-4]",
6397         "sparc-*-solaris2.[0-4]",
6398         (const char*)NULL };
6401  *  content selection pattern - do fix if pattern found
6402  */
6403 tSCC zUw7_Byteorder_FixSelect0[] =
6404        "in_port_t";
6407  *  perform the 'test' shell command - do fix on success
6408  */
6409 tSCC zUw7_Byteorder_FixTest0[] =
6410        "-f sys/byteorder.h";
6412 #define    UW7_BYTEORDER_FIX_TEST_CT  2
6413 static tTestDesc aUw7_Byteorder_FixTests[] = {
6414   { TT_TEST,     zUw7_Byteorder_FixTest0,   0 /* unused */ },
6415   { TT_EGREP,    zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
6418  *  Fix Command Arguments for Uw7_Byteorder_Fix
6419  */
6420 static const char* apzUw7_Byteorder_FixPatch[] = {
6421     "format",
6422     "",
6423     "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
6424     (char*)NULL };
6426 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6428  *  Description of Va_I960_Macro fix
6429  */
6430 tSCC zVa_I960_MacroName[] =
6431      "va_i960_macro";
6434  *  File name selection pattern
6435  */
6436 tSCC zVa_I960_MacroList[] =
6437   "|arch/i960/archI960.h|";
6439  *  Machine/OS name selection pattern
6440  */
6441 #define apzVa_I960_MacroMachs (const char**)NULL
6444  *  content selection pattern - do fix if pattern found
6445  */
6446 tSCC zVa_I960_MacroSelect0[] =
6447        "__(vsiz|vali|vpad|alignof__)";
6449 #define    VA_I960_MACRO_TEST_CT  1
6450 static tTestDesc aVa_I960_MacroTests[] = {
6451   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
6454  *  Fix Command Arguments for Va_I960_Macro
6455  */
6456 static const char* apzVa_I960_MacroPatch[] = {
6457     "format",
6458     "__vx%1",
6459     (char*)NULL };
6461 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6463  *  Description of Void_Null fix
6464  */
6465 tSCC zVoid_NullName[] =
6466      "void_null";
6469  *  File name selection pattern
6470  */
6471 tSCC zVoid_NullList[] =
6472   "|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|";
6474  *  Machine/OS name selection pattern
6475  */
6476 #define apzVoid_NullMachs (const char**)NULL
6479  *  content selection pattern - do fix if pattern found
6480  */
6481 tSCC zVoid_NullSelect0[] =
6482        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
6484 #define    VOID_NULL_TEST_CT  1
6485 static tTestDesc aVoid_NullTests[] = {
6486   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
6489  *  Fix Command Arguments for Void_Null
6490  */
6491 static const char* apzVoid_NullPatch[] = {
6492     "format",
6493     "#define NULL 0",
6494     (char*)NULL };
6496 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6498  *  Description of Vxworks_Gcc_Problem fix
6499  */
6500 tSCC zVxworks_Gcc_ProblemName[] =
6501      "vxworks_gcc_problem";
6504  *  File name selection pattern
6505  */
6506 tSCC zVxworks_Gcc_ProblemList[] =
6507   "|types/vxTypesBase.h|";
6509  *  Machine/OS name selection pattern
6510  */
6511 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
6514  *  content selection pattern - do fix if pattern found
6515  */
6516 tSCC zVxworks_Gcc_ProblemSelect0[] =
6517        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
6519 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
6520 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
6521   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
6524  *  Fix Command Arguments for Vxworks_Gcc_Problem
6525  */
6526 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
6527     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
6528     "-e", "/[ \t]size_t/i\\\n\
6529 #ifndef _GCC_SIZE_T\\\n\
6530 #define _GCC_SIZE_T\n",
6531     "-e", "/[ \t]size_t/a\\\n\
6532 #endif\n",
6533     "-e", "/[ \t]ptrdiff_t/i\\\n\
6534 #ifndef _GCC_PTRDIFF_T\\\n\
6535 #define _GCC_PTRDIFF_T\n",
6536     "-e", "/[ \t]ptrdiff_t/a\\\n\
6537 #endif\n",
6538     "-e", "/[ \t]wchar_t/i\\\n\
6539 #ifndef _GCC_WCHAR_T\\\n\
6540 #define _GCC_WCHAR_T\n",
6541     "-e", "/[ \t]wchar_t/a\\\n\
6542 #endif\n",
6543     (char*)NULL };
6545 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6547  *  Description of Vxworks_Needs_Vxtypes fix
6548  */
6549 tSCC zVxworks_Needs_VxtypesName[] =
6550      "vxworks_needs_vxtypes";
6553  *  File name selection pattern
6554  */
6555 tSCC zVxworks_Needs_VxtypesList[] =
6556   "|time.h|";
6558  *  Machine/OS name selection pattern
6559  */
6560 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
6563  *  content selection pattern - do fix if pattern found
6564  */
6565 tSCC zVxworks_Needs_VxtypesSelect0[] =
6566        "uint_t([ \t]+_clocks_per_sec)";
6568 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
6569 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
6570   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
6573  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
6574  */
6575 static const char* apzVxworks_Needs_VxtypesPatch[] = {
6576     "format",
6577     "unsigned int%1",
6578     (char*)NULL };
6580 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6582  *  Description of Vxworks_Needs_Vxworks fix
6583  */
6584 tSCC zVxworks_Needs_VxworksName[] =
6585      "vxworks_needs_vxworks";
6588  *  File name selection pattern
6589  */
6590 tSCC zVxworks_Needs_VxworksList[] =
6591   "|sys/stat.h|";
6593  *  Machine/OS name selection pattern
6594  */
6595 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
6598  *  content selection pattern - do fix if pattern found
6599  */
6600 tSCC zVxworks_Needs_VxworksSelect0[] =
6601        "#[ \t]define[ \t]+__INCstath";
6604  *  perform the 'test' shell command - do fix on success
6605  */
6606 tSCC zVxworks_Needs_VxworksTest0[] =
6607        " -r types/vxTypesOld.h";
6608 tSCC zVxworks_Needs_VxworksTest1[] =
6609        " -n \"`egrep '#include' $file`\"";
6610 tSCC zVxworks_Needs_VxworksTest2[] =
6611        " -n \"`egrep ULONG $file`\"";
6613 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
6614 static tTestDesc aVxworks_Needs_VxworksTests[] = {
6615   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
6616   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
6617   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
6618   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
6621  *  Fix Command Arguments for Vxworks_Needs_Vxworks
6622  */
6623 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
6624     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
6625 #include <types/vxTypesOld.h>\n",
6626     (char*)NULL };
6628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6630  *  Description of Vxworks_Time fix
6631  */
6632 tSCC zVxworks_TimeName[] =
6633      "vxworks_time";
6636  *  File name selection pattern
6637  */
6638 tSCC zVxworks_TimeList[] =
6639   "|time.h|";
6641  *  Machine/OS name selection pattern
6642  */
6643 #define apzVxworks_TimeMachs (const char**)NULL
6646  *  content selection pattern - do fix if pattern found
6647  */
6648 tSCC zVxworks_TimeSelect0[] =
6649        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
6652  *  perform the 'test' shell command - do fix on success
6653  */
6654 tSCC zVxworks_TimeTest0[] =
6655        " -r vxWorks.h";
6657 #define    VXWORKS_TIME_TEST_CT  2
6658 static tTestDesc aVxworks_TimeTests[] = {
6659   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
6660   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
6663  *  Fix Command Arguments for Vxworks_Time
6664  */
6665 static const char* apzVxworks_TimePatch[] = {
6666     "format",
6667     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
6668 #ifdef __cplusplus\n\
6669 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
6670 #else\n\
6671 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
6672 #endif\n\
6673 #define __gcc_VOIDFUNCPTR_defined\n\
6674 #endif\n\
6675 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
6676     (char*)NULL };
6678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6680  *  Description of Windiss_Math1 fix
6681  */
6682 tSCC zWindiss_Math1Name[] =
6683      "windiss_math1";
6686  *  File name selection pattern
6687  */
6688 tSCC zWindiss_Math1List[] =
6689   "|math.h|";
6691  *  Machine/OS name selection pattern
6692  */
6693 tSCC* apzWindiss_Math1Machs[] = {
6694         "*-*-windiss",
6695         (const char*)NULL };
6696 #define WINDISS_MATH1_TEST_CT  0
6697 #define aWindiss_Math1Tests   (tTestDesc*)NULL
6700  *  Fix Command Arguments for Windiss_Math1
6701  */
6702 static const char* apzWindiss_Math1Patch[] = { "sed",
6703     "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
6704     (char*)NULL };
6706 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6708  *  Description of Windiss_Math2 fix
6709  */
6710 tSCC zWindiss_Math2Name[] =
6711      "windiss_math2";
6714  *  File name selection pattern
6715  */
6716 tSCC zWindiss_Math2List[] =
6717   "|math.h|";
6719  *  Machine/OS name selection pattern
6720  */
6721 tSCC* apzWindiss_Math2Machs[] = {
6722         "*-*-windiss",
6723         (const char*)NULL };
6724 #define WINDISS_MATH2_TEST_CT  0
6725 #define aWindiss_Math2Tests   (tTestDesc*)NULL
6728  *  Fix Command Arguments for Windiss_Math2
6729  */
6730 static const char* apzWindiss_Math2Patch[] = { "sed",
6731     "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
6732     (char*)NULL };
6734 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6736  *  Description of Windiss_Valist fix
6737  */
6738 tSCC zWindiss_ValistName[] =
6739      "windiss_valist";
6742  *  File name selection pattern
6743  */
6744 #define zWindiss_ValistList (char*)NULL
6746  *  Machine/OS name selection pattern
6747  */
6748 tSCC* apzWindiss_ValistMachs[] = {
6749         "*-*-windiss",
6750         (const char*)NULL };
6753  *  content selection pattern - do fix if pattern found
6754  */
6755 tSCC zWindiss_ValistSelect0[] =
6756        "(#include.*)diab/va_list.h";
6758 #define    WINDISS_VALIST_TEST_CT  1
6759 static tTestDesc aWindiss_ValistTests[] = {
6760   { TT_EGREP,    zWindiss_ValistSelect0, (regex_t*)NULL }, };
6763  *  Fix Command Arguments for Windiss_Valist
6764  */
6765 static const char* apzWindiss_ValistPatch[] = { "sed",
6766     "-e", "s|diab/va_list.h|stdarg.h|",
6767     (char*)NULL };
6769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6771  *  Description of X11_Class fix
6772  */
6773 tSCC zX11_ClassName[] =
6774      "x11_class";
6777  *  File name selection pattern
6778  */
6779 tSCC zX11_ClassList[] =
6780   "|X11/ShellP.h|";
6782  *  Machine/OS name selection pattern
6783  */
6784 #define apzX11_ClassMachs (const char**)NULL
6787  *  content selection pattern - do fix if pattern found
6788  */
6789 tSCC zX11_ClassSelect0[] =
6790        "^([ \t]*char \\*)class;(.*)";
6793  *  content bypass pattern - skip fix if pattern found
6794  */
6795 tSCC zX11_ClassBypass0[] =
6796        "__cplusplus";
6798 #define    X11_CLASS_TEST_CT  2
6799 static tTestDesc aX11_ClassTests[] = {
6800   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
6801   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
6804  *  Fix Command Arguments for X11_Class
6805  */
6806 static const char* apzX11_ClassPatch[] = {
6807     "format",
6808     "#ifdef __cplusplus\n\
6809 %1c_class;%2\n\
6810 #else\n\
6811 %1class;%2\n\
6812 #endif",
6813     (char*)NULL };
6815 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6817  *  Description of X11_Class_Usage fix
6818  */
6819 tSCC zX11_Class_UsageName[] =
6820      "x11_class_usage";
6823  *  File name selection pattern
6824  */
6825 tSCC zX11_Class_UsageList[] =
6826   "|Xm/BaseClassI.h|";
6828  *  Machine/OS name selection pattern
6829  */
6830 #define apzX11_Class_UsageMachs (const char**)NULL
6833  *  content selection pattern - do fix if pattern found
6834  */
6835 tSCC zX11_Class_UsageSelect0[] =
6836        " class\\)";
6839  *  content bypass pattern - skip fix if pattern found
6840  */
6841 tSCC zX11_Class_UsageBypass0[] =
6842        "__cplusplus";
6844 #define    X11_CLASS_USAGE_TEST_CT  2
6845 static tTestDesc aX11_Class_UsageTests[] = {
6846   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
6847   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
6850  *  Fix Command Arguments for X11_Class_Usage
6851  */
6852 static const char* apzX11_Class_UsagePatch[] = {
6853     "format",
6854     " c_class)",
6855     (char*)NULL };
6857 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6859  *  Description of X11_New fix
6860  */
6861 tSCC zX11_NewName[] =
6862      "x11_new";
6865  *  File name selection pattern
6866  */
6867 tSCC zX11_NewList[] =
6868   "|Xm/Traversal.h|";
6870  *  Machine/OS name selection pattern
6871  */
6872 #define apzX11_NewMachs (const char**)NULL
6875  *  content bypass pattern - skip fix if pattern found
6876  */
6877 tSCC zX11_NewBypass0[] =
6878        "__cplusplus";
6880 #define    X11_NEW_TEST_CT  1
6881 static tTestDesc aX11_NewTests[] = {
6882   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
6885  *  Fix Command Arguments for X11_New
6886  */
6887 static const char* apzX11_NewPatch[] = { "sed",
6888     "-e", "/Widget\told, new;/i\\\n\
6889 #ifdef __cplusplus\\\n\
6890 \tWidget\told, c_new;\\\n\
6891 #else\n",
6892     "-e", "/Widget\told, new;/a\\\n\
6893 #endif\n",
6894     "-e", "s/Widget new,/Widget c_new,/g",
6895     (char*)NULL };
6897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6899  *  Description of X11_Sprintf fix
6900  */
6901 tSCC zX11_SprintfName[] =
6902      "x11_sprintf";
6905  *  File name selection pattern
6906  */
6907 tSCC zX11_SprintfList[] =
6908   "|X11/Xmu.h|X11/Xmu/Xmu.h|";
6910  *  Machine/OS name selection pattern
6911  */
6912 #define apzX11_SprintfMachs (const char**)NULL
6915  *  content selection pattern - do fix if pattern found
6916  */
6917 tSCC zX11_SprintfSelect0[] =
6918        "^extern char \\*\tsprintf\\(\\);$";
6920 #define    X11_SPRINTF_TEST_CT  1
6921 static tTestDesc aX11_SprintfTests[] = {
6922   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
6925  *  Fix Command Arguments for X11_Sprintf
6926  */
6927 static const char* apzX11_SprintfPatch[] = {
6928     "format",
6929     "#ifndef __STDC__\n\
6930 %0\n\
6931 #endif /* !defined __STDC__ */",
6932     (char*)NULL };
6935 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6937  *  List of all fixes
6938  */
6939 #define REGEX_COUNT          197
6940 #define MACH_LIST_SIZE_LIMIT 261
6941 #define FIX_COUNT            175
6944  *  Enumerate the fixes
6945  */
6946 typedef enum {
6947     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
6948     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
6949     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
6950     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
6951     AAB_SUN_MEMCPY_FIXIDX,
6952     AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
6953     AAB_ULTRIX_LIMITS_FIXIDX,
6954     AAB_ULTRIX_MEMORY_FIXIDX,
6955     AAB_ULTRIX_STRING_FIXIDX,
6956     AIX_PTHREAD_FIXIDX,
6957     AIX_SYSMACHINE_FIXIDX,
6958     AIX_SYSWAIT_FIXIDX,
6959     AIX_SYSWAIT_2_FIXIDX,
6960     AIX_VOLATILE_FIXIDX,
6961     ALPHA___ASSERT_FIXIDX,
6962     ALPHA___EXTERN_PREFIX_FIXIDX,
6963     ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
6964     ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
6965     ALPHA_ASSERT_FIXIDX,
6966     ALPHA_BAD_LVAL_FIXIDX,
6967     ALPHA_GETOPT_FIXIDX,
6968     ALPHA_PARENS_FIXIDX,
6969     ALPHA_PTHREAD_FIXIDX,
6970     ALPHA_PTHREAD_GCC_FIXIDX,
6971     ALPHA_SBRK_FIXIDX,
6972     ALPHA_WCHAR_FIXIDX,
6973     AVOID_BOOL_DEFINE_FIXIDX,
6974     AVOID_BOOL_TYPE_FIXIDX,
6975     AVOID_WCHAR_T_TYPE_FIXIDX,
6976     BAD_STRUCT_TERM_FIXIDX,
6977     BADQUOTE_FIXIDX,
6978     BROKEN_ASSERT_STDIO_FIXIDX,
6979     BROKEN_ASSERT_STDLIB_FIXIDX,
6980     BROKEN_CABS_FIXIDX,
6981     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
6982     CTRL_QUOTES_DEF_FIXIDX,
6983     CTRL_QUOTES_USE_FIXIDX,
6984     CXX_UNREADY_FIXIDX,
6985     DARWIN_PRIVATE_EXTERN_FIXIDX,
6986     DEC_INTERN_ASM_FIXIDX,
6987     DJGPP_WCHAR_H_FIXIDX,
6988     ECD_CURSOR_FIXIDX,
6989     EXCEPTION_STRUCTURE_FIXIDX,
6990     FREEBSD_GCC3_BREAKAGE_FIXIDX,
6991     GNU_TYPES_FIXIDX,
6992     HP_INLINE_FIXIDX,
6993     HP_SYSFILE_FIXIDX,
6994     HPUX10_CPP_POW_INLINE_FIXIDX,
6995     HPUX11_CPP_POW_INLINE_FIXIDX,
6996     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
6997     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
6998     HPUX10_STDIO_DECLARATIONS_FIXIDX,
6999     HPUX11_ABS_FIXIDX,
7000     HPUX11_FABSF_FIXIDX,
7001     HPUX11_SIZE_T_FIXIDX,
7002     HPUX11_SNPRINTF_FIXIDX,
7003     HPUX11_UINT32_C_FIXIDX,
7004     HPUX11_VSNPRINTF_FIXIDX,
7005     HPUX8_BOGUS_INLINES_FIXIDX,
7006     HPUX_CTYPE_MACROS_FIXIDX,
7007     HPUX_LONG_DOUBLE_FIXIDX,
7008     HPUX_MAXINT_FIXIDX,
7009     HPUX_SYSTIME_FIXIDX,
7010     INT_ABORT_FREE_AND_EXIT_FIXIDX,
7011     IO_QUOTES_DEF_FIXIDX,
7012     IO_QUOTES_USE_FIXIDX,
7013     IP_MISSING_SEMI_FIXIDX,
7014     IRIX___RESTRICT_FIXIDX,
7015     IRIX_ASM_APOSTROPHE_FIXIDX,
7016     IRIX_LIMITS_CONST_FIXIDX,
7017     IRIX_SOCKLEN_T_FIXIDX,
7018     IRIX_STDIO_VA_LIST_FIXIDX,
7019     IRIX_WCSFTIME_FIXIDX,
7020     ISC_FMOD_FIXIDX,
7021     ISC_OMITS_WITH_STDC_FIXIDX,
7022     KANDR_CONCAT_FIXIDX,
7023     LIBC1_G_VA_LIST_FIXIDX,
7024     LIBC1_IFDEFD_MEMX_FIXIDX,
7025     LIMITS_IFNDEFS_FIXIDX,
7026     LYNX_VOID_INT_FIXIDX,
7027     LYNXOS_FCNTL_PROTO_FIXIDX,
7028     MACHINE_ANSI_H_VA_LIST_FIXIDX,
7029     MACHINE_NAME_FIXIDX,
7030     MATH_EXCEPTION_FIXIDX,
7031     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
7032     MATH_HUGE_VAL_IFNDEF_FIXIDX,
7033     NESTED_AUTH_DES_FIXIDX,
7034     NESTED_MOTOROLA_FIXIDX,
7035     NESTED_SYS_LIMITS_FIXIDX,
7036     NETBSD_EXTRA_SEMICOLON_FIXIDX,
7037     NEXT_MATH_PREFIX_FIXIDX,
7038     NEXT_TEMPLATE_FIXIDX,
7039     NEXT_VOLITILE_FIXIDX,
7040     NEXT_WAIT_UNION_FIXIDX,
7041     NODEENT_SYNTAX_FIXIDX,
7042     OBSTACK_LVALUE_CAST_FIXIDX,
7043     OSF_NAMESPACE_A_FIXIDX,
7044     OSF_NAMESPACE_C_FIXIDX,
7045     PTHREAD_PAGE_SIZE_FIXIDX,
7046     READ_RET_TYPE_FIXIDX,
7047     RPC_XDR_LVALUE_CAST_A_FIXIDX,
7048     RPC_XDR_LVALUE_CAST_B_FIXIDX,
7049     RS6000_DOUBLE_FIXIDX,
7050     RS6000_FCHMOD_FIXIDX,
7051     RS6000_PARAM_FIXIDX,
7052     SCO_MATH_FIXIDX,
7053     SCO_REGSET_FIXIDX,
7054     SCO_STATIC_FUNC_FIXIDX,
7055     SCO_UTIME_FIXIDX,
7056     SOLARIS_MUTEX_INIT_1_FIXIDX,
7057     SOLARIS_MUTEX_INIT_2_FIXIDX,
7058     SOLARIS_SOCKET_FIXIDX,
7059     SOLARIS_STDIO_TAG_FIXIDX,
7060     SOLARIS_UNISTD_FIXIDX,
7061     SOLARIS_WIDEC_FIXIDX,
7062     STATSSWTCH_FIXIDX,
7063     STDIO_STDARG_H_FIXIDX,
7064     STDIO_VA_LIST_FIXIDX,
7065     STRICT_ANSI_NOT_FIXIDX,
7066     STRICT_ANSI_NOT_CTD_FIXIDX,
7067     STRICT_ANSI_ONLY_FIXIDX,
7068     STRUCT_FILE_FIXIDX,
7069     STRUCT_SOCKADDR_FIXIDX,
7070     SUN_AUTH_PROTO_FIXIDX,
7071     SUN_BOGUS_IFDEF_FIXIDX,
7072     SUN_CATMACRO_FIXIDX,
7073     SUN_MALLOC_FIXIDX,
7074     SUN_RUSERS_SEMI_FIXIDX,
7075     SUN_SIGNAL_FIXIDX,
7076     SUNOS_STRLEN_FIXIDX,
7077     SVR4__P_FIXIDX,
7078     SVR4_DISABLE_OPT_FIXIDX,
7079     SVR4_GETCWD_FIXIDX,
7080     SVR4_KRNL_FIXIDX,
7081     SVR4_PROFIL_FIXIDX,
7082     SVR4_SIGHANDLER_TYPE_FIXIDX,
7083     SVR4_UNDECLARED_GETRNGE_FIXIDX,
7084     SYSV68_STRING_FIXIDX,
7085     SYSZ_STDLIB_FOR_SUN_FIXIDX,
7086     THREAD_KEYWORD_FIXIDX,
7087     TINFO_CPLUSPLUS_FIXIDX,
7088     ULTRIX_ATEXIT_PARAM_FIXIDX,
7089     ULTRIX_ATOF_PARAM_FIXIDX,
7090     ULTRIX_CONST_FIXIDX,
7091     ULTRIX_CONST2_FIXIDX,
7092     ULTRIX_CONST3_FIXIDX,
7093     ULTRIX_FIX_FIXPROTO_FIXIDX,
7094     ULTRIX_IFDEF_FIXIDX,
7095     ULTRIX_LOCALE_FIXIDX,
7096     ULTRIX_MATH_IFDEF_FIXIDX,
7097     ULTRIX_NESTED_IOCTL_FIXIDX,
7098     ULTRIX_NESTED_SVC_FIXIDX,
7099     ULTRIX_STAT_FIXIDX,
7100     ULTRIX_STATIC_FIXIDX,
7101     ULTRIX_STDLIB_FIXIDX,
7102     ULTRIX_STRINGS_FIXIDX,
7103     ULTRIX_STRINGS2_FIXIDX,
7104     ULTRIX_SYS_TIME_FIXIDX,
7105     ULTRIX_UNISTD_FIXIDX,
7106     UNDEFINE_NULL_FIXIDX,
7107     UNICOSMK_RESTRICT_FIXIDX,
7108     UW7_BYTEORDER_FIX_FIXIDX,
7109     VA_I960_MACRO_FIXIDX,
7110     VOID_NULL_FIXIDX,
7111     VXWORKS_GCC_PROBLEM_FIXIDX,
7112     VXWORKS_NEEDS_VXTYPES_FIXIDX,
7113     VXWORKS_NEEDS_VXWORKS_FIXIDX,
7114     VXWORKS_TIME_FIXIDX,
7115     WINDISS_MATH1_FIXIDX,
7116     WINDISS_MATH2_FIXIDX,
7117     WINDISS_VALIST_FIXIDX,
7118     X11_CLASS_FIXIDX,
7119     X11_CLASS_USAGE_FIXIDX,
7120     X11_NEW_FIXIDX,
7121     X11_SPRINTF_FIXIDX
7122 } t_fixinc_idx;
7124 tFixDesc fixDescList[ FIX_COUNT ] = {
7125   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
7126      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
7127      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7128      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
7130   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
7131      apzAab_Fd_Zero_Gnu_Types_HMachs,
7132      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7133      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
7135   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
7136      apzAab_Fd_Zero_Selectbits_HMachs,
7137      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7138      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
7140   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
7141      apzAab_Solaris_Sys_Varargs_HMachs,
7142      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7143      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
7145   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
7146      apzAab_Sun_MemcpyMachs,
7147      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7148      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
7150   {  zAab_Ultrix_Ansi_CompatName,    zAab_Ultrix_Ansi_CompatList,
7151      apzAab_Ultrix_Ansi_CompatMachs,
7152      AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7153      aAab_Ultrix_Ansi_CompatTests,   apzAab_Ultrix_Ansi_CompatPatch, 0 },
7155   {  zAab_Ultrix_LimitsName,    zAab_Ultrix_LimitsList,
7156      apzAab_Ultrix_LimitsMachs,
7157      AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7158      aAab_Ultrix_LimitsTests,   apzAab_Ultrix_LimitsPatch, 0 },
7160   {  zAab_Ultrix_MemoryName,    zAab_Ultrix_MemoryList,
7161      apzAab_Ultrix_MemoryMachs,
7162      AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7163      aAab_Ultrix_MemoryTests,   apzAab_Ultrix_MemoryPatch, 0 },
7165   {  zAab_Ultrix_StringName,    zAab_Ultrix_StringList,
7166      apzAab_Ultrix_StringMachs,
7167      AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
7168      aAab_Ultrix_StringTests,   apzAab_Ultrix_StringPatch, 0 },
7170   {  zAix_PthreadName,    zAix_PthreadList,
7171      apzAix_PthreadMachs,
7172      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7173      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
7175   {  zAix_SysmachineName,    zAix_SysmachineList,
7176      apzAix_SysmachineMachs,
7177      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7178      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
7180   {  zAix_SyswaitName,    zAix_SyswaitList,
7181      apzAix_SyswaitMachs,
7182      AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7183      aAix_SyswaitTests,   apzAix_SyswaitPatch, 0 },
7185   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
7186      apzAix_Syswait_2Machs,
7187      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7188      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
7190   {  zAix_VolatileName,    zAix_VolatileList,
7191      apzAix_VolatileMachs,
7192      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7193      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
7195   {  zAlpha___AssertName,    zAlpha___AssertList,
7196      apzAlpha___AssertMachs,
7197      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7198      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
7200   {  zAlpha___Extern_PrefixName,    zAlpha___Extern_PrefixList,
7201      apzAlpha___Extern_PrefixMachs,
7202      ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7203      aAlpha___Extern_PrefixTests,   apzAlpha___Extern_PrefixPatch, 0 },
7205   {  zAlpha___Extern_Prefix_StandardsName,    zAlpha___Extern_Prefix_StandardsList,
7206      apzAlpha___Extern_Prefix_StandardsMachs,
7207      ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7208      aAlpha___Extern_Prefix_StandardsTests,   apzAlpha___Extern_Prefix_StandardsPatch, 0 },
7210   {  zAlpha___Extern_Prefix_Sys_StatName,    zAlpha___Extern_Prefix_Sys_StatList,
7211      apzAlpha___Extern_Prefix_Sys_StatMachs,
7212      ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7213      aAlpha___Extern_Prefix_Sys_StatTests,   apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
7215   {  zAlpha_AssertName,    zAlpha_AssertList,
7216      apzAlpha_AssertMachs,
7217      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7218      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
7220   {  zAlpha_Bad_LvalName,    zAlpha_Bad_LvalList,
7221      apzAlpha_Bad_LvalMachs,
7222      ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
7223      aAlpha_Bad_LvalTests,   apzAlpha_Bad_LvalPatch, 0 },
7225   {  zAlpha_GetoptName,    zAlpha_GetoptList,
7226      apzAlpha_GetoptMachs,
7227      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7228      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
7230   {  zAlpha_ParensName,    zAlpha_ParensList,
7231      apzAlpha_ParensMachs,
7232      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7233      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
7235   {  zAlpha_PthreadName,    zAlpha_PthreadList,
7236      apzAlpha_PthreadMachs,
7237      ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7238      aAlpha_PthreadTests,   apzAlpha_PthreadPatch, 0 },
7240   {  zAlpha_Pthread_GccName,    zAlpha_Pthread_GccList,
7241      apzAlpha_Pthread_GccMachs,
7242      ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7243      aAlpha_Pthread_GccTests,   apzAlpha_Pthread_GccPatch, 0 },
7245   {  zAlpha_SbrkName,    zAlpha_SbrkList,
7246      apzAlpha_SbrkMachs,
7247      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7248      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
7250   {  zAlpha_WcharName,    zAlpha_WcharList,
7251      apzAlpha_WcharMachs,
7252      ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
7253      aAlpha_WcharTests,   apzAlpha_WcharPatch, 0 },
7255   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
7256      apzAvoid_Bool_DefineMachs,
7257      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7258      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
7260   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
7261      apzAvoid_Bool_TypeMachs,
7262      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7263      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
7265   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
7266      apzAvoid_Wchar_T_TypeMachs,
7267      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7268      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
7270   {  zBad_Struct_TermName,    zBad_Struct_TermList,
7271      apzBad_Struct_TermMachs,
7272      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7273      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
7275   {  zBadquoteName,    zBadquoteList,
7276      apzBadquoteMachs,
7277      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7278      aBadquoteTests,   apzBadquotePatch, 0 },
7280   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
7281      apzBroken_Assert_StdioMachs,
7282      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7283      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
7285   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
7286      apzBroken_Assert_StdlibMachs,
7287      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7288      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
7290   {  zBroken_CabsName,    zBroken_CabsList,
7291      apzBroken_CabsMachs,
7292      BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7293      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
7295   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
7296      apzBsd_Stdio_Attrs_ConflictMachs,
7297      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7298      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
7300   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
7301      apzCtrl_Quotes_DefMachs,
7302      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7303      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
7305   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
7306      apzCtrl_Quotes_UseMachs,
7307      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7308      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
7310   {  zCxx_UnreadyName,    zCxx_UnreadyList,
7311      apzCxx_UnreadyMachs,
7312      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7313      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
7315   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
7316      apzDarwin_Private_ExternMachs,
7317      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7318      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
7320   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
7321      apzDec_Intern_AsmMachs,
7322      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
7323      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
7325   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
7326      apzDjgpp_Wchar_HMachs,
7327      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7328      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
7330   {  zEcd_CursorName,    zEcd_CursorList,
7331      apzEcd_CursorMachs,
7332      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7333      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
7335   {  zException_StructureName,    zException_StructureList,
7336      apzException_StructureMachs,
7337      EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7338      aException_StructureTests,   apzException_StructurePatch, 0 },
7340   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
7341      apzFreebsd_Gcc3_BreakageMachs,
7342      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7343      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
7345   {  zGnu_TypesName,    zGnu_TypesList,
7346      apzGnu_TypesMachs,
7347      GNU_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7348      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
7350   {  zHp_InlineName,    zHp_InlineList,
7351      apzHp_InlineMachs,
7352      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7353      aHp_InlineTests,   apzHp_InlinePatch, 0 },
7355   {  zHp_SysfileName,    zHp_SysfileList,
7356      apzHp_SysfileMachs,
7357      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7358      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
7360   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
7361      apzHpux10_Cpp_Pow_InlineMachs,
7362      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7363      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
7365   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
7366      apzHpux11_Cpp_Pow_InlineMachs,
7367      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7368      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
7370   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
7371      apzHpux10_Ctype_Declarations1Machs,
7372      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7373      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
7375   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
7376      apzHpux10_Ctype_Declarations2Machs,
7377      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7378      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
7380   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
7381      apzHpux10_Stdio_DeclarationsMachs,
7382      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7383      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
7385   {  zHpux11_AbsName,    zHpux11_AbsList,
7386      apzHpux11_AbsMachs,
7387      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7388      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
7390   {  zHpux11_FabsfName,    zHpux11_FabsfList,
7391      apzHpux11_FabsfMachs,
7392      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7393      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
7395   {  zHpux11_Size_TName,    zHpux11_Size_TList,
7396      apzHpux11_Size_TMachs,
7397      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7398      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
7400   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
7401      apzHpux11_SnprintfMachs,
7402      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7403      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
7405   {  zHpux11_Uint32_CName,    zHpux11_Uint32_CList,
7406      apzHpux11_Uint32_CMachs,
7407      HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7408      aHpux11_Uint32_CTests,   apzHpux11_Uint32_CPatch, 0 },
7410   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
7411      apzHpux11_VsnprintfMachs,
7412      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7413      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
7415   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
7416      apzHpux8_Bogus_InlinesMachs,
7417      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
7418      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
7420   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
7421      apzHpux_Ctype_MacrosMachs,
7422      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7423      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
7425   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
7426      apzHpux_Long_DoubleMachs,
7427      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
7428      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
7430   {  zHpux_MaxintName,    zHpux_MaxintList,
7431      apzHpux_MaxintMachs,
7432      HPUX_MAXINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7433      aHpux_MaxintTests,   apzHpux_MaxintPatch, 0 },
7435   {  zHpux_SystimeName,    zHpux_SystimeList,
7436      apzHpux_SystimeMachs,
7437      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7438      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
7440   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
7441      apzInt_Abort_Free_And_ExitMachs,
7442      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7443      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
7445   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
7446      apzIo_Quotes_DefMachs,
7447      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7448      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
7450   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
7451      apzIo_Quotes_UseMachs,
7452      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7453      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
7455   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
7456      apzIp_Missing_SemiMachs,
7457      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
7458      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
7460   {  zIrix___RestrictName,    zIrix___RestrictList,
7461      apzIrix___RestrictMachs,
7462      IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7463      aIrix___RestrictTests,   apzIrix___RestrictPatch, 0 },
7465   {  zIrix_Asm_ApostropheName,    zIrix_Asm_ApostropheList,
7466      apzIrix_Asm_ApostropheMachs,
7467      IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7468      aIrix_Asm_ApostropheTests,   apzIrix_Asm_ApostrophePatch, 0 },
7470   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
7471      apzIrix_Limits_ConstMachs,
7472      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7473      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
7475   {  zIrix_Socklen_TName,    zIrix_Socklen_TList,
7476      apzIrix_Socklen_TMachs,
7477      IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7478      aIrix_Socklen_TTests,   apzIrix_Socklen_TPatch, 0 },
7480   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
7481      apzIrix_Stdio_Va_ListMachs,
7482      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7483      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
7485   {  zIrix_WcsftimeName,    zIrix_WcsftimeList,
7486      apzIrix_WcsftimeMachs,
7487      IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7488      aIrix_WcsftimeTests,   apzIrix_WcsftimePatch, 0 },
7490   {  zIsc_FmodName,    zIsc_FmodList,
7491      apzIsc_FmodMachs,
7492      ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7493      aIsc_FmodTests,   apzIsc_FmodPatch, 0 },
7495   {  zIsc_Omits_With_StdcName,    zIsc_Omits_With_StdcList,
7496      apzIsc_Omits_With_StdcMachs,
7497      ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7498      aIsc_Omits_With_StdcTests,   apzIsc_Omits_With_StdcPatch, 0 },
7500   {  zKandr_ConcatName,    zKandr_ConcatList,
7501      apzKandr_ConcatMachs,
7502      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7503      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
7505   {  zLibc1_G_Va_ListName,    zLibc1_G_Va_ListList,
7506      apzLibc1_G_Va_ListMachs,
7507      LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7508      aLibc1_G_Va_ListTests,   apzLibc1_G_Va_ListPatch, 0 },
7510   {  zLibc1_Ifdefd_MemxName,    zLibc1_Ifdefd_MemxList,
7511      apzLibc1_Ifdefd_MemxMachs,
7512      LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7513      aLibc1_Ifdefd_MemxTests,   apzLibc1_Ifdefd_MemxPatch, 0 },
7515   {  zLimits_IfndefsName,    zLimits_IfndefsList,
7516      apzLimits_IfndefsMachs,
7517      LIMITS_IFNDEFS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7518      aLimits_IfndefsTests,   apzLimits_IfndefsPatch, 0 },
7520   {  zLynx_Void_IntName,    zLynx_Void_IntList,
7521      apzLynx_Void_IntMachs,
7522      LYNX_VOID_INT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7523      aLynx_Void_IntTests,   apzLynx_Void_IntPatch, 0 },
7525   {  zLynxos_Fcntl_ProtoName,    zLynxos_Fcntl_ProtoList,
7526      apzLynxos_Fcntl_ProtoMachs,
7527      LYNXOS_FCNTL_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7528      aLynxos_Fcntl_ProtoTests,   apzLynxos_Fcntl_ProtoPatch, 0 },
7530   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
7531      apzMachine_Ansi_H_Va_ListMachs,
7532      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7533      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
7535   {  zMachine_NameName,    zMachine_NameList,
7536      apzMachine_NameMachs,
7537      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7538      aMachine_NameTests,   apzMachine_NamePatch, 0 },
7540   {  zMath_ExceptionName,    zMath_ExceptionList,
7541      apzMath_ExceptionMachs,
7542      MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7543      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
7545   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
7546      apzMath_Huge_Val_From_Dbl_MaxMachs,
7547      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
7548      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
7550   {  zMath_Huge_Val_IfndefName,    zMath_Huge_Val_IfndefList,
7551      apzMath_Huge_Val_IfndefMachs,
7552      MATH_HUGE_VAL_IFNDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7553      aMath_Huge_Val_IfndefTests,   apzMath_Huge_Val_IfndefPatch, 0 },
7555   {  zNested_Auth_DesName,    zNested_Auth_DesList,
7556      apzNested_Auth_DesMachs,
7557      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7558      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
7560   {  zNested_MotorolaName,    zNested_MotorolaList,
7561      apzNested_MotorolaMachs,
7562      NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
7563      aNested_MotorolaTests,   apzNested_MotorolaPatch, 0 },
7565   {  zNested_Sys_LimitsName,    zNested_Sys_LimitsList,
7566      apzNested_Sys_LimitsMachs,
7567      NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
7568      aNested_Sys_LimitsTests,   apzNested_Sys_LimitsPatch, 0 },
7570   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
7571      apzNetbsd_Extra_SemicolonMachs,
7572      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7573      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
7575   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
7576      apzNext_Math_PrefixMachs,
7577      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7578      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
7580   {  zNext_TemplateName,    zNext_TemplateList,
7581      apzNext_TemplateMachs,
7582      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7583      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
7585   {  zNext_VolitileName,    zNext_VolitileList,
7586      apzNext_VolitileMachs,
7587      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7588      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
7590   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
7591      apzNext_Wait_UnionMachs,
7592      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7593      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
7595   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
7596      apzNodeent_SyntaxMachs,
7597      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7598      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
7600   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
7601      apzObstack_Lvalue_CastMachs,
7602      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7603      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
7605   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
7606      apzOsf_Namespace_AMachs,
7607      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7608      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
7610   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
7611      apzOsf_Namespace_CMachs,
7612      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7613      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
7615   {  zPthread_Page_SizeName,    zPthread_Page_SizeList,
7616      apzPthread_Page_SizeMachs,
7617      PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7618      aPthread_Page_SizeTests,   apzPthread_Page_SizePatch, 0 },
7620   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
7621      apzRead_Ret_TypeMachs,
7622      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7623      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
7625   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
7626      apzRpc_Xdr_Lvalue_Cast_AMachs,
7627      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7628      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
7630   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
7631      apzRpc_Xdr_Lvalue_Cast_BMachs,
7632      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7633      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
7635   {  zRs6000_DoubleName,    zRs6000_DoubleList,
7636      apzRs6000_DoubleMachs,
7637      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7638      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
7640   {  zRs6000_FchmodName,    zRs6000_FchmodList,
7641      apzRs6000_FchmodMachs,
7642      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7643      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
7645   {  zRs6000_ParamName,    zRs6000_ParamList,
7646      apzRs6000_ParamMachs,
7647      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7648      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
7650   {  zSco_MathName,    zSco_MathList,
7651      apzSco_MathMachs,
7652      SCO_MATH_TEST_CT, FD_MACH_ONLY,
7653      aSco_MathTests,   apzSco_MathPatch, 0 },
7655   {  zSco_RegsetName,    zSco_RegsetList,
7656      apzSco_RegsetMachs,
7657      SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7658      aSco_RegsetTests,   apzSco_RegsetPatch, 0 },
7660   {  zSco_Static_FuncName,    zSco_Static_FuncList,
7661      apzSco_Static_FuncMachs,
7662      SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
7663      aSco_Static_FuncTests,   apzSco_Static_FuncPatch, 0 },
7665   {  zSco_UtimeName,    zSco_UtimeList,
7666      apzSco_UtimeMachs,
7667      SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7668      aSco_UtimeTests,   apzSco_UtimePatch, 0 },
7670   {  zSolaris_Mutex_Init_1Name,    zSolaris_Mutex_Init_1List,
7671      apzSolaris_Mutex_Init_1Machs,
7672      SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
7673      aSolaris_Mutex_Init_1Tests,   apzSolaris_Mutex_Init_1Patch, 0 },
7675   {  zSolaris_Mutex_Init_2Name,    zSolaris_Mutex_Init_2List,
7676      apzSolaris_Mutex_Init_2Machs,
7677      SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7678      aSolaris_Mutex_Init_2Tests,   apzSolaris_Mutex_Init_2Patch, 0 },
7680   {  zSolaris_SocketName,    zSolaris_SocketList,
7681      apzSolaris_SocketMachs,
7682      SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7683      aSolaris_SocketTests,   apzSolaris_SocketPatch, 0 },
7685   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
7686      apzSolaris_Stdio_TagMachs,
7687      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
7688      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
7690   {  zSolaris_UnistdName,    zSolaris_UnistdList,
7691      apzSolaris_UnistdMachs,
7692      SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7693      aSolaris_UnistdTests,   apzSolaris_UnistdPatch, 0 },
7695   {  zSolaris_WidecName,    zSolaris_WidecList,
7696      apzSolaris_WidecMachs,
7697      SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7698      aSolaris_WidecTests,   apzSolaris_WidecPatch, 0 },
7700   {  zStatsswtchName,    zStatsswtchList,
7701      apzStatsswtchMachs,
7702      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7703      aStatsswtchTests,   apzStatsswtchPatch, 0 },
7705   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
7706      apzStdio_Stdarg_HMachs,
7707      STDIO_STDARG_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7708      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
7710   {  zStdio_Va_ListName,    zStdio_Va_ListList,
7711      apzStdio_Va_ListMachs,
7712      STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY,
7713      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
7715   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
7716      apzStrict_Ansi_NotMachs,
7717      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7718      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
7720   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
7721      apzStrict_Ansi_Not_CtdMachs,
7722      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7723      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
7725   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
7726      apzStrict_Ansi_OnlyMachs,
7727      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7728      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
7730   {  zStruct_FileName,    zStruct_FileList,
7731      apzStruct_FileMachs,
7732      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7733      aStruct_FileTests,   apzStruct_FilePatch, 0 },
7735   {  zStruct_SockaddrName,    zStruct_SockaddrList,
7736      apzStruct_SockaddrMachs,
7737      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7738      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
7740   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
7741      apzSun_Auth_ProtoMachs,
7742      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7743      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
7745   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
7746      apzSun_Bogus_IfdefMachs,
7747      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7748      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
7750   {  zSun_CatmacroName,    zSun_CatmacroList,
7751      apzSun_CatmacroMachs,
7752      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7753      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
7755   {  zSun_MallocName,    zSun_MallocList,
7756      apzSun_MallocMachs,
7757      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
7758      aSun_MallocTests,   apzSun_MallocPatch, 0 },
7760   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
7761      apzSun_Rusers_SemiMachs,
7762      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
7763      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
7765   {  zSun_SignalName,    zSun_SignalList,
7766      apzSun_SignalMachs,
7767      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7768      aSun_SignalTests,   apzSun_SignalPatch, 0 },
7770   {  zSunos_StrlenName,    zSunos_StrlenList,
7771      apzSunos_StrlenMachs,
7772      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7773      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
7775   {  zSvr4__PName,    zSvr4__PList,
7776      apzSvr4__PMachs,
7777      SVR4__P_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7778      aSvr4__PTests,   apzSvr4__PPatch, 0 },
7780   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
7781      apzSvr4_Disable_OptMachs,
7782      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
7783      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
7785   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
7786      apzSvr4_GetcwdMachs,
7787      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7788      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
7790   {  zSvr4_KrnlName,    zSvr4_KrnlList,
7791      apzSvr4_KrnlMachs,
7792      SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7793      aSvr4_KrnlTests,   apzSvr4_KrnlPatch, 0 },
7795   {  zSvr4_ProfilName,    zSvr4_ProfilList,
7796      apzSvr4_ProfilMachs,
7797      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7798      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
7800   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
7801      apzSvr4_Sighandler_TypeMachs,
7802      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7803      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
7805   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
7806      apzSvr4_Undeclared_GetrngeMachs,
7807      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7808      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
7810   {  zSysv68_StringName,    zSysv68_StringList,
7811      apzSysv68_StringMachs,
7812      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
7813      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
7815   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
7816      apzSysz_Stdlib_For_SunMachs,
7817      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7818      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
7820   {  zThread_KeywordName,    zThread_KeywordList,
7821      apzThread_KeywordMachs,
7822      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7823      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
7825   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
7826      apzTinfo_CplusplusMachs,
7827      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7828      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
7830   {  zUltrix_Atexit_ParamName,    zUltrix_Atexit_ParamList,
7831      apzUltrix_Atexit_ParamMachs,
7832      ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7833      aUltrix_Atexit_ParamTests,   apzUltrix_Atexit_ParamPatch, 0 },
7835   {  zUltrix_Atof_ParamName,    zUltrix_Atof_ParamList,
7836      apzUltrix_Atof_ParamMachs,
7837      ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7838      aUltrix_Atof_ParamTests,   apzUltrix_Atof_ParamPatch, 0 },
7840   {  zUltrix_ConstName,    zUltrix_ConstList,
7841      apzUltrix_ConstMachs,
7842      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7843      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
7845   {  zUltrix_Const2Name,    zUltrix_Const2List,
7846      apzUltrix_Const2Machs,
7847      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7848      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
7850   {  zUltrix_Const3Name,    zUltrix_Const3List,
7851      apzUltrix_Const3Machs,
7852      ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7853      aUltrix_Const3Tests,   apzUltrix_Const3Patch, 0 },
7855   {  zUltrix_Fix_FixprotoName,    zUltrix_Fix_FixprotoList,
7856      apzUltrix_Fix_FixprotoMachs,
7857      ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7858      aUltrix_Fix_FixprotoTests,   apzUltrix_Fix_FixprotoPatch, 0 },
7860   {  zUltrix_IfdefName,    zUltrix_IfdefList,
7861      apzUltrix_IfdefMachs,
7862      ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7863      aUltrix_IfdefTests,   apzUltrix_IfdefPatch, 0 },
7865   {  zUltrix_LocaleName,    zUltrix_LocaleList,
7866      apzUltrix_LocaleMachs,
7867      ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7868      aUltrix_LocaleTests,   apzUltrix_LocalePatch, 0 },
7870   {  zUltrix_Math_IfdefName,    zUltrix_Math_IfdefList,
7871      apzUltrix_Math_IfdefMachs,
7872      ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7873      aUltrix_Math_IfdefTests,   apzUltrix_Math_IfdefPatch, 0 },
7875   {  zUltrix_Nested_IoctlName,    zUltrix_Nested_IoctlList,
7876      apzUltrix_Nested_IoctlMachs,
7877      ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
7878      aUltrix_Nested_IoctlTests,   apzUltrix_Nested_IoctlPatch, 0 },
7880   {  zUltrix_Nested_SvcName,    zUltrix_Nested_SvcList,
7881      apzUltrix_Nested_SvcMachs,
7882      ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
7883      aUltrix_Nested_SvcTests,   apzUltrix_Nested_SvcPatch, 0 },
7885   {  zUltrix_StatName,    zUltrix_StatList,
7886      apzUltrix_StatMachs,
7887      ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
7888      aUltrix_StatTests,   apzUltrix_StatPatch, 0 },
7890   {  zUltrix_StaticName,    zUltrix_StaticList,
7891      apzUltrix_StaticMachs,
7892      ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
7893      aUltrix_StaticTests,   apzUltrix_StaticPatch, 0 },
7895   {  zUltrix_StdlibName,    zUltrix_StdlibList,
7896      apzUltrix_StdlibMachs,
7897      ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
7898      aUltrix_StdlibTests,   apzUltrix_StdlibPatch, 0 },
7900   {  zUltrix_StringsName,    zUltrix_StringsList,
7901      apzUltrix_StringsMachs,
7902      ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7903      aUltrix_StringsTests,   apzUltrix_StringsPatch, 0 },
7905   {  zUltrix_Strings2Name,    zUltrix_Strings2List,
7906      apzUltrix_Strings2Machs,
7907      ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
7908      aUltrix_Strings2Tests,   apzUltrix_Strings2Patch, 0 },
7910   {  zUltrix_Sys_TimeName,    zUltrix_Sys_TimeList,
7911      apzUltrix_Sys_TimeMachs,
7912      ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
7913      aUltrix_Sys_TimeTests,   apzUltrix_Sys_TimePatch, 0 },
7915   {  zUltrix_UnistdName,    zUltrix_UnistdList,
7916      apzUltrix_UnistdMachs,
7917      ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
7918      aUltrix_UnistdTests,   apzUltrix_UnistdPatch, 0 },
7920   {  zUndefine_NullName,    zUndefine_NullList,
7921      apzUndefine_NullMachs,
7922      UNDEFINE_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7923      aUndefine_NullTests,   apzUndefine_NullPatch, 0 },
7925   {  zUnicosmk_RestrictName,    zUnicosmk_RestrictList,
7926      apzUnicosmk_RestrictMachs,
7927      UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7928      aUnicosmk_RestrictTests,   apzUnicosmk_RestrictPatch, 0 },
7930   {  zUw7_Byteorder_FixName,    zUw7_Byteorder_FixList,
7931      apzUw7_Byteorder_FixMachs,
7932      UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7933      aUw7_Byteorder_FixTests,   apzUw7_Byteorder_FixPatch, 0 },
7935   {  zVa_I960_MacroName,    zVa_I960_MacroList,
7936      apzVa_I960_MacroMachs,
7937      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7938      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
7940   {  zVoid_NullName,    zVoid_NullList,
7941      apzVoid_NullMachs,
7942      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7943      aVoid_NullTests,   apzVoid_NullPatch, 0 },
7945   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
7946      apzVxworks_Gcc_ProblemMachs,
7947      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
7948      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
7950   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
7951      apzVxworks_Needs_VxtypesMachs,
7952      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7953      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
7955   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
7956      apzVxworks_Needs_VxworksMachs,
7957      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
7958      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
7960   {  zVxworks_TimeName,    zVxworks_TimeList,
7961      apzVxworks_TimeMachs,
7962      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7963      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
7965   {  zWindiss_Math1Name,    zWindiss_Math1List,
7966      apzWindiss_Math1Machs,
7967      WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
7968      aWindiss_Math1Tests,   apzWindiss_Math1Patch, 0 },
7970   {  zWindiss_Math2Name,    zWindiss_Math2List,
7971      apzWindiss_Math2Machs,
7972      WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
7973      aWindiss_Math2Tests,   apzWindiss_Math2Patch, 0 },
7975   {  zWindiss_ValistName,    zWindiss_ValistList,
7976      apzWindiss_ValistMachs,
7977      WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
7978      aWindiss_ValistTests,   apzWindiss_ValistPatch, 0 },
7980   {  zX11_ClassName,    zX11_ClassList,
7981      apzX11_ClassMachs,
7982      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7983      aX11_ClassTests,   apzX11_ClassPatch, 0 },
7985   {  zX11_Class_UsageName,    zX11_Class_UsageList,
7986      apzX11_Class_UsageMachs,
7987      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7988      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
7990   {  zX11_NewName,    zX11_NewList,
7991      apzX11_NewMachs,
7992      X11_NEW_TEST_CT, FD_MACH_ONLY,
7993      aX11_NewTests,   apzX11_NewPatch, 0 },
7995   {  zX11_SprintfName,    zX11_SprintfList,
7996      apzX11_SprintfMachs,
7997      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
7998      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }