1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Wednesday May 14, 2008 at 03:12:47 PM UTC
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Wed May 14 15:12:47 UTC 2008
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 213 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: you can redistribute it and/or modify it
26 * under the terms of the GNU General Public License as published by the
27 * Free Software Foundation, either version 3 of the License, or
28 * (at your option) any later version.
30 * inclhack is distributed in the hope that it will be useful, but
31 * WITHOUT ANY WARRANTY; without even the implied warranty of
32 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
33 * See the GNU General Public License for more details.
35 * You should have received a copy of the GNU General Public License along
36 * with this program. If not, see <http://www.gnu.org/licenses/>.
39 /* * * * * * * * * * * * * * * * * * * * * * * * * *
41 * Description of Aab_Aix_Stdio fix
43 tSCC zAab_Aix_StdioName[] =
47 * File name selection pattern
49 tSCC zAab_Aix_StdioList[] =
52 * Machine/OS name selection pattern
54 tSCC* apzAab_Aix_StdioMachs[] = {
59 * content selection pattern - do fix if pattern found
61 tSCC zAab_Aix_StdioSelect0[] =
62 "define fopen fopen64";
64 #define AAB_AIX_STDIO_TEST_CT 1
65 static tTestDesc aAab_Aix_StdioTests[] = {
66 { TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
69 * Fix Command Arguments for Aab_Aix_Stdio
71 static const char* apzAab_Aix_StdioPatch[] = {
75 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
76 #define __need__aix_stdio_h_fix\n\
77 #ifdef __need__aix_stdio_h_fix\n\
84 /* Alias the symbols using asm */\n\
86 extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
87 extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
88 extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
89 extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
90 extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
91 extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
97 /* * * * * * * * * * * * * * * * * * * * * * * * * *
99 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
101 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
102 "AAB_darwin7_9_long_double_funcs";
105 * File name selection pattern
107 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
108 "architecture/ppc/math.h\0";
110 * Machine/OS name selection pattern
112 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
117 * content bypass pattern - skip fix if pattern found
119 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
122 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
123 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
124 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
127 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
129 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
130 "/* This file prototypes the long double functions available on Mac OS\n\
133 # undef __APPLE_CC__\n\
134 # define __APPLE_CC__ 1345\n\
135 # include_next <architecture/ppc/math.h>\n\
136 # undef __APPLE_CC__\n\
137 # define __APPLE_CC__ 1\n\
138 # ifndef __LIBMLDBL_COMPAT\n\
139 # ifdef __LONG_DOUBLE_128__\n\
140 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
142 # define __LIBMLDBL_COMPAT(sym)\n\
143 # endif /* __LONG_DOUBLE_128__ */\n\
144 # endif /* __LIBMLDBL_COMPAT */\n\
145 # ifdef __cplusplus\n\
148 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
149 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
150 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
151 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
152 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
153 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
154 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
155 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
156 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
157 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
158 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
159 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
160 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
161 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
162 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
163 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
164 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
165 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
166 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
167 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
168 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
169 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
170 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
171 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
172 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
173 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
174 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
175 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
176 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
177 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
178 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
179 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
180 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
181 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
182 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
183 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
184 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
185 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
186 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
187 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
188 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
189 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
190 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
191 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
192 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
193 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
194 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
195 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
196 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
197 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
198 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
199 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
200 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
201 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
202 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
203 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
204 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
205 # ifdef __cplusplus\n\
208 #endif /* __MATH__ */",
211 /* * * * * * * * * * * * * * * * * * * * * * * * * *
213 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
215 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
216 "AAB_darwin7_9_long_double_funcs_2";
219 * File name selection pattern
221 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
224 * Machine/OS name selection pattern
226 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
231 * content selection pattern - do fix if pattern found
233 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
234 "#include[ \\t]+\\\"";
236 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
237 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
238 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
241 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
243 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
246 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
251 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
253 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
254 "AAB_fd_zero_asm_posix_types_h";
257 * File name selection pattern
259 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
260 "asm/posix_types.h\0";
262 * Machine/OS name selection pattern
264 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
265 "i[34567]86-*-linux*",
269 * content bypass pattern - skip fix if pattern found
271 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
273 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
275 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
278 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3
279 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
280 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
281 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
282 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
285 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
287 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
288 "/* This file fixes a bug in the __FD_ZERO macro\n\
289 for older versions of the Linux kernel. */\n\
290 #ifndef _POSIX_TYPES_H_WRAPPER\n\
291 #include <features.h>\n\
292 #include_next <asm/posix_types.h>\n\n\
293 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
295 #define __FD_ZERO(fdsetp) \\\n\
297 int __d0, __d1; \\\n\
298 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
299 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
300 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
301 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
304 #define _POSIX_TYPES_H_WRAPPER\n\
305 #endif /* _POSIX_TYPES_H_WRAPPER */",
308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
310 * Description of Aab_Fd_Zero_Gnu_Types_H fix
312 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
313 "AAB_fd_zero_gnu_types_h";
316 * File name selection pattern
318 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
321 * Machine/OS name selection pattern
323 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
324 "i[34567]86-*-linux*",
326 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
327 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
330 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
332 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
333 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
334 #ifndef _TYPES_H_WRAPPER\n\
335 #include <features.h>\n\
336 #include_next <gnu/types.h>\n\n\
337 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
339 # define __FD_ZERO(fdsetp) \\\n\
341 int __d0, __d1; \\\n\
342 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
343 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
344 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
345 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
348 #define _TYPES_H_WRAPPER\n\
349 #endif /* _TYPES_H_WRAPPER */",
352 /* * * * * * * * * * * * * * * * * * * * * * * * * *
354 * Description of Aab_Fd_Zero_Selectbits_H fix
356 tSCC zAab_Fd_Zero_Selectbits_HName[] =
357 "AAB_fd_zero_selectbits_h";
360 * File name selection pattern
362 tSCC zAab_Fd_Zero_Selectbits_HList[] =
365 * Machine/OS name selection pattern
367 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
368 "i[34567]86-*-linux*",
370 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
371 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
374 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
376 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
377 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
378 #ifndef _SELECTBITS_H_WRAPPER\n\
379 #include <features.h>\n\
380 #include_next <selectbits.h>\n\n\
381 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
382 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
383 && __GLIBC_MINOR__ == 0\n\
385 #define __FD_ZERO(fdsetp) \\\\\n\
387 int __d0, __d1; \\\\\n\
388 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
389 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
390 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
391 / sizeof (__fd_mask)), \\\\\n\
392 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
393 : \"memory\"); \\\\\n\
396 #define _SELECTBITS_H_WRAPPER\n\
397 #endif /* _SELECTBITS_H_WRAPPER */",
400 /* * * * * * * * * * * * * * * * * * * * * * * * * *
402 * Description of Aab_Solaris_Sys_Varargs_H fix
404 tSCC zAab_Solaris_Sys_Varargs_HName[] =
405 "AAB_solaris_sys_varargs_h";
408 * File name selection pattern
410 tSCC zAab_Solaris_Sys_Varargs_HList[] =
413 * Machine/OS name selection pattern
415 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
418 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
419 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
422 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
424 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
426 #include <stdarg.h>\n\
428 #include <varargs.h>\n\
432 /* * * * * * * * * * * * * * * * * * * * * * * * * *
434 * Description of Aab_Sun_Memcpy fix
436 tSCC zAab_Sun_MemcpyName[] =
440 * File name selection pattern
442 tSCC zAab_Sun_MemcpyList[] =
445 * Machine/OS name selection pattern
447 #define apzAab_Sun_MemcpyMachs (const char**)NULL
450 * content selection pattern - do fix if pattern found
452 tSCC zAab_Sun_MemcpySelect0[] =
453 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
455 #define AAB_SUN_MEMCPY_TEST_CT 1
456 static tTestDesc aAab_Sun_MemcpyTests[] = {
457 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
460 * Fix Command Arguments for Aab_Sun_Memcpy
462 static const char* apzAab_Sun_MemcpyPatch[] = {
463 "/* This file was generated by fixincludes */\n\
464 #ifndef __memory_h__\n\
465 #define __memory_h__\n\n\
467 extern void *memccpy();\n\
468 extern void *memchr();\n\
469 extern void *memcpy();\n\
470 extern void *memset();\n\
472 extern char *memccpy();\n\
473 extern char *memchr();\n\
474 extern char *memcpy();\n\
475 extern char *memset();\n\
476 #endif /* __STDC__ */\n\n\
477 extern int memcmp();\n\n\
478 #endif /* __memory_h__ */\n\
482 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
483 * stdarg.h or varargs.h files as appropriate.\n\
487 hackname = AAB_svr4_no_varargs;\n\
488 files = sys/varargs.h;\n\
489 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
490 \"#ifndef _SYS_VARARGS_H\\n\"\n\
491 \"#define _SYS_VARARGS_H\\n\\n\"\n\n\
492 \"#ifdef __STDC__\\n\"\n\
493 \"#include <stdarg.h>\\n\"\n\
495 \"#include <varargs.h>\\n\"\n\
496 \"#endif\\n\\n\"\n\n\
497 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
501 * Completely replace <sys/byteorder.h> with a file that implements gcc's\n\
502 * optimized byteswapping. (The original probably implemented some\n\
503 * incompatible optimized byteswapping.)\n\
506 hackname = AAB_svr4_replace_byteorder;\n\
507 mach = \"*-*-sysv4*\";\n\
508 mach = \"i[34567]86-*-sysv5*\";\n\
509 mach = \"i[34567]86-*-sco3.2v5*\";\n\
510 mach = \"i[34567]86-*-udk*\";\n\
511 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
512 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
513 mach = \"sparc-*-solaris2.[0-4]\";\n\
514 mach = \"i[34567]86-sequent-ptx*\";\n\
515 files = sys/byteorder.h;\n\
516 replace = <<- _EndOfHeader_\n\
517 #ifndef _SYS_BYTEORDER_H\n\
518 #define _SYS_BYTEORDER_H\n\n\
519 /* Functions to convert `short' and `long' quantities from host byte order\n\
520 to (internet) network byte order (i.e. big-endian).\n\n\
521 Written by Ron Guilmette (rfg@ncd.com).\n\n\
522 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
523 For big-endian machines these functions are essentially no-ops.\n\n\
524 For little-endian machines, we define the functions using specialized\n\
525 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
526 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
527 #error You lose! This file is only useful with GNU compilers.\n\
529 #ifndef __BYTE_ORDER__\n\
530 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
531 double underscores added at the front and back. */\n\
532 #define __LITTLE_ENDIAN__ 1234\n\
533 #define __BIG_ENDIAN__ 4321\n\
534 #define __PDP_ENDIAN__ 3412\n\
537 static __inline__ unsigned long htonl (unsigned long);\n\
538 static __inline__ unsigned short htons (unsigned int);\n\
539 static __inline__ unsigned long ntohl (unsigned long);\n\
540 static __inline__ unsigned short ntohs (unsigned int);\n\
541 #endif /* defined (__STDC__) */\n\n\
542 #if defined (__i386__)\n\n\
543 #ifndef __BYTE_ORDER__\n\
544 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
546 /* Convert a host long to a network long. */\n\n\
547 /* We must use a new-style function definition, so that this will also\n\
548 be valid for C++. */\n\
549 static __inline__ unsigned long\n\
550 htonl (unsigned long __arg)\n\
552 register unsigned long __result;\n\n\
553 __asm__ (\"xchg%B0 %b0,%h0\n\
555 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
558 /* Convert a host short to a network short. */\n\n\
559 static __inline__ unsigned short\n\
560 htons (unsigned int __arg)\n\
562 register unsigned short __result;\n\n\
563 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
566 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
567 #ifndef __BYTE_ORDER__\n\
568 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
570 /* For other little-endian machines, using C code is just as efficient as\n\
571 using assembly code. */\n\n\
572 /* Convert a host long to a network long. */\n\n\
573 static __inline__ unsigned long\n\
574 htonl (unsigned long __arg)\n\
576 register unsigned long __result;\n\n\
577 __result = (__arg >> 24) & 0x000000ff;\n\
578 __result |= (__arg >> 8) & 0x0000ff00;\n\
579 __result |= (__arg << 8) & 0x00ff0000;\n\
580 __result |= (__arg << 24) & 0xff000000;\n\
583 /* Convert a host short to a network short. */\n\n\
584 static __inline__ unsigned short\n\
585 htons (unsigned int __arg)\n\
587 register unsigned short __result;\n\n\
588 __result = (__arg << 8) & 0xff00;\n\
589 __result |= (__arg >> 8) & 0x00ff;\n\
592 #else /* must be a big-endian machine */\n\n\
593 #ifndef __BYTE_ORDER__\n\
594 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
596 /* Convert a host long to a network long. */\n\n\
597 static __inline__ unsigned long\n\
598 htonl (unsigned long __arg)\n\
602 /* Convert a host short to a network short. */\n\n\
603 static __inline__ unsigned short\n\
604 htons (unsigned int __arg)\n\
608 #endif /* big-endian */\n\n\
609 /* Convert a network long to a host long. */\n\n\
610 static __inline__ unsigned long\n\
611 ntohl (unsigned long __arg)\n\
613 return htonl (__arg);\n\
615 /* Convert a network short to a host short. */\n\n\
616 static __inline__ unsigned short\n\
617 ntohs (unsigned int __arg)\n\
619 return htons (__arg);\n\
624 /* * * * * * * * * * * * * * * * * * * * * * * * * *
626 * Description of Aab_Ultrix_Ansi_Compat fix
628 tSCC zAab_Ultrix_Ansi_CompatName[] =
629 "AAB_ultrix_ansi_compat";
632 * File name selection pattern
634 tSCC zAab_Ultrix_Ansi_CompatList[] =
637 * Machine/OS name selection pattern
639 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
642 * content selection pattern - do fix if pattern found
644 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
647 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
648 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
649 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
652 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
654 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
655 "/* This file intentionally left blank. */\n",
658 /* * * * * * * * * * * * * * * * * * * * * * * * * *
660 * Description of Aab_Ultrix_Limits fix
662 tSCC zAab_Ultrix_LimitsName[] =
666 * File name selection pattern
668 tSCC zAab_Ultrix_LimitsList[] =
671 * Machine/OS name selection pattern
673 tSCC* apzAab_Ultrix_LimitsMachs[] = {
676 #define AAB_ULTRIX_LIMITS_TEST_CT 0
677 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
680 * Fix Command Arguments for Aab_Ultrix_Limits
682 static const char* apzAab_Ultrix_LimitsPatch[] = {
683 "#ifndef _LIMITS_INCLUDED\n\
684 #define _LIMITS_INCLUDED\n\
685 #include <sys/limits.h>\n\
686 #endif /* _LIMITS_INCLUDED */",
689 /* * * * * * * * * * * * * * * * * * * * * * * * * *
691 * Description of Aab_Ultrix_Memory fix
693 tSCC zAab_Ultrix_MemoryName[] =
697 * File name selection pattern
699 tSCC zAab_Ultrix_MemoryList[] =
702 * Machine/OS name selection pattern
704 tSCC* apzAab_Ultrix_MemoryMachs[] = {
707 #define AAB_ULTRIX_MEMORY_TEST_CT 0
708 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
711 * Fix Command Arguments for Aab_Ultrix_Memory
713 static const char* apzAab_Ultrix_MemoryPatch[] = {
714 "#ifndef _MEMORY_INCLUDED\n\
715 #define _MEMORY_INCLUDED\n\
716 #include <strings.h>\n\
717 #endif /* _MEMORY_INCLUDED */",
720 /* * * * * * * * * * * * * * * * * * * * * * * * * *
722 * Description of Aab_Ultrix_String fix
724 tSCC zAab_Ultrix_StringName[] =
728 * File name selection pattern
730 tSCC zAab_Ultrix_StringList[] =
733 * Machine/OS name selection pattern
735 tSCC* apzAab_Ultrix_StringMachs[] = {
738 #define AAB_ULTRIX_STRING_TEST_CT 0
739 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
742 * Fix Command Arguments for Aab_Ultrix_String
744 static const char* apzAab_Ultrix_StringPatch[] = {
745 "#ifndef _STRING_INCLUDED\n\
746 #define _STRING_INCLUDED\n\
747 #include <strings.h>\n\
748 #endif /* _STRING_INCLUDED */",
751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
753 * Description of Aix_Pthread fix
755 tSCC zAix_PthreadName[] =
759 * File name selection pattern
761 tSCC zAix_PthreadList[] =
764 * Machine/OS name selection pattern
766 #define apzAix_PthreadMachs (const char**)NULL
769 * content selection pattern - do fix if pattern found
771 tSCC zAix_PthreadSelect0[] =
772 "(#define [A-Za-z_0-9]+)(\\\\\n\
776 #define AIX_PTHREAD_TEST_CT 1
777 static tTestDesc aAix_PthreadTests[] = {
778 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
781 * Fix Command Arguments for Aix_Pthread
783 static const char* apzAix_PthreadPatch[] = {
788 /* * * * * * * * * * * * * * * * * * * * * * * * * *
790 * Description of Aix_Sysmachine fix
792 tSCC zAix_SysmachineName[] =
796 * File name selection pattern
798 tSCC zAix_SysmachineList[] =
801 * Machine/OS name selection pattern
803 #define apzAix_SysmachineMachs (const char**)NULL
806 * content selection pattern - do fix if pattern found
808 tSCC zAix_SysmachineSelect0[] =
811 #define AIX_SYSMACHINE_TEST_CT 1
812 static tTestDesc aAix_SysmachineTests[] = {
813 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
816 * Fix Command Arguments for Aix_Sysmachine
818 static const char* apzAix_SysmachinePatch[] = {
823 /* * * * * * * * * * * * * * * * * * * * * * * * * *
825 * Description of Aix_Syswait fix
827 tSCC zAix_SyswaitName[] =
831 * File name selection pattern
833 tSCC zAix_SyswaitList[] =
836 * Machine/OS name selection pattern
838 #define apzAix_SyswaitMachs (const char**)NULL
841 * content selection pattern - do fix if pattern found
843 tSCC zAix_SyswaitSelect0[] =
844 "^extern pid_t wait3\\(\\);\n";
845 tSCC zAix_SyswaitSelect1[] =
848 #define AIX_SYSWAIT_TEST_CT 2
849 static tTestDesc aAix_SyswaitTests[] = {
850 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
851 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
854 * Fix Command Arguments for Aix_Syswait
856 static const char* apzAix_SyswaitPatch[] = {
862 /* * * * * * * * * * * * * * * * * * * * * * * * * *
864 * Description of Aix_Syswait_2 fix
866 tSCC zAix_Syswait_2Name[] =
870 * File name selection pattern
872 tSCC zAix_Syswait_2List[] =
875 * Machine/OS name selection pattern
877 #define apzAix_Syswait_2Machs (const char**)NULL
880 * content selection pattern - do fix if pattern found
882 tSCC zAix_Syswait_2Select0[] =
883 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
885 #define AIX_SYSWAIT_2_TEST_CT 1
886 static tTestDesc aAix_Syswait_2Tests[] = {
887 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
890 * Fix Command Arguments for Aix_Syswait_2
892 static const char* apzAix_Syswait_2Patch[] = {
897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
899 * Description of Aix_Volatile fix
901 tSCC zAix_VolatileName[] =
905 * File name selection pattern
907 tSCC zAix_VolatileList[] =
910 * Machine/OS name selection pattern
912 #define apzAix_VolatileMachs (const char**)NULL
915 * content selection pattern - do fix if pattern found
917 tSCC zAix_VolatileSelect0[] =
918 "typedef volatile int sig_atomic_t";
920 #define AIX_VOLATILE_TEST_CT 1
921 static tTestDesc aAix_VolatileTests[] = {
922 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
925 * Fix Command Arguments for Aix_Volatile
927 static const char* apzAix_VolatilePatch[] = {
929 "typedef int sig_atomic_t",
932 /* * * * * * * * * * * * * * * * * * * * * * * * * *
934 * Description of Alpha___Assert fix
936 tSCC zAlpha___AssertName[] =
940 * File name selection pattern
942 tSCC zAlpha___AssertList[] =
945 * Machine/OS name selection pattern
947 #define apzAlpha___AssertMachs (const char**)NULL
950 * content selection pattern - do fix if pattern found
952 tSCC zAlpha___AssertSelect0[] =
953 "__assert\\(char \\*, char \\*, int\\)";
955 #define ALPHA___ASSERT_TEST_CT 1
956 static tTestDesc aAlpha___AssertTests[] = {
957 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
960 * Fix Command Arguments for Alpha___Assert
962 static const char* apzAlpha___AssertPatch[] = {
964 "__assert(const char *, const char *, int)",
967 /* * * * * * * * * * * * * * * * * * * * * * * * * *
969 * Description of Alpha___Extern_Prefix fix
971 tSCC zAlpha___Extern_PrefixName[] =
972 "alpha___extern_prefix";
975 * File name selection pattern
977 #define zAlpha___Extern_PrefixList (char*)NULL
979 * Machine/OS name selection pattern
981 tSCC* apzAlpha___Extern_PrefixMachs[] = {
986 * content selection pattern - do fix if pattern found
988 tSCC zAlpha___Extern_PrefixSelect0[] =
989 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
990 (#[ \t]*pragma[ \t]*extern_prefix.*)";
992 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
993 static tTestDesc aAlpha___Extern_PrefixTests[] = {
994 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
997 * Fix Command Arguments for Alpha___Extern_Prefix
999 static const char* apzAlpha___Extern_PrefixPatch[] = {
1001 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
1005 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1007 * Description of Alpha___Extern_Prefix_Standards fix
1009 tSCC zAlpha___Extern_Prefix_StandardsName[] =
1010 "alpha___extern_prefix_standards";
1013 * File name selection pattern
1015 tSCC zAlpha___Extern_Prefix_StandardsList[] =
1018 * Machine/OS name selection pattern
1020 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
1022 (const char*)NULL };
1025 * content selection pattern - do fix if pattern found
1027 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
1028 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
1030 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
1031 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
1032 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
1035 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
1037 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
1039 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
1042 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1044 * Description of Alpha___Extern_Prefix_Sys_Stat fix
1046 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
1047 "alpha___extern_prefix_sys_stat";
1050 * File name selection pattern
1052 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
1053 "sys/stat.h\0sys/mount.h\0";
1055 * Machine/OS name selection pattern
1057 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
1059 (const char*)NULL };
1062 * content selection pattern - do fix if pattern found
1064 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1065 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1067 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
1068 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1069 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1072 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1074 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1076 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1079 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1081 * Description of Alpha_Assert fix
1083 tSCC zAlpha_AssertName[] =
1087 * File name selection pattern
1089 tSCC zAlpha_AssertList[] =
1092 * Machine/OS name selection pattern
1094 #define apzAlpha_AssertMachs (const char**)NULL
1097 * content selection pattern - do fix if pattern found
1099 tSCC zAlpha_AssertSelect0[] =
1100 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1102 #define ALPHA_ASSERT_TEST_CT 1
1103 static tTestDesc aAlpha_AssertTests[] = {
1104 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1107 * Fix Command Arguments for Alpha_Assert
1109 static const char* apzAlpha_AssertPatch[] = {
1114 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1116 * Description of Alpha_Bad_Lval fix
1118 tSCC zAlpha_Bad_LvalName[] =
1122 * File name selection pattern
1124 #define zAlpha_Bad_LvalList (char*)NULL
1126 * Machine/OS name selection pattern
1128 tSCC* apzAlpha_Bad_LvalMachs[] = {
1130 (const char*)NULL };
1133 * content selection pattern - do fix if pattern found
1135 tSCC zAlpha_Bad_LvalSelect0[] =
1136 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1138 #define ALPHA_BAD_LVAL_TEST_CT 1
1139 static tTestDesc aAlpha_Bad_LvalTests[] = {
1140 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1143 * Fix Command Arguments for Alpha_Bad_Lval
1145 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
1146 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1151 * Description of Alpha_Getopt fix
1153 tSCC zAlpha_GetoptName[] =
1157 * File name selection pattern
1159 tSCC zAlpha_GetoptList[] =
1160 "stdio.h\0stdlib.h\0";
1162 * Machine/OS name selection pattern
1164 #define apzAlpha_GetoptMachs (const char**)NULL
1167 * content selection pattern - do fix if pattern found
1169 tSCC zAlpha_GetoptSelect0[] =
1170 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1172 #define ALPHA_GETOPT_TEST_CT 1
1173 static tTestDesc aAlpha_GetoptTests[] = {
1174 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1177 * Fix Command Arguments for Alpha_Getopt
1179 static const char* apzAlpha_GetoptPatch[] = {
1181 "getopt(int, char *const[], const char *)",
1184 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1186 * Description of Alpha_Parens fix
1188 tSCC zAlpha_ParensName[] =
1192 * File name selection pattern
1194 tSCC zAlpha_ParensList[] =
1197 * Machine/OS name selection pattern
1199 #define apzAlpha_ParensMachs (const char**)NULL
1202 * content selection pattern - do fix if pattern found
1204 tSCC zAlpha_ParensSelect0[] =
1205 "#ifndef\\(__mips64\\)";
1207 #define ALPHA_PARENS_TEST_CT 1
1208 static tTestDesc aAlpha_ParensTests[] = {
1209 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1212 * Fix Command Arguments for Alpha_Parens
1214 static const char* apzAlpha_ParensPatch[] = {
1219 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1221 * Description of Alpha_Pthread fix
1223 tSCC zAlpha_PthreadName[] =
1227 * File name selection pattern
1229 tSCC zAlpha_PthreadList[] =
1232 * Machine/OS name selection pattern
1234 tSCC* apzAlpha_PthreadMachs[] = {
1236 (const char*)NULL };
1239 * content selection pattern - do fix if pattern found
1241 tSCC zAlpha_PthreadSelect0[] =
1242 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1243 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1245 #define ALPHA_PTHREAD_TEST_CT 1
1246 static tTestDesc aAlpha_PthreadTests[] = {
1247 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1250 * Fix Command Arguments for Alpha_Pthread
1252 static const char* apzAlpha_PthreadPatch[] = {
1254 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1258 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1260 * Description of Alpha_Pthread_Gcc fix
1262 tSCC zAlpha_Pthread_GccName[] =
1263 "alpha_pthread_gcc";
1266 * File name selection pattern
1268 tSCC zAlpha_Pthread_GccList[] =
1271 * Machine/OS name selection pattern
1273 tSCC* apzAlpha_Pthread_GccMachs[] = {
1275 (const char*)NULL };
1278 * content selection pattern - do fix if pattern found
1280 tSCC zAlpha_Pthread_GccSelect0[] =
1282 # error <pthread.h>: unrecognized compiler.";
1284 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1285 static tTestDesc aAlpha_Pthread_GccTests[] = {
1286 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1289 * Fix Command Arguments for Alpha_Pthread_Gcc
1291 static const char* apzAlpha_Pthread_GccPatch[] = {
1293 "#elif defined (__GNUC__)\n\
1294 # define _PTHREAD_ENV_GCC\n\
1298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1300 * Description of Alpha_Pthread_Init fix
1302 tSCC zAlpha_Pthread_InitName[] =
1303 "alpha_pthread_init";
1306 * File name selection pattern
1308 tSCC zAlpha_Pthread_InitList[] =
1311 * Machine/OS name selection pattern
1313 tSCC* apzAlpha_Pthread_InitMachs[] = {
1315 (const char*)NULL };
1318 * content selection pattern - do fix if pattern found
1320 tSCC zAlpha_Pthread_InitSelect0[] =
1321 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1323 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1324 static tTestDesc aAlpha_Pthread_InitTests[] = {
1325 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1328 * Fix Command Arguments for Alpha_Pthread_Init
1330 static const char* apzAlpha_Pthread_InitPatch[] = { "sed",
1331 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1332 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1333 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1334 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1335 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1336 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1339 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1341 * Description of Alpha_Sbrk fix
1343 tSCC zAlpha_SbrkName[] =
1347 * File name selection pattern
1349 tSCC zAlpha_SbrkList[] =
1352 * Machine/OS name selection pattern
1354 #define apzAlpha_SbrkMachs (const char**)NULL
1357 * content selection pattern - do fix if pattern found
1359 tSCC zAlpha_SbrkSelect0[] =
1360 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1362 #define ALPHA_SBRK_TEST_CT 1
1363 static tTestDesc aAlpha_SbrkTests[] = {
1364 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1367 * Fix Command Arguments for Alpha_Sbrk
1369 static const char* apzAlpha_SbrkPatch[] = {
1374 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1376 * Description of Alpha_Wchar fix
1378 tSCC zAlpha_WcharName[] =
1382 * File name selection pattern
1384 tSCC zAlpha_WcharList[] =
1387 * Machine/OS name selection pattern
1389 tSCC* apzAlpha_WcharMachs[] = {
1391 (const char*)NULL };
1394 * content selection pattern - do fix if pattern found
1396 tSCC zAlpha_WcharSelect0[] =
1397 "#define wcstok wcstok_r";
1399 #define ALPHA_WCHAR_TEST_CT 1
1400 static tTestDesc aAlpha_WcharTests[] = {
1401 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1404 * Fix Command Arguments for Alpha_Wchar
1406 static const char* apzAlpha_WcharPatch[] = { "sed",
1407 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1408 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1411 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1413 * Description of Avoid_Bool_Define fix
1415 tSCC zAvoid_Bool_DefineName[] =
1416 "avoid_bool_define";
1419 * File name selection pattern
1421 tSCC zAvoid_Bool_DefineList[] =
1422 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1424 * Machine/OS name selection pattern
1426 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1429 * content selection pattern - do fix if pattern found
1431 tSCC zAvoid_Bool_DefineSelect0[] =
1432 "#[ \t]*define[ \t]+bool[ \t]";
1435 * content bypass pattern - skip fix if pattern found
1437 tSCC zAvoid_Bool_DefineBypass0[] =
1440 #define AVOID_BOOL_DEFINE_TEST_CT 2
1441 static tTestDesc aAvoid_Bool_DefineTests[] = {
1442 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1443 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1446 * Fix Command Arguments for Avoid_Bool_Define
1448 static const char* apzAvoid_Bool_DefinePatch[] = {
1450 "#ifndef __cplusplus\n\
1453 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1456 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1458 * Description of Avoid_Bool_Type fix
1460 tSCC zAvoid_Bool_TypeName[] =
1464 * File name selection pattern
1466 tSCC zAvoid_Bool_TypeList[] =
1467 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1469 * Machine/OS name selection pattern
1471 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1474 * content selection pattern - do fix if pattern found
1476 tSCC zAvoid_Bool_TypeSelect0[] =
1477 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1480 * content bypass pattern - skip fix if pattern found
1482 tSCC zAvoid_Bool_TypeBypass0[] =
1485 #define AVOID_BOOL_TYPE_TEST_CT 2
1486 static tTestDesc aAvoid_Bool_TypeTests[] = {
1487 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1488 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1491 * Fix Command Arguments for Avoid_Bool_Type
1493 static const char* apzAvoid_Bool_TypePatch[] = {
1495 "#ifndef __cplusplus\n\
1500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1502 * Description of Avoid_Wchar_T_Type fix
1504 tSCC zAvoid_Wchar_T_TypeName[] =
1505 "avoid_wchar_t_type";
1508 * File name selection pattern
1510 #define zAvoid_Wchar_T_TypeList (char*)NULL
1512 * Machine/OS name selection pattern
1514 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1517 * content selection pattern - do fix if pattern found
1519 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1520 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1523 * content bypass pattern - skip fix if pattern found
1525 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1527 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1529 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1530 "XFree86: xc/lib/X11/Xlib\\.h";
1532 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1533 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1534 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1535 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1536 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1537 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1540 * Fix Command Arguments for Avoid_Wchar_T_Type
1542 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1544 "#ifndef __cplusplus\n\
1549 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1551 * Description of Bad_Struct_Term fix
1553 tSCC zBad_Struct_TermName[] =
1557 * File name selection pattern
1559 tSCC zBad_Struct_TermList[] =
1562 * Machine/OS name selection pattern
1564 #define apzBad_Struct_TermMachs (const char**)NULL
1567 * content selection pattern - do fix if pattern found
1569 tSCC zBad_Struct_TermSelect0[] =
1570 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1572 #define BAD_STRUCT_TERM_TEST_CT 1
1573 static tTestDesc aBad_Struct_TermTests[] = {
1574 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1577 * Fix Command Arguments for Bad_Struct_Term
1579 static const char* apzBad_Struct_TermPatch[] = {
1584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1586 * Description of Badquote fix
1588 tSCC zBadquoteName[] =
1592 * File name selection pattern
1594 tSCC zBadquoteList[] =
1595 "sundev/vuid_event.h\0";
1597 * Machine/OS name selection pattern
1599 #define apzBadquoteMachs (const char**)NULL
1602 * content selection pattern - do fix if pattern found
1604 tSCC zBadquoteSelect0[] =
1607 #define BADQUOTE_TEST_CT 1
1608 static tTestDesc aBadquoteTests[] = {
1609 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1612 * Fix Command Arguments for Badquote
1614 static const char* apzBadquotePatch[] = {
1619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1621 * Description of Broken_Assert_Stdio fix
1623 tSCC zBroken_Assert_StdioName[] =
1624 "broken_assert_stdio";
1627 * File name selection pattern
1629 tSCC zBroken_Assert_StdioList[] =
1632 * Machine/OS name selection pattern
1634 #define apzBroken_Assert_StdioMachs (const char**)NULL
1637 * content selection pattern - do fix if pattern found
1639 tSCC zBroken_Assert_StdioSelect0[] =
1643 * content bypass pattern - skip fix if pattern found
1645 tSCC zBroken_Assert_StdioBypass0[] =
1646 "include.*stdio\\.h";
1648 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1649 static tTestDesc aBroken_Assert_StdioTests[] = {
1650 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1651 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1654 * Fix Command Arguments for Broken_Assert_Stdio
1656 static const char* apzBroken_Assert_StdioPatch[] = {
1658 "#include <stdio.h>\n",
1661 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1663 * Description of Broken_Assert_Stdlib fix
1665 tSCC zBroken_Assert_StdlibName[] =
1666 "broken_assert_stdlib";
1669 * File name selection pattern
1671 tSCC zBroken_Assert_StdlibList[] =
1674 * Machine/OS name selection pattern
1676 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1679 * content selection pattern - do fix if pattern found
1681 tSCC zBroken_Assert_StdlibSelect0[] =
1682 "exit *\\(|abort *\\(";
1685 * content bypass pattern - skip fix if pattern found
1687 tSCC zBroken_Assert_StdlibBypass0[] =
1688 "include.*stdlib\\.h";
1690 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1691 static tTestDesc aBroken_Assert_StdlibTests[] = {
1692 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1693 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1696 * Fix Command Arguments for Broken_Assert_Stdlib
1698 static const char* apzBroken_Assert_StdlibPatch[] = {
1700 "#ifdef __cplusplus\n\
1701 #include <stdlib.h>\n\
1705 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1707 * Description of Broken_Cabs fix
1709 tSCC zBroken_CabsName[] =
1713 * File name selection pattern
1715 tSCC zBroken_CabsList[] =
1716 "math.h\0architecture/*/math.h\0";
1718 * Machine/OS name selection pattern
1720 #define apzBroken_CabsMachs (const char**)NULL
1723 * content selection pattern - do fix if pattern found
1725 tSCC zBroken_CabsSelect0[] =
1726 "^extern[ \t]+double[ \t]+cabs";
1728 #define BROKEN_CABS_TEST_CT 1
1729 static tTestDesc aBroken_CabsTests[] = {
1730 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1733 * Fix Command Arguments for Broken_Cabs
1735 static const char* apzBroken_CabsPatch[] = { "sed",
1736 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1737 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1742 * Description of Broken_Nan fix
1744 tSCC zBroken_NanName[] =
1748 * File name selection pattern
1750 tSCC zBroken_NanList[] =
1751 "architecture/ppc/math.h\0architecture/*/math.h\0";
1753 * Machine/OS name selection pattern
1755 #define apzBroken_NanMachs (const char**)NULL
1758 * content selection pattern - do fix if pattern found
1760 tSCC zBroken_NanSelect0[] =
1761 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1764 * content bypass pattern - skip fix if pattern found
1766 tSCC zBroken_NanBypass0[] =
1769 #define BROKEN_NAN_TEST_CT 2
1770 static tTestDesc aBroken_NanTests[] = {
1771 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1772 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1775 * Fix Command Arguments for Broken_Nan
1777 static const char* apzBroken_NanPatch[] = {
1782 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1784 * Description of Bsd_Stdio_Attrs_Conflict fix
1786 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1787 "bsd_stdio_attrs_conflict";
1790 * File name selection pattern
1792 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1795 * Machine/OS name selection pattern
1797 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1800 (const char*)NULL };
1803 * content selection pattern - do fix if pattern found
1805 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1806 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1808 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1809 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1810 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1813 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1815 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1817 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1818 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1819 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1822 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1824 * Description of Ctrl_Quotes_Def fix
1826 tSCC zCtrl_Quotes_DefName[] =
1830 * File name selection pattern
1832 #define zCtrl_Quotes_DefList (char*)NULL
1834 * Machine/OS name selection pattern
1836 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1839 * content selection pattern - do fix if pattern found
1841 tSCC zCtrl_Quotes_DefSelect0[] =
1842 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1844 #define CTRL_QUOTES_DEF_TEST_CT 1
1845 static tTestDesc aCtrl_Quotes_DefTests[] = {
1846 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1849 * Fix Command Arguments for Ctrl_Quotes_Def
1851 static const char* apzCtrl_Quotes_DefPatch[] = {
1856 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1858 * Description of Ctrl_Quotes_Use fix
1860 tSCC zCtrl_Quotes_UseName[] =
1864 * File name selection pattern
1866 #define zCtrl_Quotes_UseList (char*)NULL
1868 * Machine/OS name selection pattern
1870 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1873 * content selection pattern - do fix if pattern found
1875 tSCC zCtrl_Quotes_UseSelect0[] =
1876 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1878 #define CTRL_QUOTES_USE_TEST_CT 1
1879 static tTestDesc aCtrl_Quotes_UseTests[] = {
1880 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1883 * Fix Command Arguments for Ctrl_Quotes_Use
1885 static const char* apzCtrl_Quotes_UsePatch[] = {
1890 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1892 * Description of Cxx_Unready fix
1894 tSCC zCxx_UnreadyName[] =
1898 * File name selection pattern
1900 tSCC zCxx_UnreadyList[] =
1901 "sys/mman.h\0rpc/types.h\0";
1903 * Machine/OS name selection pattern
1905 #define apzCxx_UnreadyMachs (const char**)NULL
1908 * content selection pattern - do fix if pattern found
1910 tSCC zCxx_UnreadySelect0[] =
1914 * content bypass pattern - skip fix if pattern found
1916 tSCC zCxx_UnreadyBypass0[] =
1917 "\"C\"|__BEGIN_DECLS";
1919 #define CXX_UNREADY_TEST_CT 2
1920 static tTestDesc aCxx_UnreadyTests[] = {
1921 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1922 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1925 * Fix Command Arguments for Cxx_Unready
1927 static const char* apzCxx_UnreadyPatch[] = {
1929 "#ifdef __cplusplus\n\
1932 "#ifdef __cplusplus\n\
1937 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1939 * Description of Darwin_Externc fix
1941 tSCC zDarwin_ExterncName[] =
1945 * File name selection pattern
1947 tSCC zDarwin_ExterncList[] =
1948 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1950 * Machine/OS name selection pattern
1952 tSCC* apzDarwin_ExterncMachs[] = {
1954 (const char*)NULL };
1957 * content bypass pattern - skip fix if pattern found
1959 tSCC zDarwin_ExterncBypass0[] =
1961 tSCC zDarwin_ExterncBypass1[] =
1964 #define DARWIN_EXTERNC_TEST_CT 2
1965 static tTestDesc aDarwin_ExterncTests[] = {
1966 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1967 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1970 * Fix Command Arguments for Darwin_Externc
1972 static const char* apzDarwin_ExterncPatch[] = {
1974 "#ifdef __cplusplus\n\
1977 "#ifdef __cplusplus\n\
1982 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1984 * Description of Darwin_Gcc4_Breakage fix
1986 tSCC zDarwin_Gcc4_BreakageName[] =
1987 "darwin_gcc4_breakage";
1990 * File name selection pattern
1992 tSCC zDarwin_Gcc4_BreakageList[] =
1993 "AvailabilityMacros.h\0";
1995 * Machine/OS name selection pattern
1997 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1999 (const char*)NULL };
2002 * content selection pattern - do fix if pattern found
2004 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2005 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2007 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
2008 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2009 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2012 * Fix Command Arguments for Darwin_Gcc4_Breakage
2014 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2016 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2021 * Description of Darwin_Private_Extern fix
2023 tSCC zDarwin_Private_ExternName[] =
2024 "darwin_private_extern";
2027 * File name selection pattern
2029 tSCC zDarwin_Private_ExternList[] =
2032 * Machine/OS name selection pattern
2034 tSCC* apzDarwin_Private_ExternMachs[] = {
2036 (const char*)NULL };
2039 * content selection pattern - do fix if pattern found
2041 tSCC zDarwin_Private_ExternSelect0[] =
2042 "__private_extern__ [a-z_]+ _dyld_";
2044 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
2045 static tTestDesc aDarwin_Private_ExternTests[] = {
2046 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2049 * Fix Command Arguments for Darwin_Private_Extern
2051 static const char* apzDarwin_Private_ExternPatch[] = {
2054 "__private_extern__",
2057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2059 * Description of Dec_Intern_Asm fix
2061 tSCC zDec_Intern_AsmName[] =
2065 * File name selection pattern
2067 tSCC zDec_Intern_AsmList[] =
2070 * Machine/OS name selection pattern
2072 #define apzDec_Intern_AsmMachs (const char**)NULL
2073 #define DEC_INTERN_ASM_TEST_CT 0
2074 #define aDec_Intern_AsmTests (tTestDesc*)NULL
2077 * Fix Command Arguments for Dec_Intern_Asm
2079 static const char* apzDec_Intern_AsmPatch[] = { "sed",
2080 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2082 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2086 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2088 * Description of Djgpp_Wchar_H fix
2090 tSCC zDjgpp_Wchar_HName[] =
2094 * File name selection pattern
2096 #define zDjgpp_Wchar_HList (char*)NULL
2098 * Machine/OS name selection pattern
2100 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2103 * content selection pattern - do fix if pattern found
2105 tSCC zDjgpp_Wchar_HSelect0[] =
2109 * content bypass pattern - skip fix if pattern found
2111 tSCC zDjgpp_Wchar_HBypass0[] =
2114 #define DJGPP_WCHAR_H_TEST_CT 2
2115 static tTestDesc aDjgpp_Wchar_HTests[] = {
2116 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2117 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2120 * Fix Command Arguments for Djgpp_Wchar_H
2122 static const char* apzDjgpp_Wchar_HPatch[] = {
2125 #include <sys/djtypes.h>",
2126 "#include <stddef.h>",
2129 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2131 * Description of Ecd_Cursor fix
2133 tSCC zEcd_CursorName[] =
2137 * File name selection pattern
2139 tSCC zEcd_CursorList[] =
2140 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2142 * Machine/OS name selection pattern
2144 #define apzEcd_CursorMachs (const char**)NULL
2147 * content selection pattern - do fix if pattern found
2149 tSCC zEcd_CursorSelect0[] =
2152 #define ECD_CURSOR_TEST_CT 1
2153 static tTestDesc aEcd_CursorTests[] = {
2154 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2157 * Fix Command Arguments for Ecd_Cursor
2159 static const char* apzEcd_CursorPatch[] = {
2164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2166 * Description of Exception_Structure fix
2168 tSCC zException_StructureName[] =
2169 "exception_structure";
2172 * File name selection pattern
2174 tSCC zException_StructureList[] =
2177 * Machine/OS name selection pattern
2179 #define apzException_StructureMachs (const char**)NULL
2182 * content selection pattern - do fix if pattern found
2184 tSCC zException_StructureSelect0[] =
2188 * content bypass pattern - skip fix if pattern found
2190 tSCC zException_StructureBypass0[] =
2191 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
2193 #define EXCEPTION_STRUCTURE_TEST_CT 2
2194 static tTestDesc aException_StructureTests[] = {
2195 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
2196 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
2199 * Fix Command Arguments for Exception_Structure
2201 static const char* apzException_StructurePatch[] = {
2203 "struct exception;\n",
2206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2208 * Description of Freebsd_Gcc3_Breakage fix
2210 tSCC zFreebsd_Gcc3_BreakageName[] =
2211 "freebsd_gcc3_breakage";
2214 * File name selection pattern
2216 tSCC zFreebsd_Gcc3_BreakageList[] =
2219 * Machine/OS name selection pattern
2221 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2223 (const char*)NULL };
2226 * content selection pattern - do fix if pattern found
2228 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2229 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2232 * content bypass pattern - skip fix if pattern found
2234 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2235 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2237 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2238 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2239 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2240 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2243 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2245 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2247 "%0 || __GNUC__ >= 3",
2250 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2252 * Description of Freebsd_Gcc4_Breakage fix
2254 tSCC zFreebsd_Gcc4_BreakageName[] =
2255 "freebsd_gcc4_breakage";
2258 * File name selection pattern
2260 tSCC zFreebsd_Gcc4_BreakageList[] =
2263 * Machine/OS name selection pattern
2265 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2267 (const char*)NULL };
2270 * content selection pattern - do fix if pattern found
2272 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2273 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2275 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2276 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2277 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2280 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2282 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2284 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2287 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2289 * Description of Glibc_C99_Inline_1 fix
2291 tSCC zGlibc_C99_Inline_1Name[] =
2292 "glibc_c99_inline_1";
2295 * File name selection pattern
2297 tSCC zGlibc_C99_Inline_1List[] =
2298 "features.h\0*/features.h\0";
2300 * Machine/OS name selection pattern
2302 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2305 * content selection pattern - do fix if pattern found
2307 tSCC zGlibc_C99_Inline_1Select0[] =
2308 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2310 #define GLIBC_C99_INLINE_1_TEST_CT 1
2311 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2312 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2315 * Fix Command Arguments for Glibc_C99_Inline_1
2317 static const char* apzGlibc_C99_Inline_1Patch[] = {
2319 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2322 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2324 * Description of Glibc_C99_Inline_1a fix
2326 tSCC zGlibc_C99_Inline_1aName[] =
2327 "glibc_c99_inline_1a";
2330 * File name selection pattern
2332 tSCC zGlibc_C99_Inline_1aList[] =
2333 "features.h\0*/features.h\0";
2335 * Machine/OS name selection pattern
2337 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2340 * content selection pattern - do fix if pattern found
2342 tSCC zGlibc_C99_Inline_1aSelect0[] =
2343 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2344 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2346 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2347 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2348 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2351 * Fix Command Arguments for Glibc_C99_Inline_1a
2353 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2355 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2359 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2361 * Description of Glibc_C99_Inline_2 fix
2363 tSCC zGlibc_C99_Inline_2Name[] =
2364 "glibc_c99_inline_2";
2367 * File name selection pattern
2369 tSCC zGlibc_C99_Inline_2List[] =
2370 "sys/stat.h\0*/sys/stat.h\0";
2372 * Machine/OS name selection pattern
2374 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2377 * content selection pattern - do fix if pattern found
2379 tSCC zGlibc_C99_Inline_2Select0[] =
2380 "extern __inline__ int";
2382 #define GLIBC_C99_INLINE_2_TEST_CT 1
2383 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2384 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2387 * Fix Command Arguments for Glibc_C99_Inline_2
2389 static const char* apzGlibc_C99_Inline_2Patch[] = { "sed",
2390 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2393 __inline__ int \\1/",
2394 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2397 __inline__ int __REDIRECT\\1 (\\2/",
2398 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2406 * Description of Glibc_C99_Inline_3 fix
2408 tSCC zGlibc_C99_Inline_3Name[] =
2409 "glibc_c99_inline_3";
2412 * File name selection pattern
2414 tSCC zGlibc_C99_Inline_3List[] =
2415 "bits/string2.h\0*/bits/string2.h\0";
2417 * Machine/OS name selection pattern
2419 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2422 * content selection pattern - do fix if pattern found
2424 tSCC zGlibc_C99_Inline_3Select0[] =
2428 * content bypass pattern - skip fix if pattern found
2430 tSCC zGlibc_C99_Inline_3Bypass0[] =
2431 "__extern_inline|__GNU_STDC_INLINE__";
2433 #define GLIBC_C99_INLINE_3_TEST_CT 2
2434 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2435 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2436 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2439 * Fix Command Arguments for Glibc_C99_Inline_3
2441 static const char* apzGlibc_C99_Inline_3Patch[] = {
2443 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2444 "^# ifdef __cplusplus$",
2447 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2449 * Description of Glibc_C99_Inline_4 fix
2451 tSCC zGlibc_C99_Inline_4Name[] =
2452 "glibc_c99_inline_4";
2455 * File name selection pattern
2457 tSCC zGlibc_C99_Inline_4List[] =
2458 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2460 * Machine/OS name selection pattern
2462 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2465 * content selection pattern - do fix if pattern found
2467 tSCC zGlibc_C99_Inline_4Select0[] =
2468 "(^| )extern __inline";
2471 * content bypass pattern - skip fix if pattern found
2473 tSCC zGlibc_C99_Inline_4Bypass0[] =
2474 "__extern_inline|__gnu_inline__";
2476 #define GLIBC_C99_INLINE_4_TEST_CT 2
2477 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2478 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2479 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2482 * Fix Command Arguments for Glibc_C99_Inline_4
2484 static const char* apzGlibc_C99_Inline_4Patch[] = {
2486 "%0 __attribute__ ((__gnu_inline__))",
2489 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2491 * Description of Glibc_Mutex_Init fix
2493 tSCC zGlibc_Mutex_InitName[] =
2497 * File name selection pattern
2499 tSCC zGlibc_Mutex_InitList[] =
2502 * Machine/OS name selection pattern
2504 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2507 * content selection pattern - do fix if pattern found
2509 tSCC zGlibc_Mutex_InitSelect0[] =
2510 "\\{ *\\{ *0, *\\} *\\}";
2512 #define GLIBC_MUTEX_INIT_TEST_CT 1
2513 static tTestDesc aGlibc_Mutex_InitTests[] = {
2514 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2517 * Fix Command Arguments for Glibc_Mutex_Init
2519 static const char* apzGlibc_Mutex_InitPatch[] = { "sed",
2520 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/,+1s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/",
2521 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2522 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2523 "-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/",
2524 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2525 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2530 * Description of Gnu_Types fix
2532 tSCC zGnu_TypesName[] =
2536 * File name selection pattern
2538 tSCC zGnu_TypesList[] =
2539 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2541 * Machine/OS name selection pattern
2543 tSCC* apzGnu_TypesMachs[] = {
2544 "*-*-solaris2.1[0-9]*",
2545 (const char*)NULL };
2548 * content selection pattern - do fix if pattern found
2550 tSCC zGnu_TypesSelect0[] =
2551 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2554 * content bypass pattern - skip fix if pattern found
2556 tSCC zGnu_TypesBypass0[] =
2557 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2559 #define GNU_TYPES_TEST_CT 2
2560 static tTestDesc aGnu_TypesTests[] = {
2561 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2562 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2565 * Fix Command Arguments for Gnu_Types
2567 static const char* apzGnu_TypesPatch[] = {
2571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2573 * Description of Hp_Inline fix
2575 tSCC zHp_InlineName[] =
2579 * File name selection pattern
2581 tSCC zHp_InlineList[] =
2582 "sys/spinlock.h\0machine/machparam.h\0";
2584 * Machine/OS name selection pattern
2586 #define apzHp_InlineMachs (const char**)NULL
2589 * content selection pattern - do fix if pattern found
2591 tSCC zHp_InlineSelect0[] =
2592 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2594 #define HP_INLINE_TEST_CT 1
2595 static tTestDesc aHp_InlineTests[] = {
2596 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2599 * Fix Command Arguments for Hp_Inline
2601 static const char* apzHp_InlinePatch[] = {
2604 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2607 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2609 * Description of Hp_Sysfile fix
2611 tSCC zHp_SysfileName[] =
2615 * File name selection pattern
2617 tSCC zHp_SysfileList[] =
2620 * Machine/OS name selection pattern
2622 #define apzHp_SysfileMachs (const char**)NULL
2625 * content selection pattern - do fix if pattern found
2627 tSCC zHp_SysfileSelect0[] =
2630 #define HP_SYSFILE_TEST_CT 1
2631 static tTestDesc aHp_SysfileTests[] = {
2632 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2635 * Fix Command Arguments for Hp_Sysfile
2637 static const char* apzHp_SysfilePatch[] = {
2639 "(struct file *, ...)",
2643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2645 * Description of Hpux10_Cpp_Pow_Inline fix
2647 tSCC zHpux10_Cpp_Pow_InlineName[] =
2648 "hpux10_cpp_pow_inline";
2651 * File name selection pattern
2653 tSCC zHpux10_Cpp_Pow_InlineList[] =
2654 "fixinc-test-limits.h\0math.h\0";
2656 * Machine/OS name selection pattern
2658 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2661 * content selection pattern - do fix if pattern found
2663 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2664 "^# +ifdef +__cplusplus\n\
2666 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2667 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2669 +extern +\"C\" +\\{\n\
2673 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2674 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2675 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2678 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2680 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2687 * Description of Hpux11_Cpp_Pow_Inline fix
2689 tSCC zHpux11_Cpp_Pow_InlineName[] =
2690 "hpux11_cpp_pow_inline";
2693 * File name selection pattern
2695 tSCC zHpux11_Cpp_Pow_InlineList[] =
2698 * Machine/OS name selection pattern
2700 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2703 * content selection pattern - do fix if pattern found
2705 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2706 " +inline double pow\\(double d,int expon\\) \\{\n\
2707 +return pow\\(d, \\(double\\)expon\\);\n\
2710 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2711 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2712 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2715 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2717 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2722 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2724 * Description of Hppa_Hpux_Fp_Macros fix
2726 tSCC zHppa_Hpux_Fp_MacrosName[] =
2727 "hppa_hpux_fp_macros";
2730 * File name selection pattern
2732 tSCC zHppa_Hpux_Fp_MacrosList[] =
2735 * Machine/OS name selection pattern
2737 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2739 (const char*)NULL };
2742 * content selection pattern - do fix if pattern found
2744 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2745 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2746 #[ \t]*define[ \t]*FP_ZERO.*\n\
2747 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2748 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2749 #[ \t]*define[ \t]*FP_NAN.*\n";
2751 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2752 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2753 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2756 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2758 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2760 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2761 #if defined(_INCLUDE_HPUX_SOURCE) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2763 #ifdef _INCLUDE_HPUX_SOURCE\n",
2766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2768 * Description of Hpux10_Ctype_Declarations1 fix
2770 tSCC zHpux10_Ctype_Declarations1Name[] =
2771 "hpux10_ctype_declarations1";
2774 * File name selection pattern
2776 tSCC zHpux10_Ctype_Declarations1List[] =
2779 * Machine/OS name selection pattern
2781 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2784 * content selection pattern - do fix if pattern found
2786 tSCC zHpux10_Ctype_Declarations1Select0[] =
2787 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2790 * content bypass pattern - skip fix if pattern found
2792 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2793 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2795 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2796 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2797 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2798 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2801 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2803 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2805 "#ifdef _PROTOTYPES\n\
2806 extern int __tolower(int);\n\
2807 extern int __toupper(int);\n\
2808 #else /* NOT _PROTOTYPES */\n\
2809 extern int __tolower();\n\
2810 extern int __toupper();\n\
2811 #endif /* _PROTOTYPES */\n\n\
2815 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2817 * Description of Hpux10_Ctype_Declarations2 fix
2819 tSCC zHpux10_Ctype_Declarations2Name[] =
2820 "hpux10_ctype_declarations2";
2823 * File name selection pattern
2825 tSCC zHpux10_Ctype_Declarations2List[] =
2828 * Machine/OS name selection pattern
2830 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2833 * content selection pattern - do fix if pattern found
2835 tSCC zHpux10_Ctype_Declarations2Select0[] =
2836 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2839 * content bypass pattern - skip fix if pattern found
2841 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2842 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2844 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2845 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2846 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2847 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2850 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2852 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2855 #ifdef _PROTOTYPES\n\
2856 extern int _isalnum(int);\n\
2857 extern int _isalpha(int);\n\
2858 extern int _iscntrl(int);\n\
2859 extern int _isdigit(int);\n\
2860 extern int _isgraph(int);\n\
2861 extern int _islower(int);\n\
2862 extern int _isprint(int);\n\
2863 extern int _ispunct(int);\n\
2864 extern int _isspace(int);\n\
2865 extern int _isupper(int);\n\
2866 extern int _isxdigit(int);\n\
2867 # else /* not _PROTOTYPES */\n\
2868 extern int _isalnum();\n\
2869 extern int _isalpha();\n\
2870 extern int _iscntrl();\n\
2871 extern int _isdigit();\n\
2872 extern int _isgraph();\n\
2873 extern int _islower();\n\
2874 extern int _isprint();\n\
2875 extern int _ispunct();\n\
2876 extern int _isspace();\n\
2877 extern int _isupper();\n\
2878 extern int _isxdigit();\n\
2879 #endif /* _PROTOTYPES */\n",
2882 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2884 * Description of Hpux10_Stdio_Declarations fix
2886 tSCC zHpux10_Stdio_DeclarationsName[] =
2887 "hpux10_stdio_declarations";
2890 * File name selection pattern
2892 tSCC zHpux10_Stdio_DeclarationsList[] =
2895 * Machine/OS name selection pattern
2897 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2900 * content selection pattern - do fix if pattern found
2902 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2903 "^#[ \t]*define _iob[ \t]*__iob";
2906 * content bypass pattern - skip fix if pattern found
2908 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2909 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2911 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2912 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2913 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2914 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2917 * Fix Command Arguments for Hpux10_Stdio_Declarations
2919 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2922 # if defined(__STDC__) || defined(__cplusplus)\n\
2923 extern int snprintf(char *, size_t, const char *, ...);\n\
2924 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2925 # else /* not __STDC__) || __cplusplus */\n\
2926 extern int snprintf();\n\
2927 extern int vsnprintf();\n\
2928 # endif /* __STDC__) || __cplusplus */\n",
2931 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2933 * Description of Hpux11_Abs fix
2935 tSCC zHpux11_AbsName[] =
2939 * File name selection pattern
2941 tSCC zHpux11_AbsList[] =
2944 * Machine/OS name selection pattern
2946 tSCC* apzHpux11_AbsMachs[] = {
2948 (const char*)NULL };
2951 * content selection pattern - do fix if pattern found
2953 tSCC zHpux11_AbsSelect0[] =
2954 "ifndef _MATH_INCLUDED";
2956 #define HPUX11_ABS_TEST_CT 1
2957 static tTestDesc aHpux11_AbsTests[] = {
2958 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2961 * Fix Command Arguments for Hpux11_Abs
2963 static const char* apzHpux11_AbsPatch[] = {
2965 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2968 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2970 * Description of Hpux11_Fabsf fix
2972 tSCC zHpux11_FabsfName[] =
2976 * File name selection pattern
2978 tSCC zHpux11_FabsfList[] =
2981 * Machine/OS name selection pattern
2983 #define apzHpux11_FabsfMachs (const char**)NULL
2986 * content selection pattern - do fix if pattern found
2988 tSCC zHpux11_FabsfSelect0[] =
2989 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2992 * content bypass pattern - skip fix if pattern found
2994 tSCC zHpux11_FabsfBypass0[] =
2997 #define HPUX11_FABSF_TEST_CT 2
2998 static tTestDesc aHpux11_FabsfTests[] = {
2999 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
3000 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3003 * Fix Command Arguments for Hpux11_Fabsf
3005 static const char* apzHpux11_FabsfPatch[] = {
3007 "#ifndef __cplusplus\n\
3012 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3014 * Description of Hpux11_Size_T fix
3016 tSCC zHpux11_Size_TName[] =
3020 * File name selection pattern
3022 #define zHpux11_Size_TList (char*)NULL
3024 * Machine/OS name selection pattern
3026 tSCC* apzHpux11_Size_TMachs[] = {
3028 (const char*)NULL };
3031 * content selection pattern - do fix if pattern found
3033 tSCC zHpux11_Size_TSelect0[] =
3036 #define HPUX11_SIZE_T_TEST_CT 1
3037 static tTestDesc aHpux11_Size_TTests[] = {
3038 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3041 * Fix Command Arguments for Hpux11_Size_T
3043 static const char* apzHpux11_Size_TPatch[] = {
3048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3050 * Description of Hpux11_Snprintf fix
3052 tSCC zHpux11_SnprintfName[] =
3056 * File name selection pattern
3058 tSCC zHpux11_SnprintfList[] =
3061 * Machine/OS name selection pattern
3063 #define apzHpux11_SnprintfMachs (const char**)NULL
3066 * content selection pattern - do fix if pattern found
3068 tSCC zHpux11_SnprintfSelect0[] =
3069 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3071 #define HPUX11_SNPRINTF_TEST_CT 1
3072 static tTestDesc aHpux11_SnprintfTests[] = {
3073 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3076 * Fix Command Arguments for Hpux11_Snprintf
3078 static const char* apzHpux11_SnprintfPatch[] = {
3083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3085 * Description of Hpux11_Uint32_C fix
3087 tSCC zHpux11_Uint32_CName[] =
3091 * File name selection pattern
3093 tSCC zHpux11_Uint32_CList[] =
3096 * Machine/OS name selection pattern
3098 #define apzHpux11_Uint32_CMachs (const char**)NULL
3101 * content selection pattern - do fix if pattern found
3103 tSCC zHpux11_Uint32_CSelect0[] =
3104 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
3106 #define HPUX11_UINT32_C_TEST_CT 1
3107 static tTestDesc aHpux11_Uint32_CTests[] = {
3108 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
3111 * Fix Command Arguments for Hpux11_Uint32_C
3113 static const char* apzHpux11_Uint32_CPatch[] = {
3115 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
3118 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3120 * Description of Hpux11_Vsnprintf fix
3122 tSCC zHpux11_VsnprintfName[] =
3126 * File name selection pattern
3128 tSCC zHpux11_VsnprintfList[] =
3131 * Machine/OS name selection pattern
3133 #define apzHpux11_VsnprintfMachs (const char**)NULL
3136 * content selection pattern - do fix if pattern found
3138 tSCC zHpux11_VsnprintfSelect0[] =
3139 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3141 #define HPUX11_VSNPRINTF_TEST_CT 1
3142 static tTestDesc aHpux11_VsnprintfTests[] = {
3143 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3146 * Fix Command Arguments for Hpux11_Vsnprintf
3148 static const char* apzHpux11_VsnprintfPatch[] = {
3153 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3155 * Description of Hpux8_Bogus_Inlines fix
3157 tSCC zHpux8_Bogus_InlinesName[] =
3158 "hpux8_bogus_inlines";
3161 * File name selection pattern
3163 tSCC zHpux8_Bogus_InlinesList[] =
3166 * Machine/OS name selection pattern
3168 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3171 * content selection pattern - do fix if pattern found
3173 tSCC zHpux8_Bogus_InlinesSelect0[] =
3177 * content bypass pattern - skip fix if pattern found
3179 tSCC zHpux8_Bogus_InlinesBypass0[] =
3182 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3183 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3184 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3185 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3188 * Fix Command Arguments for Hpux8_Bogus_Inlines
3190 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
3191 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3192 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3193 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3194 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3197 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3199 * Description of Hpux_Ctype_Macros fix
3201 tSCC zHpux_Ctype_MacrosName[] =
3202 "hpux_ctype_macros";
3205 * File name selection pattern
3207 tSCC zHpux_Ctype_MacrosList[] =
3210 * Machine/OS name selection pattern
3212 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3215 * content selection pattern - do fix if pattern found
3217 tSCC zHpux_Ctype_MacrosSelect0[] =
3218 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3220 #define HPUX_CTYPE_MACROS_TEST_CT 1
3221 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3222 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3225 * Fix Command Arguments for Hpux_Ctype_Macros
3227 static const char* apzHpux_Ctype_MacrosPatch[] = {
3232 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3234 * Description of Hpux_Htonl fix
3236 tSCC zHpux_HtonlName[] =
3240 * File name selection pattern
3242 tSCC zHpux_HtonlList[] =
3245 * Machine/OS name selection pattern
3247 #define apzHpux_HtonlMachs (const char**)NULL
3250 * content selection pattern - do fix if pattern found
3252 tSCC zHpux_HtonlSelect0[] =
3253 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3255 \\* Macros for number representation conversion\\.\n\
3259 #define HPUX_HTONL_TEST_CT 1
3260 static tTestDesc aHpux_HtonlTests[] = {
3261 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3264 * Fix Command Arguments for Hpux_Htonl
3266 static const char* apzHpux_HtonlPatch[] = {
3272 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3274 * Description of Hpux_Long_Double fix
3276 tSCC zHpux_Long_DoubleName[] =
3280 * File name selection pattern
3282 tSCC zHpux_Long_DoubleList[] =
3285 * Machine/OS name selection pattern
3287 #define apzHpux_Long_DoubleMachs (const char**)NULL
3290 * content selection pattern - do fix if pattern found
3292 tSCC zHpux_Long_DoubleSelect0[] =
3293 "extern[ \t]long_double[ \t]strtold";
3296 * content bypass pattern - skip fix if pattern found
3298 tSCC zHpux_Long_DoubleBypass0[] =
3301 #define HPUX_LONG_DOUBLE_TEST_CT 2
3302 static tTestDesc aHpux_Long_DoubleTests[] = {
3303 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3304 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3307 * Fix Command Arguments for Hpux_Long_Double
3309 static const char* apzHpux_Long_DoublePatch[] = { "sed",
3310 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3311 "-e", "s/long_double/long double/g",
3314 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3316 * Description of Hpux_Systime fix
3318 tSCC zHpux_SystimeName[] =
3322 * File name selection pattern
3324 tSCC zHpux_SystimeList[] =
3327 * Machine/OS name selection pattern
3329 #define apzHpux_SystimeMachs (const char**)NULL
3332 * content selection pattern - do fix if pattern found
3334 tSCC zHpux_SystimeSelect0[] =
3335 "^extern struct sigevent;";
3337 #define HPUX_SYSTIME_TEST_CT 1
3338 static tTestDesc aHpux_SystimeTests[] = {
3339 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3342 * Fix Command Arguments for Hpux_Systime
3344 static const char* apzHpux_SystimePatch[] = {
3349 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3351 * Description of Hpux_Spu_Info fix
3353 tSCC zHpux_Spu_InfoName[] =
3357 * File name selection pattern
3359 tSCC zHpux_Spu_InfoList[] =
3360 "ia64/sys/getppdp.h\0";
3362 * Machine/OS name selection pattern
3364 tSCC* apzHpux_Spu_InfoMachs[] = {
3366 (const char*)NULL };
3369 * content selection pattern - do fix if pattern found
3371 tSCC zHpux_Spu_InfoSelect0[] =
3372 "^.*extern.*spu_info.*";
3374 #define HPUX_SPU_INFO_TEST_CT 1
3375 static tTestDesc aHpux_Spu_InfoTests[] = {
3376 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3379 * Fix Command Arguments for Hpux_Spu_Info
3381 static const char* apzHpux_Spu_InfoPatch[] = {
3388 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3390 * Description of Hpux11_Extern_Sendfile fix
3392 tSCC zHpux11_Extern_SendfileName[] =
3393 "hpux11_extern_sendfile";
3396 * File name selection pattern
3398 tSCC zHpux11_Extern_SendfileList[] =
3401 * Machine/OS name selection pattern
3403 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3404 "*-hp-hpux11.[12]*",
3405 (const char*)NULL };
3408 * content selection pattern - do fix if pattern found
3410 tSCC zHpux11_Extern_SendfileSelect0[] =
3411 "^[ \t]*extern sbsize_t sendfile.*\n\
3414 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3415 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3416 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3419 * Fix Command Arguments for Hpux11_Extern_Sendfile
3421 static const char* apzHpux11_Extern_SendfilePatch[] = {
3423 "#ifndef _APP32_64BIT_OFF_T\n\
3427 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3429 * Description of Hpux11_Extern_Sendpath fix
3431 tSCC zHpux11_Extern_SendpathName[] =
3432 "hpux11_extern_sendpath";
3435 * File name selection pattern
3437 tSCC zHpux11_Extern_SendpathList[] =
3440 * Machine/OS name selection pattern
3442 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3443 "*-hp-hpux11.[12]*",
3444 (const char*)NULL };
3447 * content selection pattern - do fix if pattern found
3449 tSCC zHpux11_Extern_SendpathSelect0[] =
3450 "^[ \t]*extern sbsize_t sendpath.*\n\
3453 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3454 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3455 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3458 * Fix Command Arguments for Hpux11_Extern_Sendpath
3460 static const char* apzHpux11_Extern_SendpathPatch[] = {
3462 "#ifndef _APP32_64BIT_OFF_T\n\
3466 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3468 * Description of Hpux_Extern_Errno fix
3470 tSCC zHpux_Extern_ErrnoName[] =
3471 "hpux_extern_errno";
3474 * File name selection pattern
3476 tSCC zHpux_Extern_ErrnoList[] =
3479 * Machine/OS name selection pattern
3481 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3483 "*-hp-hpux11.[0-2]*",
3484 (const char*)NULL };
3487 * content selection pattern - do fix if pattern found
3489 tSCC zHpux_Extern_ErrnoSelect0[] =
3490 "^[ \t]*extern int errno;$";
3492 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3493 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3494 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3497 * Fix Command Arguments for Hpux_Extern_Errno
3499 static const char* apzHpux_Extern_ErrnoPatch[] = {
3501 "#ifdef __cplusplus\n\
3505 #ifdef __cplusplus\n\
3510 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3512 * Description of Hpux11_Pthread_Const fix
3514 tSCC zHpux11_Pthread_ConstName[] =
3515 "hpux11_pthread_const";
3518 * File name selection pattern
3520 tSCC zHpux11_Pthread_ConstList[] =
3523 * Machine/OS name selection pattern
3525 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3526 "*-hp-hpux11.[0-3]*",
3527 (const char*)NULL };
3530 * content selection pattern - do fix if pattern found
3532 tSCC zHpux11_Pthread_ConstSelect0[] =
3533 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3535 #define HPUX11_PTHREAD_CONST_TEST_CT 1
3536 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3537 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3540 * Fix Command Arguments for Hpux11_Pthread_Const
3542 static const char* apzHpux11_Pthread_ConstPatch[] = {
3544 "#define __POINTER_SET\t\t((void *) 1L)",
3547 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3549 * Description of Hpux_Pthread_Initializers fix
3551 tSCC zHpux_Pthread_InitializersName[] =
3552 "hpux_pthread_initializers";
3555 * File name selection pattern
3557 tSCC zHpux_Pthread_InitializersList[] =
3560 * Machine/OS name selection pattern
3562 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3563 "*-hp-hpux11.[0-3]*",
3564 (const char*)NULL };
3565 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3566 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3569 * Fix Command Arguments for Hpux_Pthread_Initializers
3571 static const char* apzHpux_Pthread_InitializersPatch[] = { "sed",
3572 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3573 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3574 "-e", "/^[ \t]*0$/d",
3575 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3576 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3577 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3578 "-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\\\\@",
3579 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3580 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3581 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3582 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3583 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3584 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3589 * Description of Huge_Val_Hex fix
3591 tSCC zHuge_Val_HexName[] =
3595 * File name selection pattern
3597 tSCC zHuge_Val_HexList[] =
3598 "bits/huge_val.h\0";
3600 * Machine/OS name selection pattern
3602 #define apzHuge_Val_HexMachs (const char**)NULL
3605 * content selection pattern - do fix if pattern found
3607 tSCC zHuge_Val_HexSelect0[] =
3608 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3611 * content bypass pattern - skip fix if pattern found
3613 tSCC zHuge_Val_HexBypass0[] =
3614 "__builtin_huge_val";
3616 #define HUGE_VAL_HEX_TEST_CT 2
3617 static tTestDesc aHuge_Val_HexTests[] = {
3618 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3619 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3622 * Fix Command Arguments for Huge_Val_Hex
3624 static const char* apzHuge_Val_HexPatch[] = {
3626 "#define HUGE_VAL (__builtin_huge_val())\n",
3629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3631 * Description of Huge_Valf_Hex fix
3633 tSCC zHuge_Valf_HexName[] =
3637 * File name selection pattern
3639 tSCC zHuge_Valf_HexList[] =
3640 "bits/huge_val.h\0";
3642 * Machine/OS name selection pattern
3644 #define apzHuge_Valf_HexMachs (const char**)NULL
3647 * content selection pattern - do fix if pattern found
3649 tSCC zHuge_Valf_HexSelect0[] =
3650 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3653 * content bypass pattern - skip fix if pattern found
3655 tSCC zHuge_Valf_HexBypass0[] =
3656 "__builtin_huge_valf";
3658 #define HUGE_VALF_HEX_TEST_CT 2
3659 static tTestDesc aHuge_Valf_HexTests[] = {
3660 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3661 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3664 * Fix Command Arguments for Huge_Valf_Hex
3666 static const char* apzHuge_Valf_HexPatch[] = {
3668 "#define HUGE_VALF (__builtin_huge_valf())\n",
3671 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3673 * Description of Huge_Vall_Hex fix
3675 tSCC zHuge_Vall_HexName[] =
3679 * File name selection pattern
3681 tSCC zHuge_Vall_HexList[] =
3682 "bits/huge_val.h\0";
3684 * Machine/OS name selection pattern
3686 #define apzHuge_Vall_HexMachs (const char**)NULL
3689 * content selection pattern - do fix if pattern found
3691 tSCC zHuge_Vall_HexSelect0[] =
3692 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3695 * content bypass pattern - skip fix if pattern found
3697 tSCC zHuge_Vall_HexBypass0[] =
3698 "__builtin_huge_vall";
3700 #define HUGE_VALL_HEX_TEST_CT 2
3701 static tTestDesc aHuge_Vall_HexTests[] = {
3702 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3703 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3706 * Fix Command Arguments for Huge_Vall_Hex
3708 static const char* apzHuge_Vall_HexPatch[] = {
3710 "#define HUGE_VALL (__builtin_huge_vall())\n",
3713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3715 * Description of Int_Abort_Free_And_Exit fix
3717 tSCC zInt_Abort_Free_And_ExitName[] =
3718 "int_abort_free_and_exit";
3721 * File name selection pattern
3723 tSCC zInt_Abort_Free_And_ExitList[] =
3726 * Machine/OS name selection pattern
3728 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3731 * content selection pattern - do fix if pattern found
3733 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3734 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3737 * content bypass pattern - skip fix if pattern found
3739 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3740 "_CLASSIC_ANSI_TYPES";
3742 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3743 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3744 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3745 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3748 * Fix Command Arguments for Int_Abort_Free_And_Exit
3750 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3757 * Description of Io_Quotes_Def fix
3759 tSCC zIo_Quotes_DefName[] =
3763 * File name selection pattern
3765 #define zIo_Quotes_DefList (char*)NULL
3767 * Machine/OS name selection pattern
3769 #define apzIo_Quotes_DefMachs (const char**)NULL
3772 * content selection pattern - do fix if pattern found
3774 tSCC zIo_Quotes_DefSelect0[] =
3775 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3777 #define IO_QUOTES_DEF_TEST_CT 1
3778 static tTestDesc aIo_Quotes_DefTests[] = {
3779 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3782 * Fix Command Arguments for Io_Quotes_Def
3784 static const char* apzIo_Quotes_DefPatch[] = {
3789 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3791 * Description of Io_Quotes_Use fix
3793 tSCC zIo_Quotes_UseName[] =
3797 * File name selection pattern
3799 #define zIo_Quotes_UseList (char*)NULL
3801 * Machine/OS name selection pattern
3803 #define apzIo_Quotes_UseMachs (const char**)NULL
3806 * content selection pattern - do fix if pattern found
3808 tSCC zIo_Quotes_UseSelect0[] =
3809 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3811 #define IO_QUOTES_USE_TEST_CT 1
3812 static tTestDesc aIo_Quotes_UseTests[] = {
3813 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3816 * Fix Command Arguments for Io_Quotes_Use
3818 static const char* apzIo_Quotes_UsePatch[] = {
3823 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3825 * Description of Ip_Missing_Semi fix
3827 tSCC zIp_Missing_SemiName[] =
3831 * File name selection pattern
3833 tSCC zIp_Missing_SemiList[] =
3836 * Machine/OS name selection pattern
3838 #define apzIp_Missing_SemiMachs (const char**)NULL
3841 * content selection pattern - do fix if pattern found
3843 tSCC zIp_Missing_SemiSelect0[] =
3846 #define IP_MISSING_SEMI_TEST_CT 1
3847 static tTestDesc aIp_Missing_SemiTests[] = {
3848 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3851 * Fix Command Arguments for Ip_Missing_Semi
3853 static const char* apzIp_Missing_SemiPatch[] = { "sed",
3854 "-e", "/^struct/,/^};/s/}$/};/",
3857 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3859 * Description of Irix___Restrict fix
3861 tSCC zIrix___RestrictName[] =
3865 * File name selection pattern
3867 tSCC zIrix___RestrictList[] =
3868 "internal/sgimacros.h\0";
3870 * Machine/OS name selection pattern
3872 tSCC* apzIrix___RestrictMachs[] = {
3874 (const char*)NULL };
3877 * content selection pattern - do fix if pattern found
3879 tSCC zIrix___RestrictSelect0[] =
3881 )(#[ \t]*define __restrict restrict)";
3883 #define IRIX___RESTRICT_TEST_CT 1
3884 static tTestDesc aIrix___RestrictTests[] = {
3885 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3888 * Fix Command Arguments for Irix___Restrict
3890 static const char* apzIrix___RestrictPatch[] = {
3892 "%1# ifndef __cplusplus\n\
3897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3899 * Description of Irix___Generic1 fix
3901 tSCC zIrix___Generic1Name[] =
3905 * File name selection pattern
3907 tSCC zIrix___Generic1List[] =
3908 "internal/math_core.h\0";
3910 * Machine/OS name selection pattern
3912 tSCC* apzIrix___Generic1Machs[] = {
3914 (const char*)NULL };
3917 * content selection pattern - do fix if pattern found
3919 tSCC zIrix___Generic1Select0[] =
3920 "#define ([a-z]+)\\(x\\) *__generic.*";
3922 #define IRIX___GENERIC1_TEST_CT 1
3923 static tTestDesc aIrix___Generic1Tests[] = {
3924 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3927 * Fix Command Arguments for Irix___Generic1
3929 static const char* apzIrix___Generic1Patch[] = {
3931 "extern int %1(double);\n\
3932 extern int %1f(float);\n\
3933 extern int %1l(long double);\n\
3934 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3935 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3939 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3941 * Description of Irix___Generic2 fix
3943 tSCC zIrix___Generic2Name[] =
3947 * File name selection pattern
3949 tSCC zIrix___Generic2List[] =
3950 "internal/math_core.h\0";
3952 * Machine/OS name selection pattern
3954 tSCC* apzIrix___Generic2Machs[] = {
3956 (const char*)NULL };
3959 * content selection pattern - do fix if pattern found
3961 tSCC zIrix___Generic2Select0[] =
3962 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3964 #define IRIX___GENERIC2_TEST_CT 1
3965 static tTestDesc aIrix___Generic2Tests[] = {
3966 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3969 * Fix Command Arguments for Irix___Generic2
3971 static const char* apzIrix___Generic2Patch[] = {
3973 "#define %1(x,y) \\\n\
3974 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3975 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3981 * Description of Irix_Asm_Apostrophe fix
3983 tSCC zIrix_Asm_ApostropheName[] =
3984 "irix_asm_apostrophe";
3987 * File name selection pattern
3989 tSCC zIrix_Asm_ApostropheList[] =
3992 * Machine/OS name selection pattern
3994 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3997 * content selection pattern - do fix if pattern found
3999 tSCC zIrix_Asm_ApostropheSelect0[] =
4000 "^[ \t]*#.*[Ww]e're";
4002 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
4003 static tTestDesc aIrix_Asm_ApostropheTests[] = {
4004 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
4007 * Fix Command Arguments for Irix_Asm_Apostrophe
4009 static const char* apzIrix_Asm_ApostrophePatch[] = {
4012 "^([ \t]*#.*[Ww]e)'re",
4015 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4017 * Description of Irix_Limits_Const fix
4019 tSCC zIrix_Limits_ConstName[] =
4020 "irix_limits_const";
4023 * File name selection pattern
4025 tSCC zIrix_Limits_ConstList[] =
4026 "fixinc-test-limits.h\0limits.h\0";
4028 * Machine/OS name selection pattern
4030 #define apzIrix_Limits_ConstMachs (const char**)NULL
4033 * content selection pattern - do fix if pattern found
4035 tSCC zIrix_Limits_ConstSelect0[] =
4038 #define IRIX_LIMITS_CONST_TEST_CT 1
4039 static tTestDesc aIrix_Limits_ConstTests[] = {
4040 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4043 * Fix Command Arguments for Irix_Limits_Const
4045 static const char* apzIrix_Limits_ConstPatch[] = {
4050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4052 * Description of Irix_Socklen_T fix
4054 tSCC zIrix_Socklen_TName[] =
4058 * File name selection pattern
4060 tSCC zIrix_Socklen_TList[] =
4063 * Machine/OS name selection pattern
4065 tSCC* apzIrix_Socklen_TMachs[] = {
4067 (const char*)NULL };
4070 * content selection pattern - do fix if pattern found
4072 tSCC zIrix_Socklen_TSelect0[] =
4073 "(#define _SOCKLEN_T\n\
4074 )(typedef u_int32_t socklen_t;)";
4076 #define IRIX_SOCKLEN_T_TEST_CT 1
4077 static tTestDesc aIrix_Socklen_TTests[] = {
4078 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4081 * Fix Command Arguments for Irix_Socklen_T
4083 static const char* apzIrix_Socklen_TPatch[] = {
4085 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4086 typedef int socklen_t;\n\
4089 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4092 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4094 * Description of Irix_Stdint_C99 fix
4096 tSCC zIrix_Stdint_C99Name[] =
4100 * File name selection pattern
4102 tSCC zIrix_Stdint_C99List[] =
4105 * Machine/OS name selection pattern
4107 tSCC* apzIrix_Stdint_C99Machs[] = {
4109 (const char*)NULL };
4112 * content selection pattern - do fix if pattern found
4114 tSCC zIrix_Stdint_C99Select0[] =
4116 )(#error This header file is to be used only for c99 mode compilations)";
4118 #define IRIX_STDINT_C99_TEST_CT 1
4119 static tTestDesc aIrix_Stdint_C99Tests[] = {
4120 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
4123 * Fix Command Arguments for Irix_Stdint_C99
4125 static const char* apzIrix_Stdint_C99Patch[] = {
4131 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4133 * Description of Irix_Stdio_Va_List fix
4135 tSCC zIrix_Stdio_Va_ListName[] =
4136 "irix_stdio_va_list";
4139 * File name selection pattern
4141 tSCC zIrix_Stdio_Va_ListList[] =
4142 "stdio.h\0internal/stdio_core.h\0";
4144 * Machine/OS name selection pattern
4146 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4149 * content selection pattern - do fix if pattern found
4151 tSCC zIrix_Stdio_Va_ListSelect0[] =
4152 "/\\* va_list \\*/ char \\*";
4154 #define IRIX_STDIO_VA_LIST_TEST_CT 1
4155 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4156 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4159 * Fix Command Arguments for Irix_Stdio_Va_List
4161 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4166 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4168 * Description of Irix_Wcsftime fix
4170 tSCC zIrix_WcsftimeName[] =
4174 * File name selection pattern
4176 tSCC zIrix_WcsftimeList[] =
4177 "internal/wchar_core.h\0";
4179 * Machine/OS name selection pattern
4181 tSCC* apzIrix_WcsftimeMachs[] = {
4183 (const char*)NULL };
4186 * content selection pattern - do fix if pattern found
4188 tSCC zIrix_WcsftimeSelect0[] =
4190 (extern size_t[ \t]+wcsftime.*const char *.*)";
4192 #define IRIX_WCSFTIME_TEST_CT 1
4193 static tTestDesc aIrix_WcsftimeTests[] = {
4194 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4197 * Fix Command Arguments for Irix_Wcsftime
4199 static const char* apzIrix_WcsftimePatch[] = {
4201 "#if _NO_XOPEN5 && !defined(__c99)\n\
4205 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4207 * Description of Isc_Fmod fix
4209 tSCC zIsc_FmodName[] =
4213 * File name selection pattern
4215 tSCC zIsc_FmodList[] =
4218 * Machine/OS name selection pattern
4220 #define apzIsc_FmodMachs (const char**)NULL
4223 * content selection pattern - do fix if pattern found
4225 tSCC zIsc_FmodSelect0[] =
4228 #define ISC_FMOD_TEST_CT 1
4229 static tTestDesc aIsc_FmodTests[] = {
4230 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
4233 * Fix Command Arguments for Isc_Fmod
4235 static const char* apzIsc_FmodPatch[] = {
4237 "fmod(double, double)",
4240 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4242 * Description of Isc_Omits_With_Stdc fix
4244 tSCC zIsc_Omits_With_StdcName[] =
4245 "isc_omits_with_stdc";
4248 * File name selection pattern
4250 tSCC zIsc_Omits_With_StdcList[] =
4251 "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
4253 * Machine/OS name selection pattern
4255 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
4258 * content selection pattern - do fix if pattern found
4260 tSCC zIsc_Omits_With_StdcSelect0[] =
4261 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
4263 #define ISC_OMITS_WITH_STDC_TEST_CT 1
4264 static tTestDesc aIsc_Omits_With_StdcTests[] = {
4265 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4268 * Fix Command Arguments for Isc_Omits_With_Stdc
4270 static const char* apzIsc_Omits_With_StdcPatch[] = {
4272 "!defined(_POSIX_SOURCE)",
4275 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4277 * Description of Kandr_Concat fix
4279 tSCC zKandr_ConcatName[] =
4283 * File name selection pattern
4285 tSCC zKandr_ConcatList[] =
4286 "sparc/asm_linkage.h\0sun*/asm_linkage.h\0arm/as_support.h\0arm/mc_type.h\0arm/xcb.h\0dev/chardefmac.h\0dev/ps_irq.h\0dev/screen.h\0dev/scsi.h\0sys/tty.h\0Xm.acorn/XmP.h\0bsd43/bsd43_.h\0";
4288 * Machine/OS name selection pattern
4290 #define apzKandr_ConcatMachs (const char**)NULL
4293 * content selection pattern - do fix if pattern found
4295 tSCC zKandr_ConcatSelect0[] =
4298 #define KANDR_CONCAT_TEST_CT 1
4299 static tTestDesc aKandr_ConcatTests[] = {
4300 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4303 * Fix Command Arguments for Kandr_Concat
4305 static const char* apzKandr_ConcatPatch[] = {
4310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4312 * Description of Libc1_G_Va_List fix
4314 tSCC zLibc1_G_Va_ListName[] =
4318 * File name selection pattern
4320 tSCC zLibc1_G_Va_ListList[] =
4323 * Machine/OS name selection pattern
4325 tSCC* apzLibc1_G_Va_ListMachs[] = {
4327 (const char*)NULL };
4330 * content selection pattern - do fix if pattern found
4332 tSCC zLibc1_G_Va_ListSelect0[] =
4333 "typedef void \\* _G_va_list;";
4335 #define LIBC1_G_VA_LIST_TEST_CT 1
4336 static tTestDesc aLibc1_G_Va_ListTests[] = {
4337 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
4340 * Fix Command Arguments for Libc1_G_Va_List
4342 static const char* apzLibc1_G_Va_ListPatch[] = {
4344 "typedef __builtin_va_list _G_va_list;",
4347 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4349 * Description of Libc1_Ifdefd_Memx fix
4351 tSCC zLibc1_Ifdefd_MemxName[] =
4352 "libc1_ifdefd_memx";
4355 * File name selection pattern
4357 tSCC zLibc1_Ifdefd_MemxList[] =
4358 "testing.h\0string.h\0";
4360 * Machine/OS name selection pattern
4362 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
4365 * content selection pattern - do fix if pattern found
4367 tSCC zLibc1_Ifdefd_MemxSelect0[] =
4368 "' is a built-in function for gcc 2\\.x\\. \\*/";
4371 * content bypass pattern - skip fix if pattern found
4373 tSCC zLibc1_Ifdefd_MemxBypass0[] =
4376 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
4377 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
4378 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
4379 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
4382 * Fix Command Arguments for Libc1_Ifdefd_Memx
4384 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
4387 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
4388 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
4390 extern [a-z_]+ mem.*(\n\
4395 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4397 * Description of Linux_Ia64_Ucontext fix
4399 tSCC zLinux_Ia64_UcontextName[] =
4400 "linux_ia64_ucontext";
4403 * File name selection pattern
4405 tSCC zLinux_Ia64_UcontextList[] =
4408 * Machine/OS name selection pattern
4410 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4412 (const char*)NULL };
4415 * content selection pattern - do fix if pattern found
4417 tSCC zLinux_Ia64_UcontextSelect0[] =
4418 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4420 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4421 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4422 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4425 * Fix Command Arguments for Linux_Ia64_Ucontext
4427 static const char* apzLinux_Ia64_UcontextPatch[] = {
4429 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4432 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4434 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4436 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4437 "lynxos_no_warning_in_sys_time_h";
4440 * File name selection pattern
4442 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4445 * Machine/OS name selection pattern
4447 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4450 * content selection pattern - do fix if pattern found
4452 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4453 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4455 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4456 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4457 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4460 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4462 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4467 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4469 * Description of Lynxos_Missing_Putenv fix
4471 tSCC zLynxos_Missing_PutenvName[] =
4472 "lynxos_missing_putenv";
4475 * File name selection pattern
4477 tSCC zLynxos_Missing_PutenvList[] =
4480 * Machine/OS name selection pattern
4482 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4484 (const char*)NULL };
4487 * content selection pattern - do fix if pattern found
4489 tSCC zLynxos_Missing_PutenvSelect0[] =
4490 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4493 * content bypass pattern - skip fix if pattern found
4495 tSCC zLynxos_Missing_PutenvBypass0[] =
4498 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4499 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4500 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4501 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4504 * Fix Command Arguments for Lynxos_Missing_Putenv
4506 static const char* apzLynxos_Missing_PutenvPatch[] = {
4509 extern int putenv\t\t\t\t_AP((char *));",
4510 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4513 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4515 * Description of Machine_Ansi_H_Va_List fix
4517 tSCC zMachine_Ansi_H_Va_ListName[] =
4518 "machine_ansi_h_va_list";
4521 * File name selection pattern
4523 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4525 * Machine/OS name selection pattern
4527 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4530 * content selection pattern - do fix if pattern found
4532 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4533 "define[ \t]+_BSD_VA_LIST_[ \t]";
4536 * content bypass pattern - skip fix if pattern found
4538 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4539 "__builtin_va_list";
4541 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4542 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4543 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4544 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4547 * Fix Command Arguments for Machine_Ansi_H_Va_List
4549 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4551 "%1__builtin_va_list",
4552 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4555 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4557 * Description of Machine_Name fix
4559 tSCC zMachine_NameName[] =
4563 * File name selection pattern
4565 #define zMachine_NameList (char*)NULL
4567 * Machine/OS name selection pattern
4569 #define apzMachine_NameMachs (const char**)NULL
4572 * perform the C function call test
4574 tSCC zMachine_NameFTst0[] = "machine_name";
4576 #define MACHINE_NAME_TEST_CT 1
4577 static tTestDesc aMachine_NameTests[] = {
4578 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4581 * Fix Command Arguments for Machine_Name
4583 static const char* apzMachine_NamePatch[] = {
4587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4589 * Description of Math_Exception fix
4591 tSCC zMath_ExceptionName[] =
4595 * File name selection pattern
4597 tSCC zMath_ExceptionList[] =
4600 * Machine/OS name selection pattern
4602 #define apzMath_ExceptionMachs (const char**)NULL
4605 * content selection pattern - do fix if pattern found
4607 tSCC zMath_ExceptionSelect0[] =
4611 * content bypass pattern - skip fix if pattern found
4613 tSCC zMath_ExceptionBypass0[] =
4614 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4616 #define MATH_EXCEPTION_TEST_CT 2
4617 static tTestDesc aMath_ExceptionTests[] = {
4618 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4619 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4622 * Fix Command Arguments for Math_Exception
4624 static const char* apzMath_ExceptionPatch[] = {
4626 "#ifdef __cplusplus\n\
4627 #define exception __math_exception\n\
4629 "#ifdef __cplusplus\n\
4634 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4636 * Description of Math_Huge_Val_From_Dbl_Max fix
4638 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4639 "math_huge_val_from_dbl_max";
4642 * File name selection pattern
4644 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4647 * Machine/OS name selection pattern
4649 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4652 * content selection pattern - do fix if pattern found
4654 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4655 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4658 * content bypass pattern - skip fix if pattern found
4660 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4661 "define[ \t]+DBL_MAX";
4663 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4664 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4665 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4666 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4669 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4671 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4672 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4673 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4674 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4679 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4681 * Description of Nested_Auth_Des fix
4683 tSCC zNested_Auth_DesName[] =
4687 * File name selection pattern
4689 tSCC zNested_Auth_DesList[] =
4692 * Machine/OS name selection pattern
4694 #define apzNested_Auth_DesMachs (const char**)NULL
4697 * content selection pattern - do fix if pattern found
4699 tSCC zNested_Auth_DesSelect0[] =
4700 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4702 #define NESTED_AUTH_DES_TEST_CT 1
4703 static tTestDesc aNested_Auth_DesTests[] = {
4704 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4707 * Fix Command Arguments for Nested_Auth_Des
4709 static const char* apzNested_Auth_DesPatch[] = {
4714 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4716 * Description of Nested_Motorola fix
4718 tSCC zNested_MotorolaName[] =
4722 * File name selection pattern
4724 tSCC zNested_MotorolaList[] =
4725 "sys/limits.h\0limits.h\0";
4727 * Machine/OS name selection pattern
4729 tSCC* apzNested_MotorolaMachs[] = {
4730 "m68k-motorola-sysv*",
4731 (const char*)NULL };
4734 * content selection pattern - do fix if pattern found
4736 tSCC zNested_MotorolaSelect0[] =
4737 "max # bytes atomic in write|error value returned by Math lib";
4739 #define NESTED_MOTOROLA_TEST_CT 1
4740 static tTestDesc aNested_MotorolaTests[] = {
4741 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
4744 * Fix Command Arguments for Nested_Motorola
4746 static const char* apzNested_MotorolaPatch[] = { "sed",
4747 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
4748 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
4751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4753 * Description of Nested_Sys_Limits fix
4755 tSCC zNested_Sys_LimitsName[] =
4756 "nested_sys_limits";
4759 * File name selection pattern
4761 tSCC zNested_Sys_LimitsList[] =
4764 * Machine/OS name selection pattern
4766 #define apzNested_Sys_LimitsMachs (const char**)NULL
4769 * content selection pattern - do fix if pattern found
4771 tSCC zNested_Sys_LimitsSelect0[] =
4774 #define NESTED_SYS_LIMITS_TEST_CT 1
4775 static tTestDesc aNested_Sys_LimitsTests[] = {
4776 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4779 * Fix Command Arguments for Nested_Sys_Limits
4781 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
4782 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4783 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4786 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4788 * Description of Netbsd_C99_Inline_1 fix
4790 tSCC zNetbsd_C99_Inline_1Name[] =
4791 "netbsd_c99_inline_1";
4794 * File name selection pattern
4796 tSCC zNetbsd_C99_Inline_1List[] =
4799 * Machine/OS name selection pattern
4801 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4803 (const char*)NULL };
4806 * content selection pattern - do fix if pattern found
4808 tSCC zNetbsd_C99_Inline_1Select0[] =
4809 "extern __inline int";
4811 #define NETBSD_C99_INLINE_1_TEST_CT 1
4812 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4813 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4816 * Fix Command Arguments for Netbsd_C99_Inline_1
4818 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4821 #ifdef __GNUC_STDC_INLINE__\n\
4822 __attribute__((__gnu_inline__))\n\
4827 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4829 * Description of Netbsd_C99_Inline_2 fix
4831 tSCC zNetbsd_C99_Inline_2Name[] =
4832 "netbsd_c99_inline_2";
4835 * File name selection pattern
4837 tSCC zNetbsd_C99_Inline_2List[] =
4840 * Machine/OS name selection pattern
4842 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4844 (const char*)NULL };
4847 * content selection pattern - do fix if pattern found
4849 tSCC zNetbsd_C99_Inline_2Select0[] =
4850 "#define _SIGINLINE extern __inline";
4852 #define NETBSD_C99_INLINE_2_TEST_CT 1
4853 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4854 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4857 * Fix Command Arguments for Netbsd_C99_Inline_2
4859 static const char* apzNetbsd_C99_Inline_2Patch[] = {
4861 "#ifdef __GNUC_STDC_INLINE__\n\
4862 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4868 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4870 * Description of Netbsd_Extra_Semicolon fix
4872 tSCC zNetbsd_Extra_SemicolonName[] =
4873 "netbsd_extra_semicolon";
4876 * File name selection pattern
4878 tSCC zNetbsd_Extra_SemicolonList[] =
4881 * Machine/OS name selection pattern
4883 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4885 (const char*)NULL };
4888 * content selection pattern - do fix if pattern found
4890 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4891 "#define[ \t]*__END_DECLS[ \t]*};";
4893 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4894 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4895 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4898 * Fix Command Arguments for Netbsd_Extra_Semicolon
4900 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4902 "#define __END_DECLS }",
4905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4907 * Description of Next_Math_Prefix fix
4909 tSCC zNext_Math_PrefixName[] =
4913 * File name selection pattern
4915 tSCC zNext_Math_PrefixList[] =
4918 * Machine/OS name selection pattern
4920 #define apzNext_Math_PrefixMachs (const char**)NULL
4923 * content selection pattern - do fix if pattern found
4925 tSCC zNext_Math_PrefixSelect0[] =
4926 "^extern[ \t]+double[ \t]+__const__[ \t]";
4928 #define NEXT_MATH_PREFIX_TEST_CT 1
4929 static tTestDesc aNext_Math_PrefixTests[] = {
4930 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4933 * Fix Command Arguments for Next_Math_Prefix
4935 static const char* apzNext_Math_PrefixPatch[] = {
4937 "extern double %1(",
4938 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4941 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4943 * Description of Next_Template fix
4945 tSCC zNext_TemplateName[] =
4949 * File name selection pattern
4951 tSCC zNext_TemplateList[] =
4954 * Machine/OS name selection pattern
4956 #define apzNext_TemplateMachs (const char**)NULL
4959 * content selection pattern - do fix if pattern found
4961 tSCC zNext_TemplateSelect0[] =
4964 #define NEXT_TEMPLATE_TEST_CT 1
4965 static tTestDesc aNext_TemplateTests[] = {
4966 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
4969 * Fix Command Arguments for Next_Template
4971 static const char* apzNext_TemplatePatch[] = {
4974 "\\(([^)]*)[ \t]template\\)",
4977 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4979 * Description of Next_Volitile fix
4981 tSCC zNext_VolitileName[] =
4985 * File name selection pattern
4987 tSCC zNext_VolitileList[] =
4990 * Machine/OS name selection pattern
4992 #define apzNext_VolitileMachs (const char**)NULL
4995 * content selection pattern - do fix if pattern found
4997 tSCC zNext_VolitileSelect0[] =
4998 "^extern[ \t]+volatile[ \t]+void[ \t]";
5000 #define NEXT_VOLITILE_TEST_CT 1
5001 static tTestDesc aNext_VolitileTests[] = {
5002 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
5005 * Fix Command Arguments for Next_Volitile
5007 static const char* apzNext_VolitilePatch[] = {
5010 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5013 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5015 * Description of Next_Wait_Union fix
5017 tSCC zNext_Wait_UnionName[] =
5021 * File name selection pattern
5023 tSCC zNext_Wait_UnionList[] =
5026 * Machine/OS name selection pattern
5028 #define apzNext_Wait_UnionMachs (const char**)NULL
5031 * content selection pattern - do fix if pattern found
5033 tSCC zNext_Wait_UnionSelect0[] =
5034 "wait\\(union wait";
5036 #define NEXT_WAIT_UNION_TEST_CT 1
5037 static tTestDesc aNext_Wait_UnionTests[] = {
5038 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5041 * Fix Command Arguments for Next_Wait_Union
5043 static const char* apzNext_Wait_UnionPatch[] = {
5048 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5050 * Description of Nodeent_Syntax fix
5052 tSCC zNodeent_SyntaxName[] =
5056 * File name selection pattern
5058 tSCC zNodeent_SyntaxList[] =
5059 "netdnet/dnetdb.h\0";
5061 * Machine/OS name selection pattern
5063 #define apzNodeent_SyntaxMachs (const char**)NULL
5066 * content selection pattern - do fix if pattern found
5068 tSCC zNodeent_SyntaxSelect0[] =
5069 "char[ \t]*\\*na_addr[ \t]*$";
5071 #define NODEENT_SYNTAX_TEST_CT 1
5072 static tTestDesc aNodeent_SyntaxTests[] = {
5073 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5076 * Fix Command Arguments for Nodeent_Syntax
5078 static const char* apzNodeent_SyntaxPatch[] = {
5083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5085 * Description of Obstack_Lvalue_Cast fix
5087 tSCC zObstack_Lvalue_CastName[] =
5088 "obstack_lvalue_cast";
5091 * File name selection pattern
5093 tSCC zObstack_Lvalue_CastList[] =
5096 * Machine/OS name selection pattern
5098 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5101 * content selection pattern - do fix if pattern found
5103 tSCC zObstack_Lvalue_CastSelect0[] =
5104 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5106 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5107 static tTestDesc aObstack_Lvalue_CastTests[] = {
5108 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5111 * Fix Command Arguments for Obstack_Lvalue_Cast
5113 static const char* apzObstack_Lvalue_CastPatch[] = {
5115 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5118 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5120 * Description of Osf_Namespace_A fix
5122 tSCC zOsf_Namespace_AName[] =
5126 * File name selection pattern
5128 tSCC zOsf_Namespace_AList[] =
5129 "reg_types.h\0sys/lc_core.h\0";
5131 * Machine/OS name selection pattern
5133 #define apzOsf_Namespace_AMachs (const char**)NULL
5136 * perform the 'test' shell command - do fix on success
5138 tSCC zOsf_Namespace_ATest0[] =
5140 tSCC zOsf_Namespace_ATest1[] =
5141 " -r sys/lc_core.h";
5142 tSCC zOsf_Namespace_ATest2[] =
5143 " -n \"`grep '} regex_t;' reg_types.h`\"";
5144 tSCC zOsf_Namespace_ATest3[] =
5145 " -z \"`grep __regex_t regex.h`\"";
5147 #define OSF_NAMESPACE_A_TEST_CT 4
5148 static tTestDesc aOsf_Namespace_ATests[] = {
5149 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5150 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5151 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5152 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5155 * Fix Command Arguments for Osf_Namespace_A
5157 static const char* apzOsf_Namespace_APatch[] = {
5160 "reg(ex|off|match)_t",
5163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5165 * Description of Osf_Namespace_C fix
5167 tSCC zOsf_Namespace_CName[] =
5171 * File name selection pattern
5173 tSCC zOsf_Namespace_CList[] =
5176 * Machine/OS name selection pattern
5178 #define apzOsf_Namespace_CMachs (const char**)NULL
5181 * content selection pattern - do fix if pattern found
5183 tSCC zOsf_Namespace_CSelect0[] =
5184 "#include <reg_types.h>.*";
5187 * perform the 'test' shell command - do fix on success
5189 tSCC zOsf_Namespace_CTest0[] =
5191 tSCC zOsf_Namespace_CTest1[] =
5192 " -r sys/lc_core.h";
5193 tSCC zOsf_Namespace_CTest2[] =
5194 " -n \"`grep '} regex_t;' reg_types.h`\"";
5195 tSCC zOsf_Namespace_CTest3[] =
5196 " -z \"`grep __regex_t regex.h`\"";
5198 #define OSF_NAMESPACE_C_TEST_CT 5
5199 static tTestDesc aOsf_Namespace_CTests[] = {
5200 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5201 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5202 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5203 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5204 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5207 * Fix Command Arguments for Osf_Namespace_C
5209 static const char* apzOsf_Namespace_CPatch[] = {
5212 typedef __regex_t\tregex_t;\n\
5213 typedef __regoff_t\tregoff_t;\n\
5214 typedef __regmatch_t\tregmatch_t;",
5217 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5219 * Description of Pthread_Page_Size fix
5221 tSCC zPthread_Page_SizeName[] =
5222 "pthread_page_size";
5225 * File name selection pattern
5227 tSCC zPthread_Page_SizeList[] =
5230 * Machine/OS name selection pattern
5232 #define apzPthread_Page_SizeMachs (const char**)NULL
5235 * content selection pattern - do fix if pattern found
5237 tSCC zPthread_Page_SizeSelect0[] =
5240 #define PTHREAD_PAGE_SIZE_TEST_CT 1
5241 static tTestDesc aPthread_Page_SizeTests[] = {
5242 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
5245 * Fix Command Arguments for Pthread_Page_Size
5247 static const char* apzPthread_Page_SizePatch[] = {
5252 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5254 * Description of Pthread_Incomplete_Struct_Argument fix
5256 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5257 "pthread_incomplete_struct_argument";
5260 * File name selection pattern
5262 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5265 * Machine/OS name selection pattern
5267 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5270 * content selection pattern - do fix if pattern found
5272 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5273 "struct __jmp_buf_tag";
5275 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5276 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5277 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5280 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5282 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5285 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5288 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5290 * Description of Read_Ret_Type fix
5292 tSCC zRead_Ret_TypeName[] =
5296 * File name selection pattern
5298 tSCC zRead_Ret_TypeList[] =
5301 * Machine/OS name selection pattern
5303 #define apzRead_Ret_TypeMachs (const char**)NULL
5306 * content selection pattern - do fix if pattern found
5308 tSCC zRead_Ret_TypeSelect0[] =
5309 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5311 #define READ_RET_TYPE_TEST_CT 1
5312 static tTestDesc aRead_Ret_TypeTests[] = {
5313 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5316 * Fix Command Arguments for Read_Ret_Type
5318 static const char* apzRead_Ret_TypePatch[] = {
5320 "extern unsigned int fread(), fwrite();\n\
5322 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5325 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5327 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5329 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5330 "rpc_xdr_lvalue_cast_a";
5333 * File name selection pattern
5335 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5338 * Machine/OS name selection pattern
5340 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5343 * content selection pattern - do fix if pattern found
5345 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5346 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5349 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5350 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5351 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5354 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5356 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5358 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5361 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5363 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5365 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5366 "rpc_xdr_lvalue_cast_b";
5369 * File name selection pattern
5371 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5374 * Machine/OS name selection pattern
5376 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5379 * content selection pattern - do fix if pattern found
5381 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5382 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5385 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5386 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5387 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5390 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5392 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5394 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5397 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5399 * Description of Rs6000_Double fix
5401 tSCC zRs6000_DoubleName[] =
5405 * File name selection pattern
5407 tSCC zRs6000_DoubleList[] =
5410 * Machine/OS name selection pattern
5412 #define apzRs6000_DoubleMachs (const char**)NULL
5415 * content selection pattern - do fix if pattern found
5417 tSCC zRs6000_DoubleSelect0[] =
5418 "[^a-zA-Z_]class\\(";
5420 #define RS6000_DOUBLE_TEST_CT 1
5421 static tTestDesc aRs6000_DoubleTests[] = {
5422 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5425 * Fix Command Arguments for Rs6000_Double
5427 static const char* apzRs6000_DoublePatch[] = {
5429 "#ifndef __cplusplus\n\
5432 "^.*[^a-zA-Z_]class\\(.*",
5435 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5437 * Description of Rs6000_Fchmod fix
5439 tSCC zRs6000_FchmodName[] =
5443 * File name selection pattern
5445 tSCC zRs6000_FchmodList[] =
5448 * Machine/OS name selection pattern
5450 #define apzRs6000_FchmodMachs (const char**)NULL
5453 * content selection pattern - do fix if pattern found
5455 tSCC zRs6000_FchmodSelect0[] =
5456 "fchmod\\(char \\*";
5458 #define RS6000_FCHMOD_TEST_CT 1
5459 static tTestDesc aRs6000_FchmodTests[] = {
5460 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5463 * Fix Command Arguments for Rs6000_Fchmod
5465 static const char* apzRs6000_FchmodPatch[] = {
5470 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5472 * Description of Rs6000_Param fix
5474 tSCC zRs6000_ParamName[] =
5478 * File name selection pattern
5480 tSCC zRs6000_ParamList[] =
5481 "stdio.h\0unistd.h\0";
5483 * Machine/OS name selection pattern
5485 #define apzRs6000_ParamMachs (const char**)NULL
5488 * content selection pattern - do fix if pattern found
5490 tSCC zRs6000_ParamSelect0[] =
5491 "rename\\(const char \\*old, const char \\*new\\)";
5493 #define RS6000_PARAM_TEST_CT 1
5494 static tTestDesc aRs6000_ParamTests[] = {
5495 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
5498 * Fix Command Arguments for Rs6000_Param
5500 static const char* apzRs6000_ParamPatch[] = {
5502 "rename(const char *_old, const char *_new)",
5505 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5507 * Description of Sco_Math fix
5509 tSCC zSco_MathName[] =
5513 * File name selection pattern
5515 tSCC zSco_MathList[] =
5516 "math.h\0*/math.h\0";
5518 * Machine/OS name selection pattern
5520 #define apzSco_MathMachs (const char**)NULL
5523 * content selection pattern - do fix if pattern found
5525 tSCC zSco_MathSelect0[] =
5526 "inline double abs";
5529 * content bypass pattern - skip fix if pattern found
5531 tSCC zSco_MathBypass0[] =
5534 #define SCO_MATH_TEST_CT 2
5535 static tTestDesc aSco_MathTests[] = {
5536 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
5537 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
5540 * Fix Command Arguments for Sco_Math
5542 static const char* apzSco_MathPatch[] = { "sed",
5543 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5544 #ifndef __GNUC__\n",
5545 "-e", "/.*__builtin_generic/a\\\n\
5547 #define __fp_class(a) \\\\\\\n\
5548 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5549 __fpclassifyl(a), \\\\\\\n\
5550 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5551 __fpclassifyf(a),__fpclassify(a)))\\\n\
5553 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5554 #ifndef __GNUC__\n",
5555 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5556 #endif /* ! __GNUC__ */",
5559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5561 * Description of Sco_Regset fix
5563 tSCC zSco_RegsetName[] =
5567 * File name selection pattern
5569 tSCC zSco_RegsetList[] =
5572 * Machine/OS name selection pattern
5574 tSCC* apzSco_RegsetMachs[] = {
5576 (const char*)NULL };
5579 * content selection pattern - do fix if pattern found
5581 tSCC zSco_RegsetSelect0[] =
5582 "(struct[ \t]+.*)fpstate";
5584 #define SCO_REGSET_TEST_CT 1
5585 static tTestDesc aSco_RegsetTests[] = {
5586 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
5589 * Fix Command Arguments for Sco_Regset
5591 static const char* apzSco_RegsetPatch[] = {
5596 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5598 * Description of Sco_Static_Func fix
5600 tSCC zSco_Static_FuncName[] =
5604 * File name selection pattern
5606 tSCC zSco_Static_FuncList[] =
5609 * Machine/OS name selection pattern
5611 tSCC* apzSco_Static_FuncMachs[] = {
5613 (const char*)NULL };
5616 * content selection pattern - do fix if pattern found
5618 tSCC zSco_Static_FuncSelect0[] =
5621 #define SCO_STATIC_FUNC_TEST_CT 1
5622 static tTestDesc aSco_Static_FuncTests[] = {
5623 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
5626 * Fix Command Arguments for Sco_Static_Func
5628 static const char* apzSco_Static_FuncPatch[] = { "sed",
5629 "-e", "/^static int/i\\\n\
5630 #if __cplusplus\\\n\
5632 #endif /* __cplusplus */",
5634 #if __cplusplus\\\n\
5636 #endif /* __cplusplus */",
5639 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5641 * Description of Sco_Utime fix
5643 tSCC zSco_UtimeName[] =
5647 * File name selection pattern
5649 tSCC zSco_UtimeList[] =
5652 * Machine/OS name selection pattern
5654 tSCC* apzSco_UtimeMachs[] = {
5656 (const char*)NULL };
5659 * content selection pattern - do fix if pattern found
5661 tSCC zSco_UtimeSelect0[] =
5662 "\\(const char \\*, struct utimbuf \\*\\);";
5664 #define SCO_UTIME_TEST_CT 1
5665 static tTestDesc aSco_UtimeTests[] = {
5666 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
5669 * Fix Command Arguments for Sco_Utime
5671 static const char* apzSco_UtimePatch[] = {
5673 "(const char *, const struct utimbuf *);",
5676 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5678 * Description of Solaris_Math_1 fix
5680 tSCC zSolaris_Math_1Name[] =
5684 * File name selection pattern
5686 tSCC zSolaris_Math_1List[] =
5689 * Machine/OS name selection pattern
5691 #define apzSolaris_Math_1Machs (const char**)NULL
5694 * content selection pattern - do fix if pattern found
5696 tSCC zSolaris_Math_1Select0[] =
5697 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5700 * content bypass pattern - skip fix if pattern found
5702 tSCC zSolaris_Math_1Bypass0[] =
5705 #define SOLARIS_MATH_1_TEST_CT 2
5706 static tTestDesc aSolaris_Math_1Tests[] = {
5707 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5708 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5711 * Fix Command Arguments for Solaris_Math_1
5713 static const char* apzSolaris_Math_1Patch[] = {
5715 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5716 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5719 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5721 * Description of Solaris_Math_2 fix
5723 tSCC zSolaris_Math_2Name[] =
5727 * File name selection pattern
5729 tSCC zSolaris_Math_2List[] =
5732 * Machine/OS name selection pattern
5734 #define apzSolaris_Math_2Machs (const char**)NULL
5737 * content selection pattern - do fix if pattern found
5739 tSCC zSolaris_Math_2Select0[] =
5740 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5743 * content bypass pattern - skip fix if pattern found
5745 tSCC zSolaris_Math_2Bypass0[] =
5748 #define SOLARIS_MATH_2_TEST_CT 2
5749 static tTestDesc aSolaris_Math_2Tests[] = {
5750 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5751 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5754 * Fix Command Arguments for Solaris_Math_2
5756 static const char* apzSolaris_Math_2Patch[] = {
5758 "#define\tINFINITY\t(__builtin_inff())",
5759 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5762 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5764 * Description of Solaris_Math_3 fix
5766 tSCC zSolaris_Math_3Name[] =
5770 * File name selection pattern
5772 tSCC zSolaris_Math_3List[] =
5775 * Machine/OS name selection pattern
5777 #define apzSolaris_Math_3Machs (const char**)NULL
5780 * content selection pattern - do fix if pattern found
5782 tSCC zSolaris_Math_3Select0[] =
5783 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5786 * content bypass pattern - skip fix if pattern found
5788 tSCC zSolaris_Math_3Bypass0[] =
5791 #define SOLARIS_MATH_3_TEST_CT 2
5792 static tTestDesc aSolaris_Math_3Tests[] = {
5793 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5794 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5797 * Fix Command Arguments for Solaris_Math_3
5799 static const char* apzSolaris_Math_3Patch[] = {
5801 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5802 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5807 * Description of Solaris_Math_4 fix
5809 tSCC zSolaris_Math_4Name[] =
5813 * File name selection pattern
5815 tSCC zSolaris_Math_4List[] =
5818 * Machine/OS name selection pattern
5820 #define apzSolaris_Math_4Machs (const char**)NULL
5823 * content selection pattern - do fix if pattern found
5825 tSCC zSolaris_Math_4Select0[] =
5826 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5829 * content bypass pattern - skip fix if pattern found
5831 tSCC zSolaris_Math_4Bypass0[] =
5834 #define SOLARIS_MATH_4_TEST_CT 2
5835 static tTestDesc aSolaris_Math_4Tests[] = {
5836 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5837 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5840 * Fix Command Arguments for Solaris_Math_4
5842 static const char* apzSolaris_Math_4Patch[] = {
5844 "#define\tfpclassify(x) \\\n\
5845 __extension__ ({ const __typeof(x) __x_fp = (x); \\\n\
5846 \t\t isnan(__x_fp) \\\n\
5848 \t\t : isinf(__x_fp) \\\n\
5849 \t\t ? FP_INFINITE \\\n\
5850 \t\t : isnormal(__x_fp) \\\n\
5851 \t\t\t ? FP_NORMAL \\\n\
5852 \t\t\t : __x_fp == 0.0 \\\n\
5853 \t\t\t ? FP_ZERO \\\n\
5854 \t\t\t : FP_SUBNORMAL; })",
5855 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5858 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5860 * Description of Solaris_Math_8 fix
5862 tSCC zSolaris_Math_8Name[] =
5866 * File name selection pattern
5868 tSCC zSolaris_Math_8List[] =
5871 * Machine/OS name selection pattern
5873 #define apzSolaris_Math_8Machs (const char**)NULL
5876 * content selection pattern - do fix if pattern found
5878 tSCC zSolaris_Math_8Select0[] =
5879 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5882 * content bypass pattern - skip fix if pattern found
5884 tSCC zSolaris_Math_8Bypass0[] =
5887 #define SOLARIS_MATH_8_TEST_CT 2
5888 static tTestDesc aSolaris_Math_8Tests[] = {
5889 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5890 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5893 * Fix Command Arguments for Solaris_Math_8
5895 static const char* apzSolaris_Math_8Patch[] = {
5897 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5898 \t\t\t ? __builtin_signbitf(x) \\\n\
5899 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
5900 \t\t\t ? __builtin_signbitl(x) \\\n\
5901 \t\t\t : __builtin_signbit(x))",
5902 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5905 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5907 * Description of Solaris_Math_9 fix
5909 tSCC zSolaris_Math_9Name[] =
5913 * File name selection pattern
5915 tSCC zSolaris_Math_9List[] =
5918 * Machine/OS name selection pattern
5920 #define apzSolaris_Math_9Machs (const char**)NULL
5923 * content selection pattern - do fix if pattern found
5925 tSCC zSolaris_Math_9Select0[] =
5926 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5929 * content bypass pattern - skip fix if pattern found
5931 tSCC zSolaris_Math_9Bypass0[] =
5934 #define SOLARIS_MATH_9_TEST_CT 2
5935 static tTestDesc aSolaris_Math_9Tests[] = {
5936 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
5937 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
5940 * Fix Command Arguments for Solaris_Math_9
5942 static const char* apzSolaris_Math_9Patch[] = {
5944 "#define\t%1(x, y)%2__builtin_%1(x, y)",
5945 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5950 * Description of Solaris_Math_10 fix
5952 tSCC zSolaris_Math_10Name[] =
5956 * File name selection pattern
5958 tSCC zSolaris_Math_10List[] =
5961 * Machine/OS name selection pattern
5963 #define apzSolaris_Math_10Machs (const char**)NULL
5966 * content selection pattern - do fix if pattern found
5968 tSCC zSolaris_Math_10Select0[] =
5969 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5971 #define SOLARIS_MATH_10_TEST_CT 1
5972 static tTestDesc aSolaris_Math_10Tests[] = {
5973 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
5976 * Fix Command Arguments for Solaris_Math_10
5978 static const char* apzSolaris_Math_10Patch[] = {
5980 "#define\tisinf(x) __builtin_isinf(x)",
5981 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
5982 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
5983 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
5984 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
5987 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5989 * Description of Solaris_Mutex_Init_1 fix
5991 tSCC zSolaris_Mutex_Init_1Name[] =
5992 "solaris_mutex_init_1";
5995 * File name selection pattern
5997 tSCC zSolaris_Mutex_Init_1List[] =
6000 * Machine/OS name selection pattern
6002 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
6005 * content selection pattern - do fix if pattern found
6007 tSCC zSolaris_Mutex_Init_1Select0[] =
6008 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
6010 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
6011 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
6012 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
6015 * Fix Command Arguments for Solaris_Mutex_Init_1
6017 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
6018 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
6019 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
6022 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6024 * Description of Solaris_Mutex_Init_2 fix
6026 tSCC zSolaris_Mutex_Init_2Name[] =
6027 "solaris_mutex_init_2";
6030 * File name selection pattern
6032 tSCC zSolaris_Mutex_Init_2List[] =
6035 * Machine/OS name selection pattern
6037 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6038 "*-*-solaris2.[0-9]",
6039 "*-*-solaris2.[0-9][!0-9]*",
6040 (const char*)NULL };
6043 * content selection pattern - do fix if pattern found
6045 tSCC zSolaris_Mutex_Init_2Select0[] =
6046 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6048 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
6049 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6050 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6053 * Fix Command Arguments for Solaris_Mutex_Init_2
6055 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6057 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6062 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6063 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6068 * Description of Solaris_Rwlock_Init_1 fix
6070 tSCC zSolaris_Rwlock_Init_1Name[] =
6071 "solaris_rwlock_init_1";
6074 * File name selection pattern
6076 tSCC zSolaris_Rwlock_Init_1List[] =
6079 * Machine/OS name selection pattern
6081 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6083 (const char*)NULL };
6086 * content selection pattern - do fix if pattern found
6088 tSCC zSolaris_Rwlock_Init_1Select0[] =
6089 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6091 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
6092 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6093 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6096 * Fix Command Arguments for Solaris_Rwlock_Init_1
6098 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6100 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6103 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6105 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6108 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6110 * Description of Solaris_Once_Init_1 fix
6112 tSCC zSolaris_Once_Init_1Name[] =
6113 "solaris_once_init_1";
6116 * File name selection pattern
6118 tSCC zSolaris_Once_Init_1List[] =
6121 * Machine/OS name selection pattern
6123 tSCC* apzSolaris_Once_Init_1Machs[] = {
6125 (const char*)NULL };
6128 * content selection pattern - do fix if pattern found
6130 tSCC zSolaris_Once_Init_1Select0[] =
6131 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6133 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6134 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6135 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6138 * Fix Command Arguments for Solaris_Once_Init_1
6140 static const char* apzSolaris_Once_Init_1Patch[] = {
6143 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6148 * Description of Solaris_Once_Init_2 fix
6150 tSCC zSolaris_Once_Init_2Name[] =
6151 "solaris_once_init_2";
6154 * File name selection pattern
6156 tSCC zSolaris_Once_Init_2List[] =
6159 * Machine/OS name selection pattern
6161 tSCC* apzSolaris_Once_Init_2Machs[] = {
6162 "*-*-solaris2.[0-9]",
6163 "*-*-solaris2.[0-9][!0-9]*",
6164 (const char*)NULL };
6167 * content selection pattern - do fix if pattern found
6169 tSCC zSolaris_Once_Init_2Select0[] =
6170 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6172 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
6173 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6174 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6177 * Fix Command Arguments for Solaris_Once_Init_2
6179 static const char* apzSolaris_Once_Init_2Patch[] = {
6181 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6184 %1{0}, {0}, {0}, {%3}%4\n\
6186 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6189 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6191 * Description of Solaris_Socket fix
6193 tSCC zSolaris_SocketName[] =
6197 * File name selection pattern
6199 tSCC zSolaris_SocketList[] =
6202 * Machine/OS name selection pattern
6204 #define apzSolaris_SocketMachs (const char**)NULL
6207 * content selection pattern - do fix if pattern found
6209 tSCC zSolaris_SocketSelect0[] =
6210 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
6212 #define SOLARIS_SOCKET_TEST_CT 1
6213 static tTestDesc aSolaris_SocketTests[] = {
6214 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
6217 * Fix Command Arguments for Solaris_Socket
6219 static const char* apzSolaris_SocketPatch[] = {
6221 "extern int %1(int, %2void *, int, int);",
6222 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
6225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6227 * Description of Solaris_Stdio_Tag fix
6229 tSCC zSolaris_Stdio_TagName[] =
6230 "solaris_stdio_tag";
6233 * File name selection pattern
6235 tSCC zSolaris_Stdio_TagList[] =
6238 * Machine/OS name selection pattern
6240 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6243 * content selection pattern - do fix if pattern found
6245 tSCC zSolaris_Stdio_TagSelect0[] =
6246 "__cplusplus < 54321L";
6249 * content bypass pattern - skip fix if pattern found
6251 tSCC zSolaris_Stdio_TagBypass0[] =
6254 #define SOLARIS_STDIO_TAG_TEST_CT 2
6255 static tTestDesc aSolaris_Stdio_TagTests[] = {
6256 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6257 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6260 * Fix Command Arguments for Solaris_Stdio_Tag
6262 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
6263 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6266 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6268 * Description of Solaris_Unistd fix
6270 tSCC zSolaris_UnistdName[] =
6274 * File name selection pattern
6276 tSCC zSolaris_UnistdList[] =
6279 * Machine/OS name selection pattern
6281 #define apzSolaris_UnistdMachs (const char**)NULL
6284 * content selection pattern - do fix if pattern found
6286 tSCC zSolaris_UnistdSelect0[] =
6287 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
6290 * content bypass pattern - skip fix if pattern found
6292 tSCC zSolaris_UnistdBypass0[] =
6295 #define SOLARIS_UNISTD_TEST_CT 2
6296 static tTestDesc aSolaris_UnistdTests[] = {
6297 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
6298 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
6301 * Fix Command Arguments for Solaris_Unistd
6303 static const char* apzSolaris_UnistdPatch[] = {
6305 "extern int getpagesize();\n\
6307 "^extern (pid_t|int) getpgid\\(.*\\);",
6310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6312 * Description of Solaris_Widec fix
6314 tSCC zSolaris_WidecName[] =
6318 * File name selection pattern
6320 tSCC zSolaris_WidecList[] =
6323 * Machine/OS name selection pattern
6325 tSCC* apzSolaris_WidecMachs[] = {
6326 "*-*-solaris2.[0-5]",
6327 "*-*-solaris2.[0-5].*",
6328 (const char*)NULL };
6331 * content selection pattern - do fix if pattern found
6333 tSCC zSolaris_WidecSelect0[] =
6337 * content bypass pattern - skip fix if pattern found
6339 tSCC zSolaris_WidecBypass0[] =
6340 "include.*wchar\\.h";
6342 #define SOLARIS_WIDEC_TEST_CT 2
6343 static tTestDesc aSolaris_WidecTests[] = {
6344 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
6345 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
6348 * Fix Command Arguments for Solaris_Widec
6350 static const char* apzSolaris_WidecPatch[] = {
6353 #include <wchar.h>",
6356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6358 * Description of Statsswtch fix
6360 tSCC zStatsswtchName[] =
6364 * File name selection pattern
6366 tSCC zStatsswtchList[] =
6369 * Machine/OS name selection pattern
6371 #define apzStatsswtchMachs (const char**)NULL
6374 * content selection pattern - do fix if pattern found
6376 tSCC zStatsswtchSelect0[] =
6379 #define STATSSWTCH_TEST_CT 1
6380 static tTestDesc aStatsswtchTests[] = {
6381 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
6384 * Fix Command Arguments for Statsswtch
6386 static const char* apzStatsswtchPatch[] = {
6391 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6393 * Description of Stdio_Stdarg_H fix
6395 tSCC zStdio_Stdarg_HName[] =
6399 * File name selection pattern
6401 tSCC zStdio_Stdarg_HList[] =
6404 * Machine/OS name selection pattern
6406 tSCC* apzStdio_Stdarg_HMachs[] = {
6407 "*-*-solaris2.1[0-9]*",
6408 (const char*)NULL };
6411 * content bypass pattern - skip fix if pattern found
6413 tSCC zStdio_Stdarg_HBypass0[] =
6414 "include.*(stdarg.h|machine/ansi.h)";
6416 #define STDIO_STDARG_H_TEST_CT 1
6417 static tTestDesc aStdio_Stdarg_HTests[] = {
6418 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6421 * Fix Command Arguments for Stdio_Stdarg_H
6423 static const char* apzStdio_Stdarg_HPatch[] = {
6425 "#define __need___va_list\n\
6426 #include <stdarg.h>\n",
6429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6431 * Description of Stdio_Va_List fix
6433 tSCC zStdio_Va_ListName[] =
6437 * File name selection pattern
6439 tSCC zStdio_Va_ListList[] =
6440 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
6442 * Machine/OS name selection pattern
6444 tSCC* apzStdio_Va_ListMachs[] = {
6445 "*-*-solaris2.1[0-9]*",
6446 (const char*)NULL };
6449 * content bypass pattern - skip fix if pattern found
6451 tSCC zStdio_Va_ListBypass0[] =
6452 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6454 #define STDIO_VA_LIST_TEST_CT 1
6455 static tTestDesc aStdio_Va_ListTests[] = {
6456 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6459 * Fix Command Arguments for Stdio_Va_List
6461 static const char* apzStdio_Va_ListPatch[] = { "sed",
6462 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6463 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6464 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6465 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6466 s@ va_list@ __not_va_list__@\n\
6467 s@\\*va_list@*__not_va_list__@\n\
6468 s@ __va_list)@ __gnuc_va_list)@\n\
6469 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6470 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6471 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6472 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6473 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6474 s@VA_LIST@DUMMY_VA_LIST@\n\
6475 s@_Va_LIST@_VA_LIST@",
6478 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6480 * Description of Stdio_Va_List_Clients fix
6482 tSCC zStdio_Va_List_ClientsName[] =
6483 "stdio_va_list_clients";
6486 * File name selection pattern
6488 tSCC zStdio_Va_List_ClientsList[] =
6489 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
6491 * Machine/OS name selection pattern
6493 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6496 * content bypass pattern - skip fix if pattern found
6498 tSCC zStdio_Va_List_ClientsBypass0[] =
6499 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6500 tSCC zStdio_Va_List_ClientsBypass1[] =
6501 "include <stdarg\\.h>|#ifdef va_start";
6503 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
6504 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6505 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6506 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6509 * Fix Command Arguments for Stdio_Va_List_Clients
6511 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
6512 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6513 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6514 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6515 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6516 s@ va_list@ __not_va_list__@\n\
6517 s@\\*va_list@*__not_va_list__@\n\
6518 s@ __va_list)@ __gnuc_va_list)@\n\
6519 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6520 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6521 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6522 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6523 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6524 s@VA_LIST@DUMMY_VA_LIST@\n\
6525 s@_Va_LIST@_VA_LIST@",
6528 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6530 * Description of Strict_Ansi_Not fix
6532 tSCC zStrict_Ansi_NotName[] =
6536 * File name selection pattern
6538 #define zStrict_Ansi_NotList (char*)NULL
6540 * Machine/OS name selection pattern
6542 #define apzStrict_Ansi_NotMachs (const char**)NULL
6545 * content selection pattern - do fix if pattern found
6547 tSCC zStrict_Ansi_NotSelect0[] =
6548 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6551 * content bypass pattern - skip fix if pattern found
6553 tSCC zStrict_Ansi_NotBypass0[] =
6554 "GNU and MIPS C compilers define __STDC__ differently";
6555 tSCC zStrict_Ansi_NotBypass1[] =
6556 "__SCO_VERSION__.*__STDC__ != 1";
6559 * perform the C function call test
6561 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6563 #define STRICT_ANSI_NOT_TEST_CT 4
6564 static tTestDesc aStrict_Ansi_NotTests[] = {
6565 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
6566 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6567 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6568 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6571 * Fix Command Arguments for Strict_Ansi_Not
6573 static const char* apzStrict_Ansi_NotPatch[] = {
6575 "%1 !defined(__STRICT_ANSI__)",
6578 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6580 * Description of Strict_Ansi_Not_Ctd fix
6582 tSCC zStrict_Ansi_Not_CtdName[] =
6583 "strict_ansi_not_ctd";
6586 * File name selection pattern
6588 tSCC zStrict_Ansi_Not_CtdList[] =
6589 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6591 * Machine/OS name selection pattern
6593 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6596 * content selection pattern - do fix if pattern found
6598 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6599 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6602 * perform the C function call test
6604 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6606 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
6607 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6608 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6609 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6612 * Fix Command Arguments for Strict_Ansi_Not_Ctd
6614 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6616 "%1 !defined(__STRICT_ANSI__)",
6619 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6621 * Description of Strict_Ansi_Only fix
6623 tSCC zStrict_Ansi_OnlyName[] =
6627 * File name selection pattern
6629 #define zStrict_Ansi_OnlyList (char*)NULL
6631 * Machine/OS name selection pattern
6633 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6636 * content selection pattern - do fix if pattern found
6638 tSCC zStrict_Ansi_OnlySelect0[] =
6639 "^([ \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)";
6642 * perform the C function call test
6644 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6646 #define STRICT_ANSI_ONLY_TEST_CT 2
6647 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6648 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6649 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6652 * Fix Command Arguments for Strict_Ansi_Only
6654 static const char* apzStrict_Ansi_OnlyPatch[] = {
6656 "%1 defined(__STRICT_ANSI__)",
6659 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6661 * Description of Struct_File fix
6663 tSCC zStruct_FileName[] =
6667 * File name selection pattern
6669 tSCC zStruct_FileList[] =
6672 * Machine/OS name selection pattern
6674 #define apzStruct_FileMachs (const char**)NULL
6677 * content selection pattern - do fix if pattern found
6679 tSCC zStruct_FileSelect0[] =
6680 "^.*xdrstdio_create.*struct __file_s";
6682 #define STRUCT_FILE_TEST_CT 1
6683 static tTestDesc aStruct_FileTests[] = {
6684 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6687 * Fix Command Arguments for Struct_File
6689 static const char* apzStruct_FilePatch[] = {
6691 "struct __file_s;\n\
6695 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6697 * Description of Struct_Sockaddr fix
6699 tSCC zStruct_SockaddrName[] =
6703 * File name selection pattern
6705 tSCC zStruct_SockaddrList[] =
6708 * Machine/OS name selection pattern
6710 #define apzStruct_SockaddrMachs (const char**)NULL
6713 * content selection pattern - do fix if pattern found
6715 tSCC zStruct_SockaddrSelect0[] =
6716 "^.*authdes_create.*struct sockaddr[^_]";
6719 * content bypass pattern - skip fix if pattern found
6721 tSCC zStruct_SockaddrBypass0[] =
6723 tSCC zStruct_SockaddrBypass1[] =
6724 "struct sockaddr;\n";
6726 #define STRUCT_SOCKADDR_TEST_CT 3
6727 static tTestDesc aStruct_SockaddrTests[] = {
6728 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6729 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6730 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6733 * Fix Command Arguments for Struct_Sockaddr
6735 static const char* apzStruct_SockaddrPatch[] = {
6737 "struct sockaddr;\n\
6741 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6743 * Description of Sun_Auth_Proto fix
6745 tSCC zSun_Auth_ProtoName[] =
6749 * File name selection pattern
6751 tSCC zSun_Auth_ProtoList[] =
6752 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6754 * Machine/OS name selection pattern
6756 #define apzSun_Auth_ProtoMachs (const char**)NULL
6759 * content selection pattern - do fix if pattern found
6761 tSCC zSun_Auth_ProtoSelect0[] =
6762 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6765 * content bypass pattern - skip fix if pattern found
6767 tSCC zSun_Auth_ProtoBypass0[] =
6770 #define SUN_AUTH_PROTO_TEST_CT 2
6771 static tTestDesc aSun_Auth_ProtoTests[] = {
6772 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6773 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6776 * Fix Command Arguments for Sun_Auth_Proto
6778 static const char* apzSun_Auth_ProtoPatch[] = {
6780 "#ifdef __cplusplus\n\
6785 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6788 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6790 * Description of Sun_Bogus_Ifdef fix
6792 tSCC zSun_Bogus_IfdefName[] =
6796 * File name selection pattern
6798 tSCC zSun_Bogus_IfdefList[] =
6799 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
6801 * Machine/OS name selection pattern
6803 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6806 * content selection pattern - do fix if pattern found
6808 tSCC zSun_Bogus_IfdefSelect0[] =
6809 "#ifdef(.*\\|\\|.*)";
6811 #define SUN_BOGUS_IFDEF_TEST_CT 1
6812 static tTestDesc aSun_Bogus_IfdefTests[] = {
6813 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6816 * Fix Command Arguments for Sun_Bogus_Ifdef
6818 static const char* apzSun_Bogus_IfdefPatch[] = {
6823 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6825 * Description of Sun_Catmacro fix
6827 tSCC zSun_CatmacroName[] =
6831 * File name selection pattern
6833 tSCC zSun_CatmacroList[] =
6834 "pixrect/memvar.h\0";
6836 * Machine/OS name selection pattern
6838 #define apzSun_CatmacroMachs (const char**)NULL
6841 * content selection pattern - do fix if pattern found
6843 tSCC zSun_CatmacroSelect0[] =
6844 "^#define[ \t]+CAT\\(a,b\\).*";
6846 #define SUN_CATMACRO_TEST_CT 1
6847 static tTestDesc aSun_CatmacroTests[] = {
6848 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
6851 * Fix Command Arguments for Sun_Catmacro
6853 static const char* apzSun_CatmacroPatch[] = {
6856 # define CAT(a,b) a##b\n\
6862 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6864 * Description of Sun_Malloc fix
6866 tSCC zSun_MallocName[] =
6870 * File name selection pattern
6872 tSCC zSun_MallocList[] =
6875 * Machine/OS name selection pattern
6877 #define apzSun_MallocMachs (const char**)NULL
6880 * content bypass pattern - skip fix if pattern found
6882 tSCC zSun_MallocBypass0[] =
6883 "_CLASSIC_ANSI_TYPES";
6885 #define SUN_MALLOC_TEST_CT 1
6886 static tTestDesc aSun_MallocTests[] = {
6887 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
6890 * Fix Command Arguments for Sun_Malloc
6892 static const char* apzSun_MallocPatch[] = { "sed",
6893 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6894 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6895 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6896 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6897 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6900 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6902 * Description of Sun_Rusers_Semi fix
6904 tSCC zSun_Rusers_SemiName[] =
6908 * File name selection pattern
6910 tSCC zSun_Rusers_SemiList[] =
6911 "rpcsvc/rusers.h\0";
6913 * Machine/OS name selection pattern
6915 #define apzSun_Rusers_SemiMachs (const char**)NULL
6918 * content selection pattern - do fix if pattern found
6920 tSCC zSun_Rusers_SemiSelect0[] =
6923 #define SUN_RUSERS_SEMI_TEST_CT 1
6924 static tTestDesc aSun_Rusers_SemiTests[] = {
6925 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6928 * Fix Command Arguments for Sun_Rusers_Semi
6930 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
6931 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6934 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6936 * Description of Sun_Signal fix
6938 tSCC zSun_SignalName[] =
6942 * File name selection pattern
6944 tSCC zSun_SignalList[] =
6945 "sys/signal.h\0signal.h\0";
6947 * Machine/OS name selection pattern
6949 #define apzSun_SignalMachs (const char**)NULL
6952 * content selection pattern - do fix if pattern found
6954 tSCC zSun_SignalSelect0[] =
6955 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6957 #define SUN_SIGNAL_TEST_CT 1
6958 static tTestDesc aSun_SignalTests[] = {
6959 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
6962 * Fix Command Arguments for Sun_Signal
6964 static const char* apzSun_SignalPatch[] = {
6966 "#ifdef __cplusplus\n\
6967 void\t(*signal(...))(...);\n\
6973 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6975 * Description of Sunos_Strlen fix
6977 tSCC zSunos_StrlenName[] =
6981 * File name selection pattern
6983 tSCC zSunos_StrlenList[] =
6986 * Machine/OS name selection pattern
6988 #define apzSunos_StrlenMachs (const char**)NULL
6991 * content selection pattern - do fix if pattern found
6993 tSCC zSunos_StrlenSelect0[] =
6994 "int[ \t]*strlen\\(\\);(.*)";
6996 #define SUNOS_STRLEN_TEST_CT 1
6997 static tTestDesc aSunos_StrlenTests[] = {
6998 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
7001 * Fix Command Arguments for Sunos_Strlen
7003 static const char* apzSunos_StrlenPatch[] = {
7005 "__SIZE_TYPE__ strlen();%1",
7008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7010 * Description of Svr4_Disable_Opt fix
7012 tSCC zSvr4_Disable_OptName[] =
7016 * File name selection pattern
7018 tSCC zSvr4_Disable_OptList[] =
7021 * Machine/OS name selection pattern
7023 #define apzSvr4_Disable_OptMachs (const char**)NULL
7026 * content selection pattern - do fix if pattern found
7028 tSCC zSvr4_Disable_OptSelect0[] =
7029 "#define.*__std_hdr_";
7031 #define SVR4_DISABLE_OPT_TEST_CT 1
7032 static tTestDesc aSvr4_Disable_OptTests[] = {
7033 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7036 * Fix Command Arguments for Svr4_Disable_Opt
7038 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
7039 "-e", "/#define.*__std_hdr_/d",
7042 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7044 * Description of Svr4_Getcwd fix
7046 tSCC zSvr4_GetcwdName[] =
7050 * File name selection pattern
7052 tSCC zSvr4_GetcwdList[] =
7053 "stdlib.h\0unistd.h\0prototypes.h\0";
7055 * Machine/OS name selection pattern
7057 #define apzSvr4_GetcwdMachs (const char**)NULL
7060 * content selection pattern - do fix if pattern found
7062 tSCC zSvr4_GetcwdSelect0[] =
7063 "getcwd\\(char \\*, int\\)";
7065 #define SVR4_GETCWD_TEST_CT 1
7066 static tTestDesc aSvr4_GetcwdTests[] = {
7067 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7070 * Fix Command Arguments for Svr4_Getcwd
7072 static const char* apzSvr4_GetcwdPatch[] = {
7074 "getcwd(char *, size_t)",
7077 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7079 * Description of Svr4_Krnl fix
7081 tSCC zSvr4_KrnlName[] =
7085 * File name selection pattern
7087 tSCC zSvr4_KrnlList[] =
7088 "fs/rfs/rf_cache.h\0sys/erec.h\0sys/err.h\0sys/char.h\0sys/getpages.h\0sys/map.h\0sys/cmn_err.h\0sys/kdebugger.h\0";
7090 * Machine/OS name selection pattern
7092 tSCC* apzSvr4_KrnlMachs[] = {
7094 "i?86-sequent-ptx*",
7095 (const char*)NULL };
7098 * content bypass pattern - skip fix if pattern found
7100 tSCC zSvr4_KrnlBypass0[] =
7103 #define SVR4_KRNL_TEST_CT 1
7104 static tTestDesc aSvr4_KrnlTests[] = {
7105 { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, };
7108 * Fix Command Arguments for Svr4_Krnl
7110 static const char* apzSvr4_KrnlPatch[] = {
7113 "#endif /* _KERNEL */\n",
7116 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7118 * Description of Svr4_Profil fix
7120 tSCC zSvr4_ProfilName[] =
7124 * File name selection pattern
7126 tSCC zSvr4_ProfilList[] =
7127 "stdlib.h\0unistd.h\0";
7129 * Machine/OS name selection pattern
7131 #define apzSvr4_ProfilMachs (const char**)NULL
7134 * content selection pattern - do fix if pattern found
7136 tSCC zSvr4_ProfilSelect0[] =
7137 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7140 * content bypass pattern - skip fix if pattern found
7142 tSCC zSvr4_ProfilBypass0[] =
7145 #define SVR4_PROFIL_TEST_CT 2
7146 static tTestDesc aSvr4_ProfilTests[] = {
7147 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
7148 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7151 * Fix Command Arguments for Svr4_Profil
7153 static const char* apzSvr4_ProfilPatch[] = {
7155 "profil(unsigned short *, size_t, int, unsigned int)",
7158 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7160 * Description of Svr4_Sighandler_Type fix
7162 tSCC zSvr4_Sighandler_TypeName[] =
7163 "svr4_sighandler_type";
7166 * File name selection pattern
7168 tSCC zSvr4_Sighandler_TypeList[] =
7171 * Machine/OS name selection pattern
7173 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7176 * content selection pattern - do fix if pattern found
7178 tSCC zSvr4_Sighandler_TypeSelect0[] =
7179 "void *\\(\\*\\)\\(\\)";
7181 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7182 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7183 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7186 * Fix Command Arguments for Svr4_Sighandler_Type
7188 static const char* apzSvr4_Sighandler_TypePatch[] = {
7193 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7195 * Description of Svr4_Undeclared_Getrnge fix
7197 tSCC zSvr4_Undeclared_GetrngeName[] =
7198 "svr4_undeclared_getrnge";
7201 * File name selection pattern
7203 tSCC zSvr4_Undeclared_GetrngeList[] =
7206 * Machine/OS name selection pattern
7208 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7211 * content selection pattern - do fix if pattern found
7213 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7217 * content bypass pattern - skip fix if pattern found
7219 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7220 "static void getrnge";
7222 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
7223 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7224 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7225 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7228 * Fix Command Arguments for Svr4_Undeclared_Getrnge
7230 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7233 static int getrnge ();",
7234 "^static int[ \t]+size;",
7237 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7239 * Description of Sysv68_String fix
7241 tSCC zSysv68_StringName[] =
7245 * File name selection pattern
7247 tSCC zSysv68_StringList[] =
7248 "testing.h\0string.h\0";
7250 * Machine/OS name selection pattern
7252 #define apzSysv68_StringMachs (const char**)NULL
7255 * content bypass pattern - skip fix if pattern found
7257 tSCC zSysv68_StringBypass0[] =
7258 "_CLASSIC_ANSI_TYPES";
7260 #define SYSV68_STRING_TEST_CT 1
7261 static tTestDesc aSysv68_StringTests[] = {
7262 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
7265 * Fix Command Arguments for Sysv68_String
7267 static const char* apzSysv68_StringPatch[] = { "sed",
7268 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7269 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7270 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7271 "-e", "/^extern char$/N",
7272 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7273 "-e", "/^extern int$/N",
7274 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7275 "-e", "/^\tstrncmp(),$/N",
7276 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7277 extern unsigned int\\\n\
7281 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7283 * Description of Sysz_Stdlib_For_Sun fix
7285 tSCC zSysz_Stdlib_For_SunName[] =
7286 "sysz_stdlib_for_sun";
7289 * File name selection pattern
7291 tSCC zSysz_Stdlib_For_SunList[] =
7294 * Machine/OS name selection pattern
7296 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7299 * content selection pattern - do fix if pattern found
7301 tSCC zSysz_Stdlib_For_SunSelect0[] =
7302 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7305 * content bypass pattern - skip fix if pattern found
7307 tSCC zSysz_Stdlib_For_SunBypass0[] =
7308 "_CLASSIC_ANSI_TYPES";
7310 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
7311 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7312 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7313 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7316 * Fix Command Arguments for Sysz_Stdlib_For_Sun
7318 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7323 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7325 * Description of Thread_Keyword fix
7327 tSCC zThread_KeywordName[] =
7331 * File name selection pattern
7333 tSCC zThread_KeywordList[] =
7334 "pthread.h\0bits/sigthread.h\0";
7336 * Machine/OS name selection pattern
7338 #define apzThread_KeywordMachs (const char**)NULL
7341 * content selection pattern - do fix if pattern found
7343 tSCC zThread_KeywordSelect0[] =
7344 "([* ])__thread([,)])";
7346 #define THREAD_KEYWORD_TEST_CT 1
7347 static tTestDesc aThread_KeywordTests[] = {
7348 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
7351 * Fix Command Arguments for Thread_Keyword
7353 static const char* apzThread_KeywordPatch[] = {
7358 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7360 * Description of Tinfo_Cplusplus fix
7362 tSCC zTinfo_CplusplusName[] =
7366 * File name selection pattern
7368 tSCC zTinfo_CplusplusList[] =
7371 * Machine/OS name selection pattern
7373 #define apzTinfo_CplusplusMachs (const char**)NULL
7376 * content selection pattern - do fix if pattern found
7378 tSCC zTinfo_CplusplusSelect0[] =
7381 #define TINFO_CPLUSPLUS_TEST_CT 1
7382 static tTestDesc aTinfo_CplusplusTests[] = {
7383 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7386 * Fix Command Arguments for Tinfo_Cplusplus
7388 static const char* apzTinfo_CplusplusPatch[] = {
7393 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7395 * Description of Ultrix_Atexit_Param fix
7397 tSCC zUltrix_Atexit_ParamName[] =
7398 "ultrix_atexit_param";
7401 * File name selection pattern
7403 tSCC zUltrix_Atexit_ParamList[] =
7406 * Machine/OS name selection pattern
7408 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
7411 * content selection pattern - do fix if pattern found
7413 tSCC zUltrix_Atexit_ParamSelect0[] =
7414 "atexit\\(.*\\(\\)";
7416 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
7417 static tTestDesc aUltrix_Atexit_ParamTests[] = {
7418 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
7421 * Fix Command Arguments for Ultrix_Atexit_Param
7423 static const char* apzUltrix_Atexit_ParamPatch[] = {
7425 "atexit( void (*__func)( void )",
7428 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7430 * Description of Ultrix_Atof_Param fix
7432 tSCC zUltrix_Atof_ParamName[] =
7433 "ultrix_atof_param";
7436 * File name selection pattern
7438 tSCC zUltrix_Atof_ParamList[] =
7441 * Machine/OS name selection pattern
7443 #define apzUltrix_Atof_ParamMachs (const char**)NULL
7446 * content selection pattern - do fix if pattern found
7448 tSCC zUltrix_Atof_ParamSelect0[] =
7449 "atof\\([ \t]*char";
7451 #define ULTRIX_ATOF_PARAM_TEST_CT 1
7452 static tTestDesc aUltrix_Atof_ParamTests[] = {
7453 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
7456 * Fix Command Arguments for Ultrix_Atof_Param
7458 static const char* apzUltrix_Atof_ParamPatch[] = {
7463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7465 * Description of Ultrix_Const fix
7467 tSCC zUltrix_ConstName[] =
7471 * File name selection pattern
7473 tSCC zUltrix_ConstList[] =
7476 * Machine/OS name selection pattern
7478 #define apzUltrix_ConstMachs (const char**)NULL
7481 * content selection pattern - do fix if pattern found
7483 tSCC zUltrix_ConstSelect0[] =
7484 "perror\\( char \\*";
7486 #define ULTRIX_CONST_TEST_CT 1
7487 static tTestDesc aUltrix_ConstTests[] = {
7488 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
7491 * Fix Command Arguments for Ultrix_Const
7493 static const char* apzUltrix_ConstPatch[] = {
7496 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7499 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7501 * Description of Ultrix_Const2 fix
7503 tSCC zUltrix_Const2Name[] =
7507 * File name selection pattern
7509 tSCC zUltrix_Const2List[] =
7512 * Machine/OS name selection pattern
7514 #define apzUltrix_Const2Machs (const char**)NULL
7517 * content selection pattern - do fix if pattern found
7519 tSCC zUltrix_Const2Select0[] =
7520 "\\*fopen\\( char \\*";
7522 #define ULTRIX_CONST2_TEST_CT 1
7523 static tTestDesc aUltrix_Const2Tests[] = {
7524 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
7527 * Fix Command Arguments for Ultrix_Const2
7529 static const char* apzUltrix_Const2Patch[] = {
7531 "%1( const char *%3, const char *",
7532 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7535 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7537 * Description of Ultrix_Const3 fix
7539 tSCC zUltrix_Const3Name[] =
7543 * File name selection pattern
7545 tSCC zUltrix_Const3List[] =
7548 * Machine/OS name selection pattern
7550 #define apzUltrix_Const3Machs (const char**)NULL
7553 * content selection pattern - do fix if pattern found
7555 tSCC zUltrix_Const3Select0[] =
7556 "fdopen\\( .*, char \\*";
7558 #define ULTRIX_CONST3_TEST_CT 1
7559 static tTestDesc aUltrix_Const3Tests[] = {
7560 { TT_EGREP, zUltrix_Const3Select0, (regex_t*)NULL }, };
7563 * Fix Command Arguments for Ultrix_Const3
7565 static const char* apzUltrix_Const3Patch[] = {
7568 "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
7571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7573 * Description of Ultrix_Fix_Fixproto fix
7575 tSCC zUltrix_Fix_FixprotoName[] =
7576 "ultrix_fix_fixproto";
7579 * File name selection pattern
7581 tSCC zUltrix_Fix_FixprotoList[] =
7584 * Machine/OS name selection pattern
7586 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
7589 * content selection pattern - do fix if pattern found
7591 tSCC zUltrix_Fix_FixprotoSelect0[] =
7594 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
7595 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
7596 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
7599 * Fix Command Arguments for Ultrix_Fix_Fixproto
7601 static const char* apzUltrix_Fix_FixprotoPatch[] = {
7605 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
7608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7610 * Description of Ultrix_Ifdef fix
7612 tSCC zUltrix_IfdefName[] =
7616 * File name selection pattern
7618 tSCC zUltrix_IfdefList[] =
7621 * Machine/OS name selection pattern
7623 #define apzUltrix_IfdefMachs (const char**)NULL
7626 * content selection pattern - do fix if pattern found
7628 tSCC zUltrix_IfdefSelect0[] =
7629 "^#ifdef KERNEL[ \t]+&&";
7631 #define ULTRIX_IFDEF_TEST_CT 1
7632 static tTestDesc aUltrix_IfdefTests[] = {
7633 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
7636 * Fix Command Arguments for Ultrix_Ifdef
7638 static const char* apzUltrix_IfdefPatch[] = {
7640 "#if defined(KERNEL) &&",
7643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7645 * Description of Ultrix_Locale fix
7647 tSCC zUltrix_LocaleName[] =
7651 * File name selection pattern
7653 tSCC zUltrix_LocaleList[] =
7656 * Machine/OS name selection pattern
7658 #define apzUltrix_LocaleMachs (const char**)NULL
7661 * content selection pattern - do fix if pattern found
7663 tSCC zUltrix_LocaleSelect0[] =
7664 "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
7666 #define ULTRIX_LOCALE_TEST_CT 1
7667 static tTestDesc aUltrix_LocaleTests[] = {
7668 { TT_EGREP, zUltrix_LocaleSelect0, (regex_t*)NULL }, };
7671 * Fix Command Arguments for Ultrix_Locale
7673 static const char* apzUltrix_LocalePatch[] = {
7677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7679 * Description of Ultrix_Math_Ifdef fix
7681 tSCC zUltrix_Math_IfdefName[] =
7682 "ultrix_math_ifdef";
7685 * File name selection pattern
7687 tSCC zUltrix_Math_IfdefList[] =
7688 "sys/limits.h\0float.h\0math.h\0";
7690 * Machine/OS name selection pattern
7692 #define apzUltrix_Math_IfdefMachs (const char**)NULL
7695 * content selection pattern - do fix if pattern found
7697 tSCC zUltrix_Math_IfdefSelect0[] =
7698 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
7700 #define ULTRIX_MATH_IFDEF_TEST_CT 1
7701 static tTestDesc aUltrix_Math_IfdefTests[] = {
7702 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
7705 * Fix Command Arguments for Ultrix_Math_Ifdef
7707 static const char* apzUltrix_Math_IfdefPatch[] = {
7712 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7714 * Description of Ultrix_Nested_Ioctl fix
7716 tSCC zUltrix_Nested_IoctlName[] =
7717 "ultrix_nested_ioctl";
7720 * File name selection pattern
7722 tSCC zUltrix_Nested_IoctlList[] =
7725 * Machine/OS name selection pattern
7727 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
7730 * content selection pattern - do fix if pattern found
7732 tSCC zUltrix_Nested_IoctlSelect0[] =
7733 "^/\\* #define SIOCSCREEN";
7735 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
7736 static tTestDesc aUltrix_Nested_IoctlTests[] = {
7737 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
7740 * Fix Command Arguments for Ultrix_Nested_Ioctl
7742 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
7743 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
7746 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7748 * Description of Ultrix_Nested_Svc fix
7750 tSCC zUltrix_Nested_SvcName[] =
7751 "ultrix_nested_svc";
7754 * File name selection pattern
7756 tSCC zUltrix_Nested_SvcList[] =
7759 * Machine/OS name selection pattern
7761 #define apzUltrix_Nested_SvcMachs (const char**)NULL
7764 * content selection pattern - do fix if pattern found
7766 tSCC zUltrix_Nested_SvcSelect0[] =
7767 "^ \\*[ \t]*int protocol; */\\*";
7769 #define ULTRIX_NESTED_SVC_TEST_CT 1
7770 static tTestDesc aUltrix_Nested_SvcTests[] = {
7771 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
7774 * Fix Command Arguments for Ultrix_Nested_Svc
7776 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
7777 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
7780 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7782 * Description of Ultrix_Stat fix
7784 tSCC zUltrix_StatName[] =
7788 * File name selection pattern
7790 tSCC zUltrix_StatList[] =
7793 * Machine/OS name selection pattern
7795 #define apzUltrix_StatMachs (const char**)NULL
7798 * content selection pattern - do fix if pattern found
7800 tSCC zUltrix_StatSelect0[] =
7801 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
7803 #define ULTRIX_STAT_TEST_CT 1
7804 static tTestDesc aUltrix_StatTests[] = {
7805 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
7808 * Fix Command Arguments for Ultrix_Stat
7810 static const char* apzUltrix_StatPatch[] = { "sed",
7811 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
7813 /* macro to test for symbolic link */\\\n\
7814 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
7815 "-e", "/^[ \t]*fstat(),$/a\\\n\
7819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7821 * Description of Ultrix_Static fix
7823 tSCC zUltrix_StaticName[] =
7827 * File name selection pattern
7829 tSCC zUltrix_StaticList[] =
7832 * Machine/OS name selection pattern
7834 #define apzUltrix_StaticMachs (const char**)NULL
7837 * content selection pattern - do fix if pattern found
7839 tSCC zUltrix_StaticSelect0[] =
7840 "#include \"r[34]_cpu";
7842 #define ULTRIX_STATIC_TEST_CT 1
7843 static tTestDesc aUltrix_StaticTests[] = {
7844 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
7847 * Fix Command Arguments for Ultrix_Static
7849 static const char* apzUltrix_StaticPatch[] = { "sed",
7850 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
7851 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
7852 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
7855 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7857 * Description of Ultrix_Stdlib fix
7859 tSCC zUltrix_StdlibName[] =
7863 * File name selection pattern
7865 tSCC zUltrix_StdlibList[] =
7868 * Machine/OS name selection pattern
7870 #define apzUltrix_StdlibMachs (const char**)NULL
7873 * content selection pattern - do fix if pattern found
7875 tSCC zUltrix_StdlibSelect0[] =
7876 "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
7878 #define ULTRIX_STDLIB_TEST_CT 1
7879 static tTestDesc aUltrix_StdlibTests[] = {
7880 { TT_EGREP, zUltrix_StdlibSelect0, (regex_t*)NULL }, };
7883 * Fix Command Arguments for Ultrix_Stdlib
7885 static const char* apzUltrix_StdlibPatch[] = { "sed",
7886 "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
7887 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
7888 void\t\tunsetenv( const char *__name );\\\n\
7889 int\t\tputenv( char *__s );\n",
7890 "-e", "/^char.*getenv();.*$/a\\\n\
7892 void\tunsetenv();\\\n\
7896 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7898 * Description of Ultrix_Strings fix
7900 tSCC zUltrix_StringsName[] =
7904 * File name selection pattern
7906 tSCC zUltrix_StringsList[] =
7909 * Machine/OS name selection pattern
7911 #define apzUltrix_StringsMachs (const char**)NULL
7914 * content selection pattern - do fix if pattern found
7916 tSCC zUltrix_StringsSelect0[] =
7917 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7919 #define ULTRIX_STRINGS_TEST_CT 1
7920 static tTestDesc aUltrix_StringsTests[] = {
7921 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
7924 * Fix Command Arguments for Ultrix_Strings
7926 static const char* apzUltrix_StringsPatch[] = {
7930 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7932 * Description of Ultrix_Strings2 fix
7934 tSCC zUltrix_Strings2Name[] =
7938 * File name selection pattern
7940 tSCC zUltrix_Strings2List[] =
7943 * Machine/OS name selection pattern
7945 #define apzUltrix_Strings2Machs (const char**)NULL
7948 * content selection pattern - do fix if pattern found
7950 tSCC zUltrix_Strings2Select0[] =
7951 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7953 #define ULTRIX_STRINGS2_TEST_CT 1
7954 static tTestDesc aUltrix_Strings2Tests[] = {
7955 { TT_EGREP, zUltrix_Strings2Select0, (regex_t*)NULL }, };
7958 * Fix Command Arguments for Ultrix_Strings2
7960 static const char* apzUltrix_Strings2Patch[] = { "sed",
7961 "-e", "/^.*strncmp( const .* );.*/a\\\n\
7964 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
7965 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
7966 "-e", "/^.*strncmp();.*/a\\\n\
7968 \tstrcasecmp(),\\\n\
7969 \tstrncasecmp();\n",
7972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7974 * Description of Ultrix_Sys_Time fix
7976 tSCC zUltrix_Sys_TimeName[] =
7980 * File name selection pattern
7982 tSCC zUltrix_Sys_TimeList[] =
7985 * Machine/OS name selection pattern
7987 #define apzUltrix_Sys_TimeMachs (const char**)NULL
7990 * content selection pattern - do fix if pattern found
7992 tSCC zUltrix_Sys_TimeSelect0[] =
7993 "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
7995 #define ULTRIX_SYS_TIME_TEST_CT 1
7996 static tTestDesc aUltrix_Sys_TimeTests[] = {
7997 { TT_EGREP, zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
8000 * Fix Command Arguments for Ultrix_Sys_Time
8002 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
8003 "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
8005 extern int adjtime(struct timeval *, struct timeval *);\\\n\
8006 extern int getitimer(int, struct itimerval *);\\\n\
8007 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
8008 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
8009 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
8010 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
8011 extern int stime(const time_t *);\\\n\
8012 extern int utimes(const char *, const struct timeval[2]);\\\n\
8013 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
8014 "-e", "/^extern.*double.*difftime();.*$/a\\\n\
8015 extern\tint adjtime();\\\n\
8016 extern\tint getitimer();\\\n\
8017 extern\tint setitimer();\\\n\
8018 extern\tint gettimeofday();\\\n\
8019 extern\tint settimeofday();\\\n\
8020 extern\tvoid profil();\\\n\
8021 extern\tint stime();\\\n\
8022 extern\tint utimes();\\\n\
8023 extern\tint select();\n",
8026 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8028 * Description of Ultrix_Unistd fix
8030 tSCC zUltrix_UnistdName[] =
8034 * File name selection pattern
8036 tSCC zUltrix_UnistdList[] =
8039 * Machine/OS name selection pattern
8041 #define apzUltrix_UnistdMachs (const char**)NULL
8044 * content selection pattern - do fix if pattern found
8046 tSCC zUltrix_UnistdSelect0[] =
8047 "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
8049 #define ULTRIX_UNISTD_TEST_CT 1
8050 static tTestDesc aUltrix_UnistdTests[] = {
8051 { TT_EGREP, zUltrix_UnistdSelect0, (regex_t*)NULL }, };
8054 * Fix Command Arguments for Ultrix_Unistd
8056 static const char* apzUltrix_UnistdPatch[] = { "sed",
8057 "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
8058 \tgetpagesize(),\n",
8059 "-e", "/^[ \t]*fork(),.*$/a\\\n\
8063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8065 * Description of Unicosmk_Restrict fix
8067 tSCC zUnicosmk_RestrictName[] =
8068 "unicosmk_restrict";
8071 * File name selection pattern
8073 tSCC zUnicosmk_RestrictList[] =
8074 "stdio.h\0stdlib.h\0wchar.h\0";
8076 * Machine/OS name selection pattern
8078 tSCC* apzUnicosmk_RestrictMachs[] = {
8080 (const char*)NULL };
8083 * content selection pattern - do fix if pattern found
8085 tSCC zUnicosmk_RestrictSelect0[] =
8086 "(\\*[ \t]*)restrict([ \t]+)";
8088 #define UNICOSMK_RESTRICT_TEST_CT 1
8089 static tTestDesc aUnicosmk_RestrictTests[] = {
8090 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
8093 * Fix Command Arguments for Unicosmk_Restrict
8095 static const char* apzUnicosmk_RestrictPatch[] = {
8100 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8102 * Description of Uw7_Byteorder_Fix fix
8104 tSCC zUw7_Byteorder_FixName[] =
8105 "uw7_byteorder_fix";
8108 * File name selection pattern
8110 tSCC zUw7_Byteorder_FixList[] =
8113 * Machine/OS name selection pattern
8115 tSCC* apzUw7_Byteorder_FixMachs[] = {
8119 "i?86-*-solaris2.[0-4]",
8120 "powerpcle-*-solaris2.[0-4]",
8121 "sparc-*-solaris2.[0-4]",
8122 (const char*)NULL };
8125 * content selection pattern - do fix if pattern found
8127 tSCC zUw7_Byteorder_FixSelect0[] =
8131 * perform the 'test' shell command - do fix on success
8133 tSCC zUw7_Byteorder_FixTest0[] =
8134 "-f sys/byteorder.h";
8136 #define UW7_BYTEORDER_FIX_TEST_CT 2
8137 static tTestDesc aUw7_Byteorder_FixTests[] = {
8138 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
8139 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
8142 * Fix Command Arguments for Uw7_Byteorder_Fix
8144 static const char* apzUw7_Byteorder_FixPatch[] = {
8147 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
8150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8152 * Description of Va_I960_Macro fix
8154 tSCC zVa_I960_MacroName[] =
8158 * File name selection pattern
8160 tSCC zVa_I960_MacroList[] =
8161 "arch/i960/archI960.h\0";
8163 * Machine/OS name selection pattern
8165 #define apzVa_I960_MacroMachs (const char**)NULL
8168 * content selection pattern - do fix if pattern found
8170 tSCC zVa_I960_MacroSelect0[] =
8171 "__(vsiz|vali|vpad|alignof__)";
8173 #define VA_I960_MACRO_TEST_CT 1
8174 static tTestDesc aVa_I960_MacroTests[] = {
8175 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8178 * Fix Command Arguments for Va_I960_Macro
8180 static const char* apzVa_I960_MacroPatch[] = {
8185 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8187 * Description of Void_Null fix
8189 tSCC zVoid_NullName[] =
8193 * File name selection pattern
8195 tSCC zVoid_NullList[] =
8196 "curses.h\0dbm.h\0locale.h\0stdio.h\0stdlib.h\0string.h\0time.h\0unistd.h\0sys/dir.h\0sys/param.h\0sys/types.h\0";
8198 * Machine/OS name selection pattern
8200 #define apzVoid_NullMachs (const char**)NULL
8203 * content selection pattern - do fix if pattern found
8205 tSCC zVoid_NullSelect0[] =
8206 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8209 * content bypass pattern - skip fix if pattern found
8211 tSCC zVoid_NullBypass0[] =
8214 #define VOID_NULL_TEST_CT 2
8215 static tTestDesc aVoid_NullTests[] = {
8216 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
8217 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
8220 * Fix Command Arguments for Void_Null
8222 static const char* apzVoid_NullPatch[] = {
8227 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8229 * Description of Vxworks_Gcc_Problem fix
8231 tSCC zVxworks_Gcc_ProblemName[] =
8232 "vxworks_gcc_problem";
8235 * File name selection pattern
8237 tSCC zVxworks_Gcc_ProblemList[] =
8238 "types/vxTypesBase.h\0";
8240 * Machine/OS name selection pattern
8242 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8245 * content selection pattern - do fix if pattern found
8247 tSCC zVxworks_Gcc_ProblemSelect0[] =
8248 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8250 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
8251 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8252 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8255 * Fix Command Arguments for Vxworks_Gcc_Problem
8257 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
8258 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8259 "-e", "/[ \t]size_t/i\\\n\
8260 #ifndef _GCC_SIZE_T\\\n\
8261 #define _GCC_SIZE_T\n",
8262 "-e", "/[ \t]size_t/a\\\n\
8264 "-e", "/[ \t]ptrdiff_t/i\\\n\
8265 #ifndef _GCC_PTRDIFF_T\\\n\
8266 #define _GCC_PTRDIFF_T\n",
8267 "-e", "/[ \t]ptrdiff_t/a\\\n\
8269 "-e", "/[ \t]wchar_t/i\\\n\
8270 #ifndef _GCC_WCHAR_T\\\n\
8271 #define _GCC_WCHAR_T\n",
8272 "-e", "/[ \t]wchar_t/a\\\n\
8276 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8278 * Description of Vxworks_Needs_Vxtypes fix
8280 tSCC zVxworks_Needs_VxtypesName[] =
8281 "vxworks_needs_vxtypes";
8284 * File name selection pattern
8286 tSCC zVxworks_Needs_VxtypesList[] =
8289 * Machine/OS name selection pattern
8291 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8294 * content selection pattern - do fix if pattern found
8296 tSCC zVxworks_Needs_VxtypesSelect0[] =
8297 "uint_t([ \t]+_clocks_per_sec)";
8299 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
8300 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8301 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8304 * Fix Command Arguments for Vxworks_Needs_Vxtypes
8306 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8313 * Description of Vxworks_Needs_Vxworks fix
8315 tSCC zVxworks_Needs_VxworksName[] =
8316 "vxworks_needs_vxworks";
8319 * File name selection pattern
8321 tSCC zVxworks_Needs_VxworksList[] =
8324 * Machine/OS name selection pattern
8326 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8329 * content selection pattern - do fix if pattern found
8331 tSCC zVxworks_Needs_VxworksSelect0[] =
8332 "#[ \t]define[ \t]+__INCstath";
8335 * perform the 'test' shell command - do fix on success
8337 tSCC zVxworks_Needs_VxworksTest0[] =
8338 " -r types/vxTypesOld.h";
8339 tSCC zVxworks_Needs_VxworksTest1[] =
8340 " -n \"`egrep '#include' $file`\"";
8341 tSCC zVxworks_Needs_VxworksTest2[] =
8342 " -n \"`egrep ULONG $file`\"";
8344 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
8345 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8346 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
8347 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
8348 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
8349 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8352 * Fix Command Arguments for Vxworks_Needs_Vxworks
8354 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
8355 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8356 #include <types/vxTypesOld.h>\n",
8359 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8361 * Description of Vxworks_Time fix
8363 tSCC zVxworks_TimeName[] =
8367 * File name selection pattern
8369 tSCC zVxworks_TimeList[] =
8372 * Machine/OS name selection pattern
8374 #define apzVxworks_TimeMachs (const char**)NULL
8377 * content selection pattern - do fix if pattern found
8379 tSCC zVxworks_TimeSelect0[] =
8380 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8383 * perform the 'test' shell command - do fix on success
8385 tSCC zVxworks_TimeTest0[] =
8388 #define VXWORKS_TIME_TEST_CT 2
8389 static tTestDesc aVxworks_TimeTests[] = {
8390 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
8391 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
8394 * Fix Command Arguments for Vxworks_Time
8396 static const char* apzVxworks_TimePatch[] = {
8398 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8399 #ifdef __cplusplus\n\
8400 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8402 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8404 #define __gcc_VOIDFUNCPTR_defined\n\
8406 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8409 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8411 * Description of Windiss_Math1 fix
8413 tSCC zWindiss_Math1Name[] =
8417 * File name selection pattern
8419 tSCC zWindiss_Math1List[] =
8422 * Machine/OS name selection pattern
8424 tSCC* apzWindiss_Math1Machs[] = {
8426 (const char*)NULL };
8427 #define WINDISS_MATH1_TEST_CT 0
8428 #define aWindiss_Math1Tests (tTestDesc*)NULL
8431 * Fix Command Arguments for Windiss_Math1
8433 static const char* apzWindiss_Math1Patch[] = { "sed",
8434 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
8437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8439 * Description of Windiss_Math2 fix
8441 tSCC zWindiss_Math2Name[] =
8445 * File name selection pattern
8447 tSCC zWindiss_Math2List[] =
8450 * Machine/OS name selection pattern
8452 tSCC* apzWindiss_Math2Machs[] = {
8454 (const char*)NULL };
8455 #define WINDISS_MATH2_TEST_CT 0
8456 #define aWindiss_Math2Tests (tTestDesc*)NULL
8459 * Fix Command Arguments for Windiss_Math2
8461 static const char* apzWindiss_Math2Patch[] = { "sed",
8462 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
8465 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8467 * Description of Windiss_Valist fix
8469 tSCC zWindiss_ValistName[] =
8473 * File name selection pattern
8475 #define zWindiss_ValistList (char*)NULL
8477 * Machine/OS name selection pattern
8479 tSCC* apzWindiss_ValistMachs[] = {
8481 (const char*)NULL };
8484 * content selection pattern - do fix if pattern found
8486 tSCC zWindiss_ValistSelect0[] =
8487 "(#include.*)diab/va_list.h";
8489 #define WINDISS_VALIST_TEST_CT 1
8490 static tTestDesc aWindiss_ValistTests[] = {
8491 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
8494 * Fix Command Arguments for Windiss_Valist
8496 static const char* apzWindiss_ValistPatch[] = { "sed",
8497 "-e", "s|diab/va_list.h|stdarg.h|",
8500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8502 * Description of X11_Class fix
8504 tSCC zX11_ClassName[] =
8508 * File name selection pattern
8510 tSCC zX11_ClassList[] =
8513 * Machine/OS name selection pattern
8515 #define apzX11_ClassMachs (const char**)NULL
8518 * content selection pattern - do fix if pattern found
8520 tSCC zX11_ClassSelect0[] =
8521 "^([ \t]*char \\*)class;(.*)";
8524 * content bypass pattern - skip fix if pattern found
8526 tSCC zX11_ClassBypass0[] =
8529 #define X11_CLASS_TEST_CT 2
8530 static tTestDesc aX11_ClassTests[] = {
8531 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
8532 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
8535 * Fix Command Arguments for X11_Class
8537 static const char* apzX11_ClassPatch[] = {
8539 "#ifdef __cplusplus\n\
8546 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8548 * Description of X11_Class_Usage fix
8550 tSCC zX11_Class_UsageName[] =
8554 * File name selection pattern
8556 tSCC zX11_Class_UsageList[] =
8557 "Xm/BaseClassI.h\0";
8559 * Machine/OS name selection pattern
8561 #define apzX11_Class_UsageMachs (const char**)NULL
8564 * content selection pattern - do fix if pattern found
8566 tSCC zX11_Class_UsageSelect0[] =
8570 * content bypass pattern - skip fix if pattern found
8572 tSCC zX11_Class_UsageBypass0[] =
8575 #define X11_CLASS_USAGE_TEST_CT 2
8576 static tTestDesc aX11_Class_UsageTests[] = {
8577 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8578 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8581 * Fix Command Arguments for X11_Class_Usage
8583 static const char* apzX11_Class_UsagePatch[] = {
8588 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8590 * Description of X11_New fix
8592 tSCC zX11_NewName[] =
8596 * File name selection pattern
8598 tSCC zX11_NewList[] =
8601 * Machine/OS name selection pattern
8603 #define apzX11_NewMachs (const char**)NULL
8606 * content bypass pattern - skip fix if pattern found
8608 tSCC zX11_NewBypass0[] =
8611 #define X11_NEW_TEST_CT 1
8612 static tTestDesc aX11_NewTests[] = {
8613 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
8616 * Fix Command Arguments for X11_New
8618 static const char* apzX11_NewPatch[] = { "sed",
8619 "-e", "/Widget\told, new;/i\\\n\
8620 #ifdef __cplusplus\\\n\
8621 \tWidget\told, c_new;\\\n\
8623 "-e", "/Widget\told, new;/a\\\n\
8625 "-e", "s/Widget new,/Widget c_new,/g",
8628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8630 * Description of X11_Sprintf fix
8632 tSCC zX11_SprintfName[] =
8636 * File name selection pattern
8638 tSCC zX11_SprintfList[] =
8639 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8641 * Machine/OS name selection pattern
8643 #define apzX11_SprintfMachs (const char**)NULL
8646 * content selection pattern - do fix if pattern found
8648 tSCC zX11_SprintfSelect0[] =
8649 "^extern char \\*\tsprintf\\(\\);$";
8651 #define X11_SPRINTF_TEST_CT 1
8652 static tTestDesc aX11_SprintfTests[] = {
8653 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
8656 * Fix Command Arguments for X11_Sprintf
8658 static const char* apzX11_SprintfPatch[] = {
8660 "#ifndef __STDC__\n\
8662 #endif /* !defined __STDC__ */",
8666 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8670 #define REGEX_COUNT 257
8671 #define MACH_LIST_SIZE_LIMIT 261
8672 #define FIX_COUNT 213
8675 * Enumerate the fixes
8678 AAB_AIX_STDIO_FIXIDX,
8679 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8680 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8681 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8682 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8683 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8684 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8685 AAB_SUN_MEMCPY_FIXIDX,
8686 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
8687 AAB_ULTRIX_LIMITS_FIXIDX,
8688 AAB_ULTRIX_MEMORY_FIXIDX,
8689 AAB_ULTRIX_STRING_FIXIDX,
8691 AIX_SYSMACHINE_FIXIDX,
8693 AIX_SYSWAIT_2_FIXIDX,
8694 AIX_VOLATILE_FIXIDX,
8695 ALPHA___ASSERT_FIXIDX,
8696 ALPHA___EXTERN_PREFIX_FIXIDX,
8697 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8698 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8699 ALPHA_ASSERT_FIXIDX,
8700 ALPHA_BAD_LVAL_FIXIDX,
8701 ALPHA_GETOPT_FIXIDX,
8702 ALPHA_PARENS_FIXIDX,
8703 ALPHA_PTHREAD_FIXIDX,
8704 ALPHA_PTHREAD_GCC_FIXIDX,
8705 ALPHA_PTHREAD_INIT_FIXIDX,
8708 AVOID_BOOL_DEFINE_FIXIDX,
8709 AVOID_BOOL_TYPE_FIXIDX,
8710 AVOID_WCHAR_T_TYPE_FIXIDX,
8711 BAD_STRUCT_TERM_FIXIDX,
8713 BROKEN_ASSERT_STDIO_FIXIDX,
8714 BROKEN_ASSERT_STDLIB_FIXIDX,
8717 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8718 CTRL_QUOTES_DEF_FIXIDX,
8719 CTRL_QUOTES_USE_FIXIDX,
8721 DARWIN_EXTERNC_FIXIDX,
8722 DARWIN_GCC4_BREAKAGE_FIXIDX,
8723 DARWIN_PRIVATE_EXTERN_FIXIDX,
8724 DEC_INTERN_ASM_FIXIDX,
8725 DJGPP_WCHAR_H_FIXIDX,
8727 EXCEPTION_STRUCTURE_FIXIDX,
8728 FREEBSD_GCC3_BREAKAGE_FIXIDX,
8729 FREEBSD_GCC4_BREAKAGE_FIXIDX,
8730 GLIBC_C99_INLINE_1_FIXIDX,
8731 GLIBC_C99_INLINE_1A_FIXIDX,
8732 GLIBC_C99_INLINE_2_FIXIDX,
8733 GLIBC_C99_INLINE_3_FIXIDX,
8734 GLIBC_C99_INLINE_4_FIXIDX,
8735 GLIBC_MUTEX_INIT_FIXIDX,
8739 HPUX10_CPP_POW_INLINE_FIXIDX,
8740 HPUX11_CPP_POW_INLINE_FIXIDX,
8741 HPPA_HPUX_FP_MACROS_FIXIDX,
8742 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8743 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8744 HPUX10_STDIO_DECLARATIONS_FIXIDX,
8746 HPUX11_FABSF_FIXIDX,
8747 HPUX11_SIZE_T_FIXIDX,
8748 HPUX11_SNPRINTF_FIXIDX,
8749 HPUX11_UINT32_C_FIXIDX,
8750 HPUX11_VSNPRINTF_FIXIDX,
8751 HPUX8_BOGUS_INLINES_FIXIDX,
8752 HPUX_CTYPE_MACROS_FIXIDX,
8754 HPUX_LONG_DOUBLE_FIXIDX,
8755 HPUX_SYSTIME_FIXIDX,
8756 HPUX_SPU_INFO_FIXIDX,
8757 HPUX11_EXTERN_SENDFILE_FIXIDX,
8758 HPUX11_EXTERN_SENDPATH_FIXIDX,
8759 HPUX_EXTERN_ERRNO_FIXIDX,
8760 HPUX11_PTHREAD_CONST_FIXIDX,
8761 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8762 HUGE_VAL_HEX_FIXIDX,
8763 HUGE_VALF_HEX_FIXIDX,
8764 HUGE_VALL_HEX_FIXIDX,
8765 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8766 IO_QUOTES_DEF_FIXIDX,
8767 IO_QUOTES_USE_FIXIDX,
8768 IP_MISSING_SEMI_FIXIDX,
8769 IRIX___RESTRICT_FIXIDX,
8770 IRIX___GENERIC1_FIXIDX,
8771 IRIX___GENERIC2_FIXIDX,
8772 IRIX_ASM_APOSTROPHE_FIXIDX,
8773 IRIX_LIMITS_CONST_FIXIDX,
8774 IRIX_SOCKLEN_T_FIXIDX,
8775 IRIX_STDINT_C99_FIXIDX,
8776 IRIX_STDIO_VA_LIST_FIXIDX,
8777 IRIX_WCSFTIME_FIXIDX,
8779 ISC_OMITS_WITH_STDC_FIXIDX,
8780 KANDR_CONCAT_FIXIDX,
8781 LIBC1_G_VA_LIST_FIXIDX,
8782 LIBC1_IFDEFD_MEMX_FIXIDX,
8783 LINUX_IA64_UCONTEXT_FIXIDX,
8784 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8785 LYNXOS_MISSING_PUTENV_FIXIDX,
8786 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8787 MACHINE_NAME_FIXIDX,
8788 MATH_EXCEPTION_FIXIDX,
8789 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8790 NESTED_AUTH_DES_FIXIDX,
8791 NESTED_MOTOROLA_FIXIDX,
8792 NESTED_SYS_LIMITS_FIXIDX,
8793 NETBSD_C99_INLINE_1_FIXIDX,
8794 NETBSD_C99_INLINE_2_FIXIDX,
8795 NETBSD_EXTRA_SEMICOLON_FIXIDX,
8796 NEXT_MATH_PREFIX_FIXIDX,
8797 NEXT_TEMPLATE_FIXIDX,
8798 NEXT_VOLITILE_FIXIDX,
8799 NEXT_WAIT_UNION_FIXIDX,
8800 NODEENT_SYNTAX_FIXIDX,
8801 OBSTACK_LVALUE_CAST_FIXIDX,
8802 OSF_NAMESPACE_A_FIXIDX,
8803 OSF_NAMESPACE_C_FIXIDX,
8804 PTHREAD_PAGE_SIZE_FIXIDX,
8805 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8806 READ_RET_TYPE_FIXIDX,
8807 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8808 RPC_XDR_LVALUE_CAST_B_FIXIDX,
8809 RS6000_DOUBLE_FIXIDX,
8810 RS6000_FCHMOD_FIXIDX,
8811 RS6000_PARAM_FIXIDX,
8814 SCO_STATIC_FUNC_FIXIDX,
8816 SOLARIS_MATH_1_FIXIDX,
8817 SOLARIS_MATH_2_FIXIDX,
8818 SOLARIS_MATH_3_FIXIDX,
8819 SOLARIS_MATH_4_FIXIDX,
8820 SOLARIS_MATH_8_FIXIDX,
8821 SOLARIS_MATH_9_FIXIDX,
8822 SOLARIS_MATH_10_FIXIDX,
8823 SOLARIS_MUTEX_INIT_1_FIXIDX,
8824 SOLARIS_MUTEX_INIT_2_FIXIDX,
8825 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8826 SOLARIS_ONCE_INIT_1_FIXIDX,
8827 SOLARIS_ONCE_INIT_2_FIXIDX,
8828 SOLARIS_SOCKET_FIXIDX,
8829 SOLARIS_STDIO_TAG_FIXIDX,
8830 SOLARIS_UNISTD_FIXIDX,
8831 SOLARIS_WIDEC_FIXIDX,
8833 STDIO_STDARG_H_FIXIDX,
8834 STDIO_VA_LIST_FIXIDX,
8835 STDIO_VA_LIST_CLIENTS_FIXIDX,
8836 STRICT_ANSI_NOT_FIXIDX,
8837 STRICT_ANSI_NOT_CTD_FIXIDX,
8838 STRICT_ANSI_ONLY_FIXIDX,
8840 STRUCT_SOCKADDR_FIXIDX,
8841 SUN_AUTH_PROTO_FIXIDX,
8842 SUN_BOGUS_IFDEF_FIXIDX,
8843 SUN_CATMACRO_FIXIDX,
8845 SUN_RUSERS_SEMI_FIXIDX,
8847 SUNOS_STRLEN_FIXIDX,
8848 SVR4_DISABLE_OPT_FIXIDX,
8852 SVR4_SIGHANDLER_TYPE_FIXIDX,
8853 SVR4_UNDECLARED_GETRNGE_FIXIDX,
8854 SYSV68_STRING_FIXIDX,
8855 SYSZ_STDLIB_FOR_SUN_FIXIDX,
8856 THREAD_KEYWORD_FIXIDX,
8857 TINFO_CPLUSPLUS_FIXIDX,
8858 ULTRIX_ATEXIT_PARAM_FIXIDX,
8859 ULTRIX_ATOF_PARAM_FIXIDX,
8860 ULTRIX_CONST_FIXIDX,
8861 ULTRIX_CONST2_FIXIDX,
8862 ULTRIX_CONST3_FIXIDX,
8863 ULTRIX_FIX_FIXPROTO_FIXIDX,
8864 ULTRIX_IFDEF_FIXIDX,
8865 ULTRIX_LOCALE_FIXIDX,
8866 ULTRIX_MATH_IFDEF_FIXIDX,
8867 ULTRIX_NESTED_IOCTL_FIXIDX,
8868 ULTRIX_NESTED_SVC_FIXIDX,
8870 ULTRIX_STATIC_FIXIDX,
8871 ULTRIX_STDLIB_FIXIDX,
8872 ULTRIX_STRINGS_FIXIDX,
8873 ULTRIX_STRINGS2_FIXIDX,
8874 ULTRIX_SYS_TIME_FIXIDX,
8875 ULTRIX_UNISTD_FIXIDX,
8876 UNICOSMK_RESTRICT_FIXIDX,
8877 UW7_BYTEORDER_FIX_FIXIDX,
8878 VA_I960_MACRO_FIXIDX,
8880 VXWORKS_GCC_PROBLEM_FIXIDX,
8881 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8882 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8883 VXWORKS_TIME_FIXIDX,
8884 WINDISS_MATH1_FIXIDX,
8885 WINDISS_MATH2_FIXIDX,
8886 WINDISS_VALIST_FIXIDX,
8888 X11_CLASS_USAGE_FIXIDX,
8893 tFixDesc fixDescList[ FIX_COUNT ] = {
8894 { zAab_Aix_StdioName, zAab_Aix_StdioList,
8895 apzAab_Aix_StdioMachs,
8896 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8897 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
8899 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8900 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8901 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8902 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8904 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8905 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8906 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8907 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8909 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
8910 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8911 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8912 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8914 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
8915 apzAab_Fd_Zero_Gnu_Types_HMachs,
8916 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8917 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8919 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
8920 apzAab_Fd_Zero_Selectbits_HMachs,
8921 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8922 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8924 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8925 apzAab_Solaris_Sys_Varargs_HMachs,
8926 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8927 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8929 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8930 apzAab_Sun_MemcpyMachs,
8931 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8932 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8934 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
8935 apzAab_Ultrix_Ansi_CompatMachs,
8936 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8937 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
8939 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
8940 apzAab_Ultrix_LimitsMachs,
8941 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8942 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
8944 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
8945 apzAab_Ultrix_MemoryMachs,
8946 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8947 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
8949 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
8950 apzAab_Ultrix_StringMachs,
8951 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8952 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
8954 { zAix_PthreadName, zAix_PthreadList,
8955 apzAix_PthreadMachs,
8956 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8957 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
8959 { zAix_SysmachineName, zAix_SysmachineList,
8960 apzAix_SysmachineMachs,
8961 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8962 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
8964 { zAix_SyswaitName, zAix_SyswaitList,
8965 apzAix_SyswaitMachs,
8966 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8967 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
8969 { zAix_Syswait_2Name, zAix_Syswait_2List,
8970 apzAix_Syswait_2Machs,
8971 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8972 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8974 { zAix_VolatileName, zAix_VolatileList,
8975 apzAix_VolatileMachs,
8976 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8977 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
8979 { zAlpha___AssertName, zAlpha___AssertList,
8980 apzAlpha___AssertMachs,
8981 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8982 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8984 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
8985 apzAlpha___Extern_PrefixMachs,
8986 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8987 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
8989 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
8990 apzAlpha___Extern_Prefix_StandardsMachs,
8991 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8992 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8994 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
8995 apzAlpha___Extern_Prefix_Sys_StatMachs,
8996 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8997 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8999 { zAlpha_AssertName, zAlpha_AssertList,
9000 apzAlpha_AssertMachs,
9001 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9002 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
9004 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
9005 apzAlpha_Bad_LvalMachs,
9006 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
9007 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
9009 { zAlpha_GetoptName, zAlpha_GetoptList,
9010 apzAlpha_GetoptMachs,
9011 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9012 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
9014 { zAlpha_ParensName, zAlpha_ParensList,
9015 apzAlpha_ParensMachs,
9016 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9017 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
9019 { zAlpha_PthreadName, zAlpha_PthreadList,
9020 apzAlpha_PthreadMachs,
9021 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9022 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
9024 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
9025 apzAlpha_Pthread_GccMachs,
9026 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9027 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
9029 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
9030 apzAlpha_Pthread_InitMachs,
9031 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
9032 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
9034 { zAlpha_SbrkName, zAlpha_SbrkList,
9036 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9037 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
9039 { zAlpha_WcharName, zAlpha_WcharList,
9040 apzAlpha_WcharMachs,
9041 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
9042 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
9044 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
9045 apzAvoid_Bool_DefineMachs,
9046 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9047 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
9049 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
9050 apzAvoid_Bool_TypeMachs,
9051 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9052 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
9054 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
9055 apzAvoid_Wchar_T_TypeMachs,
9056 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9057 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
9059 { zBad_Struct_TermName, zBad_Struct_TermList,
9060 apzBad_Struct_TermMachs,
9061 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9062 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
9064 { zBadquoteName, zBadquoteList,
9066 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9067 aBadquoteTests, apzBadquotePatch, 0 },
9069 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
9070 apzBroken_Assert_StdioMachs,
9071 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9072 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
9074 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
9075 apzBroken_Assert_StdlibMachs,
9076 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9077 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
9079 { zBroken_CabsName, zBroken_CabsList,
9080 apzBroken_CabsMachs,
9081 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9082 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
9084 { zBroken_NanName, zBroken_NanList,
9086 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9087 aBroken_NanTests, apzBroken_NanPatch, 0 },
9089 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
9090 apzBsd_Stdio_Attrs_ConflictMachs,
9091 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9092 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9094 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
9095 apzCtrl_Quotes_DefMachs,
9096 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9097 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
9099 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
9100 apzCtrl_Quotes_UseMachs,
9101 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9102 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
9104 { zCxx_UnreadyName, zCxx_UnreadyList,
9105 apzCxx_UnreadyMachs,
9106 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9107 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
9109 { zDarwin_ExterncName, zDarwin_ExterncList,
9110 apzDarwin_ExterncMachs,
9111 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9112 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
9114 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
9115 apzDarwin_Gcc4_BreakageMachs,
9116 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9117 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
9119 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
9120 apzDarwin_Private_ExternMachs,
9121 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9122 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
9124 { zDec_Intern_AsmName, zDec_Intern_AsmList,
9125 apzDec_Intern_AsmMachs,
9126 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9127 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
9129 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
9130 apzDjgpp_Wchar_HMachs,
9131 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9132 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
9134 { zEcd_CursorName, zEcd_CursorList,
9136 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9137 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
9139 { zException_StructureName, zException_StructureList,
9140 apzException_StructureMachs,
9141 EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9142 aException_StructureTests, apzException_StructurePatch, 0 },
9144 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
9145 apzFreebsd_Gcc3_BreakageMachs,
9146 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9147 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
9149 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
9150 apzFreebsd_Gcc4_BreakageMachs,
9151 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9152 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
9154 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
9155 apzGlibc_C99_Inline_1Machs,
9156 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9157 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
9159 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
9160 apzGlibc_C99_Inline_1aMachs,
9161 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9162 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
9164 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
9165 apzGlibc_C99_Inline_2Machs,
9166 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9167 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
9169 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
9170 apzGlibc_C99_Inline_3Machs,
9171 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9172 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
9174 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
9175 apzGlibc_C99_Inline_4Machs,
9176 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9177 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
9179 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
9180 apzGlibc_Mutex_InitMachs,
9181 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9182 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
9184 { zGnu_TypesName, zGnu_TypesList,
9186 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9187 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
9189 { zHp_InlineName, zHp_InlineList,
9191 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9192 aHp_InlineTests, apzHp_InlinePatch, 0 },
9194 { zHp_SysfileName, zHp_SysfileList,
9196 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9197 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
9199 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
9200 apzHpux10_Cpp_Pow_InlineMachs,
9201 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9202 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
9204 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
9205 apzHpux11_Cpp_Pow_InlineMachs,
9206 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9207 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
9209 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
9210 apzHppa_Hpux_Fp_MacrosMachs,
9211 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9212 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
9214 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
9215 apzHpux10_Ctype_Declarations1Machs,
9216 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9217 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
9219 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
9220 apzHpux10_Ctype_Declarations2Machs,
9221 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9222 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
9224 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
9225 apzHpux10_Stdio_DeclarationsMachs,
9226 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9227 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
9229 { zHpux11_AbsName, zHpux11_AbsList,
9231 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9232 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
9234 { zHpux11_FabsfName, zHpux11_FabsfList,
9235 apzHpux11_FabsfMachs,
9236 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9237 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
9239 { zHpux11_Size_TName, zHpux11_Size_TList,
9240 apzHpux11_Size_TMachs,
9241 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9242 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
9244 { zHpux11_SnprintfName, zHpux11_SnprintfList,
9245 apzHpux11_SnprintfMachs,
9246 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9247 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
9249 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
9250 apzHpux11_Uint32_CMachs,
9251 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9252 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
9254 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
9255 apzHpux11_VsnprintfMachs,
9256 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9257 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
9259 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
9260 apzHpux8_Bogus_InlinesMachs,
9261 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9262 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
9264 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
9265 apzHpux_Ctype_MacrosMachs,
9266 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9267 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
9269 { zHpux_HtonlName, zHpux_HtonlList,
9271 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9272 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
9274 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
9275 apzHpux_Long_DoubleMachs,
9276 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9277 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
9279 { zHpux_SystimeName, zHpux_SystimeList,
9280 apzHpux_SystimeMachs,
9281 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9282 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
9284 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
9285 apzHpux_Spu_InfoMachs,
9286 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9287 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
9289 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
9290 apzHpux11_Extern_SendfileMachs,
9291 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9292 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
9294 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
9295 apzHpux11_Extern_SendpathMachs,
9296 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9297 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
9299 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
9300 apzHpux_Extern_ErrnoMachs,
9301 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9302 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
9304 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
9305 apzHpux11_Pthread_ConstMachs,
9306 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9307 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
9309 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
9310 apzHpux_Pthread_InitializersMachs,
9311 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9312 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
9314 { zHuge_Val_HexName, zHuge_Val_HexList,
9315 apzHuge_Val_HexMachs,
9316 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9317 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
9319 { zHuge_Valf_HexName, zHuge_Valf_HexList,
9320 apzHuge_Valf_HexMachs,
9321 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9322 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
9324 { zHuge_Vall_HexName, zHuge_Vall_HexList,
9325 apzHuge_Vall_HexMachs,
9326 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9327 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
9329 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
9330 apzInt_Abort_Free_And_ExitMachs,
9331 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9332 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
9334 { zIo_Quotes_DefName, zIo_Quotes_DefList,
9335 apzIo_Quotes_DefMachs,
9336 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9337 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
9339 { zIo_Quotes_UseName, zIo_Quotes_UseList,
9340 apzIo_Quotes_UseMachs,
9341 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9342 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
9344 { zIp_Missing_SemiName, zIp_Missing_SemiList,
9345 apzIp_Missing_SemiMachs,
9346 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9347 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
9349 { zIrix___RestrictName, zIrix___RestrictList,
9350 apzIrix___RestrictMachs,
9351 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9352 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
9354 { zIrix___Generic1Name, zIrix___Generic1List,
9355 apzIrix___Generic1Machs,
9356 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9357 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
9359 { zIrix___Generic2Name, zIrix___Generic2List,
9360 apzIrix___Generic2Machs,
9361 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9362 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
9364 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
9365 apzIrix_Asm_ApostropheMachs,
9366 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9367 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
9369 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
9370 apzIrix_Limits_ConstMachs,
9371 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9372 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
9374 { zIrix_Socklen_TName, zIrix_Socklen_TList,
9375 apzIrix_Socklen_TMachs,
9376 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9377 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
9379 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
9380 apzIrix_Stdint_C99Machs,
9381 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9382 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
9384 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
9385 apzIrix_Stdio_Va_ListMachs,
9386 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9387 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
9389 { zIrix_WcsftimeName, zIrix_WcsftimeList,
9390 apzIrix_WcsftimeMachs,
9391 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9392 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
9394 { zIsc_FmodName, zIsc_FmodList,
9396 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9397 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
9399 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
9400 apzIsc_Omits_With_StdcMachs,
9401 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9402 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
9404 { zKandr_ConcatName, zKandr_ConcatList,
9405 apzKandr_ConcatMachs,
9406 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9407 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
9409 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
9410 apzLibc1_G_Va_ListMachs,
9411 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9412 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
9414 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
9415 apzLibc1_Ifdefd_MemxMachs,
9416 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9417 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
9419 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
9420 apzLinux_Ia64_UcontextMachs,
9421 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9422 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
9424 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
9425 apzLynxos_No_Warning_In_Sys_Time_HMachs,
9426 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9427 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9429 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
9430 apzLynxos_Missing_PutenvMachs,
9431 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9432 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
9434 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
9435 apzMachine_Ansi_H_Va_ListMachs,
9436 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9437 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
9439 { zMachine_NameName, zMachine_NameList,
9440 apzMachine_NameMachs,
9441 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9442 aMachine_NameTests, apzMachine_NamePatch, 0 },
9444 { zMath_ExceptionName, zMath_ExceptionList,
9445 apzMath_ExceptionMachs,
9446 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9447 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
9449 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
9450 apzMath_Huge_Val_From_Dbl_MaxMachs,
9451 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9452 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9454 { zNested_Auth_DesName, zNested_Auth_DesList,
9455 apzNested_Auth_DesMachs,
9456 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9457 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
9459 { zNested_MotorolaName, zNested_MotorolaList,
9460 apzNested_MotorolaMachs,
9461 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
9462 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
9464 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
9465 apzNested_Sys_LimitsMachs,
9466 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
9467 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
9469 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
9470 apzNetbsd_C99_Inline_1Machs,
9471 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9472 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
9474 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
9475 apzNetbsd_C99_Inline_2Machs,
9476 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9477 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
9479 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
9480 apzNetbsd_Extra_SemicolonMachs,
9481 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9482 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
9484 { zNext_Math_PrefixName, zNext_Math_PrefixList,
9485 apzNext_Math_PrefixMachs,
9486 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9487 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
9489 { zNext_TemplateName, zNext_TemplateList,
9490 apzNext_TemplateMachs,
9491 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9492 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
9494 { zNext_VolitileName, zNext_VolitileList,
9495 apzNext_VolitileMachs,
9496 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9497 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
9499 { zNext_Wait_UnionName, zNext_Wait_UnionList,
9500 apzNext_Wait_UnionMachs,
9501 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9502 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
9504 { zNodeent_SyntaxName, zNodeent_SyntaxList,
9505 apzNodeent_SyntaxMachs,
9506 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9507 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
9509 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
9510 apzObstack_Lvalue_CastMachs,
9511 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9512 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
9514 { zOsf_Namespace_AName, zOsf_Namespace_AList,
9515 apzOsf_Namespace_AMachs,
9516 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9517 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
9519 { zOsf_Namespace_CName, zOsf_Namespace_CList,
9520 apzOsf_Namespace_CMachs,
9521 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9522 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
9524 { zPthread_Page_SizeName, zPthread_Page_SizeList,
9525 apzPthread_Page_SizeMachs,
9526 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9527 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
9529 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
9530 apzPthread_Incomplete_Struct_ArgumentMachs,
9531 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9532 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9534 { zRead_Ret_TypeName, zRead_Ret_TypeList,
9535 apzRead_Ret_TypeMachs,
9536 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9537 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
9539 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
9540 apzRpc_Xdr_Lvalue_Cast_AMachs,
9541 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9542 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9544 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
9545 apzRpc_Xdr_Lvalue_Cast_BMachs,
9546 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9547 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9549 { zRs6000_DoubleName, zRs6000_DoubleList,
9550 apzRs6000_DoubleMachs,
9551 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9552 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
9554 { zRs6000_FchmodName, zRs6000_FchmodList,
9555 apzRs6000_FchmodMachs,
9556 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9557 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
9559 { zRs6000_ParamName, zRs6000_ParamList,
9560 apzRs6000_ParamMachs,
9561 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9562 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
9564 { zSco_MathName, zSco_MathList,
9566 SCO_MATH_TEST_CT, FD_MACH_ONLY,
9567 aSco_MathTests, apzSco_MathPatch, 0 },
9569 { zSco_RegsetName, zSco_RegsetList,
9571 SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9572 aSco_RegsetTests, apzSco_RegsetPatch, 0 },
9574 { zSco_Static_FuncName, zSco_Static_FuncList,
9575 apzSco_Static_FuncMachs,
9576 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
9577 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
9579 { zSco_UtimeName, zSco_UtimeList,
9581 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9582 aSco_UtimeTests, apzSco_UtimePatch, 0 },
9584 { zSolaris_Math_1Name, zSolaris_Math_1List,
9585 apzSolaris_Math_1Machs,
9586 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9587 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
9589 { zSolaris_Math_2Name, zSolaris_Math_2List,
9590 apzSolaris_Math_2Machs,
9591 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9592 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
9594 { zSolaris_Math_3Name, zSolaris_Math_3List,
9595 apzSolaris_Math_3Machs,
9596 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9597 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
9599 { zSolaris_Math_4Name, zSolaris_Math_4List,
9600 apzSolaris_Math_4Machs,
9601 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9602 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
9604 { zSolaris_Math_8Name, zSolaris_Math_8List,
9605 apzSolaris_Math_8Machs,
9606 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9607 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
9609 { zSolaris_Math_9Name, zSolaris_Math_9List,
9610 apzSolaris_Math_9Machs,
9611 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9612 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
9614 { zSolaris_Math_10Name, zSolaris_Math_10List,
9615 apzSolaris_Math_10Machs,
9616 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9617 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
9619 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List,
9620 apzSolaris_Mutex_Init_1Machs,
9621 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
9622 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 },
9624 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
9625 apzSolaris_Mutex_Init_2Machs,
9626 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9627 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
9629 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
9630 apzSolaris_Rwlock_Init_1Machs,
9631 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9632 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
9634 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
9635 apzSolaris_Once_Init_1Machs,
9636 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9637 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
9639 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
9640 apzSolaris_Once_Init_2Machs,
9641 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9642 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
9644 { zSolaris_SocketName, zSolaris_SocketList,
9645 apzSolaris_SocketMachs,
9646 SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9647 aSolaris_SocketTests, apzSolaris_SocketPatch, 0 },
9649 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
9650 apzSolaris_Stdio_TagMachs,
9651 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9652 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
9654 { zSolaris_UnistdName, zSolaris_UnistdList,
9655 apzSolaris_UnistdMachs,
9656 SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9657 aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 },
9659 { zSolaris_WidecName, zSolaris_WidecList,
9660 apzSolaris_WidecMachs,
9661 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9662 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
9664 { zStatsswtchName, zStatsswtchList,
9666 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9667 aStatsswtchTests, apzStatsswtchPatch, 0 },
9669 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
9670 apzStdio_Stdarg_HMachs,
9671 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9672 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
9674 { zStdio_Va_ListName, zStdio_Va_ListList,
9675 apzStdio_Va_ListMachs,
9676 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9677 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
9679 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
9680 apzStdio_Va_List_ClientsMachs,
9681 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9682 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
9684 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
9685 apzStrict_Ansi_NotMachs,
9686 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9687 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
9689 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
9690 apzStrict_Ansi_Not_CtdMachs,
9691 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9692 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
9694 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
9695 apzStrict_Ansi_OnlyMachs,
9696 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9697 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
9699 { zStruct_FileName, zStruct_FileList,
9700 apzStruct_FileMachs,
9701 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9702 aStruct_FileTests, apzStruct_FilePatch, 0 },
9704 { zStruct_SockaddrName, zStruct_SockaddrList,
9705 apzStruct_SockaddrMachs,
9706 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9707 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
9709 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
9710 apzSun_Auth_ProtoMachs,
9711 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9712 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
9714 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
9715 apzSun_Bogus_IfdefMachs,
9716 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9717 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
9719 { zSun_CatmacroName, zSun_CatmacroList,
9720 apzSun_CatmacroMachs,
9721 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9722 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
9724 { zSun_MallocName, zSun_MallocList,
9726 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9727 aSun_MallocTests, apzSun_MallocPatch, 0 },
9729 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
9730 apzSun_Rusers_SemiMachs,
9731 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9732 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
9734 { zSun_SignalName, zSun_SignalList,
9736 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9737 aSun_SignalTests, apzSun_SignalPatch, 0 },
9739 { zSunos_StrlenName, zSunos_StrlenList,
9740 apzSunos_StrlenMachs,
9741 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9742 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
9744 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
9745 apzSvr4_Disable_OptMachs,
9746 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9747 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
9749 { zSvr4_GetcwdName, zSvr4_GetcwdList,
9750 apzSvr4_GetcwdMachs,
9751 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9752 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
9754 { zSvr4_KrnlName, zSvr4_KrnlList,
9756 SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9757 aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 },
9759 { zSvr4_ProfilName, zSvr4_ProfilList,
9760 apzSvr4_ProfilMachs,
9761 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9762 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
9764 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9765 apzSvr4_Sighandler_TypeMachs,
9766 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9767 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9769 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9770 apzSvr4_Undeclared_GetrngeMachs,
9771 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9772 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9774 { zSysv68_StringName, zSysv68_StringList,
9775 apzSysv68_StringMachs,
9776 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9777 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
9779 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
9780 apzSysz_Stdlib_For_SunMachs,
9781 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9782 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
9784 { zThread_KeywordName, zThread_KeywordList,
9785 apzThread_KeywordMachs,
9786 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9787 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9789 { zTinfo_CplusplusName, zTinfo_CplusplusList,
9790 apzTinfo_CplusplusMachs,
9791 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9792 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
9794 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
9795 apzUltrix_Atexit_ParamMachs,
9796 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9797 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
9799 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
9800 apzUltrix_Atof_ParamMachs,
9801 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9802 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
9804 { zUltrix_ConstName, zUltrix_ConstList,
9805 apzUltrix_ConstMachs,
9806 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9807 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
9809 { zUltrix_Const2Name, zUltrix_Const2List,
9810 apzUltrix_Const2Machs,
9811 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9812 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
9814 { zUltrix_Const3Name, zUltrix_Const3List,
9815 apzUltrix_Const3Machs,
9816 ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9817 aUltrix_Const3Tests, apzUltrix_Const3Patch, 0 },
9819 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
9820 apzUltrix_Fix_FixprotoMachs,
9821 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9822 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
9824 { zUltrix_IfdefName, zUltrix_IfdefList,
9825 apzUltrix_IfdefMachs,
9826 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9827 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
9829 { zUltrix_LocaleName, zUltrix_LocaleList,
9830 apzUltrix_LocaleMachs,
9831 ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9832 aUltrix_LocaleTests, apzUltrix_LocalePatch, 0 },
9834 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
9835 apzUltrix_Math_IfdefMachs,
9836 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9837 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
9839 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
9840 apzUltrix_Nested_IoctlMachs,
9841 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
9842 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
9844 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
9845 apzUltrix_Nested_SvcMachs,
9846 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
9847 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
9849 { zUltrix_StatName, zUltrix_StatList,
9850 apzUltrix_StatMachs,
9851 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
9852 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
9854 { zUltrix_StaticName, zUltrix_StaticList,
9855 apzUltrix_StaticMachs,
9856 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
9857 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
9859 { zUltrix_StdlibName, zUltrix_StdlibList,
9860 apzUltrix_StdlibMachs,
9861 ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
9862 aUltrix_StdlibTests, apzUltrix_StdlibPatch, 0 },
9864 { zUltrix_StringsName, zUltrix_StringsList,
9865 apzUltrix_StringsMachs,
9866 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9867 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
9869 { zUltrix_Strings2Name, zUltrix_Strings2List,
9870 apzUltrix_Strings2Machs,
9871 ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
9872 aUltrix_Strings2Tests, apzUltrix_Strings2Patch, 0 },
9874 { zUltrix_Sys_TimeName, zUltrix_Sys_TimeList,
9875 apzUltrix_Sys_TimeMachs,
9876 ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
9877 aUltrix_Sys_TimeTests, apzUltrix_Sys_TimePatch, 0 },
9879 { zUltrix_UnistdName, zUltrix_UnistdList,
9880 apzUltrix_UnistdMachs,
9881 ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
9882 aUltrix_UnistdTests, apzUltrix_UnistdPatch, 0 },
9884 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
9885 apzUnicosmk_RestrictMachs,
9886 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9887 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
9889 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
9890 apzUw7_Byteorder_FixMachs,
9891 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9892 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
9894 { zVa_I960_MacroName, zVa_I960_MacroList,
9895 apzVa_I960_MacroMachs,
9896 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9897 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
9899 { zVoid_NullName, zVoid_NullList,
9901 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9902 aVoid_NullTests, apzVoid_NullPatch, 0 },
9904 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
9905 apzVxworks_Gcc_ProblemMachs,
9906 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9907 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
9909 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
9910 apzVxworks_Needs_VxtypesMachs,
9911 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9912 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
9914 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
9915 apzVxworks_Needs_VxworksMachs,
9916 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9917 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
9919 { zVxworks_TimeName, zVxworks_TimeList,
9920 apzVxworks_TimeMachs,
9921 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9922 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
9924 { zWindiss_Math1Name, zWindiss_Math1List,
9925 apzWindiss_Math1Machs,
9926 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
9927 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
9929 { zWindiss_Math2Name, zWindiss_Math2List,
9930 apzWindiss_Math2Machs,
9931 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
9932 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
9934 { zWindiss_ValistName, zWindiss_ValistList,
9935 apzWindiss_ValistMachs,
9936 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
9937 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
9939 { zX11_ClassName, zX11_ClassList,
9941 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9942 aX11_ClassTests, apzX11_ClassPatch, 0 },
9944 { zX11_Class_UsageName, zX11_Class_UsageList,
9945 apzX11_Class_UsageMachs,
9946 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9947 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
9949 { zX11_NewName, zX11_NewList,
9951 X11_NEW_TEST_CT, FD_MACH_ONLY,
9952 aX11_NewTests, apzX11_NewPatch, 0 },
9954 { zX11_SprintfName, zX11_SprintfList,
9955 apzX11_SprintfMachs,
9956 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9957 aX11_SprintfTests, apzX11_SprintfPatch, 0 }