./:
[official-gcc.git] / fixincludes / fixincl.x
blob795b852d6d76b1bd02c971d53f4d833cd153dc6d
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 January 15, 2007 at 09:38:13 PM CET
6  * From the definitions    inclhack.def
7  * and the template file   fixincl
8  */
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Mo Jan 15 21:38:13 CET 2007
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 207 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 of the License, or (at your option)
30  *  any later version.
31  *  
32  *  inclhack is distributed in the hope that it will be useful,
33  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
34  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35  *  See the GNU General Public License for more details.
36  *  
37  *  You should have received a copy of the GNU General Public License
38  *  along with inclhack.  If not, write to:
39  *      The Free Software Foundation, Inc.,
40  *      51 Franklin Street, Fifth Floor
41  *      Boston, MA  02110-1301, USA.
42  */
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
45  *
46  *  Description of Aab_Darwin7_9_Long_Double_Funcs fix
47  */
48 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
49      "AAB_darwin7_9_long_double_funcs";
52  *  File name selection pattern
53  */
54 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
55   "architecture/ppc/math.h\0";
57  *  Machine/OS name selection pattern
58  */
59 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
60         "*-*-darwin7.9*",
61         (const char*)NULL };
64  *  content bypass pattern - skip fix if pattern found
65  */
66 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
67        "powl";
69 #define    AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT  1
70 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
71   { TT_NEGREP,   zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
74  *  Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
75  */
76 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
77 "/* This file prototypes the long double functions available on Mac OS\n\
78    10.3.9.  */\n\
79 #ifndef __MATH__\n\
80 # undef __APPLE_CC__\n\
81 # define __APPLE_CC__  1345\n\
82 # include_next <architecture/ppc/math.h>\n\
83 # undef __APPLE_CC__\n\
84 # define __APPLE_CC__ 1\n\
85 # ifndef __LIBMLDBL_COMPAT\n\
86 #  ifdef __LONG_DOUBLE_128__\n\
87 #   define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
88 #  else\n\
89 #   define __LIBMLDBL_COMPAT(sym)\n\
90 #  endif /* __LONG_DOUBLE_128__ */\n\
91 # endif /* __LIBMLDBL_COMPAT */\n\
92 # ifdef __cplusplus\n\
93    extern \"C\" {\n\
94 # endif\n\
95   extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
96   extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
97   extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
98   extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
99   extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
100   extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
101   extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
102   extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
103   extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
104   extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
105   extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
106   extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
107   extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
108   extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
109   extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
110   extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
111   extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
112   extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
113   extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
114   extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
115   extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
116   extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
117   extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
118   extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
119   extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
120   extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
121   extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
122   extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
123   extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
124   extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
125   extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
126   extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
127   extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
128   extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
129   extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
130   extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
131   extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
132   extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
133   extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
134   extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
135   extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
136   extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
137   extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
138   extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
139   extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
140   extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
141   extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
142   extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
143   extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
144   extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
145   extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
146   extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
147   extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
148   extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
149   extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
150   extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
151   extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
152 # ifdef __cplusplus\n\
153    }\n\
154 # endif\n\
155 #endif /* __MATH__ */",
156     (char*)NULL };
158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
160  *  Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
161  */
162 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
163      "AAB_darwin7_9_long_double_funcs_2";
166  *  File name selection pattern
167  */
168 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
169   "math.h\0";
171  *  Machine/OS name selection pattern
172  */
173 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
174         "*-*-darwin7.9*",
175         (const char*)NULL };
178  *  content selection pattern - do fix if pattern found
179  */
180 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
181        "#include[ \\t]+\\\"";
183 #define    AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT  1
184 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
185   { TT_EGREP,    zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
188  *  Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
189  */
190 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
191     "format",
192     "%1<%2.h>",
193     "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
194     (char*)NULL };
196 /* * * * * * * * * * * * * * * * * * * * * * * * * *
198  *  Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
199  */
200 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
201      "AAB_fd_zero_asm_posix_types_h";
204  *  File name selection pattern
205  */
206 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
207   "asm/posix_types.h\0";
209  *  Machine/OS name selection pattern
210  */
211 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
212         "i[34567]86-*-linux*",
213         (const char*)NULL };
216  *  content bypass pattern - skip fix if pattern found
217  */
218 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
219        "} while";
220 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
221        "x86_64";
223 #define    AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT  2
224 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
225   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
226   { TT_NEGREP,   zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL }, };
229  *  Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
230  */
231 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
232 "/* This file fixes a bug in the __FD_ZERO macro\n\
233    for older versions of the Linux kernel. */\n\
234 #ifndef _POSIX_TYPES_H_WRAPPER\n\
235 #include <features.h>\n\
236  #include_next <asm/posix_types.h>\n\n\
237 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
238 #undef __FD_ZERO\n\
239 #define __FD_ZERO(fdsetp) \\\n\
240   do { \\\n\
241     int __d0, __d1; \\\n\
242 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
243 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
244 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
245   \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
246   } while (0)\n\
247 #endif\n\n\
248 #define _POSIX_TYPES_H_WRAPPER\n\
249 #endif /* _POSIX_TYPES_H_WRAPPER */",
250     (char*)NULL };
252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
254  *  Description of Aab_Fd_Zero_Gnu_Types_H fix
255  */
256 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
257      "AAB_fd_zero_gnu_types_h";
260  *  File name selection pattern
261  */
262 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
263   "gnu/types.h\0";
265  *  Machine/OS name selection pattern
266  */
267 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
268         "i[34567]86-*-linux*",
269         (const char*)NULL };
270 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT  0
271 #define aAab_Fd_Zero_Gnu_Types_HTests   (tTestDesc*)NULL
274  *  Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
275  */
276 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
277 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
278 #ifndef _TYPES_H_WRAPPER\n\
279 #include <features.h>\n\
280 #include_next <gnu/types.h>\n\n\
281 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
282 #undef __FD_ZERO\n\
283 # define __FD_ZERO(fdsetp) \\\n\
284   do { \\\n\
285     int __d0, __d1; \\\n\
286         __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
287         : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
288         : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
289           \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
290   } while (0)\n\
291 #endif\n\n\
292 #define _TYPES_H_WRAPPER\n\
293 #endif /* _TYPES_H_WRAPPER */",
294     (char*)NULL };
296 /* * * * * * * * * * * * * * * * * * * * * * * * * *
298  *  Description of Aab_Fd_Zero_Selectbits_H fix
299  */
300 tSCC zAab_Fd_Zero_Selectbits_HName[] =
301      "AAB_fd_zero_selectbits_h";
304  *  File name selection pattern
305  */
306 tSCC zAab_Fd_Zero_Selectbits_HList[] =
307   "selectbits.h\0";
309  *  Machine/OS name selection pattern
310  */
311 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
312         "i[34567]86-*-linux*",
313         (const char*)NULL };
314 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT  0
315 #define aAab_Fd_Zero_Selectbits_HTests   (tTestDesc*)NULL
318  *  Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
319  */
320 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
321 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
322 #ifndef _SELECTBITS_H_WRAPPER\n\
323   #include <features.h>\n\
324   #include_next <selectbits.h>\n\n\
325   #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
326   && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
327   && __GLIBC_MINOR__ == 0\n\
328      #undef __FD_ZERO\n\
329      #define __FD_ZERO(fdsetp) \\\\\n\
330      do { \\\\\n\
331         int __d0, __d1; \\\\\n\
332       __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
333                         : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
334                         : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
335                                         / sizeof (__fd_mask)), \\\\\n\
336                           \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
337                         : \"memory\"); \\\\\n\
338       } while (0)\n\
339   #endif\n\n\
340   #define _SELECTBITS_H_WRAPPER\n\
341 #endif /* _SELECTBITS_H_WRAPPER */",
342     (char*)NULL };
344 /* * * * * * * * * * * * * * * * * * * * * * * * * *
346  *  Description of Aab_Solaris_Sys_Varargs_H fix
347  */
348 tSCC zAab_Solaris_Sys_Varargs_HName[] =
349      "AAB_solaris_sys_varargs_h";
352  *  File name selection pattern
353  */
354 tSCC zAab_Solaris_Sys_Varargs_HList[] =
355   "sys/varargs.h\0";
357  *  Machine/OS name selection pattern
358  */
359 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
360         "*-*-solaris*",
361         (const char*)NULL };
362 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT  0
363 #define aAab_Solaris_Sys_Varargs_HTests   (tTestDesc*)NULL
366  *  Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
367  */
368 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
369 "#ifdef __STDC__\n\
370   #include <stdarg.h>\n\
371 #else\n\
372   #include <varargs.h>\n\
373 #endif",
374     (char*)NULL };
376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
378  *  Description of Aab_Sun_Memcpy fix
379  */
380 tSCC zAab_Sun_MemcpyName[] =
381      "AAB_sun_memcpy";
384  *  File name selection pattern
385  */
386 tSCC zAab_Sun_MemcpyList[] =
387   "memory.h\0";
389  *  Machine/OS name selection pattern
390  */
391 #define apzAab_Sun_MemcpyMachs (const char**)NULL
394  *  content selection pattern - do fix if pattern found
395  */
396 tSCC zAab_Sun_MemcpySelect0[] =
397        "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
399 #define    AAB_SUN_MEMCPY_TEST_CT  1
400 static tTestDesc aAab_Sun_MemcpyTests[] = {
401   { TT_EGREP,    zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
404  *  Fix Command Arguments for Aab_Sun_Memcpy
405  */
406 static const char* apzAab_Sun_MemcpyPatch[] = {
407 "/* This file was generated by fixincludes */\n\
408 #ifndef __memory_h__\n\
409   #define __memory_h__\n\n\
410   #ifdef __STDC__\n\
411     extern void *memccpy();\n\
412     extern void *memchr();\n\
413     extern void *memcpy();\n\
414     extern void *memset();\n\
415   #else\n\
416     extern char *memccpy();\n\
417     extern char *memchr();\n\
418     extern char *memcpy();\n\
419     extern char *memset();\n\
420   #endif /* __STDC__ */\n\n\
421   extern int memcmp();\n\n\
422 #endif /* __memory_h__ */\n\
423 _EndOfHeader;\n\
424 };\n\n\n\
425 /*\n\
426  *  Completely replace <sys/varargs.h> with a file that includes gcc's\n\
427  *  stdarg.h or varargs.h files as appropriate.\n\
428  */\n\
429 #ifdef SVR4\n\
430 fix = {\n\
431     hackname = AAB_svr4_no_varargs;\n\
432     files    = sys/varargs.h;\n\
433     replace  = \"/* This file was generated by fixincludes.  */\\n\"\n\
434                \"#ifndef _SYS_VARARGS_H\\n\"\n\
435                \"#define _SYS_VARARGS_H\\n\\n\"\n\n\
436                \"#ifdef __STDC__\\n\"\n\
437                \"#include <stdarg.h>\\n\"\n\
438                \"#else\\n\"\n\
439                \"#include <varargs.h>\\n\"\n\
440                \"#endif\\n\\n\"\n\n\
441                \"#endif  /* _SYS_VARARGS_H */\\n\";\n\
442 };\n\
443 #endif\n\n\n\
444 /*\n\
445  *  Completely replace <sys/byteorder.h> with a file that implements gcc's\n\
446  *  optimized byteswapping.  (The original probably implemented some\n\
447  *  incompatible optimized byteswapping.)\n\
448  */\n\
449 fix = {\n\
450     hackname = AAB_svr4_replace_byteorder;\n\
451     mach     = \"*-*-sysv4*\";\n\
452     mach     = \"i[34567]86-*-sysv5*\";\n\
453     mach     = \"i[34567]86-*-sco3.2v5*\";\n\
454     mach     = \"i[34567]86-*-udk*\";\n\
455     mach     = \"i[34567]86-*-solaris2.[0-4]\";\n\
456     mach     = \"powerpcle-*-solaris2.[0-4]\";\n\
457     mach     = \"sparc-*-solaris2.[0-4]\";\n\
458     mach     = \"i[34567]86-sequent-ptx*\";\n\
459     files    = sys/byteorder.h;\n\
460     replace  = <<-  _EndOfHeader_\n\
461 #ifndef _SYS_BYTEORDER_H\n\
462 #define _SYS_BYTEORDER_H\n\n\
463 /* Functions to convert `short' and `long' quantities from host byte order\n\
464    to (internet) network byte order (i.e. big-endian).\n\n\
465    Written by Ron Guilmette (rfg@ncd.com).\n\n\
466    This isn't actually used by GCC.  It is installed by fixinc.svr4.\n\n\
467    For big-endian machines these functions are essentially no-ops.\n\n\
468    For little-endian machines, we define the functions using specialized\n\
469    asm sequences in cases where doing so yields better code (e.g. i386).  */\n\n\
470 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
471   #error You lose!  This file is only useful with GNU compilers.\n\
472 #endif\n\n\
473 #ifndef __BYTE_ORDER__\n\
474   /* Byte order defines.  These are as defined on UnixWare 1.1, but with\n\
475      double underscores added at the front and back.  */\n\
476   #define __LITTLE_ENDIAN__   1234\n\
477   #define __BIG_ENDIAN__      4321\n\
478   #define __PDP_ENDIAN__      3412\n\
479 #endif\n\n\
480 #ifdef __STDC__\n\
481   static __inline__ unsigned long htonl (unsigned long);\n\
482   static __inline__ unsigned short htons (unsigned int);\n\
483   static __inline__ unsigned long ntohl (unsigned long);\n\
484   static __inline__ unsigned short ntohs (unsigned int);\n\
485 #endif /* defined (__STDC__) */\n\n\
486 #if defined (__i386__)\n\n\
487   #ifndef __BYTE_ORDER__\n\
488     #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
489   #endif\n\n\
490   /* Convert a host long to a network long.  */\n\n\
491   /* We must use a new-style function definition, so that this will also\n\
492      be valid for C++.  */\n\
493   static __inline__ unsigned long\n\
494   htonl (unsigned long __arg)\n\
495   {\n\
496     register unsigned long __result;\n\n\
497     __asm__ (\"xchg%B0 %b0,%h0\n\
498   ror%L0 $16,%0\n\
499   xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
500     return __result;\n\
501   }\n\n\
502   /* Convert a host short to a network short.  */\n\n\
503   static __inline__ unsigned short\n\
504   htons (unsigned int __arg)\n\
505   {\n\
506     register unsigned short __result;\n\n\
507     __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
508     return __result;\n\
509   }\n\n\
510 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
511   #ifndef __BYTE_ORDER__\n\
512     #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
513   #endif\n\n\
514   /* For other little-endian machines, using C code is just as efficient as\n\
515      using assembly code.  */\n\n\
516   /* Convert a host long to a network long.  */\n\n\
517   static __inline__ unsigned long\n\
518   htonl (unsigned long __arg)\n\
519   {\n\
520     register unsigned long __result;\n\n\
521     __result = (__arg >> 24) & 0x000000ff;\n\
522     __result |= (__arg >> 8) & 0x0000ff00;\n\
523     __result |= (__arg << 8) & 0x00ff0000;\n\
524     __result |= (__arg << 24) & 0xff000000;\n\
525     return __result;\n\
526   }\n\n\
527   /* Convert a host short to a network short.  */\n\n\
528   static __inline__ unsigned short\n\
529   htons (unsigned int __arg)\n\
530   {\n\
531     register unsigned short __result;\n\n\
532     __result = (__arg << 8) & 0xff00;\n\
533     __result |= (__arg >> 8) & 0x00ff;\n\
534     return __result;\n\
535   }\n\n\
536 #else /* must be a big-endian machine */\n\n\
537   #ifndef __BYTE_ORDER__\n\
538     #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
539   #endif\n\n\
540   /* Convert a host long to a network long.  */\n\n\
541   static __inline__ unsigned long\n\
542   htonl (unsigned long __arg)\n\
543   {\n\
544     return __arg;\n\
545   }\n\n\
546   /* Convert a host short to a network short.  */\n\n\
547   static __inline__ unsigned short\n\
548   htons (unsigned int __arg)\n\
549   {\n\
550     return __arg;\n\
551   }\n\n\
552 #endif /* big-endian */\n\n\
553 /* Convert a network long to a host long.  */\n\n\
554 static __inline__ unsigned long\n\
555 ntohl (unsigned long __arg)\n\
556 {\n\
557   return htonl (__arg);\n\
558 }\n\n\
559 /* Convert a network short to a host short.  */\n\n\
560 static __inline__ unsigned short\n\
561 ntohs (unsigned int __arg)\n\
562 {\n\
563   return htons (__arg);\n\
564 }\n\
565 #endif",
566     (char*)NULL };
568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
570  *  Description of Aab_Ultrix_Ansi_Compat fix
571  */
572 tSCC zAab_Ultrix_Ansi_CompatName[] =
573      "AAB_ultrix_ansi_compat";
576  *  File name selection pattern
577  */
578 tSCC zAab_Ultrix_Ansi_CompatList[] =
579   "ansi_compat.h\0";
581  *  Machine/OS name selection pattern
582  */
583 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
586  *  content selection pattern - do fix if pattern found
587  */
588 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
589        "ULTRIX";
591 #define    AAB_ULTRIX_ANSI_COMPAT_TEST_CT  1
592 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
593   { TT_EGREP,    zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
596  *  Fix Command Arguments for Aab_Ultrix_Ansi_Compat
597  */
598 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
599 "/* This file intentionally left blank.  */\n",
600     (char*)NULL };
602 /* * * * * * * * * * * * * * * * * * * * * * * * * *
604  *  Description of Aab_Ultrix_Limits fix
605  */
606 tSCC zAab_Ultrix_LimitsName[] =
607      "AAB_ultrix_limits";
610  *  File name selection pattern
611  */
612 tSCC zAab_Ultrix_LimitsList[] =
613   "limits.h\0";
615  *  Machine/OS name selection pattern
616  */
617 tSCC* apzAab_Ultrix_LimitsMachs[] = {
618         "*-*-ultrix4.3",
619         (const char*)NULL };
620 #define AAB_ULTRIX_LIMITS_TEST_CT  0
621 #define aAab_Ultrix_LimitsTests   (tTestDesc*)NULL
624  *  Fix Command Arguments for Aab_Ultrix_Limits
625  */
626 static const char* apzAab_Ultrix_LimitsPatch[] = {
627 "#ifndef _LIMITS_INCLUDED\n\
628   #define _LIMITS_INCLUDED\n\
629   #include <sys/limits.h>\n\
630 #endif /* _LIMITS_INCLUDED */",
631     (char*)NULL };
633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
635  *  Description of Aab_Ultrix_Memory fix
636  */
637 tSCC zAab_Ultrix_MemoryName[] =
638      "AAB_ultrix_memory";
641  *  File name selection pattern
642  */
643 tSCC zAab_Ultrix_MemoryList[] =
644   "memory.h\0";
646  *  Machine/OS name selection pattern
647  */
648 tSCC* apzAab_Ultrix_MemoryMachs[] = {
649         "*-*-ultrix4.3",
650         (const char*)NULL };
651 #define AAB_ULTRIX_MEMORY_TEST_CT  0
652 #define aAab_Ultrix_MemoryTests   (tTestDesc*)NULL
655  *  Fix Command Arguments for Aab_Ultrix_Memory
656  */
657 static const char* apzAab_Ultrix_MemoryPatch[] = {
658 "#ifndef _MEMORY_INCLUDED\n\
659   #define _MEMORY_INCLUDED\n\
660   #include <strings.h>\n\
661 #endif /* _MEMORY_INCLUDED */",
662     (char*)NULL };
664 /* * * * * * * * * * * * * * * * * * * * * * * * * *
666  *  Description of Aab_Ultrix_String fix
667  */
668 tSCC zAab_Ultrix_StringName[] =
669      "AAB_ultrix_string";
672  *  File name selection pattern
673  */
674 tSCC zAab_Ultrix_StringList[] =
675   "string.h\0";
677  *  Machine/OS name selection pattern
678  */
679 tSCC* apzAab_Ultrix_StringMachs[] = {
680         "*-*-ultrix4.3",
681         (const char*)NULL };
682 #define AAB_ULTRIX_STRING_TEST_CT  0
683 #define aAab_Ultrix_StringTests   (tTestDesc*)NULL
686  *  Fix Command Arguments for Aab_Ultrix_String
687  */
688 static const char* apzAab_Ultrix_StringPatch[] = {
689 "#ifndef _STRING_INCLUDED\n\
690   #define _STRING_INCLUDED\n\
691   #include <strings.h>\n\
692 #endif /* _STRING_INCLUDED */",
693     (char*)NULL };
695 /* * * * * * * * * * * * * * * * * * * * * * * * * *
697  *  Description of Aix_Pthread fix
698  */
699 tSCC zAix_PthreadName[] =
700      "aix_pthread";
703  *  File name selection pattern
704  */
705 tSCC zAix_PthreadList[] =
706   "pthread.h\0";
708  *  Machine/OS name selection pattern
709  */
710 #define apzAix_PthreadMachs (const char**)NULL
713  *  content selection pattern - do fix if pattern found
714  */
715 tSCC zAix_PthreadSelect0[] =
716        "(#define [A-Za-z_0-9]+)(\\\\\n\
717 [^A-Za-z_0-9 \t\n\
718 (])";
720 #define    AIX_PTHREAD_TEST_CT  1
721 static tTestDesc aAix_PthreadTests[] = {
722   { TT_EGREP,    zAix_PthreadSelect0, (regex_t*)NULL }, };
725  *  Fix Command Arguments for Aix_Pthread
726  */
727 static const char* apzAix_PthreadPatch[] = {
728     "format",
729     "%1 %2",
730     (char*)NULL };
732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
734  *  Description of Aix_Sysmachine fix
735  */
736 tSCC zAix_SysmachineName[] =
737      "aix_sysmachine";
740  *  File name selection pattern
741  */
742 tSCC zAix_SysmachineList[] =
743   "sys/machine.h\0";
745  *  Machine/OS name selection pattern
746  */
747 #define apzAix_SysmachineMachs (const char**)NULL
750  *  content selection pattern - do fix if pattern found
751  */
752 tSCC zAix_SysmachineSelect0[] =
753        "\\\\ +\n";
755 #define    AIX_SYSMACHINE_TEST_CT  1
756 static tTestDesc aAix_SysmachineTests[] = {
757   { TT_EGREP,    zAix_SysmachineSelect0, (regex_t*)NULL }, };
760  *  Fix Command Arguments for Aix_Sysmachine
761  */
762 static const char* apzAix_SysmachinePatch[] = {
763     "format",
764     "\\\n",
765     (char*)NULL };
767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
769  *  Description of Aix_Syswait fix
770  */
771 tSCC zAix_SyswaitName[] =
772      "aix_syswait";
775  *  File name selection pattern
776  */
777 tSCC zAix_SyswaitList[] =
778   "sys/wait.h\0";
780  *  Machine/OS name selection pattern
781  */
782 #define apzAix_SyswaitMachs (const char**)NULL
785  *  content selection pattern - do fix if pattern found
786  */
787 tSCC zAix_SyswaitSelect0[] =
788        "^extern pid_t wait3\\(\\);\n";
789 tSCC zAix_SyswaitSelect1[] =
790        "bos325,";
792 #define    AIX_SYSWAIT_TEST_CT  2
793 static tTestDesc aAix_SyswaitTests[] = {
794   { TT_EGREP,    zAix_SyswaitSelect0, (regex_t*)NULL },
795   { TT_EGREP,    zAix_SyswaitSelect1, (regex_t*)NULL }, };
798  *  Fix Command Arguments for Aix_Syswait
799  */
800 static const char* apzAix_SyswaitPatch[] = {
801     "format",
802     "struct rusage;\n\
803 %0",
804     (char*)NULL };
806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
808  *  Description of Aix_Syswait_2 fix
809  */
810 tSCC zAix_Syswait_2Name[] =
811      "aix_syswait_2";
814  *  File name selection pattern
815  */
816 tSCC zAix_Syswait_2List[] =
817   "sys/wait.h\0";
819  *  Machine/OS name selection pattern
820  */
821 #define apzAix_Syswait_2Machs (const char**)NULL
824  *  content selection pattern - do fix if pattern found
825  */
826 tSCC zAix_Syswait_2Select0[] =
827        "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
829 #define    AIX_SYSWAIT_2_TEST_CT  1
830 static tTestDesc aAix_Syswait_2Tests[] = {
831   { TT_EGREP,    zAix_Syswait_2Select0, (regex_t*)NULL }, };
834  *  Fix Command Arguments for Aix_Syswait_2
835  */
836 static const char* apzAix_Syswait_2Patch[] = {
837     "format",
838     "? (int)%1",
839     (char*)NULL };
841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
843  *  Description of Aix_Volatile fix
844  */
845 tSCC zAix_VolatileName[] =
846      "aix_volatile";
849  *  File name selection pattern
850  */
851 tSCC zAix_VolatileList[] =
852   "sys/signal.h\0";
854  *  Machine/OS name selection pattern
855  */
856 #define apzAix_VolatileMachs (const char**)NULL
859  *  content selection pattern - do fix if pattern found
860  */
861 tSCC zAix_VolatileSelect0[] =
862        "typedef volatile int sig_atomic_t";
864 #define    AIX_VOLATILE_TEST_CT  1
865 static tTestDesc aAix_VolatileTests[] = {
866   { TT_EGREP,    zAix_VolatileSelect0, (regex_t*)NULL }, };
869  *  Fix Command Arguments for Aix_Volatile
870  */
871 static const char* apzAix_VolatilePatch[] = {
872     "format",
873     "typedef int sig_atomic_t",
874     (char*)NULL };
876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
878  *  Description of Alpha___Assert fix
879  */
880 tSCC zAlpha___AssertName[] =
881      "alpha___assert";
884  *  File name selection pattern
885  */
886 tSCC zAlpha___AssertList[] =
887   "assert.h\0";
889  *  Machine/OS name selection pattern
890  */
891 #define apzAlpha___AssertMachs (const char**)NULL
894  *  content selection pattern - do fix if pattern found
895  */
896 tSCC zAlpha___AssertSelect0[] =
897        "__assert\\(char \\*, char \\*, int\\)";
899 #define    ALPHA___ASSERT_TEST_CT  1
900 static tTestDesc aAlpha___AssertTests[] = {
901   { TT_EGREP,    zAlpha___AssertSelect0, (regex_t*)NULL }, };
904  *  Fix Command Arguments for Alpha___Assert
905  */
906 static const char* apzAlpha___AssertPatch[] = {
907     "format",
908     "__assert(const char *, const char *, int)",
909     (char*)NULL };
911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
913  *  Description of Alpha___Extern_Prefix fix
914  */
915 tSCC zAlpha___Extern_PrefixName[] =
916      "alpha___extern_prefix";
919  *  File name selection pattern
920  */
921 #define zAlpha___Extern_PrefixList (char*)NULL
923  *  Machine/OS name selection pattern
924  */
925 tSCC* apzAlpha___Extern_PrefixMachs[] = {
926         "alpha*-dec-osf*",
927         (const char*)NULL };
930  *  content selection pattern - do fix if pattern found
931  */
932 tSCC zAlpha___Extern_PrefixSelect0[] =
933        "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
934 (#[ \t]*pragma[ \t]*extern_prefix.*)";
936 #define    ALPHA___EXTERN_PREFIX_TEST_CT  1
937 static tTestDesc aAlpha___Extern_PrefixTests[] = {
938   { TT_EGREP,    zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
941  *  Fix Command Arguments for Alpha___Extern_Prefix
942  */
943 static const char* apzAlpha___Extern_PrefixPatch[] = {
944     "format",
945     "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
946 %3",
947     (char*)NULL };
949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
951  *  Description of Alpha___Extern_Prefix_Standards fix
952  */
953 tSCC zAlpha___Extern_Prefix_StandardsName[] =
954      "alpha___extern_prefix_standards";
957  *  File name selection pattern
958  */
959 tSCC zAlpha___Extern_Prefix_StandardsList[] =
960   "standards.h\0";
962  *  Machine/OS name selection pattern
963  */
964 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
965         "alpha*-dec-osf*",
966         (const char*)NULL };
969  *  content selection pattern - do fix if pattern found
970  */
971 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
972        ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
974 #define    ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT  1
975 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
976   { TT_EGREP,    zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
979  *  Fix Command Arguments for Alpha___Extern_Prefix_Standards
980  */
981 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
982     "format",
983     "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
984     (char*)NULL };
986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
988  *  Description of Alpha___Extern_Prefix_Sys_Stat fix
989  */
990 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
991      "alpha___extern_prefix_sys_stat";
994  *  File name selection pattern
995  */
996 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
997   "sys/stat.h\0sys/mount.h\0";
999  *  Machine/OS name selection pattern
1000  */
1001 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
1002         "alpha*-dec-osf5*",
1003         (const char*)NULL };
1006  *  content selection pattern - do fix if pattern found
1007  */
1008 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1009        "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1011 #define    ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT  1
1012 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1013   { TT_EGREP,    zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1016  *  Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1017  */
1018 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1019     "format",
1020     "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1021     (char*)NULL };
1023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1025  *  Description of Alpha_Assert fix
1026  */
1027 tSCC zAlpha_AssertName[] =
1028      "alpha_assert";
1031  *  File name selection pattern
1032  */
1033 tSCC zAlpha_AssertList[] =
1034   "assert.h\0";
1036  *  Machine/OS name selection pattern
1037  */
1038 #define apzAlpha_AssertMachs (const char**)NULL
1041  *  content selection pattern - do fix if pattern found
1042  */
1043 tSCC zAlpha_AssertSelect0[] =
1044        "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1046 #define    ALPHA_ASSERT_TEST_CT  1
1047 static tTestDesc aAlpha_AssertTests[] = {
1048   { TT_EGREP,    zAlpha_AssertSelect0, (regex_t*)NULL }, };
1051  *  Fix Command Arguments for Alpha_Assert
1052  */
1053 static const char* apzAlpha_AssertPatch[] = {
1054     "format",
1055     "%1(EX)",
1056     (char*)NULL };
1058 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1060  *  Description of Alpha_Bad_Lval fix
1061  */
1062 tSCC zAlpha_Bad_LvalName[] =
1063      "alpha_bad_lval";
1066  *  File name selection pattern
1067  */
1068 #define zAlpha_Bad_LvalList (char*)NULL
1070  *  Machine/OS name selection pattern
1071  */
1072 tSCC* apzAlpha_Bad_LvalMachs[] = {
1073         "alpha*-dec-osf*",
1074         (const char*)NULL };
1077  *  content selection pattern - do fix if pattern found
1078  */
1079 tSCC zAlpha_Bad_LvalSelect0[] =
1080        "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1082 #define    ALPHA_BAD_LVAL_TEST_CT  1
1083 static tTestDesc aAlpha_Bad_LvalTests[] = {
1084   { TT_EGREP,    zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1087  *  Fix Command Arguments for Alpha_Bad_Lval
1088  */
1089 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
1090     "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1091     (char*)NULL };
1093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1095  *  Description of Alpha_Getopt fix
1096  */
1097 tSCC zAlpha_GetoptName[] =
1098      "alpha_getopt";
1101  *  File name selection pattern
1102  */
1103 tSCC zAlpha_GetoptList[] =
1104   "stdio.h\0stdlib.h\0";
1106  *  Machine/OS name selection pattern
1107  */
1108 #define apzAlpha_GetoptMachs (const char**)NULL
1111  *  content selection pattern - do fix if pattern found
1112  */
1113 tSCC zAlpha_GetoptSelect0[] =
1114        "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1116 #define    ALPHA_GETOPT_TEST_CT  1
1117 static tTestDesc aAlpha_GetoptTests[] = {
1118   { TT_EGREP,    zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1121  *  Fix Command Arguments for Alpha_Getopt
1122  */
1123 static const char* apzAlpha_GetoptPatch[] = {
1124     "format",
1125     "getopt(int, char *const[], const char *)",
1126     (char*)NULL };
1128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1130  *  Description of Alpha_Parens fix
1131  */
1132 tSCC zAlpha_ParensName[] =
1133      "alpha_parens";
1136  *  File name selection pattern
1137  */
1138 tSCC zAlpha_ParensList[] =
1139   "sym.h\0";
1141  *  Machine/OS name selection pattern
1142  */
1143 #define apzAlpha_ParensMachs (const char**)NULL
1146  *  content selection pattern - do fix if pattern found
1147  */
1148 tSCC zAlpha_ParensSelect0[] =
1149        "#ifndef\\(__mips64\\)";
1151 #define    ALPHA_PARENS_TEST_CT  1
1152 static tTestDesc aAlpha_ParensTests[] = {
1153   { TT_EGREP,    zAlpha_ParensSelect0, (regex_t*)NULL }, };
1156  *  Fix Command Arguments for Alpha_Parens
1157  */
1158 static const char* apzAlpha_ParensPatch[] = {
1159     "format",
1160     "#ifndef __mips64",
1161     (char*)NULL };
1163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1165  *  Description of Alpha_Pthread fix
1166  */
1167 tSCC zAlpha_PthreadName[] =
1168      "alpha_pthread";
1171  *  File name selection pattern
1172  */
1173 tSCC zAlpha_PthreadList[] =
1174   "pthread.h\0";
1176  *  Machine/OS name selection pattern
1177  */
1178 tSCC* apzAlpha_PthreadMachs[] = {
1179         "alpha*-dec-osf*",
1180         (const char*)NULL };
1183  *  content selection pattern - do fix if pattern found
1184  */
1185 tSCC zAlpha_PthreadSelect0[] =
1186        "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1187 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1189 #define    ALPHA_PTHREAD_TEST_CT  1
1190 static tTestDesc aAlpha_PthreadTests[] = {
1191   { TT_EGREP,    zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1194  *  Fix Command Arguments for Alpha_Pthread
1195  */
1196 static const char* apzAlpha_PthreadPatch[] = {
1197     "format",
1198     "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1199 %5",
1200     (char*)NULL };
1202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1204  *  Description of Alpha_Pthread_Gcc fix
1205  */
1206 tSCC zAlpha_Pthread_GccName[] =
1207      "alpha_pthread_gcc";
1210  *  File name selection pattern
1211  */
1212 tSCC zAlpha_Pthread_GccList[] =
1213   "pthread.h\0";
1215  *  Machine/OS name selection pattern
1216  */
1217 tSCC* apzAlpha_Pthread_GccMachs[] = {
1218         "alpha*-dec-osf*",
1219         (const char*)NULL };
1222  *  content selection pattern - do fix if pattern found
1223  */
1224 tSCC zAlpha_Pthread_GccSelect0[] =
1225        "#else\n\
1226 # error <pthread.h>: unrecognized compiler.";
1228 #define    ALPHA_PTHREAD_GCC_TEST_CT  1
1229 static tTestDesc aAlpha_Pthread_GccTests[] = {
1230   { TT_EGREP,    zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1233  *  Fix Command Arguments for Alpha_Pthread_Gcc
1234  */
1235 static const char* apzAlpha_Pthread_GccPatch[] = {
1236     "format",
1237     "#elif defined (__GNUC__)\n\
1238 # define _PTHREAD_ENV_GCC\n\
1239 %0",
1240     (char*)NULL };
1242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1244  *  Description of Alpha_Pthread_Init fix
1245  */
1246 tSCC zAlpha_Pthread_InitName[] =
1247      "alpha_pthread_init";
1250  *  File name selection pattern
1251  */
1252 tSCC zAlpha_Pthread_InitList[] =
1253   "pthread.h\0";
1255  *  Machine/OS name selection pattern
1256  */
1257 tSCC* apzAlpha_Pthread_InitMachs[] = {
1258         "alpha*-dec-osf*",
1259         (const char*)NULL };
1262  *  content selection pattern - do fix if pattern found
1263  */
1264 tSCC zAlpha_Pthread_InitSelect0[] =
1265        " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1267 #define    ALPHA_PTHREAD_INIT_TEST_CT  1
1268 static tTestDesc aAlpha_Pthread_InitTests[] = {
1269   { TT_EGREP,    zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1272  *  Fix Command Arguments for Alpha_Pthread_Init
1273  */
1274 static const char* apzAlpha_Pthread_InitPatch[] = { "sed",
1275     "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1276 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1277 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1278 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1279 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1280 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1281     (char*)NULL };
1283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1285  *  Description of Alpha_Sbrk fix
1286  */
1287 tSCC zAlpha_SbrkName[] =
1288      "alpha_sbrk";
1291  *  File name selection pattern
1292  */
1293 tSCC zAlpha_SbrkList[] =
1294   "unistd.h\0";
1296  *  Machine/OS name selection pattern
1297  */
1298 #define apzAlpha_SbrkMachs (const char**)NULL
1301  *  content selection pattern - do fix if pattern found
1302  */
1303 tSCC zAlpha_SbrkSelect0[] =
1304        "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1306 #define    ALPHA_SBRK_TEST_CT  1
1307 static tTestDesc aAlpha_SbrkTests[] = {
1308   { TT_EGREP,    zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1311  *  Fix Command Arguments for Alpha_Sbrk
1312  */
1313 static const char* apzAlpha_SbrkPatch[] = {
1314     "format",
1315     "void *sbrk(",
1316     (char*)NULL };
1318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1320  *  Description of Alpha_Wchar fix
1321  */
1322 tSCC zAlpha_WcharName[] =
1323      "alpha_wchar";
1326  *  File name selection pattern
1327  */
1328 tSCC zAlpha_WcharList[] =
1329   "wchar.h\0";
1331  *  Machine/OS name selection pattern
1332  */
1333 tSCC* apzAlpha_WcharMachs[] = {
1334         "alpha*-dec-osf4*",
1335         (const char*)NULL };
1338  *  content selection pattern - do fix if pattern found
1339  */
1340 tSCC zAlpha_WcharSelect0[] =
1341        "#define wcstok wcstok_r";
1343 #define    ALPHA_WCHAR_TEST_CT  1
1344 static tTestDesc aAlpha_WcharTests[] = {
1345   { TT_EGREP,    zAlpha_WcharSelect0, (regex_t*)NULL }, };
1348  *  Fix Command Arguments for Alpha_Wchar
1349  */
1350 static const char* apzAlpha_WcharPatch[] = { "sed",
1351     "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1352     "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t   wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1353     (char*)NULL };
1355 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1357  *  Description of Avoid_Bool_Define fix
1358  */
1359 tSCC zAvoid_Bool_DefineName[] =
1360      "avoid_bool_define";
1363  *  File name selection pattern
1364  */
1365 tSCC zAvoid_Bool_DefineList[] =
1366   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1368  *  Machine/OS name selection pattern
1369  */
1370 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1373  *  content selection pattern - do fix if pattern found
1374  */
1375 tSCC zAvoid_Bool_DefineSelect0[] =
1376        "#[ \t]*define[ \t]+bool[ \t]";
1379  *  content bypass pattern - skip fix if pattern found
1380  */
1381 tSCC zAvoid_Bool_DefineBypass0[] =
1382        "__cplusplus";
1384 #define    AVOID_BOOL_DEFINE_TEST_CT  2
1385 static tTestDesc aAvoid_Bool_DefineTests[] = {
1386   { TT_NEGREP,   zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1387   { TT_EGREP,    zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1390  *  Fix Command Arguments for Avoid_Bool_Define
1391  */
1392 static const char* apzAvoid_Bool_DefinePatch[] = {
1393     "format",
1394     "#ifndef __cplusplus\n\
1395 %0\n\
1396 #endif",
1397     "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1398     (char*)NULL };
1400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1402  *  Description of Avoid_Bool_Type fix
1403  */
1404 tSCC zAvoid_Bool_TypeName[] =
1405      "avoid_bool_type";
1408  *  File name selection pattern
1409  */
1410 tSCC zAvoid_Bool_TypeList[] =
1411   "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1413  *  Machine/OS name selection pattern
1414  */
1415 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1418  *  content selection pattern - do fix if pattern found
1419  */
1420 tSCC zAvoid_Bool_TypeSelect0[] =
1421        "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1424  *  content bypass pattern - skip fix if pattern found
1425  */
1426 tSCC zAvoid_Bool_TypeBypass0[] =
1427        "__cplusplus";
1429 #define    AVOID_BOOL_TYPE_TEST_CT  2
1430 static tTestDesc aAvoid_Bool_TypeTests[] = {
1431   { TT_NEGREP,   zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1432   { TT_EGREP,    zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1435  *  Fix Command Arguments for Avoid_Bool_Type
1436  */
1437 static const char* apzAvoid_Bool_TypePatch[] = {
1438     "format",
1439     "#ifndef __cplusplus\n\
1440 %0\n\
1441 #endif",
1442     (char*)NULL };
1444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1446  *  Description of Avoid_Wchar_T_Type fix
1447  */
1448 tSCC zAvoid_Wchar_T_TypeName[] =
1449      "avoid_wchar_t_type";
1452  *  File name selection pattern
1453  */
1454 #define zAvoid_Wchar_T_TypeList (char*)NULL
1456  *  Machine/OS name selection pattern
1457  */
1458 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1461  *  content selection pattern - do fix if pattern found
1462  */
1463 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1464        "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1467  *  content bypass pattern - skip fix if pattern found
1468  */
1469 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1470        "__cplusplus";
1471 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1472        "_LINUX_NLS_H";
1473 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1474        "XFree86: xc/lib/X11/Xlib\\.h";
1476 #define    AVOID_WCHAR_T_TYPE_TEST_CT  4
1477 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1478   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1479   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1480   { TT_NEGREP,   zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1481   { TT_EGREP,    zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1484  *  Fix Command Arguments for Avoid_Wchar_T_Type
1485  */
1486 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1487     "format",
1488     "#ifndef __cplusplus\n\
1489 %0\n\
1490 #endif",
1491     (char*)NULL };
1493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1495  *  Description of Bad_Struct_Term fix
1496  */
1497 tSCC zBad_Struct_TermName[] =
1498      "bad_struct_term";
1501  *  File name selection pattern
1502  */
1503 tSCC zBad_Struct_TermList[] =
1504   "curses.h\0";
1506  *  Machine/OS name selection pattern
1507  */
1508 #define apzBad_Struct_TermMachs (const char**)NULL
1511  *  content selection pattern - do fix if pattern found
1512  */
1513 tSCC zBad_Struct_TermSelect0[] =
1514        "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1516 #define    BAD_STRUCT_TERM_TEST_CT  1
1517 static tTestDesc aBad_Struct_TermTests[] = {
1518   { TT_EGREP,    zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1521  *  Fix Command Arguments for Bad_Struct_Term
1522  */
1523 static const char* apzBad_Struct_TermPatch[] = {
1524     "format",
1525     "struct term;",
1526     (char*)NULL };
1528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1530  *  Description of Badquote fix
1531  */
1532 tSCC zBadquoteName[] =
1533      "badquote";
1536  *  File name selection pattern
1537  */
1538 tSCC zBadquoteList[] =
1539   "sundev/vuid_event.h\0";
1541  *  Machine/OS name selection pattern
1542  */
1543 #define apzBadquoteMachs (const char**)NULL
1546  *  content selection pattern - do fix if pattern found
1547  */
1548 tSCC zBadquoteSelect0[] =
1549        "doesn't";
1551 #define    BADQUOTE_TEST_CT  1
1552 static tTestDesc aBadquoteTests[] = {
1553   { TT_EGREP,    zBadquoteSelect0, (regex_t*)NULL }, };
1556  *  Fix Command Arguments for Badquote
1557  */
1558 static const char* apzBadquotePatch[] = {
1559     "format",
1560     "does not",
1561     (char*)NULL };
1563 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1565  *  Description of Broken_Assert_Stdio fix
1566  */
1567 tSCC zBroken_Assert_StdioName[] =
1568      "broken_assert_stdio";
1571  *  File name selection pattern
1572  */
1573 tSCC zBroken_Assert_StdioList[] =
1574   "assert.h\0";
1576  *  Machine/OS name selection pattern
1577  */
1578 #define apzBroken_Assert_StdioMachs (const char**)NULL
1581  *  content selection pattern - do fix if pattern found
1582  */
1583 tSCC zBroken_Assert_StdioSelect0[] =
1584        "stderr";
1587  *  content bypass pattern - skip fix if pattern found
1588  */
1589 tSCC zBroken_Assert_StdioBypass0[] =
1590        "include.*stdio\\.h";
1592 #define    BROKEN_ASSERT_STDIO_TEST_CT  2
1593 static tTestDesc aBroken_Assert_StdioTests[] = {
1594   { TT_NEGREP,   zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1595   { TT_EGREP,    zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1598  *  Fix Command Arguments for Broken_Assert_Stdio
1599  */
1600 static const char* apzBroken_Assert_StdioPatch[] = {
1601     "wrap",
1602     "#include <stdio.h>\n",
1603     (char*)NULL };
1605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1607  *  Description of Broken_Assert_Stdlib fix
1608  */
1609 tSCC zBroken_Assert_StdlibName[] =
1610      "broken_assert_stdlib";
1613  *  File name selection pattern
1614  */
1615 tSCC zBroken_Assert_StdlibList[] =
1616   "assert.h\0";
1618  *  Machine/OS name selection pattern
1619  */
1620 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1623  *  content selection pattern - do fix if pattern found
1624  */
1625 tSCC zBroken_Assert_StdlibSelect0[] =
1626        "exit *\\(|abort *\\(";
1629  *  content bypass pattern - skip fix if pattern found
1630  */
1631 tSCC zBroken_Assert_StdlibBypass0[] =
1632        "include.*stdlib\\.h";
1634 #define    BROKEN_ASSERT_STDLIB_TEST_CT  2
1635 static tTestDesc aBroken_Assert_StdlibTests[] = {
1636   { TT_NEGREP,   zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1637   { TT_EGREP,    zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1640  *  Fix Command Arguments for Broken_Assert_Stdlib
1641  */
1642 static const char* apzBroken_Assert_StdlibPatch[] = {
1643     "wrap",
1644     "#ifdef __cplusplus\n\
1645 #include <stdlib.h>\n\
1646 #endif\n",
1647     (char*)NULL };
1649 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1651  *  Description of Broken_Cabs fix
1652  */
1653 tSCC zBroken_CabsName[] =
1654      "broken_cabs";
1657  *  File name selection pattern
1658  */
1659 tSCC zBroken_CabsList[] =
1660   "math.h\0architecture/*/math.h\0";
1662  *  Machine/OS name selection pattern
1663  */
1664 #define apzBroken_CabsMachs (const char**)NULL
1667  *  content selection pattern - do fix if pattern found
1668  */
1669 tSCC zBroken_CabsSelect0[] =
1670        "^extern[ \t]+double[ \t]+cabs";
1672 #define    BROKEN_CABS_TEST_CT  1
1673 static tTestDesc aBroken_CabsTests[] = {
1674   { TT_EGREP,    zBroken_CabsSelect0, (regex_t*)NULL }, };
1677  *  Fix Command Arguments for Broken_Cabs
1678  */
1679 static const char* apzBroken_CabsPatch[] = { "sed",
1680     "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1681     "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1682     (char*)NULL };
1684 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1686  *  Description of Broken_Nan fix
1687  */
1688 tSCC zBroken_NanName[] =
1689      "broken_nan";
1692  *  File name selection pattern
1693  */
1694 tSCC zBroken_NanList[] =
1695   "architecture/ppc/math.h\0architecture/*/math.h\0";
1697  *  Machine/OS name selection pattern
1698  */
1699 #define apzBroken_NanMachs (const char**)NULL
1702  *  content selection pattern - do fix if pattern found
1703  */
1704 tSCC zBroken_NanSelect0[] =
1705        "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1708  *  content bypass pattern - skip fix if pattern found
1709  */
1710 tSCC zBroken_NanBypass0[] =
1711        "powl";
1713 #define    BROKEN_NAN_TEST_CT  2
1714 static tTestDesc aBroken_NanTests[] = {
1715   { TT_NEGREP,   zBroken_NanBypass0, (regex_t*)NULL },
1716   { TT_EGREP,    zBroken_NanSelect0, (regex_t*)NULL }, };
1719  *  Fix Command Arguments for Broken_Nan
1720  */
1721 static const char* apzBroken_NanPatch[] = {
1722     "format",
1723     "#if 1",
1724     (char*)NULL };
1726 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1728  *  Description of Bsd_Stdio_Attrs_Conflict fix
1729  */
1730 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1731      "bsd_stdio_attrs_conflict";
1734  *  File name selection pattern
1735  */
1736 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1737   "stdio.h\0";
1739  *  Machine/OS name selection pattern
1740  */
1741 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1742         "*-*-*bsd*",
1743         "*-*-*darwin*",
1744         (const char*)NULL };
1747  *  content selection pattern - do fix if pattern found
1748  */
1749 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1750        "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1752 #define    BSD_STDIO_ATTRS_CONFLICT_TEST_CT  1
1753 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1754   { TT_EGREP,    zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1757  *  Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1758  */
1759 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1760     "format",
1761     "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1762 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1763 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1764     (char*)NULL };
1766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1768  *  Description of Ctrl_Quotes_Def fix
1769  */
1770 tSCC zCtrl_Quotes_DefName[] =
1771      "ctrl_quotes_def";
1774  *  File name selection pattern
1775  */
1776 #define zCtrl_Quotes_DefList (char*)NULL
1778  *  Machine/OS name selection pattern
1779  */
1780 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1783  *  content selection pattern - do fix if pattern found
1784  */
1785 tSCC zCtrl_Quotes_DefSelect0[] =
1786        "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1788 #define    CTRL_QUOTES_DEF_TEST_CT  1
1789 static tTestDesc aCtrl_Quotes_DefTests[] = {
1790   { TT_EGREP,    zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1793  *  Fix Command Arguments for Ctrl_Quotes_Def
1794  */
1795 static const char* apzCtrl_Quotes_DefPatch[] = {
1796     "char_macro_def",
1797     "CTRL",
1798     (char*)NULL };
1800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1802  *  Description of Ctrl_Quotes_Use fix
1803  */
1804 tSCC zCtrl_Quotes_UseName[] =
1805      "ctrl_quotes_use";
1808  *  File name selection pattern
1809  */
1810 #define zCtrl_Quotes_UseList (char*)NULL
1812  *  Machine/OS name selection pattern
1813  */
1814 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1817  *  content selection pattern - do fix if pattern found
1818  */
1819 tSCC zCtrl_Quotes_UseSelect0[] =
1820        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1822 #define    CTRL_QUOTES_USE_TEST_CT  1
1823 static tTestDesc aCtrl_Quotes_UseTests[] = {
1824   { TT_EGREP,    zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1827  *  Fix Command Arguments for Ctrl_Quotes_Use
1828  */
1829 static const char* apzCtrl_Quotes_UsePatch[] = {
1830     "char_macro_use",
1831     "CTRL",
1832     (char*)NULL };
1834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1836  *  Description of Cxx_Unready fix
1837  */
1838 tSCC zCxx_UnreadyName[] =
1839      "cxx_unready";
1842  *  File name selection pattern
1843  */
1844 tSCC zCxx_UnreadyList[] =
1845   "sys/mman.h\0rpc/types.h\0";
1847  *  Machine/OS name selection pattern
1848  */
1849 #define apzCxx_UnreadyMachs (const char**)NULL
1852  *  content selection pattern - do fix if pattern found
1853  */
1854 tSCC zCxx_UnreadySelect0[] =
1855        "[^#]+malloc.*;";
1858  *  content bypass pattern - skip fix if pattern found
1859  */
1860 tSCC zCxx_UnreadyBypass0[] =
1861        "\"C\"|__BEGIN_DECLS";
1863 #define    CXX_UNREADY_TEST_CT  2
1864 static tTestDesc aCxx_UnreadyTests[] = {
1865   { TT_NEGREP,   zCxx_UnreadyBypass0, (regex_t*)NULL },
1866   { TT_EGREP,    zCxx_UnreadySelect0, (regex_t*)NULL }, };
1869  *  Fix Command Arguments for Cxx_Unready
1870  */
1871 static const char* apzCxx_UnreadyPatch[] = {
1872     "wrap",
1873     "#ifdef __cplusplus\n\
1874 extern \"C\" {\n\
1875 #endif\n",
1876     "#ifdef __cplusplus\n\
1877 }\n\
1878 #endif\n",
1879     (char*)NULL };
1881 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1883  *  Description of Darwin_Gcc4_Breakage fix
1884  */
1885 tSCC zDarwin_Gcc4_BreakageName[] =
1886      "darwin_gcc4_breakage";
1889  *  File name selection pattern
1890  */
1891 tSCC zDarwin_Gcc4_BreakageList[] =
1892   "AvailabilityMacros.h\0";
1894  *  Machine/OS name selection pattern
1895  */
1896 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1897         "*-*-darwin*",
1898         (const char*)NULL };
1901  *  content selection pattern - do fix if pattern found
1902  */
1903 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1904        "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1906 #define    DARWIN_GCC4_BREAKAGE_TEST_CT  1
1907 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1908   { TT_EGREP,    zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1911  *  Fix Command Arguments for Darwin_Gcc4_Breakage
1912  */
1913 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1914     "format",
1915     "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1916     (char*)NULL };
1918 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1920  *  Description of Darwin_Private_Extern fix
1921  */
1922 tSCC zDarwin_Private_ExternName[] =
1923      "darwin_private_extern";
1926  *  File name selection pattern
1927  */
1928 tSCC zDarwin_Private_ExternList[] =
1929   "mach-o/dyld.h\0";
1931  *  Machine/OS name selection pattern
1932  */
1933 tSCC* apzDarwin_Private_ExternMachs[] = {
1934         "*-*-darwin*",
1935         (const char*)NULL };
1938  *  content selection pattern - do fix if pattern found
1939  */
1940 tSCC zDarwin_Private_ExternSelect0[] =
1941        "__private_extern__ [a-z_]+ _dyld_";
1943 #define    DARWIN_PRIVATE_EXTERN_TEST_CT  1
1944 static tTestDesc aDarwin_Private_ExternTests[] = {
1945   { TT_EGREP,    zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1948  *  Fix Command Arguments for Darwin_Private_Extern
1949  */
1950 static const char* apzDarwin_Private_ExternPatch[] = {
1951     "format",
1952     "extern",
1953     "__private_extern__",
1954     (char*)NULL };
1956 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1958  *  Description of Dec_Intern_Asm fix
1959  */
1960 tSCC zDec_Intern_AsmName[] =
1961      "dec_intern_asm";
1964  *  File name selection pattern
1965  */
1966 tSCC zDec_Intern_AsmList[] =
1967   "c_asm.h\0";
1969  *  Machine/OS name selection pattern
1970  */
1971 #define apzDec_Intern_AsmMachs (const char**)NULL
1972 #define DEC_INTERN_ASM_TEST_CT  0
1973 #define aDec_Intern_AsmTests   (tTestDesc*)NULL
1976  *  Fix Command Arguments for Dec_Intern_Asm
1977  */
1978 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1979     "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1980 #ifdef __DECC\n",
1981     "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1982 #endif\n",
1983     (char*)NULL };
1985 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1987  *  Description of Djgpp_Wchar_H fix
1988  */
1989 tSCC zDjgpp_Wchar_HName[] =
1990      "djgpp_wchar_h";
1993  *  File name selection pattern
1994  */
1995 #define zDjgpp_Wchar_HList (char*)NULL
1997  *  Machine/OS name selection pattern
1998  */
1999 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2002  *  content selection pattern - do fix if pattern found
2003  */
2004 tSCC zDjgpp_Wchar_HSelect0[] =
2005        "__DJ_wint_t";
2008  *  content bypass pattern - skip fix if pattern found
2009  */
2010 tSCC zDjgpp_Wchar_HBypass0[] =
2011        "sys/djtypes.h";
2013 #define    DJGPP_WCHAR_H_TEST_CT  2
2014 static tTestDesc aDjgpp_Wchar_HTests[] = {
2015   { TT_NEGREP,   zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2016   { TT_EGREP,    zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2019  *  Fix Command Arguments for Djgpp_Wchar_H
2020  */
2021 static const char* apzDjgpp_Wchar_HPatch[] = {
2022     "format",
2023     "%0\n\
2024 #include <sys/djtypes.h>",
2025     "#include <stddef.h>",
2026     (char*)NULL };
2028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2030  *  Description of Ecd_Cursor fix
2031  */
2032 tSCC zEcd_CursorName[] =
2033      "ecd_cursor";
2036  *  File name selection pattern
2037  */
2038 tSCC zEcd_CursorList[] =
2039   "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2041  *  Machine/OS name selection pattern
2042  */
2043 #define apzEcd_CursorMachs (const char**)NULL
2046  *  content selection pattern - do fix if pattern found
2047  */
2048 tSCC zEcd_CursorSelect0[] =
2049        "ecd\\.cursor";
2051 #define    ECD_CURSOR_TEST_CT  1
2052 static tTestDesc aEcd_CursorTests[] = {
2053   { TT_EGREP,    zEcd_CursorSelect0, (regex_t*)NULL }, };
2056  *  Fix Command Arguments for Ecd_Cursor
2057  */
2058 static const char* apzEcd_CursorPatch[] = {
2059     "format",
2060     "ecd_cursor",
2061     (char*)NULL };
2063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2065  *  Description of Exception_Structure fix
2066  */
2067 tSCC zException_StructureName[] =
2068      "exception_structure";
2071  *  File name selection pattern
2072  */
2073 tSCC zException_StructureList[] =
2074   "math.h\0";
2076  *  Machine/OS name selection pattern
2077  */
2078 #define apzException_StructureMachs (const char**)NULL
2081  *  content selection pattern - do fix if pattern found
2082  */
2083 tSCC zException_StructureSelect0[] =
2084        "matherr";
2087  *  content bypass pattern - skip fix if pattern found
2088  */
2089 tSCC zException_StructureBypass0[] =
2090        "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
2092 #define    EXCEPTION_STRUCTURE_TEST_CT  2
2093 static tTestDesc aException_StructureTests[] = {
2094   { TT_NEGREP,   zException_StructureBypass0, (regex_t*)NULL },
2095   { TT_EGREP,    zException_StructureSelect0, (regex_t*)NULL }, };
2098  *  Fix Command Arguments for Exception_Structure
2099  */
2100 static const char* apzException_StructurePatch[] = {
2101     "wrap",
2102     "struct exception;\n",
2103     (char*)NULL };
2105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2107  *  Description of Freebsd_Gcc3_Breakage fix
2108  */
2109 tSCC zFreebsd_Gcc3_BreakageName[] =
2110      "freebsd_gcc3_breakage";
2113  *  File name selection pattern
2114  */
2115 tSCC zFreebsd_Gcc3_BreakageList[] =
2116   "sys/cdefs.h\0";
2118  *  Machine/OS name selection pattern
2119  */
2120 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2121         "*-*-freebsd*",
2122         (const char*)NULL };
2125  *  content selection pattern - do fix if pattern found
2126  */
2127 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2128        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2131  *  content bypass pattern - skip fix if pattern found
2132  */
2133 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2134        "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2136 #define    FREEBSD_GCC3_BREAKAGE_TEST_CT  2
2137 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2138   { TT_NEGREP,   zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2139   { TT_EGREP,    zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2142  *  Fix Command Arguments for Freebsd_Gcc3_Breakage
2143  */
2144 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2145     "format",
2146     "%0 || __GNUC__ >= 3",
2147     (char*)NULL };
2149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2151  *  Description of Freebsd_Gcc4_Breakage fix
2152  */
2153 tSCC zFreebsd_Gcc4_BreakageName[] =
2154      "freebsd_gcc4_breakage";
2157  *  File name selection pattern
2158  */
2159 tSCC zFreebsd_Gcc4_BreakageList[] =
2160   "sys/cdefs.h\0";
2162  *  Machine/OS name selection pattern
2163  */
2164 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2165         "*-*-freebsd*",
2166         (const char*)NULL };
2169  *  content selection pattern - do fix if pattern found
2170  */
2171 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2172        "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2174 #define    FREEBSD_GCC4_BREAKAGE_TEST_CT  1
2175 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2176   { TT_EGREP,    zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2179  *  Fix Command Arguments for Freebsd_Gcc4_Breakage
2180  */
2181 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2182     "format",
2183     "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2184     (char*)NULL };
2186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2188  *  Description of Glibc_C99_Inline_1 fix
2189  */
2190 tSCC zGlibc_C99_Inline_1Name[] =
2191      "glibc_c99_inline_1";
2194  *  File name selection pattern
2195  */
2196 tSCC zGlibc_C99_Inline_1List[] =
2197   "features.h\0*/features.h\0";
2199  *  Machine/OS name selection pattern
2200  */
2201 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2204  *  content selection pattern - do fix if pattern found
2205  */
2206 tSCC zGlibc_C99_Inline_1Select0[] =
2207        "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2209 #define    GLIBC_C99_INLINE_1_TEST_CT  1
2210 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2211   { TT_EGREP,    zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2214  *  Fix Command Arguments for Glibc_C99_Inline_1
2215  */
2216 static const char* apzGlibc_C99_Inline_1Patch[] = {
2217     "format",
2218     "%0 && __STDC_VERSION__ < 199901L",
2219     (char*)NULL };
2221 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2223  *  Description of Glibc_C99_Inline_2 fix
2224  */
2225 tSCC zGlibc_C99_Inline_2Name[] =
2226      "glibc_c99_inline_2";
2229  *  File name selection pattern
2230  */
2231 tSCC zGlibc_C99_Inline_2List[] =
2232   "sys/stat.h\0*/sys/stat.h\0";
2234  *  Machine/OS name selection pattern
2235  */
2236 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2239  *  content selection pattern - do fix if pattern found
2240  */
2241 tSCC zGlibc_C99_Inline_2Select0[] =
2242        "extern __inline__ int";
2244 #define    GLIBC_C99_INLINE_2_TEST_CT  1
2245 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2246   { TT_EGREP,    zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2249  *  Fix Command Arguments for Glibc_C99_Inline_2
2250  */
2251 static const char* apzGlibc_C99_Inline_2Patch[] = { "sed",
2252     "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#if __STDC_VERSION__ < 199901L\\\n\
2253 extern\\\n\
2254 #endif\\\n\
2255 __inline__ int \\1/",
2256     "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#if __STDC_VERSION__ < 199901L\\\n\
2257 extern\\\n\
2258 #endif\\\n\
2259 __inline__ int __REDIRECT\\1 (\\2/",
2260     "-e", "s/^extern __inline__ int/#if __STDC_VERSION__ < 199901L\\\n\
2261 extern\\\n\
2262 #endif\\\n\
2263 __inline__ int/",
2264     (char*)NULL };
2266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2268  *  Description of Glibc_C99_Inline_3 fix
2269  */
2270 tSCC zGlibc_C99_Inline_3Name[] =
2271      "glibc_c99_inline_3";
2274  *  File name selection pattern
2275  */
2276 tSCC zGlibc_C99_Inline_3List[] =
2277   "bits/string2.h\0*/bits/string2.h\0";
2279  *  Machine/OS name selection pattern
2280  */
2281 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2284  *  content bypass pattern - skip fix if pattern found
2285  */
2286 tSCC zGlibc_C99_Inline_3Bypass0[] =
2287        "__STDC_VERSION__";
2289 #define    GLIBC_C99_INLINE_3_TEST_CT  1
2290 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2291   { TT_NEGREP,   zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL }, };
2294  *  Fix Command Arguments for Glibc_C99_Inline_3
2295  */
2296 static const char* apzGlibc_C99_Inline_3Patch[] = {
2297     "format",
2298     "# if defined(__cplusplus) || __STDC_VERSION__ >= 19901L",
2299     "^# ifdef __cplusplus$",
2300     (char*)NULL };
2302 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2304  *  Description of Glibc_C99_Inline_4 fix
2305  */
2306 tSCC zGlibc_C99_Inline_4Name[] =
2307      "glibc_c99_inline_4";
2310  *  File name selection pattern
2311  */
2312 tSCC zGlibc_C99_Inline_4List[] =
2313   "sys/sysmacros.h\0*/sys/sysmacros.h\0";
2315  *  Machine/OS name selection pattern
2316  */
2317 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2320  *  content bypass pattern - skip fix if pattern found
2321  */
2322 tSCC zGlibc_C99_Inline_4Bypass0[] =
2323        "__STDC_VERSION__";
2325 #define    GLIBC_C99_INLINE_4_TEST_CT  1
2326 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2327   { TT_NEGREP,   zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL }, };
2330  *  Fix Command Arguments for Glibc_C99_Inline_4
2331  */
2332 static const char* apzGlibc_C99_Inline_4Patch[] = {
2333     "format",
2334     "\n\
2335 #if __STDC_VERSION__ < 19901L\n\
2336 extern\n\
2337 #endif\n",
2338     "extern",
2339     (char*)NULL };
2341 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2343  *  Description of Glibc_Mutex_Init fix
2344  */
2345 tSCC zGlibc_Mutex_InitName[] =
2346      "glibc_mutex_init";
2349  *  File name selection pattern
2350  */
2351 tSCC zGlibc_Mutex_InitList[] =
2352   "pthread.h\0";
2354  *  Machine/OS name selection pattern
2355  */
2356 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2359  *  content selection pattern - do fix if pattern found
2360  */
2361 tSCC zGlibc_Mutex_InitSelect0[] =
2362        "\\{ *\\{ *0, *\\} *\\}";
2364 #define    GLIBC_MUTEX_INIT_TEST_CT  1
2365 static tTestDesc aGlibc_Mutex_InitTests[] = {
2366   { TT_EGREP,    zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2369  *  Fix Command Arguments for Glibc_Mutex_Init
2370  */
2371 static const char* apzGlibc_Mutex_InitPatch[] = { "sed",
2372     "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/,+1s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/",
2373     "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2374     "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2375     "-e", "/define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\+PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\n#  \\1\\n  { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# else\\n#  \\1\\n  { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\n# endif/",
2376     "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2377     "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2378     (char*)NULL };
2380 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2382  *  Description of Gnu_Types fix
2383  */
2384 tSCC zGnu_TypesName[] =
2385      "gnu_types";
2388  *  File name selection pattern
2389  */
2390 tSCC zGnu_TypesList[] =
2391   "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2393  *  Machine/OS name selection pattern
2394  */
2395 tSCC* apzGnu_TypesMachs[] = {
2396         "*-*-solaris2.1[0-9]*",
2397         (const char*)NULL };
2400  *  content selection pattern - do fix if pattern found
2401  */
2402 tSCC zGnu_TypesSelect0[] =
2403        "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2406  *  content bypass pattern - skip fix if pattern found
2407  */
2408 tSCC zGnu_TypesBypass0[] =
2409        "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2411 #define    GNU_TYPES_TEST_CT  2
2412 static tTestDesc aGnu_TypesTests[] = {
2413   { TT_NEGREP,   zGnu_TypesBypass0, (regex_t*)NULL },
2414   { TT_EGREP,    zGnu_TypesSelect0, (regex_t*)NULL }, };
2417  *  Fix Command Arguments for Gnu_Types
2418  */
2419 static const char* apzGnu_TypesPatch[] = {
2420     "gnu_type",
2421     (char*)NULL };
2423 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2425  *  Description of Hp_Inline fix
2426  */
2427 tSCC zHp_InlineName[] =
2428      "hp_inline";
2431  *  File name selection pattern
2432  */
2433 tSCC zHp_InlineList[] =
2434   "sys/spinlock.h\0machine/machparam.h\0";
2436  *  Machine/OS name selection pattern
2437  */
2438 #define apzHp_InlineMachs (const char**)NULL
2441  *  content selection pattern - do fix if pattern found
2442  */
2443 tSCC zHp_InlineSelect0[] =
2444        "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2446 #define    HP_INLINE_TEST_CT  1
2447 static tTestDesc aHp_InlineTests[] = {
2448   { TT_EGREP,    zHp_InlineSelect0, (regex_t*)NULL }, };
2451  *  Fix Command Arguments for Hp_Inline
2452  */
2453 static const char* apzHp_InlinePatch[] = {
2454     "format",
2455     "%1<machine/%2.h>",
2456     "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2457     (char*)NULL };
2459 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2461  *  Description of Hp_Sysfile fix
2462  */
2463 tSCC zHp_SysfileName[] =
2464      "hp_sysfile";
2467  *  File name selection pattern
2468  */
2469 tSCC zHp_SysfileList[] =
2470   "sys/file.h\0";
2472  *  Machine/OS name selection pattern
2473  */
2474 #define apzHp_SysfileMachs (const char**)NULL
2477  *  content selection pattern - do fix if pattern found
2478  */
2479 tSCC zHp_SysfileSelect0[] =
2480        "HPUX_SOURCE";
2482 #define    HP_SYSFILE_TEST_CT  1
2483 static tTestDesc aHp_SysfileTests[] = {
2484   { TT_EGREP,    zHp_SysfileSelect0, (regex_t*)NULL }, };
2487  *  Fix Command Arguments for Hp_Sysfile
2488  */
2489 static const char* apzHp_SysfilePatch[] = {
2490     "format",
2491     "(struct file *, ...)",
2492     "\\(\\.\\.\\.\\)",
2493     (char*)NULL };
2495 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2497  *  Description of Hpux10_Cpp_Pow_Inline fix
2498  */
2499 tSCC zHpux10_Cpp_Pow_InlineName[] =
2500      "hpux10_cpp_pow_inline";
2503  *  File name selection pattern
2504  */
2505 tSCC zHpux10_Cpp_Pow_InlineList[] =
2506   "fixinc-test-limits.h\0math.h\0";
2508  *  Machine/OS name selection pattern
2509  */
2510 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2513  *  content selection pattern - do fix if pattern found
2514  */
2515 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2516        "^# +ifdef +__cplusplus\n\
2517  +\\}\n\
2518  +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2519 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2520  +\\}\n\
2521  +extern +\"C\" +\\{\n\
2522 #else\n\
2523 # +endif";
2525 #define    HPUX10_CPP_POW_INLINE_TEST_CT  1
2526 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2527   { TT_EGREP,    zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2530  *  Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2531  */
2532 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2533     "format",
2534     "",
2535     (char*)NULL };
2537 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2539  *  Description of Hpux11_Cpp_Pow_Inline fix
2540  */
2541 tSCC zHpux11_Cpp_Pow_InlineName[] =
2542      "hpux11_cpp_pow_inline";
2545  *  File name selection pattern
2546  */
2547 tSCC zHpux11_Cpp_Pow_InlineList[] =
2548   "math.h\0";
2550  *  Machine/OS name selection pattern
2551  */
2552 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2555  *  content selection pattern - do fix if pattern found
2556  */
2557 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2558        " +inline double pow\\(double d,int expon\\) \\{\n\
2559  +return pow\\(d, \\(double\\)expon\\);\n\
2560  +\\}\n";
2562 #define    HPUX11_CPP_POW_INLINE_TEST_CT  1
2563 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2564   { TT_EGREP,    zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2567  *  Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2568  */
2569 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2570     "format",
2571     "",
2572     (char*)NULL };
2574 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2576  *  Description of Hpux10_Ctype_Declarations1 fix
2577  */
2578 tSCC zHpux10_Ctype_Declarations1Name[] =
2579      "hpux10_ctype_declarations1";
2582  *  File name selection pattern
2583  */
2584 tSCC zHpux10_Ctype_Declarations1List[] =
2585   "ctype.h\0";
2587  *  Machine/OS name selection pattern
2588  */
2589 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2592  *  content selection pattern - do fix if pattern found
2593  */
2594 tSCC zHpux10_Ctype_Declarations1Select0[] =
2595        "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2598  *  content bypass pattern - skip fix if pattern found
2599  */
2600 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2601        "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2603 #define    HPUX10_CTYPE_DECLARATIONS1_TEST_CT  2
2604 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2605   { TT_NEGREP,   zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2606   { TT_EGREP,    zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2609  *  Fix Command Arguments for Hpux10_Ctype_Declarations1
2610  */
2611 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2612     "format",
2613     "#ifdef _PROTOTYPES\n\
2614 extern int __tolower(int);\n\
2615 extern int __toupper(int);\n\
2616 #else /* NOT _PROTOTYPES */\n\
2617 extern int __tolower();\n\
2618 extern int __toupper();\n\
2619 #endif /* _PROTOTYPES */\n\n\
2620 %0\n",
2621     (char*)NULL };
2623 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2625  *  Description of Hpux10_Ctype_Declarations2 fix
2626  */
2627 tSCC zHpux10_Ctype_Declarations2Name[] =
2628      "hpux10_ctype_declarations2";
2631  *  File name selection pattern
2632  */
2633 tSCC zHpux10_Ctype_Declarations2List[] =
2634   "ctype.h\0";
2636  *  Machine/OS name selection pattern
2637  */
2638 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2641  *  content selection pattern - do fix if pattern found
2642  */
2643 tSCC zHpux10_Ctype_Declarations2Select0[] =
2644        "^#  if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2647  *  content bypass pattern - skip fix if pattern found
2648  */
2649 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2650        "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2652 #define    HPUX10_CTYPE_DECLARATIONS2_TEST_CT  2
2653 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2654   { TT_NEGREP,   zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2655   { TT_EGREP,    zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2658  *  Fix Command Arguments for Hpux10_Ctype_Declarations2
2659  */
2660 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2661     "format",
2662     "%0\n\n\
2663 #ifdef _PROTOTYPES\n\
2664      extern int _isalnum(int);\n\
2665      extern int _isalpha(int);\n\
2666      extern int _iscntrl(int);\n\
2667      extern int _isdigit(int);\n\
2668      extern int _isgraph(int);\n\
2669      extern int _islower(int);\n\
2670      extern int _isprint(int);\n\
2671      extern int _ispunct(int);\n\
2672      extern int _isspace(int);\n\
2673      extern int _isupper(int);\n\
2674      extern int _isxdigit(int);\n\
2675 #  else /* not _PROTOTYPES */\n\
2676      extern int _isalnum();\n\
2677      extern int _isalpha();\n\
2678      extern int _iscntrl();\n\
2679      extern int _isdigit();\n\
2680      extern int _isgraph();\n\
2681      extern int _islower();\n\
2682      extern int _isprint();\n\
2683      extern int _ispunct();\n\
2684      extern int _isspace();\n\
2685      extern int _isupper();\n\
2686      extern int _isxdigit();\n\
2687 #endif /* _PROTOTYPES */\n",
2688     (char*)NULL };
2690 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2692  *  Description of Hpux10_Stdio_Declarations fix
2693  */
2694 tSCC zHpux10_Stdio_DeclarationsName[] =
2695      "hpux10_stdio_declarations";
2698  *  File name selection pattern
2699  */
2700 tSCC zHpux10_Stdio_DeclarationsList[] =
2701   "stdio.h\0";
2703  *  Machine/OS name selection pattern
2704  */
2705 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2708  *  content selection pattern - do fix if pattern found
2709  */
2710 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2711        "^#[ \t]*define _iob[ \t]*__iob";
2714  *  content bypass pattern - skip fix if pattern found
2715  */
2716 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2717        "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2719 #define    HPUX10_STDIO_DECLARATIONS_TEST_CT  2
2720 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2721   { TT_NEGREP,   zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2722   { TT_EGREP,    zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2725  *  Fix Command Arguments for Hpux10_Stdio_Declarations
2726  */
2727 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2728     "format",
2729     "%0\n\n\
2730 #  if defined(__STDC__) || defined(__cplusplus)\n\
2731      extern int snprintf(char *, size_t, const char *, ...);\n\
2732      extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2733 #  else /* not __STDC__) || __cplusplus */\n\
2734      extern int snprintf();\n\
2735      extern int vsnprintf();\n\
2736 #  endif /* __STDC__) || __cplusplus */\n",
2737     (char*)NULL };
2739 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2741  *  Description of Hpux11_Abs fix
2742  */
2743 tSCC zHpux11_AbsName[] =
2744      "hpux11_abs";
2747  *  File name selection pattern
2748  */
2749 tSCC zHpux11_AbsList[] =
2750   "stdlib.h\0";
2752  *  Machine/OS name selection pattern
2753  */
2754 tSCC* apzHpux11_AbsMachs[] = {
2755         "ia64-hp-hpux11*",
2756         (const char*)NULL };
2759  *  content selection pattern - do fix if pattern found
2760  */
2761 tSCC zHpux11_AbsSelect0[] =
2762        "ifndef _MATH_INCLUDED";
2764 #define    HPUX11_ABS_TEST_CT  1
2765 static tTestDesc aHpux11_AbsTests[] = {
2766   { TT_EGREP,    zHpux11_AbsSelect0, (regex_t*)NULL }, };
2769  *  Fix Command Arguments for Hpux11_Abs
2770  */
2771 static const char* apzHpux11_AbsPatch[] = {
2772     "format",
2773     "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2774     (char*)NULL };
2776 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2778  *  Description of Hpux11_Fabsf fix
2779  */
2780 tSCC zHpux11_FabsfName[] =
2781      "hpux11_fabsf";
2784  *  File name selection pattern
2785  */
2786 tSCC zHpux11_FabsfList[] =
2787   "math.h\0";
2789  *  Machine/OS name selection pattern
2790  */
2791 #define apzHpux11_FabsfMachs (const char**)NULL
2794  *  content selection pattern - do fix if pattern found
2795  */
2796 tSCC zHpux11_FabsfSelect0[] =
2797        "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2800  *  content bypass pattern - skip fix if pattern found
2801  */
2802 tSCC zHpux11_FabsfBypass0[] =
2803        "__cplusplus";
2805 #define    HPUX11_FABSF_TEST_CT  2
2806 static tTestDesc aHpux11_FabsfTests[] = {
2807   { TT_NEGREP,   zHpux11_FabsfBypass0, (regex_t*)NULL },
2808   { TT_EGREP,    zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2811  *  Fix Command Arguments for Hpux11_Fabsf
2812  */
2813 static const char* apzHpux11_FabsfPatch[] = {
2814     "format",
2815     "#ifndef __cplusplus\n\
2816 %0\n\
2817 #endif",
2818     (char*)NULL };
2820 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2822  *  Description of Hpux11_Size_T fix
2823  */
2824 tSCC zHpux11_Size_TName[] =
2825      "hpux11_size_t";
2828  *  File name selection pattern
2829  */
2830 #define zHpux11_Size_TList (char*)NULL
2832  *  Machine/OS name selection pattern
2833  */
2834 tSCC* apzHpux11_Size_TMachs[] = {
2835         "*-hp-hpux11*",
2836         (const char*)NULL };
2839  *  content selection pattern - do fix if pattern found
2840  */
2841 tSCC zHpux11_Size_TSelect0[] =
2842        "__size_t";
2844 #define    HPUX11_SIZE_T_TEST_CT  1
2845 static tTestDesc aHpux11_Size_TTests[] = {
2846   { TT_EGREP,    zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2849  *  Fix Command Arguments for Hpux11_Size_T
2850  */
2851 static const char* apzHpux11_Size_TPatch[] = {
2852     "format",
2853     "_hpux_size_t",
2854     (char*)NULL };
2856 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2858  *  Description of Hpux11_Snprintf fix
2859  */
2860 tSCC zHpux11_SnprintfName[] =
2861      "hpux11_snprintf";
2864  *  File name selection pattern
2865  */
2866 tSCC zHpux11_SnprintfList[] =
2867   "stdio.h\0";
2869  *  Machine/OS name selection pattern
2870  */
2871 #define apzHpux11_SnprintfMachs (const char**)NULL
2874  *  content selection pattern - do fix if pattern found
2875  */
2876 tSCC zHpux11_SnprintfSelect0[] =
2877        "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2879 #define    HPUX11_SNPRINTF_TEST_CT  1
2880 static tTestDesc aHpux11_SnprintfTests[] = {
2881   { TT_EGREP,    zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2884  *  Fix Command Arguments for Hpux11_Snprintf
2885  */
2886 static const char* apzHpux11_SnprintfPatch[] = {
2887     "format",
2888     "%1 const %3",
2889     (char*)NULL };
2891 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2893  *  Description of Hpux11_Uint32_C fix
2894  */
2895 tSCC zHpux11_Uint32_CName[] =
2896      "hpux11_uint32_c";
2899  *  File name selection pattern
2900  */
2901 tSCC zHpux11_Uint32_CList[] =
2902   "inttypes.h\0";
2904  *  Machine/OS name selection pattern
2905  */
2906 #define apzHpux11_Uint32_CMachs (const char**)NULL
2909  *  content selection pattern - do fix if pattern found
2910  */
2911 tSCC zHpux11_Uint32_CSelect0[] =
2912        "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2914 #define    HPUX11_UINT32_C_TEST_CT  1
2915 static tTestDesc aHpux11_Uint32_CTests[] = {
2916   { TT_EGREP,    zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2919  *  Fix Command Arguments for Hpux11_Uint32_C
2920  */
2921 static const char* apzHpux11_Uint32_CPatch[] = {
2922     "format",
2923     "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2924     (char*)NULL };
2926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2928  *  Description of Hpux11_Vsnprintf fix
2929  */
2930 tSCC zHpux11_VsnprintfName[] =
2931      "hpux11_vsnprintf";
2934  *  File name selection pattern
2935  */
2936 tSCC zHpux11_VsnprintfList[] =
2937   "stdio.h\0";
2939  *  Machine/OS name selection pattern
2940  */
2941 #define apzHpux11_VsnprintfMachs (const char**)NULL
2944  *  content selection pattern - do fix if pattern found
2945  */
2946 tSCC zHpux11_VsnprintfSelect0[] =
2947        "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2949 #define    HPUX11_VSNPRINTF_TEST_CT  1
2950 static tTestDesc aHpux11_VsnprintfTests[] = {
2951   { TT_EGREP,    zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2954  *  Fix Command Arguments for Hpux11_Vsnprintf
2955  */
2956 static const char* apzHpux11_VsnprintfPatch[] = {
2957     "format",
2958     "%1 __va_list);",
2959     (char*)NULL };
2961 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2963  *  Description of Hpux8_Bogus_Inlines fix
2964  */
2965 tSCC zHpux8_Bogus_InlinesName[] =
2966      "hpux8_bogus_inlines";
2969  *  File name selection pattern
2970  */
2971 tSCC zHpux8_Bogus_InlinesList[] =
2972   "math.h\0";
2974  *  Machine/OS name selection pattern
2975  */
2976 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2979  *  content selection pattern - do fix if pattern found
2980  */
2981 tSCC zHpux8_Bogus_InlinesSelect0[] =
2982        "inline";
2985  *  content bypass pattern - skip fix if pattern found
2986  */
2987 tSCC zHpux8_Bogus_InlinesBypass0[] =
2988        "__GNUG__";
2990 #define    HPUX8_BOGUS_INLINES_TEST_CT  2
2991 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2992   { TT_NEGREP,   zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
2993   { TT_EGREP,    zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2996  *  Fix Command Arguments for Hpux8_Bogus_Inlines
2997  */
2998 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2999     "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3000     "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3001     "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3002     "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3003     (char*)NULL };
3005 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3007  *  Description of Hpux_Ctype_Macros fix
3008  */
3009 tSCC zHpux_Ctype_MacrosName[] =
3010      "hpux_ctype_macros";
3013  *  File name selection pattern
3014  */
3015 tSCC zHpux_Ctype_MacrosList[] =
3016   "ctype.h\0";
3018  *  Machine/OS name selection pattern
3019  */
3020 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3023  *  content selection pattern - do fix if pattern found
3024  */
3025 tSCC zHpux_Ctype_MacrosSelect0[] =
3026        "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3028 #define    HPUX_CTYPE_MACROS_TEST_CT  1
3029 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3030   { TT_EGREP,    zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3033  *  Fix Command Arguments for Hpux_Ctype_Macros
3034  */
3035 static const char* apzHpux_Ctype_MacrosPatch[] = {
3036     "format",
3037     "%1(int)%3",
3038     (char*)NULL };
3040 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3042  *  Description of Hpux_Htonl fix
3043  */
3044 tSCC zHpux_HtonlName[] =
3045      "hpux_htonl";
3048  *  File name selection pattern
3049  */
3050 tSCC zHpux_HtonlList[] =
3051   "netinet/in.h\0";
3053  *  Machine/OS name selection pattern
3054  */
3055 #define apzHpux_HtonlMachs (const char**)NULL
3058  *  content selection pattern - do fix if pattern found
3059  */
3060 tSCC zHpux_HtonlSelect0[] =
3061        "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3062 (/\\*\n\
3063  \\* Macros for number representation conversion\\.\n\
3064  \\*/\n\
3065 #ifndef ntohl)";
3067 #define    HPUX_HTONL_TEST_CT  1
3068 static tTestDesc aHpux_HtonlTests[] = {
3069   { TT_EGREP,    zHpux_HtonlSelect0, (regex_t*)NULL }, };
3072  *  Fix Command Arguments for Hpux_Htonl
3073  */
3074 static const char* apzHpux_HtonlPatch[] = {
3075     "format",
3076     "#if 1\n\
3077 %1",
3078     (char*)NULL };
3080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3082  *  Description of Hpux_Long_Double fix
3083  */
3084 tSCC zHpux_Long_DoubleName[] =
3085      "hpux_long_double";
3088  *  File name selection pattern
3089  */
3090 tSCC zHpux_Long_DoubleList[] =
3091   "stdlib.h\0";
3093  *  Machine/OS name selection pattern
3094  */
3095 #define apzHpux_Long_DoubleMachs (const char**)NULL
3098  *  content selection pattern - do fix if pattern found
3099  */
3100 tSCC zHpux_Long_DoubleSelect0[] =
3101        "extern[ \t]long_double[ \t]strtold";
3104  *  content bypass pattern - skip fix if pattern found
3105  */
3106 tSCC zHpux_Long_DoubleBypass0[] =
3107        "long_double_t";
3109 #define    HPUX_LONG_DOUBLE_TEST_CT  2
3110 static tTestDesc aHpux_Long_DoubleTests[] = {
3111   { TT_NEGREP,   zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3112   { TT_EGREP,    zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3115  *  Fix Command Arguments for Hpux_Long_Double
3116  */
3117 static const char* apzHpux_Long_DoublePatch[] = { "sed",
3118     "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3119     "-e", "s/long_double/long double/g",
3120     (char*)NULL };
3122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3124  *  Description of Hpux_Systime fix
3125  */
3126 tSCC zHpux_SystimeName[] =
3127      "hpux_systime";
3130  *  File name selection pattern
3131  */
3132 tSCC zHpux_SystimeList[] =
3133   "sys/time.h\0";
3135  *  Machine/OS name selection pattern
3136  */
3137 #define apzHpux_SystimeMachs (const char**)NULL
3140  *  content selection pattern - do fix if pattern found
3141  */
3142 tSCC zHpux_SystimeSelect0[] =
3143        "^extern struct sigevent;";
3145 #define    HPUX_SYSTIME_TEST_CT  1
3146 static tTestDesc aHpux_SystimeTests[] = {
3147   { TT_EGREP,    zHpux_SystimeSelect0, (regex_t*)NULL }, };
3150  *  Fix Command Arguments for Hpux_Systime
3151  */
3152 static const char* apzHpux_SystimePatch[] = {
3153     "format",
3154     "struct sigevent;",
3155     (char*)NULL };
3157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3159  *  Description of Hpux_Spu_Info fix
3160  */
3161 tSCC zHpux_Spu_InfoName[] =
3162      "hpux_spu_info";
3165  *  File name selection pattern
3166  */
3167 tSCC zHpux_Spu_InfoList[] =
3168   "ia64/sys/getppdp.h\0";
3170  *  Machine/OS name selection pattern
3171  */
3172 tSCC* apzHpux_Spu_InfoMachs[] = {
3173         "*-hp-hpux*",
3174         (const char*)NULL };
3177  *  content selection pattern - do fix if pattern found
3178  */
3179 tSCC zHpux_Spu_InfoSelect0[] =
3180        "^.*extern.*spu_info.*";
3182 #define    HPUX_SPU_INFO_TEST_CT  1
3183 static tTestDesc aHpux_Spu_InfoTests[] = {
3184   { TT_EGREP,    zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3187  *  Fix Command Arguments for Hpux_Spu_Info
3188  */
3189 static const char* apzHpux_Spu_InfoPatch[] = {
3190     "format",
3191     "#ifdef _KERNEL\n\
3192 %0\n\
3193 #endif",
3194     (char*)NULL };
3196 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3198  *  Description of Hpux11_Extern_Sendfile fix
3199  */
3200 tSCC zHpux11_Extern_SendfileName[] =
3201      "hpux11_extern_sendfile";
3204  *  File name selection pattern
3205  */
3206 tSCC zHpux11_Extern_SendfileList[] =
3207   "sys/socket.h\0";
3209  *  Machine/OS name selection pattern
3210  */
3211 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3212         "*-hp-hpux11.[12]*",
3213         (const char*)NULL };
3216  *  content selection pattern - do fix if pattern found
3217  */
3218 tSCC zHpux11_Extern_SendfileSelect0[] =
3219        "^[ \t]*extern sbsize_t sendfile.*\n\
3220 .*, int\\)\\);\n";
3222 #define    HPUX11_EXTERN_SENDFILE_TEST_CT  1
3223 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3224   { TT_EGREP,    zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3227  *  Fix Command Arguments for Hpux11_Extern_Sendfile
3228  */
3229 static const char* apzHpux11_Extern_SendfilePatch[] = {
3230     "format",
3231     "#ifndef _APP32_64BIT_OFF_T\n\
3232 %0#endif\n",
3233     (char*)NULL };
3235 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3237  *  Description of Hpux11_Extern_Sendpath fix
3238  */
3239 tSCC zHpux11_Extern_SendpathName[] =
3240      "hpux11_extern_sendpath";
3243  *  File name selection pattern
3244  */
3245 tSCC zHpux11_Extern_SendpathList[] =
3246   "sys/socket.h\0";
3248  *  Machine/OS name selection pattern
3249  */
3250 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3251         "*-hp-hpux11.[12]*",
3252         (const char*)NULL };
3255  *  content selection pattern - do fix if pattern found
3256  */
3257 tSCC zHpux11_Extern_SendpathSelect0[] =
3258        "^[ \t]*extern sbsize_t sendpath.*\n\
3259 .*, int\\)\\);\n";
3261 #define    HPUX11_EXTERN_SENDPATH_TEST_CT  1
3262 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3263   { TT_EGREP,    zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3266  *  Fix Command Arguments for Hpux11_Extern_Sendpath
3267  */
3268 static const char* apzHpux11_Extern_SendpathPatch[] = {
3269     "format",
3270     "#ifndef _APP32_64BIT_OFF_T\n\
3271 %0#endif\n",
3272     (char*)NULL };
3274 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3276  *  Description of Hpux_Extern_Errno fix
3277  */
3278 tSCC zHpux_Extern_ErrnoName[] =
3279      "hpux_extern_errno";
3282  *  File name selection pattern
3283  */
3284 tSCC zHpux_Extern_ErrnoList[] =
3285   "errno.h\0";
3287  *  Machine/OS name selection pattern
3288  */
3289 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3290         "*-hp-hpux10.*",
3291         "*-hp-hpux11.[0-2]*",
3292         (const char*)NULL };
3295  *  content selection pattern - do fix if pattern found
3296  */
3297 tSCC zHpux_Extern_ErrnoSelect0[] =
3298        "^[ \t]*extern int errno;$";
3300 #define    HPUX_EXTERN_ERRNO_TEST_CT  1
3301 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3302   { TT_EGREP,    zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3305  *  Fix Command Arguments for Hpux_Extern_Errno
3306  */
3307 static const char* apzHpux_Extern_ErrnoPatch[] = {
3308     "format",
3309     "#ifdef __cplusplus\n\
3310 extern \"C\" {\n\
3311 #endif\n\
3312 %0\n\
3313 #ifdef __cplusplus\n\
3314 }\n\
3315 #endif",
3316     (char*)NULL };
3318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3320  *  Description of Hpux_Pthread_Initializers fix
3321  */
3322 tSCC zHpux_Pthread_InitializersName[] =
3323      "hpux_pthread_initializers";
3326  *  File name selection pattern
3327  */
3328 tSCC zHpux_Pthread_InitializersList[] =
3329   "sys/pthread.h\0";
3331  *  Machine/OS name selection pattern
3332  */
3333 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3334         "*-hp-hpux11.[0-3]*",
3335         (const char*)NULL };
3336 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT  0
3337 #define aHpux_Pthread_InitializersTests   (tTestDesc*)NULL
3340  *  Fix Command Arguments for Hpux_Pthread_Initializers
3341  */
3342 static const char* apzHpux_Pthread_InitializersPatch[] = { "sed",
3343     "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3344     "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3345     "-e", "/^[ \t]*0$/d",
3346     "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3347     "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3348     "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3349     "-e", "s@^[ \t]*__LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@\t{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3350     "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3351     "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3352     "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3353     "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3354     "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3355     "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3356     (char*)NULL };
3358 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3360  *  Description of Huge_Val_Hex fix
3361  */
3362 tSCC zHuge_Val_HexName[] =
3363      "huge_val_hex";
3366  *  File name selection pattern
3367  */
3368 tSCC zHuge_Val_HexList[] =
3369   "bits/huge_val.h\0";
3371  *  Machine/OS name selection pattern
3372  */
3373 #define apzHuge_Val_HexMachs (const char**)NULL
3376  *  content selection pattern - do fix if pattern found
3377  */
3378 tSCC zHuge_Val_HexSelect0[] =
3379        "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3382  *  content bypass pattern - skip fix if pattern found
3383  */
3384 tSCC zHuge_Val_HexBypass0[] =
3385        "__builtin_huge_val";
3387 #define    HUGE_VAL_HEX_TEST_CT  2
3388 static tTestDesc aHuge_Val_HexTests[] = {
3389   { TT_NEGREP,   zHuge_Val_HexBypass0, (regex_t*)NULL },
3390   { TT_EGREP,    zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3393  *  Fix Command Arguments for Huge_Val_Hex
3394  */
3395 static const char* apzHuge_Val_HexPatch[] = {
3396     "format",
3397     "#define HUGE_VAL (__builtin_huge_val())\n",
3398     (char*)NULL };
3400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3402  *  Description of Huge_Valf_Hex fix
3403  */
3404 tSCC zHuge_Valf_HexName[] =
3405      "huge_valf_hex";
3408  *  File name selection pattern
3409  */
3410 tSCC zHuge_Valf_HexList[] =
3411   "bits/huge_val.h\0";
3413  *  Machine/OS name selection pattern
3414  */
3415 #define apzHuge_Valf_HexMachs (const char**)NULL
3418  *  content selection pattern - do fix if pattern found
3419  */
3420 tSCC zHuge_Valf_HexSelect0[] =
3421        "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3424  *  content bypass pattern - skip fix if pattern found
3425  */
3426 tSCC zHuge_Valf_HexBypass0[] =
3427        "__builtin_huge_valf";
3429 #define    HUGE_VALF_HEX_TEST_CT  2
3430 static tTestDesc aHuge_Valf_HexTests[] = {
3431   { TT_NEGREP,   zHuge_Valf_HexBypass0, (regex_t*)NULL },
3432   { TT_EGREP,    zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3435  *  Fix Command Arguments for Huge_Valf_Hex
3436  */
3437 static const char* apzHuge_Valf_HexPatch[] = {
3438     "format",
3439     "#define HUGE_VALF (__builtin_huge_valf())\n",
3440     (char*)NULL };
3442 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3444  *  Description of Huge_Vall_Hex fix
3445  */
3446 tSCC zHuge_Vall_HexName[] =
3447      "huge_vall_hex";
3450  *  File name selection pattern
3451  */
3452 tSCC zHuge_Vall_HexList[] =
3453   "bits/huge_val.h\0";
3455  *  Machine/OS name selection pattern
3456  */
3457 #define apzHuge_Vall_HexMachs (const char**)NULL
3460  *  content selection pattern - do fix if pattern found
3461  */
3462 tSCC zHuge_Vall_HexSelect0[] =
3463        "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3466  *  content bypass pattern - skip fix if pattern found
3467  */
3468 tSCC zHuge_Vall_HexBypass0[] =
3469        "__builtin_huge_vall";
3471 #define    HUGE_VALL_HEX_TEST_CT  2
3472 static tTestDesc aHuge_Vall_HexTests[] = {
3473   { TT_NEGREP,   zHuge_Vall_HexBypass0, (regex_t*)NULL },
3474   { TT_EGREP,    zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3477  *  Fix Command Arguments for Huge_Vall_Hex
3478  */
3479 static const char* apzHuge_Vall_HexPatch[] = {
3480     "format",
3481     "#define HUGE_VALL (__builtin_huge_vall())\n",
3482     (char*)NULL };
3484 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3486  *  Description of Int_Abort_Free_And_Exit fix
3487  */
3488 tSCC zInt_Abort_Free_And_ExitName[] =
3489      "int_abort_free_and_exit";
3492  *  File name selection pattern
3493  */
3494 tSCC zInt_Abort_Free_And_ExitList[] =
3495   "stdlib.h\0";
3497  *  Machine/OS name selection pattern
3498  */
3499 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3502  *  content selection pattern - do fix if pattern found
3503  */
3504 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3505        "int[ \t]+(abort|free|exit)[ \t]*\\(";
3508  *  content bypass pattern - skip fix if pattern found
3509  */
3510 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3511        "_CLASSIC_ANSI_TYPES";
3513 #define    INT_ABORT_FREE_AND_EXIT_TEST_CT  2
3514 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3515   { TT_NEGREP,   zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3516   { TT_EGREP,    zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3519  *  Fix Command Arguments for Int_Abort_Free_And_Exit
3520  */
3521 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3522     "format",
3523     "void\t%1(",
3524     (char*)NULL };
3526 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3528  *  Description of Io_Quotes_Def fix
3529  */
3530 tSCC zIo_Quotes_DefName[] =
3531      "io_quotes_def";
3534  *  File name selection pattern
3535  */
3536 #define zIo_Quotes_DefList (char*)NULL
3538  *  Machine/OS name selection pattern
3539  */
3540 #define apzIo_Quotes_DefMachs (const char**)NULL
3543  *  content selection pattern - do fix if pattern found
3544  */
3545 tSCC zIo_Quotes_DefSelect0[] =
3546        "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3548 #define    IO_QUOTES_DEF_TEST_CT  1
3549 static tTestDesc aIo_Quotes_DefTests[] = {
3550   { TT_EGREP,    zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3553  *  Fix Command Arguments for Io_Quotes_Def
3554  */
3555 static const char* apzIo_Quotes_DefPatch[] = {
3556     "char_macro_def",
3557     "IO",
3558     (char*)NULL };
3560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3562  *  Description of Io_Quotes_Use fix
3563  */
3564 tSCC zIo_Quotes_UseName[] =
3565      "io_quotes_use";
3568  *  File name selection pattern
3569  */
3570 #define zIo_Quotes_UseList (char*)NULL
3572  *  Machine/OS name selection pattern
3573  */
3574 #define apzIo_Quotes_UseMachs (const char**)NULL
3577  *  content selection pattern - do fix if pattern found
3578  */
3579 tSCC zIo_Quotes_UseSelect0[] =
3580        "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3582 #define    IO_QUOTES_USE_TEST_CT  1
3583 static tTestDesc aIo_Quotes_UseTests[] = {
3584   { TT_EGREP,    zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3587  *  Fix Command Arguments for Io_Quotes_Use
3588  */
3589 static const char* apzIo_Quotes_UsePatch[] = {
3590     "char_macro_use",
3591     "IO",
3592     (char*)NULL };
3594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3596  *  Description of Ip_Missing_Semi fix
3597  */
3598 tSCC zIp_Missing_SemiName[] =
3599      "ip_missing_semi";
3602  *  File name selection pattern
3603  */
3604 tSCC zIp_Missing_SemiList[] =
3605   "netinet/ip.h\0";
3607  *  Machine/OS name selection pattern
3608  */
3609 #define apzIp_Missing_SemiMachs (const char**)NULL
3612  *  content selection pattern - do fix if pattern found
3613  */
3614 tSCC zIp_Missing_SemiSelect0[] =
3615        "}$";
3617 #define    IP_MISSING_SEMI_TEST_CT  1
3618 static tTestDesc aIp_Missing_SemiTests[] = {
3619   { TT_EGREP,    zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3622  *  Fix Command Arguments for Ip_Missing_Semi
3623  */
3624 static const char* apzIp_Missing_SemiPatch[] = { "sed",
3625     "-e", "/^struct/,/^};/s/}$/};/",
3626     (char*)NULL };
3628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3630  *  Description of Irix___Restrict fix
3631  */
3632 tSCC zIrix___RestrictName[] =
3633      "irix___restrict";
3636  *  File name selection pattern
3637  */
3638 tSCC zIrix___RestrictList[] =
3639   "internal/sgimacros.h\0";
3641  *  Machine/OS name selection pattern
3642  */
3643 tSCC* apzIrix___RestrictMachs[] = {
3644         "mips-sgi-irix6.5",
3645         (const char*)NULL };
3648  *  content selection pattern - do fix if pattern found
3649  */
3650 tSCC zIrix___RestrictSelect0[] =
3651        "(#ifdef __c99\n\
3652 )(#[ \t]*define __restrict restrict)";
3654 #define    IRIX___RESTRICT_TEST_CT  1
3655 static tTestDesc aIrix___RestrictTests[] = {
3656   { TT_EGREP,    zIrix___RestrictSelect0, (regex_t*)NULL }, };
3659  *  Fix Command Arguments for Irix___Restrict
3660  */
3661 static const char* apzIrix___RestrictPatch[] = {
3662     "format",
3663     "%1#  ifndef __cplusplus\n\
3664 %2\n\
3665 #  endif",
3666     (char*)NULL };
3668 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3670  *  Description of Irix___Generic1 fix
3671  */
3672 tSCC zIrix___Generic1Name[] =
3673      "irix___generic1";
3676  *  File name selection pattern
3677  */
3678 tSCC zIrix___Generic1List[] =
3679   "internal/math_core.h\0";
3681  *  Machine/OS name selection pattern
3682  */
3683 tSCC* apzIrix___Generic1Machs[] = {
3684         "mips-sgi-irix6.5",
3685         (const char*)NULL };
3688  *  content selection pattern - do fix if pattern found
3689  */
3690 tSCC zIrix___Generic1Select0[] =
3691        "#define ([a-z]+)\\(x\\) *__generic.*";
3693 #define    IRIX___GENERIC1_TEST_CT  1
3694 static tTestDesc aIrix___Generic1Tests[] = {
3695   { TT_EGREP,    zIrix___Generic1Select0, (regex_t*)NULL }, };
3698  *  Fix Command Arguments for Irix___Generic1
3699  */
3700 static const char* apzIrix___Generic1Patch[] = {
3701     "format",
3702     "extern int %1(double);\n\
3703 extern int %1f(float);\n\
3704 extern int %1l(long double);\n\
3705 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3706                : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3707                : _%1l(x))\n",
3708     (char*)NULL };
3710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3712  *  Description of Irix___Generic2 fix
3713  */
3714 tSCC zIrix___Generic2Name[] =
3715      "irix___generic2";
3718  *  File name selection pattern
3719  */
3720 tSCC zIrix___Generic2List[] =
3721   "internal/math_core.h\0";
3723  *  Machine/OS name selection pattern
3724  */
3725 tSCC* apzIrix___Generic2Machs[] = {
3726         "mips-sgi-irix6.5",
3727         (const char*)NULL };
3730  *  content selection pattern - do fix if pattern found
3731  */
3732 tSCC zIrix___Generic2Select0[] =
3733        "#define ([a-z]+)\\(x,y\\) *__generic.*";
3735 #define    IRIX___GENERIC2_TEST_CT  1
3736 static tTestDesc aIrix___Generic2Tests[] = {
3737   { TT_EGREP,    zIrix___Generic2Select0, (regex_t*)NULL }, };
3740  *  Fix Command Arguments for Irix___Generic2
3741  */
3742 static const char* apzIrix___Generic2Patch[] = {
3743     "format",
3744     "#define %1(x,y) \\\n\
3745   ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3746    : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3747    : _%1l(x,y))\n",
3748     (char*)NULL };
3750 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3752  *  Description of Irix_Asm_Apostrophe fix
3753  */
3754 tSCC zIrix_Asm_ApostropheName[] =
3755      "irix_asm_apostrophe";
3758  *  File name selection pattern
3759  */
3760 tSCC zIrix_Asm_ApostropheList[] =
3761   "sys/asm.h\0";
3763  *  Machine/OS name selection pattern
3764  */
3765 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3768  *  content selection pattern - do fix if pattern found
3769  */
3770 tSCC zIrix_Asm_ApostropheSelect0[] =
3771        "^[ \t]*#.*[Ww]e're";
3773 #define    IRIX_ASM_APOSTROPHE_TEST_CT  1
3774 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3775   { TT_EGREP,    zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3778  *  Fix Command Arguments for Irix_Asm_Apostrophe
3779  */
3780 static const char* apzIrix_Asm_ApostrophePatch[] = {
3781     "format",
3782     "%1 are",
3783     "^([ \t]*#.*[Ww]e)'re",
3784     (char*)NULL };
3786 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3788  *  Description of Irix_Limits_Const fix
3789  */
3790 tSCC zIrix_Limits_ConstName[] =
3791      "irix_limits_const";
3794  *  File name selection pattern
3795  */
3796 tSCC zIrix_Limits_ConstList[] =
3797   "fixinc-test-limits.h\0limits.h\0";
3799  *  Machine/OS name selection pattern
3800  */
3801 #define apzIrix_Limits_ConstMachs (const char**)NULL
3804  *  content selection pattern - do fix if pattern found
3805  */
3806 tSCC zIrix_Limits_ConstSelect0[] =
3807        "^extern const ";
3809 #define    IRIX_LIMITS_CONST_TEST_CT  1
3810 static tTestDesc aIrix_Limits_ConstTests[] = {
3811   { TT_EGREP,    zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3814  *  Fix Command Arguments for Irix_Limits_Const
3815  */
3816 static const char* apzIrix_Limits_ConstPatch[] = {
3817     "format",
3818     "extern __const ",
3819     (char*)NULL };
3821 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3823  *  Description of Irix_Socklen_T fix
3824  */
3825 tSCC zIrix_Socklen_TName[] =
3826      "irix_socklen_t";
3829  *  File name selection pattern
3830  */
3831 tSCC zIrix_Socklen_TList[] =
3832   "sys/socket.h\0";
3834  *  Machine/OS name selection pattern
3835  */
3836 tSCC* apzIrix_Socklen_TMachs[] = {
3837         "mips-sgi-irix6.5",
3838         (const char*)NULL };
3841  *  content selection pattern - do fix if pattern found
3842  */
3843 tSCC zIrix_Socklen_TSelect0[] =
3844        "(#define _SOCKLEN_T\n\
3845 )(typedef u_int32_t socklen_t;)";
3847 #define    IRIX_SOCKLEN_T_TEST_CT  1
3848 static tTestDesc aIrix_Socklen_TTests[] = {
3849   { TT_EGREP,    zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3852  *  Fix Command Arguments for Irix_Socklen_T
3853  */
3854 static const char* apzIrix_Socklen_TPatch[] = {
3855     "format",
3856     "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3857 typedef int socklen_t;\n\
3858 #else\n\
3859 %2\n\
3860 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
3861     (char*)NULL };
3863 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3865  *  Description of Irix_Stdio_Va_List fix
3866  */
3867 tSCC zIrix_Stdio_Va_ListName[] =
3868      "irix_stdio_va_list";
3871  *  File name selection pattern
3872  */
3873 tSCC zIrix_Stdio_Va_ListList[] =
3874   "stdio.h\0internal/stdio_core.h\0";
3876  *  Machine/OS name selection pattern
3877  */
3878 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
3881  *  content selection pattern - do fix if pattern found
3882  */
3883 tSCC zIrix_Stdio_Va_ListSelect0[] =
3884        "/\\* va_list \\*/ char \\*";
3886 #define    IRIX_STDIO_VA_LIST_TEST_CT  1
3887 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
3888   { TT_EGREP,    zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
3891  *  Fix Command Arguments for Irix_Stdio_Va_List
3892  */
3893 static const char* apzIrix_Stdio_Va_ListPatch[] = {
3894     "format",
3895     "__gnuc_va_list",
3896     (char*)NULL };
3898 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3900  *  Description of Irix_Wcsftime fix
3901  */
3902 tSCC zIrix_WcsftimeName[] =
3903      "irix_wcsftime";
3906  *  File name selection pattern
3907  */
3908 tSCC zIrix_WcsftimeList[] =
3909   "internal/wchar_core.h\0";
3911  *  Machine/OS name selection pattern
3912  */
3913 tSCC* apzIrix_WcsftimeMachs[] = {
3914         "mips-sgi-irix6.5",
3915         (const char*)NULL };
3918  *  content selection pattern - do fix if pattern found
3919  */
3920 tSCC zIrix_WcsftimeSelect0[] =
3921        "#if _NO_XOPEN5\n\
3922 (extern size_t[ \t]+wcsftime.*const char *.*)";
3924 #define    IRIX_WCSFTIME_TEST_CT  1
3925 static tTestDesc aIrix_WcsftimeTests[] = {
3926   { TT_EGREP,    zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
3929  *  Fix Command Arguments for Irix_Wcsftime
3930  */
3931 static const char* apzIrix_WcsftimePatch[] = {
3932     "format",
3933     "#if _NO_XOPEN5 && !defined(__c99)\n\
3934 %1",
3935     (char*)NULL };
3937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3939  *  Description of Isc_Fmod fix
3940  */
3941 tSCC zIsc_FmodName[] =
3942      "isc_fmod";
3945  *  File name selection pattern
3946  */
3947 tSCC zIsc_FmodList[] =
3948   "math.h\0";
3950  *  Machine/OS name selection pattern
3951  */
3952 #define apzIsc_FmodMachs (const char**)NULL
3955  *  content selection pattern - do fix if pattern found
3956  */
3957 tSCC zIsc_FmodSelect0[] =
3958        "fmod\\(double\\)";
3960 #define    ISC_FMOD_TEST_CT  1
3961 static tTestDesc aIsc_FmodTests[] = {
3962   { TT_EGREP,    zIsc_FmodSelect0, (regex_t*)NULL }, };
3965  *  Fix Command Arguments for Isc_Fmod
3966  */
3967 static const char* apzIsc_FmodPatch[] = {
3968     "format",
3969     "fmod(double, double)",
3970     (char*)NULL };
3972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3974  *  Description of Isc_Omits_With_Stdc fix
3975  */
3976 tSCC zIsc_Omits_With_StdcName[] =
3977      "isc_omits_with_stdc";
3980  *  File name selection pattern
3981  */
3982 tSCC zIsc_Omits_With_StdcList[] =
3983   "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
3985  *  Machine/OS name selection pattern
3986  */
3987 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
3990  *  content selection pattern - do fix if pattern found
3991  */
3992 tSCC zIsc_Omits_With_StdcSelect0[] =
3993        "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
3995 #define    ISC_OMITS_WITH_STDC_TEST_CT  1
3996 static tTestDesc aIsc_Omits_With_StdcTests[] = {
3997   { TT_EGREP,    zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4000  *  Fix Command Arguments for Isc_Omits_With_Stdc
4001  */
4002 static const char* apzIsc_Omits_With_StdcPatch[] = {
4003     "format",
4004     "!defined(_POSIX_SOURCE)",
4005     (char*)NULL };
4007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4009  *  Description of Kandr_Concat fix
4010  */
4011 tSCC zKandr_ConcatName[] =
4012      "kandr_concat";
4015  *  File name selection pattern
4016  */
4017 tSCC zKandr_ConcatList[] =
4018   "sparc/asm_linkage.h\0sun*/asm_linkage.h\0arm/as_support.h\0arm/mc_type.h\0arm/xcb.h\0dev/chardefmac.h\0dev/ps_irq.h\0dev/screen.h\0dev/scsi.h\0sys/tty.h\0Xm.acorn/XmP.h\0bsd43/bsd43_.h\0";
4020  *  Machine/OS name selection pattern
4021  */
4022 #define apzKandr_ConcatMachs (const char**)NULL
4025  *  content selection pattern - do fix if pattern found
4026  */
4027 tSCC zKandr_ConcatSelect0[] =
4028        "/\\*\\*/";
4030 #define    KANDR_CONCAT_TEST_CT  1
4031 static tTestDesc aKandr_ConcatTests[] = {
4032   { TT_EGREP,    zKandr_ConcatSelect0, (regex_t*)NULL }, };
4035  *  Fix Command Arguments for Kandr_Concat
4036  */
4037 static const char* apzKandr_ConcatPatch[] = {
4038     "format",
4039     "##",
4040     (char*)NULL };
4042 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4044  *  Description of Libc1_G_Va_List fix
4045  */
4046 tSCC zLibc1_G_Va_ListName[] =
4047      "libc1_G_va_list";
4050  *  File name selection pattern
4051  */
4052 tSCC zLibc1_G_Va_ListList[] =
4053   "_G_config.h\0";
4055  *  Machine/OS name selection pattern
4056  */
4057 tSCC* apzLibc1_G_Va_ListMachs[] = {
4058         "*-*-linux*libc1",
4059         (const char*)NULL };
4062  *  content selection pattern - do fix if pattern found
4063  */
4064 tSCC zLibc1_G_Va_ListSelect0[] =
4065        "typedef void \\* _G_va_list;";
4067 #define    LIBC1_G_VA_LIST_TEST_CT  1
4068 static tTestDesc aLibc1_G_Va_ListTests[] = {
4069   { TT_EGREP,    zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
4072  *  Fix Command Arguments for Libc1_G_Va_List
4073  */
4074 static const char* apzLibc1_G_Va_ListPatch[] = {
4075     "format",
4076     "typedef __builtin_va_list _G_va_list;",
4077     (char*)NULL };
4079 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4081  *  Description of Libc1_Ifdefd_Memx fix
4082  */
4083 tSCC zLibc1_Ifdefd_MemxName[] =
4084      "libc1_ifdefd_memx";
4087  *  File name selection pattern
4088  */
4089 tSCC zLibc1_Ifdefd_MemxList[] =
4090   "testing.h\0string.h\0";
4092  *  Machine/OS name selection pattern
4093  */
4094 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
4097  *  content selection pattern - do fix if pattern found
4098  */
4099 tSCC zLibc1_Ifdefd_MemxSelect0[] =
4100        "' is a built-in function for gcc 2\\.x\\. \\*/";
4103  *  content bypass pattern - skip fix if pattern found
4104  */
4105 tSCC zLibc1_Ifdefd_MemxBypass0[] =
4106        "__cplusplus";
4108 #define    LIBC1_IFDEFD_MEMX_TEST_CT  2
4109 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
4110   { TT_NEGREP,   zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
4111   { TT_EGREP,    zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
4114  *  Fix Command Arguments for Libc1_Ifdefd_Memx
4115  */
4116 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
4117     "format",
4118     "%1",
4119     "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
4120 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
4121 (/\\* .* \\*/\n\
4122 extern [a-z_]+ mem.*(\n\
4123 [^#].*)*;)\n\
4124 #endif",
4125     (char*)NULL };
4127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4129  *  Description of Linux_Ia64_Ucontext fix
4130  */
4131 tSCC zLinux_Ia64_UcontextName[] =
4132      "linux_ia64_ucontext";
4135  *  File name selection pattern
4136  */
4137 tSCC zLinux_Ia64_UcontextList[] =
4138   "sys/ucontext.h\0";
4140  *  Machine/OS name selection pattern
4141  */
4142 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4143         "ia64-*-linux*",
4144         (const char*)NULL };
4147  *  content selection pattern - do fix if pattern found
4148  */
4149 tSCC zLinux_Ia64_UcontextSelect0[] =
4150        "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4152 #define    LINUX_IA64_UCONTEXT_TEST_CT  1
4153 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4154   { TT_EGREP,    zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4157  *  Fix Command Arguments for Linux_Ia64_Ucontext
4158  */
4159 static const char* apzLinux_Ia64_UcontextPatch[] = {
4160     "format",
4161     "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4162     (char*)NULL };
4164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4166  *  Description of Lynxos_No_Warning_In_Sys_Time_H fix
4167  */
4168 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4169      "lynxos_no_warning_in_sys_time_h";
4172  *  File name selection pattern
4173  */
4174 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4175   "sys/time.h\0";
4177  *  Machine/OS name selection pattern
4178  */
4179 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4182  *  content selection pattern - do fix if pattern found
4183  */
4184 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4185        "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4187 #define    LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT  1
4188 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4189   { TT_EGREP,    zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4192  *  Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4193  */
4194 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4195     "format",
4196     "",
4197     (char*)NULL };
4199 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4201  *  Description of Lynxos_Missing_Putenv fix
4202  */
4203 tSCC zLynxos_Missing_PutenvName[] =
4204      "lynxos_missing_putenv";
4207  *  File name selection pattern
4208  */
4209 tSCC zLynxos_Missing_PutenvList[] =
4210   "stdlib.h\0";
4212  *  Machine/OS name selection pattern
4213  */
4214 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4215         "*-*-lynxos*",
4216         (const char*)NULL };
4219  *  content selection pattern - do fix if pattern found
4220  */
4221 tSCC zLynxos_Missing_PutenvSelect0[] =
4222        "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4225  *  content bypass pattern - skip fix if pattern found
4226  */
4227 tSCC zLynxos_Missing_PutenvBypass0[] =
4228        "putenv[ \\t]*\\(";
4230 #define    LYNXOS_MISSING_PUTENV_TEST_CT  2
4231 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4232   { TT_NEGREP,   zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4233   { TT_EGREP,    zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4236  *  Fix Command Arguments for Lynxos_Missing_Putenv
4237  */
4238 static const char* apzLynxos_Missing_PutenvPatch[] = {
4239     "format",
4240     "%0\n\
4241 extern int putenv\t\t\t\t_AP((char *));",
4242     "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4243     (char*)NULL };
4245 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4247  *  Description of Machine_Ansi_H_Va_List fix
4248  */
4249 tSCC zMachine_Ansi_H_Va_ListName[] =
4250      "machine_ansi_h_va_list";
4253  *  File name selection pattern
4254  */
4255 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4257  *  Machine/OS name selection pattern
4258  */
4259 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4262  *  content selection pattern - do fix if pattern found
4263  */
4264 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4265        "define[ \t]+_BSD_VA_LIST_[ \t]";
4268  *  content bypass pattern - skip fix if pattern found
4269  */
4270 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4271        "__builtin_va_list";
4273 #define    MACHINE_ANSI_H_VA_LIST_TEST_CT  2
4274 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4275   { TT_NEGREP,   zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4276   { TT_EGREP,    zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4279  *  Fix Command Arguments for Machine_Ansi_H_Va_List
4280  */
4281 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4282     "format",
4283     "%1__builtin_va_list",
4284     "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4285     (char*)NULL };
4287 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4289  *  Description of Machine_Name fix
4290  */
4291 tSCC zMachine_NameName[] =
4292      "machine_name";
4295  *  File name selection pattern
4296  */
4297 #define zMachine_NameList (char*)NULL
4299  *  Machine/OS name selection pattern
4300  */
4301 #define apzMachine_NameMachs (const char**)NULL
4304  *  perform the C function call test
4305  */
4306 tSCC zMachine_NameFTst0[] = "machine_name";
4308 #define    MACHINE_NAME_TEST_CT  1
4309 static tTestDesc aMachine_NameTests[] = {
4310   { TT_FUNCTION, zMachine_NameFTst0,   0 /* unused */ }, };
4313  *  Fix Command Arguments for Machine_Name
4314  */
4315 static const char* apzMachine_NamePatch[] = {
4316     "machine_name",
4317     (char*)NULL };
4319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4321  *  Description of Math_Exception fix
4322  */
4323 tSCC zMath_ExceptionName[] =
4324      "math_exception";
4327  *  File name selection pattern
4328  */
4329 tSCC zMath_ExceptionList[] =
4330   "math.h\0";
4332  *  Machine/OS name selection pattern
4333  */
4334 #define apzMath_ExceptionMachs (const char**)NULL
4337  *  content selection pattern - do fix if pattern found
4338  */
4339 tSCC zMath_ExceptionSelect0[] =
4340        "struct exception";
4343  *  content bypass pattern - skip fix if pattern found
4344  */
4345 tSCC zMath_ExceptionBypass0[] =
4346        "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4348 #define    MATH_EXCEPTION_TEST_CT  2
4349 static tTestDesc aMath_ExceptionTests[] = {
4350   { TT_NEGREP,   zMath_ExceptionBypass0, (regex_t*)NULL },
4351   { TT_EGREP,    zMath_ExceptionSelect0, (regex_t*)NULL }, };
4354  *  Fix Command Arguments for Math_Exception
4355  */
4356 static const char* apzMath_ExceptionPatch[] = {
4357     "wrap",
4358     "#ifdef __cplusplus\n\
4359 #define exception __math_exception\n\
4360 #endif\n",
4361     "#ifdef __cplusplus\n\
4362 #undef exception\n\
4363 #endif\n",
4364     (char*)NULL };
4366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4368  *  Description of Math_Huge_Val_From_Dbl_Max fix
4369  */
4370 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4371      "math_huge_val_from_dbl_max";
4374  *  File name selection pattern
4375  */
4376 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4377   "math.h\0";
4379  *  Machine/OS name selection pattern
4380  */
4381 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4384  *  content selection pattern - do fix if pattern found
4385  */
4386 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4387        "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4390  *  content bypass pattern - skip fix if pattern found
4391  */
4392 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4393        "define[ \t]+DBL_MAX";
4395 #define    MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT  2
4396 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4397   { TT_NEGREP,   zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4398   { TT_EGREP,    zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4401  *  Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4402  */
4403 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4404     "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4405 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4406 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4407 \telse cat\n\
4408 \tfi",
4409     (char*)NULL };
4411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4413  *  Description of Nested_Auth_Des fix
4414  */
4415 tSCC zNested_Auth_DesName[] =
4416      "nested_auth_des";
4419  *  File name selection pattern
4420  */
4421 tSCC zNested_Auth_DesList[] =
4422   "rpc/rpc.h\0";
4424  *  Machine/OS name selection pattern
4425  */
4426 #define apzNested_Auth_DesMachs (const char**)NULL
4429  *  content selection pattern - do fix if pattern found
4430  */
4431 tSCC zNested_Auth_DesSelect0[] =
4432        "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4434 #define    NESTED_AUTH_DES_TEST_CT  1
4435 static tTestDesc aNested_Auth_DesTests[] = {
4436   { TT_EGREP,    zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4439  *  Fix Command Arguments for Nested_Auth_Des
4440  */
4441 static const char* apzNested_Auth_DesPatch[] = {
4442     "format",
4443     "%1*/ /*",
4444     (char*)NULL };
4446 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4448  *  Description of Nested_Motorola fix
4449  */
4450 tSCC zNested_MotorolaName[] =
4451      "nested_motorola";
4454  *  File name selection pattern
4455  */
4456 tSCC zNested_MotorolaList[] =
4457   "sys/limits.h\0limits.h\0";
4459  *  Machine/OS name selection pattern
4460  */
4461 tSCC* apzNested_MotorolaMachs[] = {
4462         "m68k-motorola-sysv*",
4463         (const char*)NULL };
4466  *  content selection pattern - do fix if pattern found
4467  */
4468 tSCC zNested_MotorolaSelect0[] =
4469        "max # bytes atomic in write|error value returned by Math lib";
4471 #define    NESTED_MOTOROLA_TEST_CT  1
4472 static tTestDesc aNested_MotorolaTests[] = {
4473   { TT_EGREP,    zNested_MotorolaSelect0, (regex_t*)NULL }, };
4476  *  Fix Command Arguments for Nested_Motorola
4477  */
4478 static const char* apzNested_MotorolaPatch[] = { "sed",
4479     "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
4480     "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
4481     (char*)NULL };
4483 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4485  *  Description of Nested_Sys_Limits fix
4486  */
4487 tSCC zNested_Sys_LimitsName[] =
4488      "nested_sys_limits";
4491  *  File name selection pattern
4492  */
4493 tSCC zNested_Sys_LimitsList[] =
4494   "sys/limits.h\0";
4496  *  Machine/OS name selection pattern
4497  */
4498 #define apzNested_Sys_LimitsMachs (const char**)NULL
4501  *  content selection pattern - do fix if pattern found
4502  */
4503 tSCC zNested_Sys_LimitsSelect0[] =
4504        "CHILD_MAX";
4506 #define    NESTED_SYS_LIMITS_TEST_CT  1
4507 static tTestDesc aNested_Sys_LimitsTests[] = {
4508   { TT_EGREP,    zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4511  *  Fix Command Arguments for Nested_Sys_Limits
4512  */
4513 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
4514     "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4515     "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4516     (char*)NULL };
4518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4520  *  Description of Netbsd_Extra_Semicolon fix
4521  */
4522 tSCC zNetbsd_Extra_SemicolonName[] =
4523      "netbsd_extra_semicolon";
4526  *  File name selection pattern
4527  */
4528 tSCC zNetbsd_Extra_SemicolonList[] =
4529   "sys/cdefs.h\0";
4531  *  Machine/OS name selection pattern
4532  */
4533 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4534         "*-*-netbsd*",
4535         (const char*)NULL };
4538  *  content selection pattern - do fix if pattern found
4539  */
4540 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4541        "#define[ \t]*__END_DECLS[ \t]*};";
4543 #define    NETBSD_EXTRA_SEMICOLON_TEST_CT  1
4544 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4545   { TT_EGREP,    zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4548  *  Fix Command Arguments for Netbsd_Extra_Semicolon
4549  */
4550 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4551     "format",
4552     "#define __END_DECLS }",
4553     (char*)NULL };
4555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4557  *  Description of Next_Math_Prefix fix
4558  */
4559 tSCC zNext_Math_PrefixName[] =
4560      "next_math_prefix";
4563  *  File name selection pattern
4564  */
4565 tSCC zNext_Math_PrefixList[] =
4566   "ansi/math.h\0";
4568  *  Machine/OS name selection pattern
4569  */
4570 #define apzNext_Math_PrefixMachs (const char**)NULL
4573  *  content selection pattern - do fix if pattern found
4574  */
4575 tSCC zNext_Math_PrefixSelect0[] =
4576        "^extern[ \t]+double[ \t]+__const__[ \t]";
4578 #define    NEXT_MATH_PREFIX_TEST_CT  1
4579 static tTestDesc aNext_Math_PrefixTests[] = {
4580   { TT_EGREP,    zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4583  *  Fix Command Arguments for Next_Math_Prefix
4584  */
4585 static const char* apzNext_Math_PrefixPatch[] = {
4586     "format",
4587     "extern double %1(",
4588     "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4589     (char*)NULL };
4591 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4593  *  Description of Next_Template fix
4594  */
4595 tSCC zNext_TemplateName[] =
4596      "next_template";
4599  *  File name selection pattern
4600  */
4601 tSCC zNext_TemplateList[] =
4602   "bsd/libc.h\0";
4604  *  Machine/OS name selection pattern
4605  */
4606 #define apzNext_TemplateMachs (const char**)NULL
4609  *  content selection pattern - do fix if pattern found
4610  */
4611 tSCC zNext_TemplateSelect0[] =
4612        "[ \t]template\\)";
4614 #define    NEXT_TEMPLATE_TEST_CT  1
4615 static tTestDesc aNext_TemplateTests[] = {
4616   { TT_EGREP,    zNext_TemplateSelect0, (regex_t*)NULL }, };
4619  *  Fix Command Arguments for Next_Template
4620  */
4621 static const char* apzNext_TemplatePatch[] = {
4622     "format",
4623     "(%1)",
4624     "\\(([^)]*)[ \t]template\\)",
4625     (char*)NULL };
4627 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4629  *  Description of Next_Volitile fix
4630  */
4631 tSCC zNext_VolitileName[] =
4632      "next_volitile";
4635  *  File name selection pattern
4636  */
4637 tSCC zNext_VolitileList[] =
4638   "ansi/stdlib.h\0";
4640  *  Machine/OS name selection pattern
4641  */
4642 #define apzNext_VolitileMachs (const char**)NULL
4645  *  content selection pattern - do fix if pattern found
4646  */
4647 tSCC zNext_VolitileSelect0[] =
4648        "^extern[ \t]+volatile[ \t]+void[ \t]";
4650 #define    NEXT_VOLITILE_TEST_CT  1
4651 static tTestDesc aNext_VolitileTests[] = {
4652   { TT_EGREP,    zNext_VolitileSelect0, (regex_t*)NULL }, };
4655  *  Fix Command Arguments for Next_Volitile
4656  */
4657 static const char* apzNext_VolitilePatch[] = {
4658     "format",
4659     "extern void %1(",
4660     "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
4661     (char*)NULL };
4663 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4665  *  Description of Next_Wait_Union fix
4666  */
4667 tSCC zNext_Wait_UnionName[] =
4668      "next_wait_union";
4671  *  File name selection pattern
4672  */
4673 tSCC zNext_Wait_UnionList[] =
4674   "sys/wait.h\0";
4676  *  Machine/OS name selection pattern
4677  */
4678 #define apzNext_Wait_UnionMachs (const char**)NULL
4681  *  content selection pattern - do fix if pattern found
4682  */
4683 tSCC zNext_Wait_UnionSelect0[] =
4684        "wait\\(union wait";
4686 #define    NEXT_WAIT_UNION_TEST_CT  1
4687 static tTestDesc aNext_Wait_UnionTests[] = {
4688   { TT_EGREP,    zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
4691  *  Fix Command Arguments for Next_Wait_Union
4692  */
4693 static const char* apzNext_Wait_UnionPatch[] = {
4694     "format",
4695     "wait(void",
4696     (char*)NULL };
4698 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4700  *  Description of Nodeent_Syntax fix
4701  */
4702 tSCC zNodeent_SyntaxName[] =
4703      "nodeent_syntax";
4706  *  File name selection pattern
4707  */
4708 tSCC zNodeent_SyntaxList[] =
4709   "netdnet/dnetdb.h\0";
4711  *  Machine/OS name selection pattern
4712  */
4713 #define apzNodeent_SyntaxMachs (const char**)NULL
4716  *  content selection pattern - do fix if pattern found
4717  */
4718 tSCC zNodeent_SyntaxSelect0[] =
4719        "char[ \t]*\\*na_addr[ \t]*$";
4721 #define    NODEENT_SYNTAX_TEST_CT  1
4722 static tTestDesc aNodeent_SyntaxTests[] = {
4723   { TT_EGREP,    zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
4726  *  Fix Command Arguments for Nodeent_Syntax
4727  */
4728 static const char* apzNodeent_SyntaxPatch[] = {
4729     "format",
4730     "%0;",
4731     (char*)NULL };
4733 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4735  *  Description of Obstack_Lvalue_Cast fix
4736  */
4737 tSCC zObstack_Lvalue_CastName[] =
4738      "obstack_lvalue_cast";
4741  *  File name selection pattern
4742  */
4743 tSCC zObstack_Lvalue_CastList[] =
4744   "obstack.h\0";
4746  *  Machine/OS name selection pattern
4747  */
4748 #define apzObstack_Lvalue_CastMachs (const char**)NULL
4751  *  content selection pattern - do fix if pattern found
4752  */
4753 tSCC zObstack_Lvalue_CastSelect0[] =
4754        "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
4756 #define    OBSTACK_LVALUE_CAST_TEST_CT  1
4757 static tTestDesc aObstack_Lvalue_CastTests[] = {
4758   { TT_EGREP,    zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
4761  *  Fix Command Arguments for Obstack_Lvalue_Cast
4762  */
4763 static const char* apzObstack_Lvalue_CastPatch[] = {
4764     "format",
4765     "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
4766     (char*)NULL };
4768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4770  *  Description of Osf_Namespace_A fix
4771  */
4772 tSCC zOsf_Namespace_AName[] =
4773      "osf_namespace_a";
4776  *  File name selection pattern
4777  */
4778 tSCC zOsf_Namespace_AList[] =
4779   "reg_types.h\0sys/lc_core.h\0";
4781  *  Machine/OS name selection pattern
4782  */
4783 #define apzOsf_Namespace_AMachs (const char**)NULL
4786  *  perform the 'test' shell command - do fix on success
4787  */
4788 tSCC zOsf_Namespace_ATest0[] =
4789        " -r reg_types.h";
4790 tSCC zOsf_Namespace_ATest1[] =
4791        " -r sys/lc_core.h";
4792 tSCC zOsf_Namespace_ATest2[] =
4793        " -n \"`grep '} regex_t;' reg_types.h`\"";
4794 tSCC zOsf_Namespace_ATest3[] =
4795        " -z \"`grep __regex_t regex.h`\"";
4797 #define    OSF_NAMESPACE_A_TEST_CT  4
4798 static tTestDesc aOsf_Namespace_ATests[] = {
4799   { TT_TEST,     zOsf_Namespace_ATest0,   0 /* unused */ },
4800   { TT_TEST,     zOsf_Namespace_ATest1,   0 /* unused */ },
4801   { TT_TEST,     zOsf_Namespace_ATest2,   0 /* unused */ },
4802   { TT_TEST,     zOsf_Namespace_ATest3,   0 /* unused */ }, };
4805  *  Fix Command Arguments for Osf_Namespace_A
4806  */
4807 static const char* apzOsf_Namespace_APatch[] = {
4808     "format",
4809     "__%0",
4810     "reg(ex|off|match)_t",
4811     (char*)NULL };
4813 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4815  *  Description of Osf_Namespace_C fix
4816  */
4817 tSCC zOsf_Namespace_CName[] =
4818      "osf_namespace_c";
4821  *  File name selection pattern
4822  */
4823 tSCC zOsf_Namespace_CList[] =
4824   "regex.h\0";
4826  *  Machine/OS name selection pattern
4827  */
4828 #define apzOsf_Namespace_CMachs (const char**)NULL
4831  *  content selection pattern - do fix if pattern found
4832  */
4833 tSCC zOsf_Namespace_CSelect0[] =
4834        "#include <reg_types.h>.*";
4837  *  perform the 'test' shell command - do fix on success
4838  */
4839 tSCC zOsf_Namespace_CTest0[] =
4840        " -r reg_types.h";
4841 tSCC zOsf_Namespace_CTest1[] =
4842        " -r sys/lc_core.h";
4843 tSCC zOsf_Namespace_CTest2[] =
4844        " -n \"`grep '} regex_t;' reg_types.h`\"";
4845 tSCC zOsf_Namespace_CTest3[] =
4846        " -z \"`grep __regex_t regex.h`\"";
4848 #define    OSF_NAMESPACE_C_TEST_CT  5
4849 static tTestDesc aOsf_Namespace_CTests[] = {
4850   { TT_TEST,     zOsf_Namespace_CTest0,   0 /* unused */ },
4851   { TT_TEST,     zOsf_Namespace_CTest1,   0 /* unused */ },
4852   { TT_TEST,     zOsf_Namespace_CTest2,   0 /* unused */ },
4853   { TT_TEST,     zOsf_Namespace_CTest3,   0 /* unused */ },
4854   { TT_EGREP,    zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
4857  *  Fix Command Arguments for Osf_Namespace_C
4858  */
4859 static const char* apzOsf_Namespace_CPatch[] = {
4860     "format",
4861     "%0\n\
4862 typedef __regex_t\tregex_t;\n\
4863 typedef __regoff_t\tregoff_t;\n\
4864 typedef __regmatch_t\tregmatch_t;",
4865     (char*)NULL };
4867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4869  *  Description of Pthread_Page_Size fix
4870  */
4871 tSCC zPthread_Page_SizeName[] =
4872      "pthread_page_size";
4875  *  File name selection pattern
4876  */
4877 tSCC zPthread_Page_SizeList[] =
4878   "pthread.h\0";
4880  *  Machine/OS name selection pattern
4881  */
4882 #define apzPthread_Page_SizeMachs (const char**)NULL
4885  *  content selection pattern - do fix if pattern found
4886  */
4887 tSCC zPthread_Page_SizeSelect0[] =
4888        "^int __page_size";
4890 #define    PTHREAD_PAGE_SIZE_TEST_CT  1
4891 static tTestDesc aPthread_Page_SizeTests[] = {
4892   { TT_EGREP,    zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
4895  *  Fix Command Arguments for Pthread_Page_Size
4896  */
4897 static const char* apzPthread_Page_SizePatch[] = {
4898     "format",
4899     "extern %0",
4900     (char*)NULL };
4902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4904  *  Description of Pthread_Incomplete_Struct_Argument fix
4905  */
4906 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
4907      "pthread_incomplete_struct_argument";
4910  *  File name selection pattern
4911  */
4912 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
4913   "pthread.h\0";
4915  *  Machine/OS name selection pattern
4916  */
4917 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
4920  *  content selection pattern - do fix if pattern found
4921  */
4922 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
4923        "struct __jmp_buf_tag";
4925 #define    PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT  1
4926 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
4927   { TT_EGREP,    zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
4930  *  Fix Command Arguments for Pthread_Incomplete_Struct_Argument
4931  */
4932 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
4933     "format",
4934     "%1 *%2%3",
4935     "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
4936     (char*)NULL };
4938 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4940  *  Description of Read_Ret_Type fix
4941  */
4942 tSCC zRead_Ret_TypeName[] =
4943      "read_ret_type";
4946  *  File name selection pattern
4947  */
4948 tSCC zRead_Ret_TypeList[] =
4949   "stdio.h\0";
4951  *  Machine/OS name selection pattern
4952  */
4953 #define apzRead_Ret_TypeMachs (const char**)NULL
4956  *  content selection pattern - do fix if pattern found
4957  */
4958 tSCC zRead_Ret_TypeSelect0[] =
4959        "extern int\t.*, fread\\(\\), fwrite\\(\\)";
4961 #define    READ_RET_TYPE_TEST_CT  1
4962 static tTestDesc aRead_Ret_TypeTests[] = {
4963   { TT_EGREP,    zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
4966  *  Fix Command Arguments for Read_Ret_Type
4967  */
4968 static const char* apzRead_Ret_TypePatch[] = {
4969     "format",
4970     "extern unsigned int fread(), fwrite();\n\
4971 %1%2",
4972     "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
4973     (char*)NULL };
4975 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4977  *  Description of Rpc_Xdr_Lvalue_Cast_A fix
4978  */
4979 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
4980      "rpc_xdr_lvalue_cast_a";
4983  *  File name selection pattern
4984  */
4985 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
4986   "rpc/xdr.h\0";
4988  *  Machine/OS name selection pattern
4989  */
4990 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
4993  *  content selection pattern - do fix if pattern found
4994  */
4995 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
4996        "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
4997 .*__extension__.*";
4999 #define    RPC_XDR_LVALUE_CAST_A_TEST_CT  1
5000 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5001   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5004  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5005  */
5006 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5007     "format",
5008     "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5009     (char*)NULL };
5011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5013  *  Description of Rpc_Xdr_Lvalue_Cast_B fix
5014  */
5015 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5016      "rpc_xdr_lvalue_cast_b";
5019  *  File name selection pattern
5020  */
5021 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5022   "rpc/xdr.h\0";
5024  *  Machine/OS name selection pattern
5025  */
5026 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5029  *  content selection pattern - do fix if pattern found
5030  */
5031 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5032        "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5033 .*__extension__.*";
5035 #define    RPC_XDR_LVALUE_CAST_B_TEST_CT  1
5036 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5037   { TT_EGREP,    zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5040  *  Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5041  */
5042 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5043     "format",
5044     "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5045     (char*)NULL };
5047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5049  *  Description of Rs6000_Double fix
5050  */
5051 tSCC zRs6000_DoubleName[] =
5052      "rs6000_double";
5055  *  File name selection pattern
5056  */
5057 tSCC zRs6000_DoubleList[] =
5058   "math.h\0";
5060  *  Machine/OS name selection pattern
5061  */
5062 #define apzRs6000_DoubleMachs (const char**)NULL
5065  *  content selection pattern - do fix if pattern found
5066  */
5067 tSCC zRs6000_DoubleSelect0[] =
5068        "[^a-zA-Z_]class\\(";
5070 #define    RS6000_DOUBLE_TEST_CT  1
5071 static tTestDesc aRs6000_DoubleTests[] = {
5072   { TT_EGREP,    zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5075  *  Fix Command Arguments for Rs6000_Double
5076  */
5077 static const char* apzRs6000_DoublePatch[] = {
5078     "format",
5079     "#ifndef __cplusplus\n\
5080 %0\n\
5081 #endif",
5082     "^.*[^a-zA-Z_]class\\(.*",
5083     (char*)NULL };
5085 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5087  *  Description of Rs6000_Fchmod fix
5088  */
5089 tSCC zRs6000_FchmodName[] =
5090      "rs6000_fchmod";
5093  *  File name selection pattern
5094  */
5095 tSCC zRs6000_FchmodList[] =
5096   "sys/stat.h\0";
5098  *  Machine/OS name selection pattern
5099  */
5100 #define apzRs6000_FchmodMachs (const char**)NULL
5103  *  content selection pattern - do fix if pattern found
5104  */
5105 tSCC zRs6000_FchmodSelect0[] =
5106        "fchmod\\(char \\*";
5108 #define    RS6000_FCHMOD_TEST_CT  1
5109 static tTestDesc aRs6000_FchmodTests[] = {
5110   { TT_EGREP,    zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5113  *  Fix Command Arguments for Rs6000_Fchmod
5114  */
5115 static const char* apzRs6000_FchmodPatch[] = {
5116     "format",
5117     "fchmod(int",
5118     (char*)NULL };
5120 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5122  *  Description of Rs6000_Param fix
5123  */
5124 tSCC zRs6000_ParamName[] =
5125      "rs6000_param";
5128  *  File name selection pattern
5129  */
5130 tSCC zRs6000_ParamList[] =
5131   "stdio.h\0unistd.h\0";
5133  *  Machine/OS name selection pattern
5134  */
5135 #define apzRs6000_ParamMachs (const char**)NULL
5138  *  content selection pattern - do fix if pattern found
5139  */
5140 tSCC zRs6000_ParamSelect0[] =
5141        "rename\\(const char \\*old, const char \\*new\\)";
5143 #define    RS6000_PARAM_TEST_CT  1
5144 static tTestDesc aRs6000_ParamTests[] = {
5145   { TT_EGREP,    zRs6000_ParamSelect0, (regex_t*)NULL }, };
5148  *  Fix Command Arguments for Rs6000_Param
5149  */
5150 static const char* apzRs6000_ParamPatch[] = {
5151     "format",
5152     "rename(const char *_old, const char *_new)",
5153     (char*)NULL };
5155 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5157  *  Description of Sco_Math fix
5158  */
5159 tSCC zSco_MathName[] =
5160      "sco_math";
5163  *  File name selection pattern
5164  */
5165 tSCC zSco_MathList[] =
5166   "math.h\0*/math.h\0";
5168  *  Machine/OS name selection pattern
5169  */
5170 #define apzSco_MathMachs (const char**)NULL
5173  *  content selection pattern - do fix if pattern found
5174  */
5175 tSCC zSco_MathSelect0[] =
5176        "inline double abs";
5179  *  content bypass pattern - skip fix if pattern found
5180  */
5181 tSCC zSco_MathBypass0[] =
5182        "__GNUG__";
5184 #define    SCO_MATH_TEST_CT  2
5185 static tTestDesc aSco_MathTests[] = {
5186   { TT_NEGREP,   zSco_MathBypass0, (regex_t*)NULL },
5187   { TT_EGREP,    zSco_MathSelect0, (regex_t*)NULL }, };
5190  *  Fix Command Arguments for Sco_Math
5191  */
5192 static const char* apzSco_MathPatch[] = { "sed",
5193     "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5194 #ifndef __GNUC__\n",
5195     "-e", "/.*__builtin_generic/a\\\n\
5196 #else\\\n\
5197 #define __fp_class(a) \\\\\\\n\
5198   __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5199    __fpclassifyl(a), \\\\\\\n\
5200     __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5201       __fpclassifyf(a),__fpclassify(a)))\\\n\
5202 #endif",
5203     "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5204 #ifndef __GNUC__\n",
5205     "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5206 #endif /* ! __GNUC__ */",
5207     (char*)NULL };
5209 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5211  *  Description of Sco_Regset fix
5212  */
5213 tSCC zSco_RegsetName[] =
5214      "sco_regset";
5217  *  File name selection pattern
5218  */
5219 tSCC zSco_RegsetList[] =
5220   "sys/regset.h\0";
5222  *  Machine/OS name selection pattern
5223  */
5224 tSCC* apzSco_RegsetMachs[] = {
5225         "*-*-sco3.2v5*",
5226         (const char*)NULL };
5229  *  content selection pattern - do fix if pattern found
5230  */
5231 tSCC zSco_RegsetSelect0[] =
5232        "(struct[ \t]+.*)fpstate";
5234 #define    SCO_REGSET_TEST_CT  1
5235 static tTestDesc aSco_RegsetTests[] = {
5236   { TT_EGREP,    zSco_RegsetSelect0, (regex_t*)NULL }, };
5239  *  Fix Command Arguments for Sco_Regset
5240  */
5241 static const char* apzSco_RegsetPatch[] = {
5242     "format",
5243     "%1rsfpstate",
5244     (char*)NULL };
5246 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5248  *  Description of Sco_Static_Func fix
5249  */
5250 tSCC zSco_Static_FuncName[] =
5251      "sco_static_func";
5254  *  File name selection pattern
5255  */
5256 tSCC zSco_Static_FuncList[] =
5257   "sys/stat.h\0";
5259  *  Machine/OS name selection pattern
5260  */
5261 tSCC* apzSco_Static_FuncMachs[] = {
5262         "i?86-*-sco3.2*",
5263         (const char*)NULL };
5266  *  content selection pattern - do fix if pattern found
5267  */
5268 tSCC zSco_Static_FuncSelect0[] =
5269        "^static int";
5271 #define    SCO_STATIC_FUNC_TEST_CT  1
5272 static tTestDesc aSco_Static_FuncTests[] = {
5273   { TT_EGREP,    zSco_Static_FuncSelect0, (regex_t*)NULL }, };
5276  *  Fix Command Arguments for Sco_Static_Func
5277  */
5278 static const char* apzSco_Static_FuncPatch[] = { "sed",
5279     "-e", "/^static int/i\\\n\
5280 #if __cplusplus\\\n\
5281 extern \"C\" {\\\n\
5282 #endif /* __cplusplus */",
5283     "-e", "/^}$/a\\\n\
5284 #if __cplusplus\\\n\
5285  }\\\n\
5286 #endif /* __cplusplus */",
5287     (char*)NULL };
5289 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5291  *  Description of Sco_Utime fix
5292  */
5293 tSCC zSco_UtimeName[] =
5294      "sco_utime";
5297  *  File name selection pattern
5298  */
5299 tSCC zSco_UtimeList[] =
5300   "sys/times.h\0";
5302  *  Machine/OS name selection pattern
5303  */
5304 tSCC* apzSco_UtimeMachs[] = {
5305         "i?86-*-sco3.2v4*",
5306         (const char*)NULL };
5309  *  content selection pattern - do fix if pattern found
5310  */
5311 tSCC zSco_UtimeSelect0[] =
5312        "\\(const char \\*, struct utimbuf \\*\\);";
5314 #define    SCO_UTIME_TEST_CT  1
5315 static tTestDesc aSco_UtimeTests[] = {
5316   { TT_EGREP,    zSco_UtimeSelect0, (regex_t*)NULL }, };
5319  *  Fix Command Arguments for Sco_Utime
5320  */
5321 static const char* apzSco_UtimePatch[] = {
5322     "format",
5323     "(const char *, const struct utimbuf *);",
5324     (char*)NULL };
5326 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5328  *  Description of Solaris_Math_1 fix
5329  */
5330 tSCC zSolaris_Math_1Name[] =
5331      "solaris_math_1";
5334  *  File name selection pattern
5335  */
5336 tSCC zSolaris_Math_1List[] =
5337   "iso/math_c99.h\0";
5339  *  Machine/OS name selection pattern
5340  */
5341 #define apzSolaris_Math_1Machs (const char**)NULL
5344  *  content selection pattern - do fix if pattern found
5345  */
5346 tSCC zSolaris_Math_1Select0[] =
5347        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5350  *  content bypass pattern - skip fix if pattern found
5351  */
5352 tSCC zSolaris_Math_1Bypass0[] =
5353        "__GNUC__";
5355 #define    SOLARIS_MATH_1_TEST_CT  2
5356 static tTestDesc aSolaris_Math_1Tests[] = {
5357   { TT_NEGREP,   zSolaris_Math_1Bypass0, (regex_t*)NULL },
5358   { TT_EGREP,    zSolaris_Math_1Select0, (regex_t*)NULL }, };
5361  *  Fix Command Arguments for Solaris_Math_1
5362  */
5363 static const char* apzSolaris_Math_1Patch[] = {
5364     "format",
5365     "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5366     "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5367     (char*)NULL };
5369 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5371  *  Description of Solaris_Math_2 fix
5372  */
5373 tSCC zSolaris_Math_2Name[] =
5374      "solaris_math_2";
5377  *  File name selection pattern
5378  */
5379 tSCC zSolaris_Math_2List[] =
5380   "iso/math_c99.h\0";
5382  *  Machine/OS name selection pattern
5383  */
5384 #define apzSolaris_Math_2Machs (const char**)NULL
5387  *  content selection pattern - do fix if pattern found
5388  */
5389 tSCC zSolaris_Math_2Select0[] =
5390        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5393  *  content bypass pattern - skip fix if pattern found
5394  */
5395 tSCC zSolaris_Math_2Bypass0[] =
5396        "__GNUC__";
5398 #define    SOLARIS_MATH_2_TEST_CT  2
5399 static tTestDesc aSolaris_Math_2Tests[] = {
5400   { TT_NEGREP,   zSolaris_Math_2Bypass0, (regex_t*)NULL },
5401   { TT_EGREP,    zSolaris_Math_2Select0, (regex_t*)NULL }, };
5404  *  Fix Command Arguments for Solaris_Math_2
5405  */
5406 static const char* apzSolaris_Math_2Patch[] = {
5407     "format",
5408     "#define\tINFINITY\t(__builtin_inff())",
5409     "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5410     (char*)NULL };
5412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5414  *  Description of Solaris_Math_3 fix
5415  */
5416 tSCC zSolaris_Math_3Name[] =
5417      "solaris_math_3";
5420  *  File name selection pattern
5421  */
5422 tSCC zSolaris_Math_3List[] =
5423   "iso/math_c99.h\0";
5425  *  Machine/OS name selection pattern
5426  */
5427 #define apzSolaris_Math_3Machs (const char**)NULL
5430  *  content selection pattern - do fix if pattern found
5431  */
5432 tSCC zSolaris_Math_3Select0[] =
5433        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5436  *  content bypass pattern - skip fix if pattern found
5437  */
5438 tSCC zSolaris_Math_3Bypass0[] =
5439        "__GNUC__";
5441 #define    SOLARIS_MATH_3_TEST_CT  2
5442 static tTestDesc aSolaris_Math_3Tests[] = {
5443   { TT_NEGREP,   zSolaris_Math_3Bypass0, (regex_t*)NULL },
5444   { TT_EGREP,    zSolaris_Math_3Select0, (regex_t*)NULL }, };
5447  *  Fix Command Arguments for Solaris_Math_3
5448  */
5449 static const char* apzSolaris_Math_3Patch[] = {
5450     "format",
5451     "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5452     "^#define[ \t]+NAN[ \t]+__builtin_nan",
5453     (char*)NULL };
5455 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5457  *  Description of Solaris_Math_4 fix
5458  */
5459 tSCC zSolaris_Math_4Name[] =
5460      "solaris_math_4";
5463  *  File name selection pattern
5464  */
5465 tSCC zSolaris_Math_4List[] =
5466   "iso/math_c99.h\0";
5468  *  Machine/OS name selection pattern
5469  */
5470 #define apzSolaris_Math_4Machs (const char**)NULL
5473  *  content selection pattern - do fix if pattern found
5474  */
5475 tSCC zSolaris_Math_4Select0[] =
5476        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5479  *  content bypass pattern - skip fix if pattern found
5480  */
5481 tSCC zSolaris_Math_4Bypass0[] =
5482        "__GNUC__";
5484 #define    SOLARIS_MATH_4_TEST_CT  2
5485 static tTestDesc aSolaris_Math_4Tests[] = {
5486   { TT_NEGREP,   zSolaris_Math_4Bypass0, (regex_t*)NULL },
5487   { TT_EGREP,    zSolaris_Math_4Select0, (regex_t*)NULL }, };
5490  *  Fix Command Arguments for Solaris_Math_4
5491  */
5492 static const char* apzSolaris_Math_4Patch[] = {
5493     "format",
5494     "#define\tfpclassify(x) \\\n\
5495   __extension__ ({ __typeof(x) __x_fp = (x); \\\n\
5496 \t\t   isnan(__x_fp) \\\n\
5497 \t\t     ? FP_NAN \\\n\
5498 \t\t     : isinf(__x_fp) \\\n\
5499 \t\t       ? FP_INFINITE \\\n\
5500 \t\t       : isnormal(__x_fp) \\\n\
5501 \t\t\t ? FP_NORMAL \\\n\
5502 \t\t\t : __x_fp == 0.0 \\\n\
5503 \t\t\t   ? FP_ZERO \\\n\
5504 \t\t\t   : FP_SUBNORMAL; })",
5505     "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5506     (char*)NULL };
5508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5510  *  Description of Solaris_Math_5 fix
5511  */
5512 tSCC zSolaris_Math_5Name[] =
5513      "solaris_math_5";
5516  *  File name selection pattern
5517  */
5518 tSCC zSolaris_Math_5List[] =
5519   "iso/math_c99.h\0";
5521  *  Machine/OS name selection pattern
5522  */
5523 #define apzSolaris_Math_5Machs (const char**)NULL
5526  *  content selection pattern - do fix if pattern found
5527  */
5528 tSCC zSolaris_Math_5Select0[] =
5529        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5532  *  content bypass pattern - skip fix if pattern found
5533  */
5534 tSCC zSolaris_Math_5Bypass0[] =
5535        "__GNUC__";
5537 #define    SOLARIS_MATH_5_TEST_CT  2
5538 static tTestDesc aSolaris_Math_5Tests[] = {
5539   { TT_NEGREP,   zSolaris_Math_5Bypass0, (regex_t*)NULL },
5540   { TT_EGREP,    zSolaris_Math_5Select0, (regex_t*)NULL }, };
5543  *  Fix Command Arguments for Solaris_Math_5
5544  */
5545 static const char* apzSolaris_Math_5Patch[] = {
5546     "format",
5547     "#define\tisfinite(x) \\\n\
5548   __extension__ ({ __typeof (x) __x_f = (x); \\\n\
5549 \t\t   __builtin_expect(!isnan(__x_f - __x_f), 1); })",
5550     "^#define[ \t]+isfinite\\(x\\)[ \t]+__builtin_isfinite\\(x\\)",
5551     (char*)NULL };
5553 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5555  *  Description of Solaris_Math_6 fix
5556  */
5557 tSCC zSolaris_Math_6Name[] =
5558      "solaris_math_6";
5561  *  File name selection pattern
5562  */
5563 tSCC zSolaris_Math_6List[] =
5564   "iso/math_c99.h\0";
5566  *  Machine/OS name selection pattern
5567  */
5568 #define apzSolaris_Math_6Machs (const char**)NULL
5571  *  content selection pattern - do fix if pattern found
5572  */
5573 tSCC zSolaris_Math_6Select0[] =
5574        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5577  *  content bypass pattern - skip fix if pattern found
5578  */
5579 tSCC zSolaris_Math_6Bypass0[] =
5580        "__GNUC__";
5582 #define    SOLARIS_MATH_6_TEST_CT  2
5583 static tTestDesc aSolaris_Math_6Tests[] = {
5584   { TT_NEGREP,   zSolaris_Math_6Bypass0, (regex_t*)NULL },
5585   { TT_EGREP,    zSolaris_Math_6Select0, (regex_t*)NULL }, };
5588  *  Fix Command Arguments for Solaris_Math_6
5589  */
5590 static const char* apzSolaris_Math_6Patch[] = {
5591     "format",
5592     "#define\tisinf(x) \\\n\
5593   __extension__ ({ __typeof (x) __x_i = (x); \\\n\
5594 \t\t   __builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })",
5595     "^#define[ \t]+isinf\\(x\\)[ \t]+__builtin_isinf\\(x\\)",
5596     (char*)NULL };
5598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5600  *  Description of Solaris_Math_7 fix
5601  */
5602 tSCC zSolaris_Math_7Name[] =
5603      "solaris_math_7";
5606  *  File name selection pattern
5607  */
5608 tSCC zSolaris_Math_7List[] =
5609   "iso/math_c99.h\0";
5611  *  Machine/OS name selection pattern
5612  */
5613 #define apzSolaris_Math_7Machs (const char**)NULL
5616  *  content selection pattern - do fix if pattern found
5617  */
5618 tSCC zSolaris_Math_7Select0[] =
5619        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5622  *  content bypass pattern - skip fix if pattern found
5623  */
5624 tSCC zSolaris_Math_7Bypass0[] =
5625        "__GNUC__";
5627 #define    SOLARIS_MATH_7_TEST_CT  2
5628 static tTestDesc aSolaris_Math_7Tests[] = {
5629   { TT_NEGREP,   zSolaris_Math_7Bypass0, (regex_t*)NULL },
5630   { TT_EGREP,    zSolaris_Math_7Select0, (regex_t*)NULL }, };
5633  *  Fix Command Arguments for Solaris_Math_7
5634  */
5635 static const char* apzSolaris_Math_7Patch[] = {
5636     "format",
5637     "#define\tisnormal(x) \\\n\
5638   __extension__ ({ __typeof(x) __x_n = (x); \\\n\
5639 \t\t   if (__x_n < 0.0) __x_n = -__x_n; \\\n\
5640 \t\t   __builtin_expect(isfinite(__x_n) \\\n\
5641 \t\t\t\t    && (sizeof(__x_n) == sizeof(float) \\\n\
5642 \t\t\t\t\t  ? __x_n >= __FLT_MIN__ \\\n\
5643 \t\t\t\t\t  : sizeof(__x_n) == sizeof(long double) \\\n\
5644 \t\t\t\t\t    ? __x_n >= __LDBL_MIN__ \\\n\
5645 \t\t\t\t\t    : __x_n >= __DBL_MIN__), 1); })",
5646     "^#define[ \t]+isnormal\\(x\\)[ \t]+__builtin_isnormal\\(x\\)",
5647     (char*)NULL };
5649 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5651  *  Description of Solaris_Math_8 fix
5652  */
5653 tSCC zSolaris_Math_8Name[] =
5654      "solaris_math_8";
5657  *  File name selection pattern
5658  */
5659 tSCC zSolaris_Math_8List[] =
5660   "iso/math_c99.h\0";
5662  *  Machine/OS name selection pattern
5663  */
5664 #define apzSolaris_Math_8Machs (const char**)NULL
5667  *  content selection pattern - do fix if pattern found
5668  */
5669 tSCC zSolaris_Math_8Select0[] =
5670        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5673  *  content bypass pattern - skip fix if pattern found
5674  */
5675 tSCC zSolaris_Math_8Bypass0[] =
5676        "__GNUC__";
5678 #define    SOLARIS_MATH_8_TEST_CT  2
5679 static tTestDesc aSolaris_Math_8Tests[] = {
5680   { TT_NEGREP,   zSolaris_Math_8Bypass0, (regex_t*)NULL },
5681   { TT_EGREP,    zSolaris_Math_8Select0, (regex_t*)NULL }, };
5684  *  Fix Command Arguments for Solaris_Math_8
5685  */
5686 static const char* apzSolaris_Math_8Patch[] = {
5687     "format",
5688     "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5689 \t\t\t   ? __builtin_signbitf(x) \\\n\
5690 \t\t\t   : sizeof(x) == sizeof(long double) \\\n\
5691 \t\t\t     ? __builtin_signbitl(x) \\\n\
5692 \t\t\t     : __builtin_signbit(x))",
5693     "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5694     (char*)NULL };
5696 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5698  *  Description of Solaris_Math_9 fix
5699  */
5700 tSCC zSolaris_Math_9Name[] =
5701      "solaris_math_9";
5704  *  File name selection pattern
5705  */
5706 tSCC zSolaris_Math_9List[] =
5707   "iso/math_c99.h\0";
5709  *  Machine/OS name selection pattern
5710  */
5711 #define apzSolaris_Math_9Machs (const char**)NULL
5714  *  content selection pattern - do fix if pattern found
5715  */
5716 tSCC zSolaris_Math_9Select0[] =
5717        "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5720  *  content bypass pattern - skip fix if pattern found
5721  */
5722 tSCC zSolaris_Math_9Bypass0[] =
5723        "__GNUC__";
5725 #define    SOLARIS_MATH_9_TEST_CT  2
5726 static tTestDesc aSolaris_Math_9Tests[] = {
5727   { TT_NEGREP,   zSolaris_Math_9Bypass0, (regex_t*)NULL },
5728   { TT_EGREP,    zSolaris_Math_9Select0, (regex_t*)NULL }, };
5731  *  Fix Command Arguments for Solaris_Math_9
5732  */
5733 static const char* apzSolaris_Math_9Patch[] = {
5734     "format",
5735     "#define\t%1(x, y)%2__builtin_%1(x, y)",
5736     "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5737     (char*)NULL };
5739 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5741  *  Description of Solaris_Mutex_Init_1 fix
5742  */
5743 tSCC zSolaris_Mutex_Init_1Name[] =
5744      "solaris_mutex_init_1";
5747  *  File name selection pattern
5748  */
5749 tSCC zSolaris_Mutex_Init_1List[] =
5750   "pthread.h\0";
5752  *  Machine/OS name selection pattern
5753  */
5754 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
5757  *  content selection pattern - do fix if pattern found
5758  */
5759 tSCC zSolaris_Mutex_Init_1Select0[] =
5760        "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
5762 #define    SOLARIS_MUTEX_INIT_1_TEST_CT  1
5763 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
5764   { TT_EGREP,    zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
5767  *  Fix Command Arguments for Solaris_Mutex_Init_1
5768  */
5769 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
5770     "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
5771 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
5772     (char*)NULL };
5774 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5776  *  Description of Solaris_Mutex_Init_2 fix
5777  */
5778 tSCC zSolaris_Mutex_Init_2Name[] =
5779      "solaris_mutex_init_2";
5782  *  File name selection pattern
5783  */
5784 tSCC zSolaris_Mutex_Init_2List[] =
5785   "pthread.h\0";
5787  *  Machine/OS name selection pattern
5788  */
5789 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
5790         "*-*-solaris2.[0-9]",
5791         "*-*-solaris2.[0-9][!0-9]*",
5792         (const char*)NULL };
5795  *  content selection pattern - do fix if pattern found
5796  */
5797 tSCC zSolaris_Mutex_Init_2Select0[] =
5798        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5800 #define    SOLARIS_MUTEX_INIT_2_TEST_CT  1
5801 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
5802   { TT_EGREP,    zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
5805  *  Fix Command Arguments for Solaris_Mutex_Init_2
5806  */
5807 static const char* apzSolaris_Mutex_Init_2Patch[] = {
5808     "format",
5809     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5810 %0\n\
5811 #else\n\
5812 %1, {0}}%4\n\
5813 #endif",
5814     "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
5815 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
5816     (char*)NULL };
5818 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5820  *  Description of Solaris_Rwlock_Init_1 fix
5821  */
5822 tSCC zSolaris_Rwlock_Init_1Name[] =
5823      "solaris_rwlock_init_1";
5826  *  File name selection pattern
5827  */
5828 tSCC zSolaris_Rwlock_Init_1List[] =
5829   "pthread.h\0";
5831  *  Machine/OS name selection pattern
5832  */
5833 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
5834         "*-*-solaris*",
5835         (const char*)NULL };
5838  *  content selection pattern - do fix if pattern found
5839  */
5840 tSCC zSolaris_Rwlock_Init_1Select0[] =
5841        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5843 #define    SOLARIS_RWLOCK_INIT_1_TEST_CT  1
5844 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
5845   { TT_EGREP,    zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
5848  *  Fix Command Arguments for Solaris_Rwlock_Init_1
5849  */
5850 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
5851     "format",
5852     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5853 %0\n\
5854 #else\n\
5855 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
5856 #endif",
5857     "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
5858     (char*)NULL };
5860 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5862  *  Description of Solaris_Once_Init_1 fix
5863  */
5864 tSCC zSolaris_Once_Init_1Name[] =
5865      "solaris_once_init_1";
5868  *  File name selection pattern
5869  */
5870 tSCC zSolaris_Once_Init_1List[] =
5871   "pthread.h\0";
5873  *  Machine/OS name selection pattern
5874  */
5875 tSCC* apzSolaris_Once_Init_1Machs[] = {
5876         "*-*-solaris*",
5877         (const char*)NULL };
5880  *  content selection pattern - do fix if pattern found
5881  */
5882 tSCC zSolaris_Once_Init_1Select0[] =
5883        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5885 #define    SOLARIS_ONCE_INIT_1_TEST_CT  1
5886 static tTestDesc aSolaris_Once_Init_1Tests[] = {
5887   { TT_EGREP,    zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
5890  *  Fix Command Arguments for Solaris_Once_Init_1
5891  */
5892 static const char* apzSolaris_Once_Init_1Patch[] = {
5893     "format",
5894     "%1{%2}%3",
5895     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
5896     (char*)NULL };
5898 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5900  *  Description of Solaris_Once_Init_2 fix
5901  */
5902 tSCC zSolaris_Once_Init_2Name[] =
5903      "solaris_once_init_2";
5906  *  File name selection pattern
5907  */
5908 tSCC zSolaris_Once_Init_2List[] =
5909   "pthread.h\0";
5911  *  Machine/OS name selection pattern
5912  */
5913 tSCC* apzSolaris_Once_Init_2Machs[] = {
5914         "*-*-solaris2.[0-9]",
5915         "*-*-solaris2.[0-9][!0-9]*",
5916         (const char*)NULL };
5919  *  content selection pattern - do fix if pattern found
5920  */
5921 tSCC zSolaris_Once_Init_2Select0[] =
5922        "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5924 #define    SOLARIS_ONCE_INIT_2_TEST_CT  1
5925 static tTestDesc aSolaris_Once_Init_2Tests[] = {
5926   { TT_EGREP,    zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
5929  *  Fix Command Arguments for Solaris_Once_Init_2
5930  */
5931 static const char* apzSolaris_Once_Init_2Patch[] = {
5932     "format",
5933     "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5934 %0\n\
5935 #else\n\
5936 %1{0}, {0}, {0}, {%3}%4\n\
5937 #endif",
5938     "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
5939     (char*)NULL };
5941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5943  *  Description of Solaris_Socket fix
5944  */
5945 tSCC zSolaris_SocketName[] =
5946      "solaris_socket";
5949  *  File name selection pattern
5950  */
5951 tSCC zSolaris_SocketList[] =
5952   "sys/socket.h\0";
5954  *  Machine/OS name selection pattern
5955  */
5956 #define apzSolaris_SocketMachs (const char**)NULL
5959  *  content selection pattern - do fix if pattern found
5960  */
5961 tSCC zSolaris_SocketSelect0[] =
5962        "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
5964 #define    SOLARIS_SOCKET_TEST_CT  1
5965 static tTestDesc aSolaris_SocketTests[] = {
5966   { TT_EGREP,    zSolaris_SocketSelect0, (regex_t*)NULL }, };
5969  *  Fix Command Arguments for Solaris_Socket
5970  */
5971 static const char* apzSolaris_SocketPatch[] = {
5972     "format",
5973     "extern int %1(int, %2void *, int, int);",
5974     "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
5975     (char*)NULL };
5977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5979  *  Description of Solaris_Stdio_Tag fix
5980  */
5981 tSCC zSolaris_Stdio_TagName[] =
5982      "solaris_stdio_tag";
5985  *  File name selection pattern
5986  */
5987 tSCC zSolaris_Stdio_TagList[] =
5988   "stdio_tag.h\0";
5990  *  Machine/OS name selection pattern
5991  */
5992 #define apzSolaris_Stdio_TagMachs (const char**)NULL
5995  *  content selection pattern - do fix if pattern found
5996  */
5997 tSCC zSolaris_Stdio_TagSelect0[] =
5998        "__cplusplus < 54321L";
6001  *  content bypass pattern - skip fix if pattern found
6002  */
6003 tSCC zSolaris_Stdio_TagBypass0[] =
6004        "__GNUC__";
6006 #define    SOLARIS_STDIO_TAG_TEST_CT  2
6007 static tTestDesc aSolaris_Stdio_TagTests[] = {
6008   { TT_NEGREP,   zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6009   { TT_EGREP,    zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6012  *  Fix Command Arguments for Solaris_Stdio_Tag
6013  */
6014 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
6015     "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6016     (char*)NULL };
6018 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6020  *  Description of Solaris_Unistd fix
6021  */
6022 tSCC zSolaris_UnistdName[] =
6023      "solaris_unistd";
6026  *  File name selection pattern
6027  */
6028 tSCC zSolaris_UnistdList[] =
6029   "unistd.h\0";
6031  *  Machine/OS name selection pattern
6032  */
6033 #define apzSolaris_UnistdMachs (const char**)NULL
6036  *  content selection pattern - do fix if pattern found
6037  */
6038 tSCC zSolaris_UnistdSelect0[] =
6039        "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
6042  *  content bypass pattern - skip fix if pattern found
6043  */
6044 tSCC zSolaris_UnistdBypass0[] =
6045        "getpagesize";
6047 #define    SOLARIS_UNISTD_TEST_CT  2
6048 static tTestDesc aSolaris_UnistdTests[] = {
6049   { TT_NEGREP,   zSolaris_UnistdBypass0, (regex_t*)NULL },
6050   { TT_EGREP,    zSolaris_UnistdSelect0, (regex_t*)NULL }, };
6053  *  Fix Command Arguments for Solaris_Unistd
6054  */
6055 static const char* apzSolaris_UnistdPatch[] = {
6056     "format",
6057     "extern int getpagesize();\n\
6058 %0",
6059     "^extern (pid_t|int) getpgid\\(.*\\);",
6060     (char*)NULL };
6062 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6064  *  Description of Solaris_Widec fix
6065  */
6066 tSCC zSolaris_WidecName[] =
6067      "solaris_widec";
6070  *  File name selection pattern
6071  */
6072 tSCC zSolaris_WidecList[] =
6073   "widec.h\0";
6075  *  Machine/OS name selection pattern
6076  */
6077 tSCC* apzSolaris_WidecMachs[] = {
6078         "*-*-solaris2.[0-5]",
6079         "*-*-solaris2.[0-5].*",
6080         (const char*)NULL };
6083  *  content selection pattern - do fix if pattern found
6084  */
6085 tSCC zSolaris_WidecSelect0[] =
6086        "#include <euc.h>";
6089  *  content bypass pattern - skip fix if pattern found
6090  */
6091 tSCC zSolaris_WidecBypass0[] =
6092        "include.*wchar\\.h";
6094 #define    SOLARIS_WIDEC_TEST_CT  2
6095 static tTestDesc aSolaris_WidecTests[] = {
6096   { TT_NEGREP,   zSolaris_WidecBypass0, (regex_t*)NULL },
6097   { TT_EGREP,    zSolaris_WidecSelect0, (regex_t*)NULL }, };
6100  *  Fix Command Arguments for Solaris_Widec
6101  */
6102 static const char* apzSolaris_WidecPatch[] = {
6103     "format",
6104     "%0\n\
6105 #include <wchar.h>",
6106     (char*)NULL };
6108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6110  *  Description of Statsswtch fix
6111  */
6112 tSCC zStatsswtchName[] =
6113      "statsswtch";
6116  *  File name selection pattern
6117  */
6118 tSCC zStatsswtchList[] =
6119   "rpcsvc/rstat.h\0";
6121  *  Machine/OS name selection pattern
6122  */
6123 #define apzStatsswtchMachs (const char**)NULL
6126  *  content selection pattern - do fix if pattern found
6127  */
6128 tSCC zStatsswtchSelect0[] =
6129        "boottime$";
6131 #define    STATSSWTCH_TEST_CT  1
6132 static tTestDesc aStatsswtchTests[] = {
6133   { TT_EGREP,    zStatsswtchSelect0, (regex_t*)NULL }, };
6136  *  Fix Command Arguments for Statsswtch
6137  */
6138 static const char* apzStatsswtchPatch[] = {
6139     "format",
6140     "boottime;",
6141     (char*)NULL };
6143 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6145  *  Description of Stdio_Stdarg_H fix
6146  */
6147 tSCC zStdio_Stdarg_HName[] =
6148      "stdio_stdarg_h";
6151  *  File name selection pattern
6152  */
6153 tSCC zStdio_Stdarg_HList[] =
6154   "stdio.h\0";
6156  *  Machine/OS name selection pattern
6157  */
6158 tSCC* apzStdio_Stdarg_HMachs[] = {
6159         "*-*-solaris2.1[0-9]*",
6160         (const char*)NULL };
6163  *  content bypass pattern - skip fix if pattern found
6164  */
6165 tSCC zStdio_Stdarg_HBypass0[] =
6166        "include.*(stdarg.h|machine/ansi.h)";
6168 #define    STDIO_STDARG_H_TEST_CT  1
6169 static tTestDesc aStdio_Stdarg_HTests[] = {
6170   { TT_NEGREP,   zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6173  *  Fix Command Arguments for Stdio_Stdarg_H
6174  */
6175 static const char* apzStdio_Stdarg_HPatch[] = {
6176     "wrap",
6177     "#define __need___va_list\n\
6178 #include <stdarg.h>\n",
6179     (char*)NULL };
6181 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6183  *  Description of Stdio_Va_List fix
6184  */
6185 tSCC zStdio_Va_ListName[] =
6186      "stdio_va_list";
6189  *  File name selection pattern
6190  */
6191 tSCC zStdio_Va_ListList[] =
6192   "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
6194  *  Machine/OS name selection pattern
6195  */
6196 tSCC* apzStdio_Va_ListMachs[] = {
6197         "*-*-solaris2.1[0-9]*",
6198         (const char*)NULL };
6201  *  content bypass pattern - skip fix if pattern found
6202  */
6203 tSCC zStdio_Va_ListBypass0[] =
6204        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6206 #define    STDIO_VA_LIST_TEST_CT  1
6207 static tTestDesc aStdio_Va_ListTests[] = {
6208   { TT_NEGREP,   zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6211  *  Fix Command Arguments for Stdio_Va_List
6212  */
6213 static const char* apzStdio_Va_ListPatch[] = { "sed",
6214     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6215 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6216 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6217 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6218 s@ va_list@ __not_va_list__@\n\
6219 s@\\*va_list@*__not_va_list__@\n\
6220 s@ __va_list)@ __gnuc_va_list)@\n\
6221 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6222 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6223 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6224 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6225 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6226 s@VA_LIST@DUMMY_VA_LIST@\n\
6227 s@_Va_LIST@_VA_LIST@",
6228     (char*)NULL };
6230 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6232  *  Description of Stdio_Va_List_Clients fix
6233  */
6234 tSCC zStdio_Va_List_ClientsName[] =
6235      "stdio_va_list_clients";
6238  *  File name selection pattern
6239  */
6240 tSCC zStdio_Va_List_ClientsList[] =
6241   "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
6243  *  Machine/OS name selection pattern
6244  */
6245 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6248  *  content bypass pattern - skip fix if pattern found
6249  */
6250 tSCC zStdio_Va_List_ClientsBypass0[] =
6251        "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6252 tSCC zStdio_Va_List_ClientsBypass1[] =
6253        "include <stdarg\\.h>|#ifdef va_start";
6255 #define    STDIO_VA_LIST_CLIENTS_TEST_CT  2
6256 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6257   { TT_NEGREP,   zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6258   { TT_NEGREP,   zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6261  *  Fix Command Arguments for Stdio_Va_List_Clients
6262  */
6263 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
6264     "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6265 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6266 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6267 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6268 s@ va_list@ __not_va_list__@\n\
6269 s@\\*va_list@*__not_va_list__@\n\
6270 s@ __va_list)@ __gnuc_va_list)@\n\
6271 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6272 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6273 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6274 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6275 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6276 s@VA_LIST@DUMMY_VA_LIST@\n\
6277 s@_Va_LIST@_VA_LIST@",
6278     (char*)NULL };
6280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6282  *  Description of Strict_Ansi_Not fix
6283  */
6284 tSCC zStrict_Ansi_NotName[] =
6285      "strict_ansi_not";
6288  *  File name selection pattern
6289  */
6290 #define zStrict_Ansi_NotList (char*)NULL
6292  *  Machine/OS name selection pattern
6293  */
6294 #define apzStrict_Ansi_NotMachs (const char**)NULL
6297  *  content selection pattern - do fix if pattern found
6298  */
6299 tSCC zStrict_Ansi_NotSelect0[] =
6300        "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6303  *  content bypass pattern - skip fix if pattern found
6304  */
6305 tSCC zStrict_Ansi_NotBypass0[] =
6306        "GNU and MIPS C compilers define __STDC__ differently";
6307 tSCC zStrict_Ansi_NotBypass1[] =
6308        "__SCO_VERSION__.*__STDC__ != 1";
6311  *  perform the C function call test
6312  */
6313 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6315 #define    STRICT_ANSI_NOT_TEST_CT  4
6316 static tTestDesc aStrict_Ansi_NotTests[] = {
6317   { TT_FUNCTION, zStrict_Ansi_NotFTst0,   0 /* unused */ },
6318   { TT_NEGREP,   zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6319   { TT_NEGREP,   zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6320   { TT_EGREP,    zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6323  *  Fix Command Arguments for Strict_Ansi_Not
6324  */
6325 static const char* apzStrict_Ansi_NotPatch[] = {
6326     "format",
6327     "%1 !defined(__STRICT_ANSI__)",
6328     (char*)NULL };
6330 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6332  *  Description of Strict_Ansi_Not_Ctd fix
6333  */
6334 tSCC zStrict_Ansi_Not_CtdName[] =
6335      "strict_ansi_not_ctd";
6338  *  File name selection pattern
6339  */
6340 tSCC zStrict_Ansi_Not_CtdList[] =
6341   "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6343  *  Machine/OS name selection pattern
6344  */
6345 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6348  *  content selection pattern - do fix if pattern found
6349  */
6350 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6351        "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6354  *  perform the C function call test
6355  */
6356 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6358 #define    STRICT_ANSI_NOT_CTD_TEST_CT  2
6359 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6360   { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0,   0 /* unused */ },
6361   { TT_EGREP,    zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6364  *  Fix Command Arguments for Strict_Ansi_Not_Ctd
6365  */
6366 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6367     "format",
6368     "%1 !defined(__STRICT_ANSI__)",
6369     (char*)NULL };
6371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6373  *  Description of Strict_Ansi_Only fix
6374  */
6375 tSCC zStrict_Ansi_OnlyName[] =
6376      "strict_ansi_only";
6379  *  File name selection pattern
6380  */
6381 #define zStrict_Ansi_OnlyList (char*)NULL
6383  *  Machine/OS name selection pattern
6384  */
6385 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6388  *  content selection pattern - do fix if pattern found
6389  */
6390 tSCC zStrict_Ansi_OnlySelect0[] =
6391        "^([ \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)";
6394  *  perform the C function call test
6395  */
6396 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6398 #define    STRICT_ANSI_ONLY_TEST_CT  2
6399 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6400   { TT_FUNCTION, zStrict_Ansi_OnlyFTst0,   0 /* unused */ },
6401   { TT_EGREP,    zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6404  *  Fix Command Arguments for Strict_Ansi_Only
6405  */
6406 static const char* apzStrict_Ansi_OnlyPatch[] = {
6407     "format",
6408     "%1 defined(__STRICT_ANSI__)",
6409     (char*)NULL };
6411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6413  *  Description of Struct_File fix
6414  */
6415 tSCC zStruct_FileName[] =
6416      "struct_file";
6419  *  File name selection pattern
6420  */
6421 tSCC zStruct_FileList[] =
6422   "rpc/xdr.h\0";
6424  *  Machine/OS name selection pattern
6425  */
6426 #define apzStruct_FileMachs (const char**)NULL
6429  *  content selection pattern - do fix if pattern found
6430  */
6431 tSCC zStruct_FileSelect0[] =
6432        "^.*xdrstdio_create.*struct __file_s";
6434 #define    STRUCT_FILE_TEST_CT  1
6435 static tTestDesc aStruct_FileTests[] = {
6436   { TT_EGREP,    zStruct_FileSelect0, (regex_t*)NULL }, };
6439  *  Fix Command Arguments for Struct_File
6440  */
6441 static const char* apzStruct_FilePatch[] = {
6442     "format",
6443     "struct __file_s;\n\
6444 %0",
6445     (char*)NULL };
6447 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6449  *  Description of Struct_Sockaddr fix
6450  */
6451 tSCC zStruct_SockaddrName[] =
6452      "struct_sockaddr";
6455  *  File name selection pattern
6456  */
6457 tSCC zStruct_SockaddrList[] =
6458   "rpc/auth.h\0";
6460  *  Machine/OS name selection pattern
6461  */
6462 #define apzStruct_SockaddrMachs (const char**)NULL
6465  *  content selection pattern - do fix if pattern found
6466  */
6467 tSCC zStruct_SockaddrSelect0[] =
6468        "^.*authdes_create.*struct sockaddr[^_]";
6471  *  content bypass pattern - skip fix if pattern found
6472  */
6473 tSCC zStruct_SockaddrBypass0[] =
6474        "<sys/socket.h>";
6475 tSCC zStruct_SockaddrBypass1[] =
6476        "struct sockaddr;\n";
6478 #define    STRUCT_SOCKADDR_TEST_CT  3
6479 static tTestDesc aStruct_SockaddrTests[] = {
6480   { TT_NEGREP,   zStruct_SockaddrBypass0, (regex_t*)NULL },
6481   { TT_NEGREP,   zStruct_SockaddrBypass1, (regex_t*)NULL },
6482   { TT_EGREP,    zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6485  *  Fix Command Arguments for Struct_Sockaddr
6486  */
6487 static const char* apzStruct_SockaddrPatch[] = {
6488     "format",
6489     "struct sockaddr;\n\
6490 %0",
6491     (char*)NULL };
6493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6495  *  Description of Sun_Auth_Proto fix
6496  */
6497 tSCC zSun_Auth_ProtoName[] =
6498      "sun_auth_proto";
6501  *  File name selection pattern
6502  */
6503 tSCC zSun_Auth_ProtoList[] =
6504   "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6506  *  Machine/OS name selection pattern
6507  */
6508 #define apzSun_Auth_ProtoMachs (const char**)NULL
6511  *  content selection pattern - do fix if pattern found
6512  */
6513 tSCC zSun_Auth_ProtoSelect0[] =
6514        "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6517  *  content bypass pattern - skip fix if pattern found
6518  */
6519 tSCC zSun_Auth_ProtoBypass0[] =
6520        "__cplusplus";
6522 #define    SUN_AUTH_PROTO_TEST_CT  2
6523 static tTestDesc aSun_Auth_ProtoTests[] = {
6524   { TT_NEGREP,   zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6525   { TT_EGREP,    zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6528  *  Fix Command Arguments for Sun_Auth_Proto
6529  */
6530 static const char* apzSun_Auth_ProtoPatch[] = {
6531     "format",
6532     "#ifdef __cplusplus\n\
6533 %1(...);%2\n\
6534 #else\n\
6535 %1();%2\n\
6536 #endif",
6537     "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6538     (char*)NULL };
6540 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6542  *  Description of Sun_Bogus_Ifdef fix
6543  */
6544 tSCC zSun_Bogus_IfdefName[] =
6545      "sun_bogus_ifdef";
6548  *  File name selection pattern
6549  */
6550 tSCC zSun_Bogus_IfdefList[] =
6551   "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
6553  *  Machine/OS name selection pattern
6554  */
6555 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6558  *  content selection pattern - do fix if pattern found
6559  */
6560 tSCC zSun_Bogus_IfdefSelect0[] =
6561        "#ifdef(.*\\|\\|.*)";
6563 #define    SUN_BOGUS_IFDEF_TEST_CT  1
6564 static tTestDesc aSun_Bogus_IfdefTests[] = {
6565   { TT_EGREP,    zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6568  *  Fix Command Arguments for Sun_Bogus_Ifdef
6569  */
6570 static const char* apzSun_Bogus_IfdefPatch[] = {
6571     "format",
6572     "#if%1",
6573     (char*)NULL };
6575 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6577  *  Description of Sun_Catmacro fix
6578  */
6579 tSCC zSun_CatmacroName[] =
6580      "sun_catmacro";
6583  *  File name selection pattern
6584  */
6585 tSCC zSun_CatmacroList[] =
6586   "pixrect/memvar.h\0";
6588  *  Machine/OS name selection pattern
6589  */
6590 #define apzSun_CatmacroMachs (const char**)NULL
6593  *  content selection pattern - do fix if pattern found
6594  */
6595 tSCC zSun_CatmacroSelect0[] =
6596        "^#define[ \t]+CAT\\(a,b\\).*";
6598 #define    SUN_CATMACRO_TEST_CT  1
6599 static tTestDesc aSun_CatmacroTests[] = {
6600   { TT_EGREP,    zSun_CatmacroSelect0, (regex_t*)NULL }, };
6603  *  Fix Command Arguments for Sun_Catmacro
6604  */
6605 static const char* apzSun_CatmacroPatch[] = {
6606     "format",
6607     "#ifdef __STDC__\n\
6608 #  define CAT(a,b) a##b\n\
6609 #else\n\
6610 %0\n\
6611 #endif",
6612     (char*)NULL };
6614 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6616  *  Description of Sun_Malloc fix
6617  */
6618 tSCC zSun_MallocName[] =
6619      "sun_malloc";
6622  *  File name selection pattern
6623  */
6624 tSCC zSun_MallocList[] =
6625   "malloc.h\0";
6627  *  Machine/OS name selection pattern
6628  */
6629 #define apzSun_MallocMachs (const char**)NULL
6632  *  content bypass pattern - skip fix if pattern found
6633  */
6634 tSCC zSun_MallocBypass0[] =
6635        "_CLASSIC_ANSI_TYPES";
6637 #define    SUN_MALLOC_TEST_CT  1
6638 static tTestDesc aSun_MallocTests[] = {
6639   { TT_NEGREP,   zSun_MallocBypass0, (regex_t*)NULL }, };
6642  *  Fix Command Arguments for Sun_Malloc
6643  */
6644 static const char* apzSun_MallocPatch[] = { "sed",
6645     "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6646     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6647     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6648     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6649     "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6650     (char*)NULL };
6652 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6654  *  Description of Sun_Rusers_Semi fix
6655  */
6656 tSCC zSun_Rusers_SemiName[] =
6657      "sun_rusers_semi";
6660  *  File name selection pattern
6661  */
6662 tSCC zSun_Rusers_SemiList[] =
6663   "rpcsvc/rusers.h\0";
6665  *  Machine/OS name selection pattern
6666  */
6667 #define apzSun_Rusers_SemiMachs (const char**)NULL
6670  *  content selection pattern - do fix if pattern found
6671  */
6672 tSCC zSun_Rusers_SemiSelect0[] =
6673        "_cnt$";
6675 #define    SUN_RUSERS_SEMI_TEST_CT  1
6676 static tTestDesc aSun_Rusers_SemiTests[] = {
6677   { TT_EGREP,    zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6680  *  Fix Command Arguments for Sun_Rusers_Semi
6681  */
6682 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
6683     "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6684     (char*)NULL };
6686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6688  *  Description of Sun_Signal fix
6689  */
6690 tSCC zSun_SignalName[] =
6691      "sun_signal";
6694  *  File name selection pattern
6695  */
6696 tSCC zSun_SignalList[] =
6697   "sys/signal.h\0signal.h\0";
6699  *  Machine/OS name selection pattern
6700  */
6701 #define apzSun_SignalMachs (const char**)NULL
6704  *  content selection pattern - do fix if pattern found
6705  */
6706 tSCC zSun_SignalSelect0[] =
6707        "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6709 #define    SUN_SIGNAL_TEST_CT  1
6710 static tTestDesc aSun_SignalTests[] = {
6711   { TT_EGREP,    zSun_SignalSelect0, (regex_t*)NULL }, };
6714  *  Fix Command Arguments for Sun_Signal
6715  */
6716 static const char* apzSun_SignalPatch[] = {
6717     "format",
6718     "#ifdef __cplusplus\n\
6719 void\t(*signal(...))(...);\n\
6720 #else\n\
6721 %0\n\
6722 #endif",
6723     (char*)NULL };
6725 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6727  *  Description of Sunos_Strlen fix
6728  */
6729 tSCC zSunos_StrlenName[] =
6730      "sunos_strlen";
6733  *  File name selection pattern
6734  */
6735 tSCC zSunos_StrlenList[] =
6736   "strings.h\0";
6738  *  Machine/OS name selection pattern
6739  */
6740 #define apzSunos_StrlenMachs (const char**)NULL
6743  *  content selection pattern - do fix if pattern found
6744  */
6745 tSCC zSunos_StrlenSelect0[] =
6746        "int[ \t]*strlen\\(\\);(.*)";
6748 #define    SUNOS_STRLEN_TEST_CT  1
6749 static tTestDesc aSunos_StrlenTests[] = {
6750   { TT_EGREP,    zSunos_StrlenSelect0, (regex_t*)NULL }, };
6753  *  Fix Command Arguments for Sunos_Strlen
6754  */
6755 static const char* apzSunos_StrlenPatch[] = {
6756     "format",
6757     "__SIZE_TYPE__ strlen();%1",
6758     (char*)NULL };
6760 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6762  *  Description of Svr4_Disable_Opt fix
6763  */
6764 tSCC zSvr4_Disable_OptName[] =
6765      "svr4_disable_opt";
6768  *  File name selection pattern
6769  */
6770 tSCC zSvr4_Disable_OptList[] =
6771   "string.h\0";
6773  *  Machine/OS name selection pattern
6774  */
6775 #define apzSvr4_Disable_OptMachs (const char**)NULL
6778  *  content selection pattern - do fix if pattern found
6779  */
6780 tSCC zSvr4_Disable_OptSelect0[] =
6781        "#define.*__std_hdr_";
6783 #define    SVR4_DISABLE_OPT_TEST_CT  1
6784 static tTestDesc aSvr4_Disable_OptTests[] = {
6785   { TT_EGREP,    zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
6788  *  Fix Command Arguments for Svr4_Disable_Opt
6789  */
6790 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
6791     "-e", "/#define.*__std_hdr_/d",
6792     (char*)NULL };
6794 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6796  *  Description of Svr4_Getcwd fix
6797  */
6798 tSCC zSvr4_GetcwdName[] =
6799      "svr4_getcwd";
6802  *  File name selection pattern
6803  */
6804 tSCC zSvr4_GetcwdList[] =
6805   "stdlib.h\0unistd.h\0prototypes.h\0";
6807  *  Machine/OS name selection pattern
6808  */
6809 #define apzSvr4_GetcwdMachs (const char**)NULL
6812  *  content selection pattern - do fix if pattern found
6813  */
6814 tSCC zSvr4_GetcwdSelect0[] =
6815        "getcwd\\(char \\*, int\\)";
6817 #define    SVR4_GETCWD_TEST_CT  1
6818 static tTestDesc aSvr4_GetcwdTests[] = {
6819   { TT_EGREP,    zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
6822  *  Fix Command Arguments for Svr4_Getcwd
6823  */
6824 static const char* apzSvr4_GetcwdPatch[] = {
6825     "format",
6826     "getcwd(char *, size_t)",
6827     (char*)NULL };
6829 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6831  *  Description of Svr4_Krnl fix
6832  */
6833 tSCC zSvr4_KrnlName[] =
6834      "svr4_krnl";
6837  *  File name selection pattern
6838  */
6839 tSCC zSvr4_KrnlList[] =
6840   "fs/rfs/rf_cache.h\0sys/erec.h\0sys/err.h\0sys/char.h\0sys/getpages.h\0sys/map.h\0sys/cmn_err.h\0sys/kdebugger.h\0";
6842  *  Machine/OS name selection pattern
6843  */
6844 tSCC* apzSvr4_KrnlMachs[] = {
6845         "*-*-sysv4*",
6846         "i?86-sequent-ptx*",
6847         (const char*)NULL };
6850  *  content bypass pattern - skip fix if pattern found
6851  */
6852 tSCC zSvr4_KrnlBypass0[] =
6853        "_KERNEL";
6855 #define    SVR4_KRNL_TEST_CT  1
6856 static tTestDesc aSvr4_KrnlTests[] = {
6857   { TT_NEGREP,   zSvr4_KrnlBypass0, (regex_t*)NULL }, };
6860  *  Fix Command Arguments for Svr4_Krnl
6861  */
6862 static const char* apzSvr4_KrnlPatch[] = {
6863     "wrap",
6864     "#ifdef _KERNEL\n",
6865     "#endif /* _KERNEL */\n",
6866     (char*)NULL };
6868 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6870  *  Description of Svr4_Profil fix
6871  */
6872 tSCC zSvr4_ProfilName[] =
6873      "svr4_profil";
6876  *  File name selection pattern
6877  */
6878 tSCC zSvr4_ProfilList[] =
6879   "stdlib.h\0unistd.h\0";
6881  *  Machine/OS name selection pattern
6882  */
6883 #define apzSvr4_ProfilMachs (const char**)NULL
6886  *  content selection pattern - do fix if pattern found
6887  */
6888 tSCC zSvr4_ProfilSelect0[] =
6889        "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
6892  *  content bypass pattern - skip fix if pattern found
6893  */
6894 tSCC zSvr4_ProfilBypass0[] =
6895        "Silicon Graphics";
6897 #define    SVR4_PROFIL_TEST_CT  2
6898 static tTestDesc aSvr4_ProfilTests[] = {
6899   { TT_NEGREP,   zSvr4_ProfilBypass0, (regex_t*)NULL },
6900   { TT_EGREP,    zSvr4_ProfilSelect0, (regex_t*)NULL }, };
6903  *  Fix Command Arguments for Svr4_Profil
6904  */
6905 static const char* apzSvr4_ProfilPatch[] = {
6906     "format",
6907     "profil(unsigned short *, size_t, int, unsigned int)",
6908     (char*)NULL };
6910 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6912  *  Description of Svr4_Sighandler_Type fix
6913  */
6914 tSCC zSvr4_Sighandler_TypeName[] =
6915      "svr4_sighandler_type";
6918  *  File name selection pattern
6919  */
6920 tSCC zSvr4_Sighandler_TypeList[] =
6921   "sys/signal.h\0";
6923  *  Machine/OS name selection pattern
6924  */
6925 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
6928  *  content selection pattern - do fix if pattern found
6929  */
6930 tSCC zSvr4_Sighandler_TypeSelect0[] =
6931        "void *\\(\\*\\)\\(\\)";
6933 #define    SVR4_SIGHANDLER_TYPE_TEST_CT  1
6934 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
6935   { TT_EGREP,    zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
6938  *  Fix Command Arguments for Svr4_Sighandler_Type
6939  */
6940 static const char* apzSvr4_Sighandler_TypePatch[] = {
6941     "format",
6942     "void (*)(int)",
6943     (char*)NULL };
6945 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6947  *  Description of Svr4_Undeclared_Getrnge fix
6948  */
6949 tSCC zSvr4_Undeclared_GetrngeName[] =
6950      "svr4_undeclared_getrnge";
6953  *  File name selection pattern
6954  */
6955 tSCC zSvr4_Undeclared_GetrngeList[] =
6956   "regexp.h\0";
6958  *  Machine/OS name selection pattern
6959  */
6960 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
6963  *  content selection pattern - do fix if pattern found
6964  */
6965 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
6966        "getrnge";
6969  *  content bypass pattern - skip fix if pattern found
6970  */
6971 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
6972        "static void getrnge";
6974 #define    SVR4_UNDECLARED_GETRNGE_TEST_CT  2
6975 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
6976   { TT_NEGREP,   zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
6977   { TT_EGREP,    zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
6980  *  Fix Command Arguments for Svr4_Undeclared_Getrnge
6981  */
6982 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
6983     "format",
6984     "%0\n\
6985 static int getrnge ();",
6986     "^static int[ \t]+size;",
6987     (char*)NULL };
6989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6991  *  Description of Sysv68_String fix
6992  */
6993 tSCC zSysv68_StringName[] =
6994      "sysv68_string";
6997  *  File name selection pattern
6998  */
6999 tSCC zSysv68_StringList[] =
7000   "testing.h\0string.h\0";
7002  *  Machine/OS name selection pattern
7003  */
7004 #define apzSysv68_StringMachs (const char**)NULL
7007  *  content bypass pattern - skip fix if pattern found
7008  */
7009 tSCC zSysv68_StringBypass0[] =
7010        "_CLASSIC_ANSI_TYPES";
7012 #define    SYSV68_STRING_TEST_CT  1
7013 static tTestDesc aSysv68_StringTests[] = {
7014   { TT_NEGREP,   zSysv68_StringBypass0, (regex_t*)NULL }, };
7017  *  Fix Command Arguments for Sysv68_String
7018  */
7019 static const char* apzSysv68_StringPatch[] = { "sed",
7020     "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7021     "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7022     "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7023     "-e", "/^extern char$/N",
7024     "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7025     "-e", "/^extern int$/N",
7026     "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7027     "-e", "/^\tstrncmp(),$/N",
7028     "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7029 extern unsigned int\\\n\
7030 \\2/",
7031     (char*)NULL };
7033 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7035  *  Description of Sysz_Stdlib_For_Sun fix
7036  */
7037 tSCC zSysz_Stdlib_For_SunName[] =
7038      "sysz_stdlib_for_sun";
7041  *  File name selection pattern
7042  */
7043 tSCC zSysz_Stdlib_For_SunList[] =
7044   "stdlib.h\0";
7046  *  Machine/OS name selection pattern
7047  */
7048 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7051  *  content selection pattern - do fix if pattern found
7052  */
7053 tSCC zSysz_Stdlib_For_SunSelect0[] =
7054        "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7057  *  content bypass pattern - skip fix if pattern found
7058  */
7059 tSCC zSysz_Stdlib_For_SunBypass0[] =
7060        "_CLASSIC_ANSI_TYPES";
7062 #define    SYSZ_STDLIB_FOR_SUN_TEST_CT  2
7063 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7064   { TT_NEGREP,   zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7065   { TT_EGREP,    zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7068  *  Fix Command Arguments for Sysz_Stdlib_For_Sun
7069  */
7070 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7071     "format",
7072     "void *\t%1(",
7073     (char*)NULL };
7075 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7077  *  Description of Thread_Keyword fix
7078  */
7079 tSCC zThread_KeywordName[] =
7080      "thread_keyword";
7083  *  File name selection pattern
7084  */
7085 tSCC zThread_KeywordList[] =
7086   "pthread.h\0bits/sigthread.h\0";
7088  *  Machine/OS name selection pattern
7089  */
7090 #define apzThread_KeywordMachs (const char**)NULL
7093  *  content selection pattern - do fix if pattern found
7094  */
7095 tSCC zThread_KeywordSelect0[] =
7096        "([* ])__thread([,)])";
7098 #define    THREAD_KEYWORD_TEST_CT  1
7099 static tTestDesc aThread_KeywordTests[] = {
7100   { TT_EGREP,    zThread_KeywordSelect0, (regex_t*)NULL }, };
7103  *  Fix Command Arguments for Thread_Keyword
7104  */
7105 static const char* apzThread_KeywordPatch[] = {
7106     "format",
7107     "%1__thr%2",
7108     (char*)NULL };
7110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7112  *  Description of Tinfo_Cplusplus fix
7113  */
7114 tSCC zTinfo_CplusplusName[] =
7115      "tinfo_cplusplus";
7118  *  File name selection pattern
7119  */
7120 tSCC zTinfo_CplusplusList[] =
7121   "tinfo.h\0";
7123  *  Machine/OS name selection pattern
7124  */
7125 #define apzTinfo_CplusplusMachs (const char**)NULL
7128  *  content selection pattern - do fix if pattern found
7129  */
7130 tSCC zTinfo_CplusplusSelect0[] =
7131        "[ \t]_cplusplus";
7133 #define    TINFO_CPLUSPLUS_TEST_CT  1
7134 static tTestDesc aTinfo_CplusplusTests[] = {
7135   { TT_EGREP,    zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7138  *  Fix Command Arguments for Tinfo_Cplusplus
7139  */
7140 static const char* apzTinfo_CplusplusPatch[] = {
7141     "format",
7142     " __cplusplus",
7143     (char*)NULL };
7145 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7147  *  Description of Ultrix_Atexit_Param fix
7148  */
7149 tSCC zUltrix_Atexit_ParamName[] =
7150      "ultrix_atexit_param";
7153  *  File name selection pattern
7154  */
7155 tSCC zUltrix_Atexit_ParamList[] =
7156   "stdlib.h\0";
7158  *  Machine/OS name selection pattern
7159  */
7160 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
7163  *  content selection pattern - do fix if pattern found
7164  */
7165 tSCC zUltrix_Atexit_ParamSelect0[] =
7166        "atexit\\(.*\\(\\)";
7168 #define    ULTRIX_ATEXIT_PARAM_TEST_CT  1
7169 static tTestDesc aUltrix_Atexit_ParamTests[] = {
7170   { TT_EGREP,    zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
7173  *  Fix Command Arguments for Ultrix_Atexit_Param
7174  */
7175 static const char* apzUltrix_Atexit_ParamPatch[] = {
7176     "format",
7177     "atexit( void (*__func)( void )",
7178     (char*)NULL };
7180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7182  *  Description of Ultrix_Atof_Param fix
7183  */
7184 tSCC zUltrix_Atof_ParamName[] =
7185      "ultrix_atof_param";
7188  *  File name selection pattern
7189  */
7190 tSCC zUltrix_Atof_ParamList[] =
7191   "math.h\0";
7193  *  Machine/OS name selection pattern
7194  */
7195 #define apzUltrix_Atof_ParamMachs (const char**)NULL
7198  *  content selection pattern - do fix if pattern found
7199  */
7200 tSCC zUltrix_Atof_ParamSelect0[] =
7201        "atof\\([ \t]*char";
7203 #define    ULTRIX_ATOF_PARAM_TEST_CT  1
7204 static tTestDesc aUltrix_Atof_ParamTests[] = {
7205   { TT_EGREP,    zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
7208  *  Fix Command Arguments for Ultrix_Atof_Param
7209  */
7210 static const char* apzUltrix_Atof_ParamPatch[] = {
7211     "format",
7212     "atof(const char",
7213     (char*)NULL };
7215 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7217  *  Description of Ultrix_Const fix
7218  */
7219 tSCC zUltrix_ConstName[] =
7220      "ultrix_const";
7223  *  File name selection pattern
7224  */
7225 tSCC zUltrix_ConstList[] =
7226   "stdio.h\0";
7228  *  Machine/OS name selection pattern
7229  */
7230 #define apzUltrix_ConstMachs (const char**)NULL
7233  *  content selection pattern - do fix if pattern found
7234  */
7235 tSCC zUltrix_ConstSelect0[] =
7236        "perror\\( char \\*";
7238 #define    ULTRIX_CONST_TEST_CT  1
7239 static tTestDesc aUltrix_ConstTests[] = {
7240   { TT_EGREP,    zUltrix_ConstSelect0, (regex_t*)NULL }, };
7243  *  Fix Command Arguments for Ultrix_Const
7244  */
7245 static const char* apzUltrix_ConstPatch[] = {
7246     "format",
7247     "%1 const %3 *__",
7248     "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7249     (char*)NULL };
7251 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7253  *  Description of Ultrix_Const2 fix
7254  */
7255 tSCC zUltrix_Const2Name[] =
7256      "ultrix_const2";
7259  *  File name selection pattern
7260  */
7261 tSCC zUltrix_Const2List[] =
7262   "stdio.h\0";
7264  *  Machine/OS name selection pattern
7265  */
7266 #define apzUltrix_Const2Machs (const char**)NULL
7269  *  content selection pattern - do fix if pattern found
7270  */
7271 tSCC zUltrix_Const2Select0[] =
7272        "\\*fopen\\( char \\*";
7274 #define    ULTRIX_CONST2_TEST_CT  1
7275 static tTestDesc aUltrix_Const2Tests[] = {
7276   { TT_EGREP,    zUltrix_Const2Select0, (regex_t*)NULL }, };
7279  *  Fix Command Arguments for Ultrix_Const2
7280  */
7281 static const char* apzUltrix_Const2Patch[] = {
7282     "format",
7283     "%1( const char *%3, const char *",
7284     "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7285     (char*)NULL };
7287 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7289  *  Description of Ultrix_Const3 fix
7290  */
7291 tSCC zUltrix_Const3Name[] =
7292      "ultrix_const3";
7295  *  File name selection pattern
7296  */
7297 tSCC zUltrix_Const3List[] =
7298   "stdio.h\0";
7300  *  Machine/OS name selection pattern
7301  */
7302 #define apzUltrix_Const3Machs (const char**)NULL
7305  *  content selection pattern - do fix if pattern found
7306  */
7307 tSCC zUltrix_Const3Select0[] =
7308        "fdopen\\( .*, char \\*";
7310 #define    ULTRIX_CONST3_TEST_CT  1
7311 static tTestDesc aUltrix_Const3Tests[] = {
7312   { TT_EGREP,    zUltrix_Const3Select0, (regex_t*)NULL }, };
7315  *  Fix Command Arguments for Ultrix_Const3
7316  */
7317 static const char* apzUltrix_Const3Patch[] = {
7318     "format",
7319     "%1 const %3 *__",
7320     "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
7321     (char*)NULL };
7323 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7325  *  Description of Ultrix_Fix_Fixproto fix
7326  */
7327 tSCC zUltrix_Fix_FixprotoName[] =
7328      "ultrix_fix_fixproto";
7331  *  File name selection pattern
7332  */
7333 tSCC zUltrix_Fix_FixprotoList[] =
7334   "sys/utsname.h\0";
7336  *  Machine/OS name selection pattern
7337  */
7338 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
7341  *  content selection pattern - do fix if pattern found
7342  */
7343 tSCC zUltrix_Fix_FixprotoSelect0[] =
7344        "ULTRIX";
7346 #define    ULTRIX_FIX_FIXPROTO_TEST_CT  1
7347 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
7348   { TT_EGREP,    zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
7351  *  Fix Command Arguments for Ultrix_Fix_Fixproto
7352  */
7353 static const char* apzUltrix_Fix_FixprotoPatch[] = {
7354     "format",
7355     "struct utsname;\n\
7356 %0",
7357     "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
7358     (char*)NULL };
7360 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7362  *  Description of Ultrix_Ifdef fix
7363  */
7364 tSCC zUltrix_IfdefName[] =
7365      "ultrix_ifdef";
7368  *  File name selection pattern
7369  */
7370 tSCC zUltrix_IfdefList[] =
7371   "sys/file.h\0";
7373  *  Machine/OS name selection pattern
7374  */
7375 #define apzUltrix_IfdefMachs (const char**)NULL
7378  *  content selection pattern - do fix if pattern found
7379  */
7380 tSCC zUltrix_IfdefSelect0[] =
7381        "^#ifdef KERNEL[ \t]+&&";
7383 #define    ULTRIX_IFDEF_TEST_CT  1
7384 static tTestDesc aUltrix_IfdefTests[] = {
7385   { TT_EGREP,    zUltrix_IfdefSelect0, (regex_t*)NULL }, };
7388  *  Fix Command Arguments for Ultrix_Ifdef
7389  */
7390 static const char* apzUltrix_IfdefPatch[] = {
7391     "format",
7392     "#if defined(KERNEL) &&",
7393     (char*)NULL };
7395 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7397  *  Description of Ultrix_Locale fix
7398  */
7399 tSCC zUltrix_LocaleName[] =
7400      "ultrix_locale";
7403  *  File name selection pattern
7404  */
7405 tSCC zUltrix_LocaleList[] =
7406   "locale.h\0";
7408  *  Machine/OS name selection pattern
7409  */
7410 #define apzUltrix_LocaleMachs (const char**)NULL
7413  *  content selection pattern - do fix if pattern found
7414  */
7415 tSCC zUltrix_LocaleSelect0[] =
7416        "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
7418 #define    ULTRIX_LOCALE_TEST_CT  1
7419 static tTestDesc aUltrix_LocaleTests[] = {
7420   { TT_EGREP,    zUltrix_LocaleSelect0, (regex_t*)NULL }, };
7423  *  Fix Command Arguments for Ultrix_Locale
7424  */
7425 static const char* apzUltrix_LocalePatch[] = {
7426     "wrap",
7427     (char*)NULL };
7429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7431  *  Description of Ultrix_Math_Ifdef fix
7432  */
7433 tSCC zUltrix_Math_IfdefName[] =
7434      "ultrix_math_ifdef";
7437  *  File name selection pattern
7438  */
7439 tSCC zUltrix_Math_IfdefList[] =
7440   "sys/limits.h\0float.h\0math.h\0";
7442  *  Machine/OS name selection pattern
7443  */
7444 #define apzUltrix_Math_IfdefMachs (const char**)NULL
7447  *  content selection pattern - do fix if pattern found
7448  */
7449 tSCC zUltrix_Math_IfdefSelect0[] =
7450        "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
7452 #define    ULTRIX_MATH_IFDEF_TEST_CT  1
7453 static tTestDesc aUltrix_Math_IfdefTests[] = {
7454   { TT_EGREP,    zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
7457  *  Fix Command Arguments for Ultrix_Math_Ifdef
7458  */
7459 static const char* apzUltrix_Math_IfdefPatch[] = {
7460     "format",
7461     "%1",
7462     (char*)NULL };
7464 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7466  *  Description of Ultrix_Nested_Ioctl fix
7467  */
7468 tSCC zUltrix_Nested_IoctlName[] =
7469      "ultrix_nested_ioctl";
7472  *  File name selection pattern
7473  */
7474 tSCC zUltrix_Nested_IoctlList[] =
7475   "sys/ioctl.h\0";
7477  *  Machine/OS name selection pattern
7478  */
7479 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
7482  *  content selection pattern - do fix if pattern found
7483  */
7484 tSCC zUltrix_Nested_IoctlSelect0[] =
7485        "^/\\* #define SIOCSCREEN";
7487 #define    ULTRIX_NESTED_IOCTL_TEST_CT  1
7488 static tTestDesc aUltrix_Nested_IoctlTests[] = {
7489   { TT_EGREP,    zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
7492  *  Fix Command Arguments for Ultrix_Nested_Ioctl
7493  */
7494 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
7495     "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
7496     (char*)NULL };
7498 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7500  *  Description of Ultrix_Nested_Svc fix
7501  */
7502 tSCC zUltrix_Nested_SvcName[] =
7503      "ultrix_nested_svc";
7506  *  File name selection pattern
7507  */
7508 tSCC zUltrix_Nested_SvcList[] =
7509   "rpc/svc.h\0";
7511  *  Machine/OS name selection pattern
7512  */
7513 #define apzUltrix_Nested_SvcMachs (const char**)NULL
7516  *  content selection pattern - do fix if pattern found
7517  */
7518 tSCC zUltrix_Nested_SvcSelect0[] =
7519        "^ \\*[ \t]*int protocol;  */\\*";
7521 #define    ULTRIX_NESTED_SVC_TEST_CT  1
7522 static tTestDesc aUltrix_Nested_SvcTests[] = {
7523   { TT_EGREP,    zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
7526  *  Fix Command Arguments for Ultrix_Nested_Svc
7527  */
7528 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
7529     "-e", "s@^\\( \\*\tint protocol;  \\)/\\*@\\1*/ /*@",
7530     (char*)NULL };
7532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7534  *  Description of Ultrix_Stat fix
7535  */
7536 tSCC zUltrix_StatName[] =
7537      "ultrix_stat";
7540  *  File name selection pattern
7541  */
7542 tSCC zUltrix_StatList[] =
7543   "sys/stat.h\0";
7545  *  Machine/OS name selection pattern
7546  */
7547 #define apzUltrix_StatMachs (const char**)NULL
7550  *  content selection pattern - do fix if pattern found
7551  */
7552 tSCC zUltrix_StatSelect0[] =
7553        "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
7555 #define    ULTRIX_STAT_TEST_CT  1
7556 static tTestDesc aUltrix_StatTests[] = {
7557   { TT_EGREP,    zUltrix_StatSelect0, (regex_t*)NULL }, };
7560  *  Fix Command Arguments for Ultrix_Stat
7561  */
7562 static const char* apzUltrix_StatPatch[] = { "sed",
7563     "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
7564 \\\n\
7565 /* macro to test for symbolic link */\\\n\
7566 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
7567     "-e", "/^[ \t]*fstat(),$/a\\\n\
7568 \tlstat(),\n",
7569     (char*)NULL };
7571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7573  *  Description of Ultrix_Static fix
7574  */
7575 tSCC zUltrix_StaticName[] =
7576      "ultrix_static";
7579  *  File name selection pattern
7580  */
7581 tSCC zUltrix_StaticList[] =
7582   "machine/cpu.h\0";
7584  *  Machine/OS name selection pattern
7585  */
7586 #define apzUltrix_StaticMachs (const char**)NULL
7589  *  content selection pattern - do fix if pattern found
7590  */
7591 tSCC zUltrix_StaticSelect0[] =
7592        "#include \"r[34]_cpu";
7594 #define    ULTRIX_STATIC_TEST_CT  1
7595 static tTestDesc aUltrix_StaticTests[] = {
7596   { TT_EGREP,    zUltrix_StaticSelect0, (regex_t*)NULL }, };
7599  *  Fix Command Arguments for Ultrix_Static
7600  */
7601 static const char* apzUltrix_StaticPatch[] = { "sed",
7602     "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
7603     "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
7604     "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
7605     (char*)NULL };
7607 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7609  *  Description of Ultrix_Stdlib fix
7610  */
7611 tSCC zUltrix_StdlibName[] =
7612      "ultrix_stdlib";
7615  *  File name selection pattern
7616  */
7617 tSCC zUltrix_StdlibList[] =
7618   "stdlib.h\0";
7620  *  Machine/OS name selection pattern
7621  */
7622 #define apzUltrix_StdlibMachs (const char**)NULL
7625  *  content selection pattern - do fix if pattern found
7626  */
7627 tSCC zUltrix_StdlibSelect0[] =
7628        "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
7630 #define    ULTRIX_STDLIB_TEST_CT  1
7631 static tTestDesc aUltrix_StdlibTests[] = {
7632   { TT_EGREP,    zUltrix_StdlibSelect0, (regex_t*)NULL }, };
7635  *  Fix Command Arguments for Ultrix_Stdlib
7636  */
7637 static const char* apzUltrix_StdlibPatch[] = { "sed",
7638     "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
7639 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
7640 void\t\tunsetenv( const char *__name );\\\n\
7641 int\t\tputenv( char *__s );\n",
7642     "-e", "/^char.*getenv();.*$/a\\\n\
7643 int\tsetenv();\\\n\
7644 void\tunsetenv();\\\n\
7645 int\tputenv();\n",
7646     (char*)NULL };
7648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7650  *  Description of Ultrix_Strings fix
7651  */
7652 tSCC zUltrix_StringsName[] =
7653      "ultrix_strings";
7656  *  File name selection pattern
7657  */
7658 tSCC zUltrix_StringsList[] =
7659   "strings.h\0";
7661  *  Machine/OS name selection pattern
7662  */
7663 #define apzUltrix_StringsMachs (const char**)NULL
7666  *  content selection pattern - do fix if pattern found
7667  */
7668 tSCC zUltrix_StringsSelect0[] =
7669        "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7671 #define    ULTRIX_STRINGS_TEST_CT  1
7672 static tTestDesc aUltrix_StringsTests[] = {
7673   { TT_EGREP,    zUltrix_StringsSelect0, (regex_t*)NULL }, };
7676  *  Fix Command Arguments for Ultrix_Strings
7677  */
7678 static const char* apzUltrix_StringsPatch[] = {
7679     "wrap",
7680     (char*)NULL };
7682 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7684  *  Description of Ultrix_Strings2 fix
7685  */
7686 tSCC zUltrix_Strings2Name[] =
7687      "ultrix_strings2";
7690  *  File name selection pattern
7691  */
7692 tSCC zUltrix_Strings2List[] =
7693   "strings.h\0";
7695  *  Machine/OS name selection pattern
7696  */
7697 #define apzUltrix_Strings2Machs (const char**)NULL
7700  *  content selection pattern - do fix if pattern found
7701  */
7702 tSCC zUltrix_Strings2Select0[] =
7703        "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7705 #define    ULTRIX_STRINGS2_TEST_CT  1
7706 static tTestDesc aUltrix_Strings2Tests[] = {
7707   { TT_EGREP,    zUltrix_Strings2Select0, (regex_t*)NULL }, };
7710  *  Fix Command Arguments for Ultrix_Strings2
7711  */
7712 static const char* apzUltrix_Strings2Patch[] = { "sed",
7713     "-e", "/^.*strncmp( const .* );.*/a\\\n\
7714 \\\n\
7715 extern int\\\n\
7716 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
7717 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
7718     "-e", "/^.*strncmp();.*/a\\\n\
7719 extern int\\\n\
7720 \tstrcasecmp(),\\\n\
7721 \tstrncasecmp();\n",
7722     (char*)NULL };
7724 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7726  *  Description of Ultrix_Sys_Time fix
7727  */
7728 tSCC zUltrix_Sys_TimeName[] =
7729      "ultrix_sys_time";
7732  *  File name selection pattern
7733  */
7734 tSCC zUltrix_Sys_TimeList[] =
7735   "sys/time.h\0";
7737  *  Machine/OS name selection pattern
7738  */
7739 #define apzUltrix_Sys_TimeMachs (const char**)NULL
7742  *  content selection pattern - do fix if pattern found
7743  */
7744 tSCC zUltrix_Sys_TimeSelect0[] =
7745        "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
7747 #define    ULTRIX_SYS_TIME_TEST_CT  1
7748 static tTestDesc aUltrix_Sys_TimeTests[] = {
7749   { TT_EGREP,    zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
7752  *  Fix Command Arguments for Ultrix_Sys_Time
7753  */
7754 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
7755     "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
7756 \\\n\
7757 extern int adjtime(struct timeval *, struct timeval *);\\\n\
7758 extern int getitimer(int, struct itimerval *);\\\n\
7759 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
7760 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
7761 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
7762 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
7763 extern int stime(const time_t *);\\\n\
7764 extern int utimes(const char *, const struct timeval[2]);\\\n\
7765 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
7766     "-e", "/^extern.*double.*difftime();.*$/a\\\n\
7767 extern\tint adjtime();\\\n\
7768 extern\tint getitimer();\\\n\
7769 extern\tint setitimer();\\\n\
7770 extern\tint gettimeofday();\\\n\
7771 extern\tint settimeofday();\\\n\
7772 extern\tvoid profil();\\\n\
7773 extern\tint stime();\\\n\
7774 extern\tint utimes();\\\n\
7775 extern\tint select();\n",
7776     (char*)NULL };
7778 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7780  *  Description of Ultrix_Unistd fix
7781  */
7782 tSCC zUltrix_UnistdName[] =
7783      "ultrix_unistd";
7786  *  File name selection pattern
7787  */
7788 tSCC zUltrix_UnistdList[] =
7789   "unistd.h\0";
7791  *  Machine/OS name selection pattern
7792  */
7793 #define apzUltrix_UnistdMachs (const char**)NULL
7796  *  content selection pattern - do fix if pattern found
7797  */
7798 tSCC zUltrix_UnistdSelect0[] =
7799        "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
7801 #define    ULTRIX_UNISTD_TEST_CT  1
7802 static tTestDesc aUltrix_UnistdTests[] = {
7803   { TT_EGREP,    zUltrix_UnistdSelect0, (regex_t*)NULL }, };
7806  *  Fix Command Arguments for Ultrix_Unistd
7807  */
7808 static const char* apzUltrix_UnistdPatch[] = { "sed",
7809     "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
7810 \tgetpagesize(),\n",
7811     "-e", "/^[ \t]*fork(),.*$/a\\\n\
7812 \tvfork(),\n",
7813     (char*)NULL };
7815 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7817  *  Description of Unicosmk_Restrict fix
7818  */
7819 tSCC zUnicosmk_RestrictName[] =
7820      "unicosmk_restrict";
7823  *  File name selection pattern
7824  */
7825 tSCC zUnicosmk_RestrictList[] =
7826   "stdio.h\0stdlib.h\0wchar.h\0";
7828  *  Machine/OS name selection pattern
7829  */
7830 tSCC* apzUnicosmk_RestrictMachs[] = {
7831         "*-*-unicosmk*",
7832         (const char*)NULL };
7835  *  content selection pattern - do fix if pattern found
7836  */
7837 tSCC zUnicosmk_RestrictSelect0[] =
7838        "(\\*[ \t]*)restrict([ \t]+)";
7840 #define    UNICOSMK_RESTRICT_TEST_CT  1
7841 static tTestDesc aUnicosmk_RestrictTests[] = {
7842   { TT_EGREP,    zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
7845  *  Fix Command Arguments for Unicosmk_Restrict
7846  */
7847 static const char* apzUnicosmk_RestrictPatch[] = {
7848     "format",
7849     "%1__restrict__%2",
7850     (char*)NULL };
7852 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7854  *  Description of Uw7_Byteorder_Fix fix
7855  */
7856 tSCC zUw7_Byteorder_FixName[] =
7857      "uw7_byteorder_fix";
7860  *  File name selection pattern
7861  */
7862 tSCC zUw7_Byteorder_FixList[] =
7863   "arpa/inet.h\0";
7865  *  Machine/OS name selection pattern
7866  */
7867 tSCC* apzUw7_Byteorder_FixMachs[] = {
7868         "*-*-sysv4*",
7869         "i?86-*-sysv5*",
7870         "i?86-*-udk*",
7871         "i?86-*-solaris2.[0-4]",
7872         "powerpcle-*-solaris2.[0-4]",
7873         "sparc-*-solaris2.[0-4]",
7874         (const char*)NULL };
7877  *  content selection pattern - do fix if pattern found
7878  */
7879 tSCC zUw7_Byteorder_FixSelect0[] =
7880        "in_port_t";
7883  *  perform the 'test' shell command - do fix on success
7884  */
7885 tSCC zUw7_Byteorder_FixTest0[] =
7886        "-f sys/byteorder.h";
7888 #define    UW7_BYTEORDER_FIX_TEST_CT  2
7889 static tTestDesc aUw7_Byteorder_FixTests[] = {
7890   { TT_TEST,     zUw7_Byteorder_FixTest0,   0 /* unused */ },
7891   { TT_EGREP,    zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
7894  *  Fix Command Arguments for Uw7_Byteorder_Fix
7895  */
7896 static const char* apzUw7_Byteorder_FixPatch[] = {
7897     "format",
7898     "",
7899     "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
7900     (char*)NULL };
7902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7904  *  Description of Va_I960_Macro fix
7905  */
7906 tSCC zVa_I960_MacroName[] =
7907      "va_i960_macro";
7910  *  File name selection pattern
7911  */
7912 tSCC zVa_I960_MacroList[] =
7913   "arch/i960/archI960.h\0";
7915  *  Machine/OS name selection pattern
7916  */
7917 #define apzVa_I960_MacroMachs (const char**)NULL
7920  *  content selection pattern - do fix if pattern found
7921  */
7922 tSCC zVa_I960_MacroSelect0[] =
7923        "__(vsiz|vali|vpad|alignof__)";
7925 #define    VA_I960_MACRO_TEST_CT  1
7926 static tTestDesc aVa_I960_MacroTests[] = {
7927   { TT_EGREP,    zVa_I960_MacroSelect0, (regex_t*)NULL }, };
7930  *  Fix Command Arguments for Va_I960_Macro
7931  */
7932 static const char* apzVa_I960_MacroPatch[] = {
7933     "format",
7934     "__vx%1",
7935     (char*)NULL };
7937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7939  *  Description of Void_Null fix
7940  */
7941 tSCC zVoid_NullName[] =
7942      "void_null";
7945  *  File name selection pattern
7946  */
7947 tSCC zVoid_NullList[] =
7948   "curses.h\0dbm.h\0locale.h\0stdio.h\0stdlib.h\0string.h\0time.h\0unistd.h\0sys/dir.h\0sys/param.h\0sys/types.h\0";
7950  *  Machine/OS name selection pattern
7951  */
7952 #define apzVoid_NullMachs (const char**)NULL
7955  *  content selection pattern - do fix if pattern found
7956  */
7957 tSCC zVoid_NullSelect0[] =
7958        "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
7961  *  content bypass pattern - skip fix if pattern found
7962  */
7963 tSCC zVoid_NullBypass0[] =
7964        "__cplusplus";
7966 #define    VOID_NULL_TEST_CT  2
7967 static tTestDesc aVoid_NullTests[] = {
7968   { TT_NEGREP,   zVoid_NullBypass0, (regex_t*)NULL },
7969   { TT_EGREP,    zVoid_NullSelect0, (regex_t*)NULL }, };
7972  *  Fix Command Arguments for Void_Null
7973  */
7974 static const char* apzVoid_NullPatch[] = {
7975     "format",
7976     "#define NULL 0",
7977     (char*)NULL };
7979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7981  *  Description of Vxworks_Gcc_Problem fix
7982  */
7983 tSCC zVxworks_Gcc_ProblemName[] =
7984      "vxworks_gcc_problem";
7987  *  File name selection pattern
7988  */
7989 tSCC zVxworks_Gcc_ProblemList[] =
7990   "types/vxTypesBase.h\0";
7992  *  Machine/OS name selection pattern
7993  */
7994 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
7997  *  content selection pattern - do fix if pattern found
7998  */
7999 tSCC zVxworks_Gcc_ProblemSelect0[] =
8000        "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8002 #define    VXWORKS_GCC_PROBLEM_TEST_CT  1
8003 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8004   { TT_EGREP,    zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8007  *  Fix Command Arguments for Vxworks_Gcc_Problem
8008  */
8009 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
8010     "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8011     "-e", "/[ \t]size_t/i\\\n\
8012 #ifndef _GCC_SIZE_T\\\n\
8013 #define _GCC_SIZE_T\n",
8014     "-e", "/[ \t]size_t/a\\\n\
8015 #endif\n",
8016     "-e", "/[ \t]ptrdiff_t/i\\\n\
8017 #ifndef _GCC_PTRDIFF_T\\\n\
8018 #define _GCC_PTRDIFF_T\n",
8019     "-e", "/[ \t]ptrdiff_t/a\\\n\
8020 #endif\n",
8021     "-e", "/[ \t]wchar_t/i\\\n\
8022 #ifndef _GCC_WCHAR_T\\\n\
8023 #define _GCC_WCHAR_T\n",
8024     "-e", "/[ \t]wchar_t/a\\\n\
8025 #endif\n",
8026     (char*)NULL };
8028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8030  *  Description of Vxworks_Needs_Vxtypes fix
8031  */
8032 tSCC zVxworks_Needs_VxtypesName[] =
8033      "vxworks_needs_vxtypes";
8036  *  File name selection pattern
8037  */
8038 tSCC zVxworks_Needs_VxtypesList[] =
8039   "time.h\0";
8041  *  Machine/OS name selection pattern
8042  */
8043 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8046  *  content selection pattern - do fix if pattern found
8047  */
8048 tSCC zVxworks_Needs_VxtypesSelect0[] =
8049        "uint_t([ \t]+_clocks_per_sec)";
8051 #define    VXWORKS_NEEDS_VXTYPES_TEST_CT  1
8052 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8053   { TT_EGREP,    zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8056  *  Fix Command Arguments for Vxworks_Needs_Vxtypes
8057  */
8058 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8059     "format",
8060     "unsigned int%1",
8061     (char*)NULL };
8063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8065  *  Description of Vxworks_Needs_Vxworks fix
8066  */
8067 tSCC zVxworks_Needs_VxworksName[] =
8068      "vxworks_needs_vxworks";
8071  *  File name selection pattern
8072  */
8073 tSCC zVxworks_Needs_VxworksList[] =
8074   "sys/stat.h\0";
8076  *  Machine/OS name selection pattern
8077  */
8078 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8081  *  content selection pattern - do fix if pattern found
8082  */
8083 tSCC zVxworks_Needs_VxworksSelect0[] =
8084        "#[ \t]define[ \t]+__INCstath";
8087  *  perform the 'test' shell command - do fix on success
8088  */
8089 tSCC zVxworks_Needs_VxworksTest0[] =
8090        " -r types/vxTypesOld.h";
8091 tSCC zVxworks_Needs_VxworksTest1[] =
8092        " -n \"`egrep '#include' $file`\"";
8093 tSCC zVxworks_Needs_VxworksTest2[] =
8094        " -n \"`egrep ULONG $file`\"";
8096 #define    VXWORKS_NEEDS_VXWORKS_TEST_CT  4
8097 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8098   { TT_TEST,     zVxworks_Needs_VxworksTest0,   0 /* unused */ },
8099   { TT_TEST,     zVxworks_Needs_VxworksTest1,   0 /* unused */ },
8100   { TT_TEST,     zVxworks_Needs_VxworksTest2,   0 /* unused */ },
8101   { TT_EGREP,    zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8104  *  Fix Command Arguments for Vxworks_Needs_Vxworks
8105  */
8106 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
8107     "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8108 #include <types/vxTypesOld.h>\n",
8109     (char*)NULL };
8111 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8113  *  Description of Vxworks_Time fix
8114  */
8115 tSCC zVxworks_TimeName[] =
8116      "vxworks_time";
8119  *  File name selection pattern
8120  */
8121 tSCC zVxworks_TimeList[] =
8122   "time.h\0";
8124  *  Machine/OS name selection pattern
8125  */
8126 #define apzVxworks_TimeMachs (const char**)NULL
8129  *  content selection pattern - do fix if pattern found
8130  */
8131 tSCC zVxworks_TimeSelect0[] =
8132        "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8135  *  perform the 'test' shell command - do fix on success
8136  */
8137 tSCC zVxworks_TimeTest0[] =
8138        " -r vxWorks.h";
8140 #define    VXWORKS_TIME_TEST_CT  2
8141 static tTestDesc aVxworks_TimeTests[] = {
8142   { TT_TEST,     zVxworks_TimeTest0,   0 /* unused */ },
8143   { TT_EGREP,    zVxworks_TimeSelect0, (regex_t*)NULL }, };
8146  *  Fix Command Arguments for Vxworks_Time
8147  */
8148 static const char* apzVxworks_TimePatch[] = {
8149     "format",
8150     "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8151 #ifdef __cplusplus\n\
8152 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8153 #else\n\
8154 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8155 #endif\n\
8156 #define __gcc_VOIDFUNCPTR_defined\n\
8157 #endif\n\
8158 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8159     (char*)NULL };
8161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8163  *  Description of Windiss_Math1 fix
8164  */
8165 tSCC zWindiss_Math1Name[] =
8166      "windiss_math1";
8169  *  File name selection pattern
8170  */
8171 tSCC zWindiss_Math1List[] =
8172   "math.h\0";
8174  *  Machine/OS name selection pattern
8175  */
8176 tSCC* apzWindiss_Math1Machs[] = {
8177         "*-*-windiss",
8178         (const char*)NULL };
8179 #define WINDISS_MATH1_TEST_CT  0
8180 #define aWindiss_Math1Tests   (tTestDesc*)NULL
8183  *  Fix Command Arguments for Windiss_Math1
8184  */
8185 static const char* apzWindiss_Math1Patch[] = { "sed",
8186     "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
8187     (char*)NULL };
8189 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8191  *  Description of Windiss_Math2 fix
8192  */
8193 tSCC zWindiss_Math2Name[] =
8194      "windiss_math2";
8197  *  File name selection pattern
8198  */
8199 tSCC zWindiss_Math2List[] =
8200   "math.h\0";
8202  *  Machine/OS name selection pattern
8203  */
8204 tSCC* apzWindiss_Math2Machs[] = {
8205         "*-*-windiss",
8206         (const char*)NULL };
8207 #define WINDISS_MATH2_TEST_CT  0
8208 #define aWindiss_Math2Tests   (tTestDesc*)NULL
8211  *  Fix Command Arguments for Windiss_Math2
8212  */
8213 static const char* apzWindiss_Math2Patch[] = { "sed",
8214     "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
8215     (char*)NULL };
8217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8219  *  Description of Windiss_Valist fix
8220  */
8221 tSCC zWindiss_ValistName[] =
8222      "windiss_valist";
8225  *  File name selection pattern
8226  */
8227 #define zWindiss_ValistList (char*)NULL
8229  *  Machine/OS name selection pattern
8230  */
8231 tSCC* apzWindiss_ValistMachs[] = {
8232         "*-*-windiss",
8233         (const char*)NULL };
8236  *  content selection pattern - do fix if pattern found
8237  */
8238 tSCC zWindiss_ValistSelect0[] =
8239        "(#include.*)diab/va_list.h";
8241 #define    WINDISS_VALIST_TEST_CT  1
8242 static tTestDesc aWindiss_ValistTests[] = {
8243   { TT_EGREP,    zWindiss_ValistSelect0, (regex_t*)NULL }, };
8246  *  Fix Command Arguments for Windiss_Valist
8247  */
8248 static const char* apzWindiss_ValistPatch[] = { "sed",
8249     "-e", "s|diab/va_list.h|stdarg.h|",
8250     (char*)NULL };
8252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8254  *  Description of X11_Class fix
8255  */
8256 tSCC zX11_ClassName[] =
8257      "x11_class";
8260  *  File name selection pattern
8261  */
8262 tSCC zX11_ClassList[] =
8263   "X11/ShellP.h\0";
8265  *  Machine/OS name selection pattern
8266  */
8267 #define apzX11_ClassMachs (const char**)NULL
8270  *  content selection pattern - do fix if pattern found
8271  */
8272 tSCC zX11_ClassSelect0[] =
8273        "^([ \t]*char \\*)class;(.*)";
8276  *  content bypass pattern - skip fix if pattern found
8277  */
8278 tSCC zX11_ClassBypass0[] =
8279        "__cplusplus";
8281 #define    X11_CLASS_TEST_CT  2
8282 static tTestDesc aX11_ClassTests[] = {
8283   { TT_NEGREP,   zX11_ClassBypass0, (regex_t*)NULL },
8284   { TT_EGREP,    zX11_ClassSelect0, (regex_t*)NULL }, };
8287  *  Fix Command Arguments for X11_Class
8288  */
8289 static const char* apzX11_ClassPatch[] = {
8290     "format",
8291     "#ifdef __cplusplus\n\
8292 %1c_class;%2\n\
8293 #else\n\
8294 %1class;%2\n\
8295 #endif",
8296     (char*)NULL };
8298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8300  *  Description of X11_Class_Usage fix
8301  */
8302 tSCC zX11_Class_UsageName[] =
8303      "x11_class_usage";
8306  *  File name selection pattern
8307  */
8308 tSCC zX11_Class_UsageList[] =
8309   "Xm/BaseClassI.h\0";
8311  *  Machine/OS name selection pattern
8312  */
8313 #define apzX11_Class_UsageMachs (const char**)NULL
8316  *  content selection pattern - do fix if pattern found
8317  */
8318 tSCC zX11_Class_UsageSelect0[] =
8319        " class\\)";
8322  *  content bypass pattern - skip fix if pattern found
8323  */
8324 tSCC zX11_Class_UsageBypass0[] =
8325        "__cplusplus";
8327 #define    X11_CLASS_USAGE_TEST_CT  2
8328 static tTestDesc aX11_Class_UsageTests[] = {
8329   { TT_NEGREP,   zX11_Class_UsageBypass0, (regex_t*)NULL },
8330   { TT_EGREP,    zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8333  *  Fix Command Arguments for X11_Class_Usage
8334  */
8335 static const char* apzX11_Class_UsagePatch[] = {
8336     "format",
8337     " c_class)",
8338     (char*)NULL };
8340 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8342  *  Description of X11_New fix
8343  */
8344 tSCC zX11_NewName[] =
8345      "x11_new";
8348  *  File name selection pattern
8349  */
8350 tSCC zX11_NewList[] =
8351   "Xm/Traversal.h\0";
8353  *  Machine/OS name selection pattern
8354  */
8355 #define apzX11_NewMachs (const char**)NULL
8358  *  content bypass pattern - skip fix if pattern found
8359  */
8360 tSCC zX11_NewBypass0[] =
8361        "__cplusplus";
8363 #define    X11_NEW_TEST_CT  1
8364 static tTestDesc aX11_NewTests[] = {
8365   { TT_NEGREP,   zX11_NewBypass0, (regex_t*)NULL }, };
8368  *  Fix Command Arguments for X11_New
8369  */
8370 static const char* apzX11_NewPatch[] = { "sed",
8371     "-e", "/Widget\told, new;/i\\\n\
8372 #ifdef __cplusplus\\\n\
8373 \tWidget\told, c_new;\\\n\
8374 #else\n",
8375     "-e", "/Widget\told, new;/a\\\n\
8376 #endif\n",
8377     "-e", "s/Widget new,/Widget c_new,/g",
8378     (char*)NULL };
8380 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8382  *  Description of X11_Sprintf fix
8383  */
8384 tSCC zX11_SprintfName[] =
8385      "x11_sprintf";
8388  *  File name selection pattern
8389  */
8390 tSCC zX11_SprintfList[] =
8391   "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8393  *  Machine/OS name selection pattern
8394  */
8395 #define apzX11_SprintfMachs (const char**)NULL
8398  *  content selection pattern - do fix if pattern found
8399  */
8400 tSCC zX11_SprintfSelect0[] =
8401        "^extern char \\*\tsprintf\\(\\);$";
8403 #define    X11_SPRINTF_TEST_CT  1
8404 static tTestDesc aX11_SprintfTests[] = {
8405   { TT_EGREP,    zX11_SprintfSelect0, (regex_t*)NULL }, };
8408  *  Fix Command Arguments for X11_Sprintf
8409  */
8410 static const char* apzX11_SprintfPatch[] = {
8411     "format",
8412     "#ifndef __STDC__\n\
8413 %0\n\
8414 #endif /* !defined __STDC__ */",
8415     (char*)NULL };
8418 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8420  *  List of all fixes
8421  */
8422 #define REGEX_COUNT          250
8423 #define MACH_LIST_SIZE_LIMIT 261
8424 #define FIX_COUNT            207
8427  *  Enumerate the fixes
8428  */
8429 typedef enum {
8430     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8431     AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8432     AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8433     AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8434     AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8435     AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8436     AAB_SUN_MEMCPY_FIXIDX,
8437     AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
8438     AAB_ULTRIX_LIMITS_FIXIDX,
8439     AAB_ULTRIX_MEMORY_FIXIDX,
8440     AAB_ULTRIX_STRING_FIXIDX,
8441     AIX_PTHREAD_FIXIDX,
8442     AIX_SYSMACHINE_FIXIDX,
8443     AIX_SYSWAIT_FIXIDX,
8444     AIX_SYSWAIT_2_FIXIDX,
8445     AIX_VOLATILE_FIXIDX,
8446     ALPHA___ASSERT_FIXIDX,
8447     ALPHA___EXTERN_PREFIX_FIXIDX,
8448     ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8449     ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8450     ALPHA_ASSERT_FIXIDX,
8451     ALPHA_BAD_LVAL_FIXIDX,
8452     ALPHA_GETOPT_FIXIDX,
8453     ALPHA_PARENS_FIXIDX,
8454     ALPHA_PTHREAD_FIXIDX,
8455     ALPHA_PTHREAD_GCC_FIXIDX,
8456     ALPHA_PTHREAD_INIT_FIXIDX,
8457     ALPHA_SBRK_FIXIDX,
8458     ALPHA_WCHAR_FIXIDX,
8459     AVOID_BOOL_DEFINE_FIXIDX,
8460     AVOID_BOOL_TYPE_FIXIDX,
8461     AVOID_WCHAR_T_TYPE_FIXIDX,
8462     BAD_STRUCT_TERM_FIXIDX,
8463     BADQUOTE_FIXIDX,
8464     BROKEN_ASSERT_STDIO_FIXIDX,
8465     BROKEN_ASSERT_STDLIB_FIXIDX,
8466     BROKEN_CABS_FIXIDX,
8467     BROKEN_NAN_FIXIDX,
8468     BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8469     CTRL_QUOTES_DEF_FIXIDX,
8470     CTRL_QUOTES_USE_FIXIDX,
8471     CXX_UNREADY_FIXIDX,
8472     DARWIN_GCC4_BREAKAGE_FIXIDX,
8473     DARWIN_PRIVATE_EXTERN_FIXIDX,
8474     DEC_INTERN_ASM_FIXIDX,
8475     DJGPP_WCHAR_H_FIXIDX,
8476     ECD_CURSOR_FIXIDX,
8477     EXCEPTION_STRUCTURE_FIXIDX,
8478     FREEBSD_GCC3_BREAKAGE_FIXIDX,
8479     FREEBSD_GCC4_BREAKAGE_FIXIDX,
8480     GLIBC_C99_INLINE_1_FIXIDX,
8481     GLIBC_C99_INLINE_2_FIXIDX,
8482     GLIBC_C99_INLINE_3_FIXIDX,
8483     GLIBC_C99_INLINE_4_FIXIDX,
8484     GLIBC_MUTEX_INIT_FIXIDX,
8485     GNU_TYPES_FIXIDX,
8486     HP_INLINE_FIXIDX,
8487     HP_SYSFILE_FIXIDX,
8488     HPUX10_CPP_POW_INLINE_FIXIDX,
8489     HPUX11_CPP_POW_INLINE_FIXIDX,
8490     HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8491     HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8492     HPUX10_STDIO_DECLARATIONS_FIXIDX,
8493     HPUX11_ABS_FIXIDX,
8494     HPUX11_FABSF_FIXIDX,
8495     HPUX11_SIZE_T_FIXIDX,
8496     HPUX11_SNPRINTF_FIXIDX,
8497     HPUX11_UINT32_C_FIXIDX,
8498     HPUX11_VSNPRINTF_FIXIDX,
8499     HPUX8_BOGUS_INLINES_FIXIDX,
8500     HPUX_CTYPE_MACROS_FIXIDX,
8501     HPUX_HTONL_FIXIDX,
8502     HPUX_LONG_DOUBLE_FIXIDX,
8503     HPUX_SYSTIME_FIXIDX,
8504     HPUX_SPU_INFO_FIXIDX,
8505     HPUX11_EXTERN_SENDFILE_FIXIDX,
8506     HPUX11_EXTERN_SENDPATH_FIXIDX,
8507     HPUX_EXTERN_ERRNO_FIXIDX,
8508     HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8509     HUGE_VAL_HEX_FIXIDX,
8510     HUGE_VALF_HEX_FIXIDX,
8511     HUGE_VALL_HEX_FIXIDX,
8512     INT_ABORT_FREE_AND_EXIT_FIXIDX,
8513     IO_QUOTES_DEF_FIXIDX,
8514     IO_QUOTES_USE_FIXIDX,
8515     IP_MISSING_SEMI_FIXIDX,
8516     IRIX___RESTRICT_FIXIDX,
8517     IRIX___GENERIC1_FIXIDX,
8518     IRIX___GENERIC2_FIXIDX,
8519     IRIX_ASM_APOSTROPHE_FIXIDX,
8520     IRIX_LIMITS_CONST_FIXIDX,
8521     IRIX_SOCKLEN_T_FIXIDX,
8522     IRIX_STDIO_VA_LIST_FIXIDX,
8523     IRIX_WCSFTIME_FIXIDX,
8524     ISC_FMOD_FIXIDX,
8525     ISC_OMITS_WITH_STDC_FIXIDX,
8526     KANDR_CONCAT_FIXIDX,
8527     LIBC1_G_VA_LIST_FIXIDX,
8528     LIBC1_IFDEFD_MEMX_FIXIDX,
8529     LINUX_IA64_UCONTEXT_FIXIDX,
8530     LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8531     LYNXOS_MISSING_PUTENV_FIXIDX,
8532     MACHINE_ANSI_H_VA_LIST_FIXIDX,
8533     MACHINE_NAME_FIXIDX,
8534     MATH_EXCEPTION_FIXIDX,
8535     MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8536     NESTED_AUTH_DES_FIXIDX,
8537     NESTED_MOTOROLA_FIXIDX,
8538     NESTED_SYS_LIMITS_FIXIDX,
8539     NETBSD_EXTRA_SEMICOLON_FIXIDX,
8540     NEXT_MATH_PREFIX_FIXIDX,
8541     NEXT_TEMPLATE_FIXIDX,
8542     NEXT_VOLITILE_FIXIDX,
8543     NEXT_WAIT_UNION_FIXIDX,
8544     NODEENT_SYNTAX_FIXIDX,
8545     OBSTACK_LVALUE_CAST_FIXIDX,
8546     OSF_NAMESPACE_A_FIXIDX,
8547     OSF_NAMESPACE_C_FIXIDX,
8548     PTHREAD_PAGE_SIZE_FIXIDX,
8549     PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8550     READ_RET_TYPE_FIXIDX,
8551     RPC_XDR_LVALUE_CAST_A_FIXIDX,
8552     RPC_XDR_LVALUE_CAST_B_FIXIDX,
8553     RS6000_DOUBLE_FIXIDX,
8554     RS6000_FCHMOD_FIXIDX,
8555     RS6000_PARAM_FIXIDX,
8556     SCO_MATH_FIXIDX,
8557     SCO_REGSET_FIXIDX,
8558     SCO_STATIC_FUNC_FIXIDX,
8559     SCO_UTIME_FIXIDX,
8560     SOLARIS_MATH_1_FIXIDX,
8561     SOLARIS_MATH_2_FIXIDX,
8562     SOLARIS_MATH_3_FIXIDX,
8563     SOLARIS_MATH_4_FIXIDX,
8564     SOLARIS_MATH_5_FIXIDX,
8565     SOLARIS_MATH_6_FIXIDX,
8566     SOLARIS_MATH_7_FIXIDX,
8567     SOLARIS_MATH_8_FIXIDX,
8568     SOLARIS_MATH_9_FIXIDX,
8569     SOLARIS_MUTEX_INIT_1_FIXIDX,
8570     SOLARIS_MUTEX_INIT_2_FIXIDX,
8571     SOLARIS_RWLOCK_INIT_1_FIXIDX,
8572     SOLARIS_ONCE_INIT_1_FIXIDX,
8573     SOLARIS_ONCE_INIT_2_FIXIDX,
8574     SOLARIS_SOCKET_FIXIDX,
8575     SOLARIS_STDIO_TAG_FIXIDX,
8576     SOLARIS_UNISTD_FIXIDX,
8577     SOLARIS_WIDEC_FIXIDX,
8578     STATSSWTCH_FIXIDX,
8579     STDIO_STDARG_H_FIXIDX,
8580     STDIO_VA_LIST_FIXIDX,
8581     STDIO_VA_LIST_CLIENTS_FIXIDX,
8582     STRICT_ANSI_NOT_FIXIDX,
8583     STRICT_ANSI_NOT_CTD_FIXIDX,
8584     STRICT_ANSI_ONLY_FIXIDX,
8585     STRUCT_FILE_FIXIDX,
8586     STRUCT_SOCKADDR_FIXIDX,
8587     SUN_AUTH_PROTO_FIXIDX,
8588     SUN_BOGUS_IFDEF_FIXIDX,
8589     SUN_CATMACRO_FIXIDX,
8590     SUN_MALLOC_FIXIDX,
8591     SUN_RUSERS_SEMI_FIXIDX,
8592     SUN_SIGNAL_FIXIDX,
8593     SUNOS_STRLEN_FIXIDX,
8594     SVR4_DISABLE_OPT_FIXIDX,
8595     SVR4_GETCWD_FIXIDX,
8596     SVR4_KRNL_FIXIDX,
8597     SVR4_PROFIL_FIXIDX,
8598     SVR4_SIGHANDLER_TYPE_FIXIDX,
8599     SVR4_UNDECLARED_GETRNGE_FIXIDX,
8600     SYSV68_STRING_FIXIDX,
8601     SYSZ_STDLIB_FOR_SUN_FIXIDX,
8602     THREAD_KEYWORD_FIXIDX,
8603     TINFO_CPLUSPLUS_FIXIDX,
8604     ULTRIX_ATEXIT_PARAM_FIXIDX,
8605     ULTRIX_ATOF_PARAM_FIXIDX,
8606     ULTRIX_CONST_FIXIDX,
8607     ULTRIX_CONST2_FIXIDX,
8608     ULTRIX_CONST3_FIXIDX,
8609     ULTRIX_FIX_FIXPROTO_FIXIDX,
8610     ULTRIX_IFDEF_FIXIDX,
8611     ULTRIX_LOCALE_FIXIDX,
8612     ULTRIX_MATH_IFDEF_FIXIDX,
8613     ULTRIX_NESTED_IOCTL_FIXIDX,
8614     ULTRIX_NESTED_SVC_FIXIDX,
8615     ULTRIX_STAT_FIXIDX,
8616     ULTRIX_STATIC_FIXIDX,
8617     ULTRIX_STDLIB_FIXIDX,
8618     ULTRIX_STRINGS_FIXIDX,
8619     ULTRIX_STRINGS2_FIXIDX,
8620     ULTRIX_SYS_TIME_FIXIDX,
8621     ULTRIX_UNISTD_FIXIDX,
8622     UNICOSMK_RESTRICT_FIXIDX,
8623     UW7_BYTEORDER_FIX_FIXIDX,
8624     VA_I960_MACRO_FIXIDX,
8625     VOID_NULL_FIXIDX,
8626     VXWORKS_GCC_PROBLEM_FIXIDX,
8627     VXWORKS_NEEDS_VXTYPES_FIXIDX,
8628     VXWORKS_NEEDS_VXWORKS_FIXIDX,
8629     VXWORKS_TIME_FIXIDX,
8630     WINDISS_MATH1_FIXIDX,
8631     WINDISS_MATH2_FIXIDX,
8632     WINDISS_VALIST_FIXIDX,
8633     X11_CLASS_FIXIDX,
8634     X11_CLASS_USAGE_FIXIDX,
8635     X11_NEW_FIXIDX,
8636     X11_SPRINTF_FIXIDX
8637 } t_fixinc_idx;
8639 tFixDesc fixDescList[ FIX_COUNT ] = {
8640   {  zAab_Darwin7_9_Long_Double_FuncsName,    zAab_Darwin7_9_Long_Double_FuncsList,
8641      apzAab_Darwin7_9_Long_Double_FuncsMachs,
8642      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8643      aAab_Darwin7_9_Long_Double_FuncsTests,   apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8645   {  zAab_Darwin7_9_Long_Double_Funcs_2Name,    zAab_Darwin7_9_Long_Double_Funcs_2List,
8646      apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8647      AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8648      aAab_Darwin7_9_Long_Double_Funcs_2Tests,   apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8650   {  zAab_Fd_Zero_Asm_Posix_Types_HName,    zAab_Fd_Zero_Asm_Posix_Types_HList,
8651      apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8652      AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8653      aAab_Fd_Zero_Asm_Posix_Types_HTests,   apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8655   {  zAab_Fd_Zero_Gnu_Types_HName,    zAab_Fd_Zero_Gnu_Types_HList,
8656      apzAab_Fd_Zero_Gnu_Types_HMachs,
8657      AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8658      aAab_Fd_Zero_Gnu_Types_HTests,   apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8660   {  zAab_Fd_Zero_Selectbits_HName,    zAab_Fd_Zero_Selectbits_HList,
8661      apzAab_Fd_Zero_Selectbits_HMachs,
8662      AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8663      aAab_Fd_Zero_Selectbits_HTests,   apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8665   {  zAab_Solaris_Sys_Varargs_HName,    zAab_Solaris_Sys_Varargs_HList,
8666      apzAab_Solaris_Sys_Varargs_HMachs,
8667      AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8668      aAab_Solaris_Sys_Varargs_HTests,   apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8670   {  zAab_Sun_MemcpyName,    zAab_Sun_MemcpyList,
8671      apzAab_Sun_MemcpyMachs,
8672      AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8673      aAab_Sun_MemcpyTests,   apzAab_Sun_MemcpyPatch, 0 },
8675   {  zAab_Ultrix_Ansi_CompatName,    zAab_Ultrix_Ansi_CompatList,
8676      apzAab_Ultrix_Ansi_CompatMachs,
8677      AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8678      aAab_Ultrix_Ansi_CompatTests,   apzAab_Ultrix_Ansi_CompatPatch, 0 },
8680   {  zAab_Ultrix_LimitsName,    zAab_Ultrix_LimitsList,
8681      apzAab_Ultrix_LimitsMachs,
8682      AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8683      aAab_Ultrix_LimitsTests,   apzAab_Ultrix_LimitsPatch, 0 },
8685   {  zAab_Ultrix_MemoryName,    zAab_Ultrix_MemoryList,
8686      apzAab_Ultrix_MemoryMachs,
8687      AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8688      aAab_Ultrix_MemoryTests,   apzAab_Ultrix_MemoryPatch, 0 },
8690   {  zAab_Ultrix_StringName,    zAab_Ultrix_StringList,
8691      apzAab_Ultrix_StringMachs,
8692      AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8693      aAab_Ultrix_StringTests,   apzAab_Ultrix_StringPatch, 0 },
8695   {  zAix_PthreadName,    zAix_PthreadList,
8696      apzAix_PthreadMachs,
8697      AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8698      aAix_PthreadTests,   apzAix_PthreadPatch, 0 },
8700   {  zAix_SysmachineName,    zAix_SysmachineList,
8701      apzAix_SysmachineMachs,
8702      AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8703      aAix_SysmachineTests,   apzAix_SysmachinePatch, 0 },
8705   {  zAix_SyswaitName,    zAix_SyswaitList,
8706      apzAix_SyswaitMachs,
8707      AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8708      aAix_SyswaitTests,   apzAix_SyswaitPatch, 0 },
8710   {  zAix_Syswait_2Name,    zAix_Syswait_2List,
8711      apzAix_Syswait_2Machs,
8712      AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8713      aAix_Syswait_2Tests,   apzAix_Syswait_2Patch, 0 },
8715   {  zAix_VolatileName,    zAix_VolatileList,
8716      apzAix_VolatileMachs,
8717      AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8718      aAix_VolatileTests,   apzAix_VolatilePatch, 0 },
8720   {  zAlpha___AssertName,    zAlpha___AssertList,
8721      apzAlpha___AssertMachs,
8722      ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8723      aAlpha___AssertTests,   apzAlpha___AssertPatch, 0 },
8725   {  zAlpha___Extern_PrefixName,    zAlpha___Extern_PrefixList,
8726      apzAlpha___Extern_PrefixMachs,
8727      ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8728      aAlpha___Extern_PrefixTests,   apzAlpha___Extern_PrefixPatch, 0 },
8730   {  zAlpha___Extern_Prefix_StandardsName,    zAlpha___Extern_Prefix_StandardsList,
8731      apzAlpha___Extern_Prefix_StandardsMachs,
8732      ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8733      aAlpha___Extern_Prefix_StandardsTests,   apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8735   {  zAlpha___Extern_Prefix_Sys_StatName,    zAlpha___Extern_Prefix_Sys_StatList,
8736      apzAlpha___Extern_Prefix_Sys_StatMachs,
8737      ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8738      aAlpha___Extern_Prefix_Sys_StatTests,   apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8740   {  zAlpha_AssertName,    zAlpha_AssertList,
8741      apzAlpha_AssertMachs,
8742      ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8743      aAlpha_AssertTests,   apzAlpha_AssertPatch, 0 },
8745   {  zAlpha_Bad_LvalName,    zAlpha_Bad_LvalList,
8746      apzAlpha_Bad_LvalMachs,
8747      ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8748      aAlpha_Bad_LvalTests,   apzAlpha_Bad_LvalPatch, 0 },
8750   {  zAlpha_GetoptName,    zAlpha_GetoptList,
8751      apzAlpha_GetoptMachs,
8752      ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8753      aAlpha_GetoptTests,   apzAlpha_GetoptPatch, 0 },
8755   {  zAlpha_ParensName,    zAlpha_ParensList,
8756      apzAlpha_ParensMachs,
8757      ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8758      aAlpha_ParensTests,   apzAlpha_ParensPatch, 0 },
8760   {  zAlpha_PthreadName,    zAlpha_PthreadList,
8761      apzAlpha_PthreadMachs,
8762      ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8763      aAlpha_PthreadTests,   apzAlpha_PthreadPatch, 0 },
8765   {  zAlpha_Pthread_GccName,    zAlpha_Pthread_GccList,
8766      apzAlpha_Pthread_GccMachs,
8767      ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8768      aAlpha_Pthread_GccTests,   apzAlpha_Pthread_GccPatch, 0 },
8770   {  zAlpha_Pthread_InitName,    zAlpha_Pthread_InitList,
8771      apzAlpha_Pthread_InitMachs,
8772      ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8773      aAlpha_Pthread_InitTests,   apzAlpha_Pthread_InitPatch, 0 },
8775   {  zAlpha_SbrkName,    zAlpha_SbrkList,
8776      apzAlpha_SbrkMachs,
8777      ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8778      aAlpha_SbrkTests,   apzAlpha_SbrkPatch, 0 },
8780   {  zAlpha_WcharName,    zAlpha_WcharList,
8781      apzAlpha_WcharMachs,
8782      ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
8783      aAlpha_WcharTests,   apzAlpha_WcharPatch, 0 },
8785   {  zAvoid_Bool_DefineName,    zAvoid_Bool_DefineList,
8786      apzAvoid_Bool_DefineMachs,
8787      AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8788      aAvoid_Bool_DefineTests,   apzAvoid_Bool_DefinePatch, 0 },
8790   {  zAvoid_Bool_TypeName,    zAvoid_Bool_TypeList,
8791      apzAvoid_Bool_TypeMachs,
8792      AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8793      aAvoid_Bool_TypeTests,   apzAvoid_Bool_TypePatch, 0 },
8795   {  zAvoid_Wchar_T_TypeName,    zAvoid_Wchar_T_TypeList,
8796      apzAvoid_Wchar_T_TypeMachs,
8797      AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8798      aAvoid_Wchar_T_TypeTests,   apzAvoid_Wchar_T_TypePatch, 0 },
8800   {  zBad_Struct_TermName,    zBad_Struct_TermList,
8801      apzBad_Struct_TermMachs,
8802      BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8803      aBad_Struct_TermTests,   apzBad_Struct_TermPatch, 0 },
8805   {  zBadquoteName,    zBadquoteList,
8806      apzBadquoteMachs,
8807      BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8808      aBadquoteTests,   apzBadquotePatch, 0 },
8810   {  zBroken_Assert_StdioName,    zBroken_Assert_StdioList,
8811      apzBroken_Assert_StdioMachs,
8812      BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8813      aBroken_Assert_StdioTests,   apzBroken_Assert_StdioPatch, 0 },
8815   {  zBroken_Assert_StdlibName,    zBroken_Assert_StdlibList,
8816      apzBroken_Assert_StdlibMachs,
8817      BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8818      aBroken_Assert_StdlibTests,   apzBroken_Assert_StdlibPatch, 0 },
8820   {  zBroken_CabsName,    zBroken_CabsList,
8821      apzBroken_CabsMachs,
8822      BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
8823      aBroken_CabsTests,   apzBroken_CabsPatch, 0 },
8825   {  zBroken_NanName,    zBroken_NanList,
8826      apzBroken_NanMachs,
8827      BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8828      aBroken_NanTests,   apzBroken_NanPatch, 0 },
8830   {  zBsd_Stdio_Attrs_ConflictName,    zBsd_Stdio_Attrs_ConflictList,
8831      apzBsd_Stdio_Attrs_ConflictMachs,
8832      BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8833      aBsd_Stdio_Attrs_ConflictTests,   apzBsd_Stdio_Attrs_ConflictPatch, 0 },
8835   {  zCtrl_Quotes_DefName,    zCtrl_Quotes_DefList,
8836      apzCtrl_Quotes_DefMachs,
8837      CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8838      aCtrl_Quotes_DefTests,   apzCtrl_Quotes_DefPatch, 0 },
8840   {  zCtrl_Quotes_UseName,    zCtrl_Quotes_UseList,
8841      apzCtrl_Quotes_UseMachs,
8842      CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8843      aCtrl_Quotes_UseTests,   apzCtrl_Quotes_UsePatch, 0 },
8845   {  zCxx_UnreadyName,    zCxx_UnreadyList,
8846      apzCxx_UnreadyMachs,
8847      CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8848      aCxx_UnreadyTests,   apzCxx_UnreadyPatch, 0 },
8850   {  zDarwin_Gcc4_BreakageName,    zDarwin_Gcc4_BreakageList,
8851      apzDarwin_Gcc4_BreakageMachs,
8852      DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8853      aDarwin_Gcc4_BreakageTests,   apzDarwin_Gcc4_BreakagePatch, 0 },
8855   {  zDarwin_Private_ExternName,    zDarwin_Private_ExternList,
8856      apzDarwin_Private_ExternMachs,
8857      DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8858      aDarwin_Private_ExternTests,   apzDarwin_Private_ExternPatch, 0 },
8860   {  zDec_Intern_AsmName,    zDec_Intern_AsmList,
8861      apzDec_Intern_AsmMachs,
8862      DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
8863      aDec_Intern_AsmTests,   apzDec_Intern_AsmPatch, 0 },
8865   {  zDjgpp_Wchar_HName,    zDjgpp_Wchar_HList,
8866      apzDjgpp_Wchar_HMachs,
8867      DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8868      aDjgpp_Wchar_HTests,   apzDjgpp_Wchar_HPatch, 0 },
8870   {  zEcd_CursorName,    zEcd_CursorList,
8871      apzEcd_CursorMachs,
8872      ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8873      aEcd_CursorTests,   apzEcd_CursorPatch, 0 },
8875   {  zException_StructureName,    zException_StructureList,
8876      apzException_StructureMachs,
8877      EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8878      aException_StructureTests,   apzException_StructurePatch, 0 },
8880   {  zFreebsd_Gcc3_BreakageName,    zFreebsd_Gcc3_BreakageList,
8881      apzFreebsd_Gcc3_BreakageMachs,
8882      FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8883      aFreebsd_Gcc3_BreakageTests,   apzFreebsd_Gcc3_BreakagePatch, 0 },
8885   {  zFreebsd_Gcc4_BreakageName,    zFreebsd_Gcc4_BreakageList,
8886      apzFreebsd_Gcc4_BreakageMachs,
8887      FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8888      aFreebsd_Gcc4_BreakageTests,   apzFreebsd_Gcc4_BreakagePatch, 0 },
8890   {  zGlibc_C99_Inline_1Name,    zGlibc_C99_Inline_1List,
8891      apzGlibc_C99_Inline_1Machs,
8892      GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8893      aGlibc_C99_Inline_1Tests,   apzGlibc_C99_Inline_1Patch, 0 },
8895   {  zGlibc_C99_Inline_2Name,    zGlibc_C99_Inline_2List,
8896      apzGlibc_C99_Inline_2Machs,
8897      GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
8898      aGlibc_C99_Inline_2Tests,   apzGlibc_C99_Inline_2Patch, 0 },
8900   {  zGlibc_C99_Inline_3Name,    zGlibc_C99_Inline_3List,
8901      apzGlibc_C99_Inline_3Machs,
8902      GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8903      aGlibc_C99_Inline_3Tests,   apzGlibc_C99_Inline_3Patch, 0 },
8905   {  zGlibc_C99_Inline_4Name,    zGlibc_C99_Inline_4List,
8906      apzGlibc_C99_Inline_4Machs,
8907      GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8908      aGlibc_C99_Inline_4Tests,   apzGlibc_C99_Inline_4Patch, 0 },
8910   {  zGlibc_Mutex_InitName,    zGlibc_Mutex_InitList,
8911      apzGlibc_Mutex_InitMachs,
8912      GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
8913      aGlibc_Mutex_InitTests,   apzGlibc_Mutex_InitPatch, 0 },
8915   {  zGnu_TypesName,    zGnu_TypesList,
8916      apzGnu_TypesMachs,
8917      GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
8918      aGnu_TypesTests,   apzGnu_TypesPatch, 0 },
8920   {  zHp_InlineName,    zHp_InlineList,
8921      apzHp_InlineMachs,
8922      HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8923      aHp_InlineTests,   apzHp_InlinePatch, 0 },
8925   {  zHp_SysfileName,    zHp_SysfileList,
8926      apzHp_SysfileMachs,
8927      HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8928      aHp_SysfileTests,   apzHp_SysfilePatch, 0 },
8930   {  zHpux10_Cpp_Pow_InlineName,    zHpux10_Cpp_Pow_InlineList,
8931      apzHpux10_Cpp_Pow_InlineMachs,
8932      HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8933      aHpux10_Cpp_Pow_InlineTests,   apzHpux10_Cpp_Pow_InlinePatch, 0 },
8935   {  zHpux11_Cpp_Pow_InlineName,    zHpux11_Cpp_Pow_InlineList,
8936      apzHpux11_Cpp_Pow_InlineMachs,
8937      HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8938      aHpux11_Cpp_Pow_InlineTests,   apzHpux11_Cpp_Pow_InlinePatch, 0 },
8940   {  zHpux10_Ctype_Declarations1Name,    zHpux10_Ctype_Declarations1List,
8941      apzHpux10_Ctype_Declarations1Machs,
8942      HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8943      aHpux10_Ctype_Declarations1Tests,   apzHpux10_Ctype_Declarations1Patch, 0 },
8945   {  zHpux10_Ctype_Declarations2Name,    zHpux10_Ctype_Declarations2List,
8946      apzHpux10_Ctype_Declarations2Machs,
8947      HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8948      aHpux10_Ctype_Declarations2Tests,   apzHpux10_Ctype_Declarations2Patch, 0 },
8950   {  zHpux10_Stdio_DeclarationsName,    zHpux10_Stdio_DeclarationsList,
8951      apzHpux10_Stdio_DeclarationsMachs,
8952      HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8953      aHpux10_Stdio_DeclarationsTests,   apzHpux10_Stdio_DeclarationsPatch, 0 },
8955   {  zHpux11_AbsName,    zHpux11_AbsList,
8956      apzHpux11_AbsMachs,
8957      HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8958      aHpux11_AbsTests,   apzHpux11_AbsPatch, 0 },
8960   {  zHpux11_FabsfName,    zHpux11_FabsfList,
8961      apzHpux11_FabsfMachs,
8962      HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8963      aHpux11_FabsfTests,   apzHpux11_FabsfPatch, 0 },
8965   {  zHpux11_Size_TName,    zHpux11_Size_TList,
8966      apzHpux11_Size_TMachs,
8967      HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8968      aHpux11_Size_TTests,   apzHpux11_Size_TPatch, 0 },
8970   {  zHpux11_SnprintfName,    zHpux11_SnprintfList,
8971      apzHpux11_SnprintfMachs,
8972      HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8973      aHpux11_SnprintfTests,   apzHpux11_SnprintfPatch, 0 },
8975   {  zHpux11_Uint32_CName,    zHpux11_Uint32_CList,
8976      apzHpux11_Uint32_CMachs,
8977      HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8978      aHpux11_Uint32_CTests,   apzHpux11_Uint32_CPatch, 0 },
8980   {  zHpux11_VsnprintfName,    zHpux11_VsnprintfList,
8981      apzHpux11_VsnprintfMachs,
8982      HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8983      aHpux11_VsnprintfTests,   apzHpux11_VsnprintfPatch, 0 },
8985   {  zHpux8_Bogus_InlinesName,    zHpux8_Bogus_InlinesList,
8986      apzHpux8_Bogus_InlinesMachs,
8987      HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
8988      aHpux8_Bogus_InlinesTests,   apzHpux8_Bogus_InlinesPatch, 0 },
8990   {  zHpux_Ctype_MacrosName,    zHpux_Ctype_MacrosList,
8991      apzHpux_Ctype_MacrosMachs,
8992      HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8993      aHpux_Ctype_MacrosTests,   apzHpux_Ctype_MacrosPatch, 0 },
8995   {  zHpux_HtonlName,    zHpux_HtonlList,
8996      apzHpux_HtonlMachs,
8997      HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8998      aHpux_HtonlTests,   apzHpux_HtonlPatch, 0 },
9000   {  zHpux_Long_DoubleName,    zHpux_Long_DoubleList,
9001      apzHpux_Long_DoubleMachs,
9002      HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9003      aHpux_Long_DoubleTests,   apzHpux_Long_DoublePatch, 0 },
9005   {  zHpux_SystimeName,    zHpux_SystimeList,
9006      apzHpux_SystimeMachs,
9007      HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9008      aHpux_SystimeTests,   apzHpux_SystimePatch, 0 },
9010   {  zHpux_Spu_InfoName,    zHpux_Spu_InfoList,
9011      apzHpux_Spu_InfoMachs,
9012      HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9013      aHpux_Spu_InfoTests,   apzHpux_Spu_InfoPatch, 0 },
9015   {  zHpux11_Extern_SendfileName,    zHpux11_Extern_SendfileList,
9016      apzHpux11_Extern_SendfileMachs,
9017      HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9018      aHpux11_Extern_SendfileTests,   apzHpux11_Extern_SendfilePatch, 0 },
9020   {  zHpux11_Extern_SendpathName,    zHpux11_Extern_SendpathList,
9021      apzHpux11_Extern_SendpathMachs,
9022      HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9023      aHpux11_Extern_SendpathTests,   apzHpux11_Extern_SendpathPatch, 0 },
9025   {  zHpux_Extern_ErrnoName,    zHpux_Extern_ErrnoList,
9026      apzHpux_Extern_ErrnoMachs,
9027      HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9028      aHpux_Extern_ErrnoTests,   apzHpux_Extern_ErrnoPatch, 0 },
9030   {  zHpux_Pthread_InitializersName,    zHpux_Pthread_InitializersList,
9031      apzHpux_Pthread_InitializersMachs,
9032      HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9033      aHpux_Pthread_InitializersTests,   apzHpux_Pthread_InitializersPatch, 0 },
9035   {  zHuge_Val_HexName,    zHuge_Val_HexList,
9036      apzHuge_Val_HexMachs,
9037      HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9038      aHuge_Val_HexTests,   apzHuge_Val_HexPatch, 0 },
9040   {  zHuge_Valf_HexName,    zHuge_Valf_HexList,
9041      apzHuge_Valf_HexMachs,
9042      HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9043      aHuge_Valf_HexTests,   apzHuge_Valf_HexPatch, 0 },
9045   {  zHuge_Vall_HexName,    zHuge_Vall_HexList,
9046      apzHuge_Vall_HexMachs,
9047      HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9048      aHuge_Vall_HexTests,   apzHuge_Vall_HexPatch, 0 },
9050   {  zInt_Abort_Free_And_ExitName,    zInt_Abort_Free_And_ExitList,
9051      apzInt_Abort_Free_And_ExitMachs,
9052      INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9053      aInt_Abort_Free_And_ExitTests,   apzInt_Abort_Free_And_ExitPatch, 0 },
9055   {  zIo_Quotes_DefName,    zIo_Quotes_DefList,
9056      apzIo_Quotes_DefMachs,
9057      IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9058      aIo_Quotes_DefTests,   apzIo_Quotes_DefPatch, 0 },
9060   {  zIo_Quotes_UseName,    zIo_Quotes_UseList,
9061      apzIo_Quotes_UseMachs,
9062      IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9063      aIo_Quotes_UseTests,   apzIo_Quotes_UsePatch, 0 },
9065   {  zIp_Missing_SemiName,    zIp_Missing_SemiList,
9066      apzIp_Missing_SemiMachs,
9067      IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9068      aIp_Missing_SemiTests,   apzIp_Missing_SemiPatch, 0 },
9070   {  zIrix___RestrictName,    zIrix___RestrictList,
9071      apzIrix___RestrictMachs,
9072      IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9073      aIrix___RestrictTests,   apzIrix___RestrictPatch, 0 },
9075   {  zIrix___Generic1Name,    zIrix___Generic1List,
9076      apzIrix___Generic1Machs,
9077      IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9078      aIrix___Generic1Tests,   apzIrix___Generic1Patch, 0 },
9080   {  zIrix___Generic2Name,    zIrix___Generic2List,
9081      apzIrix___Generic2Machs,
9082      IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9083      aIrix___Generic2Tests,   apzIrix___Generic2Patch, 0 },
9085   {  zIrix_Asm_ApostropheName,    zIrix_Asm_ApostropheList,
9086      apzIrix_Asm_ApostropheMachs,
9087      IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9088      aIrix_Asm_ApostropheTests,   apzIrix_Asm_ApostrophePatch, 0 },
9090   {  zIrix_Limits_ConstName,    zIrix_Limits_ConstList,
9091      apzIrix_Limits_ConstMachs,
9092      IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9093      aIrix_Limits_ConstTests,   apzIrix_Limits_ConstPatch, 0 },
9095   {  zIrix_Socklen_TName,    zIrix_Socklen_TList,
9096      apzIrix_Socklen_TMachs,
9097      IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9098      aIrix_Socklen_TTests,   apzIrix_Socklen_TPatch, 0 },
9100   {  zIrix_Stdio_Va_ListName,    zIrix_Stdio_Va_ListList,
9101      apzIrix_Stdio_Va_ListMachs,
9102      IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9103      aIrix_Stdio_Va_ListTests,   apzIrix_Stdio_Va_ListPatch, 0 },
9105   {  zIrix_WcsftimeName,    zIrix_WcsftimeList,
9106      apzIrix_WcsftimeMachs,
9107      IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9108      aIrix_WcsftimeTests,   apzIrix_WcsftimePatch, 0 },
9110   {  zIsc_FmodName,    zIsc_FmodList,
9111      apzIsc_FmodMachs,
9112      ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9113      aIsc_FmodTests,   apzIsc_FmodPatch, 0 },
9115   {  zIsc_Omits_With_StdcName,    zIsc_Omits_With_StdcList,
9116      apzIsc_Omits_With_StdcMachs,
9117      ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9118      aIsc_Omits_With_StdcTests,   apzIsc_Omits_With_StdcPatch, 0 },
9120   {  zKandr_ConcatName,    zKandr_ConcatList,
9121      apzKandr_ConcatMachs,
9122      KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9123      aKandr_ConcatTests,   apzKandr_ConcatPatch, 0 },
9125   {  zLibc1_G_Va_ListName,    zLibc1_G_Va_ListList,
9126      apzLibc1_G_Va_ListMachs,
9127      LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9128      aLibc1_G_Va_ListTests,   apzLibc1_G_Va_ListPatch, 0 },
9130   {  zLibc1_Ifdefd_MemxName,    zLibc1_Ifdefd_MemxList,
9131      apzLibc1_Ifdefd_MemxMachs,
9132      LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9133      aLibc1_Ifdefd_MemxTests,   apzLibc1_Ifdefd_MemxPatch, 0 },
9135   {  zLinux_Ia64_UcontextName,    zLinux_Ia64_UcontextList,
9136      apzLinux_Ia64_UcontextMachs,
9137      LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9138      aLinux_Ia64_UcontextTests,   apzLinux_Ia64_UcontextPatch, 0 },
9140   {  zLynxos_No_Warning_In_Sys_Time_HName,    zLynxos_No_Warning_In_Sys_Time_HList,
9141      apzLynxos_No_Warning_In_Sys_Time_HMachs,
9142      LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9143      aLynxos_No_Warning_In_Sys_Time_HTests,   apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9145   {  zLynxos_Missing_PutenvName,    zLynxos_Missing_PutenvList,
9146      apzLynxos_Missing_PutenvMachs,
9147      LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9148      aLynxos_Missing_PutenvTests,   apzLynxos_Missing_PutenvPatch, 0 },
9150   {  zMachine_Ansi_H_Va_ListName,    zMachine_Ansi_H_Va_ListList,
9151      apzMachine_Ansi_H_Va_ListMachs,
9152      MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9153      aMachine_Ansi_H_Va_ListTests,   apzMachine_Ansi_H_Va_ListPatch, 0 },
9155   {  zMachine_NameName,    zMachine_NameList,
9156      apzMachine_NameMachs,
9157      MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9158      aMachine_NameTests,   apzMachine_NamePatch, 0 },
9160   {  zMath_ExceptionName,    zMath_ExceptionList,
9161      apzMath_ExceptionMachs,
9162      MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9163      aMath_ExceptionTests,   apzMath_ExceptionPatch, 0 },
9165   {  zMath_Huge_Val_From_Dbl_MaxName,    zMath_Huge_Val_From_Dbl_MaxList,
9166      apzMath_Huge_Val_From_Dbl_MaxMachs,
9167      MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9168      aMath_Huge_Val_From_Dbl_MaxTests,   apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9170   {  zNested_Auth_DesName,    zNested_Auth_DesList,
9171      apzNested_Auth_DesMachs,
9172      NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9173      aNested_Auth_DesTests,   apzNested_Auth_DesPatch, 0 },
9175   {  zNested_MotorolaName,    zNested_MotorolaList,
9176      apzNested_MotorolaMachs,
9177      NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
9178      aNested_MotorolaTests,   apzNested_MotorolaPatch, 0 },
9180   {  zNested_Sys_LimitsName,    zNested_Sys_LimitsList,
9181      apzNested_Sys_LimitsMachs,
9182      NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
9183      aNested_Sys_LimitsTests,   apzNested_Sys_LimitsPatch, 0 },
9185   {  zNetbsd_Extra_SemicolonName,    zNetbsd_Extra_SemicolonList,
9186      apzNetbsd_Extra_SemicolonMachs,
9187      NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9188      aNetbsd_Extra_SemicolonTests,   apzNetbsd_Extra_SemicolonPatch, 0 },
9190   {  zNext_Math_PrefixName,    zNext_Math_PrefixList,
9191      apzNext_Math_PrefixMachs,
9192      NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9193      aNext_Math_PrefixTests,   apzNext_Math_PrefixPatch, 0 },
9195   {  zNext_TemplateName,    zNext_TemplateList,
9196      apzNext_TemplateMachs,
9197      NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9198      aNext_TemplateTests,   apzNext_TemplatePatch, 0 },
9200   {  zNext_VolitileName,    zNext_VolitileList,
9201      apzNext_VolitileMachs,
9202      NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9203      aNext_VolitileTests,   apzNext_VolitilePatch, 0 },
9205   {  zNext_Wait_UnionName,    zNext_Wait_UnionList,
9206      apzNext_Wait_UnionMachs,
9207      NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9208      aNext_Wait_UnionTests,   apzNext_Wait_UnionPatch, 0 },
9210   {  zNodeent_SyntaxName,    zNodeent_SyntaxList,
9211      apzNodeent_SyntaxMachs,
9212      NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9213      aNodeent_SyntaxTests,   apzNodeent_SyntaxPatch, 0 },
9215   {  zObstack_Lvalue_CastName,    zObstack_Lvalue_CastList,
9216      apzObstack_Lvalue_CastMachs,
9217      OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9218      aObstack_Lvalue_CastTests,   apzObstack_Lvalue_CastPatch, 0 },
9220   {  zOsf_Namespace_AName,    zOsf_Namespace_AList,
9221      apzOsf_Namespace_AMachs,
9222      OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9223      aOsf_Namespace_ATests,   apzOsf_Namespace_APatch, 0 },
9225   {  zOsf_Namespace_CName,    zOsf_Namespace_CList,
9226      apzOsf_Namespace_CMachs,
9227      OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9228      aOsf_Namespace_CTests,   apzOsf_Namespace_CPatch, 0 },
9230   {  zPthread_Page_SizeName,    zPthread_Page_SizeList,
9231      apzPthread_Page_SizeMachs,
9232      PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9233      aPthread_Page_SizeTests,   apzPthread_Page_SizePatch, 0 },
9235   {  zPthread_Incomplete_Struct_ArgumentName,    zPthread_Incomplete_Struct_ArgumentList,
9236      apzPthread_Incomplete_Struct_ArgumentMachs,
9237      PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9238      aPthread_Incomplete_Struct_ArgumentTests,   apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9240   {  zRead_Ret_TypeName,    zRead_Ret_TypeList,
9241      apzRead_Ret_TypeMachs,
9242      READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9243      aRead_Ret_TypeTests,   apzRead_Ret_TypePatch, 0 },
9245   {  zRpc_Xdr_Lvalue_Cast_AName,    zRpc_Xdr_Lvalue_Cast_AList,
9246      apzRpc_Xdr_Lvalue_Cast_AMachs,
9247      RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9248      aRpc_Xdr_Lvalue_Cast_ATests,   apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9250   {  zRpc_Xdr_Lvalue_Cast_BName,    zRpc_Xdr_Lvalue_Cast_BList,
9251      apzRpc_Xdr_Lvalue_Cast_BMachs,
9252      RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9253      aRpc_Xdr_Lvalue_Cast_BTests,   apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9255   {  zRs6000_DoubleName,    zRs6000_DoubleList,
9256      apzRs6000_DoubleMachs,
9257      RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9258      aRs6000_DoubleTests,   apzRs6000_DoublePatch, 0 },
9260   {  zRs6000_FchmodName,    zRs6000_FchmodList,
9261      apzRs6000_FchmodMachs,
9262      RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9263      aRs6000_FchmodTests,   apzRs6000_FchmodPatch, 0 },
9265   {  zRs6000_ParamName,    zRs6000_ParamList,
9266      apzRs6000_ParamMachs,
9267      RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9268      aRs6000_ParamTests,   apzRs6000_ParamPatch, 0 },
9270   {  zSco_MathName,    zSco_MathList,
9271      apzSco_MathMachs,
9272      SCO_MATH_TEST_CT, FD_MACH_ONLY,
9273      aSco_MathTests,   apzSco_MathPatch, 0 },
9275   {  zSco_RegsetName,    zSco_RegsetList,
9276      apzSco_RegsetMachs,
9277      SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9278      aSco_RegsetTests,   apzSco_RegsetPatch, 0 },
9280   {  zSco_Static_FuncName,    zSco_Static_FuncList,
9281      apzSco_Static_FuncMachs,
9282      SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
9283      aSco_Static_FuncTests,   apzSco_Static_FuncPatch, 0 },
9285   {  zSco_UtimeName,    zSco_UtimeList,
9286      apzSco_UtimeMachs,
9287      SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9288      aSco_UtimeTests,   apzSco_UtimePatch, 0 },
9290   {  zSolaris_Math_1Name,    zSolaris_Math_1List,
9291      apzSolaris_Math_1Machs,
9292      SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9293      aSolaris_Math_1Tests,   apzSolaris_Math_1Patch, 0 },
9295   {  zSolaris_Math_2Name,    zSolaris_Math_2List,
9296      apzSolaris_Math_2Machs,
9297      SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9298      aSolaris_Math_2Tests,   apzSolaris_Math_2Patch, 0 },
9300   {  zSolaris_Math_3Name,    zSolaris_Math_3List,
9301      apzSolaris_Math_3Machs,
9302      SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9303      aSolaris_Math_3Tests,   apzSolaris_Math_3Patch, 0 },
9305   {  zSolaris_Math_4Name,    zSolaris_Math_4List,
9306      apzSolaris_Math_4Machs,
9307      SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9308      aSolaris_Math_4Tests,   apzSolaris_Math_4Patch, 0 },
9310   {  zSolaris_Math_5Name,    zSolaris_Math_5List,
9311      apzSolaris_Math_5Machs,
9312      SOLARIS_MATH_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9313      aSolaris_Math_5Tests,   apzSolaris_Math_5Patch, 0 },
9315   {  zSolaris_Math_6Name,    zSolaris_Math_6List,
9316      apzSolaris_Math_6Machs,
9317      SOLARIS_MATH_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9318      aSolaris_Math_6Tests,   apzSolaris_Math_6Patch, 0 },
9320   {  zSolaris_Math_7Name,    zSolaris_Math_7List,
9321      apzSolaris_Math_7Machs,
9322      SOLARIS_MATH_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9323      aSolaris_Math_7Tests,   apzSolaris_Math_7Patch, 0 },
9325   {  zSolaris_Math_8Name,    zSolaris_Math_8List,
9326      apzSolaris_Math_8Machs,
9327      SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9328      aSolaris_Math_8Tests,   apzSolaris_Math_8Patch, 0 },
9330   {  zSolaris_Math_9Name,    zSolaris_Math_9List,
9331      apzSolaris_Math_9Machs,
9332      SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9333      aSolaris_Math_9Tests,   apzSolaris_Math_9Patch, 0 },
9335   {  zSolaris_Mutex_Init_1Name,    zSolaris_Mutex_Init_1List,
9336      apzSolaris_Mutex_Init_1Machs,
9337      SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
9338      aSolaris_Mutex_Init_1Tests,   apzSolaris_Mutex_Init_1Patch, 0 },
9340   {  zSolaris_Mutex_Init_2Name,    zSolaris_Mutex_Init_2List,
9341      apzSolaris_Mutex_Init_2Machs,
9342      SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9343      aSolaris_Mutex_Init_2Tests,   apzSolaris_Mutex_Init_2Patch, 0 },
9345   {  zSolaris_Rwlock_Init_1Name,    zSolaris_Rwlock_Init_1List,
9346      apzSolaris_Rwlock_Init_1Machs,
9347      SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9348      aSolaris_Rwlock_Init_1Tests,   apzSolaris_Rwlock_Init_1Patch, 0 },
9350   {  zSolaris_Once_Init_1Name,    zSolaris_Once_Init_1List,
9351      apzSolaris_Once_Init_1Machs,
9352      SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9353      aSolaris_Once_Init_1Tests,   apzSolaris_Once_Init_1Patch, 0 },
9355   {  zSolaris_Once_Init_2Name,    zSolaris_Once_Init_2List,
9356      apzSolaris_Once_Init_2Machs,
9357      SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9358      aSolaris_Once_Init_2Tests,   apzSolaris_Once_Init_2Patch, 0 },
9360   {  zSolaris_SocketName,    zSolaris_SocketList,
9361      apzSolaris_SocketMachs,
9362      SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9363      aSolaris_SocketTests,   apzSolaris_SocketPatch, 0 },
9365   {  zSolaris_Stdio_TagName,    zSolaris_Stdio_TagList,
9366      apzSolaris_Stdio_TagMachs,
9367      SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9368      aSolaris_Stdio_TagTests,   apzSolaris_Stdio_TagPatch, 0 },
9370   {  zSolaris_UnistdName,    zSolaris_UnistdList,
9371      apzSolaris_UnistdMachs,
9372      SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9373      aSolaris_UnistdTests,   apzSolaris_UnistdPatch, 0 },
9375   {  zSolaris_WidecName,    zSolaris_WidecList,
9376      apzSolaris_WidecMachs,
9377      SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9378      aSolaris_WidecTests,   apzSolaris_WidecPatch, 0 },
9380   {  zStatsswtchName,    zStatsswtchList,
9381      apzStatsswtchMachs,
9382      STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9383      aStatsswtchTests,   apzStatsswtchPatch, 0 },
9385   {  zStdio_Stdarg_HName,    zStdio_Stdarg_HList,
9386      apzStdio_Stdarg_HMachs,
9387      STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9388      aStdio_Stdarg_HTests,   apzStdio_Stdarg_HPatch, 0 },
9390   {  zStdio_Va_ListName,    zStdio_Va_ListList,
9391      apzStdio_Va_ListMachs,
9392      STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9393      aStdio_Va_ListTests,   apzStdio_Va_ListPatch, 0 },
9395   {  zStdio_Va_List_ClientsName,    zStdio_Va_List_ClientsList,
9396      apzStdio_Va_List_ClientsMachs,
9397      STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9398      aStdio_Va_List_ClientsTests,   apzStdio_Va_List_ClientsPatch, 0 },
9400   {  zStrict_Ansi_NotName,    zStrict_Ansi_NotList,
9401      apzStrict_Ansi_NotMachs,
9402      STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9403      aStrict_Ansi_NotTests,   apzStrict_Ansi_NotPatch, 0 },
9405   {  zStrict_Ansi_Not_CtdName,    zStrict_Ansi_Not_CtdList,
9406      apzStrict_Ansi_Not_CtdMachs,
9407      STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9408      aStrict_Ansi_Not_CtdTests,   apzStrict_Ansi_Not_CtdPatch, 0 },
9410   {  zStrict_Ansi_OnlyName,    zStrict_Ansi_OnlyList,
9411      apzStrict_Ansi_OnlyMachs,
9412      STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9413      aStrict_Ansi_OnlyTests,   apzStrict_Ansi_OnlyPatch, 0 },
9415   {  zStruct_FileName,    zStruct_FileList,
9416      apzStruct_FileMachs,
9417      STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9418      aStruct_FileTests,   apzStruct_FilePatch, 0 },
9420   {  zStruct_SockaddrName,    zStruct_SockaddrList,
9421      apzStruct_SockaddrMachs,
9422      STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9423      aStruct_SockaddrTests,   apzStruct_SockaddrPatch, 0 },
9425   {  zSun_Auth_ProtoName,    zSun_Auth_ProtoList,
9426      apzSun_Auth_ProtoMachs,
9427      SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9428      aSun_Auth_ProtoTests,   apzSun_Auth_ProtoPatch, 0 },
9430   {  zSun_Bogus_IfdefName,    zSun_Bogus_IfdefList,
9431      apzSun_Bogus_IfdefMachs,
9432      SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9433      aSun_Bogus_IfdefTests,   apzSun_Bogus_IfdefPatch, 0 },
9435   {  zSun_CatmacroName,    zSun_CatmacroList,
9436      apzSun_CatmacroMachs,
9437      SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9438      aSun_CatmacroTests,   apzSun_CatmacroPatch, 0 },
9440   {  zSun_MallocName,    zSun_MallocList,
9441      apzSun_MallocMachs,
9442      SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9443      aSun_MallocTests,   apzSun_MallocPatch, 0 },
9445   {  zSun_Rusers_SemiName,    zSun_Rusers_SemiList,
9446      apzSun_Rusers_SemiMachs,
9447      SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9448      aSun_Rusers_SemiTests,   apzSun_Rusers_SemiPatch, 0 },
9450   {  zSun_SignalName,    zSun_SignalList,
9451      apzSun_SignalMachs,
9452      SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9453      aSun_SignalTests,   apzSun_SignalPatch, 0 },
9455   {  zSunos_StrlenName,    zSunos_StrlenList,
9456      apzSunos_StrlenMachs,
9457      SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9458      aSunos_StrlenTests,   apzSunos_StrlenPatch, 0 },
9460   {  zSvr4_Disable_OptName,    zSvr4_Disable_OptList,
9461      apzSvr4_Disable_OptMachs,
9462      SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9463      aSvr4_Disable_OptTests,   apzSvr4_Disable_OptPatch, 0 },
9465   {  zSvr4_GetcwdName,    zSvr4_GetcwdList,
9466      apzSvr4_GetcwdMachs,
9467      SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9468      aSvr4_GetcwdTests,   apzSvr4_GetcwdPatch, 0 },
9470   {  zSvr4_KrnlName,    zSvr4_KrnlList,
9471      apzSvr4_KrnlMachs,
9472      SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9473      aSvr4_KrnlTests,   apzSvr4_KrnlPatch, 0 },
9475   {  zSvr4_ProfilName,    zSvr4_ProfilList,
9476      apzSvr4_ProfilMachs,
9477      SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9478      aSvr4_ProfilTests,   apzSvr4_ProfilPatch, 0 },
9480   {  zSvr4_Sighandler_TypeName,    zSvr4_Sighandler_TypeList,
9481      apzSvr4_Sighandler_TypeMachs,
9482      SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9483      aSvr4_Sighandler_TypeTests,   apzSvr4_Sighandler_TypePatch, 0 },
9485   {  zSvr4_Undeclared_GetrngeName,    zSvr4_Undeclared_GetrngeList,
9486      apzSvr4_Undeclared_GetrngeMachs,
9487      SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9488      aSvr4_Undeclared_GetrngeTests,   apzSvr4_Undeclared_GetrngePatch, 0 },
9490   {  zSysv68_StringName,    zSysv68_StringList,
9491      apzSysv68_StringMachs,
9492      SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9493      aSysv68_StringTests,   apzSysv68_StringPatch, 0 },
9495   {  zSysz_Stdlib_For_SunName,    zSysz_Stdlib_For_SunList,
9496      apzSysz_Stdlib_For_SunMachs,
9497      SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9498      aSysz_Stdlib_For_SunTests,   apzSysz_Stdlib_For_SunPatch, 0 },
9500   {  zThread_KeywordName,    zThread_KeywordList,
9501      apzThread_KeywordMachs,
9502      THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9503      aThread_KeywordTests,   apzThread_KeywordPatch, 0 },
9505   {  zTinfo_CplusplusName,    zTinfo_CplusplusList,
9506      apzTinfo_CplusplusMachs,
9507      TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9508      aTinfo_CplusplusTests,   apzTinfo_CplusplusPatch, 0 },
9510   {  zUltrix_Atexit_ParamName,    zUltrix_Atexit_ParamList,
9511      apzUltrix_Atexit_ParamMachs,
9512      ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9513      aUltrix_Atexit_ParamTests,   apzUltrix_Atexit_ParamPatch, 0 },
9515   {  zUltrix_Atof_ParamName,    zUltrix_Atof_ParamList,
9516      apzUltrix_Atof_ParamMachs,
9517      ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9518      aUltrix_Atof_ParamTests,   apzUltrix_Atof_ParamPatch, 0 },
9520   {  zUltrix_ConstName,    zUltrix_ConstList,
9521      apzUltrix_ConstMachs,
9522      ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9523      aUltrix_ConstTests,   apzUltrix_ConstPatch, 0 },
9525   {  zUltrix_Const2Name,    zUltrix_Const2List,
9526      apzUltrix_Const2Machs,
9527      ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9528      aUltrix_Const2Tests,   apzUltrix_Const2Patch, 0 },
9530   {  zUltrix_Const3Name,    zUltrix_Const3List,
9531      apzUltrix_Const3Machs,
9532      ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9533      aUltrix_Const3Tests,   apzUltrix_Const3Patch, 0 },
9535   {  zUltrix_Fix_FixprotoName,    zUltrix_Fix_FixprotoList,
9536      apzUltrix_Fix_FixprotoMachs,
9537      ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9538      aUltrix_Fix_FixprotoTests,   apzUltrix_Fix_FixprotoPatch, 0 },
9540   {  zUltrix_IfdefName,    zUltrix_IfdefList,
9541      apzUltrix_IfdefMachs,
9542      ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9543      aUltrix_IfdefTests,   apzUltrix_IfdefPatch, 0 },
9545   {  zUltrix_LocaleName,    zUltrix_LocaleList,
9546      apzUltrix_LocaleMachs,
9547      ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9548      aUltrix_LocaleTests,   apzUltrix_LocalePatch, 0 },
9550   {  zUltrix_Math_IfdefName,    zUltrix_Math_IfdefList,
9551      apzUltrix_Math_IfdefMachs,
9552      ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9553      aUltrix_Math_IfdefTests,   apzUltrix_Math_IfdefPatch, 0 },
9555   {  zUltrix_Nested_IoctlName,    zUltrix_Nested_IoctlList,
9556      apzUltrix_Nested_IoctlMachs,
9557      ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
9558      aUltrix_Nested_IoctlTests,   apzUltrix_Nested_IoctlPatch, 0 },
9560   {  zUltrix_Nested_SvcName,    zUltrix_Nested_SvcList,
9561      apzUltrix_Nested_SvcMachs,
9562      ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
9563      aUltrix_Nested_SvcTests,   apzUltrix_Nested_SvcPatch, 0 },
9565   {  zUltrix_StatName,    zUltrix_StatList,
9566      apzUltrix_StatMachs,
9567      ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
9568      aUltrix_StatTests,   apzUltrix_StatPatch, 0 },
9570   {  zUltrix_StaticName,    zUltrix_StaticList,
9571      apzUltrix_StaticMachs,
9572      ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
9573      aUltrix_StaticTests,   apzUltrix_StaticPatch, 0 },
9575   {  zUltrix_StdlibName,    zUltrix_StdlibList,
9576      apzUltrix_StdlibMachs,
9577      ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
9578      aUltrix_StdlibTests,   apzUltrix_StdlibPatch, 0 },
9580   {  zUltrix_StringsName,    zUltrix_StringsList,
9581      apzUltrix_StringsMachs,
9582      ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9583      aUltrix_StringsTests,   apzUltrix_StringsPatch, 0 },
9585   {  zUltrix_Strings2Name,    zUltrix_Strings2List,
9586      apzUltrix_Strings2Machs,
9587      ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
9588      aUltrix_Strings2Tests,   apzUltrix_Strings2Patch, 0 },
9590   {  zUltrix_Sys_TimeName,    zUltrix_Sys_TimeList,
9591      apzUltrix_Sys_TimeMachs,
9592      ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
9593      aUltrix_Sys_TimeTests,   apzUltrix_Sys_TimePatch, 0 },
9595   {  zUltrix_UnistdName,    zUltrix_UnistdList,
9596      apzUltrix_UnistdMachs,
9597      ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
9598      aUltrix_UnistdTests,   apzUltrix_UnistdPatch, 0 },
9600   {  zUnicosmk_RestrictName,    zUnicosmk_RestrictList,
9601      apzUnicosmk_RestrictMachs,
9602      UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9603      aUnicosmk_RestrictTests,   apzUnicosmk_RestrictPatch, 0 },
9605   {  zUw7_Byteorder_FixName,    zUw7_Byteorder_FixList,
9606      apzUw7_Byteorder_FixMachs,
9607      UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9608      aUw7_Byteorder_FixTests,   apzUw7_Byteorder_FixPatch, 0 },
9610   {  zVa_I960_MacroName,    zVa_I960_MacroList,
9611      apzVa_I960_MacroMachs,
9612      VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9613      aVa_I960_MacroTests,   apzVa_I960_MacroPatch, 0 },
9615   {  zVoid_NullName,    zVoid_NullList,
9616      apzVoid_NullMachs,
9617      VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9618      aVoid_NullTests,   apzVoid_NullPatch, 0 },
9620   {  zVxworks_Gcc_ProblemName,    zVxworks_Gcc_ProblemList,
9621      apzVxworks_Gcc_ProblemMachs,
9622      VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9623      aVxworks_Gcc_ProblemTests,   apzVxworks_Gcc_ProblemPatch, 0 },
9625   {  zVxworks_Needs_VxtypesName,    zVxworks_Needs_VxtypesList,
9626      apzVxworks_Needs_VxtypesMachs,
9627      VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9628      aVxworks_Needs_VxtypesTests,   apzVxworks_Needs_VxtypesPatch, 0 },
9630   {  zVxworks_Needs_VxworksName,    zVxworks_Needs_VxworksList,
9631      apzVxworks_Needs_VxworksMachs,
9632      VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9633      aVxworks_Needs_VxworksTests,   apzVxworks_Needs_VxworksPatch, 0 },
9635   {  zVxworks_TimeName,    zVxworks_TimeList,
9636      apzVxworks_TimeMachs,
9637      VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9638      aVxworks_TimeTests,   apzVxworks_TimePatch, 0 },
9640   {  zWindiss_Math1Name,    zWindiss_Math1List,
9641      apzWindiss_Math1Machs,
9642      WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
9643      aWindiss_Math1Tests,   apzWindiss_Math1Patch, 0 },
9645   {  zWindiss_Math2Name,    zWindiss_Math2List,
9646      apzWindiss_Math2Machs,
9647      WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
9648      aWindiss_Math2Tests,   apzWindiss_Math2Patch, 0 },
9650   {  zWindiss_ValistName,    zWindiss_ValistList,
9651      apzWindiss_ValistMachs,
9652      WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
9653      aWindiss_ValistTests,   apzWindiss_ValistPatch, 0 },
9655   {  zX11_ClassName,    zX11_ClassList,
9656      apzX11_ClassMachs,
9657      X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9658      aX11_ClassTests,   apzX11_ClassPatch, 0 },
9660   {  zX11_Class_UsageName,    zX11_Class_UsageList,
9661      apzX11_Class_UsageMachs,
9662      X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9663      aX11_Class_UsageTests,   apzX11_Class_UsagePatch, 0 },
9665   {  zX11_NewName,    zX11_NewList,
9666      apzX11_NewMachs,
9667      X11_NEW_TEST_CT, FD_MACH_ONLY,
9668      aX11_NewTests,   apzX11_NewPatch, 0 },
9670   {  zX11_SprintfName,    zX11_SprintfList,
9671      apzX11_SprintfMachs,
9672      X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9673      aX11_SprintfTests,   apzX11_SprintfPatch, 0 }