1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Sunday October 29, 2006 at 04:32:11 PM UTC
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT CVS-MERGE THIS FILE, EITHER Sun Oct 29 16:32:11 UTC 2006
11 * You must regenerate it. Use the ./genfixes script.
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.
18 * This file contains 201 fixup descriptions.
20 * See README for more information.
22 * inclhack copyright (c) 1998, 1999, 2000, 2001
23 * The Free Software Foundation, Inc.
25 * inclhack is free software.
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)
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.
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.
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
46 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
48 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
49 "AAB_darwin7_9_long_double_funcs";
52 * File name selection pattern
54 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
55 "|architecture/ppc/math.h|";
57 * Machine/OS name selection pattern
59 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
64 * content bypass pattern - skip fix if pattern found
66 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
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
76 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
77 "/* This file prototypes the long double functions available on Mac OS\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\
89 # define __LIBMLDBL_COMPAT(sym)\n\
90 # endif /* __LONG_DOUBLE_128__ */\n\
91 # endif /* __LIBMLDBL_COMPAT */\n\
92 # ifdef __cplusplus\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\
155 #endif /* __MATH__ */",
158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
160 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
162 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
163 "AAB_darwin7_9_long_double_funcs_2";
166 * File name selection pattern
168 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
171 * Machine/OS name selection pattern
173 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
178 * content selection pattern - do fix if pattern found
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
190 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
193 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
196 /* * * * * * * * * * * * * * * * * * * * * * * * * *
198 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
200 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
201 "AAB_fd_zero_asm_posix_types_h";
204 * File name selection pattern
206 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
207 "|asm/posix_types.h|";
209 * Machine/OS name selection pattern
211 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
212 "i[34567]86-*-linux*",
216 * content bypass pattern - skip fix if pattern found
218 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
220 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
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
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\
239 #define __FD_ZERO(fdsetp) \\\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\
248 #define _POSIX_TYPES_H_WRAPPER\n\
249 #endif /* _POSIX_TYPES_H_WRAPPER */",
252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
254 * Description of Aab_Fd_Zero_Gnu_Types_H fix
256 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
257 "AAB_fd_zero_gnu_types_h";
260 * File name selection pattern
262 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
265 * Machine/OS name selection pattern
267 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
268 "i[34567]86-*-linux*",
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
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\
283 # define __FD_ZERO(fdsetp) \\\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\
292 #define _TYPES_H_WRAPPER\n\
293 #endif /* _TYPES_H_WRAPPER */",
296 /* * * * * * * * * * * * * * * * * * * * * * * * * *
298 * Description of Aab_Fd_Zero_Selectbits_H fix
300 tSCC zAab_Fd_Zero_Selectbits_HName[] =
301 "AAB_fd_zero_selectbits_h";
304 * File name selection pattern
306 tSCC zAab_Fd_Zero_Selectbits_HList[] =
309 * Machine/OS name selection pattern
311 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
312 "i[34567]86-*-linux*",
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
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\
329 #define __FD_ZERO(fdsetp) \\\\\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\
340 #define _SELECTBITS_H_WRAPPER\n\
341 #endif /* _SELECTBITS_H_WRAPPER */",
344 /* * * * * * * * * * * * * * * * * * * * * * * * * *
346 * Description of Aab_Solaris_Sys_Varargs_H fix
348 tSCC zAab_Solaris_Sys_Varargs_HName[] =
349 "AAB_solaris_sys_varargs_h";
352 * File name selection pattern
354 tSCC zAab_Solaris_Sys_Varargs_HList[] =
357 * Machine/OS name selection pattern
359 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
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
368 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
370 #include <stdarg.h>\n\
372 #include <varargs.h>\n\
376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
378 * Description of Aab_Sun_Memcpy fix
380 tSCC zAab_Sun_MemcpyName[] =
384 * File name selection pattern
386 tSCC zAab_Sun_MemcpyList[] =
389 * Machine/OS name selection pattern
391 #define apzAab_Sun_MemcpyMachs (const char**)NULL
394 * content selection pattern - do fix if pattern found
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
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\
411 extern void *memccpy();\n\
412 extern void *memchr();\n\
413 extern void *memcpy();\n\
414 extern void *memset();\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\
426 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
427 * stdarg.h or varargs.h files as appropriate.\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\
439 \"#include <varargs.h>\\n\"\n\
440 \"#endif\\n\\n\"\n\n\
441 \"#endif /* _SYS_VARARGS_H */\\n\";\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\
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\
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\
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\
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\
496 register unsigned long __result;\n\n\
497 __asm__ (\"xchg%B0 %b0,%h0\n\
499 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
502 /* Convert a host short to a network short. */\n\n\
503 static __inline__ unsigned short\n\
504 htons (unsigned int __arg)\n\
506 register unsigned short __result;\n\n\
507 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
510 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
511 #ifndef __BYTE_ORDER__\n\
512 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\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\
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\
527 /* Convert a host short to a network short. */\n\n\
528 static __inline__ unsigned short\n\
529 htons (unsigned int __arg)\n\
531 register unsigned short __result;\n\n\
532 __result = (__arg << 8) & 0xff00;\n\
533 __result |= (__arg >> 8) & 0x00ff;\n\
536 #else /* must be a big-endian machine */\n\n\
537 #ifndef __BYTE_ORDER__\n\
538 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
540 /* Convert a host long to a network long. */\n\n\
541 static __inline__ unsigned long\n\
542 htonl (unsigned long __arg)\n\
546 /* Convert a host short to a network short. */\n\n\
547 static __inline__ unsigned short\n\
548 htons (unsigned int __arg)\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\
557 return htonl (__arg);\n\
559 /* Convert a network short to a host short. */\n\n\
560 static __inline__ unsigned short\n\
561 ntohs (unsigned int __arg)\n\
563 return htons (__arg);\n\
568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
570 * Description of Aab_Ultrix_Ansi_Compat fix
572 tSCC zAab_Ultrix_Ansi_CompatName[] =
573 "AAB_ultrix_ansi_compat";
576 * File name selection pattern
578 tSCC zAab_Ultrix_Ansi_CompatList[] =
581 * Machine/OS name selection pattern
583 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
586 * content selection pattern - do fix if pattern found
588 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
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
598 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
599 "/* This file intentionally left blank. */\n",
602 /* * * * * * * * * * * * * * * * * * * * * * * * * *
604 * Description of Aab_Ultrix_Limits fix
606 tSCC zAab_Ultrix_LimitsName[] =
610 * File name selection pattern
612 tSCC zAab_Ultrix_LimitsList[] =
615 * Machine/OS name selection pattern
617 tSCC* apzAab_Ultrix_LimitsMachs[] = {
620 #define AAB_ULTRIX_LIMITS_TEST_CT 0
621 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
624 * Fix Command Arguments for Aab_Ultrix_Limits
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 */",
633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
635 * Description of Aab_Ultrix_Memory fix
637 tSCC zAab_Ultrix_MemoryName[] =
641 * File name selection pattern
643 tSCC zAab_Ultrix_MemoryList[] =
646 * Machine/OS name selection pattern
648 tSCC* apzAab_Ultrix_MemoryMachs[] = {
651 #define AAB_ULTRIX_MEMORY_TEST_CT 0
652 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
655 * Fix Command Arguments for Aab_Ultrix_Memory
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 */",
664 /* * * * * * * * * * * * * * * * * * * * * * * * * *
666 * Description of Aab_Ultrix_String fix
668 tSCC zAab_Ultrix_StringName[] =
672 * File name selection pattern
674 tSCC zAab_Ultrix_StringList[] =
677 * Machine/OS name selection pattern
679 tSCC* apzAab_Ultrix_StringMachs[] = {
682 #define AAB_ULTRIX_STRING_TEST_CT 0
683 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
686 * Fix Command Arguments for Aab_Ultrix_String
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 */",
695 /* * * * * * * * * * * * * * * * * * * * * * * * * *
697 * Description of Aix_Pthread fix
699 tSCC zAix_PthreadName[] =
703 * File name selection pattern
705 tSCC zAix_PthreadList[] =
708 * Machine/OS name selection pattern
710 #define apzAix_PthreadMachs (const char**)NULL
713 * content selection pattern - do fix if pattern found
715 tSCC zAix_PthreadSelect0[] =
716 "(#define [A-Za-z_0-9]+)(\\\\\n\
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
727 static const char* apzAix_PthreadPatch[] = {
732 /* * * * * * * * * * * * * * * * * * * * * * * * * *
734 * Description of Aix_Sysmachine fix
736 tSCC zAix_SysmachineName[] =
740 * File name selection pattern
742 tSCC zAix_SysmachineList[] =
745 * Machine/OS name selection pattern
747 #define apzAix_SysmachineMachs (const char**)NULL
750 * content selection pattern - do fix if pattern found
752 tSCC zAix_SysmachineSelect0[] =
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
762 static const char* apzAix_SysmachinePatch[] = {
767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
769 * Description of Aix_Syswait fix
771 tSCC zAix_SyswaitName[] =
775 * File name selection pattern
777 tSCC zAix_SyswaitList[] =
780 * Machine/OS name selection pattern
782 #define apzAix_SyswaitMachs (const char**)NULL
785 * content selection pattern - do fix if pattern found
787 tSCC zAix_SyswaitSelect0[] =
788 "^extern pid_t wait3\\(\\);\n";
789 tSCC zAix_SyswaitSelect1[] =
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
800 static const char* apzAix_SyswaitPatch[] = {
806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
808 * Description of Aix_Syswait_2 fix
810 tSCC zAix_Syswait_2Name[] =
814 * File name selection pattern
816 tSCC zAix_Syswait_2List[] =
819 * Machine/OS name selection pattern
821 #define apzAix_Syswait_2Machs (const char**)NULL
824 * content selection pattern - do fix if pattern found
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
836 static const char* apzAix_Syswait_2Patch[] = {
841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
843 * Description of Aix_Volatile fix
845 tSCC zAix_VolatileName[] =
849 * File name selection pattern
851 tSCC zAix_VolatileList[] =
854 * Machine/OS name selection pattern
856 #define apzAix_VolatileMachs (const char**)NULL
859 * content selection pattern - do fix if pattern found
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
871 static const char* apzAix_VolatilePatch[] = {
873 "typedef int sig_atomic_t",
876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
878 * Description of Alpha___Assert fix
880 tSCC zAlpha___AssertName[] =
884 * File name selection pattern
886 tSCC zAlpha___AssertList[] =
889 * Machine/OS name selection pattern
891 #define apzAlpha___AssertMachs (const char**)NULL
894 * content selection pattern - do fix if pattern found
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
906 static const char* apzAlpha___AssertPatch[] = {
908 "__assert(const char *, const char *, int)",
911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
913 * Description of Alpha___Extern_Prefix fix
915 tSCC zAlpha___Extern_PrefixName[] =
916 "alpha___extern_prefix";
919 * File name selection pattern
921 #define zAlpha___Extern_PrefixList (char*)NULL
923 * Machine/OS name selection pattern
925 tSCC* apzAlpha___Extern_PrefixMachs[] = {
930 * content selection pattern - do fix if pattern found
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
943 static const char* apzAlpha___Extern_PrefixPatch[] = {
945 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
951 * Description of Alpha___Extern_Prefix_Standards fix
953 tSCC zAlpha___Extern_Prefix_StandardsName[] =
954 "alpha___extern_prefix_standards";
957 * File name selection pattern
959 tSCC zAlpha___Extern_Prefix_StandardsList[] =
962 * Machine/OS name selection pattern
964 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
969 * content selection pattern - do fix if pattern found
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
981 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
983 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
988 * Description of Alpha___Extern_Prefix_Sys_Stat fix
990 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
991 "alpha___extern_prefix_sys_stat";
994 * File name selection pattern
996 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
997 "|sys/stat.h|sys/mount.h|";
999 * Machine/OS name selection pattern
1001 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
1003 (const char*)NULL };
1006 * content selection pattern - do fix if pattern found
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
1018 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1020 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1025 * Description of Alpha_Assert fix
1027 tSCC zAlpha_AssertName[] =
1031 * File name selection pattern
1033 tSCC zAlpha_AssertList[] =
1036 * Machine/OS name selection pattern
1038 #define apzAlpha_AssertMachs (const char**)NULL
1041 * content selection pattern - do fix if pattern found
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
1053 static const char* apzAlpha_AssertPatch[] = {
1058 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1060 * Description of Alpha_Bad_Lval fix
1062 tSCC zAlpha_Bad_LvalName[] =
1066 * File name selection pattern
1068 #define zAlpha_Bad_LvalList (char*)NULL
1070 * Machine/OS name selection pattern
1072 tSCC* apzAlpha_Bad_LvalMachs[] = {
1074 (const char*)NULL };
1077 * content selection pattern - do fix if pattern found
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
1089 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
1090 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1095 * Description of Alpha_Getopt fix
1097 tSCC zAlpha_GetoptName[] =
1101 * File name selection pattern
1103 tSCC zAlpha_GetoptList[] =
1104 "|stdio.h|stdlib.h|";
1106 * Machine/OS name selection pattern
1108 #define apzAlpha_GetoptMachs (const char**)NULL
1111 * content selection pattern - do fix if pattern found
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
1123 static const char* apzAlpha_GetoptPatch[] = {
1125 "getopt(int, char *const[], const char *)",
1128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1130 * Description of Alpha_Parens fix
1132 tSCC zAlpha_ParensName[] =
1136 * File name selection pattern
1138 tSCC zAlpha_ParensList[] =
1141 * Machine/OS name selection pattern
1143 #define apzAlpha_ParensMachs (const char**)NULL
1146 * content selection pattern - do fix if pattern found
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
1158 static const char* apzAlpha_ParensPatch[] = {
1163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1165 * Description of Alpha_Pthread fix
1167 tSCC zAlpha_PthreadName[] =
1171 * File name selection pattern
1173 tSCC zAlpha_PthreadList[] =
1176 * Machine/OS name selection pattern
1178 tSCC* apzAlpha_PthreadMachs[] = {
1180 (const char*)NULL };
1183 * content selection pattern - do fix if pattern found
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
1196 static const char* apzAlpha_PthreadPatch[] = {
1198 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1204 * Description of Alpha_Pthread_Gcc fix
1206 tSCC zAlpha_Pthread_GccName[] =
1207 "alpha_pthread_gcc";
1210 * File name selection pattern
1212 tSCC zAlpha_Pthread_GccList[] =
1215 * Machine/OS name selection pattern
1217 tSCC* apzAlpha_Pthread_GccMachs[] = {
1219 (const char*)NULL };
1222 * content selection pattern - do fix if pattern found
1224 tSCC zAlpha_Pthread_GccSelect0[] =
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
1235 static const char* apzAlpha_Pthread_GccPatch[] = {
1237 "#elif defined (__GNUC__)\n\
1238 # define _PTHREAD_ENV_GCC\n\
1242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1244 * Description of Alpha_Pthread_Init fix
1246 tSCC zAlpha_Pthread_InitName[] =
1247 "alpha_pthread_init";
1250 * File name selection pattern
1252 tSCC zAlpha_Pthread_InitList[] =
1255 * Machine/OS name selection pattern
1257 tSCC* apzAlpha_Pthread_InitMachs[] = {
1259 (const char*)NULL };
1262 * content selection pattern - do fix if pattern found
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
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",
1283 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1285 * Description of Alpha_Sbrk fix
1287 tSCC zAlpha_SbrkName[] =
1291 * File name selection pattern
1293 tSCC zAlpha_SbrkList[] =
1296 * Machine/OS name selection pattern
1298 #define apzAlpha_SbrkMachs (const char**)NULL
1301 * content selection pattern - do fix if pattern found
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
1313 static const char* apzAlpha_SbrkPatch[] = {
1318 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1320 * Description of Alpha_Wchar fix
1322 tSCC zAlpha_WcharName[] =
1326 * File name selection pattern
1328 tSCC zAlpha_WcharList[] =
1331 * Machine/OS name selection pattern
1333 tSCC* apzAlpha_WcharMachs[] = {
1335 (const char*)NULL };
1338 * content selection pattern - do fix if pattern found
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
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\");@",
1355 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1357 * Description of Avoid_Bool_Define fix
1359 tSCC zAvoid_Bool_DefineName[] =
1360 "avoid_bool_define";
1363 * File name selection pattern
1365 tSCC zAvoid_Bool_DefineList[] =
1366 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1368 * Machine/OS name selection pattern
1370 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1373 * content selection pattern - do fix if pattern found
1375 tSCC zAvoid_Bool_DefineSelect0[] =
1376 "#[ \t]*define[ \t]+bool[ \t]";
1379 * content bypass pattern - skip fix if pattern found
1381 tSCC zAvoid_Bool_DefineBypass0[] =
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
1392 static const char* apzAvoid_Bool_DefinePatch[] = {
1394 "#ifndef __cplusplus\n\
1397 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1402 * Description of Avoid_Bool_Type fix
1404 tSCC zAvoid_Bool_TypeName[] =
1408 * File name selection pattern
1410 tSCC zAvoid_Bool_TypeList[] =
1411 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1413 * Machine/OS name selection pattern
1415 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1418 * content selection pattern - do fix if pattern found
1420 tSCC zAvoid_Bool_TypeSelect0[] =
1421 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1424 * content bypass pattern - skip fix if pattern found
1426 tSCC zAvoid_Bool_TypeBypass0[] =
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
1437 static const char* apzAvoid_Bool_TypePatch[] = {
1439 "#ifndef __cplusplus\n\
1444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1446 * Description of Avoid_Wchar_T_Type fix
1448 tSCC zAvoid_Wchar_T_TypeName[] =
1449 "avoid_wchar_t_type";
1452 * File name selection pattern
1454 #define zAvoid_Wchar_T_TypeList (char*)NULL
1456 * Machine/OS name selection pattern
1458 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1461 * content selection pattern - do fix if pattern found
1463 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1464 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1467 * content bypass pattern - skip fix if pattern found
1469 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1471 tSCC zAvoid_Wchar_T_TypeBypass1[] =
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
1486 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1488 "#ifndef __cplusplus\n\
1493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1495 * Description of Bad_Struct_Term fix
1497 tSCC zBad_Struct_TermName[] =
1501 * File name selection pattern
1503 tSCC zBad_Struct_TermList[] =
1506 * Machine/OS name selection pattern
1508 #define apzBad_Struct_TermMachs (const char**)NULL
1511 * content selection pattern - do fix if pattern found
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
1523 static const char* apzBad_Struct_TermPatch[] = {
1528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1530 * Description of Badquote fix
1532 tSCC zBadquoteName[] =
1536 * File name selection pattern
1538 tSCC zBadquoteList[] =
1539 "|sundev/vuid_event.h|";
1541 * Machine/OS name selection pattern
1543 #define apzBadquoteMachs (const char**)NULL
1546 * content selection pattern - do fix if pattern found
1548 tSCC zBadquoteSelect0[] =
1551 #define BADQUOTE_TEST_CT 1
1552 static tTestDesc aBadquoteTests[] = {
1553 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1556 * Fix Command Arguments for Badquote
1558 static const char* apzBadquotePatch[] = {
1563 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1565 * Description of Broken_Assert_Stdio fix
1567 tSCC zBroken_Assert_StdioName[] =
1568 "broken_assert_stdio";
1571 * File name selection pattern
1573 tSCC zBroken_Assert_StdioList[] =
1576 * Machine/OS name selection pattern
1578 #define apzBroken_Assert_StdioMachs (const char**)NULL
1581 * content selection pattern - do fix if pattern found
1583 tSCC zBroken_Assert_StdioSelect0[] =
1587 * content bypass pattern - skip fix if pattern found
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
1600 static const char* apzBroken_Assert_StdioPatch[] = {
1602 "#include <stdio.h>\n",
1605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1607 * Description of Broken_Assert_Stdlib fix
1609 tSCC zBroken_Assert_StdlibName[] =
1610 "broken_assert_stdlib";
1613 * File name selection pattern
1615 tSCC zBroken_Assert_StdlibList[] =
1618 * Machine/OS name selection pattern
1620 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1623 * content selection pattern - do fix if pattern found
1625 tSCC zBroken_Assert_StdlibSelect0[] =
1626 "exit *\\(|abort *\\(";
1629 * content bypass pattern - skip fix if pattern found
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
1642 static const char* apzBroken_Assert_StdlibPatch[] = {
1644 "#ifdef __cplusplus\n\
1645 #include <stdlib.h>\n\
1649 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1651 * Description of Broken_Cabs fix
1653 tSCC zBroken_CabsName[] =
1657 * File name selection pattern
1659 tSCC zBroken_CabsList[] =
1660 "|math.h|architecture/ppc/math.h|architecture/i386/math.h|";
1662 * Machine/OS name selection pattern
1664 #define apzBroken_CabsMachs (const char**)NULL
1667 * content selection pattern - do fix if pattern found
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
1679 static const char* apzBroken_CabsPatch[] = {
1682 "^extern[ \t]+double[ \t]+cabs[ \t]*\\([^\\)]*\\);",
1685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1687 * Description of Broken_Nan fix
1689 tSCC zBroken_NanName[] =
1693 * File name selection pattern
1695 tSCC zBroken_NanList[] =
1696 "|architecture/ppc/math.h|architecture/i386/math.h|";
1698 * Machine/OS name selection pattern
1700 #define apzBroken_NanMachs (const char**)NULL
1703 * content selection pattern - do fix if pattern found
1705 tSCC zBroken_NanSelect0[] =
1706 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1709 * content bypass pattern - skip fix if pattern found
1711 tSCC zBroken_NanBypass0[] =
1714 #define BROKEN_NAN_TEST_CT 2
1715 static tTestDesc aBroken_NanTests[] = {
1716 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1717 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1720 * Fix Command Arguments for Broken_Nan
1722 static const char* apzBroken_NanPatch[] = {
1727 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1729 * Description of Bsd_Stdio_Attrs_Conflict fix
1731 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1732 "bsd_stdio_attrs_conflict";
1735 * File name selection pattern
1737 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1740 * Machine/OS name selection pattern
1742 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1745 (const char*)NULL };
1748 * content selection pattern - do fix if pattern found
1750 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1751 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1753 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1754 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1755 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1758 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1760 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1762 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1763 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1764 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1769 * Description of Ctrl_Quotes_Def fix
1771 tSCC zCtrl_Quotes_DefName[] =
1775 * File name selection pattern
1777 #define zCtrl_Quotes_DefList (char*)NULL
1779 * Machine/OS name selection pattern
1781 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1784 * content selection pattern - do fix if pattern found
1786 tSCC zCtrl_Quotes_DefSelect0[] =
1787 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1789 #define CTRL_QUOTES_DEF_TEST_CT 1
1790 static tTestDesc aCtrl_Quotes_DefTests[] = {
1791 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1794 * Fix Command Arguments for Ctrl_Quotes_Def
1796 static const char* apzCtrl_Quotes_DefPatch[] = {
1801 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1803 * Description of Ctrl_Quotes_Use fix
1805 tSCC zCtrl_Quotes_UseName[] =
1809 * File name selection pattern
1811 #define zCtrl_Quotes_UseList (char*)NULL
1813 * Machine/OS name selection pattern
1815 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1818 * content selection pattern - do fix if pattern found
1820 tSCC zCtrl_Quotes_UseSelect0[] =
1821 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1823 #define CTRL_QUOTES_USE_TEST_CT 1
1824 static tTestDesc aCtrl_Quotes_UseTests[] = {
1825 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1828 * Fix Command Arguments for Ctrl_Quotes_Use
1830 static const char* apzCtrl_Quotes_UsePatch[] = {
1835 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1837 * Description of Cxx_Unready fix
1839 tSCC zCxx_UnreadyName[] =
1843 * File name selection pattern
1845 tSCC zCxx_UnreadyList[] =
1846 "|sys/mman.h|rpc/types.h|";
1848 * Machine/OS name selection pattern
1850 #define apzCxx_UnreadyMachs (const char**)NULL
1853 * content selection pattern - do fix if pattern found
1855 tSCC zCxx_UnreadySelect0[] =
1859 * content bypass pattern - skip fix if pattern found
1861 tSCC zCxx_UnreadyBypass0[] =
1862 "\"C\"|__BEGIN_DECLS";
1864 #define CXX_UNREADY_TEST_CT 2
1865 static tTestDesc aCxx_UnreadyTests[] = {
1866 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1867 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1870 * Fix Command Arguments for Cxx_Unready
1872 static const char* apzCxx_UnreadyPatch[] = {
1874 "#ifdef __cplusplus\n\
1877 "#ifdef __cplusplus\n\
1882 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1884 * Description of Darwin_Gcc4_Breakage fix
1886 tSCC zDarwin_Gcc4_BreakageName[] =
1887 "darwin_gcc4_breakage";
1890 * File name selection pattern
1892 tSCC zDarwin_Gcc4_BreakageList[] =
1893 "|AvailabilityMacros.h|";
1895 * Machine/OS name selection pattern
1897 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1899 (const char*)NULL };
1902 * content selection pattern - do fix if pattern found
1904 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1905 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1907 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1908 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1909 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1912 * Fix Command Arguments for Darwin_Gcc4_Breakage
1914 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1916 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1921 * Description of Darwin_Private_Extern fix
1923 tSCC zDarwin_Private_ExternName[] =
1924 "darwin_private_extern";
1927 * File name selection pattern
1929 tSCC zDarwin_Private_ExternList[] =
1932 * Machine/OS name selection pattern
1934 tSCC* apzDarwin_Private_ExternMachs[] = {
1936 (const char*)NULL };
1939 * content selection pattern - do fix if pattern found
1941 tSCC zDarwin_Private_ExternSelect0[] =
1942 "__private_extern__ [a-z_]+ _dyld_";
1944 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1945 static tTestDesc aDarwin_Private_ExternTests[] = {
1946 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1949 * Fix Command Arguments for Darwin_Private_Extern
1951 static const char* apzDarwin_Private_ExternPatch[] = {
1954 "__private_extern__",
1957 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1959 * Description of Dec_Intern_Asm fix
1961 tSCC zDec_Intern_AsmName[] =
1965 * File name selection pattern
1967 tSCC zDec_Intern_AsmList[] =
1970 * Machine/OS name selection pattern
1972 #define apzDec_Intern_AsmMachs (const char**)NULL
1973 #define DEC_INTERN_ASM_TEST_CT 0
1974 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1977 * Fix Command Arguments for Dec_Intern_Asm
1979 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1980 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1982 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1986 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1988 * Description of Djgpp_Wchar_H fix
1990 tSCC zDjgpp_Wchar_HName[] =
1994 * File name selection pattern
1996 #define zDjgpp_Wchar_HList (char*)NULL
1998 * Machine/OS name selection pattern
2000 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2003 * content selection pattern - do fix if pattern found
2005 tSCC zDjgpp_Wchar_HSelect0[] =
2009 * content bypass pattern - skip fix if pattern found
2011 tSCC zDjgpp_Wchar_HBypass0[] =
2014 #define DJGPP_WCHAR_H_TEST_CT 2
2015 static tTestDesc aDjgpp_Wchar_HTests[] = {
2016 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2017 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2020 * Fix Command Arguments for Djgpp_Wchar_H
2022 static const char* apzDjgpp_Wchar_HPatch[] = {
2025 #include <sys/djtypes.h>",
2026 "#include <stddef.h>",
2029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2031 * Description of Ecd_Cursor fix
2033 tSCC zEcd_CursorName[] =
2037 * File name selection pattern
2039 tSCC zEcd_CursorList[] =
2040 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
2042 * Machine/OS name selection pattern
2044 #define apzEcd_CursorMachs (const char**)NULL
2047 * content selection pattern - do fix if pattern found
2049 tSCC zEcd_CursorSelect0[] =
2052 #define ECD_CURSOR_TEST_CT 1
2053 static tTestDesc aEcd_CursorTests[] = {
2054 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2057 * Fix Command Arguments for Ecd_Cursor
2059 static const char* apzEcd_CursorPatch[] = {
2064 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2066 * Description of Exception_Structure fix
2068 tSCC zException_StructureName[] =
2069 "exception_structure";
2072 * File name selection pattern
2074 tSCC zException_StructureList[] =
2077 * Machine/OS name selection pattern
2079 #define apzException_StructureMachs (const char**)NULL
2082 * content selection pattern - do fix if pattern found
2084 tSCC zException_StructureSelect0[] =
2088 * content bypass pattern - skip fix if pattern found
2090 tSCC zException_StructureBypass0[] =
2091 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
2093 #define EXCEPTION_STRUCTURE_TEST_CT 2
2094 static tTestDesc aException_StructureTests[] = {
2095 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
2096 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
2099 * Fix Command Arguments for Exception_Structure
2101 static const char* apzException_StructurePatch[] = {
2103 "struct exception;\n",
2106 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2108 * Description of Freebsd_Gcc3_Breakage fix
2110 tSCC zFreebsd_Gcc3_BreakageName[] =
2111 "freebsd_gcc3_breakage";
2114 * File name selection pattern
2116 tSCC zFreebsd_Gcc3_BreakageList[] =
2119 * Machine/OS name selection pattern
2121 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2123 (const char*)NULL };
2126 * content selection pattern - do fix if pattern found
2128 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2129 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2132 * content bypass pattern - skip fix if pattern found
2134 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2135 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2137 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2138 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2139 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2140 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2143 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2145 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2147 "%0 || __GNUC__ >= 3",
2150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2152 * Description of Freebsd_Gcc4_Breakage fix
2154 tSCC zFreebsd_Gcc4_BreakageName[] =
2155 "freebsd_gcc4_breakage";
2158 * File name selection pattern
2160 tSCC zFreebsd_Gcc4_BreakageList[] =
2163 * Machine/OS name selection pattern
2165 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2167 (const char*)NULL };
2170 * content selection pattern - do fix if pattern found
2172 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2173 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2175 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2176 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2177 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2180 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2182 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2184 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2187 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2189 * Description of Glibc_Mutex_Init fix
2191 tSCC zGlibc_Mutex_InitName[] =
2195 * File name selection pattern
2197 tSCC zGlibc_Mutex_InitList[] =
2200 * Machine/OS name selection pattern
2202 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2205 * content selection pattern - do fix if pattern found
2207 tSCC zGlibc_Mutex_InitSelect0[] =
2208 "\\{ *\\{ *0, *\\} *\\}";
2210 #define GLIBC_MUTEX_INIT_TEST_CT 1
2211 static tTestDesc aGlibc_Mutex_InitTests[] = {
2212 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2215 * Fix Command Arguments for Glibc_Mutex_Init
2217 static const char* apzGlibc_Mutex_InitPatch[] = { "sed",
2218 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/,+1s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/",
2219 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2220 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2221 "-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/",
2222 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2223 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2226 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2228 * Description of Gnu_Types fix
2230 tSCC zGnu_TypesName[] =
2234 * File name selection pattern
2236 tSCC zGnu_TypesList[] =
2237 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
2239 * Machine/OS name selection pattern
2241 tSCC* apzGnu_TypesMachs[] = {
2242 "*-*-solaris2.1[0-9]*",
2243 (const char*)NULL };
2246 * content selection pattern - do fix if pattern found
2248 tSCC zGnu_TypesSelect0[] =
2249 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2252 * content bypass pattern - skip fix if pattern found
2254 tSCC zGnu_TypesBypass0[] =
2255 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2257 #define GNU_TYPES_TEST_CT 2
2258 static tTestDesc aGnu_TypesTests[] = {
2259 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2260 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2263 * Fix Command Arguments for Gnu_Types
2265 static const char* apzGnu_TypesPatch[] = {
2269 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2271 * Description of Hp_Inline fix
2273 tSCC zHp_InlineName[] =
2277 * File name selection pattern
2279 tSCC zHp_InlineList[] =
2280 "|sys/spinlock.h|machine/machparam.h|";
2282 * Machine/OS name selection pattern
2284 #define apzHp_InlineMachs (const char**)NULL
2287 * content selection pattern - do fix if pattern found
2289 tSCC zHp_InlineSelect0[] =
2290 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2292 #define HP_INLINE_TEST_CT 1
2293 static tTestDesc aHp_InlineTests[] = {
2294 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2297 * Fix Command Arguments for Hp_Inline
2299 static const char* apzHp_InlinePatch[] = {
2302 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2307 * Description of Hp_Sysfile fix
2309 tSCC zHp_SysfileName[] =
2313 * File name selection pattern
2315 tSCC zHp_SysfileList[] =
2318 * Machine/OS name selection pattern
2320 #define apzHp_SysfileMachs (const char**)NULL
2323 * content selection pattern - do fix if pattern found
2325 tSCC zHp_SysfileSelect0[] =
2328 #define HP_SYSFILE_TEST_CT 1
2329 static tTestDesc aHp_SysfileTests[] = {
2330 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2333 * Fix Command Arguments for Hp_Sysfile
2335 static const char* apzHp_SysfilePatch[] = {
2337 "(struct file *, ...)",
2341 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2343 * Description of Hpux10_Cpp_Pow_Inline fix
2345 tSCC zHpux10_Cpp_Pow_InlineName[] =
2346 "hpux10_cpp_pow_inline";
2349 * File name selection pattern
2351 tSCC zHpux10_Cpp_Pow_InlineList[] =
2352 "|fixinc-test-limits.h|math.h|";
2354 * Machine/OS name selection pattern
2356 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2359 * content selection pattern - do fix if pattern found
2361 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2362 "^# +ifdef +__cplusplus\n\
2364 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2365 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2367 +extern +\"C\" +\\{\n\
2371 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2372 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2373 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2376 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2378 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2383 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2385 * Description of Hpux11_Cpp_Pow_Inline fix
2387 tSCC zHpux11_Cpp_Pow_InlineName[] =
2388 "hpux11_cpp_pow_inline";
2391 * File name selection pattern
2393 tSCC zHpux11_Cpp_Pow_InlineList[] =
2396 * Machine/OS name selection pattern
2398 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2401 * content selection pattern - do fix if pattern found
2403 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2404 " +inline double pow\\(double d,int expon\\) \\{\n\
2405 +return pow\\(d, \\(double\\)expon\\);\n\
2408 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2409 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2410 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2413 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2415 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2420 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2422 * Description of Hpux10_Ctype_Declarations1 fix
2424 tSCC zHpux10_Ctype_Declarations1Name[] =
2425 "hpux10_ctype_declarations1";
2428 * File name selection pattern
2430 tSCC zHpux10_Ctype_Declarations1List[] =
2433 * Machine/OS name selection pattern
2435 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2438 * content selection pattern - do fix if pattern found
2440 tSCC zHpux10_Ctype_Declarations1Select0[] =
2441 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2444 * content bypass pattern - skip fix if pattern found
2446 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2447 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2449 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2450 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2451 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2452 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2455 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2457 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2459 "#ifdef _PROTOTYPES\n\
2460 extern int __tolower(int);\n\
2461 extern int __toupper(int);\n\
2462 #else /* NOT _PROTOTYPES */\n\
2463 extern int __tolower();\n\
2464 extern int __toupper();\n\
2465 #endif /* _PROTOTYPES */\n\n\
2469 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2471 * Description of Hpux10_Ctype_Declarations2 fix
2473 tSCC zHpux10_Ctype_Declarations2Name[] =
2474 "hpux10_ctype_declarations2";
2477 * File name selection pattern
2479 tSCC zHpux10_Ctype_Declarations2List[] =
2482 * Machine/OS name selection pattern
2484 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2487 * content selection pattern - do fix if pattern found
2489 tSCC zHpux10_Ctype_Declarations2Select0[] =
2490 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2493 * content bypass pattern - skip fix if pattern found
2495 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2496 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2498 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2499 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2500 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2501 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2504 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2506 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2509 #ifdef _PROTOTYPES\n\
2510 extern int _isalnum(int);\n\
2511 extern int _isalpha(int);\n\
2512 extern int _iscntrl(int);\n\
2513 extern int _isdigit(int);\n\
2514 extern int _isgraph(int);\n\
2515 extern int _islower(int);\n\
2516 extern int _isprint(int);\n\
2517 extern int _ispunct(int);\n\
2518 extern int _isspace(int);\n\
2519 extern int _isupper(int);\n\
2520 extern int _isxdigit(int);\n\
2521 # else /* not _PROTOTYPES */\n\
2522 extern int _isalnum();\n\
2523 extern int _isalpha();\n\
2524 extern int _iscntrl();\n\
2525 extern int _isdigit();\n\
2526 extern int _isgraph();\n\
2527 extern int _islower();\n\
2528 extern int _isprint();\n\
2529 extern int _ispunct();\n\
2530 extern int _isspace();\n\
2531 extern int _isupper();\n\
2532 extern int _isxdigit();\n\
2533 #endif /* _PROTOTYPES */\n",
2536 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2538 * Description of Hpux10_Stdio_Declarations fix
2540 tSCC zHpux10_Stdio_DeclarationsName[] =
2541 "hpux10_stdio_declarations";
2544 * File name selection pattern
2546 tSCC zHpux10_Stdio_DeclarationsList[] =
2549 * Machine/OS name selection pattern
2551 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2554 * content selection pattern - do fix if pattern found
2556 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2557 "^#[ \t]*define _iob[ \t]*__iob";
2560 * content bypass pattern - skip fix if pattern found
2562 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2563 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2565 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2566 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2567 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2568 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2571 * Fix Command Arguments for Hpux10_Stdio_Declarations
2573 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2576 # if defined(__STDC__) || defined(__cplusplus)\n\
2577 extern int snprintf(char *, size_t, const char *, ...);\n\
2578 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2579 # else /* not __STDC__) || __cplusplus */\n\
2580 extern int snprintf();\n\
2581 extern int vsnprintf();\n\
2582 # endif /* __STDC__) || __cplusplus */\n",
2585 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2587 * Description of Hpux11_Abs fix
2589 tSCC zHpux11_AbsName[] =
2593 * File name selection pattern
2595 tSCC zHpux11_AbsList[] =
2598 * Machine/OS name selection pattern
2600 tSCC* apzHpux11_AbsMachs[] = {
2602 (const char*)NULL };
2605 * content selection pattern - do fix if pattern found
2607 tSCC zHpux11_AbsSelect0[] =
2608 "ifndef _MATH_INCLUDED";
2610 #define HPUX11_ABS_TEST_CT 1
2611 static tTestDesc aHpux11_AbsTests[] = {
2612 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2615 * Fix Command Arguments for Hpux11_Abs
2617 static const char* apzHpux11_AbsPatch[] = {
2619 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2622 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2624 * Description of Hpux11_Fabsf fix
2626 tSCC zHpux11_FabsfName[] =
2630 * File name selection pattern
2632 tSCC zHpux11_FabsfList[] =
2635 * Machine/OS name selection pattern
2637 #define apzHpux11_FabsfMachs (const char**)NULL
2640 * content selection pattern - do fix if pattern found
2642 tSCC zHpux11_FabsfSelect0[] =
2643 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2646 * content bypass pattern - skip fix if pattern found
2648 tSCC zHpux11_FabsfBypass0[] =
2651 #define HPUX11_FABSF_TEST_CT 2
2652 static tTestDesc aHpux11_FabsfTests[] = {
2653 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2654 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2657 * Fix Command Arguments for Hpux11_Fabsf
2659 static const char* apzHpux11_FabsfPatch[] = {
2661 "#ifndef __cplusplus\n\
2666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2668 * Description of Hpux11_Size_T fix
2670 tSCC zHpux11_Size_TName[] =
2674 * File name selection pattern
2676 #define zHpux11_Size_TList (char*)NULL
2678 * Machine/OS name selection pattern
2680 tSCC* apzHpux11_Size_TMachs[] = {
2682 (const char*)NULL };
2685 * content selection pattern - do fix if pattern found
2687 tSCC zHpux11_Size_TSelect0[] =
2690 #define HPUX11_SIZE_T_TEST_CT 1
2691 static tTestDesc aHpux11_Size_TTests[] = {
2692 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2695 * Fix Command Arguments for Hpux11_Size_T
2697 static const char* apzHpux11_Size_TPatch[] = {
2702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2704 * Description of Hpux11_Snprintf fix
2706 tSCC zHpux11_SnprintfName[] =
2710 * File name selection pattern
2712 tSCC zHpux11_SnprintfList[] =
2715 * Machine/OS name selection pattern
2717 #define apzHpux11_SnprintfMachs (const char**)NULL
2720 * content selection pattern - do fix if pattern found
2722 tSCC zHpux11_SnprintfSelect0[] =
2723 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2725 #define HPUX11_SNPRINTF_TEST_CT 1
2726 static tTestDesc aHpux11_SnprintfTests[] = {
2727 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2730 * Fix Command Arguments for Hpux11_Snprintf
2732 static const char* apzHpux11_SnprintfPatch[] = {
2737 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2739 * Description of Hpux11_Uint32_C fix
2741 tSCC zHpux11_Uint32_CName[] =
2745 * File name selection pattern
2747 tSCC zHpux11_Uint32_CList[] =
2750 * Machine/OS name selection pattern
2752 #define apzHpux11_Uint32_CMachs (const char**)NULL
2755 * content selection pattern - do fix if pattern found
2757 tSCC zHpux11_Uint32_CSelect0[] =
2758 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2760 #define HPUX11_UINT32_C_TEST_CT 1
2761 static tTestDesc aHpux11_Uint32_CTests[] = {
2762 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2765 * Fix Command Arguments for Hpux11_Uint32_C
2767 static const char* apzHpux11_Uint32_CPatch[] = {
2769 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2772 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2774 * Description of Hpux11_Vsnprintf fix
2776 tSCC zHpux11_VsnprintfName[] =
2780 * File name selection pattern
2782 tSCC zHpux11_VsnprintfList[] =
2785 * Machine/OS name selection pattern
2787 #define apzHpux11_VsnprintfMachs (const char**)NULL
2790 * content selection pattern - do fix if pattern found
2792 tSCC zHpux11_VsnprintfSelect0[] =
2793 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2795 #define HPUX11_VSNPRINTF_TEST_CT 1
2796 static tTestDesc aHpux11_VsnprintfTests[] = {
2797 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2800 * Fix Command Arguments for Hpux11_Vsnprintf
2802 static const char* apzHpux11_VsnprintfPatch[] = {
2807 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2809 * Description of Hpux8_Bogus_Inlines fix
2811 tSCC zHpux8_Bogus_InlinesName[] =
2812 "hpux8_bogus_inlines";
2815 * File name selection pattern
2817 tSCC zHpux8_Bogus_InlinesList[] =
2820 * Machine/OS name selection pattern
2822 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2825 * content selection pattern - do fix if pattern found
2827 tSCC zHpux8_Bogus_InlinesSelect0[] =
2831 * content bypass pattern - skip fix if pattern found
2833 tSCC zHpux8_Bogus_InlinesBypass0[] =
2836 #define HPUX8_BOGUS_INLINES_TEST_CT 2
2837 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2838 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
2839 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2842 * Fix Command Arguments for Hpux8_Bogus_Inlines
2844 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2845 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2846 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2847 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2848 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2853 * Description of Hpux_Ctype_Macros fix
2855 tSCC zHpux_Ctype_MacrosName[] =
2856 "hpux_ctype_macros";
2859 * File name selection pattern
2861 tSCC zHpux_Ctype_MacrosList[] =
2864 * Machine/OS name selection pattern
2866 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2869 * content selection pattern - do fix if pattern found
2871 tSCC zHpux_Ctype_MacrosSelect0[] =
2872 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2874 #define HPUX_CTYPE_MACROS_TEST_CT 1
2875 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2876 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
2879 * Fix Command Arguments for Hpux_Ctype_Macros
2881 static const char* apzHpux_Ctype_MacrosPatch[] = {
2886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2888 * Description of Hpux_Htonl fix
2890 tSCC zHpux_HtonlName[] =
2894 * File name selection pattern
2896 tSCC zHpux_HtonlList[] =
2899 * Machine/OS name selection pattern
2901 #define apzHpux_HtonlMachs (const char**)NULL
2904 * content selection pattern - do fix if pattern found
2906 tSCC zHpux_HtonlSelect0[] =
2907 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
2909 \\* Macros for number representation conversion\\.\n\
2913 #define HPUX_HTONL_TEST_CT 1
2914 static tTestDesc aHpux_HtonlTests[] = {
2915 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
2918 * Fix Command Arguments for Hpux_Htonl
2920 static const char* apzHpux_HtonlPatch[] = {
2926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2928 * Description of Hpux_Long_Double fix
2930 tSCC zHpux_Long_DoubleName[] =
2934 * File name selection pattern
2936 tSCC zHpux_Long_DoubleList[] =
2939 * Machine/OS name selection pattern
2941 #define apzHpux_Long_DoubleMachs (const char**)NULL
2944 * content selection pattern - do fix if pattern found
2946 tSCC zHpux_Long_DoubleSelect0[] =
2947 "extern[ \t]long_double[ \t]strtold";
2950 * content bypass pattern - skip fix if pattern found
2952 tSCC zHpux_Long_DoubleBypass0[] =
2955 #define HPUX_LONG_DOUBLE_TEST_CT 2
2956 static tTestDesc aHpux_Long_DoubleTests[] = {
2957 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
2958 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
2961 * Fix Command Arguments for Hpux_Long_Double
2963 static const char* apzHpux_Long_DoublePatch[] = { "sed",
2964 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
2965 "-e", "s/long_double/long double/g",
2968 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2970 * Description of Hpux_Systime fix
2972 tSCC zHpux_SystimeName[] =
2976 * File name selection pattern
2978 tSCC zHpux_SystimeList[] =
2981 * Machine/OS name selection pattern
2983 #define apzHpux_SystimeMachs (const char**)NULL
2986 * content selection pattern - do fix if pattern found
2988 tSCC zHpux_SystimeSelect0[] =
2989 "^extern struct sigevent;";
2991 #define HPUX_SYSTIME_TEST_CT 1
2992 static tTestDesc aHpux_SystimeTests[] = {
2993 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2996 * Fix Command Arguments for Hpux_Systime
2998 static const char* apzHpux_SystimePatch[] = {
3003 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3005 * Description of Hpux_Spu_Info fix
3007 tSCC zHpux_Spu_InfoName[] =
3011 * File name selection pattern
3013 tSCC zHpux_Spu_InfoList[] =
3014 "|ia64/sys/getppdp.h|";
3016 * Machine/OS name selection pattern
3018 tSCC* apzHpux_Spu_InfoMachs[] = {
3020 (const char*)NULL };
3023 * content selection pattern - do fix if pattern found
3025 tSCC zHpux_Spu_InfoSelect0[] =
3026 "^.*extern.*spu_info.*";
3028 #define HPUX_SPU_INFO_TEST_CT 1
3029 static tTestDesc aHpux_Spu_InfoTests[] = {
3030 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3033 * Fix Command Arguments for Hpux_Spu_Info
3035 static const char* apzHpux_Spu_InfoPatch[] = {
3042 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3044 * Description of Hpux_Extern_Errno fix
3046 tSCC zHpux_Extern_ErrnoName[] =
3047 "hpux_extern_errno";
3050 * File name selection pattern
3052 tSCC zHpux_Extern_ErrnoList[] =
3055 * Machine/OS name selection pattern
3057 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3059 "*-hp-hpux11.[0-2]*",
3060 (const char*)NULL };
3063 * content selection pattern - do fix if pattern found
3065 tSCC zHpux_Extern_ErrnoSelect0[] =
3066 "^[ \t]*extern int errno;$";
3068 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3069 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3070 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3073 * Fix Command Arguments for Hpux_Extern_Errno
3075 static const char* apzHpux_Extern_ErrnoPatch[] = {
3077 "#ifdef __cplusplus\n\
3081 #ifdef __cplusplus\n\
3086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3088 * Description of Hpux_Pthread_Initializers fix
3090 tSCC zHpux_Pthread_InitializersName[] =
3091 "hpux_pthread_initializers";
3094 * File name selection pattern
3096 tSCC zHpux_Pthread_InitializersList[] =
3099 * Machine/OS name selection pattern
3101 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3102 "*-hp-hpux11.[0-3]*",
3103 (const char*)NULL };
3104 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3105 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3108 * Fix Command Arguments for Hpux_Pthread_Initializers
3110 static const char* apzHpux_Pthread_InitializersPatch[] = { "sed",
3111 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3112 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3113 "-e", "/^[ \t]*0$/d",
3114 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3115 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3116 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3117 "-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\\\\@",
3118 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3119 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3120 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3121 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3122 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3123 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3126 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3128 * Description of Huge_Val_Hex fix
3130 tSCC zHuge_Val_HexName[] =
3134 * File name selection pattern
3136 tSCC zHuge_Val_HexList[] =
3137 "|bits/huge_val.h|";
3139 * Machine/OS name selection pattern
3141 #define apzHuge_Val_HexMachs (const char**)NULL
3144 * content selection pattern - do fix if pattern found
3146 tSCC zHuge_Val_HexSelect0[] =
3147 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3150 * content bypass pattern - skip fix if pattern found
3152 tSCC zHuge_Val_HexBypass0[] =
3153 "__builtin_huge_val";
3155 #define HUGE_VAL_HEX_TEST_CT 2
3156 static tTestDesc aHuge_Val_HexTests[] = {
3157 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3158 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3161 * Fix Command Arguments for Huge_Val_Hex
3163 static const char* apzHuge_Val_HexPatch[] = {
3165 "#define HUGE_VAL (__builtin_huge_val())\n",
3168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3170 * Description of Huge_Valf_Hex fix
3172 tSCC zHuge_Valf_HexName[] =
3176 * File name selection pattern
3178 tSCC zHuge_Valf_HexList[] =
3179 "|bits/huge_val.h|";
3181 * Machine/OS name selection pattern
3183 #define apzHuge_Valf_HexMachs (const char**)NULL
3186 * content selection pattern - do fix if pattern found
3188 tSCC zHuge_Valf_HexSelect0[] =
3189 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3192 * content bypass pattern - skip fix if pattern found
3194 tSCC zHuge_Valf_HexBypass0[] =
3195 "__builtin_huge_valf";
3197 #define HUGE_VALF_HEX_TEST_CT 2
3198 static tTestDesc aHuge_Valf_HexTests[] = {
3199 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3200 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3203 * Fix Command Arguments for Huge_Valf_Hex
3205 static const char* apzHuge_Valf_HexPatch[] = {
3207 "#define HUGE_VALF (__builtin_huge_valf())\n",
3210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3212 * Description of Huge_Vall_Hex fix
3214 tSCC zHuge_Vall_HexName[] =
3218 * File name selection pattern
3220 tSCC zHuge_Vall_HexList[] =
3221 "|bits/huge_val.h|";
3223 * Machine/OS name selection pattern
3225 #define apzHuge_Vall_HexMachs (const char**)NULL
3228 * content selection pattern - do fix if pattern found
3230 tSCC zHuge_Vall_HexSelect0[] =
3231 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3234 * content bypass pattern - skip fix if pattern found
3236 tSCC zHuge_Vall_HexBypass0[] =
3237 "__builtin_huge_vall";
3239 #define HUGE_VALL_HEX_TEST_CT 2
3240 static tTestDesc aHuge_Vall_HexTests[] = {
3241 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3242 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3245 * Fix Command Arguments for Huge_Vall_Hex
3247 static const char* apzHuge_Vall_HexPatch[] = {
3249 "#define HUGE_VALL (__builtin_huge_vall())\n",
3252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3254 * Description of Int_Abort_Free_And_Exit fix
3256 tSCC zInt_Abort_Free_And_ExitName[] =
3257 "int_abort_free_and_exit";
3260 * File name selection pattern
3262 tSCC zInt_Abort_Free_And_ExitList[] =
3265 * Machine/OS name selection pattern
3267 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3270 * content selection pattern - do fix if pattern found
3272 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3273 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3276 * content bypass pattern - skip fix if pattern found
3278 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3279 "_CLASSIC_ANSI_TYPES";
3281 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3282 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3283 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3284 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3287 * Fix Command Arguments for Int_Abort_Free_And_Exit
3289 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3296 * Description of Io_Quotes_Def fix
3298 tSCC zIo_Quotes_DefName[] =
3302 * File name selection pattern
3304 #define zIo_Quotes_DefList (char*)NULL
3306 * Machine/OS name selection pattern
3308 #define apzIo_Quotes_DefMachs (const char**)NULL
3311 * content selection pattern - do fix if pattern found
3313 tSCC zIo_Quotes_DefSelect0[] =
3314 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3316 #define IO_QUOTES_DEF_TEST_CT 1
3317 static tTestDesc aIo_Quotes_DefTests[] = {
3318 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3321 * Fix Command Arguments for Io_Quotes_Def
3323 static const char* apzIo_Quotes_DefPatch[] = {
3328 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3330 * Description of Io_Quotes_Use fix
3332 tSCC zIo_Quotes_UseName[] =
3336 * File name selection pattern
3338 #define zIo_Quotes_UseList (char*)NULL
3340 * Machine/OS name selection pattern
3342 #define apzIo_Quotes_UseMachs (const char**)NULL
3345 * content selection pattern - do fix if pattern found
3347 tSCC zIo_Quotes_UseSelect0[] =
3348 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3350 #define IO_QUOTES_USE_TEST_CT 1
3351 static tTestDesc aIo_Quotes_UseTests[] = {
3352 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3355 * Fix Command Arguments for Io_Quotes_Use
3357 static const char* apzIo_Quotes_UsePatch[] = {
3362 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3364 * Description of Ip_Missing_Semi fix
3366 tSCC zIp_Missing_SemiName[] =
3370 * File name selection pattern
3372 tSCC zIp_Missing_SemiList[] =
3375 * Machine/OS name selection pattern
3377 #define apzIp_Missing_SemiMachs (const char**)NULL
3380 * content selection pattern - do fix if pattern found
3382 tSCC zIp_Missing_SemiSelect0[] =
3385 #define IP_MISSING_SEMI_TEST_CT 1
3386 static tTestDesc aIp_Missing_SemiTests[] = {
3387 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3390 * Fix Command Arguments for Ip_Missing_Semi
3392 static const char* apzIp_Missing_SemiPatch[] = { "sed",
3393 "-e", "/^struct/,/^};/s/}$/};/",
3396 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3398 * Description of Irix___Restrict fix
3400 tSCC zIrix___RestrictName[] =
3404 * File name selection pattern
3406 tSCC zIrix___RestrictList[] =
3407 "|internal/sgimacros.h|";
3409 * Machine/OS name selection pattern
3411 tSCC* apzIrix___RestrictMachs[] = {
3413 (const char*)NULL };
3416 * content selection pattern - do fix if pattern found
3418 tSCC zIrix___RestrictSelect0[] =
3420 )(#[ \t]*define __restrict restrict)";
3422 #define IRIX___RESTRICT_TEST_CT 1
3423 static tTestDesc aIrix___RestrictTests[] = {
3424 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3427 * Fix Command Arguments for Irix___Restrict
3429 static const char* apzIrix___RestrictPatch[] = {
3431 "%1# ifndef __cplusplus\n\
3436 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3438 * Description of Irix___Generic1 fix
3440 tSCC zIrix___Generic1Name[] =
3444 * File name selection pattern
3446 tSCC zIrix___Generic1List[] =
3447 "|internal/math_core.h|";
3449 * Machine/OS name selection pattern
3451 tSCC* apzIrix___Generic1Machs[] = {
3453 (const char*)NULL };
3456 * content selection pattern - do fix if pattern found
3458 tSCC zIrix___Generic1Select0[] =
3459 "#define ([a-z]+)\\(x\\) *__generic.*";
3461 #define IRIX___GENERIC1_TEST_CT 1
3462 static tTestDesc aIrix___Generic1Tests[] = {
3463 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3466 * Fix Command Arguments for Irix___Generic1
3468 static const char* apzIrix___Generic1Patch[] = {
3470 "extern int %1(double);\n\
3471 extern int %1f(float);\n\
3472 extern int %1l(long double);\n\
3473 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3474 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3478 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3480 * Description of Irix___Generic2 fix
3482 tSCC zIrix___Generic2Name[] =
3486 * File name selection pattern
3488 tSCC zIrix___Generic2List[] =
3489 "|internal/math_core.h|";
3491 * Machine/OS name selection pattern
3493 tSCC* apzIrix___Generic2Machs[] = {
3495 (const char*)NULL };
3498 * content selection pattern - do fix if pattern found
3500 tSCC zIrix___Generic2Select0[] =
3501 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3503 #define IRIX___GENERIC2_TEST_CT 1
3504 static tTestDesc aIrix___Generic2Tests[] = {
3505 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3508 * Fix Command Arguments for Irix___Generic2
3510 static const char* apzIrix___Generic2Patch[] = {
3512 "#define %1(x,y) \\\n\
3513 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3514 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3518 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3520 * Description of Irix_Asm_Apostrophe fix
3522 tSCC zIrix_Asm_ApostropheName[] =
3523 "irix_asm_apostrophe";
3526 * File name selection pattern
3528 tSCC zIrix_Asm_ApostropheList[] =
3531 * Machine/OS name selection pattern
3533 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3536 * content selection pattern - do fix if pattern found
3538 tSCC zIrix_Asm_ApostropheSelect0[] =
3539 "^[ \t]*#.*[Ww]e're";
3541 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
3542 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3543 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3546 * Fix Command Arguments for Irix_Asm_Apostrophe
3548 static const char* apzIrix_Asm_ApostrophePatch[] = {
3551 "^([ \t]*#.*[Ww]e)'re",
3554 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3556 * Description of Irix_Limits_Const fix
3558 tSCC zIrix_Limits_ConstName[] =
3559 "irix_limits_const";
3562 * File name selection pattern
3564 tSCC zIrix_Limits_ConstList[] =
3565 "|fixinc-test-limits.h|limits.h|";
3567 * Machine/OS name selection pattern
3569 #define apzIrix_Limits_ConstMachs (const char**)NULL
3572 * content selection pattern - do fix if pattern found
3574 tSCC zIrix_Limits_ConstSelect0[] =
3577 #define IRIX_LIMITS_CONST_TEST_CT 1
3578 static tTestDesc aIrix_Limits_ConstTests[] = {
3579 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3582 * Fix Command Arguments for Irix_Limits_Const
3584 static const char* apzIrix_Limits_ConstPatch[] = {
3589 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3591 * Description of Irix_Socklen_T fix
3593 tSCC zIrix_Socklen_TName[] =
3597 * File name selection pattern
3599 tSCC zIrix_Socklen_TList[] =
3602 * Machine/OS name selection pattern
3604 tSCC* apzIrix_Socklen_TMachs[] = {
3606 (const char*)NULL };
3609 * content selection pattern - do fix if pattern found
3611 tSCC zIrix_Socklen_TSelect0[] =
3612 "(#define _SOCKLEN_T\n\
3613 )(typedef u_int32_t socklen_t;)";
3615 #define IRIX_SOCKLEN_T_TEST_CT 1
3616 static tTestDesc aIrix_Socklen_TTests[] = {
3617 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3620 * Fix Command Arguments for Irix_Socklen_T
3622 static const char* apzIrix_Socklen_TPatch[] = {
3624 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3625 typedef int socklen_t;\n\
3628 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
3631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3633 * Description of Irix_Stdio_Va_List fix
3635 tSCC zIrix_Stdio_Va_ListName[] =
3636 "irix_stdio_va_list";
3639 * File name selection pattern
3641 tSCC zIrix_Stdio_Va_ListList[] =
3642 "|stdio.h|internal/stdio_core.h|";
3644 * Machine/OS name selection pattern
3646 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
3649 * content selection pattern - do fix if pattern found
3651 tSCC zIrix_Stdio_Va_ListSelect0[] =
3652 "/\\* va_list \\*/ char \\*";
3654 #define IRIX_STDIO_VA_LIST_TEST_CT 1
3655 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
3656 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
3659 * Fix Command Arguments for Irix_Stdio_Va_List
3661 static const char* apzIrix_Stdio_Va_ListPatch[] = {
3666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3668 * Description of Irix_Wcsftime fix
3670 tSCC zIrix_WcsftimeName[] =
3674 * File name selection pattern
3676 tSCC zIrix_WcsftimeList[] =
3677 "|internal/wchar_core.h|";
3679 * Machine/OS name selection pattern
3681 tSCC* apzIrix_WcsftimeMachs[] = {
3683 (const char*)NULL };
3686 * content selection pattern - do fix if pattern found
3688 tSCC zIrix_WcsftimeSelect0[] =
3690 (extern size_t[ \t]+wcsftime.*const char *.*)";
3692 #define IRIX_WCSFTIME_TEST_CT 1
3693 static tTestDesc aIrix_WcsftimeTests[] = {
3694 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
3697 * Fix Command Arguments for Irix_Wcsftime
3699 static const char* apzIrix_WcsftimePatch[] = {
3701 "#if _NO_XOPEN5 && !defined(__c99)\n\
3705 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3707 * Description of Isc_Fmod fix
3709 tSCC zIsc_FmodName[] =
3713 * File name selection pattern
3715 tSCC zIsc_FmodList[] =
3718 * Machine/OS name selection pattern
3720 #define apzIsc_FmodMachs (const char**)NULL
3723 * content selection pattern - do fix if pattern found
3725 tSCC zIsc_FmodSelect0[] =
3728 #define ISC_FMOD_TEST_CT 1
3729 static tTestDesc aIsc_FmodTests[] = {
3730 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
3733 * Fix Command Arguments for Isc_Fmod
3735 static const char* apzIsc_FmodPatch[] = {
3737 "fmod(double, double)",
3740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3742 * Description of Isc_Omits_With_Stdc fix
3744 tSCC zIsc_Omits_With_StdcName[] =
3745 "isc_omits_with_stdc";
3748 * File name selection pattern
3750 tSCC zIsc_Omits_With_StdcList[] =
3751 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
3753 * Machine/OS name selection pattern
3755 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
3758 * content selection pattern - do fix if pattern found
3760 tSCC zIsc_Omits_With_StdcSelect0[] =
3761 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
3763 #define ISC_OMITS_WITH_STDC_TEST_CT 1
3764 static tTestDesc aIsc_Omits_With_StdcTests[] = {
3765 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
3768 * Fix Command Arguments for Isc_Omits_With_Stdc
3770 static const char* apzIsc_Omits_With_StdcPatch[] = {
3772 "!defined(_POSIX_SOURCE)",
3775 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3777 * Description of Kandr_Concat fix
3779 tSCC zKandr_ConcatName[] =
3783 * File name selection pattern
3785 tSCC zKandr_ConcatList[] =
3786 "|sparc/asm_linkage.h|sun3/asm_linkage.h|sun3x/asm_linkage.h|sun4/asm_linkage.h|sun4c/asm_linkage.h|sun4m/asm_linkage.h|sun4c/debug/asm_linkage.h|sun4m/debug/asm_linkage.h|arm/as_support.h|arm/mc_type.h|arm/xcb.h|dev/chardefmac.h|dev/ps_irq.h|dev/screen.h|dev/scsi.h|sys/tty.h|Xm.acorn/XmP.h|bsd43/bsd43_.h|";
3788 * Machine/OS name selection pattern
3790 #define apzKandr_ConcatMachs (const char**)NULL
3793 * content selection pattern - do fix if pattern found
3795 tSCC zKandr_ConcatSelect0[] =
3798 #define KANDR_CONCAT_TEST_CT 1
3799 static tTestDesc aKandr_ConcatTests[] = {
3800 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
3803 * Fix Command Arguments for Kandr_Concat
3805 static const char* apzKandr_ConcatPatch[] = {
3810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3812 * Description of Libc1_G_Va_List fix
3814 tSCC zLibc1_G_Va_ListName[] =
3818 * File name selection pattern
3820 tSCC zLibc1_G_Va_ListList[] =
3823 * Machine/OS name selection pattern
3825 tSCC* apzLibc1_G_Va_ListMachs[] = {
3827 (const char*)NULL };
3830 * content selection pattern - do fix if pattern found
3832 tSCC zLibc1_G_Va_ListSelect0[] =
3833 "typedef void \\* _G_va_list;";
3835 #define LIBC1_G_VA_LIST_TEST_CT 1
3836 static tTestDesc aLibc1_G_Va_ListTests[] = {
3837 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
3840 * Fix Command Arguments for Libc1_G_Va_List
3842 static const char* apzLibc1_G_Va_ListPatch[] = {
3844 "typedef __builtin_va_list _G_va_list;",
3847 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3849 * Description of Libc1_Ifdefd_Memx fix
3851 tSCC zLibc1_Ifdefd_MemxName[] =
3852 "libc1_ifdefd_memx";
3855 * File name selection pattern
3857 tSCC zLibc1_Ifdefd_MemxList[] =
3858 "|testing.h|string.h|";
3860 * Machine/OS name selection pattern
3862 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
3865 * content selection pattern - do fix if pattern found
3867 tSCC zLibc1_Ifdefd_MemxSelect0[] =
3868 "' is a built-in function for gcc 2\\.x\\. \\*/";
3871 * content bypass pattern - skip fix if pattern found
3873 tSCC zLibc1_Ifdefd_MemxBypass0[] =
3876 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
3877 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
3878 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
3879 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
3882 * Fix Command Arguments for Libc1_Ifdefd_Memx
3884 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
3887 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
3888 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
3890 extern [a-z_]+ mem.*(\n\
3895 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3897 * Description of Linux_Ia64_Ucontext fix
3899 tSCC zLinux_Ia64_UcontextName[] =
3900 "linux_ia64_ucontext";
3903 * File name selection pattern
3905 tSCC zLinux_Ia64_UcontextList[] =
3908 * Machine/OS name selection pattern
3910 tSCC* apzLinux_Ia64_UcontextMachs[] = {
3912 (const char*)NULL };
3915 * content selection pattern - do fix if pattern found
3917 tSCC zLinux_Ia64_UcontextSelect0[] =
3918 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
3920 #define LINUX_IA64_UCONTEXT_TEST_CT 1
3921 static tTestDesc aLinux_Ia64_UcontextTests[] = {
3922 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
3925 * Fix Command Arguments for Linux_Ia64_Ucontext
3927 static const char* apzLinux_Ia64_UcontextPatch[] = {
3929 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
3932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3934 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
3936 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
3937 "lynxos_no_warning_in_sys_time_h";
3940 * File name selection pattern
3942 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
3945 * Machine/OS name selection pattern
3947 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
3950 * content selection pattern - do fix if pattern found
3952 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
3953 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
3955 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
3956 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
3957 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
3960 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
3962 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
3967 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3969 * Description of Lynxos_Missing_Putenv fix
3971 tSCC zLynxos_Missing_PutenvName[] =
3972 "lynxos_missing_putenv";
3975 * File name selection pattern
3977 tSCC zLynxos_Missing_PutenvList[] =
3980 * Machine/OS name selection pattern
3982 tSCC* apzLynxos_Missing_PutenvMachs[] = {
3984 (const char*)NULL };
3987 * content selection pattern - do fix if pattern found
3989 tSCC zLynxos_Missing_PutenvSelect0[] =
3990 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
3993 * content bypass pattern - skip fix if pattern found
3995 tSCC zLynxos_Missing_PutenvBypass0[] =
3998 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
3999 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4000 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4001 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4004 * Fix Command Arguments for Lynxos_Missing_Putenv
4006 static const char* apzLynxos_Missing_PutenvPatch[] = {
4009 extern int putenv\t\t\t\t_AP((char *));",
4010 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4013 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4015 * Description of Machine_Ansi_H_Va_List fix
4017 tSCC zMachine_Ansi_H_Va_ListName[] =
4018 "machine_ansi_h_va_list";
4021 * File name selection pattern
4023 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4025 * Machine/OS name selection pattern
4027 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4030 * content selection pattern - do fix if pattern found
4032 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4033 "define[ \t]+_BSD_VA_LIST_[ \t]";
4036 * content bypass pattern - skip fix if pattern found
4038 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4039 "__builtin_va_list";
4041 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4042 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4043 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4044 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4047 * Fix Command Arguments for Machine_Ansi_H_Va_List
4049 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4051 "%1__builtin_va_list",
4052 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4055 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4057 * Description of Machine_Name fix
4059 tSCC zMachine_NameName[] =
4063 * File name selection pattern
4065 #define zMachine_NameList (char*)NULL
4067 * Machine/OS name selection pattern
4069 #define apzMachine_NameMachs (const char**)NULL
4072 * perform the C function call test
4074 tSCC zMachine_NameFTst0[] = "machine_name";
4076 #define MACHINE_NAME_TEST_CT 1
4077 static tTestDesc aMachine_NameTests[] = {
4078 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4081 * Fix Command Arguments for Machine_Name
4083 static const char* apzMachine_NamePatch[] = {
4087 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4089 * Description of Math_Exception fix
4091 tSCC zMath_ExceptionName[] =
4095 * File name selection pattern
4097 tSCC zMath_ExceptionList[] =
4100 * Machine/OS name selection pattern
4102 #define apzMath_ExceptionMachs (const char**)NULL
4105 * content selection pattern - do fix if pattern found
4107 tSCC zMath_ExceptionSelect0[] =
4111 * content bypass pattern - skip fix if pattern found
4113 tSCC zMath_ExceptionBypass0[] =
4114 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4116 #define MATH_EXCEPTION_TEST_CT 2
4117 static tTestDesc aMath_ExceptionTests[] = {
4118 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4119 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4122 * Fix Command Arguments for Math_Exception
4124 static const char* apzMath_ExceptionPatch[] = {
4126 "#ifdef __cplusplus\n\
4127 #define exception __math_exception\n\
4129 "#ifdef __cplusplus\n\
4134 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4136 * Description of Math_Huge_Val_From_Dbl_Max fix
4138 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4139 "math_huge_val_from_dbl_max";
4142 * File name selection pattern
4144 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4147 * Machine/OS name selection pattern
4149 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4152 * content selection pattern - do fix if pattern found
4154 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4155 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4158 * content bypass pattern - skip fix if pattern found
4160 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4161 "define[ \t]+DBL_MAX";
4163 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4164 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4165 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4166 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4169 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4171 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4172 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4173 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4174 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4181 * Description of Nested_Auth_Des fix
4183 tSCC zNested_Auth_DesName[] =
4187 * File name selection pattern
4189 tSCC zNested_Auth_DesList[] =
4192 * Machine/OS name selection pattern
4194 #define apzNested_Auth_DesMachs (const char**)NULL
4197 * content selection pattern - do fix if pattern found
4199 tSCC zNested_Auth_DesSelect0[] =
4200 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4202 #define NESTED_AUTH_DES_TEST_CT 1
4203 static tTestDesc aNested_Auth_DesTests[] = {
4204 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4207 * Fix Command Arguments for Nested_Auth_Des
4209 static const char* apzNested_Auth_DesPatch[] = {
4214 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4216 * Description of Nested_Motorola fix
4218 tSCC zNested_MotorolaName[] =
4222 * File name selection pattern
4224 tSCC zNested_MotorolaList[] =
4225 "|sys/limits.h|limits.h|";
4227 * Machine/OS name selection pattern
4229 tSCC* apzNested_MotorolaMachs[] = {
4230 "m68k-motorola-sysv*",
4231 (const char*)NULL };
4234 * content selection pattern - do fix if pattern found
4236 tSCC zNested_MotorolaSelect0[] =
4237 "max # bytes atomic in write|error value returned by Math lib";
4239 #define NESTED_MOTOROLA_TEST_CT 1
4240 static tTestDesc aNested_MotorolaTests[] = {
4241 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
4244 * Fix Command Arguments for Nested_Motorola
4246 static const char* apzNested_MotorolaPatch[] = { "sed",
4247 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
4248 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
4251 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4253 * Description of Nested_Sys_Limits fix
4255 tSCC zNested_Sys_LimitsName[] =
4256 "nested_sys_limits";
4259 * File name selection pattern
4261 tSCC zNested_Sys_LimitsList[] =
4264 * Machine/OS name selection pattern
4266 #define apzNested_Sys_LimitsMachs (const char**)NULL
4269 * content selection pattern - do fix if pattern found
4271 tSCC zNested_Sys_LimitsSelect0[] =
4274 #define NESTED_SYS_LIMITS_TEST_CT 1
4275 static tTestDesc aNested_Sys_LimitsTests[] = {
4276 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4279 * Fix Command Arguments for Nested_Sys_Limits
4281 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
4282 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4283 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4286 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4288 * Description of Netbsd_Extra_Semicolon fix
4290 tSCC zNetbsd_Extra_SemicolonName[] =
4291 "netbsd_extra_semicolon";
4294 * File name selection pattern
4296 tSCC zNetbsd_Extra_SemicolonList[] =
4299 * Machine/OS name selection pattern
4301 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4303 (const char*)NULL };
4306 * content selection pattern - do fix if pattern found
4308 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4309 "#define[ \t]*__END_DECLS[ \t]*};";
4311 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4312 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4313 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4316 * Fix Command Arguments for Netbsd_Extra_Semicolon
4318 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4320 "#define __END_DECLS }",
4323 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4325 * Description of Next_Math_Prefix fix
4327 tSCC zNext_Math_PrefixName[] =
4331 * File name selection pattern
4333 tSCC zNext_Math_PrefixList[] =
4336 * Machine/OS name selection pattern
4338 #define apzNext_Math_PrefixMachs (const char**)NULL
4341 * content selection pattern - do fix if pattern found
4343 tSCC zNext_Math_PrefixSelect0[] =
4344 "^extern[ \t]+double[ \t]+__const__[ \t]";
4346 #define NEXT_MATH_PREFIX_TEST_CT 1
4347 static tTestDesc aNext_Math_PrefixTests[] = {
4348 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4351 * Fix Command Arguments for Next_Math_Prefix
4353 static const char* apzNext_Math_PrefixPatch[] = {
4355 "extern double %1(",
4356 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4359 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4361 * Description of Next_Template fix
4363 tSCC zNext_TemplateName[] =
4367 * File name selection pattern
4369 tSCC zNext_TemplateList[] =
4372 * Machine/OS name selection pattern
4374 #define apzNext_TemplateMachs (const char**)NULL
4377 * content selection pattern - do fix if pattern found
4379 tSCC zNext_TemplateSelect0[] =
4382 #define NEXT_TEMPLATE_TEST_CT 1
4383 static tTestDesc aNext_TemplateTests[] = {
4384 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
4387 * Fix Command Arguments for Next_Template
4389 static const char* apzNext_TemplatePatch[] = {
4392 "\\(([^)]*)[ \t]template\\)",
4395 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4397 * Description of Next_Volitile fix
4399 tSCC zNext_VolitileName[] =
4403 * File name selection pattern
4405 tSCC zNext_VolitileList[] =
4408 * Machine/OS name selection pattern
4410 #define apzNext_VolitileMachs (const char**)NULL
4413 * content selection pattern - do fix if pattern found
4415 tSCC zNext_VolitileSelect0[] =
4416 "^extern[ \t]+volatile[ \t]+void[ \t]";
4418 #define NEXT_VOLITILE_TEST_CT 1
4419 static tTestDesc aNext_VolitileTests[] = {
4420 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
4423 * Fix Command Arguments for Next_Volitile
4425 static const char* apzNext_VolitilePatch[] = {
4428 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
4431 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4433 * Description of Next_Wait_Union fix
4435 tSCC zNext_Wait_UnionName[] =
4439 * File name selection pattern
4441 tSCC zNext_Wait_UnionList[] =
4444 * Machine/OS name selection pattern
4446 #define apzNext_Wait_UnionMachs (const char**)NULL
4449 * content selection pattern - do fix if pattern found
4451 tSCC zNext_Wait_UnionSelect0[] =
4452 "wait\\(union wait";
4454 #define NEXT_WAIT_UNION_TEST_CT 1
4455 static tTestDesc aNext_Wait_UnionTests[] = {
4456 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
4459 * Fix Command Arguments for Next_Wait_Union
4461 static const char* apzNext_Wait_UnionPatch[] = {
4466 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4468 * Description of Nodeent_Syntax fix
4470 tSCC zNodeent_SyntaxName[] =
4474 * File name selection pattern
4476 tSCC zNodeent_SyntaxList[] =
4477 "|netdnet/dnetdb.h|";
4479 * Machine/OS name selection pattern
4481 #define apzNodeent_SyntaxMachs (const char**)NULL
4484 * content selection pattern - do fix if pattern found
4486 tSCC zNodeent_SyntaxSelect0[] =
4487 "char[ \t]*\\*na_addr[ \t]*$";
4489 #define NODEENT_SYNTAX_TEST_CT 1
4490 static tTestDesc aNodeent_SyntaxTests[] = {
4491 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
4494 * Fix Command Arguments for Nodeent_Syntax
4496 static const char* apzNodeent_SyntaxPatch[] = {
4501 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4503 * Description of Obstack_Lvalue_Cast fix
4505 tSCC zObstack_Lvalue_CastName[] =
4506 "obstack_lvalue_cast";
4509 * File name selection pattern
4511 tSCC zObstack_Lvalue_CastList[] =
4514 * Machine/OS name selection pattern
4516 #define apzObstack_Lvalue_CastMachs (const char**)NULL
4519 * content selection pattern - do fix if pattern found
4521 tSCC zObstack_Lvalue_CastSelect0[] =
4522 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
4524 #define OBSTACK_LVALUE_CAST_TEST_CT 1
4525 static tTestDesc aObstack_Lvalue_CastTests[] = {
4526 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
4529 * Fix Command Arguments for Obstack_Lvalue_Cast
4531 static const char* apzObstack_Lvalue_CastPatch[] = {
4533 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
4536 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4538 * Description of Osf_Namespace_A fix
4540 tSCC zOsf_Namespace_AName[] =
4544 * File name selection pattern
4546 tSCC zOsf_Namespace_AList[] =
4547 "|reg_types.h|sys/lc_core.h|";
4549 * Machine/OS name selection pattern
4551 #define apzOsf_Namespace_AMachs (const char**)NULL
4554 * perform the 'test' shell command - do fix on success
4556 tSCC zOsf_Namespace_ATest0[] =
4558 tSCC zOsf_Namespace_ATest1[] =
4559 " -r sys/lc_core.h";
4560 tSCC zOsf_Namespace_ATest2[] =
4561 " -n \"`grep '} regex_t;' reg_types.h`\"";
4562 tSCC zOsf_Namespace_ATest3[] =
4563 " -z \"`grep __regex_t regex.h`\"";
4565 #define OSF_NAMESPACE_A_TEST_CT 4
4566 static tTestDesc aOsf_Namespace_ATests[] = {
4567 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
4568 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
4569 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
4570 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
4573 * Fix Command Arguments for Osf_Namespace_A
4575 static const char* apzOsf_Namespace_APatch[] = {
4578 "reg(ex|off|match)_t",
4581 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4583 * Description of Osf_Namespace_C fix
4585 tSCC zOsf_Namespace_CName[] =
4589 * File name selection pattern
4591 tSCC zOsf_Namespace_CList[] =
4594 * Machine/OS name selection pattern
4596 #define apzOsf_Namespace_CMachs (const char**)NULL
4599 * content selection pattern - do fix if pattern found
4601 tSCC zOsf_Namespace_CSelect0[] =
4602 "#include <reg_types.h>.*";
4605 * perform the 'test' shell command - do fix on success
4607 tSCC zOsf_Namespace_CTest0[] =
4609 tSCC zOsf_Namespace_CTest1[] =
4610 " -r sys/lc_core.h";
4611 tSCC zOsf_Namespace_CTest2[] =
4612 " -n \"`grep '} regex_t;' reg_types.h`\"";
4613 tSCC zOsf_Namespace_CTest3[] =
4614 " -z \"`grep __regex_t regex.h`\"";
4616 #define OSF_NAMESPACE_C_TEST_CT 5
4617 static tTestDesc aOsf_Namespace_CTests[] = {
4618 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
4619 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
4620 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
4621 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
4622 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
4625 * Fix Command Arguments for Osf_Namespace_C
4627 static const char* apzOsf_Namespace_CPatch[] = {
4630 typedef __regex_t\tregex_t;\n\
4631 typedef __regoff_t\tregoff_t;\n\
4632 typedef __regmatch_t\tregmatch_t;",
4635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4637 * Description of Pthread_Page_Size fix
4639 tSCC zPthread_Page_SizeName[] =
4640 "pthread_page_size";
4643 * File name selection pattern
4645 tSCC zPthread_Page_SizeList[] =
4648 * Machine/OS name selection pattern
4650 #define apzPthread_Page_SizeMachs (const char**)NULL
4653 * content selection pattern - do fix if pattern found
4655 tSCC zPthread_Page_SizeSelect0[] =
4658 #define PTHREAD_PAGE_SIZE_TEST_CT 1
4659 static tTestDesc aPthread_Page_SizeTests[] = {
4660 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
4663 * Fix Command Arguments for Pthread_Page_Size
4665 static const char* apzPthread_Page_SizePatch[] = {
4670 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4672 * Description of Pthread_Incomplete_Struct_Argument fix
4674 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
4675 "pthread_incomplete_struct_argument";
4678 * File name selection pattern
4680 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
4683 * Machine/OS name selection pattern
4685 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
4688 * content selection pattern - do fix if pattern found
4690 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
4691 "struct __jmp_buf_tag";
4693 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
4694 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
4695 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
4698 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
4700 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
4703 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
4706 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4708 * Description of Read_Ret_Type fix
4710 tSCC zRead_Ret_TypeName[] =
4714 * File name selection pattern
4716 tSCC zRead_Ret_TypeList[] =
4719 * Machine/OS name selection pattern
4721 #define apzRead_Ret_TypeMachs (const char**)NULL
4724 * content selection pattern - do fix if pattern found
4726 tSCC zRead_Ret_TypeSelect0[] =
4727 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
4729 #define READ_RET_TYPE_TEST_CT 1
4730 static tTestDesc aRead_Ret_TypeTests[] = {
4731 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
4734 * Fix Command Arguments for Read_Ret_Type
4736 static const char* apzRead_Ret_TypePatch[] = {
4738 "extern unsigned int fread(), fwrite();\n\
4740 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
4743 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4745 * Description of Rpc_Xdr_Lvalue_Cast_A fix
4747 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
4748 "rpc_xdr_lvalue_cast_a";
4751 * File name selection pattern
4753 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
4756 * Machine/OS name selection pattern
4758 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
4761 * content selection pattern - do fix if pattern found
4763 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
4764 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
4767 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
4768 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
4769 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
4772 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
4774 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
4776 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
4779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4781 * Description of Rpc_Xdr_Lvalue_Cast_B fix
4783 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
4784 "rpc_xdr_lvalue_cast_b";
4787 * File name selection pattern
4789 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
4792 * Machine/OS name selection pattern
4794 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
4797 * content selection pattern - do fix if pattern found
4799 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
4800 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
4803 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
4804 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
4805 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
4808 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
4810 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
4812 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
4815 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4817 * Description of Rs6000_Double fix
4819 tSCC zRs6000_DoubleName[] =
4823 * File name selection pattern
4825 tSCC zRs6000_DoubleList[] =
4828 * Machine/OS name selection pattern
4830 #define apzRs6000_DoubleMachs (const char**)NULL
4833 * content selection pattern - do fix if pattern found
4835 tSCC zRs6000_DoubleSelect0[] =
4836 "[^a-zA-Z_]class\\(";
4838 #define RS6000_DOUBLE_TEST_CT 1
4839 static tTestDesc aRs6000_DoubleTests[] = {
4840 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
4843 * Fix Command Arguments for Rs6000_Double
4845 static const char* apzRs6000_DoublePatch[] = {
4847 "#ifndef __cplusplus\n\
4850 "^.*[^a-zA-Z_]class\\(.*",
4853 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4855 * Description of Rs6000_Fchmod fix
4857 tSCC zRs6000_FchmodName[] =
4861 * File name selection pattern
4863 tSCC zRs6000_FchmodList[] =
4866 * Machine/OS name selection pattern
4868 #define apzRs6000_FchmodMachs (const char**)NULL
4871 * content selection pattern - do fix if pattern found
4873 tSCC zRs6000_FchmodSelect0[] =
4874 "fchmod\\(char \\*";
4876 #define RS6000_FCHMOD_TEST_CT 1
4877 static tTestDesc aRs6000_FchmodTests[] = {
4878 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
4881 * Fix Command Arguments for Rs6000_Fchmod
4883 static const char* apzRs6000_FchmodPatch[] = {
4888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4890 * Description of Rs6000_Param fix
4892 tSCC zRs6000_ParamName[] =
4896 * File name selection pattern
4898 tSCC zRs6000_ParamList[] =
4899 "|stdio.h|unistd.h|";
4901 * Machine/OS name selection pattern
4903 #define apzRs6000_ParamMachs (const char**)NULL
4906 * content selection pattern - do fix if pattern found
4908 tSCC zRs6000_ParamSelect0[] =
4909 "rename\\(const char \\*old, const char \\*new\\)";
4911 #define RS6000_PARAM_TEST_CT 1
4912 static tTestDesc aRs6000_ParamTests[] = {
4913 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
4916 * Fix Command Arguments for Rs6000_Param
4918 static const char* apzRs6000_ParamPatch[] = {
4920 "rename(const char *_old, const char *_new)",
4923 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4925 * Description of Sco_Math fix
4927 tSCC zSco_MathName[] =
4931 * File name selection pattern
4933 tSCC zSco_MathList[] =
4934 "|math.h|ansi/math.h|posix/math.h|xpg4/math.h|xpg4v2/math.h|xpg4plus/math.h|ods_30_compat/math.h|oldstyle/math.h|";
4936 * Machine/OS name selection pattern
4938 #define apzSco_MathMachs (const char**)NULL
4941 * content selection pattern - do fix if pattern found
4943 tSCC zSco_MathSelect0[] =
4944 "inline double abs";
4947 * content bypass pattern - skip fix if pattern found
4949 tSCC zSco_MathBypass0[] =
4952 #define SCO_MATH_TEST_CT 2
4953 static tTestDesc aSco_MathTests[] = {
4954 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
4955 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
4958 * Fix Command Arguments for Sco_Math
4960 static const char* apzSco_MathPatch[] = { "sed",
4961 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
4962 #ifndef __GNUC__\n",
4963 "-e", "/.*__builtin_generic/a\\\n\
4965 #define __fp_class(a) \\\\\\\n\
4966 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
4967 __fpclassifyl(a), \\\\\\\n\
4968 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
4969 __fpclassifyf(a),__fpclassify(a)))\\\n\
4971 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
4972 #ifndef __GNUC__\n",
4973 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
4974 #endif /* ! __GNUC__ */",
4977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4979 * Description of Sco_Regset fix
4981 tSCC zSco_RegsetName[] =
4985 * File name selection pattern
4987 tSCC zSco_RegsetList[] =
4990 * Machine/OS name selection pattern
4992 tSCC* apzSco_RegsetMachs[] = {
4994 (const char*)NULL };
4997 * content selection pattern - do fix if pattern found
4999 tSCC zSco_RegsetSelect0[] =
5000 "(struct[ \t]+.*)fpstate";
5002 #define SCO_REGSET_TEST_CT 1
5003 static tTestDesc aSco_RegsetTests[] = {
5004 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
5007 * Fix Command Arguments for Sco_Regset
5009 static const char* apzSco_RegsetPatch[] = {
5014 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5016 * Description of Sco_Static_Func fix
5018 tSCC zSco_Static_FuncName[] =
5022 * File name selection pattern
5024 tSCC zSco_Static_FuncList[] =
5027 * Machine/OS name selection pattern
5029 tSCC* apzSco_Static_FuncMachs[] = {
5031 (const char*)NULL };
5034 * content selection pattern - do fix if pattern found
5036 tSCC zSco_Static_FuncSelect0[] =
5039 #define SCO_STATIC_FUNC_TEST_CT 1
5040 static tTestDesc aSco_Static_FuncTests[] = {
5041 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
5044 * Fix Command Arguments for Sco_Static_Func
5046 static const char* apzSco_Static_FuncPatch[] = { "sed",
5047 "-e", "/^static int/i\\\n\
5048 #if __cplusplus\\\n\
5050 #endif /* __cplusplus */",
5052 #if __cplusplus\\\n\
5054 #endif /* __cplusplus */",
5057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5059 * Description of Sco_Utime fix
5061 tSCC zSco_UtimeName[] =
5065 * File name selection pattern
5067 tSCC zSco_UtimeList[] =
5070 * Machine/OS name selection pattern
5072 tSCC* apzSco_UtimeMachs[] = {
5074 (const char*)NULL };
5077 * content selection pattern - do fix if pattern found
5079 tSCC zSco_UtimeSelect0[] =
5080 "\\(const char \\*, struct utimbuf \\*\\);";
5082 #define SCO_UTIME_TEST_CT 1
5083 static tTestDesc aSco_UtimeTests[] = {
5084 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
5087 * Fix Command Arguments for Sco_Utime
5089 static const char* apzSco_UtimePatch[] = {
5091 "(const char *, const struct utimbuf *);",
5094 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5096 * Description of Solaris_Math_1 fix
5098 tSCC zSolaris_Math_1Name[] =
5102 * File name selection pattern
5104 tSCC zSolaris_Math_1List[] =
5107 * Machine/OS name selection pattern
5109 #define apzSolaris_Math_1Machs (const char**)NULL
5112 * content selection pattern - do fix if pattern found
5114 tSCC zSolaris_Math_1Select0[] =
5115 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5118 * content bypass pattern - skip fix if pattern found
5120 tSCC zSolaris_Math_1Bypass0[] =
5123 #define SOLARIS_MATH_1_TEST_CT 2
5124 static tTestDesc aSolaris_Math_1Tests[] = {
5125 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5126 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5129 * Fix Command Arguments for Solaris_Math_1
5131 static const char* apzSolaris_Math_1Patch[] = {
5133 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5134 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5139 * Description of Solaris_Math_2 fix
5141 tSCC zSolaris_Math_2Name[] =
5145 * File name selection pattern
5147 tSCC zSolaris_Math_2List[] =
5150 * Machine/OS name selection pattern
5152 #define apzSolaris_Math_2Machs (const char**)NULL
5155 * content selection pattern - do fix if pattern found
5157 tSCC zSolaris_Math_2Select0[] =
5158 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5161 * content bypass pattern - skip fix if pattern found
5163 tSCC zSolaris_Math_2Bypass0[] =
5166 #define SOLARIS_MATH_2_TEST_CT 2
5167 static tTestDesc aSolaris_Math_2Tests[] = {
5168 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5169 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5172 * Fix Command Arguments for Solaris_Math_2
5174 static const char* apzSolaris_Math_2Patch[] = {
5176 "#define\tINFINITY\t(__builtin_inff())",
5177 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5180 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5182 * Description of Solaris_Math_3 fix
5184 tSCC zSolaris_Math_3Name[] =
5188 * File name selection pattern
5190 tSCC zSolaris_Math_3List[] =
5193 * Machine/OS name selection pattern
5195 #define apzSolaris_Math_3Machs (const char**)NULL
5198 * content selection pattern - do fix if pattern found
5200 tSCC zSolaris_Math_3Select0[] =
5201 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5204 * content bypass pattern - skip fix if pattern found
5206 tSCC zSolaris_Math_3Bypass0[] =
5209 #define SOLARIS_MATH_3_TEST_CT 2
5210 static tTestDesc aSolaris_Math_3Tests[] = {
5211 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5212 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5215 * Fix Command Arguments for Solaris_Math_3
5217 static const char* apzSolaris_Math_3Patch[] = {
5219 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5220 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5223 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5225 * Description of Solaris_Math_4 fix
5227 tSCC zSolaris_Math_4Name[] =
5231 * File name selection pattern
5233 tSCC zSolaris_Math_4List[] =
5236 * Machine/OS name selection pattern
5238 #define apzSolaris_Math_4Machs (const char**)NULL
5241 * content selection pattern - do fix if pattern found
5243 tSCC zSolaris_Math_4Select0[] =
5244 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5247 * content bypass pattern - skip fix if pattern found
5249 tSCC zSolaris_Math_4Bypass0[] =
5252 #define SOLARIS_MATH_4_TEST_CT 2
5253 static tTestDesc aSolaris_Math_4Tests[] = {
5254 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5255 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5258 * Fix Command Arguments for Solaris_Math_4
5260 static const char* apzSolaris_Math_4Patch[] = {
5262 "#define\tfpclassify(x) \\\n\
5263 __extension__ ({ __typeof(x) __x_fp = (x); \\\n\
5264 \t\t isnan(__x_fp) \\\n\
5266 \t\t : isinf(__x_fp) \\\n\
5267 \t\t ? FP_INFINITE \\\n\
5268 \t\t : isnormal(__x_fp) \\\n\
5269 \t\t\t ? FP_NORMAL \\\n\
5270 \t\t\t : __x_fp == 0.0 \\\n\
5271 \t\t\t ? FP_ZERO \\\n\
5272 \t\t\t : FP_SUBNORMAL; })",
5273 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5276 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5278 * Description of Solaris_Math_5 fix
5280 tSCC zSolaris_Math_5Name[] =
5284 * File name selection pattern
5286 tSCC zSolaris_Math_5List[] =
5289 * Machine/OS name selection pattern
5291 #define apzSolaris_Math_5Machs (const char**)NULL
5294 * content selection pattern - do fix if pattern found
5296 tSCC zSolaris_Math_5Select0[] =
5297 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5300 * content bypass pattern - skip fix if pattern found
5302 tSCC zSolaris_Math_5Bypass0[] =
5305 #define SOLARIS_MATH_5_TEST_CT 2
5306 static tTestDesc aSolaris_Math_5Tests[] = {
5307 { TT_NEGREP, zSolaris_Math_5Bypass0, (regex_t*)NULL },
5308 { TT_EGREP, zSolaris_Math_5Select0, (regex_t*)NULL }, };
5311 * Fix Command Arguments for Solaris_Math_5
5313 static const char* apzSolaris_Math_5Patch[] = {
5315 "#define\tisfinite(x) \\\n\
5316 __extension__ ({ __typeof (x) __x_f = (x); \\\n\
5317 \t\t __builtin_expect(!isnan(__x_f - __x_f), 1); })",
5318 "^#define[ \t]+isfinite\\(x\\)[ \t]+__builtin_isfinite\\(x\\)",
5321 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5323 * Description of Solaris_Math_6 fix
5325 tSCC zSolaris_Math_6Name[] =
5329 * File name selection pattern
5331 tSCC zSolaris_Math_6List[] =
5334 * Machine/OS name selection pattern
5336 #define apzSolaris_Math_6Machs (const char**)NULL
5339 * content selection pattern - do fix if pattern found
5341 tSCC zSolaris_Math_6Select0[] =
5342 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5345 * content bypass pattern - skip fix if pattern found
5347 tSCC zSolaris_Math_6Bypass0[] =
5350 #define SOLARIS_MATH_6_TEST_CT 2
5351 static tTestDesc aSolaris_Math_6Tests[] = {
5352 { TT_NEGREP, zSolaris_Math_6Bypass0, (regex_t*)NULL },
5353 { TT_EGREP, zSolaris_Math_6Select0, (regex_t*)NULL }, };
5356 * Fix Command Arguments for Solaris_Math_6
5358 static const char* apzSolaris_Math_6Patch[] = {
5360 "#define\tisinf(x) \\\n\
5361 __extension__ ({ __typeof (x) __x_i = (x); \\\n\
5362 \t\t __builtin_expect(!isnan(__x_i) && !isfinite(__x_i), 0); })",
5363 "^#define[ \t]+isinf\\(x\\)[ \t]+__builtin_isinf\\(x\\)",
5366 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5368 * Description of Solaris_Math_7 fix
5370 tSCC zSolaris_Math_7Name[] =
5374 * File name selection pattern
5376 tSCC zSolaris_Math_7List[] =
5379 * Machine/OS name selection pattern
5381 #define apzSolaris_Math_7Machs (const char**)NULL
5384 * content selection pattern - do fix if pattern found
5386 tSCC zSolaris_Math_7Select0[] =
5387 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5390 * content bypass pattern - skip fix if pattern found
5392 tSCC zSolaris_Math_7Bypass0[] =
5395 #define SOLARIS_MATH_7_TEST_CT 2
5396 static tTestDesc aSolaris_Math_7Tests[] = {
5397 { TT_NEGREP, zSolaris_Math_7Bypass0, (regex_t*)NULL },
5398 { TT_EGREP, zSolaris_Math_7Select0, (regex_t*)NULL }, };
5401 * Fix Command Arguments for Solaris_Math_7
5403 static const char* apzSolaris_Math_7Patch[] = {
5405 "#define\tisnormal(x) \\\n\
5406 __extension__ ({ __typeof(x) __x_n = (x); \\\n\
5407 \t\t if (__x_n < 0.0) __x_n = -__x_n; \\\n\
5408 \t\t __builtin_expect(isfinite(__x_n) \\\n\
5409 \t\t\t\t && (sizeof(__x_n) == sizeof(float) \\\n\
5410 \t\t\t\t\t ? __x_n >= __FLT_MIN__ \\\n\
5411 \t\t\t\t\t : sizeof(__x_n) == sizeof(long double) \\\n\
5412 \t\t\t\t\t ? __x_n >= __LDBL_MIN__ \\\n\
5413 \t\t\t\t\t : __x_n >= __DBL_MIN__), 1); })",
5414 "^#define[ \t]+isnormal\\(x\\)[ \t]+__builtin_isnormal\\(x\\)",
5417 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5419 * Description of Solaris_Math_8 fix
5421 tSCC zSolaris_Math_8Name[] =
5425 * File name selection pattern
5427 tSCC zSolaris_Math_8List[] =
5430 * Machine/OS name selection pattern
5432 #define apzSolaris_Math_8Machs (const char**)NULL
5435 * content selection pattern - do fix if pattern found
5437 tSCC zSolaris_Math_8Select0[] =
5438 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5441 * content bypass pattern - skip fix if pattern found
5443 tSCC zSolaris_Math_8Bypass0[] =
5446 #define SOLARIS_MATH_8_TEST_CT 2
5447 static tTestDesc aSolaris_Math_8Tests[] = {
5448 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5449 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5452 * Fix Command Arguments for Solaris_Math_8
5454 static const char* apzSolaris_Math_8Patch[] = {
5456 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5457 \t\t\t ? __builtin_signbitf(x) \\\n\
5458 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
5459 \t\t\t ? __builtin_signbitl(x) \\\n\
5460 \t\t\t : __builtin_signbit(x))",
5461 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5464 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5466 * Description of Solaris_Math_9 fix
5468 tSCC zSolaris_Math_9Name[] =
5472 * File name selection pattern
5474 tSCC zSolaris_Math_9List[] =
5477 * Machine/OS name selection pattern
5479 #define apzSolaris_Math_9Machs (const char**)NULL
5482 * content selection pattern - do fix if pattern found
5484 tSCC zSolaris_Math_9Select0[] =
5485 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5488 * content bypass pattern - skip fix if pattern found
5490 tSCC zSolaris_Math_9Bypass0[] =
5493 #define SOLARIS_MATH_9_TEST_CT 2
5494 static tTestDesc aSolaris_Math_9Tests[] = {
5495 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
5496 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
5499 * Fix Command Arguments for Solaris_Math_9
5501 static const char* apzSolaris_Math_9Patch[] = {
5503 "#define\t%1(x, y)%2__builtin_%1(x, y)",
5504 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5509 * Description of Solaris_Mutex_Init_1 fix
5511 tSCC zSolaris_Mutex_Init_1Name[] =
5512 "solaris_mutex_init_1";
5515 * File name selection pattern
5517 tSCC zSolaris_Mutex_Init_1List[] =
5520 * Machine/OS name selection pattern
5522 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
5525 * content selection pattern - do fix if pattern found
5527 tSCC zSolaris_Mutex_Init_1Select0[] =
5528 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
5530 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
5531 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
5532 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
5535 * Fix Command Arguments for Solaris_Mutex_Init_1
5537 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
5538 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
5539 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
5542 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5544 * Description of Solaris_Mutex_Init_2 fix
5546 tSCC zSolaris_Mutex_Init_2Name[] =
5547 "solaris_mutex_init_2";
5550 * File name selection pattern
5552 tSCC zSolaris_Mutex_Init_2List[] =
5555 * Machine/OS name selection pattern
5557 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
5558 "*-*-solaris2.[0-9]",
5559 "*-*-solaris2.[0-9][!0-9]*",
5560 (const char*)NULL };
5563 * content selection pattern - do fix if pattern found
5565 tSCC zSolaris_Mutex_Init_2Select0[] =
5566 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5568 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
5569 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
5570 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
5573 * Fix Command Arguments for Solaris_Mutex_Init_2
5575 static const char* apzSolaris_Mutex_Init_2Patch[] = {
5577 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5582 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
5583 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
5586 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5588 * Description of Solaris_Rwlock_Init_1 fix
5590 tSCC zSolaris_Rwlock_Init_1Name[] =
5591 "solaris_rwlock_init_1";
5594 * File name selection pattern
5596 tSCC zSolaris_Rwlock_Init_1List[] =
5599 * Machine/OS name selection pattern
5601 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
5603 (const char*)NULL };
5606 * content selection pattern - do fix if pattern found
5608 tSCC zSolaris_Rwlock_Init_1Select0[] =
5609 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5611 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
5612 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
5613 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
5616 * Fix Command Arguments for Solaris_Rwlock_Init_1
5618 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
5620 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5623 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
5625 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
5628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5630 * Description of Solaris_Once_Init_1 fix
5632 tSCC zSolaris_Once_Init_1Name[] =
5633 "solaris_once_init_1";
5636 * File name selection pattern
5638 tSCC zSolaris_Once_Init_1List[] =
5641 * Machine/OS name selection pattern
5643 tSCC* apzSolaris_Once_Init_1Machs[] = {
5645 (const char*)NULL };
5648 * content selection pattern - do fix if pattern found
5650 tSCC zSolaris_Once_Init_1Select0[] =
5651 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5653 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
5654 static tTestDesc aSolaris_Once_Init_1Tests[] = {
5655 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
5658 * Fix Command Arguments for Solaris_Once_Init_1
5660 static const char* apzSolaris_Once_Init_1Patch[] = {
5663 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
5666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5668 * Description of Solaris_Once_Init_2 fix
5670 tSCC zSolaris_Once_Init_2Name[] =
5671 "solaris_once_init_2";
5674 * File name selection pattern
5676 tSCC zSolaris_Once_Init_2List[] =
5679 * Machine/OS name selection pattern
5681 tSCC* apzSolaris_Once_Init_2Machs[] = {
5682 "*-*-solaris2.[0-9]",
5683 "*-*-solaris2.[0-9][!0-9]*",
5684 (const char*)NULL };
5687 * content selection pattern - do fix if pattern found
5689 tSCC zSolaris_Once_Init_2Select0[] =
5690 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5692 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
5693 static tTestDesc aSolaris_Once_Init_2Tests[] = {
5694 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
5697 * Fix Command Arguments for Solaris_Once_Init_2
5699 static const char* apzSolaris_Once_Init_2Patch[] = {
5701 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5704 %1{0}, {0}, {0}, {%3}%4\n\
5706 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
5709 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5711 * Description of Solaris_Socket fix
5713 tSCC zSolaris_SocketName[] =
5717 * File name selection pattern
5719 tSCC zSolaris_SocketList[] =
5722 * Machine/OS name selection pattern
5724 #define apzSolaris_SocketMachs (const char**)NULL
5727 * content selection pattern - do fix if pattern found
5729 tSCC zSolaris_SocketSelect0[] =
5730 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
5732 #define SOLARIS_SOCKET_TEST_CT 1
5733 static tTestDesc aSolaris_SocketTests[] = {
5734 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
5737 * Fix Command Arguments for Solaris_Socket
5739 static const char* apzSolaris_SocketPatch[] = {
5741 "extern int %1(int, %2void *, int, int);",
5742 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
5745 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5747 * Description of Solaris_Stdio_Tag fix
5749 tSCC zSolaris_Stdio_TagName[] =
5750 "solaris_stdio_tag";
5753 * File name selection pattern
5755 tSCC zSolaris_Stdio_TagList[] =
5758 * Machine/OS name selection pattern
5760 #define apzSolaris_Stdio_TagMachs (const char**)NULL
5763 * content selection pattern - do fix if pattern found
5765 tSCC zSolaris_Stdio_TagSelect0[] =
5766 "__cplusplus < 54321L";
5769 * content bypass pattern - skip fix if pattern found
5771 tSCC zSolaris_Stdio_TagBypass0[] =
5774 #define SOLARIS_STDIO_TAG_TEST_CT 2
5775 static tTestDesc aSolaris_Stdio_TagTests[] = {
5776 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
5777 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
5780 * Fix Command Arguments for Solaris_Stdio_Tag
5782 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
5783 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
5786 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5788 * Description of Solaris_Unistd fix
5790 tSCC zSolaris_UnistdName[] =
5794 * File name selection pattern
5796 tSCC zSolaris_UnistdList[] =
5799 * Machine/OS name selection pattern
5801 #define apzSolaris_UnistdMachs (const char**)NULL
5804 * content selection pattern - do fix if pattern found
5806 tSCC zSolaris_UnistdSelect0[] =
5807 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
5810 * content bypass pattern - skip fix if pattern found
5812 tSCC zSolaris_UnistdBypass0[] =
5815 #define SOLARIS_UNISTD_TEST_CT 2
5816 static tTestDesc aSolaris_UnistdTests[] = {
5817 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
5818 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
5821 * Fix Command Arguments for Solaris_Unistd
5823 static const char* apzSolaris_UnistdPatch[] = {
5825 "extern int getpagesize();\n\
5827 "^extern (pid_t|int) getpgid\\(.*\\);",
5830 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5832 * Description of Solaris_Widec fix
5834 tSCC zSolaris_WidecName[] =
5838 * File name selection pattern
5840 tSCC zSolaris_WidecList[] =
5843 * Machine/OS name selection pattern
5845 tSCC* apzSolaris_WidecMachs[] = {
5846 "*-*-solaris2.[0-5]",
5847 "*-*-solaris2.[0-5].*",
5848 (const char*)NULL };
5851 * content selection pattern - do fix if pattern found
5853 tSCC zSolaris_WidecSelect0[] =
5857 * content bypass pattern - skip fix if pattern found
5859 tSCC zSolaris_WidecBypass0[] =
5860 "include.*wchar\\.h";
5862 #define SOLARIS_WIDEC_TEST_CT 2
5863 static tTestDesc aSolaris_WidecTests[] = {
5864 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
5865 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
5868 * Fix Command Arguments for Solaris_Widec
5870 static const char* apzSolaris_WidecPatch[] = {
5873 #include <wchar.h>",
5876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5878 * Description of Statsswtch fix
5880 tSCC zStatsswtchName[] =
5884 * File name selection pattern
5886 tSCC zStatsswtchList[] =
5889 * Machine/OS name selection pattern
5891 #define apzStatsswtchMachs (const char**)NULL
5894 * content selection pattern - do fix if pattern found
5896 tSCC zStatsswtchSelect0[] =
5899 #define STATSSWTCH_TEST_CT 1
5900 static tTestDesc aStatsswtchTests[] = {
5901 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
5904 * Fix Command Arguments for Statsswtch
5906 static const char* apzStatsswtchPatch[] = {
5911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5913 * Description of Stdio_Stdarg_H fix
5915 tSCC zStdio_Stdarg_HName[] =
5919 * File name selection pattern
5921 tSCC zStdio_Stdarg_HList[] =
5924 * Machine/OS name selection pattern
5926 tSCC* apzStdio_Stdarg_HMachs[] = {
5927 "*-*-solaris2.1[0-9]*",
5928 (const char*)NULL };
5931 * content bypass pattern - skip fix if pattern found
5933 tSCC zStdio_Stdarg_HBypass0[] =
5934 "include.*(stdarg.h|machine/ansi.h)";
5936 #define STDIO_STDARG_H_TEST_CT 1
5937 static tTestDesc aStdio_Stdarg_HTests[] = {
5938 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
5941 * Fix Command Arguments for Stdio_Stdarg_H
5943 static const char* apzStdio_Stdarg_HPatch[] = {
5945 "#define __need___va_list\n\
5946 #include <stdarg.h>\n",
5949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5951 * Description of Stdio_Va_List fix
5953 tSCC zStdio_Va_ListName[] =
5957 * File name selection pattern
5959 tSCC zStdio_Va_ListList[] =
5960 "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|";
5962 * Machine/OS name selection pattern
5964 tSCC* apzStdio_Va_ListMachs[] = {
5965 "*-*-solaris2.1[0-9]*",
5966 (const char*)NULL };
5969 * content bypass pattern - skip fix if pattern found
5971 tSCC zStdio_Va_ListBypass0[] =
5972 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
5974 #define STDIO_VA_LIST_TEST_CT 1
5975 static tTestDesc aStdio_Va_ListTests[] = {
5976 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
5979 * Fix Command Arguments for Stdio_Va_List
5981 static const char* apzStdio_Va_ListPatch[] = { "sed",
5982 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
5983 s@(va_list)&@(__gnuc_va_list)\\&@\n\
5984 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
5985 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
5986 s@ va_list@ __not_va_list__@\n\
5987 s@\\*va_list@*__not_va_list__@\n\
5988 s@ __va_list)@ __gnuc_va_list)@\n\
5989 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
5990 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
5991 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
5992 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
5993 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
5994 s@VA_LIST@DUMMY_VA_LIST@\n\
5995 s@_Va_LIST@_VA_LIST@",
5998 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6000 * Description of Stdio_Va_List_Clients fix
6002 tSCC zStdio_Va_List_ClientsName[] =
6003 "stdio_va_list_clients";
6006 * File name selection pattern
6008 tSCC zStdio_Va_List_ClientsList[] =
6009 "|com_err.h|cps.h|curses.h|krb5.h|lc_core.h|pfmt.h|wchar.h|curses_colr/curses.h|";
6011 * Machine/OS name selection pattern
6013 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6016 * content bypass pattern - skip fix if pattern found
6018 tSCC zStdio_Va_List_ClientsBypass0[] =
6019 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6020 tSCC zStdio_Va_List_ClientsBypass1[] =
6021 "include <stdarg\\.h>|#ifdef va_start";
6023 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
6024 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6025 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6026 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6029 * Fix Command Arguments for Stdio_Va_List_Clients
6031 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
6032 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6033 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6034 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6035 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6036 s@ va_list@ __not_va_list__@\n\
6037 s@\\*va_list@*__not_va_list__@\n\
6038 s@ __va_list)@ __gnuc_va_list)@\n\
6039 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6040 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6041 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6042 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6043 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6044 s@VA_LIST@DUMMY_VA_LIST@\n\
6045 s@_Va_LIST@_VA_LIST@",
6048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6050 * Description of Strict_Ansi_Not fix
6052 tSCC zStrict_Ansi_NotName[] =
6056 * File name selection pattern
6058 #define zStrict_Ansi_NotList (char*)NULL
6060 * Machine/OS name selection pattern
6062 #define apzStrict_Ansi_NotMachs (const char**)NULL
6065 * content selection pattern - do fix if pattern found
6067 tSCC zStrict_Ansi_NotSelect0[] =
6068 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6071 * content bypass pattern - skip fix if pattern found
6073 tSCC zStrict_Ansi_NotBypass0[] =
6074 "GNU and MIPS C compilers define __STDC__ differently";
6075 tSCC zStrict_Ansi_NotBypass1[] =
6076 "__SCO_VERSION__.*__STDC__ != 1";
6079 * perform the C function call test
6081 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6083 #define STRICT_ANSI_NOT_TEST_CT 4
6084 static tTestDesc aStrict_Ansi_NotTests[] = {
6085 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
6086 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6087 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6088 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6091 * Fix Command Arguments for Strict_Ansi_Not
6093 static const char* apzStrict_Ansi_NotPatch[] = {
6095 "%1 !defined(__STRICT_ANSI__)",
6098 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6100 * Description of Strict_Ansi_Not_Ctd fix
6102 tSCC zStrict_Ansi_Not_CtdName[] =
6103 "strict_ansi_not_ctd";
6106 * File name selection pattern
6108 tSCC zStrict_Ansi_Not_CtdList[] =
6109 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
6111 * Machine/OS name selection pattern
6113 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6116 * content selection pattern - do fix if pattern found
6118 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6119 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6122 * perform the C function call test
6124 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6126 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
6127 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6128 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6129 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6132 * Fix Command Arguments for Strict_Ansi_Not_Ctd
6134 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6136 "%1 !defined(__STRICT_ANSI__)",
6139 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6141 * Description of Strict_Ansi_Only fix
6143 tSCC zStrict_Ansi_OnlyName[] =
6147 * File name selection pattern
6149 #define zStrict_Ansi_OnlyList (char*)NULL
6151 * Machine/OS name selection pattern
6153 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6156 * content selection pattern - do fix if pattern found
6158 tSCC zStrict_Ansi_OnlySelect0[] =
6159 "^([ \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)";
6162 * perform the C function call test
6164 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6166 #define STRICT_ANSI_ONLY_TEST_CT 2
6167 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6168 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6169 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6172 * Fix Command Arguments for Strict_Ansi_Only
6174 static const char* apzStrict_Ansi_OnlyPatch[] = {
6176 "%1 defined(__STRICT_ANSI__)",
6179 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6181 * Description of Struct_File fix
6183 tSCC zStruct_FileName[] =
6187 * File name selection pattern
6189 tSCC zStruct_FileList[] =
6192 * Machine/OS name selection pattern
6194 #define apzStruct_FileMachs (const char**)NULL
6197 * content selection pattern - do fix if pattern found
6199 tSCC zStruct_FileSelect0[] =
6200 "^.*xdrstdio_create.*struct __file_s";
6202 #define STRUCT_FILE_TEST_CT 1
6203 static tTestDesc aStruct_FileTests[] = {
6204 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6207 * Fix Command Arguments for Struct_File
6209 static const char* apzStruct_FilePatch[] = {
6211 "struct __file_s;\n\
6215 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6217 * Description of Struct_Sockaddr fix
6219 tSCC zStruct_SockaddrName[] =
6223 * File name selection pattern
6225 tSCC zStruct_SockaddrList[] =
6228 * Machine/OS name selection pattern
6230 #define apzStruct_SockaddrMachs (const char**)NULL
6233 * content selection pattern - do fix if pattern found
6235 tSCC zStruct_SockaddrSelect0[] =
6236 "^.*authdes_create.*struct sockaddr[^_]";
6239 * content bypass pattern - skip fix if pattern found
6241 tSCC zStruct_SockaddrBypass0[] =
6243 tSCC zStruct_SockaddrBypass1[] =
6244 "struct sockaddr;\n";
6246 #define STRUCT_SOCKADDR_TEST_CT 3
6247 static tTestDesc aStruct_SockaddrTests[] = {
6248 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6249 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6250 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6253 * Fix Command Arguments for Struct_Sockaddr
6255 static const char* apzStruct_SockaddrPatch[] = {
6257 "struct sockaddr;\n\
6261 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6263 * Description of Sun_Auth_Proto fix
6265 tSCC zSun_Auth_ProtoName[] =
6269 * File name selection pattern
6271 tSCC zSun_Auth_ProtoList[] =
6272 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
6274 * Machine/OS name selection pattern
6276 #define apzSun_Auth_ProtoMachs (const char**)NULL
6279 * content selection pattern - do fix if pattern found
6281 tSCC zSun_Auth_ProtoSelect0[] =
6282 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6285 * content bypass pattern - skip fix if pattern found
6287 tSCC zSun_Auth_ProtoBypass0[] =
6290 #define SUN_AUTH_PROTO_TEST_CT 2
6291 static tTestDesc aSun_Auth_ProtoTests[] = {
6292 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6293 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6296 * Fix Command Arguments for Sun_Auth_Proto
6298 static const char* apzSun_Auth_ProtoPatch[] = {
6300 "#ifdef __cplusplus\n\
6305 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6310 * Description of Sun_Bogus_Ifdef fix
6312 tSCC zSun_Bogus_IfdefName[] =
6316 * File name selection pattern
6318 tSCC zSun_Bogus_IfdefList[] =
6319 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
6321 * Machine/OS name selection pattern
6323 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6326 * content selection pattern - do fix if pattern found
6328 tSCC zSun_Bogus_IfdefSelect0[] =
6329 "#ifdef(.*\\|\\|.*)";
6331 #define SUN_BOGUS_IFDEF_TEST_CT 1
6332 static tTestDesc aSun_Bogus_IfdefTests[] = {
6333 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6336 * Fix Command Arguments for Sun_Bogus_Ifdef
6338 static const char* apzSun_Bogus_IfdefPatch[] = {
6343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6345 * Description of Sun_Catmacro fix
6347 tSCC zSun_CatmacroName[] =
6351 * File name selection pattern
6353 tSCC zSun_CatmacroList[] =
6354 "|pixrect/memvar.h|";
6356 * Machine/OS name selection pattern
6358 #define apzSun_CatmacroMachs (const char**)NULL
6361 * content selection pattern - do fix if pattern found
6363 tSCC zSun_CatmacroSelect0[] =
6364 "^#define[ \t]+CAT\\(a,b\\).*";
6366 #define SUN_CATMACRO_TEST_CT 1
6367 static tTestDesc aSun_CatmacroTests[] = {
6368 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
6371 * Fix Command Arguments for Sun_Catmacro
6373 static const char* apzSun_CatmacroPatch[] = {
6376 # define CAT(a,b) a##b\n\
6382 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6384 * Description of Sun_Malloc fix
6386 tSCC zSun_MallocName[] =
6390 * File name selection pattern
6392 tSCC zSun_MallocList[] =
6395 * Machine/OS name selection pattern
6397 #define apzSun_MallocMachs (const char**)NULL
6400 * content bypass pattern - skip fix if pattern found
6402 tSCC zSun_MallocBypass0[] =
6403 "_CLASSIC_ANSI_TYPES";
6405 #define SUN_MALLOC_TEST_CT 1
6406 static tTestDesc aSun_MallocTests[] = {
6407 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
6410 * Fix Command Arguments for Sun_Malloc
6412 static const char* apzSun_MallocPatch[] = { "sed",
6413 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6414 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6415 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6416 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6417 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6420 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6422 * Description of Sun_Rusers_Semi fix
6424 tSCC zSun_Rusers_SemiName[] =
6428 * File name selection pattern
6430 tSCC zSun_Rusers_SemiList[] =
6431 "|rpcsvc/rusers.h|";
6433 * Machine/OS name selection pattern
6435 #define apzSun_Rusers_SemiMachs (const char**)NULL
6438 * content selection pattern - do fix if pattern found
6440 tSCC zSun_Rusers_SemiSelect0[] =
6443 #define SUN_RUSERS_SEMI_TEST_CT 1
6444 static tTestDesc aSun_Rusers_SemiTests[] = {
6445 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6448 * Fix Command Arguments for Sun_Rusers_Semi
6450 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
6451 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6454 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6456 * Description of Sun_Signal fix
6458 tSCC zSun_SignalName[] =
6462 * File name selection pattern
6464 tSCC zSun_SignalList[] =
6465 "|sys/signal.h|signal.h|";
6467 * Machine/OS name selection pattern
6469 #define apzSun_SignalMachs (const char**)NULL
6472 * content selection pattern - do fix if pattern found
6474 tSCC zSun_SignalSelect0[] =
6475 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6477 #define SUN_SIGNAL_TEST_CT 1
6478 static tTestDesc aSun_SignalTests[] = {
6479 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
6482 * Fix Command Arguments for Sun_Signal
6484 static const char* apzSun_SignalPatch[] = {
6486 "#ifdef __cplusplus\n\
6487 void\t(*signal(...))(...);\n\
6493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6495 * Description of Sunos_Strlen fix
6497 tSCC zSunos_StrlenName[] =
6501 * File name selection pattern
6503 tSCC zSunos_StrlenList[] =
6506 * Machine/OS name selection pattern
6508 #define apzSunos_StrlenMachs (const char**)NULL
6511 * content selection pattern - do fix if pattern found
6513 tSCC zSunos_StrlenSelect0[] =
6514 "int[ \t]*strlen\\(\\);(.*)";
6516 #define SUNOS_STRLEN_TEST_CT 1
6517 static tTestDesc aSunos_StrlenTests[] = {
6518 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
6521 * Fix Command Arguments for Sunos_Strlen
6523 static const char* apzSunos_StrlenPatch[] = {
6525 "__SIZE_TYPE__ strlen();%1",
6528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6530 * Description of Svr4_Disable_Opt fix
6532 tSCC zSvr4_Disable_OptName[] =
6536 * File name selection pattern
6538 tSCC zSvr4_Disable_OptList[] =
6541 * Machine/OS name selection pattern
6543 #define apzSvr4_Disable_OptMachs (const char**)NULL
6546 * content selection pattern - do fix if pattern found
6548 tSCC zSvr4_Disable_OptSelect0[] =
6549 "#define.*__std_hdr_";
6551 #define SVR4_DISABLE_OPT_TEST_CT 1
6552 static tTestDesc aSvr4_Disable_OptTests[] = {
6553 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
6556 * Fix Command Arguments for Svr4_Disable_Opt
6558 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
6559 "-e", "/#define.*__std_hdr_/d",
6562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6564 * Description of Svr4_Getcwd fix
6566 tSCC zSvr4_GetcwdName[] =
6570 * File name selection pattern
6572 tSCC zSvr4_GetcwdList[] =
6573 "|stdlib.h|unistd.h|prototypes.h|";
6575 * Machine/OS name selection pattern
6577 #define apzSvr4_GetcwdMachs (const char**)NULL
6580 * content selection pattern - do fix if pattern found
6582 tSCC zSvr4_GetcwdSelect0[] =
6583 "getcwd\\(char \\*, int\\)";
6585 #define SVR4_GETCWD_TEST_CT 1
6586 static tTestDesc aSvr4_GetcwdTests[] = {
6587 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
6590 * Fix Command Arguments for Svr4_Getcwd
6592 static const char* apzSvr4_GetcwdPatch[] = {
6594 "getcwd(char *, size_t)",
6597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6599 * Description of Svr4_Krnl fix
6601 tSCC zSvr4_KrnlName[] =
6605 * File name selection pattern
6607 tSCC zSvr4_KrnlList[] =
6608 "|fs/rfs/rf_cache.h|sys/erec.h|sys/err.h|sys/char.h|sys/getpages.h|sys/map.h|sys/cmn_err.h|sys/kdebugger.h|";
6610 * Machine/OS name selection pattern
6612 tSCC* apzSvr4_KrnlMachs[] = {
6614 "i?86-sequent-ptx*",
6615 (const char*)NULL };
6618 * content bypass pattern - skip fix if pattern found
6620 tSCC zSvr4_KrnlBypass0[] =
6623 #define SVR4_KRNL_TEST_CT 1
6624 static tTestDesc aSvr4_KrnlTests[] = {
6625 { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, };
6628 * Fix Command Arguments for Svr4_Krnl
6630 static const char* apzSvr4_KrnlPatch[] = {
6633 "#endif /* _KERNEL */\n",
6636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6638 * Description of Svr4_Profil fix
6640 tSCC zSvr4_ProfilName[] =
6644 * File name selection pattern
6646 tSCC zSvr4_ProfilList[] =
6647 "|stdlib.h|unistd.h|";
6649 * Machine/OS name selection pattern
6651 #define apzSvr4_ProfilMachs (const char**)NULL
6654 * content selection pattern - do fix if pattern found
6656 tSCC zSvr4_ProfilSelect0[] =
6657 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
6660 * content bypass pattern - skip fix if pattern found
6662 tSCC zSvr4_ProfilBypass0[] =
6665 #define SVR4_PROFIL_TEST_CT 2
6666 static tTestDesc aSvr4_ProfilTests[] = {
6667 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
6668 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
6671 * Fix Command Arguments for Svr4_Profil
6673 static const char* apzSvr4_ProfilPatch[] = {
6675 "profil(unsigned short *, size_t, int, unsigned int)",
6678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6680 * Description of Svr4_Sighandler_Type fix
6682 tSCC zSvr4_Sighandler_TypeName[] =
6683 "svr4_sighandler_type";
6686 * File name selection pattern
6688 tSCC zSvr4_Sighandler_TypeList[] =
6691 * Machine/OS name selection pattern
6693 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
6696 * content selection pattern - do fix if pattern found
6698 tSCC zSvr4_Sighandler_TypeSelect0[] =
6699 "void *\\(\\*\\)\\(\\)";
6701 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
6702 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
6703 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
6706 * Fix Command Arguments for Svr4_Sighandler_Type
6708 static const char* apzSvr4_Sighandler_TypePatch[] = {
6713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6715 * Description of Svr4_Undeclared_Getrnge fix
6717 tSCC zSvr4_Undeclared_GetrngeName[] =
6718 "svr4_undeclared_getrnge";
6721 * File name selection pattern
6723 tSCC zSvr4_Undeclared_GetrngeList[] =
6726 * Machine/OS name selection pattern
6728 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
6731 * content selection pattern - do fix if pattern found
6733 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
6737 * content bypass pattern - skip fix if pattern found
6739 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
6740 "static void getrnge";
6742 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
6743 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
6744 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
6745 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
6748 * Fix Command Arguments for Svr4_Undeclared_Getrnge
6750 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
6753 static int getrnge ();",
6754 "^static int[ \t]+size;",
6757 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6759 * Description of Sysv68_String fix
6761 tSCC zSysv68_StringName[] =
6765 * File name selection pattern
6767 tSCC zSysv68_StringList[] =
6768 "|testing.h|string.h|";
6770 * Machine/OS name selection pattern
6772 #define apzSysv68_StringMachs (const char**)NULL
6775 * content bypass pattern - skip fix if pattern found
6777 tSCC zSysv68_StringBypass0[] =
6778 "_CLASSIC_ANSI_TYPES";
6780 #define SYSV68_STRING_TEST_CT 1
6781 static tTestDesc aSysv68_StringTests[] = {
6782 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
6785 * Fix Command Arguments for Sysv68_String
6787 static const char* apzSysv68_StringPatch[] = { "sed",
6788 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
6789 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
6790 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
6791 "-e", "/^extern char$/N",
6792 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
6793 "-e", "/^extern int$/N",
6794 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
6795 "-e", "/^\tstrncmp(),$/N",
6796 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
6797 extern unsigned int\\\n\
6801 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6803 * Description of Sysz_Stdlib_For_Sun fix
6805 tSCC zSysz_Stdlib_For_SunName[] =
6806 "sysz_stdlib_for_sun";
6809 * File name selection pattern
6811 tSCC zSysz_Stdlib_For_SunList[] =
6814 * Machine/OS name selection pattern
6816 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
6819 * content selection pattern - do fix if pattern found
6821 tSCC zSysz_Stdlib_For_SunSelect0[] =
6822 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
6825 * content bypass pattern - skip fix if pattern found
6827 tSCC zSysz_Stdlib_For_SunBypass0[] =
6828 "_CLASSIC_ANSI_TYPES";
6830 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
6831 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
6832 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
6833 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
6836 * Fix Command Arguments for Sysz_Stdlib_For_Sun
6838 static const char* apzSysz_Stdlib_For_SunPatch[] = {
6843 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6845 * Description of Thread_Keyword fix
6847 tSCC zThread_KeywordName[] =
6851 * File name selection pattern
6853 tSCC zThread_KeywordList[] =
6854 "|pthread.h|bits/sigthread.h|";
6856 * Machine/OS name selection pattern
6858 #define apzThread_KeywordMachs (const char**)NULL
6861 * content selection pattern - do fix if pattern found
6863 tSCC zThread_KeywordSelect0[] =
6864 "([* ])__thread([,)])";
6866 #define THREAD_KEYWORD_TEST_CT 1
6867 static tTestDesc aThread_KeywordTests[] = {
6868 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
6871 * Fix Command Arguments for Thread_Keyword
6873 static const char* apzThread_KeywordPatch[] = {
6878 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6880 * Description of Tinfo_Cplusplus fix
6882 tSCC zTinfo_CplusplusName[] =
6886 * File name selection pattern
6888 tSCC zTinfo_CplusplusList[] =
6891 * Machine/OS name selection pattern
6893 #define apzTinfo_CplusplusMachs (const char**)NULL
6896 * content selection pattern - do fix if pattern found
6898 tSCC zTinfo_CplusplusSelect0[] =
6901 #define TINFO_CPLUSPLUS_TEST_CT 1
6902 static tTestDesc aTinfo_CplusplusTests[] = {
6903 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
6906 * Fix Command Arguments for Tinfo_Cplusplus
6908 static const char* apzTinfo_CplusplusPatch[] = {
6913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6915 * Description of Ultrix_Atexit_Param fix
6917 tSCC zUltrix_Atexit_ParamName[] =
6918 "ultrix_atexit_param";
6921 * File name selection pattern
6923 tSCC zUltrix_Atexit_ParamList[] =
6926 * Machine/OS name selection pattern
6928 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
6931 * content selection pattern - do fix if pattern found
6933 tSCC zUltrix_Atexit_ParamSelect0[] =
6934 "atexit\\(.*\\(\\)";
6936 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
6937 static tTestDesc aUltrix_Atexit_ParamTests[] = {
6938 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
6941 * Fix Command Arguments for Ultrix_Atexit_Param
6943 static const char* apzUltrix_Atexit_ParamPatch[] = {
6945 "atexit( void (*__func)( void )",
6948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6950 * Description of Ultrix_Atof_Param fix
6952 tSCC zUltrix_Atof_ParamName[] =
6953 "ultrix_atof_param";
6956 * File name selection pattern
6958 tSCC zUltrix_Atof_ParamList[] =
6961 * Machine/OS name selection pattern
6963 #define apzUltrix_Atof_ParamMachs (const char**)NULL
6966 * content selection pattern - do fix if pattern found
6968 tSCC zUltrix_Atof_ParamSelect0[] =
6969 "atof\\([ \t]*char";
6971 #define ULTRIX_ATOF_PARAM_TEST_CT 1
6972 static tTestDesc aUltrix_Atof_ParamTests[] = {
6973 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
6976 * Fix Command Arguments for Ultrix_Atof_Param
6978 static const char* apzUltrix_Atof_ParamPatch[] = {
6983 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6985 * Description of Ultrix_Const fix
6987 tSCC zUltrix_ConstName[] =
6991 * File name selection pattern
6993 tSCC zUltrix_ConstList[] =
6996 * Machine/OS name selection pattern
6998 #define apzUltrix_ConstMachs (const char**)NULL
7001 * content selection pattern - do fix if pattern found
7003 tSCC zUltrix_ConstSelect0[] =
7004 "perror\\( char \\*";
7006 #define ULTRIX_CONST_TEST_CT 1
7007 static tTestDesc aUltrix_ConstTests[] = {
7008 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
7011 * Fix Command Arguments for Ultrix_Const
7013 static const char* apzUltrix_ConstPatch[] = {
7016 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7021 * Description of Ultrix_Const2 fix
7023 tSCC zUltrix_Const2Name[] =
7027 * File name selection pattern
7029 tSCC zUltrix_Const2List[] =
7032 * Machine/OS name selection pattern
7034 #define apzUltrix_Const2Machs (const char**)NULL
7037 * content selection pattern - do fix if pattern found
7039 tSCC zUltrix_Const2Select0[] =
7040 "\\*fopen\\( char \\*";
7042 #define ULTRIX_CONST2_TEST_CT 1
7043 static tTestDesc aUltrix_Const2Tests[] = {
7044 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
7047 * Fix Command Arguments for Ultrix_Const2
7049 static const char* apzUltrix_Const2Patch[] = {
7051 "%1( const char *%3, const char *",
7052 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7055 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7057 * Description of Ultrix_Const3 fix
7059 tSCC zUltrix_Const3Name[] =
7063 * File name selection pattern
7065 tSCC zUltrix_Const3List[] =
7068 * Machine/OS name selection pattern
7070 #define apzUltrix_Const3Machs (const char**)NULL
7073 * content selection pattern - do fix if pattern found
7075 tSCC zUltrix_Const3Select0[] =
7076 "fdopen\\( .*, char \\*";
7078 #define ULTRIX_CONST3_TEST_CT 1
7079 static tTestDesc aUltrix_Const3Tests[] = {
7080 { TT_EGREP, zUltrix_Const3Select0, (regex_t*)NULL }, };
7083 * Fix Command Arguments for Ultrix_Const3
7085 static const char* apzUltrix_Const3Patch[] = {
7088 "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
7091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7093 * Description of Ultrix_Fix_Fixproto fix
7095 tSCC zUltrix_Fix_FixprotoName[] =
7096 "ultrix_fix_fixproto";
7099 * File name selection pattern
7101 tSCC zUltrix_Fix_FixprotoList[] =
7104 * Machine/OS name selection pattern
7106 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
7109 * content selection pattern - do fix if pattern found
7111 tSCC zUltrix_Fix_FixprotoSelect0[] =
7114 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
7115 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
7116 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
7119 * Fix Command Arguments for Ultrix_Fix_Fixproto
7121 static const char* apzUltrix_Fix_FixprotoPatch[] = {
7125 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
7128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7130 * Description of Ultrix_Ifdef fix
7132 tSCC zUltrix_IfdefName[] =
7136 * File name selection pattern
7138 tSCC zUltrix_IfdefList[] =
7141 * Machine/OS name selection pattern
7143 #define apzUltrix_IfdefMachs (const char**)NULL
7146 * content selection pattern - do fix if pattern found
7148 tSCC zUltrix_IfdefSelect0[] =
7149 "^#ifdef KERNEL[ \t]+&&";
7151 #define ULTRIX_IFDEF_TEST_CT 1
7152 static tTestDesc aUltrix_IfdefTests[] = {
7153 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
7156 * Fix Command Arguments for Ultrix_Ifdef
7158 static const char* apzUltrix_IfdefPatch[] = {
7160 "#if defined(KERNEL) &&",
7163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7165 * Description of Ultrix_Locale fix
7167 tSCC zUltrix_LocaleName[] =
7171 * File name selection pattern
7173 tSCC zUltrix_LocaleList[] =
7176 * Machine/OS name selection pattern
7178 #define apzUltrix_LocaleMachs (const char**)NULL
7181 * content selection pattern - do fix if pattern found
7183 tSCC zUltrix_LocaleSelect0[] =
7184 "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
7186 #define ULTRIX_LOCALE_TEST_CT 1
7187 static tTestDesc aUltrix_LocaleTests[] = {
7188 { TT_EGREP, zUltrix_LocaleSelect0, (regex_t*)NULL }, };
7191 * Fix Command Arguments for Ultrix_Locale
7193 static const char* apzUltrix_LocalePatch[] = {
7197 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7199 * Description of Ultrix_Math_Ifdef fix
7201 tSCC zUltrix_Math_IfdefName[] =
7202 "ultrix_math_ifdef";
7205 * File name selection pattern
7207 tSCC zUltrix_Math_IfdefList[] =
7208 "|sys/limits.h|float.h|math.h|";
7210 * Machine/OS name selection pattern
7212 #define apzUltrix_Math_IfdefMachs (const char**)NULL
7215 * content selection pattern - do fix if pattern found
7217 tSCC zUltrix_Math_IfdefSelect0[] =
7218 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
7220 #define ULTRIX_MATH_IFDEF_TEST_CT 1
7221 static tTestDesc aUltrix_Math_IfdefTests[] = {
7222 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
7225 * Fix Command Arguments for Ultrix_Math_Ifdef
7227 static const char* apzUltrix_Math_IfdefPatch[] = {
7232 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7234 * Description of Ultrix_Nested_Ioctl fix
7236 tSCC zUltrix_Nested_IoctlName[] =
7237 "ultrix_nested_ioctl";
7240 * File name selection pattern
7242 tSCC zUltrix_Nested_IoctlList[] =
7245 * Machine/OS name selection pattern
7247 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
7250 * content selection pattern - do fix if pattern found
7252 tSCC zUltrix_Nested_IoctlSelect0[] =
7253 "^/\\* #define SIOCSCREEN";
7255 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
7256 static tTestDesc aUltrix_Nested_IoctlTests[] = {
7257 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
7260 * Fix Command Arguments for Ultrix_Nested_Ioctl
7262 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
7263 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
7266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7268 * Description of Ultrix_Nested_Svc fix
7270 tSCC zUltrix_Nested_SvcName[] =
7271 "ultrix_nested_svc";
7274 * File name selection pattern
7276 tSCC zUltrix_Nested_SvcList[] =
7279 * Machine/OS name selection pattern
7281 #define apzUltrix_Nested_SvcMachs (const char**)NULL
7284 * content selection pattern - do fix if pattern found
7286 tSCC zUltrix_Nested_SvcSelect0[] =
7287 "^ \\*[ \t]*int protocol; */\\*";
7289 #define ULTRIX_NESTED_SVC_TEST_CT 1
7290 static tTestDesc aUltrix_Nested_SvcTests[] = {
7291 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
7294 * Fix Command Arguments for Ultrix_Nested_Svc
7296 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
7297 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
7300 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7302 * Description of Ultrix_Stat fix
7304 tSCC zUltrix_StatName[] =
7308 * File name selection pattern
7310 tSCC zUltrix_StatList[] =
7313 * Machine/OS name selection pattern
7315 #define apzUltrix_StatMachs (const char**)NULL
7318 * content selection pattern - do fix if pattern found
7320 tSCC zUltrix_StatSelect0[] =
7321 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
7323 #define ULTRIX_STAT_TEST_CT 1
7324 static tTestDesc aUltrix_StatTests[] = {
7325 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
7328 * Fix Command Arguments for Ultrix_Stat
7330 static const char* apzUltrix_StatPatch[] = { "sed",
7331 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
7333 /* macro to test for symbolic link */\\\n\
7334 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
7335 "-e", "/^[ \t]*fstat(),$/a\\\n\
7339 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7341 * Description of Ultrix_Static fix
7343 tSCC zUltrix_StaticName[] =
7347 * File name selection pattern
7349 tSCC zUltrix_StaticList[] =
7352 * Machine/OS name selection pattern
7354 #define apzUltrix_StaticMachs (const char**)NULL
7357 * content selection pattern - do fix if pattern found
7359 tSCC zUltrix_StaticSelect0[] =
7360 "#include \"r[34]_cpu";
7362 #define ULTRIX_STATIC_TEST_CT 1
7363 static tTestDesc aUltrix_StaticTests[] = {
7364 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
7367 * Fix Command Arguments for Ultrix_Static
7369 static const char* apzUltrix_StaticPatch[] = { "sed",
7370 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
7371 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
7372 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
7375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7377 * Description of Ultrix_Stdlib fix
7379 tSCC zUltrix_StdlibName[] =
7383 * File name selection pattern
7385 tSCC zUltrix_StdlibList[] =
7388 * Machine/OS name selection pattern
7390 #define apzUltrix_StdlibMachs (const char**)NULL
7393 * content selection pattern - do fix if pattern found
7395 tSCC zUltrix_StdlibSelect0[] =
7396 "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
7398 #define ULTRIX_STDLIB_TEST_CT 1
7399 static tTestDesc aUltrix_StdlibTests[] = {
7400 { TT_EGREP, zUltrix_StdlibSelect0, (regex_t*)NULL }, };
7403 * Fix Command Arguments for Ultrix_Stdlib
7405 static const char* apzUltrix_StdlibPatch[] = { "sed",
7406 "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
7407 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
7408 void\t\tunsetenv( const char *__name );\\\n\
7409 int\t\tputenv( char *__s );\n",
7410 "-e", "/^char.*getenv();.*$/a\\\n\
7412 void\tunsetenv();\\\n\
7416 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7418 * Description of Ultrix_Strings fix
7420 tSCC zUltrix_StringsName[] =
7424 * File name selection pattern
7426 tSCC zUltrix_StringsList[] =
7429 * Machine/OS name selection pattern
7431 #define apzUltrix_StringsMachs (const char**)NULL
7434 * content selection pattern - do fix if pattern found
7436 tSCC zUltrix_StringsSelect0[] =
7437 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7439 #define ULTRIX_STRINGS_TEST_CT 1
7440 static tTestDesc aUltrix_StringsTests[] = {
7441 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
7444 * Fix Command Arguments for Ultrix_Strings
7446 static const char* apzUltrix_StringsPatch[] = {
7450 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7452 * Description of Ultrix_Strings2 fix
7454 tSCC zUltrix_Strings2Name[] =
7458 * File name selection pattern
7460 tSCC zUltrix_Strings2List[] =
7463 * Machine/OS name selection pattern
7465 #define apzUltrix_Strings2Machs (const char**)NULL
7468 * content selection pattern - do fix if pattern found
7470 tSCC zUltrix_Strings2Select0[] =
7471 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7473 #define ULTRIX_STRINGS2_TEST_CT 1
7474 static tTestDesc aUltrix_Strings2Tests[] = {
7475 { TT_EGREP, zUltrix_Strings2Select0, (regex_t*)NULL }, };
7478 * Fix Command Arguments for Ultrix_Strings2
7480 static const char* apzUltrix_Strings2Patch[] = { "sed",
7481 "-e", "/^.*strncmp( const .* );.*/a\\\n\
7484 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
7485 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
7486 "-e", "/^.*strncmp();.*/a\\\n\
7488 \tstrcasecmp(),\\\n\
7489 \tstrncasecmp();\n",
7492 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7494 * Description of Ultrix_Sys_Time fix
7496 tSCC zUltrix_Sys_TimeName[] =
7500 * File name selection pattern
7502 tSCC zUltrix_Sys_TimeList[] =
7505 * Machine/OS name selection pattern
7507 #define apzUltrix_Sys_TimeMachs (const char**)NULL
7510 * content selection pattern - do fix if pattern found
7512 tSCC zUltrix_Sys_TimeSelect0[] =
7513 "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
7515 #define ULTRIX_SYS_TIME_TEST_CT 1
7516 static tTestDesc aUltrix_Sys_TimeTests[] = {
7517 { TT_EGREP, zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
7520 * Fix Command Arguments for Ultrix_Sys_Time
7522 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
7523 "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
7525 extern int adjtime(struct timeval *, struct timeval *);\\\n\
7526 extern int getitimer(int, struct itimerval *);\\\n\
7527 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
7528 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
7529 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
7530 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
7531 extern int stime(const time_t *);\\\n\
7532 extern int utimes(const char *, const struct timeval[2]);\\\n\
7533 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
7534 "-e", "/^extern.*double.*difftime();.*$/a\\\n\
7535 extern\tint adjtime();\\\n\
7536 extern\tint getitimer();\\\n\
7537 extern\tint setitimer();\\\n\
7538 extern\tint gettimeofday();\\\n\
7539 extern\tint settimeofday();\\\n\
7540 extern\tvoid profil();\\\n\
7541 extern\tint stime();\\\n\
7542 extern\tint utimes();\\\n\
7543 extern\tint select();\n",
7546 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7548 * Description of Ultrix_Unistd fix
7550 tSCC zUltrix_UnistdName[] =
7554 * File name selection pattern
7556 tSCC zUltrix_UnistdList[] =
7559 * Machine/OS name selection pattern
7561 #define apzUltrix_UnistdMachs (const char**)NULL
7564 * content selection pattern - do fix if pattern found
7566 tSCC zUltrix_UnistdSelect0[] =
7567 "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
7569 #define ULTRIX_UNISTD_TEST_CT 1
7570 static tTestDesc aUltrix_UnistdTests[] = {
7571 { TT_EGREP, zUltrix_UnistdSelect0, (regex_t*)NULL }, };
7574 * Fix Command Arguments for Ultrix_Unistd
7576 static const char* apzUltrix_UnistdPatch[] = { "sed",
7577 "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
7578 \tgetpagesize(),\n",
7579 "-e", "/^[ \t]*fork(),.*$/a\\\n\
7583 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7585 * Description of Unicosmk_Restrict fix
7587 tSCC zUnicosmk_RestrictName[] =
7588 "unicosmk_restrict";
7591 * File name selection pattern
7593 tSCC zUnicosmk_RestrictList[] =
7594 "|stdio.h|stdlib.h|wchar.h|";
7596 * Machine/OS name selection pattern
7598 tSCC* apzUnicosmk_RestrictMachs[] = {
7600 (const char*)NULL };
7603 * content selection pattern - do fix if pattern found
7605 tSCC zUnicosmk_RestrictSelect0[] =
7606 "(\\*[ \t]*)restrict([ \t]+)";
7608 #define UNICOSMK_RESTRICT_TEST_CT 1
7609 static tTestDesc aUnicosmk_RestrictTests[] = {
7610 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
7613 * Fix Command Arguments for Unicosmk_Restrict
7615 static const char* apzUnicosmk_RestrictPatch[] = {
7620 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7622 * Description of Uw7_Byteorder_Fix fix
7624 tSCC zUw7_Byteorder_FixName[] =
7625 "uw7_byteorder_fix";
7628 * File name selection pattern
7630 tSCC zUw7_Byteorder_FixList[] =
7633 * Machine/OS name selection pattern
7635 tSCC* apzUw7_Byteorder_FixMachs[] = {
7639 "i?86-*-solaris2.[0-4]",
7640 "powerpcle-*-solaris2.[0-4]",
7641 "sparc-*-solaris2.[0-4]",
7642 (const char*)NULL };
7645 * content selection pattern - do fix if pattern found
7647 tSCC zUw7_Byteorder_FixSelect0[] =
7651 * perform the 'test' shell command - do fix on success
7653 tSCC zUw7_Byteorder_FixTest0[] =
7654 "-f sys/byteorder.h";
7656 #define UW7_BYTEORDER_FIX_TEST_CT 2
7657 static tTestDesc aUw7_Byteorder_FixTests[] = {
7658 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
7659 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
7662 * Fix Command Arguments for Uw7_Byteorder_Fix
7664 static const char* apzUw7_Byteorder_FixPatch[] = {
7667 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
7670 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7672 * Description of Va_I960_Macro fix
7674 tSCC zVa_I960_MacroName[] =
7678 * File name selection pattern
7680 tSCC zVa_I960_MacroList[] =
7681 "|arch/i960/archI960.h|";
7683 * Machine/OS name selection pattern
7685 #define apzVa_I960_MacroMachs (const char**)NULL
7688 * content selection pattern - do fix if pattern found
7690 tSCC zVa_I960_MacroSelect0[] =
7691 "__(vsiz|vali|vpad|alignof__)";
7693 #define VA_I960_MACRO_TEST_CT 1
7694 static tTestDesc aVa_I960_MacroTests[] = {
7695 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
7698 * Fix Command Arguments for Va_I960_Macro
7700 static const char* apzVa_I960_MacroPatch[] = {
7705 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7707 * Description of Void_Null fix
7709 tSCC zVoid_NullName[] =
7713 * File name selection pattern
7715 tSCC zVoid_NullList[] =
7716 "|curses.h|dbm.h|locale.h|stdio.h|stdlib.h|string.h|time.h|unistd.h|sys/dir.h|sys/param.h|sys/types.h|";
7718 * Machine/OS name selection pattern
7720 #define apzVoid_NullMachs (const char**)NULL
7723 * content selection pattern - do fix if pattern found
7725 tSCC zVoid_NullSelect0[] =
7726 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
7729 * content bypass pattern - skip fix if pattern found
7731 tSCC zVoid_NullBypass0[] =
7734 #define VOID_NULL_TEST_CT 2
7735 static tTestDesc aVoid_NullTests[] = {
7736 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
7737 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
7740 * Fix Command Arguments for Void_Null
7742 static const char* apzVoid_NullPatch[] = {
7747 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7749 * Description of Vxworks_Gcc_Problem fix
7751 tSCC zVxworks_Gcc_ProblemName[] =
7752 "vxworks_gcc_problem";
7755 * File name selection pattern
7757 tSCC zVxworks_Gcc_ProblemList[] =
7758 "|types/vxTypesBase.h|";
7760 * Machine/OS name selection pattern
7762 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
7765 * content selection pattern - do fix if pattern found
7767 tSCC zVxworks_Gcc_ProblemSelect0[] =
7768 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
7770 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
7771 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
7772 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
7775 * Fix Command Arguments for Vxworks_Gcc_Problem
7777 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
7778 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
7779 "-e", "/[ \t]size_t/i\\\n\
7780 #ifndef _GCC_SIZE_T\\\n\
7781 #define _GCC_SIZE_T\n",
7782 "-e", "/[ \t]size_t/a\\\n\
7784 "-e", "/[ \t]ptrdiff_t/i\\\n\
7785 #ifndef _GCC_PTRDIFF_T\\\n\
7786 #define _GCC_PTRDIFF_T\n",
7787 "-e", "/[ \t]ptrdiff_t/a\\\n\
7789 "-e", "/[ \t]wchar_t/i\\\n\
7790 #ifndef _GCC_WCHAR_T\\\n\
7791 #define _GCC_WCHAR_T\n",
7792 "-e", "/[ \t]wchar_t/a\\\n\
7796 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7798 * Description of Vxworks_Needs_Vxtypes fix
7800 tSCC zVxworks_Needs_VxtypesName[] =
7801 "vxworks_needs_vxtypes";
7804 * File name selection pattern
7806 tSCC zVxworks_Needs_VxtypesList[] =
7809 * Machine/OS name selection pattern
7811 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
7814 * content selection pattern - do fix if pattern found
7816 tSCC zVxworks_Needs_VxtypesSelect0[] =
7817 "uint_t([ \t]+_clocks_per_sec)";
7819 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
7820 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
7821 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
7824 * Fix Command Arguments for Vxworks_Needs_Vxtypes
7826 static const char* apzVxworks_Needs_VxtypesPatch[] = {
7831 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7833 * Description of Vxworks_Needs_Vxworks fix
7835 tSCC zVxworks_Needs_VxworksName[] =
7836 "vxworks_needs_vxworks";
7839 * File name selection pattern
7841 tSCC zVxworks_Needs_VxworksList[] =
7844 * Machine/OS name selection pattern
7846 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
7849 * content selection pattern - do fix if pattern found
7851 tSCC zVxworks_Needs_VxworksSelect0[] =
7852 "#[ \t]define[ \t]+__INCstath";
7855 * perform the 'test' shell command - do fix on success
7857 tSCC zVxworks_Needs_VxworksTest0[] =
7858 " -r types/vxTypesOld.h";
7859 tSCC zVxworks_Needs_VxworksTest1[] =
7860 " -n \"`egrep '#include' $file`\"";
7861 tSCC zVxworks_Needs_VxworksTest2[] =
7862 " -n \"`egrep ULONG $file`\"";
7864 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
7865 static tTestDesc aVxworks_Needs_VxworksTests[] = {
7866 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
7867 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
7868 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
7869 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
7872 * Fix Command Arguments for Vxworks_Needs_Vxworks
7874 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
7875 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
7876 #include <types/vxTypesOld.h>\n",
7879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7881 * Description of Vxworks_Time fix
7883 tSCC zVxworks_TimeName[] =
7887 * File name selection pattern
7889 tSCC zVxworks_TimeList[] =
7892 * Machine/OS name selection pattern
7894 #define apzVxworks_TimeMachs (const char**)NULL
7897 * content selection pattern - do fix if pattern found
7899 tSCC zVxworks_TimeSelect0[] =
7900 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
7903 * perform the 'test' shell command - do fix on success
7905 tSCC zVxworks_TimeTest0[] =
7908 #define VXWORKS_TIME_TEST_CT 2
7909 static tTestDesc aVxworks_TimeTests[] = {
7910 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
7911 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
7914 * Fix Command Arguments for Vxworks_Time
7916 static const char* apzVxworks_TimePatch[] = {
7918 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
7919 #ifdef __cplusplus\n\
7920 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
7922 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
7924 #define __gcc_VOIDFUNCPTR_defined\n\
7926 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
7929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7931 * Description of Windiss_Math1 fix
7933 tSCC zWindiss_Math1Name[] =
7937 * File name selection pattern
7939 tSCC zWindiss_Math1List[] =
7942 * Machine/OS name selection pattern
7944 tSCC* apzWindiss_Math1Machs[] = {
7946 (const char*)NULL };
7947 #define WINDISS_MATH1_TEST_CT 0
7948 #define aWindiss_Math1Tests (tTestDesc*)NULL
7951 * Fix Command Arguments for Windiss_Math1
7953 static const char* apzWindiss_Math1Patch[] = { "sed",
7954 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
7957 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7959 * Description of Windiss_Math2 fix
7961 tSCC zWindiss_Math2Name[] =
7965 * File name selection pattern
7967 tSCC zWindiss_Math2List[] =
7970 * Machine/OS name selection pattern
7972 tSCC* apzWindiss_Math2Machs[] = {
7974 (const char*)NULL };
7975 #define WINDISS_MATH2_TEST_CT 0
7976 #define aWindiss_Math2Tests (tTestDesc*)NULL
7979 * Fix Command Arguments for Windiss_Math2
7981 static const char* apzWindiss_Math2Patch[] = { "sed",
7982 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
7985 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7987 * Description of Windiss_Valist fix
7989 tSCC zWindiss_ValistName[] =
7993 * File name selection pattern
7995 #define zWindiss_ValistList (char*)NULL
7997 * Machine/OS name selection pattern
7999 tSCC* apzWindiss_ValistMachs[] = {
8001 (const char*)NULL };
8004 * content selection pattern - do fix if pattern found
8006 tSCC zWindiss_ValistSelect0[] =
8007 "(#include.*)diab/va_list.h";
8009 #define WINDISS_VALIST_TEST_CT 1
8010 static tTestDesc aWindiss_ValistTests[] = {
8011 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
8014 * Fix Command Arguments for Windiss_Valist
8016 static const char* apzWindiss_ValistPatch[] = { "sed",
8017 "-e", "s|diab/va_list.h|stdarg.h|",
8020 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8022 * Description of X11_Class fix
8024 tSCC zX11_ClassName[] =
8028 * File name selection pattern
8030 tSCC zX11_ClassList[] =
8033 * Machine/OS name selection pattern
8035 #define apzX11_ClassMachs (const char**)NULL
8038 * content selection pattern - do fix if pattern found
8040 tSCC zX11_ClassSelect0[] =
8041 "^([ \t]*char \\*)class;(.*)";
8044 * content bypass pattern - skip fix if pattern found
8046 tSCC zX11_ClassBypass0[] =
8049 #define X11_CLASS_TEST_CT 2
8050 static tTestDesc aX11_ClassTests[] = {
8051 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
8052 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
8055 * Fix Command Arguments for X11_Class
8057 static const char* apzX11_ClassPatch[] = {
8059 "#ifdef __cplusplus\n\
8066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8068 * Description of X11_Class_Usage fix
8070 tSCC zX11_Class_UsageName[] =
8074 * File name selection pattern
8076 tSCC zX11_Class_UsageList[] =
8077 "|Xm/BaseClassI.h|";
8079 * Machine/OS name selection pattern
8081 #define apzX11_Class_UsageMachs (const char**)NULL
8084 * content selection pattern - do fix if pattern found
8086 tSCC zX11_Class_UsageSelect0[] =
8090 * content bypass pattern - skip fix if pattern found
8092 tSCC zX11_Class_UsageBypass0[] =
8095 #define X11_CLASS_USAGE_TEST_CT 2
8096 static tTestDesc aX11_Class_UsageTests[] = {
8097 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8098 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8101 * Fix Command Arguments for X11_Class_Usage
8103 static const char* apzX11_Class_UsagePatch[] = {
8108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8110 * Description of X11_New fix
8112 tSCC zX11_NewName[] =
8116 * File name selection pattern
8118 tSCC zX11_NewList[] =
8121 * Machine/OS name selection pattern
8123 #define apzX11_NewMachs (const char**)NULL
8126 * content bypass pattern - skip fix if pattern found
8128 tSCC zX11_NewBypass0[] =
8131 #define X11_NEW_TEST_CT 1
8132 static tTestDesc aX11_NewTests[] = {
8133 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
8136 * Fix Command Arguments for X11_New
8138 static const char* apzX11_NewPatch[] = { "sed",
8139 "-e", "/Widget\told, new;/i\\\n\
8140 #ifdef __cplusplus\\\n\
8141 \tWidget\told, c_new;\\\n\
8143 "-e", "/Widget\told, new;/a\\\n\
8145 "-e", "s/Widget new,/Widget c_new,/g",
8148 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8150 * Description of X11_Sprintf fix
8152 tSCC zX11_SprintfName[] =
8156 * File name selection pattern
8158 tSCC zX11_SprintfList[] =
8159 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
8161 * Machine/OS name selection pattern
8163 #define apzX11_SprintfMachs (const char**)NULL
8166 * content selection pattern - do fix if pattern found
8168 tSCC zX11_SprintfSelect0[] =
8169 "^extern char \\*\tsprintf\\(\\);$";
8171 #define X11_SPRINTF_TEST_CT 1
8172 static tTestDesc aX11_SprintfTests[] = {
8173 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
8176 * Fix Command Arguments for X11_Sprintf
8178 static const char* apzX11_SprintfPatch[] = {
8180 "#ifndef __STDC__\n\
8182 #endif /* !defined __STDC__ */",
8186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8190 #define REGEX_COUNT 244
8191 #define MACH_LIST_SIZE_LIMIT 261
8192 #define FIX_COUNT 201
8195 * Enumerate the fixes
8198 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8199 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8200 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8201 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8202 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8203 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8204 AAB_SUN_MEMCPY_FIXIDX,
8205 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
8206 AAB_ULTRIX_LIMITS_FIXIDX,
8207 AAB_ULTRIX_MEMORY_FIXIDX,
8208 AAB_ULTRIX_STRING_FIXIDX,
8210 AIX_SYSMACHINE_FIXIDX,
8212 AIX_SYSWAIT_2_FIXIDX,
8213 AIX_VOLATILE_FIXIDX,
8214 ALPHA___ASSERT_FIXIDX,
8215 ALPHA___EXTERN_PREFIX_FIXIDX,
8216 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8217 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8218 ALPHA_ASSERT_FIXIDX,
8219 ALPHA_BAD_LVAL_FIXIDX,
8220 ALPHA_GETOPT_FIXIDX,
8221 ALPHA_PARENS_FIXIDX,
8222 ALPHA_PTHREAD_FIXIDX,
8223 ALPHA_PTHREAD_GCC_FIXIDX,
8224 ALPHA_PTHREAD_INIT_FIXIDX,
8227 AVOID_BOOL_DEFINE_FIXIDX,
8228 AVOID_BOOL_TYPE_FIXIDX,
8229 AVOID_WCHAR_T_TYPE_FIXIDX,
8230 BAD_STRUCT_TERM_FIXIDX,
8232 BROKEN_ASSERT_STDIO_FIXIDX,
8233 BROKEN_ASSERT_STDLIB_FIXIDX,
8236 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8237 CTRL_QUOTES_DEF_FIXIDX,
8238 CTRL_QUOTES_USE_FIXIDX,
8240 DARWIN_GCC4_BREAKAGE_FIXIDX,
8241 DARWIN_PRIVATE_EXTERN_FIXIDX,
8242 DEC_INTERN_ASM_FIXIDX,
8243 DJGPP_WCHAR_H_FIXIDX,
8245 EXCEPTION_STRUCTURE_FIXIDX,
8246 FREEBSD_GCC3_BREAKAGE_FIXIDX,
8247 FREEBSD_GCC4_BREAKAGE_FIXIDX,
8248 GLIBC_MUTEX_INIT_FIXIDX,
8252 HPUX10_CPP_POW_INLINE_FIXIDX,
8253 HPUX11_CPP_POW_INLINE_FIXIDX,
8254 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8255 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8256 HPUX10_STDIO_DECLARATIONS_FIXIDX,
8258 HPUX11_FABSF_FIXIDX,
8259 HPUX11_SIZE_T_FIXIDX,
8260 HPUX11_SNPRINTF_FIXIDX,
8261 HPUX11_UINT32_C_FIXIDX,
8262 HPUX11_VSNPRINTF_FIXIDX,
8263 HPUX8_BOGUS_INLINES_FIXIDX,
8264 HPUX_CTYPE_MACROS_FIXIDX,
8266 HPUX_LONG_DOUBLE_FIXIDX,
8267 HPUX_SYSTIME_FIXIDX,
8268 HPUX_SPU_INFO_FIXIDX,
8269 HPUX_EXTERN_ERRNO_FIXIDX,
8270 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8271 HUGE_VAL_HEX_FIXIDX,
8272 HUGE_VALF_HEX_FIXIDX,
8273 HUGE_VALL_HEX_FIXIDX,
8274 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8275 IO_QUOTES_DEF_FIXIDX,
8276 IO_QUOTES_USE_FIXIDX,
8277 IP_MISSING_SEMI_FIXIDX,
8278 IRIX___RESTRICT_FIXIDX,
8279 IRIX___GENERIC1_FIXIDX,
8280 IRIX___GENERIC2_FIXIDX,
8281 IRIX_ASM_APOSTROPHE_FIXIDX,
8282 IRIX_LIMITS_CONST_FIXIDX,
8283 IRIX_SOCKLEN_T_FIXIDX,
8284 IRIX_STDIO_VA_LIST_FIXIDX,
8285 IRIX_WCSFTIME_FIXIDX,
8287 ISC_OMITS_WITH_STDC_FIXIDX,
8288 KANDR_CONCAT_FIXIDX,
8289 LIBC1_G_VA_LIST_FIXIDX,
8290 LIBC1_IFDEFD_MEMX_FIXIDX,
8291 LINUX_IA64_UCONTEXT_FIXIDX,
8292 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8293 LYNXOS_MISSING_PUTENV_FIXIDX,
8294 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8295 MACHINE_NAME_FIXIDX,
8296 MATH_EXCEPTION_FIXIDX,
8297 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8298 NESTED_AUTH_DES_FIXIDX,
8299 NESTED_MOTOROLA_FIXIDX,
8300 NESTED_SYS_LIMITS_FIXIDX,
8301 NETBSD_EXTRA_SEMICOLON_FIXIDX,
8302 NEXT_MATH_PREFIX_FIXIDX,
8303 NEXT_TEMPLATE_FIXIDX,
8304 NEXT_VOLITILE_FIXIDX,
8305 NEXT_WAIT_UNION_FIXIDX,
8306 NODEENT_SYNTAX_FIXIDX,
8307 OBSTACK_LVALUE_CAST_FIXIDX,
8308 OSF_NAMESPACE_A_FIXIDX,
8309 OSF_NAMESPACE_C_FIXIDX,
8310 PTHREAD_PAGE_SIZE_FIXIDX,
8311 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8312 READ_RET_TYPE_FIXIDX,
8313 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8314 RPC_XDR_LVALUE_CAST_B_FIXIDX,
8315 RS6000_DOUBLE_FIXIDX,
8316 RS6000_FCHMOD_FIXIDX,
8317 RS6000_PARAM_FIXIDX,
8320 SCO_STATIC_FUNC_FIXIDX,
8322 SOLARIS_MATH_1_FIXIDX,
8323 SOLARIS_MATH_2_FIXIDX,
8324 SOLARIS_MATH_3_FIXIDX,
8325 SOLARIS_MATH_4_FIXIDX,
8326 SOLARIS_MATH_5_FIXIDX,
8327 SOLARIS_MATH_6_FIXIDX,
8328 SOLARIS_MATH_7_FIXIDX,
8329 SOLARIS_MATH_8_FIXIDX,
8330 SOLARIS_MATH_9_FIXIDX,
8331 SOLARIS_MUTEX_INIT_1_FIXIDX,
8332 SOLARIS_MUTEX_INIT_2_FIXIDX,
8333 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8334 SOLARIS_ONCE_INIT_1_FIXIDX,
8335 SOLARIS_ONCE_INIT_2_FIXIDX,
8336 SOLARIS_SOCKET_FIXIDX,
8337 SOLARIS_STDIO_TAG_FIXIDX,
8338 SOLARIS_UNISTD_FIXIDX,
8339 SOLARIS_WIDEC_FIXIDX,
8341 STDIO_STDARG_H_FIXIDX,
8342 STDIO_VA_LIST_FIXIDX,
8343 STDIO_VA_LIST_CLIENTS_FIXIDX,
8344 STRICT_ANSI_NOT_FIXIDX,
8345 STRICT_ANSI_NOT_CTD_FIXIDX,
8346 STRICT_ANSI_ONLY_FIXIDX,
8348 STRUCT_SOCKADDR_FIXIDX,
8349 SUN_AUTH_PROTO_FIXIDX,
8350 SUN_BOGUS_IFDEF_FIXIDX,
8351 SUN_CATMACRO_FIXIDX,
8353 SUN_RUSERS_SEMI_FIXIDX,
8355 SUNOS_STRLEN_FIXIDX,
8356 SVR4_DISABLE_OPT_FIXIDX,
8360 SVR4_SIGHANDLER_TYPE_FIXIDX,
8361 SVR4_UNDECLARED_GETRNGE_FIXIDX,
8362 SYSV68_STRING_FIXIDX,
8363 SYSZ_STDLIB_FOR_SUN_FIXIDX,
8364 THREAD_KEYWORD_FIXIDX,
8365 TINFO_CPLUSPLUS_FIXIDX,
8366 ULTRIX_ATEXIT_PARAM_FIXIDX,
8367 ULTRIX_ATOF_PARAM_FIXIDX,
8368 ULTRIX_CONST_FIXIDX,
8369 ULTRIX_CONST2_FIXIDX,
8370 ULTRIX_CONST3_FIXIDX,
8371 ULTRIX_FIX_FIXPROTO_FIXIDX,
8372 ULTRIX_IFDEF_FIXIDX,
8373 ULTRIX_LOCALE_FIXIDX,
8374 ULTRIX_MATH_IFDEF_FIXIDX,
8375 ULTRIX_NESTED_IOCTL_FIXIDX,
8376 ULTRIX_NESTED_SVC_FIXIDX,
8378 ULTRIX_STATIC_FIXIDX,
8379 ULTRIX_STDLIB_FIXIDX,
8380 ULTRIX_STRINGS_FIXIDX,
8381 ULTRIX_STRINGS2_FIXIDX,
8382 ULTRIX_SYS_TIME_FIXIDX,
8383 ULTRIX_UNISTD_FIXIDX,
8384 UNICOSMK_RESTRICT_FIXIDX,
8385 UW7_BYTEORDER_FIX_FIXIDX,
8386 VA_I960_MACRO_FIXIDX,
8388 VXWORKS_GCC_PROBLEM_FIXIDX,
8389 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8390 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8391 VXWORKS_TIME_FIXIDX,
8392 WINDISS_MATH1_FIXIDX,
8393 WINDISS_MATH2_FIXIDX,
8394 WINDISS_VALIST_FIXIDX,
8396 X11_CLASS_USAGE_FIXIDX,
8401 tFixDesc fixDescList[ FIX_COUNT ] = {
8402 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8403 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8404 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8405 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8407 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8408 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8409 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8410 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8412 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
8413 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8414 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8415 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8417 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
8418 apzAab_Fd_Zero_Gnu_Types_HMachs,
8419 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8420 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8422 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
8423 apzAab_Fd_Zero_Selectbits_HMachs,
8424 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8425 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8427 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8428 apzAab_Solaris_Sys_Varargs_HMachs,
8429 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8430 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8432 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8433 apzAab_Sun_MemcpyMachs,
8434 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8435 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8437 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
8438 apzAab_Ultrix_Ansi_CompatMachs,
8439 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8440 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
8442 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
8443 apzAab_Ultrix_LimitsMachs,
8444 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8445 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
8447 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
8448 apzAab_Ultrix_MemoryMachs,
8449 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8450 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
8452 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
8453 apzAab_Ultrix_StringMachs,
8454 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8455 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
8457 { zAix_PthreadName, zAix_PthreadList,
8458 apzAix_PthreadMachs,
8459 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8460 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
8462 { zAix_SysmachineName, zAix_SysmachineList,
8463 apzAix_SysmachineMachs,
8464 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8465 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
8467 { zAix_SyswaitName, zAix_SyswaitList,
8468 apzAix_SyswaitMachs,
8469 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8470 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
8472 { zAix_Syswait_2Name, zAix_Syswait_2List,
8473 apzAix_Syswait_2Machs,
8474 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8475 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8477 { zAix_VolatileName, zAix_VolatileList,
8478 apzAix_VolatileMachs,
8479 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8480 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
8482 { zAlpha___AssertName, zAlpha___AssertList,
8483 apzAlpha___AssertMachs,
8484 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8485 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8487 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
8488 apzAlpha___Extern_PrefixMachs,
8489 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8490 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
8492 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
8493 apzAlpha___Extern_Prefix_StandardsMachs,
8494 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8495 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8497 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
8498 apzAlpha___Extern_Prefix_Sys_StatMachs,
8499 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8500 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8502 { zAlpha_AssertName, zAlpha_AssertList,
8503 apzAlpha_AssertMachs,
8504 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8505 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
8507 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
8508 apzAlpha_Bad_LvalMachs,
8509 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8510 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
8512 { zAlpha_GetoptName, zAlpha_GetoptList,
8513 apzAlpha_GetoptMachs,
8514 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8515 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
8517 { zAlpha_ParensName, zAlpha_ParensList,
8518 apzAlpha_ParensMachs,
8519 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8520 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
8522 { zAlpha_PthreadName, zAlpha_PthreadList,
8523 apzAlpha_PthreadMachs,
8524 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8525 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
8527 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
8528 apzAlpha_Pthread_GccMachs,
8529 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8530 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
8532 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
8533 apzAlpha_Pthread_InitMachs,
8534 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8535 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
8537 { zAlpha_SbrkName, zAlpha_SbrkList,
8539 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8540 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
8542 { zAlpha_WcharName, zAlpha_WcharList,
8543 apzAlpha_WcharMachs,
8544 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
8545 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
8547 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
8548 apzAvoid_Bool_DefineMachs,
8549 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8550 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
8552 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
8553 apzAvoid_Bool_TypeMachs,
8554 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8555 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
8557 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
8558 apzAvoid_Wchar_T_TypeMachs,
8559 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8560 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
8562 { zBad_Struct_TermName, zBad_Struct_TermList,
8563 apzBad_Struct_TermMachs,
8564 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8565 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
8567 { zBadquoteName, zBadquoteList,
8569 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8570 aBadquoteTests, apzBadquotePatch, 0 },
8572 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
8573 apzBroken_Assert_StdioMachs,
8574 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8575 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
8577 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
8578 apzBroken_Assert_StdlibMachs,
8579 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8580 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
8582 { zBroken_CabsName, zBroken_CabsList,
8583 apzBroken_CabsMachs,
8584 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8585 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
8587 { zBroken_NanName, zBroken_NanList,
8589 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8590 aBroken_NanTests, apzBroken_NanPatch, 0 },
8592 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
8593 apzBsd_Stdio_Attrs_ConflictMachs,
8594 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8595 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
8597 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
8598 apzCtrl_Quotes_DefMachs,
8599 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8600 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
8602 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
8603 apzCtrl_Quotes_UseMachs,
8604 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8605 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
8607 { zCxx_UnreadyName, zCxx_UnreadyList,
8608 apzCxx_UnreadyMachs,
8609 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8610 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
8612 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
8613 apzDarwin_Gcc4_BreakageMachs,
8614 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8615 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
8617 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
8618 apzDarwin_Private_ExternMachs,
8619 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8620 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
8622 { zDec_Intern_AsmName, zDec_Intern_AsmList,
8623 apzDec_Intern_AsmMachs,
8624 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
8625 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
8627 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
8628 apzDjgpp_Wchar_HMachs,
8629 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8630 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
8632 { zEcd_CursorName, zEcd_CursorList,
8634 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8635 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
8637 { zException_StructureName, zException_StructureList,
8638 apzException_StructureMachs,
8639 EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8640 aException_StructureTests, apzException_StructurePatch, 0 },
8642 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
8643 apzFreebsd_Gcc3_BreakageMachs,
8644 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8645 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
8647 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
8648 apzFreebsd_Gcc4_BreakageMachs,
8649 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8650 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
8652 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
8653 apzGlibc_Mutex_InitMachs,
8654 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
8655 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
8657 { zGnu_TypesName, zGnu_TypesList,
8659 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
8660 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
8662 { zHp_InlineName, zHp_InlineList,
8664 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8665 aHp_InlineTests, apzHp_InlinePatch, 0 },
8667 { zHp_SysfileName, zHp_SysfileList,
8669 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8670 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
8672 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
8673 apzHpux10_Cpp_Pow_InlineMachs,
8674 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8675 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
8677 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
8678 apzHpux11_Cpp_Pow_InlineMachs,
8679 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8680 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
8682 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
8683 apzHpux10_Ctype_Declarations1Machs,
8684 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8685 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
8687 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
8688 apzHpux10_Ctype_Declarations2Machs,
8689 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8690 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
8692 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
8693 apzHpux10_Stdio_DeclarationsMachs,
8694 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8695 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
8697 { zHpux11_AbsName, zHpux11_AbsList,
8699 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8700 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
8702 { zHpux11_FabsfName, zHpux11_FabsfList,
8703 apzHpux11_FabsfMachs,
8704 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8705 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
8707 { zHpux11_Size_TName, zHpux11_Size_TList,
8708 apzHpux11_Size_TMachs,
8709 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8710 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
8712 { zHpux11_SnprintfName, zHpux11_SnprintfList,
8713 apzHpux11_SnprintfMachs,
8714 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8715 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
8717 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
8718 apzHpux11_Uint32_CMachs,
8719 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8720 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
8722 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
8723 apzHpux11_VsnprintfMachs,
8724 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8725 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
8727 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
8728 apzHpux8_Bogus_InlinesMachs,
8729 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
8730 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
8732 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
8733 apzHpux_Ctype_MacrosMachs,
8734 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8735 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
8737 { zHpux_HtonlName, zHpux_HtonlList,
8739 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8740 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
8742 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
8743 apzHpux_Long_DoubleMachs,
8744 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
8745 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
8747 { zHpux_SystimeName, zHpux_SystimeList,
8748 apzHpux_SystimeMachs,
8749 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8750 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
8752 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
8753 apzHpux_Spu_InfoMachs,
8754 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8755 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
8757 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
8758 apzHpux_Extern_ErrnoMachs,
8759 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8760 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
8762 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
8763 apzHpux_Pthread_InitializersMachs,
8764 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
8765 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
8767 { zHuge_Val_HexName, zHuge_Val_HexList,
8768 apzHuge_Val_HexMachs,
8769 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8770 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
8772 { zHuge_Valf_HexName, zHuge_Valf_HexList,
8773 apzHuge_Valf_HexMachs,
8774 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8775 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
8777 { zHuge_Vall_HexName, zHuge_Vall_HexList,
8778 apzHuge_Vall_HexMachs,
8779 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8780 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
8782 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
8783 apzInt_Abort_Free_And_ExitMachs,
8784 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8785 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
8787 { zIo_Quotes_DefName, zIo_Quotes_DefList,
8788 apzIo_Quotes_DefMachs,
8789 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8790 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
8792 { zIo_Quotes_UseName, zIo_Quotes_UseList,
8793 apzIo_Quotes_UseMachs,
8794 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8795 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
8797 { zIp_Missing_SemiName, zIp_Missing_SemiList,
8798 apzIp_Missing_SemiMachs,
8799 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
8800 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
8802 { zIrix___RestrictName, zIrix___RestrictList,
8803 apzIrix___RestrictMachs,
8804 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8805 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
8807 { zIrix___Generic1Name, zIrix___Generic1List,
8808 apzIrix___Generic1Machs,
8809 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8810 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
8812 { zIrix___Generic2Name, zIrix___Generic2List,
8813 apzIrix___Generic2Machs,
8814 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8815 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
8817 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
8818 apzIrix_Asm_ApostropheMachs,
8819 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8820 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
8822 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
8823 apzIrix_Limits_ConstMachs,
8824 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8825 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
8827 { zIrix_Socklen_TName, zIrix_Socklen_TList,
8828 apzIrix_Socklen_TMachs,
8829 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8830 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
8832 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
8833 apzIrix_Stdio_Va_ListMachs,
8834 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8835 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
8837 { zIrix_WcsftimeName, zIrix_WcsftimeList,
8838 apzIrix_WcsftimeMachs,
8839 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8840 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
8842 { zIsc_FmodName, zIsc_FmodList,
8844 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8845 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
8847 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
8848 apzIsc_Omits_With_StdcMachs,
8849 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8850 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
8852 { zKandr_ConcatName, zKandr_ConcatList,
8853 apzKandr_ConcatMachs,
8854 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8855 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
8857 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
8858 apzLibc1_G_Va_ListMachs,
8859 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8860 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
8862 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
8863 apzLibc1_Ifdefd_MemxMachs,
8864 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8865 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
8867 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
8868 apzLinux_Ia64_UcontextMachs,
8869 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8870 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
8872 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
8873 apzLynxos_No_Warning_In_Sys_Time_HMachs,
8874 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8875 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
8877 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
8878 apzLynxos_Missing_PutenvMachs,
8879 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8880 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
8882 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
8883 apzMachine_Ansi_H_Va_ListMachs,
8884 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8885 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
8887 { zMachine_NameName, zMachine_NameList,
8888 apzMachine_NameMachs,
8889 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8890 aMachine_NameTests, apzMachine_NamePatch, 0 },
8892 { zMath_ExceptionName, zMath_ExceptionList,
8893 apzMath_ExceptionMachs,
8894 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8895 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
8897 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
8898 apzMath_Huge_Val_From_Dbl_MaxMachs,
8899 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
8900 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
8902 { zNested_Auth_DesName, zNested_Auth_DesList,
8903 apzNested_Auth_DesMachs,
8904 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8905 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
8907 { zNested_MotorolaName, zNested_MotorolaList,
8908 apzNested_MotorolaMachs,
8909 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
8910 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
8912 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
8913 apzNested_Sys_LimitsMachs,
8914 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
8915 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
8917 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
8918 apzNetbsd_Extra_SemicolonMachs,
8919 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8920 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
8922 { zNext_Math_PrefixName, zNext_Math_PrefixList,
8923 apzNext_Math_PrefixMachs,
8924 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8925 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
8927 { zNext_TemplateName, zNext_TemplateList,
8928 apzNext_TemplateMachs,
8929 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8930 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
8932 { zNext_VolitileName, zNext_VolitileList,
8933 apzNext_VolitileMachs,
8934 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8935 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
8937 { zNext_Wait_UnionName, zNext_Wait_UnionList,
8938 apzNext_Wait_UnionMachs,
8939 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8940 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
8942 { zNodeent_SyntaxName, zNodeent_SyntaxList,
8943 apzNodeent_SyntaxMachs,
8944 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8945 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
8947 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
8948 apzObstack_Lvalue_CastMachs,
8949 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8950 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
8952 { zOsf_Namespace_AName, zOsf_Namespace_AList,
8953 apzOsf_Namespace_AMachs,
8954 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8955 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
8957 { zOsf_Namespace_CName, zOsf_Namespace_CList,
8958 apzOsf_Namespace_CMachs,
8959 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8960 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
8962 { zPthread_Page_SizeName, zPthread_Page_SizeList,
8963 apzPthread_Page_SizeMachs,
8964 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8965 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
8967 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
8968 apzPthread_Incomplete_Struct_ArgumentMachs,
8969 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8970 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
8972 { zRead_Ret_TypeName, zRead_Ret_TypeList,
8973 apzRead_Ret_TypeMachs,
8974 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8975 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
8977 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
8978 apzRpc_Xdr_Lvalue_Cast_AMachs,
8979 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8980 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
8982 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
8983 apzRpc_Xdr_Lvalue_Cast_BMachs,
8984 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8985 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
8987 { zRs6000_DoubleName, zRs6000_DoubleList,
8988 apzRs6000_DoubleMachs,
8989 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8990 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
8992 { zRs6000_FchmodName, zRs6000_FchmodList,
8993 apzRs6000_FchmodMachs,
8994 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8995 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
8997 { zRs6000_ParamName, zRs6000_ParamList,
8998 apzRs6000_ParamMachs,
8999 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9000 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
9002 { zSco_MathName, zSco_MathList,
9004 SCO_MATH_TEST_CT, FD_MACH_ONLY,
9005 aSco_MathTests, apzSco_MathPatch, 0 },
9007 { zSco_RegsetName, zSco_RegsetList,
9009 SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9010 aSco_RegsetTests, apzSco_RegsetPatch, 0 },
9012 { zSco_Static_FuncName, zSco_Static_FuncList,
9013 apzSco_Static_FuncMachs,
9014 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
9015 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
9017 { zSco_UtimeName, zSco_UtimeList,
9019 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9020 aSco_UtimeTests, apzSco_UtimePatch, 0 },
9022 { zSolaris_Math_1Name, zSolaris_Math_1List,
9023 apzSolaris_Math_1Machs,
9024 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9025 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
9027 { zSolaris_Math_2Name, zSolaris_Math_2List,
9028 apzSolaris_Math_2Machs,
9029 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9030 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
9032 { zSolaris_Math_3Name, zSolaris_Math_3List,
9033 apzSolaris_Math_3Machs,
9034 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9035 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
9037 { zSolaris_Math_4Name, zSolaris_Math_4List,
9038 apzSolaris_Math_4Machs,
9039 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9040 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
9042 { zSolaris_Math_5Name, zSolaris_Math_5List,
9043 apzSolaris_Math_5Machs,
9044 SOLARIS_MATH_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9045 aSolaris_Math_5Tests, apzSolaris_Math_5Patch, 0 },
9047 { zSolaris_Math_6Name, zSolaris_Math_6List,
9048 apzSolaris_Math_6Machs,
9049 SOLARIS_MATH_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9050 aSolaris_Math_6Tests, apzSolaris_Math_6Patch, 0 },
9052 { zSolaris_Math_7Name, zSolaris_Math_7List,
9053 apzSolaris_Math_7Machs,
9054 SOLARIS_MATH_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9055 aSolaris_Math_7Tests, apzSolaris_Math_7Patch, 0 },
9057 { zSolaris_Math_8Name, zSolaris_Math_8List,
9058 apzSolaris_Math_8Machs,
9059 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9060 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
9062 { zSolaris_Math_9Name, zSolaris_Math_9List,
9063 apzSolaris_Math_9Machs,
9064 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9065 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
9067 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List,
9068 apzSolaris_Mutex_Init_1Machs,
9069 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
9070 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 },
9072 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
9073 apzSolaris_Mutex_Init_2Machs,
9074 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9075 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
9077 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
9078 apzSolaris_Rwlock_Init_1Machs,
9079 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9080 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
9082 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
9083 apzSolaris_Once_Init_1Machs,
9084 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9085 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
9087 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
9088 apzSolaris_Once_Init_2Machs,
9089 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9090 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
9092 { zSolaris_SocketName, zSolaris_SocketList,
9093 apzSolaris_SocketMachs,
9094 SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9095 aSolaris_SocketTests, apzSolaris_SocketPatch, 0 },
9097 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
9098 apzSolaris_Stdio_TagMachs,
9099 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9100 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
9102 { zSolaris_UnistdName, zSolaris_UnistdList,
9103 apzSolaris_UnistdMachs,
9104 SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9105 aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 },
9107 { zSolaris_WidecName, zSolaris_WidecList,
9108 apzSolaris_WidecMachs,
9109 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9110 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
9112 { zStatsswtchName, zStatsswtchList,
9114 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9115 aStatsswtchTests, apzStatsswtchPatch, 0 },
9117 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
9118 apzStdio_Stdarg_HMachs,
9119 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9120 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
9122 { zStdio_Va_ListName, zStdio_Va_ListList,
9123 apzStdio_Va_ListMachs,
9124 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9125 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
9127 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
9128 apzStdio_Va_List_ClientsMachs,
9129 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9130 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
9132 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
9133 apzStrict_Ansi_NotMachs,
9134 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9135 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
9137 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
9138 apzStrict_Ansi_Not_CtdMachs,
9139 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9140 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
9142 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
9143 apzStrict_Ansi_OnlyMachs,
9144 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9145 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
9147 { zStruct_FileName, zStruct_FileList,
9148 apzStruct_FileMachs,
9149 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9150 aStruct_FileTests, apzStruct_FilePatch, 0 },
9152 { zStruct_SockaddrName, zStruct_SockaddrList,
9153 apzStruct_SockaddrMachs,
9154 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9155 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
9157 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
9158 apzSun_Auth_ProtoMachs,
9159 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9160 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
9162 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
9163 apzSun_Bogus_IfdefMachs,
9164 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9165 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
9167 { zSun_CatmacroName, zSun_CatmacroList,
9168 apzSun_CatmacroMachs,
9169 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9170 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
9172 { zSun_MallocName, zSun_MallocList,
9174 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9175 aSun_MallocTests, apzSun_MallocPatch, 0 },
9177 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
9178 apzSun_Rusers_SemiMachs,
9179 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9180 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
9182 { zSun_SignalName, zSun_SignalList,
9184 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9185 aSun_SignalTests, apzSun_SignalPatch, 0 },
9187 { zSunos_StrlenName, zSunos_StrlenList,
9188 apzSunos_StrlenMachs,
9189 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9190 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
9192 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
9193 apzSvr4_Disable_OptMachs,
9194 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9195 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
9197 { zSvr4_GetcwdName, zSvr4_GetcwdList,
9198 apzSvr4_GetcwdMachs,
9199 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9200 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
9202 { zSvr4_KrnlName, zSvr4_KrnlList,
9204 SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9205 aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 },
9207 { zSvr4_ProfilName, zSvr4_ProfilList,
9208 apzSvr4_ProfilMachs,
9209 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9210 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
9212 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9213 apzSvr4_Sighandler_TypeMachs,
9214 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9215 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9217 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9218 apzSvr4_Undeclared_GetrngeMachs,
9219 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9220 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9222 { zSysv68_StringName, zSysv68_StringList,
9223 apzSysv68_StringMachs,
9224 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9225 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
9227 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
9228 apzSysz_Stdlib_For_SunMachs,
9229 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9230 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
9232 { zThread_KeywordName, zThread_KeywordList,
9233 apzThread_KeywordMachs,
9234 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9235 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9237 { zTinfo_CplusplusName, zTinfo_CplusplusList,
9238 apzTinfo_CplusplusMachs,
9239 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9240 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
9242 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
9243 apzUltrix_Atexit_ParamMachs,
9244 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9245 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
9247 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
9248 apzUltrix_Atof_ParamMachs,
9249 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9250 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
9252 { zUltrix_ConstName, zUltrix_ConstList,
9253 apzUltrix_ConstMachs,
9254 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9255 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
9257 { zUltrix_Const2Name, zUltrix_Const2List,
9258 apzUltrix_Const2Machs,
9259 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9260 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
9262 { zUltrix_Const3Name, zUltrix_Const3List,
9263 apzUltrix_Const3Machs,
9264 ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9265 aUltrix_Const3Tests, apzUltrix_Const3Patch, 0 },
9267 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
9268 apzUltrix_Fix_FixprotoMachs,
9269 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9270 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
9272 { zUltrix_IfdefName, zUltrix_IfdefList,
9273 apzUltrix_IfdefMachs,
9274 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9275 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
9277 { zUltrix_LocaleName, zUltrix_LocaleList,
9278 apzUltrix_LocaleMachs,
9279 ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9280 aUltrix_LocaleTests, apzUltrix_LocalePatch, 0 },
9282 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
9283 apzUltrix_Math_IfdefMachs,
9284 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9285 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
9287 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
9288 apzUltrix_Nested_IoctlMachs,
9289 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
9290 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
9292 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
9293 apzUltrix_Nested_SvcMachs,
9294 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
9295 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
9297 { zUltrix_StatName, zUltrix_StatList,
9298 apzUltrix_StatMachs,
9299 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
9300 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
9302 { zUltrix_StaticName, zUltrix_StaticList,
9303 apzUltrix_StaticMachs,
9304 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
9305 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
9307 { zUltrix_StdlibName, zUltrix_StdlibList,
9308 apzUltrix_StdlibMachs,
9309 ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
9310 aUltrix_StdlibTests, apzUltrix_StdlibPatch, 0 },
9312 { zUltrix_StringsName, zUltrix_StringsList,
9313 apzUltrix_StringsMachs,
9314 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9315 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
9317 { zUltrix_Strings2Name, zUltrix_Strings2List,
9318 apzUltrix_Strings2Machs,
9319 ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
9320 aUltrix_Strings2Tests, apzUltrix_Strings2Patch, 0 },
9322 { zUltrix_Sys_TimeName, zUltrix_Sys_TimeList,
9323 apzUltrix_Sys_TimeMachs,
9324 ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
9325 aUltrix_Sys_TimeTests, apzUltrix_Sys_TimePatch, 0 },
9327 { zUltrix_UnistdName, zUltrix_UnistdList,
9328 apzUltrix_UnistdMachs,
9329 ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
9330 aUltrix_UnistdTests, apzUltrix_UnistdPatch, 0 },
9332 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
9333 apzUnicosmk_RestrictMachs,
9334 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9335 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
9337 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
9338 apzUw7_Byteorder_FixMachs,
9339 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9340 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
9342 { zVa_I960_MacroName, zVa_I960_MacroList,
9343 apzVa_I960_MacroMachs,
9344 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9345 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
9347 { zVoid_NullName, zVoid_NullList,
9349 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9350 aVoid_NullTests, apzVoid_NullPatch, 0 },
9352 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
9353 apzVxworks_Gcc_ProblemMachs,
9354 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9355 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
9357 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
9358 apzVxworks_Needs_VxtypesMachs,
9359 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9360 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
9362 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
9363 apzVxworks_Needs_VxworksMachs,
9364 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9365 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
9367 { zVxworks_TimeName, zVxworks_TimeList,
9368 apzVxworks_TimeMachs,
9369 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9370 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
9372 { zWindiss_Math1Name, zWindiss_Math1List,
9373 apzWindiss_Math1Machs,
9374 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
9375 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
9377 { zWindiss_Math2Name, zWindiss_Math2List,
9378 apzWindiss_Math2Machs,
9379 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
9380 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
9382 { zWindiss_ValistName, zWindiss_ValistList,
9383 apzWindiss_ValistMachs,
9384 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
9385 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
9387 { zX11_ClassName, zX11_ClassList,
9389 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9390 aX11_ClassTests, apzX11_ClassPatch, 0 },
9392 { zX11_Class_UsageName, zX11_Class_UsageList,
9393 apzX11_Class_UsageMachs,
9394 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9395 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
9397 { zX11_NewName, zX11_NewList,
9399 X11_NEW_TEST_CT, FD_MACH_ONLY,
9400 aX11_NewTests, apzX11_NewPatch, 0 },
9402 { zX11_SprintfName, zX11_SprintfList,
9403 apzX11_SprintfMachs,
9404 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9405 aX11_SprintfTests, apzX11_SprintfPatch, 0 }