1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Thursday July 5, 2007 at 01:42:35 PM EDT
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT CVS-MERGE THIS FILE, EITHER Thu Jul 5 13:42:35 EDT 2007
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 202 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 # include_next <architecture/ppc/math.h>\n\
81 # ifndef __LIBMLDBL_COMPAT\n\
82 # ifdef __LONG_DOUBLE_128__\n\
83 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
85 # define __LIBMLDBL_COMPAT(sym)\n\
86 # endif /* __LONG_DOUBLE_128__ */\n\
87 # endif /* __LIBMLDBL_COMPAT */\n\
88 # ifdef __cplusplus\n\
91 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
92 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
93 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
94 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
95 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
96 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
97 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
98 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
99 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
100 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
101 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
102 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
103 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
104 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
105 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
106 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
107 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
108 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
109 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
110 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
111 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
112 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
113 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
114 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
115 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
116 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
117 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
118 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
119 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
120 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
121 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
122 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
123 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
124 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
125 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
126 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
127 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
128 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
129 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
130 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
131 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
132 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
133 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
134 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
135 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
136 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
137 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
138 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
139 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
140 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
141 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
142 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
143 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
144 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
145 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
146 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
147 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
148 # ifdef __cplusplus\n\
151 #endif /* __MATH__ */",
154 /* * * * * * * * * * * * * * * * * * * * * * * * * *
156 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
158 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
159 "AAB_darwin7_9_long_double_funcs_2";
162 * File name selection pattern
164 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
167 * Machine/OS name selection pattern
169 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
174 * content selection pattern - do fix if pattern found
176 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
177 "#include[ \\t]+\\\"";
179 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
180 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
181 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
184 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
186 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
189 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
192 /* * * * * * * * * * * * * * * * * * * * * * * * * *
194 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
196 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
197 "AAB_fd_zero_asm_posix_types_h";
200 * File name selection pattern
202 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
203 "|asm/posix_types.h|";
205 * Machine/OS name selection pattern
207 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
208 "i[34567]86-*-linux*",
212 * content bypass pattern - skip fix if pattern found
214 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
217 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 1
218 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
219 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL }, };
222 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
224 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
225 "/* This file fixes a bug in the __FD_ZERO macro\n\
226 for older versions of the Linux kernel. */\n\
227 #ifndef _POSIX_TYPES_H_WRAPPER\n\
228 #include <features.h>\n\
229 #include_next <asm/posix_types.h>\n\n\
230 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
232 #define __FD_ZERO(fdsetp) \\\n\
234 int __d0, __d1; \\\n\
235 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
236 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
237 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
238 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
241 #define _POSIX_TYPES_H_WRAPPER\n\
242 #endif /* _POSIX_TYPES_H_WRAPPER */",
245 /* * * * * * * * * * * * * * * * * * * * * * * * * *
247 * Description of Aab_Fd_Zero_Gnu_Types_H fix
249 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
250 "AAB_fd_zero_gnu_types_h";
253 * File name selection pattern
255 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
258 * Machine/OS name selection pattern
260 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
261 "i[34567]86-*-linux*",
263 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
264 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
267 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
269 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
270 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
271 #ifndef _TYPES_H_WRAPPER\n\
272 #include <features.h>\n\
273 #include_next <gnu/types.h>\n\n\
274 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
276 # define __FD_ZERO(fdsetp) \\\n\
278 int __d0, __d1; \\\n\
279 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
280 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
281 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
282 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
285 #define _TYPES_H_WRAPPER\n\
286 #endif /* _TYPES_H_WRAPPER */",
289 /* * * * * * * * * * * * * * * * * * * * * * * * * *
291 * Description of Aab_Fd_Zero_Selectbits_H fix
293 tSCC zAab_Fd_Zero_Selectbits_HName[] =
294 "AAB_fd_zero_selectbits_h";
297 * File name selection pattern
299 tSCC zAab_Fd_Zero_Selectbits_HList[] =
302 * Machine/OS name selection pattern
304 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
305 "i[34567]86-*-linux*",
307 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
308 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
311 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
313 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
314 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
315 #ifndef _SELECTBITS_H_WRAPPER\n\
316 #include <features.h>\n\
317 #include_next <selectbits.h>\n\n\
318 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
319 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
320 && __GLIBC_MINOR__ == 0\n\
322 #define __FD_ZERO(fdsetp) \\\\\n\
324 int __d0, __d1; \\\\\n\
325 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
326 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
327 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
328 / sizeof (__fd_mask)), \\\\\n\
329 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
330 : \"memory\"); \\\\\n\
333 #define _SELECTBITS_H_WRAPPER\n\
334 #endif /* _SELECTBITS_H_WRAPPER */",
337 /* * * * * * * * * * * * * * * * * * * * * * * * * *
339 * Description of Aab_Solaris_Sys_Varargs_H fix
341 tSCC zAab_Solaris_Sys_Varargs_HName[] =
342 "AAB_solaris_sys_varargs_h";
345 * File name selection pattern
347 tSCC zAab_Solaris_Sys_Varargs_HList[] =
350 * Machine/OS name selection pattern
352 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
355 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
356 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
359 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
361 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
363 #include <stdarg.h>\n\
365 #include <varargs.h>\n\
369 /* * * * * * * * * * * * * * * * * * * * * * * * * *
371 * Description of Aab_Sun_Memcpy fix
373 tSCC zAab_Sun_MemcpyName[] =
377 * File name selection pattern
379 tSCC zAab_Sun_MemcpyList[] =
382 * Machine/OS name selection pattern
384 #define apzAab_Sun_MemcpyMachs (const char**)NULL
387 * content selection pattern - do fix if pattern found
389 tSCC zAab_Sun_MemcpySelect0[] =
390 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
392 #define AAB_SUN_MEMCPY_TEST_CT 1
393 static tTestDesc aAab_Sun_MemcpyTests[] = {
394 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
397 * Fix Command Arguments for Aab_Sun_Memcpy
399 static const char* apzAab_Sun_MemcpyPatch[] = {
400 "/* This file was generated by fixincludes */\n\
401 #ifndef __memory_h__\n\
402 #define __memory_h__\n\n\
404 extern void *memccpy();\n\
405 extern void *memchr();\n\
406 extern void *memcpy();\n\
407 extern void *memset();\n\
409 extern char *memccpy();\n\
410 extern char *memchr();\n\
411 extern char *memcpy();\n\
412 extern char *memset();\n\
413 #endif /* __STDC__ */\n\n\
414 extern int memcmp();\n\n\
415 #endif /* __memory_h__ */\n\
419 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
420 * stdarg.h or varargs.h files as appropriate.\n\
424 hackname = AAB_svr4_no_varargs;\n\
425 files = sys/varargs.h;\n\
426 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
427 \"#ifndef _SYS_VARARGS_H\\n\"\n\
428 \"#define _SYS_VARARGS_H\\n\\n\"\n\n\
429 \"#ifdef __STDC__\\n\"\n\
430 \"#include <stdarg.h>\\n\"\n\
432 \"#include <varargs.h>\\n\"\n\
433 \"#endif\\n\\n\"\n\n\
434 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
438 * Completely replace <sys/byteorder.h> with a file that implements gcc's\n\
439 * optimized byteswapping. (The original probably implemented some\n\
440 * incompatible optimized byteswapping.)\n\
443 hackname = AAB_svr4_replace_byteorder;\n\
444 mach = \"*-*-sysv4*\";\n\
445 mach = \"i[34567]86-*-sysv5*\";\n\
446 mach = \"i[34567]86-*-sco3.2v5*\";\n\
447 mach = \"i[34567]86-*-udk*\";\n\
448 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
449 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
450 mach = \"sparc-*-solaris2.[0-4]\";\n\
451 mach = \"i[34567]86-sequent-ptx*\";\n\
452 files = sys/byteorder.h;\n\
453 replace = <<- _EndOfHeader_\n\
454 #ifndef _SYS_BYTEORDER_H\n\
455 #define _SYS_BYTEORDER_H\n\n\
456 /* Functions to convert `short' and `long' quantities from host byte order\n\
457 to (internet) network byte order (i.e. big-endian).\n\n\
458 Written by Ron Guilmette (rfg@ncd.com).\n\n\
459 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
460 For big-endian machines these functions are essentially no-ops.\n\n\
461 For little-endian machines, we define the functions using specialized\n\
462 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
463 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
464 #error You lose! This file is only useful with GNU compilers.\n\
466 #ifndef __BYTE_ORDER__\n\
467 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
468 double underscores added at the front and back. */\n\
469 #define __LITTLE_ENDIAN__ 1234\n\
470 #define __BIG_ENDIAN__ 4321\n\
471 #define __PDP_ENDIAN__ 3412\n\
474 static __inline__ unsigned long htonl (unsigned long);\n\
475 static __inline__ unsigned short htons (unsigned int);\n\
476 static __inline__ unsigned long ntohl (unsigned long);\n\
477 static __inline__ unsigned short ntohs (unsigned int);\n\
478 #endif /* defined (__STDC__) */\n\n\
479 #if defined (__i386__)\n\n\
480 #ifndef __BYTE_ORDER__\n\
481 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
483 /* Convert a host long to a network long. */\n\n\
484 /* We must use a new-style function definition, so that this will also\n\
485 be valid for C++. */\n\
486 static __inline__ unsigned long\n\
487 htonl (unsigned long __arg)\n\
489 register unsigned long __result;\n\n\
490 __asm__ (\"xchg%B0 %b0,%h0\n\
492 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
495 /* Convert a host short to a network short. */\n\n\
496 static __inline__ unsigned short\n\
497 htons (unsigned int __arg)\n\
499 register unsigned short __result;\n\n\
500 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
503 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
504 #ifndef __BYTE_ORDER__\n\
505 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
507 /* For other little-endian machines, using C code is just as efficient as\n\
508 using assembly code. */\n\n\
509 /* Convert a host long to a network long. */\n\n\
510 static __inline__ unsigned long\n\
511 htonl (unsigned long __arg)\n\
513 register unsigned long __result;\n\n\
514 __result = (__arg >> 24) & 0x000000ff;\n\
515 __result |= (__arg >> 8) & 0x0000ff00;\n\
516 __result |= (__arg << 8) & 0x00ff0000;\n\
517 __result |= (__arg << 24) & 0xff000000;\n\
520 /* Convert a host short to a network short. */\n\n\
521 static __inline__ unsigned short\n\
522 htons (unsigned int __arg)\n\
524 register unsigned short __result;\n\n\
525 __result = (__arg << 8) & 0xff00;\n\
526 __result |= (__arg >> 8) & 0x00ff;\n\
529 #else /* must be a big-endian machine */\n\n\
530 #ifndef __BYTE_ORDER__\n\
531 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
533 /* Convert a host long to a network long. */\n\n\
534 static __inline__ unsigned long\n\
535 htonl (unsigned long __arg)\n\
539 /* Convert a host short to a network short. */\n\n\
540 static __inline__ unsigned short\n\
541 htons (unsigned int __arg)\n\
545 #endif /* big-endian */\n\n\
546 /* Convert a network long to a host long. */\n\n\
547 static __inline__ unsigned long\n\
548 ntohl (unsigned long __arg)\n\
550 return htonl (__arg);\n\
552 /* Convert a network short to a host short. */\n\n\
553 static __inline__ unsigned short\n\
554 ntohs (unsigned int __arg)\n\
556 return htons (__arg);\n\
561 /* * * * * * * * * * * * * * * * * * * * * * * * * *
563 * Description of Aab_Ultrix_Ansi_Compat fix
565 tSCC zAab_Ultrix_Ansi_CompatName[] =
566 "AAB_ultrix_ansi_compat";
569 * File name selection pattern
571 tSCC zAab_Ultrix_Ansi_CompatList[] =
574 * Machine/OS name selection pattern
576 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
579 * content selection pattern - do fix if pattern found
581 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
584 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
585 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
586 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
589 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
591 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
592 "/* This file intentionally left blank. */\n",
595 /* * * * * * * * * * * * * * * * * * * * * * * * * *
597 * Description of Aab_Ultrix_Limits fix
599 tSCC zAab_Ultrix_LimitsName[] =
603 * File name selection pattern
605 tSCC zAab_Ultrix_LimitsList[] =
608 * Machine/OS name selection pattern
610 tSCC* apzAab_Ultrix_LimitsMachs[] = {
613 #define AAB_ULTRIX_LIMITS_TEST_CT 0
614 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
617 * Fix Command Arguments for Aab_Ultrix_Limits
619 static const char* apzAab_Ultrix_LimitsPatch[] = {
620 "#ifndef _LIMITS_INCLUDED\n\
621 #define _LIMITS_INCLUDED\n\
622 #include <sys/limits.h>\n\
623 #endif /* _LIMITS_INCLUDED */",
626 /* * * * * * * * * * * * * * * * * * * * * * * * * *
628 * Description of Aab_Ultrix_Memory fix
630 tSCC zAab_Ultrix_MemoryName[] =
634 * File name selection pattern
636 tSCC zAab_Ultrix_MemoryList[] =
639 * Machine/OS name selection pattern
641 tSCC* apzAab_Ultrix_MemoryMachs[] = {
644 #define AAB_ULTRIX_MEMORY_TEST_CT 0
645 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
648 * Fix Command Arguments for Aab_Ultrix_Memory
650 static const char* apzAab_Ultrix_MemoryPatch[] = {
651 "#ifndef _MEMORY_INCLUDED\n\
652 #define _MEMORY_INCLUDED\n\
653 #include <strings.h>\n\
654 #endif /* _MEMORY_INCLUDED */",
657 /* * * * * * * * * * * * * * * * * * * * * * * * * *
659 * Description of Aab_Ultrix_String fix
661 tSCC zAab_Ultrix_StringName[] =
665 * File name selection pattern
667 tSCC zAab_Ultrix_StringList[] =
670 * Machine/OS name selection pattern
672 tSCC* apzAab_Ultrix_StringMachs[] = {
675 #define AAB_ULTRIX_STRING_TEST_CT 0
676 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
679 * Fix Command Arguments for Aab_Ultrix_String
681 static const char* apzAab_Ultrix_StringPatch[] = {
682 "#ifndef _STRING_INCLUDED\n\
683 #define _STRING_INCLUDED\n\
684 #include <strings.h>\n\
685 #endif /* _STRING_INCLUDED */",
688 /* * * * * * * * * * * * * * * * * * * * * * * * * *
690 * Description of Aix_Pthread fix
692 tSCC zAix_PthreadName[] =
696 * File name selection pattern
698 tSCC zAix_PthreadList[] =
701 * Machine/OS name selection pattern
703 #define apzAix_PthreadMachs (const char**)NULL
706 * content selection pattern - do fix if pattern found
708 tSCC zAix_PthreadSelect0[] =
709 "(#define [A-Za-z_0-9]+)(\\\\\n\
713 #define AIX_PTHREAD_TEST_CT 1
714 static tTestDesc aAix_PthreadTests[] = {
715 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
718 * Fix Command Arguments for Aix_Pthread
720 static const char* apzAix_PthreadPatch[] = {
725 /* * * * * * * * * * * * * * * * * * * * * * * * * *
727 * Description of Aix_Sysmachine fix
729 tSCC zAix_SysmachineName[] =
733 * File name selection pattern
735 tSCC zAix_SysmachineList[] =
738 * Machine/OS name selection pattern
740 #define apzAix_SysmachineMachs (const char**)NULL
743 * content selection pattern - do fix if pattern found
745 tSCC zAix_SysmachineSelect0[] =
748 #define AIX_SYSMACHINE_TEST_CT 1
749 static tTestDesc aAix_SysmachineTests[] = {
750 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
753 * Fix Command Arguments for Aix_Sysmachine
755 static const char* apzAix_SysmachinePatch[] = {
760 /* * * * * * * * * * * * * * * * * * * * * * * * * *
762 * Description of Aix_Syswait fix
764 tSCC zAix_SyswaitName[] =
768 * File name selection pattern
770 tSCC zAix_SyswaitList[] =
773 * Machine/OS name selection pattern
775 #define apzAix_SyswaitMachs (const char**)NULL
778 * content selection pattern - do fix if pattern found
780 tSCC zAix_SyswaitSelect0[] =
781 "^extern pid_t wait3\\(\\);\n";
782 tSCC zAix_SyswaitSelect1[] =
785 #define AIX_SYSWAIT_TEST_CT 2
786 static tTestDesc aAix_SyswaitTests[] = {
787 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
788 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
791 * Fix Command Arguments for Aix_Syswait
793 static const char* apzAix_SyswaitPatch[] = {
799 /* * * * * * * * * * * * * * * * * * * * * * * * * *
801 * Description of Aix_Syswait_2 fix
803 tSCC zAix_Syswait_2Name[] =
807 * File name selection pattern
809 tSCC zAix_Syswait_2List[] =
812 * Machine/OS name selection pattern
814 #define apzAix_Syswait_2Machs (const char**)NULL
817 * content selection pattern - do fix if pattern found
819 tSCC zAix_Syswait_2Select0[] =
820 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
822 #define AIX_SYSWAIT_2_TEST_CT 1
823 static tTestDesc aAix_Syswait_2Tests[] = {
824 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
827 * Fix Command Arguments for Aix_Syswait_2
829 static const char* apzAix_Syswait_2Patch[] = {
834 /* * * * * * * * * * * * * * * * * * * * * * * * * *
836 * Description of Aix_Volatile fix
838 tSCC zAix_VolatileName[] =
842 * File name selection pattern
844 tSCC zAix_VolatileList[] =
847 * Machine/OS name selection pattern
849 #define apzAix_VolatileMachs (const char**)NULL
852 * content selection pattern - do fix if pattern found
854 tSCC zAix_VolatileSelect0[] =
855 "typedef volatile int sig_atomic_t";
857 #define AIX_VOLATILE_TEST_CT 1
858 static tTestDesc aAix_VolatileTests[] = {
859 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
862 * Fix Command Arguments for Aix_Volatile
864 static const char* apzAix_VolatilePatch[] = {
866 "typedef int sig_atomic_t",
869 /* * * * * * * * * * * * * * * * * * * * * * * * * *
871 * Description of Alpha___Assert fix
873 tSCC zAlpha___AssertName[] =
877 * File name selection pattern
879 tSCC zAlpha___AssertList[] =
882 * Machine/OS name selection pattern
884 #define apzAlpha___AssertMachs (const char**)NULL
887 * content selection pattern - do fix if pattern found
889 tSCC zAlpha___AssertSelect0[] =
890 "__assert\\(char \\*, char \\*, int\\)";
892 #define ALPHA___ASSERT_TEST_CT 1
893 static tTestDesc aAlpha___AssertTests[] = {
894 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
897 * Fix Command Arguments for Alpha___Assert
899 static const char* apzAlpha___AssertPatch[] = {
901 "__assert(const char *, const char *, int)",
904 /* * * * * * * * * * * * * * * * * * * * * * * * * *
906 * Description of Alpha___Extern_Prefix fix
908 tSCC zAlpha___Extern_PrefixName[] =
909 "alpha___extern_prefix";
912 * File name selection pattern
914 #define zAlpha___Extern_PrefixList (char*)NULL
916 * Machine/OS name selection pattern
918 tSCC* apzAlpha___Extern_PrefixMachs[] = {
923 * content selection pattern - do fix if pattern found
925 tSCC zAlpha___Extern_PrefixSelect0[] =
926 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
927 (#[ \t]*pragma[ \t]*extern_prefix.*)";
929 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
930 static tTestDesc aAlpha___Extern_PrefixTests[] = {
931 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
934 * Fix Command Arguments for Alpha___Extern_Prefix
936 static const char* apzAlpha___Extern_PrefixPatch[] = {
938 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
942 /* * * * * * * * * * * * * * * * * * * * * * * * * *
944 * Description of Alpha___Extern_Prefix_Standards fix
946 tSCC zAlpha___Extern_Prefix_StandardsName[] =
947 "alpha___extern_prefix_standards";
950 * File name selection pattern
952 tSCC zAlpha___Extern_Prefix_StandardsList[] =
955 * Machine/OS name selection pattern
957 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
962 * content selection pattern - do fix if pattern found
964 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
965 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
967 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
968 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
969 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
972 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
974 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
976 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
981 * Description of Alpha___Extern_Prefix_Sys_Stat fix
983 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
984 "alpha___extern_prefix_sys_stat";
987 * File name selection pattern
989 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
990 "|sys/stat.h|sys/mount.h|";
992 * Machine/OS name selection pattern
994 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
999 * content selection pattern - do fix if pattern found
1001 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1002 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1004 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
1005 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1006 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1009 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1011 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1013 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1016 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1018 * Description of Alpha_Assert fix
1020 tSCC zAlpha_AssertName[] =
1024 * File name selection pattern
1026 tSCC zAlpha_AssertList[] =
1029 * Machine/OS name selection pattern
1031 #define apzAlpha_AssertMachs (const char**)NULL
1034 * content selection pattern - do fix if pattern found
1036 tSCC zAlpha_AssertSelect0[] =
1037 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1039 #define ALPHA_ASSERT_TEST_CT 1
1040 static tTestDesc aAlpha_AssertTests[] = {
1041 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1044 * Fix Command Arguments for Alpha_Assert
1046 static const char* apzAlpha_AssertPatch[] = {
1051 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1053 * Description of Alpha_Bad_Lval fix
1055 tSCC zAlpha_Bad_LvalName[] =
1059 * File name selection pattern
1061 #define zAlpha_Bad_LvalList (char*)NULL
1063 * Machine/OS name selection pattern
1065 tSCC* apzAlpha_Bad_LvalMachs[] = {
1067 (const char*)NULL };
1070 * content selection pattern - do fix if pattern found
1072 tSCC zAlpha_Bad_LvalSelect0[] =
1073 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1075 #define ALPHA_BAD_LVAL_TEST_CT 1
1076 static tTestDesc aAlpha_Bad_LvalTests[] = {
1077 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1080 * Fix Command Arguments for Alpha_Bad_Lval
1082 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
1083 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1088 * Description of Alpha_Getopt fix
1090 tSCC zAlpha_GetoptName[] =
1094 * File name selection pattern
1096 tSCC zAlpha_GetoptList[] =
1097 "|stdio.h|stdlib.h|";
1099 * Machine/OS name selection pattern
1101 #define apzAlpha_GetoptMachs (const char**)NULL
1104 * content selection pattern - do fix if pattern found
1106 tSCC zAlpha_GetoptSelect0[] =
1107 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1109 #define ALPHA_GETOPT_TEST_CT 1
1110 static tTestDesc aAlpha_GetoptTests[] = {
1111 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1114 * Fix Command Arguments for Alpha_Getopt
1116 static const char* apzAlpha_GetoptPatch[] = {
1118 "getopt(int, char *const[], const char *)",
1121 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1123 * Description of Alpha_Parens fix
1125 tSCC zAlpha_ParensName[] =
1129 * File name selection pattern
1131 tSCC zAlpha_ParensList[] =
1134 * Machine/OS name selection pattern
1136 #define apzAlpha_ParensMachs (const char**)NULL
1139 * content selection pattern - do fix if pattern found
1141 tSCC zAlpha_ParensSelect0[] =
1142 "#ifndef\\(__mips64\\)";
1144 #define ALPHA_PARENS_TEST_CT 1
1145 static tTestDesc aAlpha_ParensTests[] = {
1146 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1149 * Fix Command Arguments for Alpha_Parens
1151 static const char* apzAlpha_ParensPatch[] = {
1156 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1158 * Description of Alpha_Pthread fix
1160 tSCC zAlpha_PthreadName[] =
1164 * File name selection pattern
1166 tSCC zAlpha_PthreadList[] =
1169 * Machine/OS name selection pattern
1171 tSCC* apzAlpha_PthreadMachs[] = {
1173 (const char*)NULL };
1176 * content selection pattern - do fix if pattern found
1178 tSCC zAlpha_PthreadSelect0[] =
1179 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1180 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1182 #define ALPHA_PTHREAD_TEST_CT 1
1183 static tTestDesc aAlpha_PthreadTests[] = {
1184 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1187 * Fix Command Arguments for Alpha_Pthread
1189 static const char* apzAlpha_PthreadPatch[] = {
1191 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1197 * Description of Alpha_Pthread_Gcc fix
1199 tSCC zAlpha_Pthread_GccName[] =
1200 "alpha_pthread_gcc";
1203 * File name selection pattern
1205 tSCC zAlpha_Pthread_GccList[] =
1208 * Machine/OS name selection pattern
1210 tSCC* apzAlpha_Pthread_GccMachs[] = {
1212 (const char*)NULL };
1215 * content selection pattern - do fix if pattern found
1217 tSCC zAlpha_Pthread_GccSelect0[] =
1219 # error <pthread.h>: unrecognized compiler.";
1221 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1222 static tTestDesc aAlpha_Pthread_GccTests[] = {
1223 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1226 * Fix Command Arguments for Alpha_Pthread_Gcc
1228 static const char* apzAlpha_Pthread_GccPatch[] = {
1230 "#elif defined (__GNUC__)\n\
1231 # define _PTHREAD_ENV_GCC\n\
1235 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1237 * Description of Alpha_Pthread_Init fix
1239 tSCC zAlpha_Pthread_InitName[] =
1240 "alpha_pthread_init";
1243 * File name selection pattern
1245 tSCC zAlpha_Pthread_InitList[] =
1248 * Machine/OS name selection pattern
1250 tSCC* apzAlpha_Pthread_InitMachs[] = {
1252 (const char*)NULL };
1255 * content selection pattern - do fix if pattern found
1257 tSCC zAlpha_Pthread_InitSelect0[] =
1258 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1260 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1261 static tTestDesc aAlpha_Pthread_InitTests[] = {
1262 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1265 * Fix Command Arguments for Alpha_Pthread_Init
1267 static const char* apzAlpha_Pthread_InitPatch[] = { "sed",
1268 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1269 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1270 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1271 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1272 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1273 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1276 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1278 * Description of Alpha_Sbrk fix
1280 tSCC zAlpha_SbrkName[] =
1284 * File name selection pattern
1286 tSCC zAlpha_SbrkList[] =
1289 * Machine/OS name selection pattern
1291 #define apzAlpha_SbrkMachs (const char**)NULL
1294 * content selection pattern - do fix if pattern found
1296 tSCC zAlpha_SbrkSelect0[] =
1297 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1299 #define ALPHA_SBRK_TEST_CT 1
1300 static tTestDesc aAlpha_SbrkTests[] = {
1301 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1304 * Fix Command Arguments for Alpha_Sbrk
1306 static const char* apzAlpha_SbrkPatch[] = {
1311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1313 * Description of Alpha_Wchar fix
1315 tSCC zAlpha_WcharName[] =
1319 * File name selection pattern
1321 tSCC zAlpha_WcharList[] =
1324 * Machine/OS name selection pattern
1326 tSCC* apzAlpha_WcharMachs[] = {
1328 (const char*)NULL };
1331 * content selection pattern - do fix if pattern found
1333 tSCC zAlpha_WcharSelect0[] =
1334 "#define wcstok wcstok_r";
1336 #define ALPHA_WCHAR_TEST_CT 1
1337 static tTestDesc aAlpha_WcharTests[] = {
1338 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1341 * Fix Command Arguments for Alpha_Wchar
1343 static const char* apzAlpha_WcharPatch[] = { "sed",
1344 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1345 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1350 * Description of Avoid_Bool_Define fix
1352 tSCC zAvoid_Bool_DefineName[] =
1353 "avoid_bool_define";
1356 * File name selection pattern
1358 tSCC zAvoid_Bool_DefineList[] =
1359 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1361 * Machine/OS name selection pattern
1363 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1366 * content selection pattern - do fix if pattern found
1368 tSCC zAvoid_Bool_DefineSelect0[] =
1369 "#[ \t]*define[ \t]+bool[ \t]";
1372 * content bypass pattern - skip fix if pattern found
1374 tSCC zAvoid_Bool_DefineBypass0[] =
1377 #define AVOID_BOOL_DEFINE_TEST_CT 2
1378 static tTestDesc aAvoid_Bool_DefineTests[] = {
1379 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1380 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1383 * Fix Command Arguments for Avoid_Bool_Define
1385 static const char* apzAvoid_Bool_DefinePatch[] = {
1387 "#ifndef __cplusplus\n\
1390 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1393 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1395 * Description of Avoid_Bool_Type fix
1397 tSCC zAvoid_Bool_TypeName[] =
1401 * File name selection pattern
1403 tSCC zAvoid_Bool_TypeList[] =
1404 "|curses.h|curses_colr/curses.h|term.h|tinfo.h|";
1406 * Machine/OS name selection pattern
1408 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1411 * content selection pattern - do fix if pattern found
1413 tSCC zAvoid_Bool_TypeSelect0[] =
1414 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1417 * content bypass pattern - skip fix if pattern found
1419 tSCC zAvoid_Bool_TypeBypass0[] =
1422 #define AVOID_BOOL_TYPE_TEST_CT 2
1423 static tTestDesc aAvoid_Bool_TypeTests[] = {
1424 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1425 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1428 * Fix Command Arguments for Avoid_Bool_Type
1430 static const char* apzAvoid_Bool_TypePatch[] = {
1432 "#ifndef __cplusplus\n\
1437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1439 * Description of Avoid_Wchar_T_Type fix
1441 tSCC zAvoid_Wchar_T_TypeName[] =
1442 "avoid_wchar_t_type";
1445 * File name selection pattern
1447 #define zAvoid_Wchar_T_TypeList (char*)NULL
1449 * Machine/OS name selection pattern
1451 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1454 * content selection pattern - do fix if pattern found
1456 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1457 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1460 * content bypass pattern - skip fix if pattern found
1462 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1464 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1466 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1467 "XFree86: xc/lib/X11/Xlib\\.h";
1469 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1470 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1471 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1472 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1473 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1474 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1477 * Fix Command Arguments for Avoid_Wchar_T_Type
1479 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1481 "#ifndef __cplusplus\n\
1486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1488 * Description of Bad_Struct_Term fix
1490 tSCC zBad_Struct_TermName[] =
1494 * File name selection pattern
1496 tSCC zBad_Struct_TermList[] =
1499 * Machine/OS name selection pattern
1501 #define apzBad_Struct_TermMachs (const char**)NULL
1504 * content selection pattern - do fix if pattern found
1506 tSCC zBad_Struct_TermSelect0[] =
1507 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1509 #define BAD_STRUCT_TERM_TEST_CT 1
1510 static tTestDesc aBad_Struct_TermTests[] = {
1511 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1514 * Fix Command Arguments for Bad_Struct_Term
1516 static const char* apzBad_Struct_TermPatch[] = {
1521 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1523 * Description of Badquote fix
1525 tSCC zBadquoteName[] =
1529 * File name selection pattern
1531 tSCC zBadquoteList[] =
1532 "|sundev/vuid_event.h|";
1534 * Machine/OS name selection pattern
1536 #define apzBadquoteMachs (const char**)NULL
1539 * content selection pattern - do fix if pattern found
1541 tSCC zBadquoteSelect0[] =
1544 #define BADQUOTE_TEST_CT 1
1545 static tTestDesc aBadquoteTests[] = {
1546 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1549 * Fix Command Arguments for Badquote
1551 static const char* apzBadquotePatch[] = {
1556 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1558 * Description of Broken_Assert_Stdio fix
1560 tSCC zBroken_Assert_StdioName[] =
1561 "broken_assert_stdio";
1564 * File name selection pattern
1566 tSCC zBroken_Assert_StdioList[] =
1569 * Machine/OS name selection pattern
1571 #define apzBroken_Assert_StdioMachs (const char**)NULL
1574 * content selection pattern - do fix if pattern found
1576 tSCC zBroken_Assert_StdioSelect0[] =
1580 * content bypass pattern - skip fix if pattern found
1582 tSCC zBroken_Assert_StdioBypass0[] =
1583 "include.*stdio\\.h";
1585 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1586 static tTestDesc aBroken_Assert_StdioTests[] = {
1587 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1588 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1591 * Fix Command Arguments for Broken_Assert_Stdio
1593 static const char* apzBroken_Assert_StdioPatch[] = {
1595 "#include <stdio.h>\n",
1598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1600 * Description of Broken_Assert_Stdlib fix
1602 tSCC zBroken_Assert_StdlibName[] =
1603 "broken_assert_stdlib";
1606 * File name selection pattern
1608 tSCC zBroken_Assert_StdlibList[] =
1611 * Machine/OS name selection pattern
1613 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1616 * content selection pattern - do fix if pattern found
1618 tSCC zBroken_Assert_StdlibSelect0[] =
1619 "exit *\\(|abort *\\(";
1622 * content bypass pattern - skip fix if pattern found
1624 tSCC zBroken_Assert_StdlibBypass0[] =
1625 "include.*stdlib\\.h";
1627 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1628 static tTestDesc aBroken_Assert_StdlibTests[] = {
1629 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1630 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1633 * Fix Command Arguments for Broken_Assert_Stdlib
1635 static const char* apzBroken_Assert_StdlibPatch[] = {
1637 "#ifdef __cplusplus\n\
1638 #include <stdlib.h>\n\
1642 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1644 * Description of Broken_Cabs fix
1646 tSCC zBroken_CabsName[] =
1650 * File name selection pattern
1652 tSCC zBroken_CabsList[] =
1653 "|math.h|architecture/ppc/math.h|architecture/i386/math.h|";
1655 * Machine/OS name selection pattern
1657 #define apzBroken_CabsMachs (const char**)NULL
1660 * content selection pattern - do fix if pattern found
1662 tSCC zBroken_CabsSelect0[] =
1663 "^extern[ \t]+double[ \t]+cabs";
1665 #define BROKEN_CABS_TEST_CT 1
1666 static tTestDesc aBroken_CabsTests[] = {
1667 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1670 * Fix Command Arguments for Broken_Cabs
1672 static const char* apzBroken_CabsPatch[] = {
1675 "^extern[ \t]+double[ \t]+cabs[ \t]*\\([^\\)]*\\);",
1678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1680 * Description of Bsd_Stdio_Attrs_Conflict fix
1682 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1683 "bsd_stdio_attrs_conflict";
1686 * File name selection pattern
1688 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1691 * Machine/OS name selection pattern
1693 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1696 (const char*)NULL };
1699 * content selection pattern - do fix if pattern found
1701 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1702 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1704 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1705 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1706 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1709 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1711 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1713 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1714 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1715 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1718 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1720 * Description of Ctrl_Quotes_Def fix
1722 tSCC zCtrl_Quotes_DefName[] =
1726 * File name selection pattern
1728 #define zCtrl_Quotes_DefList (char*)NULL
1730 * Machine/OS name selection pattern
1732 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1735 * content selection pattern - do fix if pattern found
1737 tSCC zCtrl_Quotes_DefSelect0[] =
1738 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1740 #define CTRL_QUOTES_DEF_TEST_CT 1
1741 static tTestDesc aCtrl_Quotes_DefTests[] = {
1742 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1745 * Fix Command Arguments for Ctrl_Quotes_Def
1747 static const char* apzCtrl_Quotes_DefPatch[] = {
1752 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1754 * Description of Ctrl_Quotes_Use fix
1756 tSCC zCtrl_Quotes_UseName[] =
1760 * File name selection pattern
1762 #define zCtrl_Quotes_UseList (char*)NULL
1764 * Machine/OS name selection pattern
1766 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1769 * content selection pattern - do fix if pattern found
1771 tSCC zCtrl_Quotes_UseSelect0[] =
1772 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1774 #define CTRL_QUOTES_USE_TEST_CT 1
1775 static tTestDesc aCtrl_Quotes_UseTests[] = {
1776 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1779 * Fix Command Arguments for Ctrl_Quotes_Use
1781 static const char* apzCtrl_Quotes_UsePatch[] = {
1786 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1788 * Description of Cxx_Unready fix
1790 tSCC zCxx_UnreadyName[] =
1794 * File name selection pattern
1796 tSCC zCxx_UnreadyList[] =
1797 "|sys/mman.h|rpc/types.h|";
1799 * Machine/OS name selection pattern
1801 #define apzCxx_UnreadyMachs (const char**)NULL
1804 * content selection pattern - do fix if pattern found
1806 tSCC zCxx_UnreadySelect0[] =
1810 * content bypass pattern - skip fix if pattern found
1812 tSCC zCxx_UnreadyBypass0[] =
1813 "\"C\"|__BEGIN_DECLS";
1815 #define CXX_UNREADY_TEST_CT 2
1816 static tTestDesc aCxx_UnreadyTests[] = {
1817 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1818 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1821 * Fix Command Arguments for Cxx_Unready
1823 static const char* apzCxx_UnreadyPatch[] = {
1825 "#ifdef __cplusplus\n\
1828 "#ifdef __cplusplus\n\
1833 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1835 * Description of Darwin_Gcc4_Breakage fix
1837 tSCC zDarwin_Gcc4_BreakageName[] =
1838 "darwin_gcc4_breakage";
1841 * File name selection pattern
1843 tSCC zDarwin_Gcc4_BreakageList[] =
1844 "|AvailabilityMacros.h|";
1846 * Machine/OS name selection pattern
1848 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1850 (const char*)NULL };
1853 * content selection pattern - do fix if pattern found
1855 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1856 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1858 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1859 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1860 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1863 * Fix Command Arguments for Darwin_Gcc4_Breakage
1865 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1867 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1870 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1872 * Description of Darwin_Private_Extern fix
1874 tSCC zDarwin_Private_ExternName[] =
1875 "darwin_private_extern";
1878 * File name selection pattern
1880 tSCC zDarwin_Private_ExternList[] =
1883 * Machine/OS name selection pattern
1885 tSCC* apzDarwin_Private_ExternMachs[] = {
1887 (const char*)NULL };
1890 * content selection pattern - do fix if pattern found
1892 tSCC zDarwin_Private_ExternSelect0[] =
1893 "__private_extern__ [a-z_]+ _dyld_";
1895 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1896 static tTestDesc aDarwin_Private_ExternTests[] = {
1897 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1900 * Fix Command Arguments for Darwin_Private_Extern
1902 static const char* apzDarwin_Private_ExternPatch[] = {
1905 "__private_extern__",
1908 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1910 * Description of Dec_Intern_Asm fix
1912 tSCC zDec_Intern_AsmName[] =
1916 * File name selection pattern
1918 tSCC zDec_Intern_AsmList[] =
1921 * Machine/OS name selection pattern
1923 #define apzDec_Intern_AsmMachs (const char**)NULL
1924 #define DEC_INTERN_ASM_TEST_CT 0
1925 #define aDec_Intern_AsmTests (tTestDesc*)NULL
1928 * Fix Command Arguments for Dec_Intern_Asm
1930 static const char* apzDec_Intern_AsmPatch[] = { "sed",
1931 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
1933 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
1937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1939 * Description of Djgpp_Wchar_H fix
1941 tSCC zDjgpp_Wchar_HName[] =
1945 * File name selection pattern
1947 #define zDjgpp_Wchar_HList (char*)NULL
1949 * Machine/OS name selection pattern
1951 #define apzDjgpp_Wchar_HMachs (const char**)NULL
1954 * content selection pattern - do fix if pattern found
1956 tSCC zDjgpp_Wchar_HSelect0[] =
1960 * content bypass pattern - skip fix if pattern found
1962 tSCC zDjgpp_Wchar_HBypass0[] =
1965 #define DJGPP_WCHAR_H_TEST_CT 2
1966 static tTestDesc aDjgpp_Wchar_HTests[] = {
1967 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
1968 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
1971 * Fix Command Arguments for Djgpp_Wchar_H
1973 static const char* apzDjgpp_Wchar_HPatch[] = {
1976 #include <sys/djtypes.h>",
1977 "#include <stddef.h>",
1980 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1982 * Description of Ecd_Cursor fix
1984 tSCC zEcd_CursorName[] =
1988 * File name selection pattern
1990 tSCC zEcd_CursorList[] =
1991 "|sunwindow/win_lock.h|sunwindow/win_cursor.h|";
1993 * Machine/OS name selection pattern
1995 #define apzEcd_CursorMachs (const char**)NULL
1998 * content selection pattern - do fix if pattern found
2000 tSCC zEcd_CursorSelect0[] =
2003 #define ECD_CURSOR_TEST_CT 1
2004 static tTestDesc aEcd_CursorTests[] = {
2005 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2008 * Fix Command Arguments for Ecd_Cursor
2010 static const char* apzEcd_CursorPatch[] = {
2015 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2017 * Description of Exception_Structure fix
2019 tSCC zException_StructureName[] =
2020 "exception_structure";
2023 * File name selection pattern
2025 tSCC zException_StructureList[] =
2028 * Machine/OS name selection pattern
2030 #define apzException_StructureMachs (const char**)NULL
2033 * content selection pattern - do fix if pattern found
2035 tSCC zException_StructureSelect0[] =
2039 * content bypass pattern - skip fix if pattern found
2041 tSCC zException_StructureBypass0[] =
2042 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
2044 #define EXCEPTION_STRUCTURE_TEST_CT 2
2045 static tTestDesc aException_StructureTests[] = {
2046 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
2047 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
2050 * Fix Command Arguments for Exception_Structure
2052 static const char* apzException_StructurePatch[] = {
2054 "struct exception;\n",
2057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2059 * Description of Freebsd_Gcc3_Breakage fix
2061 tSCC zFreebsd_Gcc3_BreakageName[] =
2062 "freebsd_gcc3_breakage";
2065 * File name selection pattern
2067 tSCC zFreebsd_Gcc3_BreakageList[] =
2070 * Machine/OS name selection pattern
2072 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2074 (const char*)NULL };
2077 * content selection pattern - do fix if pattern found
2079 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2080 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2083 * content bypass pattern - skip fix if pattern found
2085 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2086 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2088 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2089 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2090 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2091 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2094 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2096 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2098 "%0 || __GNUC__ >= 3",
2101 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2103 * Description of Freebsd_Gcc4_Breakage fix
2105 tSCC zFreebsd_Gcc4_BreakageName[] =
2106 "freebsd_gcc4_breakage";
2109 * File name selection pattern
2111 tSCC zFreebsd_Gcc4_BreakageList[] =
2114 * Machine/OS name selection pattern
2116 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2118 (const char*)NULL };
2121 * content selection pattern - do fix if pattern found
2123 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2124 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2126 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2127 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2128 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2131 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2133 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2135 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2138 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2140 * Description of Glibc_Mutex_Init fix
2142 tSCC zGlibc_Mutex_InitName[] =
2146 * File name selection pattern
2148 tSCC zGlibc_Mutex_InitList[] =
2151 * Machine/OS name selection pattern
2153 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2156 * content selection pattern - do fix if pattern found
2158 tSCC zGlibc_Mutex_InitSelect0[] =
2159 "\\{ *\\{ *0, *\\} *\\}";
2161 #define GLIBC_MUTEX_INIT_TEST_CT 1
2162 static tTestDesc aGlibc_Mutex_InitTests[] = {
2163 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2166 * Fix Command Arguments for Glibc_Mutex_Init
2168 static const char* apzGlibc_Mutex_InitPatch[] = { "sed",
2169 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/,+1s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/",
2170 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2171 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2172 "-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/",
2173 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2174 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2177 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2179 * Description of Gnu_Types fix
2181 tSCC zGnu_TypesName[] =
2185 * File name selection pattern
2187 tSCC zGnu_TypesList[] =
2188 "|sys/types.h|stdlib.h|sys/stdtypes.h|stddef.h|memory.h|unistd.h|";
2190 * Machine/OS name selection pattern
2192 tSCC* apzGnu_TypesMachs[] = {
2193 "*-*-solaris2.1[0-9]*",
2194 (const char*)NULL };
2197 * content selection pattern - do fix if pattern found
2199 tSCC zGnu_TypesSelect0[] =
2200 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2203 * content bypass pattern - skip fix if pattern found
2205 tSCC zGnu_TypesBypass0[] =
2206 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2208 #define GNU_TYPES_TEST_CT 2
2209 static tTestDesc aGnu_TypesTests[] = {
2210 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2211 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2214 * Fix Command Arguments for Gnu_Types
2216 static const char* apzGnu_TypesPatch[] = {
2220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2222 * Description of Hp_Inline fix
2224 tSCC zHp_InlineName[] =
2228 * File name selection pattern
2230 tSCC zHp_InlineList[] =
2231 "|sys/spinlock.h|machine/machparam.h|";
2233 * Machine/OS name selection pattern
2235 #define apzHp_InlineMachs (const char**)NULL
2238 * content selection pattern - do fix if pattern found
2240 tSCC zHp_InlineSelect0[] =
2241 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2243 #define HP_INLINE_TEST_CT 1
2244 static tTestDesc aHp_InlineTests[] = {
2245 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2248 * Fix Command Arguments for Hp_Inline
2250 static const char* apzHp_InlinePatch[] = {
2253 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2256 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2258 * Description of Hp_Sysfile fix
2260 tSCC zHp_SysfileName[] =
2264 * File name selection pattern
2266 tSCC zHp_SysfileList[] =
2269 * Machine/OS name selection pattern
2271 #define apzHp_SysfileMachs (const char**)NULL
2274 * content selection pattern - do fix if pattern found
2276 tSCC zHp_SysfileSelect0[] =
2279 #define HP_SYSFILE_TEST_CT 1
2280 static tTestDesc aHp_SysfileTests[] = {
2281 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2284 * Fix Command Arguments for Hp_Sysfile
2286 static const char* apzHp_SysfilePatch[] = {
2288 "(struct file *, ...)",
2292 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2294 * Description of Hpux10_Cpp_Pow_Inline fix
2296 tSCC zHpux10_Cpp_Pow_InlineName[] =
2297 "hpux10_cpp_pow_inline";
2300 * File name selection pattern
2302 tSCC zHpux10_Cpp_Pow_InlineList[] =
2303 "|fixinc-test-limits.h|math.h|";
2305 * Machine/OS name selection pattern
2307 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2310 * content selection pattern - do fix if pattern found
2312 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2313 "^# +ifdef +__cplusplus\n\
2315 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2316 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2318 +extern +\"C\" +\\{\n\
2322 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2323 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2324 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2327 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2329 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2336 * Description of Hpux11_Cpp_Pow_Inline fix
2338 tSCC zHpux11_Cpp_Pow_InlineName[] =
2339 "hpux11_cpp_pow_inline";
2342 * File name selection pattern
2344 tSCC zHpux11_Cpp_Pow_InlineList[] =
2347 * Machine/OS name selection pattern
2349 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2352 * content selection pattern - do fix if pattern found
2354 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2355 " +inline double pow\\(double d,int expon\\) \\{\n\
2356 +return pow\\(d, \\(double\\)expon\\);\n\
2359 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2360 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2361 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2364 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2366 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2373 * Description of Hpux10_Ctype_Declarations1 fix
2375 tSCC zHpux10_Ctype_Declarations1Name[] =
2376 "hpux10_ctype_declarations1";
2379 * File name selection pattern
2381 tSCC zHpux10_Ctype_Declarations1List[] =
2384 * Machine/OS name selection pattern
2386 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2389 * content selection pattern - do fix if pattern found
2391 tSCC zHpux10_Ctype_Declarations1Select0[] =
2392 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2395 * content bypass pattern - skip fix if pattern found
2397 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2398 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2400 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2401 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2402 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2403 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2406 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2408 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2410 "#ifdef _PROTOTYPES\n\
2411 extern int __tolower(int);\n\
2412 extern int __toupper(int);\n\
2413 #else /* NOT _PROTOTYPES */\n\
2414 extern int __tolower();\n\
2415 extern int __toupper();\n\
2416 #endif /* _PROTOTYPES */\n\n\
2420 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2422 * Description of Hpux10_Ctype_Declarations2 fix
2424 tSCC zHpux10_Ctype_Declarations2Name[] =
2425 "hpux10_ctype_declarations2";
2428 * File name selection pattern
2430 tSCC zHpux10_Ctype_Declarations2List[] =
2433 * Machine/OS name selection pattern
2435 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2438 * content selection pattern - do fix if pattern found
2440 tSCC zHpux10_Ctype_Declarations2Select0[] =
2441 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2444 * content bypass pattern - skip fix if pattern found
2446 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2447 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2449 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2450 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2451 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2452 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2455 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2457 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2460 #ifdef _PROTOTYPES\n\
2461 extern int _isalnum(int);\n\
2462 extern int _isalpha(int);\n\
2463 extern int _iscntrl(int);\n\
2464 extern int _isdigit(int);\n\
2465 extern int _isgraph(int);\n\
2466 extern int _islower(int);\n\
2467 extern int _isprint(int);\n\
2468 extern int _ispunct(int);\n\
2469 extern int _isspace(int);\n\
2470 extern int _isupper(int);\n\
2471 extern int _isxdigit(int);\n\
2472 # else /* not _PROTOTYPES */\n\
2473 extern int _isalnum();\n\
2474 extern int _isalpha();\n\
2475 extern int _iscntrl();\n\
2476 extern int _isdigit();\n\
2477 extern int _isgraph();\n\
2478 extern int _islower();\n\
2479 extern int _isprint();\n\
2480 extern int _ispunct();\n\
2481 extern int _isspace();\n\
2482 extern int _isupper();\n\
2483 extern int _isxdigit();\n\
2484 #endif /* _PROTOTYPES */\n",
2487 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2489 * Description of Hpux10_Stdio_Declarations fix
2491 tSCC zHpux10_Stdio_DeclarationsName[] =
2492 "hpux10_stdio_declarations";
2495 * File name selection pattern
2497 tSCC zHpux10_Stdio_DeclarationsList[] =
2500 * Machine/OS name selection pattern
2502 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2505 * content selection pattern - do fix if pattern found
2507 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2508 "^#[ \t]*define _iob[ \t]*__iob";
2511 * content bypass pattern - skip fix if pattern found
2513 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2514 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2516 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2517 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2518 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2519 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2522 * Fix Command Arguments for Hpux10_Stdio_Declarations
2524 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2527 # if defined(__STDC__) || defined(__cplusplus)\n\
2528 extern int snprintf(char *, size_t, const char *, ...);\n\
2529 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2530 # else /* not __STDC__) || __cplusplus */\n\
2531 extern int snprintf();\n\
2532 extern int vsnprintf();\n\
2533 # endif /* __STDC__) || __cplusplus */\n",
2536 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2538 * Description of Hpux11_Abs fix
2540 tSCC zHpux11_AbsName[] =
2544 * File name selection pattern
2546 tSCC zHpux11_AbsList[] =
2549 * Machine/OS name selection pattern
2551 tSCC* apzHpux11_AbsMachs[] = {
2553 (const char*)NULL };
2556 * content selection pattern - do fix if pattern found
2558 tSCC zHpux11_AbsSelect0[] =
2559 "ifndef _MATH_INCLUDED";
2561 #define HPUX11_ABS_TEST_CT 1
2562 static tTestDesc aHpux11_AbsTests[] = {
2563 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2566 * Fix Command Arguments for Hpux11_Abs
2568 static const char* apzHpux11_AbsPatch[] = {
2570 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2573 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2575 * Description of Hpux11_Fabsf fix
2577 tSCC zHpux11_FabsfName[] =
2581 * File name selection pattern
2583 tSCC zHpux11_FabsfList[] =
2586 * Machine/OS name selection pattern
2588 #define apzHpux11_FabsfMachs (const char**)NULL
2591 * content selection pattern - do fix if pattern found
2593 tSCC zHpux11_FabsfSelect0[] =
2594 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2597 * content bypass pattern - skip fix if pattern found
2599 tSCC zHpux11_FabsfBypass0[] =
2602 #define HPUX11_FABSF_TEST_CT 2
2603 static tTestDesc aHpux11_FabsfTests[] = {
2604 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2605 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2608 * Fix Command Arguments for Hpux11_Fabsf
2610 static const char* apzHpux11_FabsfPatch[] = {
2612 "#ifndef __cplusplus\n\
2617 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2619 * Description of Hpux11_Size_T fix
2621 tSCC zHpux11_Size_TName[] =
2625 * File name selection pattern
2627 #define zHpux11_Size_TList (char*)NULL
2629 * Machine/OS name selection pattern
2631 tSCC* apzHpux11_Size_TMachs[] = {
2633 (const char*)NULL };
2636 * content selection pattern - do fix if pattern found
2638 tSCC zHpux11_Size_TSelect0[] =
2641 #define HPUX11_SIZE_T_TEST_CT 1
2642 static tTestDesc aHpux11_Size_TTests[] = {
2643 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2646 * Fix Command Arguments for Hpux11_Size_T
2648 static const char* apzHpux11_Size_TPatch[] = {
2653 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2655 * Description of Hpux11_Snprintf fix
2657 tSCC zHpux11_SnprintfName[] =
2661 * File name selection pattern
2663 tSCC zHpux11_SnprintfList[] =
2666 * Machine/OS name selection pattern
2668 #define apzHpux11_SnprintfMachs (const char**)NULL
2671 * content selection pattern - do fix if pattern found
2673 tSCC zHpux11_SnprintfSelect0[] =
2674 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2676 #define HPUX11_SNPRINTF_TEST_CT 1
2677 static tTestDesc aHpux11_SnprintfTests[] = {
2678 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2681 * Fix Command Arguments for Hpux11_Snprintf
2683 static const char* apzHpux11_SnprintfPatch[] = {
2688 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2690 * Description of Hpux11_Uint32_C fix
2692 tSCC zHpux11_Uint32_CName[] =
2696 * File name selection pattern
2698 tSCC zHpux11_Uint32_CList[] =
2701 * Machine/OS name selection pattern
2703 #define apzHpux11_Uint32_CMachs (const char**)NULL
2706 * content selection pattern - do fix if pattern found
2708 tSCC zHpux11_Uint32_CSelect0[] =
2709 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
2711 #define HPUX11_UINT32_C_TEST_CT 1
2712 static tTestDesc aHpux11_Uint32_CTests[] = {
2713 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
2716 * Fix Command Arguments for Hpux11_Uint32_C
2718 static const char* apzHpux11_Uint32_CPatch[] = {
2720 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
2723 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2725 * Description of Hpux11_Vsnprintf fix
2727 tSCC zHpux11_VsnprintfName[] =
2731 * File name selection pattern
2733 tSCC zHpux11_VsnprintfList[] =
2736 * Machine/OS name selection pattern
2738 #define apzHpux11_VsnprintfMachs (const char**)NULL
2741 * content selection pattern - do fix if pattern found
2743 tSCC zHpux11_VsnprintfSelect0[] =
2744 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
2746 #define HPUX11_VSNPRINTF_TEST_CT 1
2747 static tTestDesc aHpux11_VsnprintfTests[] = {
2748 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
2751 * Fix Command Arguments for Hpux11_Vsnprintf
2753 static const char* apzHpux11_VsnprintfPatch[] = {
2758 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2760 * Description of Hpux8_Bogus_Inlines fix
2762 tSCC zHpux8_Bogus_InlinesName[] =
2763 "hpux8_bogus_inlines";
2766 * File name selection pattern
2768 tSCC zHpux8_Bogus_InlinesList[] =
2771 * Machine/OS name selection pattern
2773 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
2776 * content selection pattern - do fix if pattern found
2778 tSCC zHpux8_Bogus_InlinesSelect0[] =
2782 * content bypass pattern - skip fix if pattern found
2784 tSCC zHpux8_Bogus_InlinesBypass0[] =
2787 #define HPUX8_BOGUS_INLINES_TEST_CT 2
2788 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
2789 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
2790 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
2793 * Fix Command Arguments for Hpux8_Bogus_Inlines
2795 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
2796 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
2797 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
2798 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
2799 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
2802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2804 * Description of Hpux_Ctype_Macros fix
2806 tSCC zHpux_Ctype_MacrosName[] =
2807 "hpux_ctype_macros";
2810 * File name selection pattern
2812 tSCC zHpux_Ctype_MacrosList[] =
2815 * Machine/OS name selection pattern
2817 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
2820 * content selection pattern - do fix if pattern found
2822 tSCC zHpux_Ctype_MacrosSelect0[] =
2823 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
2825 #define HPUX_CTYPE_MACROS_TEST_CT 1
2826 static tTestDesc aHpux_Ctype_MacrosTests[] = {
2827 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
2830 * Fix Command Arguments for Hpux_Ctype_Macros
2832 static const char* apzHpux_Ctype_MacrosPatch[] = {
2837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2839 * Description of Hpux_Htonl fix
2841 tSCC zHpux_HtonlName[] =
2845 * File name selection pattern
2847 tSCC zHpux_HtonlList[] =
2850 * Machine/OS name selection pattern
2852 #define apzHpux_HtonlMachs (const char**)NULL
2855 * content selection pattern - do fix if pattern found
2857 tSCC zHpux_HtonlSelect0[] =
2858 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
2860 \\* Macros for number representation conversion\\.\n\
2864 #define HPUX_HTONL_TEST_CT 1
2865 static tTestDesc aHpux_HtonlTests[] = {
2866 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
2869 * Fix Command Arguments for Hpux_Htonl
2871 static const char* apzHpux_HtonlPatch[] = {
2877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2879 * Description of Hpux_Long_Double fix
2881 tSCC zHpux_Long_DoubleName[] =
2885 * File name selection pattern
2887 tSCC zHpux_Long_DoubleList[] =
2890 * Machine/OS name selection pattern
2892 #define apzHpux_Long_DoubleMachs (const char**)NULL
2895 * content selection pattern - do fix if pattern found
2897 tSCC zHpux_Long_DoubleSelect0[] =
2898 "extern[ \t]long_double[ \t]strtold";
2901 * content bypass pattern - skip fix if pattern found
2903 tSCC zHpux_Long_DoubleBypass0[] =
2906 #define HPUX_LONG_DOUBLE_TEST_CT 2
2907 static tTestDesc aHpux_Long_DoubleTests[] = {
2908 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
2909 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
2912 * Fix Command Arguments for Hpux_Long_Double
2914 static const char* apzHpux_Long_DoublePatch[] = { "sed",
2915 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
2916 "-e", "s/long_double/long double/g",
2919 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2921 * Description of Hpux_Systime fix
2923 tSCC zHpux_SystimeName[] =
2927 * File name selection pattern
2929 tSCC zHpux_SystimeList[] =
2932 * Machine/OS name selection pattern
2934 #define apzHpux_SystimeMachs (const char**)NULL
2937 * content selection pattern - do fix if pattern found
2939 tSCC zHpux_SystimeSelect0[] =
2940 "^extern struct sigevent;";
2942 #define HPUX_SYSTIME_TEST_CT 1
2943 static tTestDesc aHpux_SystimeTests[] = {
2944 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
2947 * Fix Command Arguments for Hpux_Systime
2949 static const char* apzHpux_SystimePatch[] = {
2954 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2956 * Description of Hpux_Spu_Info fix
2958 tSCC zHpux_Spu_InfoName[] =
2962 * File name selection pattern
2964 tSCC zHpux_Spu_InfoList[] =
2965 "|ia64/sys/getppdp.h|";
2967 * Machine/OS name selection pattern
2969 tSCC* apzHpux_Spu_InfoMachs[] = {
2971 (const char*)NULL };
2974 * content selection pattern - do fix if pattern found
2976 tSCC zHpux_Spu_InfoSelect0[] =
2977 "^.*extern.*spu_info.*";
2979 #define HPUX_SPU_INFO_TEST_CT 1
2980 static tTestDesc aHpux_Spu_InfoTests[] = {
2981 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
2984 * Fix Command Arguments for Hpux_Spu_Info
2986 static const char* apzHpux_Spu_InfoPatch[] = {
2993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2995 * Description of Hpux11_Extern_Sendfile fix
2997 tSCC zHpux11_Extern_SendfileName[] =
2998 "hpux11_extern_sendfile";
3001 * File name selection pattern
3003 tSCC zHpux11_Extern_SendfileList[] =
3006 * Machine/OS name selection pattern
3008 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3009 "*-hp-hpux11.[12]*",
3010 (const char*)NULL };
3013 * content selection pattern - do fix if pattern found
3015 tSCC zHpux11_Extern_SendfileSelect0[] =
3016 "^[ \t]*extern sbsize_t sendfile.*\n\
3019 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3020 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3021 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3024 * Fix Command Arguments for Hpux11_Extern_Sendfile
3026 static const char* apzHpux11_Extern_SendfilePatch[] = {
3028 "#ifndef _APP32_64BIT_OFF_T\n\
3032 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3034 * Description of Hpux11_Extern_Sendpath fix
3036 tSCC zHpux11_Extern_SendpathName[] =
3037 "hpux11_extern_sendpath";
3040 * File name selection pattern
3042 tSCC zHpux11_Extern_SendpathList[] =
3045 * Machine/OS name selection pattern
3047 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3048 "*-hp-hpux11.[12]*",
3049 (const char*)NULL };
3052 * content selection pattern - do fix if pattern found
3054 tSCC zHpux11_Extern_SendpathSelect0[] =
3055 "^[ \t]*extern sbsize_t sendpath.*\n\
3058 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3059 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3060 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3063 * Fix Command Arguments for Hpux11_Extern_Sendpath
3065 static const char* apzHpux11_Extern_SendpathPatch[] = {
3067 "#ifndef _APP32_64BIT_OFF_T\n\
3071 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3073 * Description of Hpux_Extern_Errno fix
3075 tSCC zHpux_Extern_ErrnoName[] =
3076 "hpux_extern_errno";
3079 * File name selection pattern
3081 tSCC zHpux_Extern_ErrnoList[] =
3084 * Machine/OS name selection pattern
3086 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3088 "*-hp-hpux11.[0-2]*",
3089 (const char*)NULL };
3092 * content selection pattern - do fix if pattern found
3094 tSCC zHpux_Extern_ErrnoSelect0[] =
3095 "^[ \t]*extern int errno;$";
3097 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3098 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3099 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3102 * Fix Command Arguments for Hpux_Extern_Errno
3104 static const char* apzHpux_Extern_ErrnoPatch[] = {
3106 "#ifdef __cplusplus\n\
3110 #ifdef __cplusplus\n\
3115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3117 * Description of Hpux_Pthread_Initializers fix
3119 tSCC zHpux_Pthread_InitializersName[] =
3120 "hpux_pthread_initializers";
3123 * File name selection pattern
3125 tSCC zHpux_Pthread_InitializersList[] =
3128 * Machine/OS name selection pattern
3130 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3131 "*-hp-hpux11.[0-3]*",
3132 (const char*)NULL };
3133 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3134 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3137 * Fix Command Arguments for Hpux_Pthread_Initializers
3139 static const char* apzHpux_Pthread_InitializersPatch[] = { "sed",
3140 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3141 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3142 "-e", "/^[ \t]*0$/d",
3143 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3144 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3145 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3146 "-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\\\\@",
3147 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3148 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3149 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3150 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3151 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3152 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3155 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3157 * Description of Huge_Val_Hex fix
3159 tSCC zHuge_Val_HexName[] =
3163 * File name selection pattern
3165 tSCC zHuge_Val_HexList[] =
3166 "|bits/huge_val.h|";
3168 * Machine/OS name selection pattern
3170 #define apzHuge_Val_HexMachs (const char**)NULL
3173 * content selection pattern - do fix if pattern found
3175 tSCC zHuge_Val_HexSelect0[] =
3176 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3179 * content bypass pattern - skip fix if pattern found
3181 tSCC zHuge_Val_HexBypass0[] =
3182 "__builtin_huge_val";
3184 #define HUGE_VAL_HEX_TEST_CT 2
3185 static tTestDesc aHuge_Val_HexTests[] = {
3186 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3187 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3190 * Fix Command Arguments for Huge_Val_Hex
3192 static const char* apzHuge_Val_HexPatch[] = {
3194 "#define HUGE_VAL (__builtin_huge_val())\n",
3197 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3199 * Description of Huge_Valf_Hex fix
3201 tSCC zHuge_Valf_HexName[] =
3205 * File name selection pattern
3207 tSCC zHuge_Valf_HexList[] =
3208 "|bits/huge_val.h|";
3210 * Machine/OS name selection pattern
3212 #define apzHuge_Valf_HexMachs (const char**)NULL
3215 * content selection pattern - do fix if pattern found
3217 tSCC zHuge_Valf_HexSelect0[] =
3218 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3221 * content bypass pattern - skip fix if pattern found
3223 tSCC zHuge_Valf_HexBypass0[] =
3224 "__builtin_huge_valf";
3226 #define HUGE_VALF_HEX_TEST_CT 2
3227 static tTestDesc aHuge_Valf_HexTests[] = {
3228 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3229 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3232 * Fix Command Arguments for Huge_Valf_Hex
3234 static const char* apzHuge_Valf_HexPatch[] = {
3236 "#define HUGE_VALF (__builtin_huge_valf())\n",
3239 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3241 * Description of Huge_Vall_Hex fix
3243 tSCC zHuge_Vall_HexName[] =
3247 * File name selection pattern
3249 tSCC zHuge_Vall_HexList[] =
3250 "|bits/huge_val.h|";
3252 * Machine/OS name selection pattern
3254 #define apzHuge_Vall_HexMachs (const char**)NULL
3257 * content selection pattern - do fix if pattern found
3259 tSCC zHuge_Vall_HexSelect0[] =
3260 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3263 * content bypass pattern - skip fix if pattern found
3265 tSCC zHuge_Vall_HexBypass0[] =
3266 "__builtin_huge_vall";
3268 #define HUGE_VALL_HEX_TEST_CT 2
3269 static tTestDesc aHuge_Vall_HexTests[] = {
3270 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3271 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3274 * Fix Command Arguments for Huge_Vall_Hex
3276 static const char* apzHuge_Vall_HexPatch[] = {
3278 "#define HUGE_VALL (__builtin_huge_vall())\n",
3281 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3283 * Description of Int_Abort_Free_And_Exit fix
3285 tSCC zInt_Abort_Free_And_ExitName[] =
3286 "int_abort_free_and_exit";
3289 * File name selection pattern
3291 tSCC zInt_Abort_Free_And_ExitList[] =
3294 * Machine/OS name selection pattern
3296 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3299 * content selection pattern - do fix if pattern found
3301 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3302 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3305 * content bypass pattern - skip fix if pattern found
3307 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3308 "_CLASSIC_ANSI_TYPES";
3310 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3311 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3312 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3313 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3316 * Fix Command Arguments for Int_Abort_Free_And_Exit
3318 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3323 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3325 * Description of Io_Quotes_Def fix
3327 tSCC zIo_Quotes_DefName[] =
3331 * File name selection pattern
3333 #define zIo_Quotes_DefList (char*)NULL
3335 * Machine/OS name selection pattern
3337 #define apzIo_Quotes_DefMachs (const char**)NULL
3340 * content selection pattern - do fix if pattern found
3342 tSCC zIo_Quotes_DefSelect0[] =
3343 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3345 #define IO_QUOTES_DEF_TEST_CT 1
3346 static tTestDesc aIo_Quotes_DefTests[] = {
3347 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3350 * Fix Command Arguments for Io_Quotes_Def
3352 static const char* apzIo_Quotes_DefPatch[] = {
3357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3359 * Description of Io_Quotes_Use fix
3361 tSCC zIo_Quotes_UseName[] =
3365 * File name selection pattern
3367 #define zIo_Quotes_UseList (char*)NULL
3369 * Machine/OS name selection pattern
3371 #define apzIo_Quotes_UseMachs (const char**)NULL
3374 * content selection pattern - do fix if pattern found
3376 tSCC zIo_Quotes_UseSelect0[] =
3377 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3379 #define IO_QUOTES_USE_TEST_CT 1
3380 static tTestDesc aIo_Quotes_UseTests[] = {
3381 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3384 * Fix Command Arguments for Io_Quotes_Use
3386 static const char* apzIo_Quotes_UsePatch[] = {
3391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3393 * Description of Ip_Missing_Semi fix
3395 tSCC zIp_Missing_SemiName[] =
3399 * File name selection pattern
3401 tSCC zIp_Missing_SemiList[] =
3404 * Machine/OS name selection pattern
3406 #define apzIp_Missing_SemiMachs (const char**)NULL
3409 * content selection pattern - do fix if pattern found
3411 tSCC zIp_Missing_SemiSelect0[] =
3414 #define IP_MISSING_SEMI_TEST_CT 1
3415 static tTestDesc aIp_Missing_SemiTests[] = {
3416 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3419 * Fix Command Arguments for Ip_Missing_Semi
3421 static const char* apzIp_Missing_SemiPatch[] = { "sed",
3422 "-e", "/^struct/,/^};/s/}$/};/",
3425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3427 * Description of Irix___Restrict fix
3429 tSCC zIrix___RestrictName[] =
3433 * File name selection pattern
3435 tSCC zIrix___RestrictList[] =
3436 "|internal/sgimacros.h|";
3438 * Machine/OS name selection pattern
3440 tSCC* apzIrix___RestrictMachs[] = {
3442 (const char*)NULL };
3445 * content selection pattern - do fix if pattern found
3447 tSCC zIrix___RestrictSelect0[] =
3449 )(#[ \t]*define __restrict restrict)";
3451 #define IRIX___RESTRICT_TEST_CT 1
3452 static tTestDesc aIrix___RestrictTests[] = {
3453 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3456 * Fix Command Arguments for Irix___Restrict
3458 static const char* apzIrix___RestrictPatch[] = {
3460 "%1# ifndef __cplusplus\n\
3465 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3467 * Description of Irix___Generic1 fix
3469 tSCC zIrix___Generic1Name[] =
3473 * File name selection pattern
3475 tSCC zIrix___Generic1List[] =
3476 "|internal/math_core.h|";
3478 * Machine/OS name selection pattern
3480 tSCC* apzIrix___Generic1Machs[] = {
3482 (const char*)NULL };
3485 * content selection pattern - do fix if pattern found
3487 tSCC zIrix___Generic1Select0[] =
3488 "#define ([a-z]+)\\(x\\) *__generic.*";
3490 #define IRIX___GENERIC1_TEST_CT 1
3491 static tTestDesc aIrix___Generic1Tests[] = {
3492 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3495 * Fix Command Arguments for Irix___Generic1
3497 static const char* apzIrix___Generic1Patch[] = {
3499 "extern int %1(double);\n\
3500 extern int %1f(float);\n\
3501 extern int %1l(long double);\n\
3502 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3503 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3509 * Description of Irix___Generic2 fix
3511 tSCC zIrix___Generic2Name[] =
3515 * File name selection pattern
3517 tSCC zIrix___Generic2List[] =
3518 "|internal/math_core.h|";
3520 * Machine/OS name selection pattern
3522 tSCC* apzIrix___Generic2Machs[] = {
3524 (const char*)NULL };
3527 * content selection pattern - do fix if pattern found
3529 tSCC zIrix___Generic2Select0[] =
3530 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3532 #define IRIX___GENERIC2_TEST_CT 1
3533 static tTestDesc aIrix___Generic2Tests[] = {
3534 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3537 * Fix Command Arguments for Irix___Generic2
3539 static const char* apzIrix___Generic2Patch[] = {
3541 "#define %1(x,y) \\\n\
3542 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3543 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3547 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3549 * Description of Irix_Asm_Apostrophe fix
3551 tSCC zIrix_Asm_ApostropheName[] =
3552 "irix_asm_apostrophe";
3555 * File name selection pattern
3557 tSCC zIrix_Asm_ApostropheList[] =
3560 * Machine/OS name selection pattern
3562 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3565 * content selection pattern - do fix if pattern found
3567 tSCC zIrix_Asm_ApostropheSelect0[] =
3568 "^[ \t]*#.*[Ww]e're";
3570 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
3571 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3572 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3575 * Fix Command Arguments for Irix_Asm_Apostrophe
3577 static const char* apzIrix_Asm_ApostrophePatch[] = {
3580 "^([ \t]*#.*[Ww]e)'re",
3583 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3585 * Description of Irix_Limits_Const fix
3587 tSCC zIrix_Limits_ConstName[] =
3588 "irix_limits_const";
3591 * File name selection pattern
3593 tSCC zIrix_Limits_ConstList[] =
3594 "|fixinc-test-limits.h|limits.h|";
3596 * Machine/OS name selection pattern
3598 #define apzIrix_Limits_ConstMachs (const char**)NULL
3601 * content selection pattern - do fix if pattern found
3603 tSCC zIrix_Limits_ConstSelect0[] =
3606 #define IRIX_LIMITS_CONST_TEST_CT 1
3607 static tTestDesc aIrix_Limits_ConstTests[] = {
3608 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3611 * Fix Command Arguments for Irix_Limits_Const
3613 static const char* apzIrix_Limits_ConstPatch[] = {
3618 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3620 * Description of Irix_Socklen_T fix
3622 tSCC zIrix_Socklen_TName[] =
3626 * File name selection pattern
3628 tSCC zIrix_Socklen_TList[] =
3631 * Machine/OS name selection pattern
3633 tSCC* apzIrix_Socklen_TMachs[] = {
3635 (const char*)NULL };
3638 * content selection pattern - do fix if pattern found
3640 tSCC zIrix_Socklen_TSelect0[] =
3641 "(#define _SOCKLEN_T\n\
3642 )(typedef u_int32_t socklen_t;)";
3644 #define IRIX_SOCKLEN_T_TEST_CT 1
3645 static tTestDesc aIrix_Socklen_TTests[] = {
3646 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3649 * Fix Command Arguments for Irix_Socklen_T
3651 static const char* apzIrix_Socklen_TPatch[] = {
3653 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3654 typedef int socklen_t;\n\
3657 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
3660 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3662 * Description of Irix_Stdio_Va_List fix
3664 tSCC zIrix_Stdio_Va_ListName[] =
3665 "irix_stdio_va_list";
3668 * File name selection pattern
3670 tSCC zIrix_Stdio_Va_ListList[] =
3671 "|stdio.h|internal/stdio_core.h|";
3673 * Machine/OS name selection pattern
3675 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
3678 * content selection pattern - do fix if pattern found
3680 tSCC zIrix_Stdio_Va_ListSelect0[] =
3681 "/\\* va_list \\*/ char \\*";
3683 #define IRIX_STDIO_VA_LIST_TEST_CT 1
3684 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
3685 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
3688 * Fix Command Arguments for Irix_Stdio_Va_List
3690 static const char* apzIrix_Stdio_Va_ListPatch[] = {
3695 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3697 * Description of Irix_Wcsftime fix
3699 tSCC zIrix_WcsftimeName[] =
3703 * File name selection pattern
3705 tSCC zIrix_WcsftimeList[] =
3706 "|internal/wchar_core.h|";
3708 * Machine/OS name selection pattern
3710 tSCC* apzIrix_WcsftimeMachs[] = {
3712 (const char*)NULL };
3715 * content selection pattern - do fix if pattern found
3717 tSCC zIrix_WcsftimeSelect0[] =
3719 (extern size_t[ \t]+wcsftime.*const char *.*)";
3721 #define IRIX_WCSFTIME_TEST_CT 1
3722 static tTestDesc aIrix_WcsftimeTests[] = {
3723 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
3726 * Fix Command Arguments for Irix_Wcsftime
3728 static const char* apzIrix_WcsftimePatch[] = {
3730 "#if _NO_XOPEN5 && !defined(__c99)\n\
3734 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3736 * Description of Isc_Fmod fix
3738 tSCC zIsc_FmodName[] =
3742 * File name selection pattern
3744 tSCC zIsc_FmodList[] =
3747 * Machine/OS name selection pattern
3749 #define apzIsc_FmodMachs (const char**)NULL
3752 * content selection pattern - do fix if pattern found
3754 tSCC zIsc_FmodSelect0[] =
3757 #define ISC_FMOD_TEST_CT 1
3758 static tTestDesc aIsc_FmodTests[] = {
3759 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
3762 * Fix Command Arguments for Isc_Fmod
3764 static const char* apzIsc_FmodPatch[] = {
3766 "fmod(double, double)",
3769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3771 * Description of Isc_Omits_With_Stdc fix
3773 tSCC zIsc_Omits_With_StdcName[] =
3774 "isc_omits_with_stdc";
3777 * File name selection pattern
3779 tSCC zIsc_Omits_With_StdcList[] =
3780 "|stdio.h|math.h|ctype.h|sys/limits.h|sys/fcntl.h|sys/dirent.h|";
3782 * Machine/OS name selection pattern
3784 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
3787 * content selection pattern - do fix if pattern found
3789 tSCC zIsc_Omits_With_StdcSelect0[] =
3790 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
3792 #define ISC_OMITS_WITH_STDC_TEST_CT 1
3793 static tTestDesc aIsc_Omits_With_StdcTests[] = {
3794 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
3797 * Fix Command Arguments for Isc_Omits_With_Stdc
3799 static const char* apzIsc_Omits_With_StdcPatch[] = {
3801 "!defined(_POSIX_SOURCE)",
3804 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3806 * Description of Kandr_Concat fix
3808 tSCC zKandr_ConcatName[] =
3812 * File name selection pattern
3814 tSCC zKandr_ConcatList[] =
3815 "|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|";
3817 * Machine/OS name selection pattern
3819 #define apzKandr_ConcatMachs (const char**)NULL
3822 * content selection pattern - do fix if pattern found
3824 tSCC zKandr_ConcatSelect0[] =
3827 #define KANDR_CONCAT_TEST_CT 1
3828 static tTestDesc aKandr_ConcatTests[] = {
3829 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
3832 * Fix Command Arguments for Kandr_Concat
3834 static const char* apzKandr_ConcatPatch[] = {
3839 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3841 * Description of Libc1_G_Va_List fix
3843 tSCC zLibc1_G_Va_ListName[] =
3847 * File name selection pattern
3849 tSCC zLibc1_G_Va_ListList[] =
3852 * Machine/OS name selection pattern
3854 tSCC* apzLibc1_G_Va_ListMachs[] = {
3856 (const char*)NULL };
3859 * content selection pattern - do fix if pattern found
3861 tSCC zLibc1_G_Va_ListSelect0[] =
3862 "typedef void \\* _G_va_list;";
3864 #define LIBC1_G_VA_LIST_TEST_CT 1
3865 static tTestDesc aLibc1_G_Va_ListTests[] = {
3866 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
3869 * Fix Command Arguments for Libc1_G_Va_List
3871 static const char* apzLibc1_G_Va_ListPatch[] = {
3873 "typedef __builtin_va_list _G_va_list;",
3876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3878 * Description of Libc1_Ifdefd_Memx fix
3880 tSCC zLibc1_Ifdefd_MemxName[] =
3881 "libc1_ifdefd_memx";
3884 * File name selection pattern
3886 tSCC zLibc1_Ifdefd_MemxList[] =
3887 "|testing.h|string.h|";
3889 * Machine/OS name selection pattern
3891 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
3894 * content selection pattern - do fix if pattern found
3896 tSCC zLibc1_Ifdefd_MemxSelect0[] =
3897 "' is a built-in function for gcc 2\\.x\\. \\*/";
3900 * content bypass pattern - skip fix if pattern found
3902 tSCC zLibc1_Ifdefd_MemxBypass0[] =
3905 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
3906 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
3907 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
3908 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
3911 * Fix Command Arguments for Libc1_Ifdefd_Memx
3913 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
3916 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
3917 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
3919 extern [a-z_]+ mem.*(\n\
3924 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3926 * Description of Linux_Ia64_Ucontext fix
3928 tSCC zLinux_Ia64_UcontextName[] =
3929 "linux_ia64_ucontext";
3932 * File name selection pattern
3934 tSCC zLinux_Ia64_UcontextList[] =
3937 * Machine/OS name selection pattern
3939 tSCC* apzLinux_Ia64_UcontextMachs[] = {
3941 (const char*)NULL };
3944 * content selection pattern - do fix if pattern found
3946 tSCC zLinux_Ia64_UcontextSelect0[] =
3947 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
3949 #define LINUX_IA64_UCONTEXT_TEST_CT 1
3950 static tTestDesc aLinux_Ia64_UcontextTests[] = {
3951 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
3954 * Fix Command Arguments for Linux_Ia64_Ucontext
3956 static const char* apzLinux_Ia64_UcontextPatch[] = {
3958 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
3961 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3963 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
3965 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
3966 "lynxos_no_warning_in_sys_time_h";
3969 * File name selection pattern
3971 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
3974 * Machine/OS name selection pattern
3976 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
3979 * content selection pattern - do fix if pattern found
3981 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
3982 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
3984 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
3985 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
3986 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
3989 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
3991 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
3996 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3998 * Description of Lynxos_Missing_Putenv fix
4000 tSCC zLynxos_Missing_PutenvName[] =
4001 "lynxos_missing_putenv";
4004 * File name selection pattern
4006 tSCC zLynxos_Missing_PutenvList[] =
4009 * Machine/OS name selection pattern
4011 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4013 (const char*)NULL };
4016 * content selection pattern - do fix if pattern found
4018 tSCC zLynxos_Missing_PutenvSelect0[] =
4019 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4022 * content bypass pattern - skip fix if pattern found
4024 tSCC zLynxos_Missing_PutenvBypass0[] =
4027 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4028 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4029 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4030 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4033 * Fix Command Arguments for Lynxos_Missing_Putenv
4035 static const char* apzLynxos_Missing_PutenvPatch[] = {
4038 extern int putenv\t\t\t\t_AP((char *));",
4039 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4042 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4044 * Description of Machine_Ansi_H_Va_List fix
4046 tSCC zMachine_Ansi_H_Va_ListName[] =
4047 "machine_ansi_h_va_list";
4050 * File name selection pattern
4052 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4054 * Machine/OS name selection pattern
4056 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4059 * content selection pattern - do fix if pattern found
4061 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4062 "define[ \t]+_BSD_VA_LIST_[ \t]";
4065 * content bypass pattern - skip fix if pattern found
4067 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4068 "__builtin_va_list";
4070 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4071 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4072 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4073 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4076 * Fix Command Arguments for Machine_Ansi_H_Va_List
4078 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4080 "%1__builtin_va_list",
4081 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4084 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4086 * Description of Machine_Name fix
4088 tSCC zMachine_NameName[] =
4092 * File name selection pattern
4094 #define zMachine_NameList (char*)NULL
4096 * Machine/OS name selection pattern
4098 #define apzMachine_NameMachs (const char**)NULL
4101 * perform the C function call test
4103 tSCC zMachine_NameFTst0[] = "machine_name";
4105 #define MACHINE_NAME_TEST_CT 1
4106 static tTestDesc aMachine_NameTests[] = {
4107 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4110 * Fix Command Arguments for Machine_Name
4112 static const char* apzMachine_NamePatch[] = {
4116 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4118 * Description of Math_Exception fix
4120 tSCC zMath_ExceptionName[] =
4124 * File name selection pattern
4126 tSCC zMath_ExceptionList[] =
4129 * Machine/OS name selection pattern
4131 #define apzMath_ExceptionMachs (const char**)NULL
4134 * content selection pattern - do fix if pattern found
4136 tSCC zMath_ExceptionSelect0[] =
4140 * content bypass pattern - skip fix if pattern found
4142 tSCC zMath_ExceptionBypass0[] =
4143 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4145 #define MATH_EXCEPTION_TEST_CT 2
4146 static tTestDesc aMath_ExceptionTests[] = {
4147 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4148 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4151 * Fix Command Arguments for Math_Exception
4153 static const char* apzMath_ExceptionPatch[] = {
4155 "#ifdef __cplusplus\n\
4156 #define exception __math_exception\n\
4158 "#ifdef __cplusplus\n\
4163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4165 * Description of Math_Huge_Val_From_Dbl_Max fix
4167 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4168 "math_huge_val_from_dbl_max";
4171 * File name selection pattern
4173 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4176 * Machine/OS name selection pattern
4178 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4181 * content selection pattern - do fix if pattern found
4183 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4184 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4187 * content bypass pattern - skip fix if pattern found
4189 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4190 "define[ \t]+DBL_MAX";
4192 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4193 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4194 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4195 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4198 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4200 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4201 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4202 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4203 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4208 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4210 * Description of Nested_Auth_Des fix
4212 tSCC zNested_Auth_DesName[] =
4216 * File name selection pattern
4218 tSCC zNested_Auth_DesList[] =
4221 * Machine/OS name selection pattern
4223 #define apzNested_Auth_DesMachs (const char**)NULL
4226 * content selection pattern - do fix if pattern found
4228 tSCC zNested_Auth_DesSelect0[] =
4229 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4231 #define NESTED_AUTH_DES_TEST_CT 1
4232 static tTestDesc aNested_Auth_DesTests[] = {
4233 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4236 * Fix Command Arguments for Nested_Auth_Des
4238 static const char* apzNested_Auth_DesPatch[] = {
4243 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4245 * Description of Nested_Motorola fix
4247 tSCC zNested_MotorolaName[] =
4251 * File name selection pattern
4253 tSCC zNested_MotorolaList[] =
4254 "|sys/limits.h|limits.h|";
4256 * Machine/OS name selection pattern
4258 tSCC* apzNested_MotorolaMachs[] = {
4259 "m68k-motorola-sysv*",
4260 (const char*)NULL };
4263 * content selection pattern - do fix if pattern found
4265 tSCC zNested_MotorolaSelect0[] =
4266 "max # bytes atomic in write|error value returned by Math lib";
4268 #define NESTED_MOTOROLA_TEST_CT 1
4269 static tTestDesc aNested_MotorolaTests[] = {
4270 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
4273 * Fix Command Arguments for Nested_Motorola
4275 static const char* apzNested_MotorolaPatch[] = { "sed",
4276 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
4277 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
4280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4282 * Description of Nested_Sys_Limits fix
4284 tSCC zNested_Sys_LimitsName[] =
4285 "nested_sys_limits";
4288 * File name selection pattern
4290 tSCC zNested_Sys_LimitsList[] =
4293 * Machine/OS name selection pattern
4295 #define apzNested_Sys_LimitsMachs (const char**)NULL
4298 * content selection pattern - do fix if pattern found
4300 tSCC zNested_Sys_LimitsSelect0[] =
4303 #define NESTED_SYS_LIMITS_TEST_CT 1
4304 static tTestDesc aNested_Sys_LimitsTests[] = {
4305 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4308 * Fix Command Arguments for Nested_Sys_Limits
4310 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
4311 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4312 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4315 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4317 * Description of Netbsd_Extra_Semicolon fix
4319 tSCC zNetbsd_Extra_SemicolonName[] =
4320 "netbsd_extra_semicolon";
4323 * File name selection pattern
4325 tSCC zNetbsd_Extra_SemicolonList[] =
4328 * Machine/OS name selection pattern
4330 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4332 (const char*)NULL };
4335 * content selection pattern - do fix if pattern found
4337 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4338 "#define[ \t]*__END_DECLS[ \t]*};";
4340 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4341 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4342 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4345 * Fix Command Arguments for Netbsd_Extra_Semicolon
4347 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4349 "#define __END_DECLS }",
4352 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4354 * Description of Next_Math_Prefix fix
4356 tSCC zNext_Math_PrefixName[] =
4360 * File name selection pattern
4362 tSCC zNext_Math_PrefixList[] =
4365 * Machine/OS name selection pattern
4367 #define apzNext_Math_PrefixMachs (const char**)NULL
4370 * content selection pattern - do fix if pattern found
4372 tSCC zNext_Math_PrefixSelect0[] =
4373 "^extern[ \t]+double[ \t]+__const__[ \t]";
4375 #define NEXT_MATH_PREFIX_TEST_CT 1
4376 static tTestDesc aNext_Math_PrefixTests[] = {
4377 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4380 * Fix Command Arguments for Next_Math_Prefix
4382 static const char* apzNext_Math_PrefixPatch[] = {
4384 "extern double %1(",
4385 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4388 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4390 * Description of Next_Template fix
4392 tSCC zNext_TemplateName[] =
4396 * File name selection pattern
4398 tSCC zNext_TemplateList[] =
4401 * Machine/OS name selection pattern
4403 #define apzNext_TemplateMachs (const char**)NULL
4406 * content selection pattern - do fix if pattern found
4408 tSCC zNext_TemplateSelect0[] =
4411 #define NEXT_TEMPLATE_TEST_CT 1
4412 static tTestDesc aNext_TemplateTests[] = {
4413 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
4416 * Fix Command Arguments for Next_Template
4418 static const char* apzNext_TemplatePatch[] = {
4421 "\\(([^)]*)[ \t]template\\)",
4424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4426 * Description of Next_Volitile fix
4428 tSCC zNext_VolitileName[] =
4432 * File name selection pattern
4434 tSCC zNext_VolitileList[] =
4437 * Machine/OS name selection pattern
4439 #define apzNext_VolitileMachs (const char**)NULL
4442 * content selection pattern - do fix if pattern found
4444 tSCC zNext_VolitileSelect0[] =
4445 "^extern[ \t]+volatile[ \t]+void[ \t]";
4447 #define NEXT_VOLITILE_TEST_CT 1
4448 static tTestDesc aNext_VolitileTests[] = {
4449 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
4452 * Fix Command Arguments for Next_Volitile
4454 static const char* apzNext_VolitilePatch[] = {
4457 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
4460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4462 * Description of Next_Wait_Union fix
4464 tSCC zNext_Wait_UnionName[] =
4468 * File name selection pattern
4470 tSCC zNext_Wait_UnionList[] =
4473 * Machine/OS name selection pattern
4475 #define apzNext_Wait_UnionMachs (const char**)NULL
4478 * content selection pattern - do fix if pattern found
4480 tSCC zNext_Wait_UnionSelect0[] =
4481 "wait\\(union wait";
4483 #define NEXT_WAIT_UNION_TEST_CT 1
4484 static tTestDesc aNext_Wait_UnionTests[] = {
4485 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
4488 * Fix Command Arguments for Next_Wait_Union
4490 static const char* apzNext_Wait_UnionPatch[] = {
4495 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4497 * Description of Nodeent_Syntax fix
4499 tSCC zNodeent_SyntaxName[] =
4503 * File name selection pattern
4505 tSCC zNodeent_SyntaxList[] =
4506 "|netdnet/dnetdb.h|";
4508 * Machine/OS name selection pattern
4510 #define apzNodeent_SyntaxMachs (const char**)NULL
4513 * content selection pattern - do fix if pattern found
4515 tSCC zNodeent_SyntaxSelect0[] =
4516 "char[ \t]*\\*na_addr[ \t]*$";
4518 #define NODEENT_SYNTAX_TEST_CT 1
4519 static tTestDesc aNodeent_SyntaxTests[] = {
4520 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
4523 * Fix Command Arguments for Nodeent_Syntax
4525 static const char* apzNodeent_SyntaxPatch[] = {
4530 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4532 * Description of Obstack_Lvalue_Cast fix
4534 tSCC zObstack_Lvalue_CastName[] =
4535 "obstack_lvalue_cast";
4538 * File name selection pattern
4540 tSCC zObstack_Lvalue_CastList[] =
4543 * Machine/OS name selection pattern
4545 #define apzObstack_Lvalue_CastMachs (const char**)NULL
4548 * content selection pattern - do fix if pattern found
4550 tSCC zObstack_Lvalue_CastSelect0[] =
4551 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
4553 #define OBSTACK_LVALUE_CAST_TEST_CT 1
4554 static tTestDesc aObstack_Lvalue_CastTests[] = {
4555 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
4558 * Fix Command Arguments for Obstack_Lvalue_Cast
4560 static const char* apzObstack_Lvalue_CastPatch[] = {
4562 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
4565 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4567 * Description of Osf_Namespace_A fix
4569 tSCC zOsf_Namespace_AName[] =
4573 * File name selection pattern
4575 tSCC zOsf_Namespace_AList[] =
4576 "|reg_types.h|sys/lc_core.h|";
4578 * Machine/OS name selection pattern
4580 #define apzOsf_Namespace_AMachs (const char**)NULL
4583 * perform the 'test' shell command - do fix on success
4585 tSCC zOsf_Namespace_ATest0[] =
4587 tSCC zOsf_Namespace_ATest1[] =
4588 " -r sys/lc_core.h";
4589 tSCC zOsf_Namespace_ATest2[] =
4590 " -n \"`grep '} regex_t;' reg_types.h`\"";
4591 tSCC zOsf_Namespace_ATest3[] =
4592 " -z \"`grep __regex_t regex.h`\"";
4594 #define OSF_NAMESPACE_A_TEST_CT 4
4595 static tTestDesc aOsf_Namespace_ATests[] = {
4596 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
4597 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
4598 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
4599 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
4602 * Fix Command Arguments for Osf_Namespace_A
4604 static const char* apzOsf_Namespace_APatch[] = {
4607 "reg(ex|off|match)_t",
4610 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4612 * Description of Osf_Namespace_C fix
4614 tSCC zOsf_Namespace_CName[] =
4618 * File name selection pattern
4620 tSCC zOsf_Namespace_CList[] =
4623 * Machine/OS name selection pattern
4625 #define apzOsf_Namespace_CMachs (const char**)NULL
4628 * content selection pattern - do fix if pattern found
4630 tSCC zOsf_Namespace_CSelect0[] =
4631 "#include <reg_types.h>.*";
4634 * perform the 'test' shell command - do fix on success
4636 tSCC zOsf_Namespace_CTest0[] =
4638 tSCC zOsf_Namespace_CTest1[] =
4639 " -r sys/lc_core.h";
4640 tSCC zOsf_Namespace_CTest2[] =
4641 " -n \"`grep '} regex_t;' reg_types.h`\"";
4642 tSCC zOsf_Namespace_CTest3[] =
4643 " -z \"`grep __regex_t regex.h`\"";
4645 #define OSF_NAMESPACE_C_TEST_CT 5
4646 static tTestDesc aOsf_Namespace_CTests[] = {
4647 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
4648 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
4649 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
4650 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
4651 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
4654 * Fix Command Arguments for Osf_Namespace_C
4656 static const char* apzOsf_Namespace_CPatch[] = {
4659 typedef __regex_t\tregex_t;\n\
4660 typedef __regoff_t\tregoff_t;\n\
4661 typedef __regmatch_t\tregmatch_t;",
4664 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4666 * Description of Pthread_Page_Size fix
4668 tSCC zPthread_Page_SizeName[] =
4669 "pthread_page_size";
4672 * File name selection pattern
4674 tSCC zPthread_Page_SizeList[] =
4677 * Machine/OS name selection pattern
4679 #define apzPthread_Page_SizeMachs (const char**)NULL
4682 * content selection pattern - do fix if pattern found
4684 tSCC zPthread_Page_SizeSelect0[] =
4687 #define PTHREAD_PAGE_SIZE_TEST_CT 1
4688 static tTestDesc aPthread_Page_SizeTests[] = {
4689 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
4692 * Fix Command Arguments for Pthread_Page_Size
4694 static const char* apzPthread_Page_SizePatch[] = {
4699 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4701 * Description of Pthread_Incomplete_Struct_Argument fix
4703 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
4704 "pthread_incomplete_struct_argument";
4707 * File name selection pattern
4709 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
4712 * Machine/OS name selection pattern
4714 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
4717 * content selection pattern - do fix if pattern found
4719 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
4720 "struct __jmp_buf_tag";
4722 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
4723 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
4724 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
4727 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
4729 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
4732 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
4735 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4737 * Description of Read_Ret_Type fix
4739 tSCC zRead_Ret_TypeName[] =
4743 * File name selection pattern
4745 tSCC zRead_Ret_TypeList[] =
4748 * Machine/OS name selection pattern
4750 #define apzRead_Ret_TypeMachs (const char**)NULL
4753 * content selection pattern - do fix if pattern found
4755 tSCC zRead_Ret_TypeSelect0[] =
4756 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
4758 #define READ_RET_TYPE_TEST_CT 1
4759 static tTestDesc aRead_Ret_TypeTests[] = {
4760 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
4763 * Fix Command Arguments for Read_Ret_Type
4765 static const char* apzRead_Ret_TypePatch[] = {
4767 "extern unsigned int fread(), fwrite();\n\
4769 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
4772 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4774 * Description of Rpc_Xdr_Lvalue_Cast_A fix
4776 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
4777 "rpc_xdr_lvalue_cast_a";
4780 * File name selection pattern
4782 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
4785 * Machine/OS name selection pattern
4787 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
4790 * content selection pattern - do fix if pattern found
4792 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
4793 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
4796 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
4797 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
4798 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
4801 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
4803 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
4805 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
4808 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4810 * Description of Rpc_Xdr_Lvalue_Cast_B fix
4812 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
4813 "rpc_xdr_lvalue_cast_b";
4816 * File name selection pattern
4818 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
4821 * Machine/OS name selection pattern
4823 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
4826 * content selection pattern - do fix if pattern found
4828 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
4829 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
4832 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
4833 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
4834 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
4837 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
4839 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
4841 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
4844 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4846 * Description of Rs6000_Double fix
4848 tSCC zRs6000_DoubleName[] =
4852 * File name selection pattern
4854 tSCC zRs6000_DoubleList[] =
4857 * Machine/OS name selection pattern
4859 #define apzRs6000_DoubleMachs (const char**)NULL
4862 * content selection pattern - do fix if pattern found
4864 tSCC zRs6000_DoubleSelect0[] =
4865 "[^a-zA-Z_]class\\(";
4867 #define RS6000_DOUBLE_TEST_CT 1
4868 static tTestDesc aRs6000_DoubleTests[] = {
4869 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
4872 * Fix Command Arguments for Rs6000_Double
4874 static const char* apzRs6000_DoublePatch[] = {
4876 "#ifndef __cplusplus\n\
4879 "^.*[^a-zA-Z_]class\\(.*",
4882 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4884 * Description of Rs6000_Fchmod fix
4886 tSCC zRs6000_FchmodName[] =
4890 * File name selection pattern
4892 tSCC zRs6000_FchmodList[] =
4895 * Machine/OS name selection pattern
4897 #define apzRs6000_FchmodMachs (const char**)NULL
4900 * content selection pattern - do fix if pattern found
4902 tSCC zRs6000_FchmodSelect0[] =
4903 "fchmod\\(char \\*";
4905 #define RS6000_FCHMOD_TEST_CT 1
4906 static tTestDesc aRs6000_FchmodTests[] = {
4907 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
4910 * Fix Command Arguments for Rs6000_Fchmod
4912 static const char* apzRs6000_FchmodPatch[] = {
4917 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4919 * Description of Rs6000_Param fix
4921 tSCC zRs6000_ParamName[] =
4925 * File name selection pattern
4927 tSCC zRs6000_ParamList[] =
4928 "|stdio.h|unistd.h|";
4930 * Machine/OS name selection pattern
4932 #define apzRs6000_ParamMachs (const char**)NULL
4935 * content selection pattern - do fix if pattern found
4937 tSCC zRs6000_ParamSelect0[] =
4938 "rename\\(const char \\*old, const char \\*new\\)";
4940 #define RS6000_PARAM_TEST_CT 1
4941 static tTestDesc aRs6000_ParamTests[] = {
4942 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
4945 * Fix Command Arguments for Rs6000_Param
4947 static const char* apzRs6000_ParamPatch[] = {
4949 "rename(const char *_old, const char *_new)",
4952 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4954 * Description of Sco_Math fix
4956 tSCC zSco_MathName[] =
4960 * File name selection pattern
4962 tSCC zSco_MathList[] =
4963 "|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|";
4965 * Machine/OS name selection pattern
4967 #define apzSco_MathMachs (const char**)NULL
4970 * content selection pattern - do fix if pattern found
4972 tSCC zSco_MathSelect0[] =
4973 "inline double abs";
4976 * content bypass pattern - skip fix if pattern found
4978 tSCC zSco_MathBypass0[] =
4981 #define SCO_MATH_TEST_CT 2
4982 static tTestDesc aSco_MathTests[] = {
4983 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
4984 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
4987 * Fix Command Arguments for Sco_Math
4989 static const char* apzSco_MathPatch[] = { "sed",
4990 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
4991 #ifndef __GNUC__\n",
4992 "-e", "/.*__builtin_generic/a\\\n\
4994 #define __fp_class(a) \\\\\\\n\
4995 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
4996 __fpclassifyl(a), \\\\\\\n\
4997 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
4998 __fpclassifyf(a),__fpclassify(a)))\\\n\
5000 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5001 #ifndef __GNUC__\n",
5002 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5003 #endif /* ! __GNUC__ */",
5006 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5008 * Description of Sco_Regset fix
5010 tSCC zSco_RegsetName[] =
5014 * File name selection pattern
5016 tSCC zSco_RegsetList[] =
5019 * Machine/OS name selection pattern
5021 tSCC* apzSco_RegsetMachs[] = {
5023 (const char*)NULL };
5026 * content selection pattern - do fix if pattern found
5028 tSCC zSco_RegsetSelect0[] =
5029 "(struct[ \t]+.*)fpstate";
5031 #define SCO_REGSET_TEST_CT 1
5032 static tTestDesc aSco_RegsetTests[] = {
5033 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
5036 * Fix Command Arguments for Sco_Regset
5038 static const char* apzSco_RegsetPatch[] = {
5043 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5045 * Description of Sco_Static_Func fix
5047 tSCC zSco_Static_FuncName[] =
5051 * File name selection pattern
5053 tSCC zSco_Static_FuncList[] =
5056 * Machine/OS name selection pattern
5058 tSCC* apzSco_Static_FuncMachs[] = {
5060 (const char*)NULL };
5063 * content selection pattern - do fix if pattern found
5065 tSCC zSco_Static_FuncSelect0[] =
5068 #define SCO_STATIC_FUNC_TEST_CT 1
5069 static tTestDesc aSco_Static_FuncTests[] = {
5070 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
5073 * Fix Command Arguments for Sco_Static_Func
5075 static const char* apzSco_Static_FuncPatch[] = { "sed",
5076 "-e", "/^static int/i\\\n\
5077 #if __cplusplus\\\n\
5079 #endif /* __cplusplus */",
5081 #if __cplusplus\\\n\
5083 #endif /* __cplusplus */",
5086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5088 * Description of Sco_Utime fix
5090 tSCC zSco_UtimeName[] =
5094 * File name selection pattern
5096 tSCC zSco_UtimeList[] =
5099 * Machine/OS name selection pattern
5101 tSCC* apzSco_UtimeMachs[] = {
5103 (const char*)NULL };
5106 * content selection pattern - do fix if pattern found
5108 tSCC zSco_UtimeSelect0[] =
5109 "\\(const char \\*, struct utimbuf \\*\\);";
5111 #define SCO_UTIME_TEST_CT 1
5112 static tTestDesc aSco_UtimeTests[] = {
5113 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
5116 * Fix Command Arguments for Sco_Utime
5118 static const char* apzSco_UtimePatch[] = {
5120 "(const char *, const struct utimbuf *);",
5123 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5125 * Description of Solaris_Math_1 fix
5127 tSCC zSolaris_Math_1Name[] =
5131 * File name selection pattern
5133 tSCC zSolaris_Math_1List[] =
5136 * Machine/OS name selection pattern
5138 #define apzSolaris_Math_1Machs (const char**)NULL
5141 * content selection pattern - do fix if pattern found
5143 tSCC zSolaris_Math_1Select0[] =
5144 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5147 * content bypass pattern - skip fix if pattern found
5149 tSCC zSolaris_Math_1Bypass0[] =
5152 #define SOLARIS_MATH_1_TEST_CT 2
5153 static tTestDesc aSolaris_Math_1Tests[] = {
5154 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5155 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5158 * Fix Command Arguments for Solaris_Math_1
5160 static const char* apzSolaris_Math_1Patch[] = {
5162 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5163 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5166 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5168 * Description of Solaris_Math_2 fix
5170 tSCC zSolaris_Math_2Name[] =
5174 * File name selection pattern
5176 tSCC zSolaris_Math_2List[] =
5179 * Machine/OS name selection pattern
5181 #define apzSolaris_Math_2Machs (const char**)NULL
5184 * content selection pattern - do fix if pattern found
5186 tSCC zSolaris_Math_2Select0[] =
5187 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5190 * content bypass pattern - skip fix if pattern found
5192 tSCC zSolaris_Math_2Bypass0[] =
5195 #define SOLARIS_MATH_2_TEST_CT 2
5196 static tTestDesc aSolaris_Math_2Tests[] = {
5197 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5198 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5201 * Fix Command Arguments for Solaris_Math_2
5203 static const char* apzSolaris_Math_2Patch[] = {
5205 "#define\tINFINITY\t(__builtin_inff())",
5206 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5209 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5211 * Description of Solaris_Math_3 fix
5213 tSCC zSolaris_Math_3Name[] =
5217 * File name selection pattern
5219 tSCC zSolaris_Math_3List[] =
5222 * Machine/OS name selection pattern
5224 #define apzSolaris_Math_3Machs (const char**)NULL
5227 * content selection pattern - do fix if pattern found
5229 tSCC zSolaris_Math_3Select0[] =
5230 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5233 * content bypass pattern - skip fix if pattern found
5235 tSCC zSolaris_Math_3Bypass0[] =
5238 #define SOLARIS_MATH_3_TEST_CT 2
5239 static tTestDesc aSolaris_Math_3Tests[] = {
5240 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5241 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5244 * Fix Command Arguments for Solaris_Math_3
5246 static const char* apzSolaris_Math_3Patch[] = {
5248 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5249 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5254 * Description of Solaris_Math_4 fix
5256 tSCC zSolaris_Math_4Name[] =
5260 * File name selection pattern
5262 tSCC zSolaris_Math_4List[] =
5265 * Machine/OS name selection pattern
5267 #define apzSolaris_Math_4Machs (const char**)NULL
5270 * content selection pattern - do fix if pattern found
5272 tSCC zSolaris_Math_4Select0[] =
5273 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5276 * content bypass pattern - skip fix if pattern found
5278 tSCC zSolaris_Math_4Bypass0[] =
5281 #define SOLARIS_MATH_4_TEST_CT 2
5282 static tTestDesc aSolaris_Math_4Tests[] = {
5283 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5284 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5287 * Fix Command Arguments for Solaris_Math_4
5289 static const char* apzSolaris_Math_4Patch[] = {
5291 "#define\tfpclassify(x) \\\n\
5292 __extension__ ({ const __typeof(x) __x_fp = (x); \\\n\
5293 \t\t isnan(__x_fp) \\\n\
5295 \t\t : isinf(__x_fp) \\\n\
5296 \t\t ? FP_INFINITE \\\n\
5297 \t\t : isnormal(__x_fp) \\\n\
5298 \t\t\t ? FP_NORMAL \\\n\
5299 \t\t\t : __x_fp == 0.0 \\\n\
5300 \t\t\t ? FP_ZERO \\\n\
5301 \t\t\t : FP_SUBNORMAL; })",
5302 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5307 * Description of Solaris_Math_5 fix
5309 tSCC zSolaris_Math_5Name[] =
5313 * File name selection pattern
5315 tSCC zSolaris_Math_5List[] =
5318 * Machine/OS name selection pattern
5320 #define apzSolaris_Math_5Machs (const char**)NULL
5323 * content selection pattern - do fix if pattern found
5325 tSCC zSolaris_Math_5Select0[] =
5326 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5329 * content bypass pattern - skip fix if pattern found
5331 tSCC zSolaris_Math_5Bypass0[] =
5334 #define SOLARIS_MATH_5_TEST_CT 2
5335 static tTestDesc aSolaris_Math_5Tests[] = {
5336 { TT_NEGREP, zSolaris_Math_5Bypass0, (regex_t*)NULL },
5337 { TT_EGREP, zSolaris_Math_5Select0, (regex_t*)NULL }, };
5340 * Fix Command Arguments for Solaris_Math_5
5342 static const char* apzSolaris_Math_5Patch[] = {
5344 "#define\tisfinite(x) \\\n\
5345 __extension__ ({ const __typeof (x) __x_f = (x); \\\n\
5346 \t\t __builtin_expect(sizeof(__x_f) == sizeof(float) \\\n\
5347 \t\t\t ? islessequal(__builtin_fabsf(__x_f),__FLT_MAX__) \\\n\
5348 \t\t\t : sizeof(__x_f) == sizeof(long double) \\\n\
5349 \t\t\t ? islessequal(__builtin_fabsl(__x_f),__LDBL_MAX__) \\\n\
5350 \t\t\t : islessequal(__builtin_fabs(__x_f),__DBL_MAX__), 1); })",
5351 "^#define[ \t]+isfinite\\(x\\)[ \t]+__builtin_isfinite\\(x\\)",
5354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5356 * Description of Solaris_Math_6 fix
5358 tSCC zSolaris_Math_6Name[] =
5362 * File name selection pattern
5364 tSCC zSolaris_Math_6List[] =
5367 * Machine/OS name selection pattern
5369 #define apzSolaris_Math_6Machs (const char**)NULL
5372 * content selection pattern - do fix if pattern found
5374 tSCC zSolaris_Math_6Select0[] =
5375 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5378 * content bypass pattern - skip fix if pattern found
5380 tSCC zSolaris_Math_6Bypass0[] =
5383 #define SOLARIS_MATH_6_TEST_CT 2
5384 static tTestDesc aSolaris_Math_6Tests[] = {
5385 { TT_NEGREP, zSolaris_Math_6Bypass0, (regex_t*)NULL },
5386 { TT_EGREP, zSolaris_Math_6Select0, (regex_t*)NULL }, };
5389 * Fix Command Arguments for Solaris_Math_6
5391 static const char* apzSolaris_Math_6Patch[] = {
5393 "#define\tisinf(x) \\\n\
5394 __extension__ ({ const __typeof (x) __x_i = (x); \\\n\
5395 \t\t __builtin_expect(sizeof(__x_i) == sizeof(float) \\\n\
5396 \t\t\t ? isgreater(__builtin_fabsf(__x_i),__FLT_MAX__) \\\n\
5397 \t\t\t : sizeof(__x_i) == sizeof(long double) \\\n\
5398 \t\t\t ? isgreater(__builtin_fabsl(__x_i),__LDBL_MAX__) \\\n\
5399 \t\t\t : isgreater(__builtin_fabs(__x_i),__DBL_MAX__), 0); })",
5400 "^#define[ \t]+isinf\\(x\\)[ \t]+__builtin_isinf\\(x\\)",
5403 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5405 * Description of Solaris_Math_7 fix
5407 tSCC zSolaris_Math_7Name[] =
5411 * File name selection pattern
5413 tSCC zSolaris_Math_7List[] =
5416 * Machine/OS name selection pattern
5418 #define apzSolaris_Math_7Machs (const char**)NULL
5421 * content selection pattern - do fix if pattern found
5423 tSCC zSolaris_Math_7Select0[] =
5424 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5427 * content bypass pattern - skip fix if pattern found
5429 tSCC zSolaris_Math_7Bypass0[] =
5432 #define SOLARIS_MATH_7_TEST_CT 2
5433 static tTestDesc aSolaris_Math_7Tests[] = {
5434 { TT_NEGREP, zSolaris_Math_7Bypass0, (regex_t*)NULL },
5435 { TT_EGREP, zSolaris_Math_7Select0, (regex_t*)NULL }, };
5438 * Fix Command Arguments for Solaris_Math_7
5440 static const char* apzSolaris_Math_7Patch[] = {
5442 "#define\tisnormal(x) \\\n\
5443 __extension__ ({ const __typeof(x) __x_n = (x); \\\n\
5444 \t\t __builtin_expect(isfinite(__x_n) \\\n\
5445 \t\t\t\t && (sizeof(__x_n) == sizeof(float) \\\n\
5446 \t\t\t\t\t ? isgreaterequal(__builtin_fabsf(__x_n),__FLT_MIN__) \\\n\
5447 \t\t\t\t\t : sizeof(__x_n) == sizeof(long double) \\\n\
5448 \t\t\t\t\t ? isgreaterequal(__builtin_fabsl(__x_n),__LDBL_MIN__) \\\n\
5449 \t\t\t\t\t : isgreaterequal(__builtin_fabs(__x_n),__DBL_MIN__)), 1); })",
5450 "^#define[ \t]+isnormal\\(x\\)[ \t]+__builtin_isnormal\\(x\\)",
5453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5455 * Description of Solaris_Math_8 fix
5457 tSCC zSolaris_Math_8Name[] =
5461 * File name selection pattern
5463 tSCC zSolaris_Math_8List[] =
5466 * Machine/OS name selection pattern
5468 #define apzSolaris_Math_8Machs (const char**)NULL
5471 * content selection pattern - do fix if pattern found
5473 tSCC zSolaris_Math_8Select0[] =
5474 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5477 * content bypass pattern - skip fix if pattern found
5479 tSCC zSolaris_Math_8Bypass0[] =
5482 #define SOLARIS_MATH_8_TEST_CT 2
5483 static tTestDesc aSolaris_Math_8Tests[] = {
5484 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5485 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5488 * Fix Command Arguments for Solaris_Math_8
5490 static const char* apzSolaris_Math_8Patch[] = {
5492 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5493 \t\t\t ? __builtin_signbitf(x) \\\n\
5494 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
5495 \t\t\t ? __builtin_signbitl(x) \\\n\
5496 \t\t\t : __builtin_signbit(x))",
5497 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5502 * Description of Solaris_Math_9 fix
5504 tSCC zSolaris_Math_9Name[] =
5508 * File name selection pattern
5510 tSCC zSolaris_Math_9List[] =
5513 * Machine/OS name selection pattern
5515 #define apzSolaris_Math_9Machs (const char**)NULL
5518 * content selection pattern - do fix if pattern found
5520 tSCC zSolaris_Math_9Select0[] =
5521 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5524 * content bypass pattern - skip fix if pattern found
5526 tSCC zSolaris_Math_9Bypass0[] =
5529 #define SOLARIS_MATH_9_TEST_CT 2
5530 static tTestDesc aSolaris_Math_9Tests[] = {
5531 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
5532 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
5535 * Fix Command Arguments for Solaris_Math_9
5537 static const char* apzSolaris_Math_9Patch[] = {
5539 "#define\t%1(x, y)%2__builtin_%1(x, y)",
5540 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5543 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5545 * Description of Solaris_Mutex_Init_1 fix
5547 tSCC zSolaris_Mutex_Init_1Name[] =
5548 "solaris_mutex_init_1";
5551 * File name selection pattern
5553 tSCC zSolaris_Mutex_Init_1List[] =
5556 * Machine/OS name selection pattern
5558 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
5561 * content selection pattern - do fix if pattern found
5563 tSCC zSolaris_Mutex_Init_1Select0[] =
5564 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
5566 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
5567 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
5568 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
5571 * Fix Command Arguments for Solaris_Mutex_Init_1
5573 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
5574 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
5575 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
5578 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5580 * Description of Solaris_Mutex_Init_2 fix
5582 tSCC zSolaris_Mutex_Init_2Name[] =
5583 "solaris_mutex_init_2";
5586 * File name selection pattern
5588 tSCC zSolaris_Mutex_Init_2List[] =
5591 * Machine/OS name selection pattern
5593 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
5594 "*-*-solaris2.[0-9]",
5595 "*-*-solaris2.[0-9][!0-9]*",
5596 (const char*)NULL };
5599 * content selection pattern - do fix if pattern found
5601 tSCC zSolaris_Mutex_Init_2Select0[] =
5602 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5604 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
5605 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
5606 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
5609 * Fix Command Arguments for Solaris_Mutex_Init_2
5611 static const char* apzSolaris_Mutex_Init_2Patch[] = {
5613 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5618 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
5619 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
5622 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5624 * Description of Solaris_Rwlock_Init_1 fix
5626 tSCC zSolaris_Rwlock_Init_1Name[] =
5627 "solaris_rwlock_init_1";
5630 * File name selection pattern
5632 tSCC zSolaris_Rwlock_Init_1List[] =
5635 * Machine/OS name selection pattern
5637 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
5639 (const char*)NULL };
5642 * content selection pattern - do fix if pattern found
5644 tSCC zSolaris_Rwlock_Init_1Select0[] =
5645 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5647 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
5648 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
5649 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
5652 * Fix Command Arguments for Solaris_Rwlock_Init_1
5654 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
5656 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5659 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
5661 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
5664 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5666 * Description of Solaris_Once_Init_1 fix
5668 tSCC zSolaris_Once_Init_1Name[] =
5669 "solaris_once_init_1";
5672 * File name selection pattern
5674 tSCC zSolaris_Once_Init_1List[] =
5677 * Machine/OS name selection pattern
5679 tSCC* apzSolaris_Once_Init_1Machs[] = {
5681 (const char*)NULL };
5684 * content selection pattern - do fix if pattern found
5686 tSCC zSolaris_Once_Init_1Select0[] =
5687 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5689 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
5690 static tTestDesc aSolaris_Once_Init_1Tests[] = {
5691 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
5694 * Fix Command Arguments for Solaris_Once_Init_1
5696 static const char* apzSolaris_Once_Init_1Patch[] = {
5699 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
5702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5704 * Description of Solaris_Once_Init_2 fix
5706 tSCC zSolaris_Once_Init_2Name[] =
5707 "solaris_once_init_2";
5710 * File name selection pattern
5712 tSCC zSolaris_Once_Init_2List[] =
5715 * Machine/OS name selection pattern
5717 tSCC* apzSolaris_Once_Init_2Machs[] = {
5718 "*-*-solaris2.[0-9]",
5719 "*-*-solaris2.[0-9][!0-9]*",
5720 (const char*)NULL };
5723 * content selection pattern - do fix if pattern found
5725 tSCC zSolaris_Once_Init_2Select0[] =
5726 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5728 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
5729 static tTestDesc aSolaris_Once_Init_2Tests[] = {
5730 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
5733 * Fix Command Arguments for Solaris_Once_Init_2
5735 static const char* apzSolaris_Once_Init_2Patch[] = {
5737 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5740 %1{0}, {0}, {0}, {%3}%4\n\
5742 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
5745 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5747 * Description of Solaris_Socket fix
5749 tSCC zSolaris_SocketName[] =
5753 * File name selection pattern
5755 tSCC zSolaris_SocketList[] =
5758 * Machine/OS name selection pattern
5760 #define apzSolaris_SocketMachs (const char**)NULL
5763 * content selection pattern - do fix if pattern found
5765 tSCC zSolaris_SocketSelect0[] =
5766 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
5768 #define SOLARIS_SOCKET_TEST_CT 1
5769 static tTestDesc aSolaris_SocketTests[] = {
5770 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
5773 * Fix Command Arguments for Solaris_Socket
5775 static const char* apzSolaris_SocketPatch[] = {
5777 "extern int %1(int, %2void *, int, int);",
5778 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
5781 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5783 * Description of Solaris_Stdio_Tag fix
5785 tSCC zSolaris_Stdio_TagName[] =
5786 "solaris_stdio_tag";
5789 * File name selection pattern
5791 tSCC zSolaris_Stdio_TagList[] =
5794 * Machine/OS name selection pattern
5796 #define apzSolaris_Stdio_TagMachs (const char**)NULL
5799 * content selection pattern - do fix if pattern found
5801 tSCC zSolaris_Stdio_TagSelect0[] =
5802 "__cplusplus < 54321L";
5805 * content bypass pattern - skip fix if pattern found
5807 tSCC zSolaris_Stdio_TagBypass0[] =
5810 #define SOLARIS_STDIO_TAG_TEST_CT 2
5811 static tTestDesc aSolaris_Stdio_TagTests[] = {
5812 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
5813 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
5816 * Fix Command Arguments for Solaris_Stdio_Tag
5818 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
5819 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
5822 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5824 * Description of Solaris_Unistd fix
5826 tSCC zSolaris_UnistdName[] =
5830 * File name selection pattern
5832 tSCC zSolaris_UnistdList[] =
5835 * Machine/OS name selection pattern
5837 #define apzSolaris_UnistdMachs (const char**)NULL
5840 * content selection pattern - do fix if pattern found
5842 tSCC zSolaris_UnistdSelect0[] =
5843 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
5846 * content bypass pattern - skip fix if pattern found
5848 tSCC zSolaris_UnistdBypass0[] =
5851 #define SOLARIS_UNISTD_TEST_CT 2
5852 static tTestDesc aSolaris_UnistdTests[] = {
5853 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
5854 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
5857 * Fix Command Arguments for Solaris_Unistd
5859 static const char* apzSolaris_UnistdPatch[] = {
5861 "extern int getpagesize();\n\
5863 "^extern (pid_t|int) getpgid\\(.*\\);",
5866 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5868 * Description of Solaris_Widec fix
5870 tSCC zSolaris_WidecName[] =
5874 * File name selection pattern
5876 tSCC zSolaris_WidecList[] =
5879 * Machine/OS name selection pattern
5881 tSCC* apzSolaris_WidecMachs[] = {
5882 "*-*-solaris2.[0-5]",
5883 "*-*-solaris2.[0-5].*",
5884 (const char*)NULL };
5887 * content selection pattern - do fix if pattern found
5889 tSCC zSolaris_WidecSelect0[] =
5893 * content bypass pattern - skip fix if pattern found
5895 tSCC zSolaris_WidecBypass0[] =
5896 "include.*wchar\\.h";
5898 #define SOLARIS_WIDEC_TEST_CT 2
5899 static tTestDesc aSolaris_WidecTests[] = {
5900 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
5901 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
5904 * Fix Command Arguments for Solaris_Widec
5906 static const char* apzSolaris_WidecPatch[] = {
5909 #include <wchar.h>",
5912 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5914 * Description of Statsswtch fix
5916 tSCC zStatsswtchName[] =
5920 * File name selection pattern
5922 tSCC zStatsswtchList[] =
5925 * Machine/OS name selection pattern
5927 #define apzStatsswtchMachs (const char**)NULL
5930 * content selection pattern - do fix if pattern found
5932 tSCC zStatsswtchSelect0[] =
5935 #define STATSSWTCH_TEST_CT 1
5936 static tTestDesc aStatsswtchTests[] = {
5937 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
5940 * Fix Command Arguments for Statsswtch
5942 static const char* apzStatsswtchPatch[] = {
5947 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5949 * Description of Stdio_Stdarg_H fix
5951 tSCC zStdio_Stdarg_HName[] =
5955 * File name selection pattern
5957 tSCC zStdio_Stdarg_HList[] =
5960 * Machine/OS name selection pattern
5962 tSCC* apzStdio_Stdarg_HMachs[] = {
5963 "*-*-solaris2.1[0-9]*",
5964 (const char*)NULL };
5967 * content bypass pattern - skip fix if pattern found
5969 tSCC zStdio_Stdarg_HBypass0[] =
5970 "include.*(stdarg.h|machine/ansi.h)";
5972 #define STDIO_STDARG_H_TEST_CT 1
5973 static tTestDesc aStdio_Stdarg_HTests[] = {
5974 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
5977 * Fix Command Arguments for Stdio_Stdarg_H
5979 static const char* apzStdio_Stdarg_HPatch[] = {
5981 "#define __need___va_list\n\
5982 #include <stdarg.h>\n",
5985 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5987 * Description of Stdio_Va_List fix
5989 tSCC zStdio_Va_ListName[] =
5993 * File name selection pattern
5995 tSCC zStdio_Va_ListList[] =
5996 "|stdio.h|internal/stdio_core.h|internal/wchar_core.h|";
5998 * Machine/OS name selection pattern
6000 tSCC* apzStdio_Va_ListMachs[] = {
6001 "*-*-solaris2.1[0-9]*",
6002 (const char*)NULL };
6005 * content bypass pattern - skip fix if pattern found
6007 tSCC zStdio_Va_ListBypass0[] =
6008 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6010 #define STDIO_VA_LIST_TEST_CT 1
6011 static tTestDesc aStdio_Va_ListTests[] = {
6012 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6015 * Fix Command Arguments for Stdio_Va_List
6017 static const char* apzStdio_Va_ListPatch[] = { "sed",
6018 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6019 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6020 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6021 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6022 s@ va_list@ __not_va_list__@\n\
6023 s@\\*va_list@*__not_va_list__@\n\
6024 s@ __va_list)@ __gnuc_va_list)@\n\
6025 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6026 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6027 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6028 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6029 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6030 s@VA_LIST@DUMMY_VA_LIST@\n\
6031 s@_Va_LIST@_VA_LIST@",
6034 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6036 * Description of Stdio_Va_List_Clients fix
6038 tSCC zStdio_Va_List_ClientsName[] =
6039 "stdio_va_list_clients";
6042 * File name selection pattern
6044 tSCC zStdio_Va_List_ClientsList[] =
6045 "|com_err.h|cps.h|curses.h|krb5.h|lc_core.h|pfmt.h|wchar.h|curses_colr/curses.h|";
6047 * Machine/OS name selection pattern
6049 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6052 * content bypass pattern - skip fix if pattern found
6054 tSCC zStdio_Va_List_ClientsBypass0[] =
6055 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6056 tSCC zStdio_Va_List_ClientsBypass1[] =
6057 "include <stdarg\\.h>|#ifdef va_start";
6059 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
6060 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6061 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6062 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6065 * Fix Command Arguments for Stdio_Va_List_Clients
6067 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
6068 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6069 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6070 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6071 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6072 s@ va_list@ __not_va_list__@\n\
6073 s@\\*va_list@*__not_va_list__@\n\
6074 s@ __va_list)@ __gnuc_va_list)@\n\
6075 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6076 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6077 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6078 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6079 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6080 s@VA_LIST@DUMMY_VA_LIST@\n\
6081 s@_Va_LIST@_VA_LIST@",
6084 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6086 * Description of Strict_Ansi_Not fix
6088 tSCC zStrict_Ansi_NotName[] =
6092 * File name selection pattern
6094 #define zStrict_Ansi_NotList (char*)NULL
6096 * Machine/OS name selection pattern
6098 #define apzStrict_Ansi_NotMachs (const char**)NULL
6101 * content selection pattern - do fix if pattern found
6103 tSCC zStrict_Ansi_NotSelect0[] =
6104 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6107 * content bypass pattern - skip fix if pattern found
6109 tSCC zStrict_Ansi_NotBypass0[] =
6110 "GNU and MIPS C compilers define __STDC__ differently";
6111 tSCC zStrict_Ansi_NotBypass1[] =
6112 "__SCO_VERSION__.*__STDC__ != 1";
6115 * perform the C function call test
6117 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6119 #define STRICT_ANSI_NOT_TEST_CT 4
6120 static tTestDesc aStrict_Ansi_NotTests[] = {
6121 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
6122 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6123 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6124 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6127 * Fix Command Arguments for Strict_Ansi_Not
6129 static const char* apzStrict_Ansi_NotPatch[] = {
6131 "%1 !defined(__STRICT_ANSI__)",
6134 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6136 * Description of Strict_Ansi_Not_Ctd fix
6138 tSCC zStrict_Ansi_Not_CtdName[] =
6139 "strict_ansi_not_ctd";
6142 * File name selection pattern
6144 tSCC zStrict_Ansi_Not_CtdList[] =
6145 "|math.h|limits.h|stdio.h|signal.h|stdlib.h|sys/signal.h|time.h|";
6147 * Machine/OS name selection pattern
6149 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6152 * content selection pattern - do fix if pattern found
6154 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6155 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6158 * perform the C function call test
6160 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6162 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
6163 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6164 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6165 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6168 * Fix Command Arguments for Strict_Ansi_Not_Ctd
6170 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6172 "%1 !defined(__STRICT_ANSI__)",
6175 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6177 * Description of Strict_Ansi_Only fix
6179 tSCC zStrict_Ansi_OnlyName[] =
6183 * File name selection pattern
6185 #define zStrict_Ansi_OnlyList (char*)NULL
6187 * Machine/OS name selection pattern
6189 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6192 * content selection pattern - do fix if pattern found
6194 tSCC zStrict_Ansi_OnlySelect0[] =
6195 "^([ \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)";
6198 * perform the C function call test
6200 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6202 #define STRICT_ANSI_ONLY_TEST_CT 2
6203 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6204 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6205 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6208 * Fix Command Arguments for Strict_Ansi_Only
6210 static const char* apzStrict_Ansi_OnlyPatch[] = {
6212 "%1 defined(__STRICT_ANSI__)",
6215 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6217 * Description of Struct_File fix
6219 tSCC zStruct_FileName[] =
6223 * File name selection pattern
6225 tSCC zStruct_FileList[] =
6228 * Machine/OS name selection pattern
6230 #define apzStruct_FileMachs (const char**)NULL
6233 * content selection pattern - do fix if pattern found
6235 tSCC zStruct_FileSelect0[] =
6236 "^.*xdrstdio_create.*struct __file_s";
6238 #define STRUCT_FILE_TEST_CT 1
6239 static tTestDesc aStruct_FileTests[] = {
6240 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6243 * Fix Command Arguments for Struct_File
6245 static const char* apzStruct_FilePatch[] = {
6247 "struct __file_s;\n\
6251 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6253 * Description of Struct_Sockaddr fix
6255 tSCC zStruct_SockaddrName[] =
6259 * File name selection pattern
6261 tSCC zStruct_SockaddrList[] =
6264 * Machine/OS name selection pattern
6266 #define apzStruct_SockaddrMachs (const char**)NULL
6269 * content selection pattern - do fix if pattern found
6271 tSCC zStruct_SockaddrSelect0[] =
6272 "^.*authdes_create.*struct sockaddr[^_]";
6275 * content bypass pattern - skip fix if pattern found
6277 tSCC zStruct_SockaddrBypass0[] =
6279 tSCC zStruct_SockaddrBypass1[] =
6280 "struct sockaddr;\n";
6282 #define STRUCT_SOCKADDR_TEST_CT 3
6283 static tTestDesc aStruct_SockaddrTests[] = {
6284 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6285 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6286 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6289 * Fix Command Arguments for Struct_Sockaddr
6291 static const char* apzStruct_SockaddrPatch[] = {
6293 "struct sockaddr;\n\
6297 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6299 * Description of Sun_Auth_Proto fix
6301 tSCC zSun_Auth_ProtoName[] =
6305 * File name selection pattern
6307 tSCC zSun_Auth_ProtoList[] =
6308 "|rpc/auth.h|rpc/clnt.h|rpc/svc.h|rpc/xdr.h|";
6310 * Machine/OS name selection pattern
6312 #define apzSun_Auth_ProtoMachs (const char**)NULL
6315 * content selection pattern - do fix if pattern found
6317 tSCC zSun_Auth_ProtoSelect0[] =
6318 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6321 * content bypass pattern - skip fix if pattern found
6323 tSCC zSun_Auth_ProtoBypass0[] =
6326 #define SUN_AUTH_PROTO_TEST_CT 2
6327 static tTestDesc aSun_Auth_ProtoTests[] = {
6328 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6329 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6332 * Fix Command Arguments for Sun_Auth_Proto
6334 static const char* apzSun_Auth_ProtoPatch[] = {
6336 "#ifdef __cplusplus\n\
6341 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6344 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6346 * Description of Sun_Bogus_Ifdef fix
6348 tSCC zSun_Bogus_IfdefName[] =
6352 * File name selection pattern
6354 tSCC zSun_Bogus_IfdefList[] =
6355 "|hsfs/hsfs_spec.h|hsfs/iso_spec.h|";
6357 * Machine/OS name selection pattern
6359 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6362 * content selection pattern - do fix if pattern found
6364 tSCC zSun_Bogus_IfdefSelect0[] =
6365 "#ifdef(.*\\|\\|.*)";
6367 #define SUN_BOGUS_IFDEF_TEST_CT 1
6368 static tTestDesc aSun_Bogus_IfdefTests[] = {
6369 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6372 * Fix Command Arguments for Sun_Bogus_Ifdef
6374 static const char* apzSun_Bogus_IfdefPatch[] = {
6379 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6381 * Description of Sun_Catmacro fix
6383 tSCC zSun_CatmacroName[] =
6387 * File name selection pattern
6389 tSCC zSun_CatmacroList[] =
6390 "|pixrect/memvar.h|";
6392 * Machine/OS name selection pattern
6394 #define apzSun_CatmacroMachs (const char**)NULL
6397 * content selection pattern - do fix if pattern found
6399 tSCC zSun_CatmacroSelect0[] =
6400 "^#define[ \t]+CAT\\(a,b\\).*";
6402 #define SUN_CATMACRO_TEST_CT 1
6403 static tTestDesc aSun_CatmacroTests[] = {
6404 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
6407 * Fix Command Arguments for Sun_Catmacro
6409 static const char* apzSun_CatmacroPatch[] = {
6412 # define CAT(a,b) a##b\n\
6418 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6420 * Description of Sun_Malloc fix
6422 tSCC zSun_MallocName[] =
6426 * File name selection pattern
6428 tSCC zSun_MallocList[] =
6431 * Machine/OS name selection pattern
6433 #define apzSun_MallocMachs (const char**)NULL
6436 * content bypass pattern - skip fix if pattern found
6438 tSCC zSun_MallocBypass0[] =
6439 "_CLASSIC_ANSI_TYPES";
6441 #define SUN_MALLOC_TEST_CT 1
6442 static tTestDesc aSun_MallocTests[] = {
6443 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
6446 * Fix Command Arguments for Sun_Malloc
6448 static const char* apzSun_MallocPatch[] = { "sed",
6449 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6450 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6451 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6452 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6453 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6456 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6458 * Description of Sun_Rusers_Semi fix
6460 tSCC zSun_Rusers_SemiName[] =
6464 * File name selection pattern
6466 tSCC zSun_Rusers_SemiList[] =
6467 "|rpcsvc/rusers.h|";
6469 * Machine/OS name selection pattern
6471 #define apzSun_Rusers_SemiMachs (const char**)NULL
6474 * content selection pattern - do fix if pattern found
6476 tSCC zSun_Rusers_SemiSelect0[] =
6479 #define SUN_RUSERS_SEMI_TEST_CT 1
6480 static tTestDesc aSun_Rusers_SemiTests[] = {
6481 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6484 * Fix Command Arguments for Sun_Rusers_Semi
6486 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
6487 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6492 * Description of Sun_Signal fix
6494 tSCC zSun_SignalName[] =
6498 * File name selection pattern
6500 tSCC zSun_SignalList[] =
6501 "|sys/signal.h|signal.h|";
6503 * Machine/OS name selection pattern
6505 #define apzSun_SignalMachs (const char**)NULL
6508 * content selection pattern - do fix if pattern found
6510 tSCC zSun_SignalSelect0[] =
6511 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6513 #define SUN_SIGNAL_TEST_CT 1
6514 static tTestDesc aSun_SignalTests[] = {
6515 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
6518 * Fix Command Arguments for Sun_Signal
6520 static const char* apzSun_SignalPatch[] = {
6522 "#ifdef __cplusplus\n\
6523 void\t(*signal(...))(...);\n\
6529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6531 * Description of Sunos_Strlen fix
6533 tSCC zSunos_StrlenName[] =
6537 * File name selection pattern
6539 tSCC zSunos_StrlenList[] =
6542 * Machine/OS name selection pattern
6544 #define apzSunos_StrlenMachs (const char**)NULL
6547 * content selection pattern - do fix if pattern found
6549 tSCC zSunos_StrlenSelect0[] =
6550 "int[ \t]*strlen\\(\\);(.*)";
6552 #define SUNOS_STRLEN_TEST_CT 1
6553 static tTestDesc aSunos_StrlenTests[] = {
6554 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
6557 * Fix Command Arguments for Sunos_Strlen
6559 static const char* apzSunos_StrlenPatch[] = {
6561 "__SIZE_TYPE__ strlen();%1",
6564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6566 * Description of Svr4_Disable_Opt fix
6568 tSCC zSvr4_Disable_OptName[] =
6572 * File name selection pattern
6574 tSCC zSvr4_Disable_OptList[] =
6577 * Machine/OS name selection pattern
6579 #define apzSvr4_Disable_OptMachs (const char**)NULL
6582 * content selection pattern - do fix if pattern found
6584 tSCC zSvr4_Disable_OptSelect0[] =
6585 "#define.*__std_hdr_";
6587 #define SVR4_DISABLE_OPT_TEST_CT 1
6588 static tTestDesc aSvr4_Disable_OptTests[] = {
6589 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
6592 * Fix Command Arguments for Svr4_Disable_Opt
6594 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
6595 "-e", "/#define.*__std_hdr_/d",
6598 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6600 * Description of Svr4_Getcwd fix
6602 tSCC zSvr4_GetcwdName[] =
6606 * File name selection pattern
6608 tSCC zSvr4_GetcwdList[] =
6609 "|stdlib.h|unistd.h|prototypes.h|";
6611 * Machine/OS name selection pattern
6613 #define apzSvr4_GetcwdMachs (const char**)NULL
6616 * content selection pattern - do fix if pattern found
6618 tSCC zSvr4_GetcwdSelect0[] =
6619 "getcwd\\(char \\*, int\\)";
6621 #define SVR4_GETCWD_TEST_CT 1
6622 static tTestDesc aSvr4_GetcwdTests[] = {
6623 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
6626 * Fix Command Arguments for Svr4_Getcwd
6628 static const char* apzSvr4_GetcwdPatch[] = {
6630 "getcwd(char *, size_t)",
6633 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6635 * Description of Svr4_Krnl fix
6637 tSCC zSvr4_KrnlName[] =
6641 * File name selection pattern
6643 tSCC zSvr4_KrnlList[] =
6644 "|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|";
6646 * Machine/OS name selection pattern
6648 tSCC* apzSvr4_KrnlMachs[] = {
6650 "i?86-sequent-ptx*",
6651 (const char*)NULL };
6654 * content bypass pattern - skip fix if pattern found
6656 tSCC zSvr4_KrnlBypass0[] =
6659 #define SVR4_KRNL_TEST_CT 1
6660 static tTestDesc aSvr4_KrnlTests[] = {
6661 { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, };
6664 * Fix Command Arguments for Svr4_Krnl
6666 static const char* apzSvr4_KrnlPatch[] = {
6669 "#endif /* _KERNEL */\n",
6672 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6674 * Description of Svr4_Profil fix
6676 tSCC zSvr4_ProfilName[] =
6680 * File name selection pattern
6682 tSCC zSvr4_ProfilList[] =
6683 "|stdlib.h|unistd.h|";
6685 * Machine/OS name selection pattern
6687 #define apzSvr4_ProfilMachs (const char**)NULL
6690 * content selection pattern - do fix if pattern found
6692 tSCC zSvr4_ProfilSelect0[] =
6693 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
6696 * content bypass pattern - skip fix if pattern found
6698 tSCC zSvr4_ProfilBypass0[] =
6701 #define SVR4_PROFIL_TEST_CT 2
6702 static tTestDesc aSvr4_ProfilTests[] = {
6703 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
6704 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
6707 * Fix Command Arguments for Svr4_Profil
6709 static const char* apzSvr4_ProfilPatch[] = {
6711 "profil(unsigned short *, size_t, int, unsigned int)",
6714 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6716 * Description of Svr4_Sighandler_Type fix
6718 tSCC zSvr4_Sighandler_TypeName[] =
6719 "svr4_sighandler_type";
6722 * File name selection pattern
6724 tSCC zSvr4_Sighandler_TypeList[] =
6727 * Machine/OS name selection pattern
6729 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
6732 * content selection pattern - do fix if pattern found
6734 tSCC zSvr4_Sighandler_TypeSelect0[] =
6735 "void *\\(\\*\\)\\(\\)";
6737 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
6738 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
6739 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
6742 * Fix Command Arguments for Svr4_Sighandler_Type
6744 static const char* apzSvr4_Sighandler_TypePatch[] = {
6749 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6751 * Description of Svr4_Undeclared_Getrnge fix
6753 tSCC zSvr4_Undeclared_GetrngeName[] =
6754 "svr4_undeclared_getrnge";
6757 * File name selection pattern
6759 tSCC zSvr4_Undeclared_GetrngeList[] =
6762 * Machine/OS name selection pattern
6764 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
6767 * content selection pattern - do fix if pattern found
6769 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
6773 * content bypass pattern - skip fix if pattern found
6775 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
6776 "static void getrnge";
6778 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
6779 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
6780 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
6781 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
6784 * Fix Command Arguments for Svr4_Undeclared_Getrnge
6786 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
6789 static int getrnge ();",
6790 "^static int[ \t]+size;",
6793 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6795 * Description of Sysv68_String fix
6797 tSCC zSysv68_StringName[] =
6801 * File name selection pattern
6803 tSCC zSysv68_StringList[] =
6804 "|testing.h|string.h|";
6806 * Machine/OS name selection pattern
6808 #define apzSysv68_StringMachs (const char**)NULL
6811 * content bypass pattern - skip fix if pattern found
6813 tSCC zSysv68_StringBypass0[] =
6814 "_CLASSIC_ANSI_TYPES";
6816 #define SYSV68_STRING_TEST_CT 1
6817 static tTestDesc aSysv68_StringTests[] = {
6818 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
6821 * Fix Command Arguments for Sysv68_String
6823 static const char* apzSysv68_StringPatch[] = { "sed",
6824 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
6825 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
6826 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
6827 "-e", "/^extern char$/N",
6828 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
6829 "-e", "/^extern int$/N",
6830 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
6831 "-e", "/^\tstrncmp(),$/N",
6832 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
6833 extern unsigned int\\\n\
6837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6839 * Description of Sysz_Stdlib_For_Sun fix
6841 tSCC zSysz_Stdlib_For_SunName[] =
6842 "sysz_stdlib_for_sun";
6845 * File name selection pattern
6847 tSCC zSysz_Stdlib_For_SunList[] =
6850 * Machine/OS name selection pattern
6852 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
6855 * content selection pattern - do fix if pattern found
6857 tSCC zSysz_Stdlib_For_SunSelect0[] =
6858 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
6861 * content bypass pattern - skip fix if pattern found
6863 tSCC zSysz_Stdlib_For_SunBypass0[] =
6864 "_CLASSIC_ANSI_TYPES";
6866 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
6867 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
6868 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
6869 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
6872 * Fix Command Arguments for Sysz_Stdlib_For_Sun
6874 static const char* apzSysz_Stdlib_For_SunPatch[] = {
6879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6881 * Description of Thread_Keyword fix
6883 tSCC zThread_KeywordName[] =
6887 * File name selection pattern
6889 tSCC zThread_KeywordList[] =
6890 "|pthread.h|bits/sigthread.h|";
6892 * Machine/OS name selection pattern
6894 #define apzThread_KeywordMachs (const char**)NULL
6897 * content selection pattern - do fix if pattern found
6899 tSCC zThread_KeywordSelect0[] =
6900 "([* ])__thread([,)])";
6902 #define THREAD_KEYWORD_TEST_CT 1
6903 static tTestDesc aThread_KeywordTests[] = {
6904 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
6907 * Fix Command Arguments for Thread_Keyword
6909 static const char* apzThread_KeywordPatch[] = {
6914 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6916 * Description of Tinfo_Cplusplus fix
6918 tSCC zTinfo_CplusplusName[] =
6922 * File name selection pattern
6924 tSCC zTinfo_CplusplusList[] =
6927 * Machine/OS name selection pattern
6929 #define apzTinfo_CplusplusMachs (const char**)NULL
6932 * content selection pattern - do fix if pattern found
6934 tSCC zTinfo_CplusplusSelect0[] =
6937 #define TINFO_CPLUSPLUS_TEST_CT 1
6938 static tTestDesc aTinfo_CplusplusTests[] = {
6939 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
6942 * Fix Command Arguments for Tinfo_Cplusplus
6944 static const char* apzTinfo_CplusplusPatch[] = {
6949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6951 * Description of Ultrix_Atexit_Param fix
6953 tSCC zUltrix_Atexit_ParamName[] =
6954 "ultrix_atexit_param";
6957 * File name selection pattern
6959 tSCC zUltrix_Atexit_ParamList[] =
6962 * Machine/OS name selection pattern
6964 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
6967 * content selection pattern - do fix if pattern found
6969 tSCC zUltrix_Atexit_ParamSelect0[] =
6970 "atexit\\(.*\\(\\)";
6972 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
6973 static tTestDesc aUltrix_Atexit_ParamTests[] = {
6974 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
6977 * Fix Command Arguments for Ultrix_Atexit_Param
6979 static const char* apzUltrix_Atexit_ParamPatch[] = {
6981 "atexit( void (*__func)( void )",
6984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6986 * Description of Ultrix_Atof_Param fix
6988 tSCC zUltrix_Atof_ParamName[] =
6989 "ultrix_atof_param";
6992 * File name selection pattern
6994 tSCC zUltrix_Atof_ParamList[] =
6997 * Machine/OS name selection pattern
6999 #define apzUltrix_Atof_ParamMachs (const char**)NULL
7002 * content selection pattern - do fix if pattern found
7004 tSCC zUltrix_Atof_ParamSelect0[] =
7005 "atof\\([ \t]*char";
7007 #define ULTRIX_ATOF_PARAM_TEST_CT 1
7008 static tTestDesc aUltrix_Atof_ParamTests[] = {
7009 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
7012 * Fix Command Arguments for Ultrix_Atof_Param
7014 static const char* apzUltrix_Atof_ParamPatch[] = {
7019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7021 * Description of Ultrix_Const fix
7023 tSCC zUltrix_ConstName[] =
7027 * File name selection pattern
7029 tSCC zUltrix_ConstList[] =
7032 * Machine/OS name selection pattern
7034 #define apzUltrix_ConstMachs (const char**)NULL
7037 * content selection pattern - do fix if pattern found
7039 tSCC zUltrix_ConstSelect0[] =
7040 "perror\\( char \\*";
7042 #define ULTRIX_CONST_TEST_CT 1
7043 static tTestDesc aUltrix_ConstTests[] = {
7044 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
7047 * Fix Command Arguments for Ultrix_Const
7049 static const char* apzUltrix_ConstPatch[] = {
7052 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7055 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7057 * Description of Ultrix_Const2 fix
7059 tSCC zUltrix_Const2Name[] =
7063 * File name selection pattern
7065 tSCC zUltrix_Const2List[] =
7068 * Machine/OS name selection pattern
7070 #define apzUltrix_Const2Machs (const char**)NULL
7073 * content selection pattern - do fix if pattern found
7075 tSCC zUltrix_Const2Select0[] =
7076 "\\*fopen\\( char \\*";
7078 #define ULTRIX_CONST2_TEST_CT 1
7079 static tTestDesc aUltrix_Const2Tests[] = {
7080 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
7083 * Fix Command Arguments for Ultrix_Const2
7085 static const char* apzUltrix_Const2Patch[] = {
7087 "%1( const char *%3, const char *",
7088 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7093 * Description of Ultrix_Const3 fix
7095 tSCC zUltrix_Const3Name[] =
7099 * File name selection pattern
7101 tSCC zUltrix_Const3List[] =
7104 * Machine/OS name selection pattern
7106 #define apzUltrix_Const3Machs (const char**)NULL
7109 * content selection pattern - do fix if pattern found
7111 tSCC zUltrix_Const3Select0[] =
7112 "fdopen\\( .*, char \\*";
7114 #define ULTRIX_CONST3_TEST_CT 1
7115 static tTestDesc aUltrix_Const3Tests[] = {
7116 { TT_EGREP, zUltrix_Const3Select0, (regex_t*)NULL }, };
7119 * Fix Command Arguments for Ultrix_Const3
7121 static const char* apzUltrix_Const3Patch[] = {
7124 "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
7127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7129 * Description of Ultrix_Fix_Fixproto fix
7131 tSCC zUltrix_Fix_FixprotoName[] =
7132 "ultrix_fix_fixproto";
7135 * File name selection pattern
7137 tSCC zUltrix_Fix_FixprotoList[] =
7140 * Machine/OS name selection pattern
7142 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
7145 * content selection pattern - do fix if pattern found
7147 tSCC zUltrix_Fix_FixprotoSelect0[] =
7150 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
7151 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
7152 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
7155 * Fix Command Arguments for Ultrix_Fix_Fixproto
7157 static const char* apzUltrix_Fix_FixprotoPatch[] = {
7161 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
7164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7166 * Description of Ultrix_Ifdef fix
7168 tSCC zUltrix_IfdefName[] =
7172 * File name selection pattern
7174 tSCC zUltrix_IfdefList[] =
7177 * Machine/OS name selection pattern
7179 #define apzUltrix_IfdefMachs (const char**)NULL
7182 * content selection pattern - do fix if pattern found
7184 tSCC zUltrix_IfdefSelect0[] =
7185 "^#ifdef KERNEL[ \t]+&&";
7187 #define ULTRIX_IFDEF_TEST_CT 1
7188 static tTestDesc aUltrix_IfdefTests[] = {
7189 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
7192 * Fix Command Arguments for Ultrix_Ifdef
7194 static const char* apzUltrix_IfdefPatch[] = {
7196 "#if defined(KERNEL) &&",
7199 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7201 * Description of Ultrix_Locale fix
7203 tSCC zUltrix_LocaleName[] =
7207 * File name selection pattern
7209 tSCC zUltrix_LocaleList[] =
7212 * Machine/OS name selection pattern
7214 #define apzUltrix_LocaleMachs (const char**)NULL
7217 * content selection pattern - do fix if pattern found
7219 tSCC zUltrix_LocaleSelect0[] =
7220 "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
7222 #define ULTRIX_LOCALE_TEST_CT 1
7223 static tTestDesc aUltrix_LocaleTests[] = {
7224 { TT_EGREP, zUltrix_LocaleSelect0, (regex_t*)NULL }, };
7227 * Fix Command Arguments for Ultrix_Locale
7229 static const char* apzUltrix_LocalePatch[] = {
7233 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7235 * Description of Ultrix_Math_Ifdef fix
7237 tSCC zUltrix_Math_IfdefName[] =
7238 "ultrix_math_ifdef";
7241 * File name selection pattern
7243 tSCC zUltrix_Math_IfdefList[] =
7244 "|sys/limits.h|float.h|math.h|";
7246 * Machine/OS name selection pattern
7248 #define apzUltrix_Math_IfdefMachs (const char**)NULL
7251 * content selection pattern - do fix if pattern found
7253 tSCC zUltrix_Math_IfdefSelect0[] =
7254 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
7256 #define ULTRIX_MATH_IFDEF_TEST_CT 1
7257 static tTestDesc aUltrix_Math_IfdefTests[] = {
7258 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
7261 * Fix Command Arguments for Ultrix_Math_Ifdef
7263 static const char* apzUltrix_Math_IfdefPatch[] = {
7268 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7270 * Description of Ultrix_Nested_Ioctl fix
7272 tSCC zUltrix_Nested_IoctlName[] =
7273 "ultrix_nested_ioctl";
7276 * File name selection pattern
7278 tSCC zUltrix_Nested_IoctlList[] =
7281 * Machine/OS name selection pattern
7283 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
7286 * content selection pattern - do fix if pattern found
7288 tSCC zUltrix_Nested_IoctlSelect0[] =
7289 "^/\\* #define SIOCSCREEN";
7291 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
7292 static tTestDesc aUltrix_Nested_IoctlTests[] = {
7293 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
7296 * Fix Command Arguments for Ultrix_Nested_Ioctl
7298 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
7299 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
7302 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7304 * Description of Ultrix_Nested_Svc fix
7306 tSCC zUltrix_Nested_SvcName[] =
7307 "ultrix_nested_svc";
7310 * File name selection pattern
7312 tSCC zUltrix_Nested_SvcList[] =
7315 * Machine/OS name selection pattern
7317 #define apzUltrix_Nested_SvcMachs (const char**)NULL
7320 * content selection pattern - do fix if pattern found
7322 tSCC zUltrix_Nested_SvcSelect0[] =
7323 "^ \\*[ \t]*int protocol; */\\*";
7325 #define ULTRIX_NESTED_SVC_TEST_CT 1
7326 static tTestDesc aUltrix_Nested_SvcTests[] = {
7327 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
7330 * Fix Command Arguments for Ultrix_Nested_Svc
7332 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
7333 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
7336 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7338 * Description of Ultrix_Stat fix
7340 tSCC zUltrix_StatName[] =
7344 * File name selection pattern
7346 tSCC zUltrix_StatList[] =
7349 * Machine/OS name selection pattern
7351 #define apzUltrix_StatMachs (const char**)NULL
7354 * content selection pattern - do fix if pattern found
7356 tSCC zUltrix_StatSelect0[] =
7357 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
7359 #define ULTRIX_STAT_TEST_CT 1
7360 static tTestDesc aUltrix_StatTests[] = {
7361 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
7364 * Fix Command Arguments for Ultrix_Stat
7366 static const char* apzUltrix_StatPatch[] = { "sed",
7367 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
7369 /* macro to test for symbolic link */\\\n\
7370 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
7371 "-e", "/^[ \t]*fstat(),$/a\\\n\
7375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7377 * Description of Ultrix_Static fix
7379 tSCC zUltrix_StaticName[] =
7383 * File name selection pattern
7385 tSCC zUltrix_StaticList[] =
7388 * Machine/OS name selection pattern
7390 #define apzUltrix_StaticMachs (const char**)NULL
7393 * content selection pattern - do fix if pattern found
7395 tSCC zUltrix_StaticSelect0[] =
7396 "#include \"r[34]_cpu";
7398 #define ULTRIX_STATIC_TEST_CT 1
7399 static tTestDesc aUltrix_StaticTests[] = {
7400 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
7403 * Fix Command Arguments for Ultrix_Static
7405 static const char* apzUltrix_StaticPatch[] = { "sed",
7406 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
7407 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
7408 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
7411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7413 * Description of Ultrix_Stdlib fix
7415 tSCC zUltrix_StdlibName[] =
7419 * File name selection pattern
7421 tSCC zUltrix_StdlibList[] =
7424 * Machine/OS name selection pattern
7426 #define apzUltrix_StdlibMachs (const char**)NULL
7429 * content selection pattern - do fix if pattern found
7431 tSCC zUltrix_StdlibSelect0[] =
7432 "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
7434 #define ULTRIX_STDLIB_TEST_CT 1
7435 static tTestDesc aUltrix_StdlibTests[] = {
7436 { TT_EGREP, zUltrix_StdlibSelect0, (regex_t*)NULL }, };
7439 * Fix Command Arguments for Ultrix_Stdlib
7441 static const char* apzUltrix_StdlibPatch[] = { "sed",
7442 "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
7443 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
7444 void\t\tunsetenv( const char *__name );\\\n\
7445 int\t\tputenv( char *__s );\n",
7446 "-e", "/^char.*getenv();.*$/a\\\n\
7448 void\tunsetenv();\\\n\
7452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7454 * Description of Ultrix_Strings fix
7456 tSCC zUltrix_StringsName[] =
7460 * File name selection pattern
7462 tSCC zUltrix_StringsList[] =
7465 * Machine/OS name selection pattern
7467 #define apzUltrix_StringsMachs (const char**)NULL
7470 * content selection pattern - do fix if pattern found
7472 tSCC zUltrix_StringsSelect0[] =
7473 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7475 #define ULTRIX_STRINGS_TEST_CT 1
7476 static tTestDesc aUltrix_StringsTests[] = {
7477 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
7480 * Fix Command Arguments for Ultrix_Strings
7482 static const char* apzUltrix_StringsPatch[] = {
7486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7488 * Description of Ultrix_Strings2 fix
7490 tSCC zUltrix_Strings2Name[] =
7494 * File name selection pattern
7496 tSCC zUltrix_Strings2List[] =
7499 * Machine/OS name selection pattern
7501 #define apzUltrix_Strings2Machs (const char**)NULL
7504 * content selection pattern - do fix if pattern found
7506 tSCC zUltrix_Strings2Select0[] =
7507 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7509 #define ULTRIX_STRINGS2_TEST_CT 1
7510 static tTestDesc aUltrix_Strings2Tests[] = {
7511 { TT_EGREP, zUltrix_Strings2Select0, (regex_t*)NULL }, };
7514 * Fix Command Arguments for Ultrix_Strings2
7516 static const char* apzUltrix_Strings2Patch[] = { "sed",
7517 "-e", "/^.*strncmp( const .* );.*/a\\\n\
7520 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
7521 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
7522 "-e", "/^.*strncmp();.*/a\\\n\
7524 \tstrcasecmp(),\\\n\
7525 \tstrncasecmp();\n",
7528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7530 * Description of Ultrix_Sys_Time fix
7532 tSCC zUltrix_Sys_TimeName[] =
7536 * File name selection pattern
7538 tSCC zUltrix_Sys_TimeList[] =
7541 * Machine/OS name selection pattern
7543 #define apzUltrix_Sys_TimeMachs (const char**)NULL
7546 * content selection pattern - do fix if pattern found
7548 tSCC zUltrix_Sys_TimeSelect0[] =
7549 "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
7551 #define ULTRIX_SYS_TIME_TEST_CT 1
7552 static tTestDesc aUltrix_Sys_TimeTests[] = {
7553 { TT_EGREP, zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
7556 * Fix Command Arguments for Ultrix_Sys_Time
7558 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
7559 "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
7561 extern int adjtime(struct timeval *, struct timeval *);\\\n\
7562 extern int getitimer(int, struct itimerval *);\\\n\
7563 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
7564 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
7565 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
7566 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
7567 extern int stime(const time_t *);\\\n\
7568 extern int utimes(const char *, const struct timeval[2]);\\\n\
7569 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
7570 "-e", "/^extern.*double.*difftime();.*$/a\\\n\
7571 extern\tint adjtime();\\\n\
7572 extern\tint getitimer();\\\n\
7573 extern\tint setitimer();\\\n\
7574 extern\tint gettimeofday();\\\n\
7575 extern\tint settimeofday();\\\n\
7576 extern\tvoid profil();\\\n\
7577 extern\tint stime();\\\n\
7578 extern\tint utimes();\\\n\
7579 extern\tint select();\n",
7582 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7584 * Description of Ultrix_Unistd fix
7586 tSCC zUltrix_UnistdName[] =
7590 * File name selection pattern
7592 tSCC zUltrix_UnistdList[] =
7595 * Machine/OS name selection pattern
7597 #define apzUltrix_UnistdMachs (const char**)NULL
7600 * content selection pattern - do fix if pattern found
7602 tSCC zUltrix_UnistdSelect0[] =
7603 "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
7605 #define ULTRIX_UNISTD_TEST_CT 1
7606 static tTestDesc aUltrix_UnistdTests[] = {
7607 { TT_EGREP, zUltrix_UnistdSelect0, (regex_t*)NULL }, };
7610 * Fix Command Arguments for Ultrix_Unistd
7612 static const char* apzUltrix_UnistdPatch[] = { "sed",
7613 "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
7614 \tgetpagesize(),\n",
7615 "-e", "/^[ \t]*fork(),.*$/a\\\n\
7619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7621 * Description of Unicosmk_Restrict fix
7623 tSCC zUnicosmk_RestrictName[] =
7624 "unicosmk_restrict";
7627 * File name selection pattern
7629 tSCC zUnicosmk_RestrictList[] =
7630 "|stdio.h|stdlib.h|wchar.h|";
7632 * Machine/OS name selection pattern
7634 tSCC* apzUnicosmk_RestrictMachs[] = {
7636 (const char*)NULL };
7639 * content selection pattern - do fix if pattern found
7641 tSCC zUnicosmk_RestrictSelect0[] =
7642 "(\\*[ \t]*)restrict([ \t]+)";
7644 #define UNICOSMK_RESTRICT_TEST_CT 1
7645 static tTestDesc aUnicosmk_RestrictTests[] = {
7646 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
7649 * Fix Command Arguments for Unicosmk_Restrict
7651 static const char* apzUnicosmk_RestrictPatch[] = {
7656 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7658 * Description of Uw7_Byteorder_Fix fix
7660 tSCC zUw7_Byteorder_FixName[] =
7661 "uw7_byteorder_fix";
7664 * File name selection pattern
7666 tSCC zUw7_Byteorder_FixList[] =
7669 * Machine/OS name selection pattern
7671 tSCC* apzUw7_Byteorder_FixMachs[] = {
7675 "i?86-*-solaris2.[0-4]",
7676 "powerpcle-*-solaris2.[0-4]",
7677 "sparc-*-solaris2.[0-4]",
7678 (const char*)NULL };
7681 * content selection pattern - do fix if pattern found
7683 tSCC zUw7_Byteorder_FixSelect0[] =
7687 * perform the 'test' shell command - do fix on success
7689 tSCC zUw7_Byteorder_FixTest0[] =
7690 "-f sys/byteorder.h";
7692 #define UW7_BYTEORDER_FIX_TEST_CT 2
7693 static tTestDesc aUw7_Byteorder_FixTests[] = {
7694 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
7695 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
7698 * Fix Command Arguments for Uw7_Byteorder_Fix
7700 static const char* apzUw7_Byteorder_FixPatch[] = {
7703 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
7706 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7708 * Description of Va_I960_Macro fix
7710 tSCC zVa_I960_MacroName[] =
7714 * File name selection pattern
7716 tSCC zVa_I960_MacroList[] =
7717 "|arch/i960/archI960.h|";
7719 * Machine/OS name selection pattern
7721 #define apzVa_I960_MacroMachs (const char**)NULL
7724 * content selection pattern - do fix if pattern found
7726 tSCC zVa_I960_MacroSelect0[] =
7727 "__(vsiz|vali|vpad|alignof__)";
7729 #define VA_I960_MACRO_TEST_CT 1
7730 static tTestDesc aVa_I960_MacroTests[] = {
7731 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
7734 * Fix Command Arguments for Va_I960_Macro
7736 static const char* apzVa_I960_MacroPatch[] = {
7741 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7743 * Description of Void_Null fix
7745 tSCC zVoid_NullName[] =
7749 * File name selection pattern
7751 tSCC zVoid_NullList[] =
7752 "|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|";
7754 * Machine/OS name selection pattern
7756 #define apzVoid_NullMachs (const char**)NULL
7759 * content selection pattern - do fix if pattern found
7761 tSCC zVoid_NullSelect0[] =
7762 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
7765 * content bypass pattern - skip fix if pattern found
7767 tSCC zVoid_NullBypass0[] =
7770 #define VOID_NULL_TEST_CT 2
7771 static tTestDesc aVoid_NullTests[] = {
7772 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
7773 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
7776 * Fix Command Arguments for Void_Null
7778 static const char* apzVoid_NullPatch[] = {
7783 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7785 * Description of Vxworks_Gcc_Problem fix
7787 tSCC zVxworks_Gcc_ProblemName[] =
7788 "vxworks_gcc_problem";
7791 * File name selection pattern
7793 tSCC zVxworks_Gcc_ProblemList[] =
7794 "|types/vxTypesBase.h|";
7796 * Machine/OS name selection pattern
7798 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
7801 * content selection pattern - do fix if pattern found
7803 tSCC zVxworks_Gcc_ProblemSelect0[] =
7804 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
7806 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
7807 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
7808 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
7811 * Fix Command Arguments for Vxworks_Gcc_Problem
7813 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
7814 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
7815 "-e", "/[ \t]size_t/i\\\n\
7816 #ifndef _GCC_SIZE_T\\\n\
7817 #define _GCC_SIZE_T\n",
7818 "-e", "/[ \t]size_t/a\\\n\
7820 "-e", "/[ \t]ptrdiff_t/i\\\n\
7821 #ifndef _GCC_PTRDIFF_T\\\n\
7822 #define _GCC_PTRDIFF_T\n",
7823 "-e", "/[ \t]ptrdiff_t/a\\\n\
7825 "-e", "/[ \t]wchar_t/i\\\n\
7826 #ifndef _GCC_WCHAR_T\\\n\
7827 #define _GCC_WCHAR_T\n",
7828 "-e", "/[ \t]wchar_t/a\\\n\
7832 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7834 * Description of Vxworks_Needs_Vxtypes fix
7836 tSCC zVxworks_Needs_VxtypesName[] =
7837 "vxworks_needs_vxtypes";
7840 * File name selection pattern
7842 tSCC zVxworks_Needs_VxtypesList[] =
7845 * Machine/OS name selection pattern
7847 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
7850 * content selection pattern - do fix if pattern found
7852 tSCC zVxworks_Needs_VxtypesSelect0[] =
7853 "uint_t([ \t]+_clocks_per_sec)";
7855 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
7856 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
7857 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
7860 * Fix Command Arguments for Vxworks_Needs_Vxtypes
7862 static const char* apzVxworks_Needs_VxtypesPatch[] = {
7867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7869 * Description of Vxworks_Needs_Vxworks fix
7871 tSCC zVxworks_Needs_VxworksName[] =
7872 "vxworks_needs_vxworks";
7875 * File name selection pattern
7877 tSCC zVxworks_Needs_VxworksList[] =
7880 * Machine/OS name selection pattern
7882 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
7885 * content selection pattern - do fix if pattern found
7887 tSCC zVxworks_Needs_VxworksSelect0[] =
7888 "#[ \t]define[ \t]+__INCstath";
7891 * perform the 'test' shell command - do fix on success
7893 tSCC zVxworks_Needs_VxworksTest0[] =
7894 " -r types/vxTypesOld.h";
7895 tSCC zVxworks_Needs_VxworksTest1[] =
7896 " -n \"`egrep '#include' $file`\"";
7897 tSCC zVxworks_Needs_VxworksTest2[] =
7898 " -n \"`egrep ULONG $file`\"";
7900 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
7901 static tTestDesc aVxworks_Needs_VxworksTests[] = {
7902 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
7903 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
7904 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
7905 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
7908 * Fix Command Arguments for Vxworks_Needs_Vxworks
7910 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
7911 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
7912 #include <types/vxTypesOld.h>\n",
7915 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7917 * Description of Vxworks_Time fix
7919 tSCC zVxworks_TimeName[] =
7923 * File name selection pattern
7925 tSCC zVxworks_TimeList[] =
7928 * Machine/OS name selection pattern
7930 #define apzVxworks_TimeMachs (const char**)NULL
7933 * content selection pattern - do fix if pattern found
7935 tSCC zVxworks_TimeSelect0[] =
7936 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
7939 * perform the 'test' shell command - do fix on success
7941 tSCC zVxworks_TimeTest0[] =
7944 #define VXWORKS_TIME_TEST_CT 2
7945 static tTestDesc aVxworks_TimeTests[] = {
7946 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
7947 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
7950 * Fix Command Arguments for Vxworks_Time
7952 static const char* apzVxworks_TimePatch[] = {
7954 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
7955 #ifdef __cplusplus\n\
7956 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
7958 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
7960 #define __gcc_VOIDFUNCPTR_defined\n\
7962 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
7965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7967 * Description of Windiss_Math1 fix
7969 tSCC zWindiss_Math1Name[] =
7973 * File name selection pattern
7975 tSCC zWindiss_Math1List[] =
7978 * Machine/OS name selection pattern
7980 tSCC* apzWindiss_Math1Machs[] = {
7982 (const char*)NULL };
7983 #define WINDISS_MATH1_TEST_CT 0
7984 #define aWindiss_Math1Tests (tTestDesc*)NULL
7987 * Fix Command Arguments for Windiss_Math1
7989 static const char* apzWindiss_Math1Patch[] = { "sed",
7990 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
7993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7995 * Description of Windiss_Math2 fix
7997 tSCC zWindiss_Math2Name[] =
8001 * File name selection pattern
8003 tSCC zWindiss_Math2List[] =
8006 * Machine/OS name selection pattern
8008 tSCC* apzWindiss_Math2Machs[] = {
8010 (const char*)NULL };
8011 #define WINDISS_MATH2_TEST_CT 0
8012 #define aWindiss_Math2Tests (tTestDesc*)NULL
8015 * Fix Command Arguments for Windiss_Math2
8017 static const char* apzWindiss_Math2Patch[] = { "sed",
8018 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
8021 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8023 * Description of Windiss_Valist fix
8025 tSCC zWindiss_ValistName[] =
8029 * File name selection pattern
8031 #define zWindiss_ValistList (char*)NULL
8033 * Machine/OS name selection pattern
8035 tSCC* apzWindiss_ValistMachs[] = {
8037 (const char*)NULL };
8040 * content selection pattern - do fix if pattern found
8042 tSCC zWindiss_ValistSelect0[] =
8043 "(#include.*)diab/va_list.h";
8045 #define WINDISS_VALIST_TEST_CT 1
8046 static tTestDesc aWindiss_ValistTests[] = {
8047 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
8050 * Fix Command Arguments for Windiss_Valist
8052 static const char* apzWindiss_ValistPatch[] = { "sed",
8053 "-e", "s|diab/va_list.h|stdarg.h|",
8056 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8058 * Description of X11_Class fix
8060 tSCC zX11_ClassName[] =
8064 * File name selection pattern
8066 tSCC zX11_ClassList[] =
8069 * Machine/OS name selection pattern
8071 #define apzX11_ClassMachs (const char**)NULL
8074 * content selection pattern - do fix if pattern found
8076 tSCC zX11_ClassSelect0[] =
8077 "^([ \t]*char \\*)class;(.*)";
8080 * content bypass pattern - skip fix if pattern found
8082 tSCC zX11_ClassBypass0[] =
8085 #define X11_CLASS_TEST_CT 2
8086 static tTestDesc aX11_ClassTests[] = {
8087 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
8088 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
8091 * Fix Command Arguments for X11_Class
8093 static const char* apzX11_ClassPatch[] = {
8095 "#ifdef __cplusplus\n\
8102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8104 * Description of X11_Class_Usage fix
8106 tSCC zX11_Class_UsageName[] =
8110 * File name selection pattern
8112 tSCC zX11_Class_UsageList[] =
8113 "|Xm/BaseClassI.h|";
8115 * Machine/OS name selection pattern
8117 #define apzX11_Class_UsageMachs (const char**)NULL
8120 * content selection pattern - do fix if pattern found
8122 tSCC zX11_Class_UsageSelect0[] =
8126 * content bypass pattern - skip fix if pattern found
8128 tSCC zX11_Class_UsageBypass0[] =
8131 #define X11_CLASS_USAGE_TEST_CT 2
8132 static tTestDesc aX11_Class_UsageTests[] = {
8133 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8134 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8137 * Fix Command Arguments for X11_Class_Usage
8139 static const char* apzX11_Class_UsagePatch[] = {
8144 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8146 * Description of X11_New fix
8148 tSCC zX11_NewName[] =
8152 * File name selection pattern
8154 tSCC zX11_NewList[] =
8157 * Machine/OS name selection pattern
8159 #define apzX11_NewMachs (const char**)NULL
8162 * content bypass pattern - skip fix if pattern found
8164 tSCC zX11_NewBypass0[] =
8167 #define X11_NEW_TEST_CT 1
8168 static tTestDesc aX11_NewTests[] = {
8169 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
8172 * Fix Command Arguments for X11_New
8174 static const char* apzX11_NewPatch[] = { "sed",
8175 "-e", "/Widget\told, new;/i\\\n\
8176 #ifdef __cplusplus\\\n\
8177 \tWidget\told, c_new;\\\n\
8179 "-e", "/Widget\told, new;/a\\\n\
8181 "-e", "s/Widget new,/Widget c_new,/g",
8184 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8186 * Description of X11_Sprintf fix
8188 tSCC zX11_SprintfName[] =
8192 * File name selection pattern
8194 tSCC zX11_SprintfList[] =
8195 "|X11/Xmu.h|X11/Xmu/Xmu.h|";
8197 * Machine/OS name selection pattern
8199 #define apzX11_SprintfMachs (const char**)NULL
8202 * content selection pattern - do fix if pattern found
8204 tSCC zX11_SprintfSelect0[] =
8205 "^extern char \\*\tsprintf\\(\\);$";
8207 #define X11_SPRINTF_TEST_CT 1
8208 static tTestDesc aX11_SprintfTests[] = {
8209 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
8212 * Fix Command Arguments for X11_Sprintf
8214 static const char* apzX11_SprintfPatch[] = {
8216 "#ifndef __STDC__\n\
8218 #endif /* !defined __STDC__ */",
8222 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8226 #define REGEX_COUNT 243
8227 #define MACH_LIST_SIZE_LIMIT 261
8228 #define FIX_COUNT 202
8231 * Enumerate the fixes
8234 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8235 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8236 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8237 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8238 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8239 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8240 AAB_SUN_MEMCPY_FIXIDX,
8241 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
8242 AAB_ULTRIX_LIMITS_FIXIDX,
8243 AAB_ULTRIX_MEMORY_FIXIDX,
8244 AAB_ULTRIX_STRING_FIXIDX,
8246 AIX_SYSMACHINE_FIXIDX,
8248 AIX_SYSWAIT_2_FIXIDX,
8249 AIX_VOLATILE_FIXIDX,
8250 ALPHA___ASSERT_FIXIDX,
8251 ALPHA___EXTERN_PREFIX_FIXIDX,
8252 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8253 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8254 ALPHA_ASSERT_FIXIDX,
8255 ALPHA_BAD_LVAL_FIXIDX,
8256 ALPHA_GETOPT_FIXIDX,
8257 ALPHA_PARENS_FIXIDX,
8258 ALPHA_PTHREAD_FIXIDX,
8259 ALPHA_PTHREAD_GCC_FIXIDX,
8260 ALPHA_PTHREAD_INIT_FIXIDX,
8263 AVOID_BOOL_DEFINE_FIXIDX,
8264 AVOID_BOOL_TYPE_FIXIDX,
8265 AVOID_WCHAR_T_TYPE_FIXIDX,
8266 BAD_STRUCT_TERM_FIXIDX,
8268 BROKEN_ASSERT_STDIO_FIXIDX,
8269 BROKEN_ASSERT_STDLIB_FIXIDX,
8271 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8272 CTRL_QUOTES_DEF_FIXIDX,
8273 CTRL_QUOTES_USE_FIXIDX,
8275 DARWIN_GCC4_BREAKAGE_FIXIDX,
8276 DARWIN_PRIVATE_EXTERN_FIXIDX,
8277 DEC_INTERN_ASM_FIXIDX,
8278 DJGPP_WCHAR_H_FIXIDX,
8280 EXCEPTION_STRUCTURE_FIXIDX,
8281 FREEBSD_GCC3_BREAKAGE_FIXIDX,
8282 FREEBSD_GCC4_BREAKAGE_FIXIDX,
8283 GLIBC_MUTEX_INIT_FIXIDX,
8287 HPUX10_CPP_POW_INLINE_FIXIDX,
8288 HPUX11_CPP_POW_INLINE_FIXIDX,
8289 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8290 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8291 HPUX10_STDIO_DECLARATIONS_FIXIDX,
8293 HPUX11_FABSF_FIXIDX,
8294 HPUX11_SIZE_T_FIXIDX,
8295 HPUX11_SNPRINTF_FIXIDX,
8296 HPUX11_UINT32_C_FIXIDX,
8297 HPUX11_VSNPRINTF_FIXIDX,
8298 HPUX8_BOGUS_INLINES_FIXIDX,
8299 HPUX_CTYPE_MACROS_FIXIDX,
8301 HPUX_LONG_DOUBLE_FIXIDX,
8302 HPUX_SYSTIME_FIXIDX,
8303 HPUX_SPU_INFO_FIXIDX,
8304 HPUX11_EXTERN_SENDFILE_FIXIDX,
8305 HPUX11_EXTERN_SENDPATH_FIXIDX,
8306 HPUX_EXTERN_ERRNO_FIXIDX,
8307 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8308 HUGE_VAL_HEX_FIXIDX,
8309 HUGE_VALF_HEX_FIXIDX,
8310 HUGE_VALL_HEX_FIXIDX,
8311 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8312 IO_QUOTES_DEF_FIXIDX,
8313 IO_QUOTES_USE_FIXIDX,
8314 IP_MISSING_SEMI_FIXIDX,
8315 IRIX___RESTRICT_FIXIDX,
8316 IRIX___GENERIC1_FIXIDX,
8317 IRIX___GENERIC2_FIXIDX,
8318 IRIX_ASM_APOSTROPHE_FIXIDX,
8319 IRIX_LIMITS_CONST_FIXIDX,
8320 IRIX_SOCKLEN_T_FIXIDX,
8321 IRIX_STDIO_VA_LIST_FIXIDX,
8322 IRIX_WCSFTIME_FIXIDX,
8324 ISC_OMITS_WITH_STDC_FIXIDX,
8325 KANDR_CONCAT_FIXIDX,
8326 LIBC1_G_VA_LIST_FIXIDX,
8327 LIBC1_IFDEFD_MEMX_FIXIDX,
8328 LINUX_IA64_UCONTEXT_FIXIDX,
8329 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8330 LYNXOS_MISSING_PUTENV_FIXIDX,
8331 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8332 MACHINE_NAME_FIXIDX,
8333 MATH_EXCEPTION_FIXIDX,
8334 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8335 NESTED_AUTH_DES_FIXIDX,
8336 NESTED_MOTOROLA_FIXIDX,
8337 NESTED_SYS_LIMITS_FIXIDX,
8338 NETBSD_EXTRA_SEMICOLON_FIXIDX,
8339 NEXT_MATH_PREFIX_FIXIDX,
8340 NEXT_TEMPLATE_FIXIDX,
8341 NEXT_VOLITILE_FIXIDX,
8342 NEXT_WAIT_UNION_FIXIDX,
8343 NODEENT_SYNTAX_FIXIDX,
8344 OBSTACK_LVALUE_CAST_FIXIDX,
8345 OSF_NAMESPACE_A_FIXIDX,
8346 OSF_NAMESPACE_C_FIXIDX,
8347 PTHREAD_PAGE_SIZE_FIXIDX,
8348 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8349 READ_RET_TYPE_FIXIDX,
8350 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8351 RPC_XDR_LVALUE_CAST_B_FIXIDX,
8352 RS6000_DOUBLE_FIXIDX,
8353 RS6000_FCHMOD_FIXIDX,
8354 RS6000_PARAM_FIXIDX,
8357 SCO_STATIC_FUNC_FIXIDX,
8359 SOLARIS_MATH_1_FIXIDX,
8360 SOLARIS_MATH_2_FIXIDX,
8361 SOLARIS_MATH_3_FIXIDX,
8362 SOLARIS_MATH_4_FIXIDX,
8363 SOLARIS_MATH_5_FIXIDX,
8364 SOLARIS_MATH_6_FIXIDX,
8365 SOLARIS_MATH_7_FIXIDX,
8366 SOLARIS_MATH_8_FIXIDX,
8367 SOLARIS_MATH_9_FIXIDX,
8368 SOLARIS_MUTEX_INIT_1_FIXIDX,
8369 SOLARIS_MUTEX_INIT_2_FIXIDX,
8370 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8371 SOLARIS_ONCE_INIT_1_FIXIDX,
8372 SOLARIS_ONCE_INIT_2_FIXIDX,
8373 SOLARIS_SOCKET_FIXIDX,
8374 SOLARIS_STDIO_TAG_FIXIDX,
8375 SOLARIS_UNISTD_FIXIDX,
8376 SOLARIS_WIDEC_FIXIDX,
8378 STDIO_STDARG_H_FIXIDX,
8379 STDIO_VA_LIST_FIXIDX,
8380 STDIO_VA_LIST_CLIENTS_FIXIDX,
8381 STRICT_ANSI_NOT_FIXIDX,
8382 STRICT_ANSI_NOT_CTD_FIXIDX,
8383 STRICT_ANSI_ONLY_FIXIDX,
8385 STRUCT_SOCKADDR_FIXIDX,
8386 SUN_AUTH_PROTO_FIXIDX,
8387 SUN_BOGUS_IFDEF_FIXIDX,
8388 SUN_CATMACRO_FIXIDX,
8390 SUN_RUSERS_SEMI_FIXIDX,
8392 SUNOS_STRLEN_FIXIDX,
8393 SVR4_DISABLE_OPT_FIXIDX,
8397 SVR4_SIGHANDLER_TYPE_FIXIDX,
8398 SVR4_UNDECLARED_GETRNGE_FIXIDX,
8399 SYSV68_STRING_FIXIDX,
8400 SYSZ_STDLIB_FOR_SUN_FIXIDX,
8401 THREAD_KEYWORD_FIXIDX,
8402 TINFO_CPLUSPLUS_FIXIDX,
8403 ULTRIX_ATEXIT_PARAM_FIXIDX,
8404 ULTRIX_ATOF_PARAM_FIXIDX,
8405 ULTRIX_CONST_FIXIDX,
8406 ULTRIX_CONST2_FIXIDX,
8407 ULTRIX_CONST3_FIXIDX,
8408 ULTRIX_FIX_FIXPROTO_FIXIDX,
8409 ULTRIX_IFDEF_FIXIDX,
8410 ULTRIX_LOCALE_FIXIDX,
8411 ULTRIX_MATH_IFDEF_FIXIDX,
8412 ULTRIX_NESTED_IOCTL_FIXIDX,
8413 ULTRIX_NESTED_SVC_FIXIDX,
8415 ULTRIX_STATIC_FIXIDX,
8416 ULTRIX_STDLIB_FIXIDX,
8417 ULTRIX_STRINGS_FIXIDX,
8418 ULTRIX_STRINGS2_FIXIDX,
8419 ULTRIX_SYS_TIME_FIXIDX,
8420 ULTRIX_UNISTD_FIXIDX,
8421 UNICOSMK_RESTRICT_FIXIDX,
8422 UW7_BYTEORDER_FIX_FIXIDX,
8423 VA_I960_MACRO_FIXIDX,
8425 VXWORKS_GCC_PROBLEM_FIXIDX,
8426 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8427 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8428 VXWORKS_TIME_FIXIDX,
8429 WINDISS_MATH1_FIXIDX,
8430 WINDISS_MATH2_FIXIDX,
8431 WINDISS_VALIST_FIXIDX,
8433 X11_CLASS_USAGE_FIXIDX,
8438 tFixDesc fixDescList[ FIX_COUNT ] = {
8439 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8440 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8441 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8442 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8444 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8445 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8446 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8447 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8449 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
8450 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8451 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8452 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8454 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
8455 apzAab_Fd_Zero_Gnu_Types_HMachs,
8456 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8457 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8459 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
8460 apzAab_Fd_Zero_Selectbits_HMachs,
8461 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8462 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8464 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8465 apzAab_Solaris_Sys_Varargs_HMachs,
8466 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8467 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8469 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8470 apzAab_Sun_MemcpyMachs,
8471 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8472 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8474 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
8475 apzAab_Ultrix_Ansi_CompatMachs,
8476 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8477 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
8479 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
8480 apzAab_Ultrix_LimitsMachs,
8481 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8482 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
8484 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
8485 apzAab_Ultrix_MemoryMachs,
8486 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8487 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
8489 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
8490 apzAab_Ultrix_StringMachs,
8491 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8492 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
8494 { zAix_PthreadName, zAix_PthreadList,
8495 apzAix_PthreadMachs,
8496 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8497 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
8499 { zAix_SysmachineName, zAix_SysmachineList,
8500 apzAix_SysmachineMachs,
8501 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8502 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
8504 { zAix_SyswaitName, zAix_SyswaitList,
8505 apzAix_SyswaitMachs,
8506 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8507 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
8509 { zAix_Syswait_2Name, zAix_Syswait_2List,
8510 apzAix_Syswait_2Machs,
8511 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8512 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8514 { zAix_VolatileName, zAix_VolatileList,
8515 apzAix_VolatileMachs,
8516 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8517 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
8519 { zAlpha___AssertName, zAlpha___AssertList,
8520 apzAlpha___AssertMachs,
8521 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8522 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8524 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
8525 apzAlpha___Extern_PrefixMachs,
8526 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8527 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
8529 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
8530 apzAlpha___Extern_Prefix_StandardsMachs,
8531 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8532 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8534 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
8535 apzAlpha___Extern_Prefix_Sys_StatMachs,
8536 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8537 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8539 { zAlpha_AssertName, zAlpha_AssertList,
8540 apzAlpha_AssertMachs,
8541 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8542 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
8544 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
8545 apzAlpha_Bad_LvalMachs,
8546 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8547 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
8549 { zAlpha_GetoptName, zAlpha_GetoptList,
8550 apzAlpha_GetoptMachs,
8551 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8552 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
8554 { zAlpha_ParensName, zAlpha_ParensList,
8555 apzAlpha_ParensMachs,
8556 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8557 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
8559 { zAlpha_PthreadName, zAlpha_PthreadList,
8560 apzAlpha_PthreadMachs,
8561 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8562 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
8564 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
8565 apzAlpha_Pthread_GccMachs,
8566 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8567 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
8569 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
8570 apzAlpha_Pthread_InitMachs,
8571 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8572 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
8574 { zAlpha_SbrkName, zAlpha_SbrkList,
8576 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8577 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
8579 { zAlpha_WcharName, zAlpha_WcharList,
8580 apzAlpha_WcharMachs,
8581 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
8582 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
8584 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
8585 apzAvoid_Bool_DefineMachs,
8586 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8587 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
8589 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
8590 apzAvoid_Bool_TypeMachs,
8591 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8592 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
8594 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
8595 apzAvoid_Wchar_T_TypeMachs,
8596 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8597 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
8599 { zBad_Struct_TermName, zBad_Struct_TermList,
8600 apzBad_Struct_TermMachs,
8601 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8602 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
8604 { zBadquoteName, zBadquoteList,
8606 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8607 aBadquoteTests, apzBadquotePatch, 0 },
8609 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
8610 apzBroken_Assert_StdioMachs,
8611 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8612 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
8614 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
8615 apzBroken_Assert_StdlibMachs,
8616 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8617 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
8619 { zBroken_CabsName, zBroken_CabsList,
8620 apzBroken_CabsMachs,
8621 BROKEN_CABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8622 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
8624 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
8625 apzBsd_Stdio_Attrs_ConflictMachs,
8626 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8627 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
8629 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
8630 apzCtrl_Quotes_DefMachs,
8631 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8632 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
8634 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
8635 apzCtrl_Quotes_UseMachs,
8636 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8637 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
8639 { zCxx_UnreadyName, zCxx_UnreadyList,
8640 apzCxx_UnreadyMachs,
8641 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8642 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
8644 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
8645 apzDarwin_Gcc4_BreakageMachs,
8646 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8647 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
8649 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
8650 apzDarwin_Private_ExternMachs,
8651 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8652 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
8654 { zDec_Intern_AsmName, zDec_Intern_AsmList,
8655 apzDec_Intern_AsmMachs,
8656 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
8657 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
8659 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
8660 apzDjgpp_Wchar_HMachs,
8661 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8662 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
8664 { zEcd_CursorName, zEcd_CursorList,
8666 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8667 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
8669 { zException_StructureName, zException_StructureList,
8670 apzException_StructureMachs,
8671 EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8672 aException_StructureTests, apzException_StructurePatch, 0 },
8674 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
8675 apzFreebsd_Gcc3_BreakageMachs,
8676 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8677 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
8679 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
8680 apzFreebsd_Gcc4_BreakageMachs,
8681 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8682 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
8684 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
8685 apzGlibc_Mutex_InitMachs,
8686 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
8687 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
8689 { zGnu_TypesName, zGnu_TypesList,
8691 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
8692 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
8694 { zHp_InlineName, zHp_InlineList,
8696 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8697 aHp_InlineTests, apzHp_InlinePatch, 0 },
8699 { zHp_SysfileName, zHp_SysfileList,
8701 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8702 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
8704 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
8705 apzHpux10_Cpp_Pow_InlineMachs,
8706 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8707 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
8709 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
8710 apzHpux11_Cpp_Pow_InlineMachs,
8711 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8712 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
8714 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
8715 apzHpux10_Ctype_Declarations1Machs,
8716 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8717 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
8719 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
8720 apzHpux10_Ctype_Declarations2Machs,
8721 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8722 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
8724 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
8725 apzHpux10_Stdio_DeclarationsMachs,
8726 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8727 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
8729 { zHpux11_AbsName, zHpux11_AbsList,
8731 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8732 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
8734 { zHpux11_FabsfName, zHpux11_FabsfList,
8735 apzHpux11_FabsfMachs,
8736 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8737 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
8739 { zHpux11_Size_TName, zHpux11_Size_TList,
8740 apzHpux11_Size_TMachs,
8741 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8742 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
8744 { zHpux11_SnprintfName, zHpux11_SnprintfList,
8745 apzHpux11_SnprintfMachs,
8746 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8747 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
8749 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
8750 apzHpux11_Uint32_CMachs,
8751 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8752 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
8754 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
8755 apzHpux11_VsnprintfMachs,
8756 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8757 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
8759 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
8760 apzHpux8_Bogus_InlinesMachs,
8761 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
8762 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
8764 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
8765 apzHpux_Ctype_MacrosMachs,
8766 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8767 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
8769 { zHpux_HtonlName, zHpux_HtonlList,
8771 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8772 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
8774 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
8775 apzHpux_Long_DoubleMachs,
8776 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
8777 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
8779 { zHpux_SystimeName, zHpux_SystimeList,
8780 apzHpux_SystimeMachs,
8781 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8782 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
8784 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
8785 apzHpux_Spu_InfoMachs,
8786 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8787 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
8789 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
8790 apzHpux11_Extern_SendfileMachs,
8791 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8792 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
8794 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
8795 apzHpux11_Extern_SendpathMachs,
8796 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8797 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
8799 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
8800 apzHpux_Extern_ErrnoMachs,
8801 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8802 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
8804 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
8805 apzHpux_Pthread_InitializersMachs,
8806 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
8807 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
8809 { zHuge_Val_HexName, zHuge_Val_HexList,
8810 apzHuge_Val_HexMachs,
8811 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8812 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
8814 { zHuge_Valf_HexName, zHuge_Valf_HexList,
8815 apzHuge_Valf_HexMachs,
8816 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8817 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
8819 { zHuge_Vall_HexName, zHuge_Vall_HexList,
8820 apzHuge_Vall_HexMachs,
8821 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8822 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
8824 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
8825 apzInt_Abort_Free_And_ExitMachs,
8826 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8827 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
8829 { zIo_Quotes_DefName, zIo_Quotes_DefList,
8830 apzIo_Quotes_DefMachs,
8831 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8832 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
8834 { zIo_Quotes_UseName, zIo_Quotes_UseList,
8835 apzIo_Quotes_UseMachs,
8836 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8837 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
8839 { zIp_Missing_SemiName, zIp_Missing_SemiList,
8840 apzIp_Missing_SemiMachs,
8841 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
8842 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
8844 { zIrix___RestrictName, zIrix___RestrictList,
8845 apzIrix___RestrictMachs,
8846 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8847 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
8849 { zIrix___Generic1Name, zIrix___Generic1List,
8850 apzIrix___Generic1Machs,
8851 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8852 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
8854 { zIrix___Generic2Name, zIrix___Generic2List,
8855 apzIrix___Generic2Machs,
8856 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8857 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
8859 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
8860 apzIrix_Asm_ApostropheMachs,
8861 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8862 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
8864 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
8865 apzIrix_Limits_ConstMachs,
8866 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8867 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
8869 { zIrix_Socklen_TName, zIrix_Socklen_TList,
8870 apzIrix_Socklen_TMachs,
8871 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8872 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
8874 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
8875 apzIrix_Stdio_Va_ListMachs,
8876 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8877 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
8879 { zIrix_WcsftimeName, zIrix_WcsftimeList,
8880 apzIrix_WcsftimeMachs,
8881 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8882 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
8884 { zIsc_FmodName, zIsc_FmodList,
8886 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8887 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
8889 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
8890 apzIsc_Omits_With_StdcMachs,
8891 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8892 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
8894 { zKandr_ConcatName, zKandr_ConcatList,
8895 apzKandr_ConcatMachs,
8896 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8897 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
8899 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
8900 apzLibc1_G_Va_ListMachs,
8901 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8902 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
8904 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
8905 apzLibc1_Ifdefd_MemxMachs,
8906 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8907 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
8909 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
8910 apzLinux_Ia64_UcontextMachs,
8911 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8912 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
8914 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
8915 apzLynxos_No_Warning_In_Sys_Time_HMachs,
8916 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8917 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
8919 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
8920 apzLynxos_Missing_PutenvMachs,
8921 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8922 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
8924 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
8925 apzMachine_Ansi_H_Va_ListMachs,
8926 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8927 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
8929 { zMachine_NameName, zMachine_NameList,
8930 apzMachine_NameMachs,
8931 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8932 aMachine_NameTests, apzMachine_NamePatch, 0 },
8934 { zMath_ExceptionName, zMath_ExceptionList,
8935 apzMath_ExceptionMachs,
8936 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8937 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
8939 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
8940 apzMath_Huge_Val_From_Dbl_MaxMachs,
8941 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
8942 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
8944 { zNested_Auth_DesName, zNested_Auth_DesList,
8945 apzNested_Auth_DesMachs,
8946 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8947 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
8949 { zNested_MotorolaName, zNested_MotorolaList,
8950 apzNested_MotorolaMachs,
8951 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
8952 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
8954 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
8955 apzNested_Sys_LimitsMachs,
8956 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
8957 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
8959 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
8960 apzNetbsd_Extra_SemicolonMachs,
8961 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8962 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
8964 { zNext_Math_PrefixName, zNext_Math_PrefixList,
8965 apzNext_Math_PrefixMachs,
8966 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8967 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
8969 { zNext_TemplateName, zNext_TemplateList,
8970 apzNext_TemplateMachs,
8971 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8972 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
8974 { zNext_VolitileName, zNext_VolitileList,
8975 apzNext_VolitileMachs,
8976 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8977 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
8979 { zNext_Wait_UnionName, zNext_Wait_UnionList,
8980 apzNext_Wait_UnionMachs,
8981 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8982 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
8984 { zNodeent_SyntaxName, zNodeent_SyntaxList,
8985 apzNodeent_SyntaxMachs,
8986 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8987 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
8989 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
8990 apzObstack_Lvalue_CastMachs,
8991 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8992 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
8994 { zOsf_Namespace_AName, zOsf_Namespace_AList,
8995 apzOsf_Namespace_AMachs,
8996 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8997 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
8999 { zOsf_Namespace_CName, zOsf_Namespace_CList,
9000 apzOsf_Namespace_CMachs,
9001 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9002 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
9004 { zPthread_Page_SizeName, zPthread_Page_SizeList,
9005 apzPthread_Page_SizeMachs,
9006 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9007 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
9009 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
9010 apzPthread_Incomplete_Struct_ArgumentMachs,
9011 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9012 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9014 { zRead_Ret_TypeName, zRead_Ret_TypeList,
9015 apzRead_Ret_TypeMachs,
9016 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9017 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
9019 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
9020 apzRpc_Xdr_Lvalue_Cast_AMachs,
9021 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9022 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9024 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
9025 apzRpc_Xdr_Lvalue_Cast_BMachs,
9026 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9027 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9029 { zRs6000_DoubleName, zRs6000_DoubleList,
9030 apzRs6000_DoubleMachs,
9031 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9032 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
9034 { zRs6000_FchmodName, zRs6000_FchmodList,
9035 apzRs6000_FchmodMachs,
9036 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9037 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
9039 { zRs6000_ParamName, zRs6000_ParamList,
9040 apzRs6000_ParamMachs,
9041 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9042 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
9044 { zSco_MathName, zSco_MathList,
9046 SCO_MATH_TEST_CT, FD_MACH_ONLY,
9047 aSco_MathTests, apzSco_MathPatch, 0 },
9049 { zSco_RegsetName, zSco_RegsetList,
9051 SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9052 aSco_RegsetTests, apzSco_RegsetPatch, 0 },
9054 { zSco_Static_FuncName, zSco_Static_FuncList,
9055 apzSco_Static_FuncMachs,
9056 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
9057 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
9059 { zSco_UtimeName, zSco_UtimeList,
9061 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9062 aSco_UtimeTests, apzSco_UtimePatch, 0 },
9064 { zSolaris_Math_1Name, zSolaris_Math_1List,
9065 apzSolaris_Math_1Machs,
9066 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9067 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
9069 { zSolaris_Math_2Name, zSolaris_Math_2List,
9070 apzSolaris_Math_2Machs,
9071 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9072 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
9074 { zSolaris_Math_3Name, zSolaris_Math_3List,
9075 apzSolaris_Math_3Machs,
9076 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9077 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
9079 { zSolaris_Math_4Name, zSolaris_Math_4List,
9080 apzSolaris_Math_4Machs,
9081 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9082 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
9084 { zSolaris_Math_5Name, zSolaris_Math_5List,
9085 apzSolaris_Math_5Machs,
9086 SOLARIS_MATH_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9087 aSolaris_Math_5Tests, apzSolaris_Math_5Patch, 0 },
9089 { zSolaris_Math_6Name, zSolaris_Math_6List,
9090 apzSolaris_Math_6Machs,
9091 SOLARIS_MATH_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9092 aSolaris_Math_6Tests, apzSolaris_Math_6Patch, 0 },
9094 { zSolaris_Math_7Name, zSolaris_Math_7List,
9095 apzSolaris_Math_7Machs,
9096 SOLARIS_MATH_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9097 aSolaris_Math_7Tests, apzSolaris_Math_7Patch, 0 },
9099 { zSolaris_Math_8Name, zSolaris_Math_8List,
9100 apzSolaris_Math_8Machs,
9101 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9102 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
9104 { zSolaris_Math_9Name, zSolaris_Math_9List,
9105 apzSolaris_Math_9Machs,
9106 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9107 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
9109 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List,
9110 apzSolaris_Mutex_Init_1Machs,
9111 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
9112 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 },
9114 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
9115 apzSolaris_Mutex_Init_2Machs,
9116 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9117 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
9119 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
9120 apzSolaris_Rwlock_Init_1Machs,
9121 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9122 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
9124 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
9125 apzSolaris_Once_Init_1Machs,
9126 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9127 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
9129 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
9130 apzSolaris_Once_Init_2Machs,
9131 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9132 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
9134 { zSolaris_SocketName, zSolaris_SocketList,
9135 apzSolaris_SocketMachs,
9136 SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9137 aSolaris_SocketTests, apzSolaris_SocketPatch, 0 },
9139 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
9140 apzSolaris_Stdio_TagMachs,
9141 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9142 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
9144 { zSolaris_UnistdName, zSolaris_UnistdList,
9145 apzSolaris_UnistdMachs,
9146 SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9147 aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 },
9149 { zSolaris_WidecName, zSolaris_WidecList,
9150 apzSolaris_WidecMachs,
9151 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9152 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
9154 { zStatsswtchName, zStatsswtchList,
9156 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9157 aStatsswtchTests, apzStatsswtchPatch, 0 },
9159 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
9160 apzStdio_Stdarg_HMachs,
9161 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9162 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
9164 { zStdio_Va_ListName, zStdio_Va_ListList,
9165 apzStdio_Va_ListMachs,
9166 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9167 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
9169 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
9170 apzStdio_Va_List_ClientsMachs,
9171 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9172 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
9174 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
9175 apzStrict_Ansi_NotMachs,
9176 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9177 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
9179 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
9180 apzStrict_Ansi_Not_CtdMachs,
9181 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9182 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
9184 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
9185 apzStrict_Ansi_OnlyMachs,
9186 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9187 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
9189 { zStruct_FileName, zStruct_FileList,
9190 apzStruct_FileMachs,
9191 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9192 aStruct_FileTests, apzStruct_FilePatch, 0 },
9194 { zStruct_SockaddrName, zStruct_SockaddrList,
9195 apzStruct_SockaddrMachs,
9196 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9197 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
9199 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
9200 apzSun_Auth_ProtoMachs,
9201 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9202 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
9204 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
9205 apzSun_Bogus_IfdefMachs,
9206 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9207 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
9209 { zSun_CatmacroName, zSun_CatmacroList,
9210 apzSun_CatmacroMachs,
9211 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9212 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
9214 { zSun_MallocName, zSun_MallocList,
9216 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9217 aSun_MallocTests, apzSun_MallocPatch, 0 },
9219 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
9220 apzSun_Rusers_SemiMachs,
9221 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9222 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
9224 { zSun_SignalName, zSun_SignalList,
9226 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9227 aSun_SignalTests, apzSun_SignalPatch, 0 },
9229 { zSunos_StrlenName, zSunos_StrlenList,
9230 apzSunos_StrlenMachs,
9231 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9232 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
9234 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
9235 apzSvr4_Disable_OptMachs,
9236 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9237 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
9239 { zSvr4_GetcwdName, zSvr4_GetcwdList,
9240 apzSvr4_GetcwdMachs,
9241 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9242 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
9244 { zSvr4_KrnlName, zSvr4_KrnlList,
9246 SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9247 aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 },
9249 { zSvr4_ProfilName, zSvr4_ProfilList,
9250 apzSvr4_ProfilMachs,
9251 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9252 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
9254 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9255 apzSvr4_Sighandler_TypeMachs,
9256 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9257 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9259 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9260 apzSvr4_Undeclared_GetrngeMachs,
9261 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9262 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9264 { zSysv68_StringName, zSysv68_StringList,
9265 apzSysv68_StringMachs,
9266 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9267 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
9269 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
9270 apzSysz_Stdlib_For_SunMachs,
9271 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9272 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
9274 { zThread_KeywordName, zThread_KeywordList,
9275 apzThread_KeywordMachs,
9276 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9277 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9279 { zTinfo_CplusplusName, zTinfo_CplusplusList,
9280 apzTinfo_CplusplusMachs,
9281 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9282 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
9284 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
9285 apzUltrix_Atexit_ParamMachs,
9286 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9287 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
9289 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
9290 apzUltrix_Atof_ParamMachs,
9291 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9292 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
9294 { zUltrix_ConstName, zUltrix_ConstList,
9295 apzUltrix_ConstMachs,
9296 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9297 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
9299 { zUltrix_Const2Name, zUltrix_Const2List,
9300 apzUltrix_Const2Machs,
9301 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9302 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
9304 { zUltrix_Const3Name, zUltrix_Const3List,
9305 apzUltrix_Const3Machs,
9306 ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9307 aUltrix_Const3Tests, apzUltrix_Const3Patch, 0 },
9309 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
9310 apzUltrix_Fix_FixprotoMachs,
9311 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9312 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
9314 { zUltrix_IfdefName, zUltrix_IfdefList,
9315 apzUltrix_IfdefMachs,
9316 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9317 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
9319 { zUltrix_LocaleName, zUltrix_LocaleList,
9320 apzUltrix_LocaleMachs,
9321 ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9322 aUltrix_LocaleTests, apzUltrix_LocalePatch, 0 },
9324 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
9325 apzUltrix_Math_IfdefMachs,
9326 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9327 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
9329 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
9330 apzUltrix_Nested_IoctlMachs,
9331 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
9332 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
9334 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
9335 apzUltrix_Nested_SvcMachs,
9336 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
9337 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
9339 { zUltrix_StatName, zUltrix_StatList,
9340 apzUltrix_StatMachs,
9341 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
9342 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
9344 { zUltrix_StaticName, zUltrix_StaticList,
9345 apzUltrix_StaticMachs,
9346 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
9347 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
9349 { zUltrix_StdlibName, zUltrix_StdlibList,
9350 apzUltrix_StdlibMachs,
9351 ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
9352 aUltrix_StdlibTests, apzUltrix_StdlibPatch, 0 },
9354 { zUltrix_StringsName, zUltrix_StringsList,
9355 apzUltrix_StringsMachs,
9356 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9357 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
9359 { zUltrix_Strings2Name, zUltrix_Strings2List,
9360 apzUltrix_Strings2Machs,
9361 ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
9362 aUltrix_Strings2Tests, apzUltrix_Strings2Patch, 0 },
9364 { zUltrix_Sys_TimeName, zUltrix_Sys_TimeList,
9365 apzUltrix_Sys_TimeMachs,
9366 ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
9367 aUltrix_Sys_TimeTests, apzUltrix_Sys_TimePatch, 0 },
9369 { zUltrix_UnistdName, zUltrix_UnistdList,
9370 apzUltrix_UnistdMachs,
9371 ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
9372 aUltrix_UnistdTests, apzUltrix_UnistdPatch, 0 },
9374 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
9375 apzUnicosmk_RestrictMachs,
9376 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9377 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
9379 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
9380 apzUw7_Byteorder_FixMachs,
9381 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9382 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
9384 { zVa_I960_MacroName, zVa_I960_MacroList,
9385 apzVa_I960_MacroMachs,
9386 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9387 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
9389 { zVoid_NullName, zVoid_NullList,
9391 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9392 aVoid_NullTests, apzVoid_NullPatch, 0 },
9394 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
9395 apzVxworks_Gcc_ProblemMachs,
9396 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9397 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
9399 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
9400 apzVxworks_Needs_VxtypesMachs,
9401 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9402 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
9404 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
9405 apzVxworks_Needs_VxworksMachs,
9406 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9407 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
9409 { zVxworks_TimeName, zVxworks_TimeList,
9410 apzVxworks_TimeMachs,
9411 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9412 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
9414 { zWindiss_Math1Name, zWindiss_Math1List,
9415 apzWindiss_Math1Machs,
9416 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
9417 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
9419 { zWindiss_Math2Name, zWindiss_Math2List,
9420 apzWindiss_Math2Machs,
9421 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
9422 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
9424 { zWindiss_ValistName, zWindiss_ValistList,
9425 apzWindiss_ValistMachs,
9426 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
9427 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
9429 { zX11_ClassName, zX11_ClassList,
9431 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9432 aX11_ClassTests, apzX11_ClassPatch, 0 },
9434 { zX11_Class_UsageName, zX11_Class_UsageList,
9435 apzX11_Class_UsageMachs,
9436 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9437 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
9439 { zX11_NewName, zX11_NewList,
9441 X11_NEW_TEST_CT, FD_MACH_ONLY,
9442 aX11_NewTests, apzX11_NewPatch, 0 },
9444 { zX11_SprintfName, zX11_SprintfList,
9445 apzX11_SprintfMachs,
9446 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9447 aX11_SprintfTests, apzX11_SprintfPatch, 0 }