1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Monday October 8, 2007 at 12:36:37 PM PDT
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Mon Oct 8 12:36:37 PDT 2007
11 * You must regenerate it. Use the ./genfixes script.
14 * This is part of the fixincl program used to install modified versions of
15 * certain ANSI-incompatible system header files which are fixed to work
16 * correctly with ANSI C and placed in a directory that GNU C will search.
18 * This file contains 209 fixup descriptions.
20 * See README for more information.
22 * inclhack copyright (c) 1998, 1999, 2000, 2001
23 * The Free Software Foundation, Inc.
25 * inclhack is free software.
27 * You may redistribute it and/or modify it under the terms of the
28 * GNU General Public License, as published by the Free Software
29 * Foundation; either version 2, or (at your option) any later version.
31 * inclhack is distributed in the hope that it will be useful,
32 * but WITHOUT ANY WARRANTY; without even the implied warranty of
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34 * See the GNU General Public License for more details.
36 * You should have received a copy of the GNU General Public License
37 * along with inclhack. See the file "COPYING". If not,
38 * write to: The Free Software Foundation, Inc.,
39 * 59 Temple Place - Suite 330,
40 * Boston, MA 02111-1307, USA.
43 /* * * * * * * * * * * * * * * * * * * * * * * * * *
45 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
47 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
48 "AAB_darwin7_9_long_double_funcs";
51 * File name selection pattern
53 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
54 "architecture/ppc/math.h\0";
56 * Machine/OS name selection pattern
58 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
63 * content bypass pattern - skip fix if pattern found
65 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
68 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
69 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
70 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
73 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
75 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
76 "/* This file prototypes the long double functions available on Mac OS\n\
79 # undef __APPLE_CC__\n\
80 # define __APPLE_CC__ 1345\n\
81 # include_next <architecture/ppc/math.h>\n\
82 # undef __APPLE_CC__\n\
83 # define __APPLE_CC__ 1\n\
84 # ifndef __LIBMLDBL_COMPAT\n\
85 # ifdef __LONG_DOUBLE_128__\n\
86 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
88 # define __LIBMLDBL_COMPAT(sym)\n\
89 # endif /* __LONG_DOUBLE_128__ */\n\
90 # endif /* __LIBMLDBL_COMPAT */\n\
91 # ifdef __cplusplus\n\
94 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
95 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
96 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
97 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
98 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
99 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
100 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
101 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
102 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
103 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
104 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
105 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
106 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
107 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
108 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
109 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
110 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
111 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
112 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
113 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
114 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
115 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
116 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
117 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
118 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
119 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
120 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
121 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
122 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
123 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
124 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
125 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
126 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
127 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
128 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
129 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
130 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
131 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
132 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
133 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
134 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
135 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
136 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
137 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
138 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
139 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
140 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
141 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
142 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
143 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
144 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
145 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
146 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
147 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
148 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
149 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
150 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
151 # ifdef __cplusplus\n\
154 #endif /* __MATH__ */",
157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
159 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
161 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
162 "AAB_darwin7_9_long_double_funcs_2";
165 * File name selection pattern
167 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
170 * Machine/OS name selection pattern
172 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
177 * content selection pattern - do fix if pattern found
179 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
180 "#include[ \\t]+\\\"";
182 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
183 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
184 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
187 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
189 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
192 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
195 /* * * * * * * * * * * * * * * * * * * * * * * * * *
197 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
199 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
200 "AAB_fd_zero_asm_posix_types_h";
203 * File name selection pattern
205 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
206 "asm/posix_types.h\0";
208 * Machine/OS name selection pattern
210 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
211 "i[34567]86-*-linux*",
215 * content bypass pattern - skip fix if pattern found
217 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
219 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
222 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 2
223 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
224 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
225 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL }, };
228 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
230 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
231 "/* This file fixes a bug in the __FD_ZERO macro\n\
232 for older versions of the Linux kernel. */\n\
233 #ifndef _POSIX_TYPES_H_WRAPPER\n\
234 #include <features.h>\n\
235 #include_next <asm/posix_types.h>\n\n\
236 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
238 #define __FD_ZERO(fdsetp) \\\n\
240 int __d0, __d1; \\\n\
241 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
242 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
243 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
244 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
247 #define _POSIX_TYPES_H_WRAPPER\n\
248 #endif /* _POSIX_TYPES_H_WRAPPER */",
251 /* * * * * * * * * * * * * * * * * * * * * * * * * *
253 * Description of Aab_Fd_Zero_Gnu_Types_H fix
255 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
256 "AAB_fd_zero_gnu_types_h";
259 * File name selection pattern
261 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
264 * Machine/OS name selection pattern
266 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
267 "i[34567]86-*-linux*",
269 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
270 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
273 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
275 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
276 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
277 #ifndef _TYPES_H_WRAPPER\n\
278 #include <features.h>\n\
279 #include_next <gnu/types.h>\n\n\
280 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
282 # define __FD_ZERO(fdsetp) \\\n\
284 int __d0, __d1; \\\n\
285 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
286 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
287 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
288 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
291 #define _TYPES_H_WRAPPER\n\
292 #endif /* _TYPES_H_WRAPPER */",
295 /* * * * * * * * * * * * * * * * * * * * * * * * * *
297 * Description of Aab_Fd_Zero_Selectbits_H fix
299 tSCC zAab_Fd_Zero_Selectbits_HName[] =
300 "AAB_fd_zero_selectbits_h";
303 * File name selection pattern
305 tSCC zAab_Fd_Zero_Selectbits_HList[] =
308 * Machine/OS name selection pattern
310 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
311 "i[34567]86-*-linux*",
313 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
314 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
317 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
319 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
320 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
321 #ifndef _SELECTBITS_H_WRAPPER\n\
322 #include <features.h>\n\
323 #include_next <selectbits.h>\n\n\
324 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
325 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
326 && __GLIBC_MINOR__ == 0\n\
328 #define __FD_ZERO(fdsetp) \\\\\n\
330 int __d0, __d1; \\\\\n\
331 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
332 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
333 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
334 / sizeof (__fd_mask)), \\\\\n\
335 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
336 : \"memory\"); \\\\\n\
339 #define _SELECTBITS_H_WRAPPER\n\
340 #endif /* _SELECTBITS_H_WRAPPER */",
343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
345 * Description of Aab_Solaris_Sys_Varargs_H fix
347 tSCC zAab_Solaris_Sys_Varargs_HName[] =
348 "AAB_solaris_sys_varargs_h";
351 * File name selection pattern
353 tSCC zAab_Solaris_Sys_Varargs_HList[] =
356 * Machine/OS name selection pattern
358 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
361 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
362 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
365 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
367 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
369 #include <stdarg.h>\n\
371 #include <varargs.h>\n\
375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
377 * Description of Aab_Sun_Memcpy fix
379 tSCC zAab_Sun_MemcpyName[] =
383 * File name selection pattern
385 tSCC zAab_Sun_MemcpyList[] =
388 * Machine/OS name selection pattern
390 #define apzAab_Sun_MemcpyMachs (const char**)NULL
393 * content selection pattern - do fix if pattern found
395 tSCC zAab_Sun_MemcpySelect0[] =
396 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
398 #define AAB_SUN_MEMCPY_TEST_CT 1
399 static tTestDesc aAab_Sun_MemcpyTests[] = {
400 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
403 * Fix Command Arguments for Aab_Sun_Memcpy
405 static const char* apzAab_Sun_MemcpyPatch[] = {
406 "/* This file was generated by fixincludes */\n\
407 #ifndef __memory_h__\n\
408 #define __memory_h__\n\n\
410 extern void *memccpy();\n\
411 extern void *memchr();\n\
412 extern void *memcpy();\n\
413 extern void *memset();\n\
415 extern char *memccpy();\n\
416 extern char *memchr();\n\
417 extern char *memcpy();\n\
418 extern char *memset();\n\
419 #endif /* __STDC__ */\n\n\
420 extern int memcmp();\n\n\
421 #endif /* __memory_h__ */\n\
425 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
426 * stdarg.h or varargs.h files as appropriate.\n\
430 hackname = AAB_svr4_no_varargs;\n\
431 files = sys/varargs.h;\n\
432 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
433 \"#ifndef _SYS_VARARGS_H\\n\"\n\
434 \"#define _SYS_VARARGS_H\\n\\n\"\n\n\
435 \"#ifdef __STDC__\\n\"\n\
436 \"#include <stdarg.h>\\n\"\n\
438 \"#include <varargs.h>\\n\"\n\
439 \"#endif\\n\\n\"\n\n\
440 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
444 * Completely replace <sys/byteorder.h> with a file that implements gcc's\n\
445 * optimized byteswapping. (The original probably implemented some\n\
446 * incompatible optimized byteswapping.)\n\
449 hackname = AAB_svr4_replace_byteorder;\n\
450 mach = \"*-*-sysv4*\";\n\
451 mach = \"i[34567]86-*-sysv5*\";\n\
452 mach = \"i[34567]86-*-sco3.2v5*\";\n\
453 mach = \"i[34567]86-*-udk*\";\n\
454 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
455 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
456 mach = \"sparc-*-solaris2.[0-4]\";\n\
457 mach = \"i[34567]86-sequent-ptx*\";\n\
458 files = sys/byteorder.h;\n\
459 replace = <<- _EndOfHeader_\n\
460 #ifndef _SYS_BYTEORDER_H\n\
461 #define _SYS_BYTEORDER_H\n\n\
462 /* Functions to convert `short' and `long' quantities from host byte order\n\
463 to (internet) network byte order (i.e. big-endian).\n\n\
464 Written by Ron Guilmette (rfg@ncd.com).\n\n\
465 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
466 For big-endian machines these functions are essentially no-ops.\n\n\
467 For little-endian machines, we define the functions using specialized\n\
468 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
469 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
470 #error You lose! This file is only useful with GNU compilers.\n\
472 #ifndef __BYTE_ORDER__\n\
473 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
474 double underscores added at the front and back. */\n\
475 #define __LITTLE_ENDIAN__ 1234\n\
476 #define __BIG_ENDIAN__ 4321\n\
477 #define __PDP_ENDIAN__ 3412\n\
480 static __inline__ unsigned long htonl (unsigned long);\n\
481 static __inline__ unsigned short htons (unsigned int);\n\
482 static __inline__ unsigned long ntohl (unsigned long);\n\
483 static __inline__ unsigned short ntohs (unsigned int);\n\
484 #endif /* defined (__STDC__) */\n\n\
485 #if defined (__i386__)\n\n\
486 #ifndef __BYTE_ORDER__\n\
487 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
489 /* Convert a host long to a network long. */\n\n\
490 /* We must use a new-style function definition, so that this will also\n\
491 be valid for C++. */\n\
492 static __inline__ unsigned long\n\
493 htonl (unsigned long __arg)\n\
495 register unsigned long __result;\n\n\
496 __asm__ (\"xchg%B0 %b0,%h0\n\
498 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
501 /* Convert a host short to a network short. */\n\n\
502 static __inline__ unsigned short\n\
503 htons (unsigned int __arg)\n\
505 register unsigned short __result;\n\n\
506 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
509 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
510 #ifndef __BYTE_ORDER__\n\
511 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
513 /* For other little-endian machines, using C code is just as efficient as\n\
514 using assembly code. */\n\n\
515 /* Convert a host long to a network long. */\n\n\
516 static __inline__ unsigned long\n\
517 htonl (unsigned long __arg)\n\
519 register unsigned long __result;\n\n\
520 __result = (__arg >> 24) & 0x000000ff;\n\
521 __result |= (__arg >> 8) & 0x0000ff00;\n\
522 __result |= (__arg << 8) & 0x00ff0000;\n\
523 __result |= (__arg << 24) & 0xff000000;\n\
526 /* Convert a host short to a network short. */\n\n\
527 static __inline__ unsigned short\n\
528 htons (unsigned int __arg)\n\
530 register unsigned short __result;\n\n\
531 __result = (__arg << 8) & 0xff00;\n\
532 __result |= (__arg >> 8) & 0x00ff;\n\
535 #else /* must be a big-endian machine */\n\n\
536 #ifndef __BYTE_ORDER__\n\
537 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
539 /* Convert a host long to a network long. */\n\n\
540 static __inline__ unsigned long\n\
541 htonl (unsigned long __arg)\n\
545 /* Convert a host short to a network short. */\n\n\
546 static __inline__ unsigned short\n\
547 htons (unsigned int __arg)\n\
551 #endif /* big-endian */\n\n\
552 /* Convert a network long to a host long. */\n\n\
553 static __inline__ unsigned long\n\
554 ntohl (unsigned long __arg)\n\
556 return htonl (__arg);\n\
558 /* Convert a network short to a host short. */\n\n\
559 static __inline__ unsigned short\n\
560 ntohs (unsigned int __arg)\n\
562 return htons (__arg);\n\
567 /* * * * * * * * * * * * * * * * * * * * * * * * * *
569 * Description of Aab_Ultrix_Ansi_Compat fix
571 tSCC zAab_Ultrix_Ansi_CompatName[] =
572 "AAB_ultrix_ansi_compat";
575 * File name selection pattern
577 tSCC zAab_Ultrix_Ansi_CompatList[] =
580 * Machine/OS name selection pattern
582 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
585 * content selection pattern - do fix if pattern found
587 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
590 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
591 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
592 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
595 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
597 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
598 "/* This file intentionally left blank. */\n",
601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
603 * Description of Aab_Ultrix_Limits fix
605 tSCC zAab_Ultrix_LimitsName[] =
609 * File name selection pattern
611 tSCC zAab_Ultrix_LimitsList[] =
614 * Machine/OS name selection pattern
616 tSCC* apzAab_Ultrix_LimitsMachs[] = {
619 #define AAB_ULTRIX_LIMITS_TEST_CT 0
620 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
623 * Fix Command Arguments for Aab_Ultrix_Limits
625 static const char* apzAab_Ultrix_LimitsPatch[] = {
626 "#ifndef _LIMITS_INCLUDED\n\
627 #define _LIMITS_INCLUDED\n\
628 #include <sys/limits.h>\n\
629 #endif /* _LIMITS_INCLUDED */",
632 /* * * * * * * * * * * * * * * * * * * * * * * * * *
634 * Description of Aab_Ultrix_Memory fix
636 tSCC zAab_Ultrix_MemoryName[] =
640 * File name selection pattern
642 tSCC zAab_Ultrix_MemoryList[] =
645 * Machine/OS name selection pattern
647 tSCC* apzAab_Ultrix_MemoryMachs[] = {
650 #define AAB_ULTRIX_MEMORY_TEST_CT 0
651 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
654 * Fix Command Arguments for Aab_Ultrix_Memory
656 static const char* apzAab_Ultrix_MemoryPatch[] = {
657 "#ifndef _MEMORY_INCLUDED\n\
658 #define _MEMORY_INCLUDED\n\
659 #include <strings.h>\n\
660 #endif /* _MEMORY_INCLUDED */",
663 /* * * * * * * * * * * * * * * * * * * * * * * * * *
665 * Description of Aab_Ultrix_String fix
667 tSCC zAab_Ultrix_StringName[] =
671 * File name selection pattern
673 tSCC zAab_Ultrix_StringList[] =
676 * Machine/OS name selection pattern
678 tSCC* apzAab_Ultrix_StringMachs[] = {
681 #define AAB_ULTRIX_STRING_TEST_CT 0
682 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
685 * Fix Command Arguments for Aab_Ultrix_String
687 static const char* apzAab_Ultrix_StringPatch[] = {
688 "#ifndef _STRING_INCLUDED\n\
689 #define _STRING_INCLUDED\n\
690 #include <strings.h>\n\
691 #endif /* _STRING_INCLUDED */",
694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
696 * Description of Aix_Pthread fix
698 tSCC zAix_PthreadName[] =
702 * File name selection pattern
704 tSCC zAix_PthreadList[] =
707 * Machine/OS name selection pattern
709 #define apzAix_PthreadMachs (const char**)NULL
712 * content selection pattern - do fix if pattern found
714 tSCC zAix_PthreadSelect0[] =
715 "(#define [A-Za-z_0-9]+)(\\\\\n\
719 #define AIX_PTHREAD_TEST_CT 1
720 static tTestDesc aAix_PthreadTests[] = {
721 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
724 * Fix Command Arguments for Aix_Pthread
726 static const char* apzAix_PthreadPatch[] = {
731 /* * * * * * * * * * * * * * * * * * * * * * * * * *
733 * Description of Aix_Sysmachine fix
735 tSCC zAix_SysmachineName[] =
739 * File name selection pattern
741 tSCC zAix_SysmachineList[] =
744 * Machine/OS name selection pattern
746 #define apzAix_SysmachineMachs (const char**)NULL
749 * content selection pattern - do fix if pattern found
751 tSCC zAix_SysmachineSelect0[] =
754 #define AIX_SYSMACHINE_TEST_CT 1
755 static tTestDesc aAix_SysmachineTests[] = {
756 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
759 * Fix Command Arguments for Aix_Sysmachine
761 static const char* apzAix_SysmachinePatch[] = {
766 /* * * * * * * * * * * * * * * * * * * * * * * * * *
768 * Description of Aix_Syswait fix
770 tSCC zAix_SyswaitName[] =
774 * File name selection pattern
776 tSCC zAix_SyswaitList[] =
779 * Machine/OS name selection pattern
781 #define apzAix_SyswaitMachs (const char**)NULL
784 * content selection pattern - do fix if pattern found
786 tSCC zAix_SyswaitSelect0[] =
787 "^extern pid_t wait3\\(\\);\n";
788 tSCC zAix_SyswaitSelect1[] =
791 #define AIX_SYSWAIT_TEST_CT 2
792 static tTestDesc aAix_SyswaitTests[] = {
793 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
794 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
797 * Fix Command Arguments for Aix_Syswait
799 static const char* apzAix_SyswaitPatch[] = {
805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
807 * Description of Aix_Syswait_2 fix
809 tSCC zAix_Syswait_2Name[] =
813 * File name selection pattern
815 tSCC zAix_Syswait_2List[] =
818 * Machine/OS name selection pattern
820 #define apzAix_Syswait_2Machs (const char**)NULL
823 * content selection pattern - do fix if pattern found
825 tSCC zAix_Syswait_2Select0[] =
826 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
828 #define AIX_SYSWAIT_2_TEST_CT 1
829 static tTestDesc aAix_Syswait_2Tests[] = {
830 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
833 * Fix Command Arguments for Aix_Syswait_2
835 static const char* apzAix_Syswait_2Patch[] = {
840 /* * * * * * * * * * * * * * * * * * * * * * * * * *
842 * Description of Aix_Volatile fix
844 tSCC zAix_VolatileName[] =
848 * File name selection pattern
850 tSCC zAix_VolatileList[] =
853 * Machine/OS name selection pattern
855 #define apzAix_VolatileMachs (const char**)NULL
858 * content selection pattern - do fix if pattern found
860 tSCC zAix_VolatileSelect0[] =
861 "typedef volatile int sig_atomic_t";
863 #define AIX_VOLATILE_TEST_CT 1
864 static tTestDesc aAix_VolatileTests[] = {
865 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
868 * Fix Command Arguments for Aix_Volatile
870 static const char* apzAix_VolatilePatch[] = {
872 "typedef int sig_atomic_t",
875 /* * * * * * * * * * * * * * * * * * * * * * * * * *
877 * Description of Alpha___Assert fix
879 tSCC zAlpha___AssertName[] =
883 * File name selection pattern
885 tSCC zAlpha___AssertList[] =
888 * Machine/OS name selection pattern
890 #define apzAlpha___AssertMachs (const char**)NULL
893 * content selection pattern - do fix if pattern found
895 tSCC zAlpha___AssertSelect0[] =
896 "__assert\\(char \\*, char \\*, int\\)";
898 #define ALPHA___ASSERT_TEST_CT 1
899 static tTestDesc aAlpha___AssertTests[] = {
900 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
903 * Fix Command Arguments for Alpha___Assert
905 static const char* apzAlpha___AssertPatch[] = {
907 "__assert(const char *, const char *, int)",
910 /* * * * * * * * * * * * * * * * * * * * * * * * * *
912 * Description of Alpha___Extern_Prefix fix
914 tSCC zAlpha___Extern_PrefixName[] =
915 "alpha___extern_prefix";
918 * File name selection pattern
920 #define zAlpha___Extern_PrefixList (char*)NULL
922 * Machine/OS name selection pattern
924 tSCC* apzAlpha___Extern_PrefixMachs[] = {
929 * content selection pattern - do fix if pattern found
931 tSCC zAlpha___Extern_PrefixSelect0[] =
932 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
933 (#[ \t]*pragma[ \t]*extern_prefix.*)";
935 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
936 static tTestDesc aAlpha___Extern_PrefixTests[] = {
937 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
940 * Fix Command Arguments for Alpha___Extern_Prefix
942 static const char* apzAlpha___Extern_PrefixPatch[] = {
944 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
948 /* * * * * * * * * * * * * * * * * * * * * * * * * *
950 * Description of Alpha___Extern_Prefix_Standards fix
952 tSCC zAlpha___Extern_Prefix_StandardsName[] =
953 "alpha___extern_prefix_standards";
956 * File name selection pattern
958 tSCC zAlpha___Extern_Prefix_StandardsList[] =
961 * Machine/OS name selection pattern
963 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
968 * content selection pattern - do fix if pattern found
970 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
971 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
973 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
974 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
975 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
978 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
980 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
982 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
985 /* * * * * * * * * * * * * * * * * * * * * * * * * *
987 * Description of Alpha___Extern_Prefix_Sys_Stat fix
989 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
990 "alpha___extern_prefix_sys_stat";
993 * File name selection pattern
995 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
996 "sys/stat.h\0sys/mount.h\0";
998 * Machine/OS name selection pattern
1000 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
1002 (const char*)NULL };
1005 * content selection pattern - do fix if pattern found
1007 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1008 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1010 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
1011 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1012 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1015 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1017 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1019 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1022 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1024 * Description of Alpha_Assert fix
1026 tSCC zAlpha_AssertName[] =
1030 * File name selection pattern
1032 tSCC zAlpha_AssertList[] =
1035 * Machine/OS name selection pattern
1037 #define apzAlpha_AssertMachs (const char**)NULL
1040 * content selection pattern - do fix if pattern found
1042 tSCC zAlpha_AssertSelect0[] =
1043 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1045 #define ALPHA_ASSERT_TEST_CT 1
1046 static tTestDesc aAlpha_AssertTests[] = {
1047 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1050 * Fix Command Arguments for Alpha_Assert
1052 static const char* apzAlpha_AssertPatch[] = {
1057 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1059 * Description of Alpha_Bad_Lval fix
1061 tSCC zAlpha_Bad_LvalName[] =
1065 * File name selection pattern
1067 #define zAlpha_Bad_LvalList (char*)NULL
1069 * Machine/OS name selection pattern
1071 tSCC* apzAlpha_Bad_LvalMachs[] = {
1073 (const char*)NULL };
1076 * content selection pattern - do fix if pattern found
1078 tSCC zAlpha_Bad_LvalSelect0[] =
1079 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1081 #define ALPHA_BAD_LVAL_TEST_CT 1
1082 static tTestDesc aAlpha_Bad_LvalTests[] = {
1083 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1086 * Fix Command Arguments for Alpha_Bad_Lval
1088 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
1089 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1092 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1094 * Description of Alpha_Getopt fix
1096 tSCC zAlpha_GetoptName[] =
1100 * File name selection pattern
1102 tSCC zAlpha_GetoptList[] =
1103 "stdio.h\0stdlib.h\0";
1105 * Machine/OS name selection pattern
1107 #define apzAlpha_GetoptMachs (const char**)NULL
1110 * content selection pattern - do fix if pattern found
1112 tSCC zAlpha_GetoptSelect0[] =
1113 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1115 #define ALPHA_GETOPT_TEST_CT 1
1116 static tTestDesc aAlpha_GetoptTests[] = {
1117 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1120 * Fix Command Arguments for Alpha_Getopt
1122 static const char* apzAlpha_GetoptPatch[] = {
1124 "getopt(int, char *const[], const char *)",
1127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1129 * Description of Alpha_Parens fix
1131 tSCC zAlpha_ParensName[] =
1135 * File name selection pattern
1137 tSCC zAlpha_ParensList[] =
1140 * Machine/OS name selection pattern
1142 #define apzAlpha_ParensMachs (const char**)NULL
1145 * content selection pattern - do fix if pattern found
1147 tSCC zAlpha_ParensSelect0[] =
1148 "#ifndef\\(__mips64\\)";
1150 #define ALPHA_PARENS_TEST_CT 1
1151 static tTestDesc aAlpha_ParensTests[] = {
1152 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1155 * Fix Command Arguments for Alpha_Parens
1157 static const char* apzAlpha_ParensPatch[] = {
1162 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1164 * Description of Alpha_Pthread fix
1166 tSCC zAlpha_PthreadName[] =
1170 * File name selection pattern
1172 tSCC zAlpha_PthreadList[] =
1175 * Machine/OS name selection pattern
1177 tSCC* apzAlpha_PthreadMachs[] = {
1179 (const char*)NULL };
1182 * content selection pattern - do fix if pattern found
1184 tSCC zAlpha_PthreadSelect0[] =
1185 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1186 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1188 #define ALPHA_PTHREAD_TEST_CT 1
1189 static tTestDesc aAlpha_PthreadTests[] = {
1190 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1193 * Fix Command Arguments for Alpha_Pthread
1195 static const char* apzAlpha_PthreadPatch[] = {
1197 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1201 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1203 * Description of Alpha_Pthread_Gcc fix
1205 tSCC zAlpha_Pthread_GccName[] =
1206 "alpha_pthread_gcc";
1209 * File name selection pattern
1211 tSCC zAlpha_Pthread_GccList[] =
1214 * Machine/OS name selection pattern
1216 tSCC* apzAlpha_Pthread_GccMachs[] = {
1218 (const char*)NULL };
1221 * content selection pattern - do fix if pattern found
1223 tSCC zAlpha_Pthread_GccSelect0[] =
1225 # error <pthread.h>: unrecognized compiler.";
1227 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1228 static tTestDesc aAlpha_Pthread_GccTests[] = {
1229 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1232 * Fix Command Arguments for Alpha_Pthread_Gcc
1234 static const char* apzAlpha_Pthread_GccPatch[] = {
1236 "#elif defined (__GNUC__)\n\
1237 # define _PTHREAD_ENV_GCC\n\
1241 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1243 * Description of Alpha_Pthread_Init fix
1245 tSCC zAlpha_Pthread_InitName[] =
1246 "alpha_pthread_init";
1249 * File name selection pattern
1251 tSCC zAlpha_Pthread_InitList[] =
1254 * Machine/OS name selection pattern
1256 tSCC* apzAlpha_Pthread_InitMachs[] = {
1258 (const char*)NULL };
1261 * content selection pattern - do fix if pattern found
1263 tSCC zAlpha_Pthread_InitSelect0[] =
1264 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1266 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1267 static tTestDesc aAlpha_Pthread_InitTests[] = {
1268 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1271 * Fix Command Arguments for Alpha_Pthread_Init
1273 static const char* apzAlpha_Pthread_InitPatch[] = { "sed",
1274 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1275 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1276 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1277 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1278 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1279 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1282 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1284 * Description of Alpha_Sbrk fix
1286 tSCC zAlpha_SbrkName[] =
1290 * File name selection pattern
1292 tSCC zAlpha_SbrkList[] =
1295 * Machine/OS name selection pattern
1297 #define apzAlpha_SbrkMachs (const char**)NULL
1300 * content selection pattern - do fix if pattern found
1302 tSCC zAlpha_SbrkSelect0[] =
1303 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1305 #define ALPHA_SBRK_TEST_CT 1
1306 static tTestDesc aAlpha_SbrkTests[] = {
1307 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1310 * Fix Command Arguments for Alpha_Sbrk
1312 static const char* apzAlpha_SbrkPatch[] = {
1317 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1319 * Description of Alpha_Wchar fix
1321 tSCC zAlpha_WcharName[] =
1325 * File name selection pattern
1327 tSCC zAlpha_WcharList[] =
1330 * Machine/OS name selection pattern
1332 tSCC* apzAlpha_WcharMachs[] = {
1334 (const char*)NULL };
1337 * content selection pattern - do fix if pattern found
1339 tSCC zAlpha_WcharSelect0[] =
1340 "#define wcstok wcstok_r";
1342 #define ALPHA_WCHAR_TEST_CT 1
1343 static tTestDesc aAlpha_WcharTests[] = {
1344 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1347 * Fix Command Arguments for Alpha_Wchar
1349 static const char* apzAlpha_WcharPatch[] = { "sed",
1350 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1351 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1356 * Description of Avoid_Bool_Define fix
1358 tSCC zAvoid_Bool_DefineName[] =
1359 "avoid_bool_define";
1362 * File name selection pattern
1364 tSCC zAvoid_Bool_DefineList[] =
1365 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1367 * Machine/OS name selection pattern
1369 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1372 * content selection pattern - do fix if pattern found
1374 tSCC zAvoid_Bool_DefineSelect0[] =
1375 "#[ \t]*define[ \t]+bool[ \t]";
1378 * content bypass pattern - skip fix if pattern found
1380 tSCC zAvoid_Bool_DefineBypass0[] =
1383 #define AVOID_BOOL_DEFINE_TEST_CT 2
1384 static tTestDesc aAvoid_Bool_DefineTests[] = {
1385 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1386 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1389 * Fix Command Arguments for Avoid_Bool_Define
1391 static const char* apzAvoid_Bool_DefinePatch[] = {
1393 "#ifndef __cplusplus\n\
1396 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1399 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1401 * Description of Avoid_Bool_Type fix
1403 tSCC zAvoid_Bool_TypeName[] =
1407 * File name selection pattern
1409 tSCC zAvoid_Bool_TypeList[] =
1410 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1412 * Machine/OS name selection pattern
1414 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1417 * content selection pattern - do fix if pattern found
1419 tSCC zAvoid_Bool_TypeSelect0[] =
1420 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1423 * content bypass pattern - skip fix if pattern found
1425 tSCC zAvoid_Bool_TypeBypass0[] =
1428 #define AVOID_BOOL_TYPE_TEST_CT 2
1429 static tTestDesc aAvoid_Bool_TypeTests[] = {
1430 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1431 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1434 * Fix Command Arguments for Avoid_Bool_Type
1436 static const char* apzAvoid_Bool_TypePatch[] = {
1438 "#ifndef __cplusplus\n\
1443 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1445 * Description of Avoid_Wchar_T_Type fix
1447 tSCC zAvoid_Wchar_T_TypeName[] =
1448 "avoid_wchar_t_type";
1451 * File name selection pattern
1453 #define zAvoid_Wchar_T_TypeList (char*)NULL
1455 * Machine/OS name selection pattern
1457 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1460 * content selection pattern - do fix if pattern found
1462 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1463 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1466 * content bypass pattern - skip fix if pattern found
1468 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1470 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1472 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1473 "XFree86: xc/lib/X11/Xlib\\.h";
1475 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1476 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1477 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1478 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1479 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1480 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1483 * Fix Command Arguments for Avoid_Wchar_T_Type
1485 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1487 "#ifndef __cplusplus\n\
1492 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1494 * Description of Bad_Struct_Term fix
1496 tSCC zBad_Struct_TermName[] =
1500 * File name selection pattern
1502 tSCC zBad_Struct_TermList[] =
1505 * Machine/OS name selection pattern
1507 #define apzBad_Struct_TermMachs (const char**)NULL
1510 * content selection pattern - do fix if pattern found
1512 tSCC zBad_Struct_TermSelect0[] =
1513 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1515 #define BAD_STRUCT_TERM_TEST_CT 1
1516 static tTestDesc aBad_Struct_TermTests[] = {
1517 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1520 * Fix Command Arguments for Bad_Struct_Term
1522 static const char* apzBad_Struct_TermPatch[] = {
1527 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1529 * Description of Badquote fix
1531 tSCC zBadquoteName[] =
1535 * File name selection pattern
1537 tSCC zBadquoteList[] =
1538 "sundev/vuid_event.h\0";
1540 * Machine/OS name selection pattern
1542 #define apzBadquoteMachs (const char**)NULL
1545 * content selection pattern - do fix if pattern found
1547 tSCC zBadquoteSelect0[] =
1550 #define BADQUOTE_TEST_CT 1
1551 static tTestDesc aBadquoteTests[] = {
1552 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1555 * Fix Command Arguments for Badquote
1557 static const char* apzBadquotePatch[] = {
1562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1564 * Description of Broken_Assert_Stdio fix
1566 tSCC zBroken_Assert_StdioName[] =
1567 "broken_assert_stdio";
1570 * File name selection pattern
1572 tSCC zBroken_Assert_StdioList[] =
1575 * Machine/OS name selection pattern
1577 #define apzBroken_Assert_StdioMachs (const char**)NULL
1580 * content selection pattern - do fix if pattern found
1582 tSCC zBroken_Assert_StdioSelect0[] =
1586 * content bypass pattern - skip fix if pattern found
1588 tSCC zBroken_Assert_StdioBypass0[] =
1589 "include.*stdio\\.h";
1591 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1592 static tTestDesc aBroken_Assert_StdioTests[] = {
1593 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1594 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1597 * Fix Command Arguments for Broken_Assert_Stdio
1599 static const char* apzBroken_Assert_StdioPatch[] = {
1601 "#include <stdio.h>\n",
1604 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1606 * Description of Broken_Assert_Stdlib fix
1608 tSCC zBroken_Assert_StdlibName[] =
1609 "broken_assert_stdlib";
1612 * File name selection pattern
1614 tSCC zBroken_Assert_StdlibList[] =
1617 * Machine/OS name selection pattern
1619 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1622 * content selection pattern - do fix if pattern found
1624 tSCC zBroken_Assert_StdlibSelect0[] =
1625 "exit *\\(|abort *\\(";
1628 * content bypass pattern - skip fix if pattern found
1630 tSCC zBroken_Assert_StdlibBypass0[] =
1631 "include.*stdlib\\.h";
1633 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1634 static tTestDesc aBroken_Assert_StdlibTests[] = {
1635 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1636 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1639 * Fix Command Arguments for Broken_Assert_Stdlib
1641 static const char* apzBroken_Assert_StdlibPatch[] = {
1643 "#ifdef __cplusplus\n\
1644 #include <stdlib.h>\n\
1648 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1650 * Description of Broken_Cabs fix
1652 tSCC zBroken_CabsName[] =
1656 * File name selection pattern
1658 tSCC zBroken_CabsList[] =
1659 "math.h\0architecture/*/math.h\0";
1661 * Machine/OS name selection pattern
1663 #define apzBroken_CabsMachs (const char**)NULL
1666 * content selection pattern - do fix if pattern found
1668 tSCC zBroken_CabsSelect0[] =
1669 "^extern[ \t]+double[ \t]+cabs";
1671 #define BROKEN_CABS_TEST_CT 1
1672 static tTestDesc aBroken_CabsTests[] = {
1673 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1676 * Fix Command Arguments for Broken_Cabs
1678 static const char* apzBroken_CabsPatch[] = { "sed",
1679 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1680 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1683 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1685 * Description of Broken_Nan fix
1687 tSCC zBroken_NanName[] =
1691 * File name selection pattern
1693 tSCC zBroken_NanList[] =
1694 "architecture/ppc/math.h\0architecture/*/math.h\0";
1696 * Machine/OS name selection pattern
1698 #define apzBroken_NanMachs (const char**)NULL
1701 * content selection pattern - do fix if pattern found
1703 tSCC zBroken_NanSelect0[] =
1704 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1707 * content bypass pattern - skip fix if pattern found
1709 tSCC zBroken_NanBypass0[] =
1712 #define BROKEN_NAN_TEST_CT 2
1713 static tTestDesc aBroken_NanTests[] = {
1714 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1715 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1718 * Fix Command Arguments for Broken_Nan
1720 static const char* apzBroken_NanPatch[] = {
1725 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1727 * Description of Bsd_Stdio_Attrs_Conflict fix
1729 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1730 "bsd_stdio_attrs_conflict";
1733 * File name selection pattern
1735 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1738 * Machine/OS name selection pattern
1740 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1743 (const char*)NULL };
1746 * content selection pattern - do fix if pattern found
1748 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1749 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1751 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1752 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1753 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1756 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1758 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1760 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1761 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1762 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1765 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1767 * Description of Ctrl_Quotes_Def fix
1769 tSCC zCtrl_Quotes_DefName[] =
1773 * File name selection pattern
1775 #define zCtrl_Quotes_DefList (char*)NULL
1777 * Machine/OS name selection pattern
1779 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1782 * content selection pattern - do fix if pattern found
1784 tSCC zCtrl_Quotes_DefSelect0[] =
1785 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1787 #define CTRL_QUOTES_DEF_TEST_CT 1
1788 static tTestDesc aCtrl_Quotes_DefTests[] = {
1789 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1792 * Fix Command Arguments for Ctrl_Quotes_Def
1794 static const char* apzCtrl_Quotes_DefPatch[] = {
1799 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1801 * Description of Ctrl_Quotes_Use fix
1803 tSCC zCtrl_Quotes_UseName[] =
1807 * File name selection pattern
1809 #define zCtrl_Quotes_UseList (char*)NULL
1811 * Machine/OS name selection pattern
1813 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1816 * content selection pattern - do fix if pattern found
1818 tSCC zCtrl_Quotes_UseSelect0[] =
1819 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1821 #define CTRL_QUOTES_USE_TEST_CT 1
1822 static tTestDesc aCtrl_Quotes_UseTests[] = {
1823 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1826 * Fix Command Arguments for Ctrl_Quotes_Use
1828 static const char* apzCtrl_Quotes_UsePatch[] = {
1833 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1835 * Description of Cxx_Unready fix
1837 tSCC zCxx_UnreadyName[] =
1841 * File name selection pattern
1843 tSCC zCxx_UnreadyList[] =
1844 "sys/mman.h\0rpc/types.h\0";
1846 * Machine/OS name selection pattern
1848 #define apzCxx_UnreadyMachs (const char**)NULL
1851 * content selection pattern - do fix if pattern found
1853 tSCC zCxx_UnreadySelect0[] =
1857 * content bypass pattern - skip fix if pattern found
1859 tSCC zCxx_UnreadyBypass0[] =
1860 "\"C\"|__BEGIN_DECLS";
1862 #define CXX_UNREADY_TEST_CT 2
1863 static tTestDesc aCxx_UnreadyTests[] = {
1864 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1865 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1868 * Fix Command Arguments for Cxx_Unready
1870 static const char* apzCxx_UnreadyPatch[] = {
1872 "#ifdef __cplusplus\n\
1875 "#ifdef __cplusplus\n\
1880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1882 * Description of Darwin_Externc fix
1884 tSCC zDarwin_ExterncName[] =
1888 * File name selection pattern
1890 tSCC zDarwin_ExterncList[] =
1891 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1893 * Machine/OS name selection pattern
1895 tSCC* apzDarwin_ExterncMachs[] = {
1897 (const char*)NULL };
1900 * content bypass pattern - skip fix if pattern found
1902 tSCC zDarwin_ExterncBypass0[] =
1904 tSCC zDarwin_ExterncBypass1[] =
1907 #define DARWIN_EXTERNC_TEST_CT 2
1908 static tTestDesc aDarwin_ExterncTests[] = {
1909 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1910 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1913 * Fix Command Arguments for Darwin_Externc
1915 static const char* apzDarwin_ExterncPatch[] = {
1917 "#ifdef __cplusplus\n\
1920 "#ifdef __cplusplus\n\
1925 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1927 * Description of Darwin_Gcc4_Breakage fix
1929 tSCC zDarwin_Gcc4_BreakageName[] =
1930 "darwin_gcc4_breakage";
1933 * File name selection pattern
1935 tSCC zDarwin_Gcc4_BreakageList[] =
1936 "AvailabilityMacros.h\0";
1938 * Machine/OS name selection pattern
1940 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1942 (const char*)NULL };
1945 * content selection pattern - do fix if pattern found
1947 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1948 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1950 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1951 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1952 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1955 * Fix Command Arguments for Darwin_Gcc4_Breakage
1957 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1959 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
1962 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1964 * Description of Darwin_Private_Extern fix
1966 tSCC zDarwin_Private_ExternName[] =
1967 "darwin_private_extern";
1970 * File name selection pattern
1972 tSCC zDarwin_Private_ExternList[] =
1975 * Machine/OS name selection pattern
1977 tSCC* apzDarwin_Private_ExternMachs[] = {
1979 (const char*)NULL };
1982 * content selection pattern - do fix if pattern found
1984 tSCC zDarwin_Private_ExternSelect0[] =
1985 "__private_extern__ [a-z_]+ _dyld_";
1987 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
1988 static tTestDesc aDarwin_Private_ExternTests[] = {
1989 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
1992 * Fix Command Arguments for Darwin_Private_Extern
1994 static const char* apzDarwin_Private_ExternPatch[] = {
1997 "__private_extern__",
2000 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2002 * Description of Dec_Intern_Asm fix
2004 tSCC zDec_Intern_AsmName[] =
2008 * File name selection pattern
2010 tSCC zDec_Intern_AsmList[] =
2013 * Machine/OS name selection pattern
2015 #define apzDec_Intern_AsmMachs (const char**)NULL
2016 #define DEC_INTERN_ASM_TEST_CT 0
2017 #define aDec_Intern_AsmTests (tTestDesc*)NULL
2020 * Fix Command Arguments for Dec_Intern_Asm
2022 static const char* apzDec_Intern_AsmPatch[] = { "sed",
2023 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2025 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2029 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2031 * Description of Djgpp_Wchar_H fix
2033 tSCC zDjgpp_Wchar_HName[] =
2037 * File name selection pattern
2039 #define zDjgpp_Wchar_HList (char*)NULL
2041 * Machine/OS name selection pattern
2043 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2046 * content selection pattern - do fix if pattern found
2048 tSCC zDjgpp_Wchar_HSelect0[] =
2052 * content bypass pattern - skip fix if pattern found
2054 tSCC zDjgpp_Wchar_HBypass0[] =
2057 #define DJGPP_WCHAR_H_TEST_CT 2
2058 static tTestDesc aDjgpp_Wchar_HTests[] = {
2059 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2060 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2063 * Fix Command Arguments for Djgpp_Wchar_H
2065 static const char* apzDjgpp_Wchar_HPatch[] = {
2068 #include <sys/djtypes.h>",
2069 "#include <stddef.h>",
2072 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2074 * Description of Ecd_Cursor fix
2076 tSCC zEcd_CursorName[] =
2080 * File name selection pattern
2082 tSCC zEcd_CursorList[] =
2083 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2085 * Machine/OS name selection pattern
2087 #define apzEcd_CursorMachs (const char**)NULL
2090 * content selection pattern - do fix if pattern found
2092 tSCC zEcd_CursorSelect0[] =
2095 #define ECD_CURSOR_TEST_CT 1
2096 static tTestDesc aEcd_CursorTests[] = {
2097 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2100 * Fix Command Arguments for Ecd_Cursor
2102 static const char* apzEcd_CursorPatch[] = {
2107 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2109 * Description of Exception_Structure fix
2111 tSCC zException_StructureName[] =
2112 "exception_structure";
2115 * File name selection pattern
2117 tSCC zException_StructureList[] =
2120 * Machine/OS name selection pattern
2122 #define apzException_StructureMachs (const char**)NULL
2125 * content selection pattern - do fix if pattern found
2127 tSCC zException_StructureSelect0[] =
2131 * content bypass pattern - skip fix if pattern found
2133 tSCC zException_StructureBypass0[] =
2134 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
2136 #define EXCEPTION_STRUCTURE_TEST_CT 2
2137 static tTestDesc aException_StructureTests[] = {
2138 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
2139 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
2142 * Fix Command Arguments for Exception_Structure
2144 static const char* apzException_StructurePatch[] = {
2146 "struct exception;\n",
2149 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2151 * Description of Freebsd_Gcc3_Breakage fix
2153 tSCC zFreebsd_Gcc3_BreakageName[] =
2154 "freebsd_gcc3_breakage";
2157 * File name selection pattern
2159 tSCC zFreebsd_Gcc3_BreakageList[] =
2162 * Machine/OS name selection pattern
2164 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2166 (const char*)NULL };
2169 * content selection pattern - do fix if pattern found
2171 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2172 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2175 * content bypass pattern - skip fix if pattern found
2177 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2178 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2180 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2181 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2182 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2183 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2186 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2188 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2190 "%0 || __GNUC__ >= 3",
2193 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2195 * Description of Freebsd_Gcc4_Breakage fix
2197 tSCC zFreebsd_Gcc4_BreakageName[] =
2198 "freebsd_gcc4_breakage";
2201 * File name selection pattern
2203 tSCC zFreebsd_Gcc4_BreakageList[] =
2206 * Machine/OS name selection pattern
2208 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2210 (const char*)NULL };
2213 * content selection pattern - do fix if pattern found
2215 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2216 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2218 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2219 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2220 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2223 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2225 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2227 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2230 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2232 * Description of Glibc_C99_Inline_1 fix
2234 tSCC zGlibc_C99_Inline_1Name[] =
2235 "glibc_c99_inline_1";
2238 * File name selection pattern
2240 tSCC zGlibc_C99_Inline_1List[] =
2241 "features.h\0*/features.h\0";
2243 * Machine/OS name selection pattern
2245 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2248 * content selection pattern - do fix if pattern found
2250 tSCC zGlibc_C99_Inline_1Select0[] =
2251 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2253 #define GLIBC_C99_INLINE_1_TEST_CT 1
2254 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2255 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2258 * Fix Command Arguments for Glibc_C99_Inline_1
2260 static const char* apzGlibc_C99_Inline_1Patch[] = {
2262 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2265 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2267 * Description of Glibc_C99_Inline_2 fix
2269 tSCC zGlibc_C99_Inline_2Name[] =
2270 "glibc_c99_inline_2";
2273 * File name selection pattern
2275 tSCC zGlibc_C99_Inline_2List[] =
2276 "sys/stat.h\0*/sys/stat.h\0";
2278 * Machine/OS name selection pattern
2280 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2283 * content selection pattern - do fix if pattern found
2285 tSCC zGlibc_C99_Inline_2Select0[] =
2286 "extern __inline__ int";
2288 #define GLIBC_C99_INLINE_2_TEST_CT 1
2289 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2290 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2293 * Fix Command Arguments for Glibc_C99_Inline_2
2295 static const char* apzGlibc_C99_Inline_2Patch[] = { "sed",
2296 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2299 __inline__ int \\1/",
2300 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2303 __inline__ int __REDIRECT\\1 (\\2/",
2304 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2312 * Description of Glibc_C99_Inline_3 fix
2314 tSCC zGlibc_C99_Inline_3Name[] =
2315 "glibc_c99_inline_3";
2318 * File name selection pattern
2320 tSCC zGlibc_C99_Inline_3List[] =
2321 "bits/string2.h\0*/bits/string2.h\0";
2323 * Machine/OS name selection pattern
2325 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2328 * content selection pattern - do fix if pattern found
2330 tSCC zGlibc_C99_Inline_3Select0[] =
2334 * content bypass pattern - skip fix if pattern found
2336 tSCC zGlibc_C99_Inline_3Bypass0[] =
2339 #define GLIBC_C99_INLINE_3_TEST_CT 2
2340 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2341 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2342 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2345 * Fix Command Arguments for Glibc_C99_Inline_3
2347 static const char* apzGlibc_C99_Inline_3Patch[] = {
2349 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2350 "^# ifdef __cplusplus$",
2353 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2355 * Description of Glibc_C99_Inline_4 fix
2357 tSCC zGlibc_C99_Inline_4Name[] =
2358 "glibc_c99_inline_4";
2361 * File name selection pattern
2363 tSCC zGlibc_C99_Inline_4List[] =
2364 "sys/sysmacros.h\0*/sys/sysmacros.h\0";
2366 * Machine/OS name selection pattern
2368 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2371 * content selection pattern - do fix if pattern found
2373 tSCC zGlibc_C99_Inline_4Select0[] =
2377 * content bypass pattern - skip fix if pattern found
2379 tSCC zGlibc_C99_Inline_4Bypass0[] =
2382 #define GLIBC_C99_INLINE_4_TEST_CT 2
2383 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2384 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2385 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2388 * Fix Command Arguments for Glibc_C99_Inline_4
2390 static const char* apzGlibc_C99_Inline_4Patch[] = {
2393 #ifdef __GNUC_GNU_INLINE__\n\
2399 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2401 * Description of Glibc_Mutex_Init fix
2403 tSCC zGlibc_Mutex_InitName[] =
2407 * File name selection pattern
2409 tSCC zGlibc_Mutex_InitList[] =
2412 * Machine/OS name selection pattern
2414 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2417 * content selection pattern - do fix if pattern found
2419 tSCC zGlibc_Mutex_InitSelect0[] =
2420 "\\{ *\\{ *0, *\\} *\\}";
2422 #define GLIBC_MUTEX_INIT_TEST_CT 1
2423 static tTestDesc aGlibc_Mutex_InitTests[] = {
2424 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2427 * Fix Command Arguments for Glibc_Mutex_Init
2429 static const char* apzGlibc_Mutex_InitPatch[] = { "sed",
2430 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/,+1s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/",
2431 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2432 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2433 "-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/",
2434 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2435 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2438 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2440 * Description of Gnu_Types fix
2442 tSCC zGnu_TypesName[] =
2446 * File name selection pattern
2448 tSCC zGnu_TypesList[] =
2449 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2451 * Machine/OS name selection pattern
2453 tSCC* apzGnu_TypesMachs[] = {
2454 "*-*-solaris2.1[0-9]*",
2455 (const char*)NULL };
2458 * content selection pattern - do fix if pattern found
2460 tSCC zGnu_TypesSelect0[] =
2461 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2464 * content bypass pattern - skip fix if pattern found
2466 tSCC zGnu_TypesBypass0[] =
2467 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2469 #define GNU_TYPES_TEST_CT 2
2470 static tTestDesc aGnu_TypesTests[] = {
2471 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2472 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2475 * Fix Command Arguments for Gnu_Types
2477 static const char* apzGnu_TypesPatch[] = {
2481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2483 * Description of Hp_Inline fix
2485 tSCC zHp_InlineName[] =
2489 * File name selection pattern
2491 tSCC zHp_InlineList[] =
2492 "sys/spinlock.h\0machine/machparam.h\0";
2494 * Machine/OS name selection pattern
2496 #define apzHp_InlineMachs (const char**)NULL
2499 * content selection pattern - do fix if pattern found
2501 tSCC zHp_InlineSelect0[] =
2502 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2504 #define HP_INLINE_TEST_CT 1
2505 static tTestDesc aHp_InlineTests[] = {
2506 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2509 * Fix Command Arguments for Hp_Inline
2511 static const char* apzHp_InlinePatch[] = {
2514 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2517 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2519 * Description of Hp_Sysfile fix
2521 tSCC zHp_SysfileName[] =
2525 * File name selection pattern
2527 tSCC zHp_SysfileList[] =
2530 * Machine/OS name selection pattern
2532 #define apzHp_SysfileMachs (const char**)NULL
2535 * content selection pattern - do fix if pattern found
2537 tSCC zHp_SysfileSelect0[] =
2540 #define HP_SYSFILE_TEST_CT 1
2541 static tTestDesc aHp_SysfileTests[] = {
2542 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2545 * Fix Command Arguments for Hp_Sysfile
2547 static const char* apzHp_SysfilePatch[] = {
2549 "(struct file *, ...)",
2553 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2555 * Description of Hpux10_Cpp_Pow_Inline fix
2557 tSCC zHpux10_Cpp_Pow_InlineName[] =
2558 "hpux10_cpp_pow_inline";
2561 * File name selection pattern
2563 tSCC zHpux10_Cpp_Pow_InlineList[] =
2564 "fixinc-test-limits.h\0math.h\0";
2566 * Machine/OS name selection pattern
2568 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2571 * content selection pattern - do fix if pattern found
2573 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2574 "^# +ifdef +__cplusplus\n\
2576 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2577 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2579 +extern +\"C\" +\\{\n\
2583 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2584 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2585 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2588 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2590 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2595 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2597 * Description of Hpux11_Cpp_Pow_Inline fix
2599 tSCC zHpux11_Cpp_Pow_InlineName[] =
2600 "hpux11_cpp_pow_inline";
2603 * File name selection pattern
2605 tSCC zHpux11_Cpp_Pow_InlineList[] =
2608 * Machine/OS name selection pattern
2610 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2613 * content selection pattern - do fix if pattern found
2615 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2616 " +inline double pow\\(double d,int expon\\) \\{\n\
2617 +return pow\\(d, \\(double\\)expon\\);\n\
2620 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2621 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2622 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2625 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2627 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2632 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2634 * Description of Hppa_Hpux_Fp_Macros fix
2636 tSCC zHppa_Hpux_Fp_MacrosName[] =
2637 "hppa_hpux_fp_macros";
2640 * File name selection pattern
2642 tSCC zHppa_Hpux_Fp_MacrosList[] =
2645 * Machine/OS name selection pattern
2647 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2649 (const char*)NULL };
2652 * content selection pattern - do fix if pattern found
2654 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2655 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2656 #[ \t]*define[ \t]*FP_ZERO.*\n\
2657 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2658 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2659 #[ \t]*define[ \t]*FP_NAN.*\n";
2661 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2662 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2663 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2666 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2668 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2670 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2671 #if defined(_INCLUDE_HPUX_SOURCE) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2673 #ifdef _INCLUDE_HPUX_SOURCE\n",
2676 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2678 * Description of Hpux10_Ctype_Declarations1 fix
2680 tSCC zHpux10_Ctype_Declarations1Name[] =
2681 "hpux10_ctype_declarations1";
2684 * File name selection pattern
2686 tSCC zHpux10_Ctype_Declarations1List[] =
2689 * Machine/OS name selection pattern
2691 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2694 * content selection pattern - do fix if pattern found
2696 tSCC zHpux10_Ctype_Declarations1Select0[] =
2697 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2700 * content bypass pattern - skip fix if pattern found
2702 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2703 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2705 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2706 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2707 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2708 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2711 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2713 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2715 "#ifdef _PROTOTYPES\n\
2716 extern int __tolower(int);\n\
2717 extern int __toupper(int);\n\
2718 #else /* NOT _PROTOTYPES */\n\
2719 extern int __tolower();\n\
2720 extern int __toupper();\n\
2721 #endif /* _PROTOTYPES */\n\n\
2725 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2727 * Description of Hpux10_Ctype_Declarations2 fix
2729 tSCC zHpux10_Ctype_Declarations2Name[] =
2730 "hpux10_ctype_declarations2";
2733 * File name selection pattern
2735 tSCC zHpux10_Ctype_Declarations2List[] =
2738 * Machine/OS name selection pattern
2740 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2743 * content selection pattern - do fix if pattern found
2745 tSCC zHpux10_Ctype_Declarations2Select0[] =
2746 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2749 * content bypass pattern - skip fix if pattern found
2751 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2752 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2754 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2755 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2756 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2757 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2760 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2762 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2765 #ifdef _PROTOTYPES\n\
2766 extern int _isalnum(int);\n\
2767 extern int _isalpha(int);\n\
2768 extern int _iscntrl(int);\n\
2769 extern int _isdigit(int);\n\
2770 extern int _isgraph(int);\n\
2771 extern int _islower(int);\n\
2772 extern int _isprint(int);\n\
2773 extern int _ispunct(int);\n\
2774 extern int _isspace(int);\n\
2775 extern int _isupper(int);\n\
2776 extern int _isxdigit(int);\n\
2777 # else /* not _PROTOTYPES */\n\
2778 extern int _isalnum();\n\
2779 extern int _isalpha();\n\
2780 extern int _iscntrl();\n\
2781 extern int _isdigit();\n\
2782 extern int _isgraph();\n\
2783 extern int _islower();\n\
2784 extern int _isprint();\n\
2785 extern int _ispunct();\n\
2786 extern int _isspace();\n\
2787 extern int _isupper();\n\
2788 extern int _isxdigit();\n\
2789 #endif /* _PROTOTYPES */\n",
2792 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2794 * Description of Hpux10_Stdio_Declarations fix
2796 tSCC zHpux10_Stdio_DeclarationsName[] =
2797 "hpux10_stdio_declarations";
2800 * File name selection pattern
2802 tSCC zHpux10_Stdio_DeclarationsList[] =
2805 * Machine/OS name selection pattern
2807 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2810 * content selection pattern - do fix if pattern found
2812 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2813 "^#[ \t]*define _iob[ \t]*__iob";
2816 * content bypass pattern - skip fix if pattern found
2818 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2819 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2821 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2822 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2823 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2824 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2827 * Fix Command Arguments for Hpux10_Stdio_Declarations
2829 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2832 # if defined(__STDC__) || defined(__cplusplus)\n\
2833 extern int snprintf(char *, size_t, const char *, ...);\n\
2834 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2835 # else /* not __STDC__) || __cplusplus */\n\
2836 extern int snprintf();\n\
2837 extern int vsnprintf();\n\
2838 # endif /* __STDC__) || __cplusplus */\n",
2841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2843 * Description of Hpux11_Abs fix
2845 tSCC zHpux11_AbsName[] =
2849 * File name selection pattern
2851 tSCC zHpux11_AbsList[] =
2854 * Machine/OS name selection pattern
2856 tSCC* apzHpux11_AbsMachs[] = {
2858 (const char*)NULL };
2861 * content selection pattern - do fix if pattern found
2863 tSCC zHpux11_AbsSelect0[] =
2864 "ifndef _MATH_INCLUDED";
2866 #define HPUX11_ABS_TEST_CT 1
2867 static tTestDesc aHpux11_AbsTests[] = {
2868 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2871 * Fix Command Arguments for Hpux11_Abs
2873 static const char* apzHpux11_AbsPatch[] = {
2875 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2878 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2880 * Description of Hpux11_Fabsf fix
2882 tSCC zHpux11_FabsfName[] =
2886 * File name selection pattern
2888 tSCC zHpux11_FabsfList[] =
2891 * Machine/OS name selection pattern
2893 #define apzHpux11_FabsfMachs (const char**)NULL
2896 * content selection pattern - do fix if pattern found
2898 tSCC zHpux11_FabsfSelect0[] =
2899 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2902 * content bypass pattern - skip fix if pattern found
2904 tSCC zHpux11_FabsfBypass0[] =
2907 #define HPUX11_FABSF_TEST_CT 2
2908 static tTestDesc aHpux11_FabsfTests[] = {
2909 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2910 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
2913 * Fix Command Arguments for Hpux11_Fabsf
2915 static const char* apzHpux11_FabsfPatch[] = {
2917 "#ifndef __cplusplus\n\
2922 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2924 * Description of Hpux11_Size_T fix
2926 tSCC zHpux11_Size_TName[] =
2930 * File name selection pattern
2932 #define zHpux11_Size_TList (char*)NULL
2934 * Machine/OS name selection pattern
2936 tSCC* apzHpux11_Size_TMachs[] = {
2938 (const char*)NULL };
2941 * content selection pattern - do fix if pattern found
2943 tSCC zHpux11_Size_TSelect0[] =
2946 #define HPUX11_SIZE_T_TEST_CT 1
2947 static tTestDesc aHpux11_Size_TTests[] = {
2948 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
2951 * Fix Command Arguments for Hpux11_Size_T
2953 static const char* apzHpux11_Size_TPatch[] = {
2958 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2960 * Description of Hpux11_Snprintf fix
2962 tSCC zHpux11_SnprintfName[] =
2966 * File name selection pattern
2968 tSCC zHpux11_SnprintfList[] =
2971 * Machine/OS name selection pattern
2973 #define apzHpux11_SnprintfMachs (const char**)NULL
2976 * content selection pattern - do fix if pattern found
2978 tSCC zHpux11_SnprintfSelect0[] =
2979 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
2981 #define HPUX11_SNPRINTF_TEST_CT 1
2982 static tTestDesc aHpux11_SnprintfTests[] = {
2983 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
2986 * Fix Command Arguments for Hpux11_Snprintf
2988 static const char* apzHpux11_SnprintfPatch[] = {
2993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2995 * Description of Hpux11_Uint32_C fix
2997 tSCC zHpux11_Uint32_CName[] =
3001 * File name selection pattern
3003 tSCC zHpux11_Uint32_CList[] =
3006 * Machine/OS name selection pattern
3008 #define apzHpux11_Uint32_CMachs (const char**)NULL
3011 * content selection pattern - do fix if pattern found
3013 tSCC zHpux11_Uint32_CSelect0[] =
3014 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
3016 #define HPUX11_UINT32_C_TEST_CT 1
3017 static tTestDesc aHpux11_Uint32_CTests[] = {
3018 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
3021 * Fix Command Arguments for Hpux11_Uint32_C
3023 static const char* apzHpux11_Uint32_CPatch[] = {
3025 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
3028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3030 * Description of Hpux11_Vsnprintf fix
3032 tSCC zHpux11_VsnprintfName[] =
3036 * File name selection pattern
3038 tSCC zHpux11_VsnprintfList[] =
3041 * Machine/OS name selection pattern
3043 #define apzHpux11_VsnprintfMachs (const char**)NULL
3046 * content selection pattern - do fix if pattern found
3048 tSCC zHpux11_VsnprintfSelect0[] =
3049 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3051 #define HPUX11_VSNPRINTF_TEST_CT 1
3052 static tTestDesc aHpux11_VsnprintfTests[] = {
3053 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3056 * Fix Command Arguments for Hpux11_Vsnprintf
3058 static const char* apzHpux11_VsnprintfPatch[] = {
3063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3065 * Description of Hpux8_Bogus_Inlines fix
3067 tSCC zHpux8_Bogus_InlinesName[] =
3068 "hpux8_bogus_inlines";
3071 * File name selection pattern
3073 tSCC zHpux8_Bogus_InlinesList[] =
3076 * Machine/OS name selection pattern
3078 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3081 * content selection pattern - do fix if pattern found
3083 tSCC zHpux8_Bogus_InlinesSelect0[] =
3087 * content bypass pattern - skip fix if pattern found
3089 tSCC zHpux8_Bogus_InlinesBypass0[] =
3092 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3093 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3094 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3095 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3098 * Fix Command Arguments for Hpux8_Bogus_Inlines
3100 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
3101 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3102 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3103 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3104 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3107 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3109 * Description of Hpux_Ctype_Macros fix
3111 tSCC zHpux_Ctype_MacrosName[] =
3112 "hpux_ctype_macros";
3115 * File name selection pattern
3117 tSCC zHpux_Ctype_MacrosList[] =
3120 * Machine/OS name selection pattern
3122 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3125 * content selection pattern - do fix if pattern found
3127 tSCC zHpux_Ctype_MacrosSelect0[] =
3128 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3130 #define HPUX_CTYPE_MACROS_TEST_CT 1
3131 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3132 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3135 * Fix Command Arguments for Hpux_Ctype_Macros
3137 static const char* apzHpux_Ctype_MacrosPatch[] = {
3142 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3144 * Description of Hpux_Htonl fix
3146 tSCC zHpux_HtonlName[] =
3150 * File name selection pattern
3152 tSCC zHpux_HtonlList[] =
3155 * Machine/OS name selection pattern
3157 #define apzHpux_HtonlMachs (const char**)NULL
3160 * content selection pattern - do fix if pattern found
3162 tSCC zHpux_HtonlSelect0[] =
3163 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3165 \\* Macros for number representation conversion\\.\n\
3169 #define HPUX_HTONL_TEST_CT 1
3170 static tTestDesc aHpux_HtonlTests[] = {
3171 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3174 * Fix Command Arguments for Hpux_Htonl
3176 static const char* apzHpux_HtonlPatch[] = {
3182 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3184 * Description of Hpux_Long_Double fix
3186 tSCC zHpux_Long_DoubleName[] =
3190 * File name selection pattern
3192 tSCC zHpux_Long_DoubleList[] =
3195 * Machine/OS name selection pattern
3197 #define apzHpux_Long_DoubleMachs (const char**)NULL
3200 * content selection pattern - do fix if pattern found
3202 tSCC zHpux_Long_DoubleSelect0[] =
3203 "extern[ \t]long_double[ \t]strtold";
3206 * content bypass pattern - skip fix if pattern found
3208 tSCC zHpux_Long_DoubleBypass0[] =
3211 #define HPUX_LONG_DOUBLE_TEST_CT 2
3212 static tTestDesc aHpux_Long_DoubleTests[] = {
3213 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3214 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3217 * Fix Command Arguments for Hpux_Long_Double
3219 static const char* apzHpux_Long_DoublePatch[] = { "sed",
3220 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3221 "-e", "s/long_double/long double/g",
3224 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3226 * Description of Hpux_Systime fix
3228 tSCC zHpux_SystimeName[] =
3232 * File name selection pattern
3234 tSCC zHpux_SystimeList[] =
3237 * Machine/OS name selection pattern
3239 #define apzHpux_SystimeMachs (const char**)NULL
3242 * content selection pattern - do fix if pattern found
3244 tSCC zHpux_SystimeSelect0[] =
3245 "^extern struct sigevent;";
3247 #define HPUX_SYSTIME_TEST_CT 1
3248 static tTestDesc aHpux_SystimeTests[] = {
3249 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3252 * Fix Command Arguments for Hpux_Systime
3254 static const char* apzHpux_SystimePatch[] = {
3259 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3261 * Description of Hpux_Spu_Info fix
3263 tSCC zHpux_Spu_InfoName[] =
3267 * File name selection pattern
3269 tSCC zHpux_Spu_InfoList[] =
3270 "ia64/sys/getppdp.h\0";
3272 * Machine/OS name selection pattern
3274 tSCC* apzHpux_Spu_InfoMachs[] = {
3276 (const char*)NULL };
3279 * content selection pattern - do fix if pattern found
3281 tSCC zHpux_Spu_InfoSelect0[] =
3282 "^.*extern.*spu_info.*";
3284 #define HPUX_SPU_INFO_TEST_CT 1
3285 static tTestDesc aHpux_Spu_InfoTests[] = {
3286 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3289 * Fix Command Arguments for Hpux_Spu_Info
3291 static const char* apzHpux_Spu_InfoPatch[] = {
3298 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3300 * Description of Hpux11_Extern_Sendfile fix
3302 tSCC zHpux11_Extern_SendfileName[] =
3303 "hpux11_extern_sendfile";
3306 * File name selection pattern
3308 tSCC zHpux11_Extern_SendfileList[] =
3311 * Machine/OS name selection pattern
3313 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3314 "*-hp-hpux11.[12]*",
3315 (const char*)NULL };
3318 * content selection pattern - do fix if pattern found
3320 tSCC zHpux11_Extern_SendfileSelect0[] =
3321 "^[ \t]*extern sbsize_t sendfile.*\n\
3324 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3325 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3326 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3329 * Fix Command Arguments for Hpux11_Extern_Sendfile
3331 static const char* apzHpux11_Extern_SendfilePatch[] = {
3333 "#ifndef _APP32_64BIT_OFF_T\n\
3337 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3339 * Description of Hpux11_Extern_Sendpath fix
3341 tSCC zHpux11_Extern_SendpathName[] =
3342 "hpux11_extern_sendpath";
3345 * File name selection pattern
3347 tSCC zHpux11_Extern_SendpathList[] =
3350 * Machine/OS name selection pattern
3352 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3353 "*-hp-hpux11.[12]*",
3354 (const char*)NULL };
3357 * content selection pattern - do fix if pattern found
3359 tSCC zHpux11_Extern_SendpathSelect0[] =
3360 "^[ \t]*extern sbsize_t sendpath.*\n\
3363 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3364 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3365 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3368 * Fix Command Arguments for Hpux11_Extern_Sendpath
3370 static const char* apzHpux11_Extern_SendpathPatch[] = {
3372 "#ifndef _APP32_64BIT_OFF_T\n\
3376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3378 * Description of Hpux_Extern_Errno fix
3380 tSCC zHpux_Extern_ErrnoName[] =
3381 "hpux_extern_errno";
3384 * File name selection pattern
3386 tSCC zHpux_Extern_ErrnoList[] =
3389 * Machine/OS name selection pattern
3391 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3393 "*-hp-hpux11.[0-2]*",
3394 (const char*)NULL };
3397 * content selection pattern - do fix if pattern found
3399 tSCC zHpux_Extern_ErrnoSelect0[] =
3400 "^[ \t]*extern int errno;$";
3402 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3403 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3404 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3407 * Fix Command Arguments for Hpux_Extern_Errno
3409 static const char* apzHpux_Extern_ErrnoPatch[] = {
3411 "#ifdef __cplusplus\n\
3415 #ifdef __cplusplus\n\
3420 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3422 * Description of Hpux_Pthread_Initializers fix
3424 tSCC zHpux_Pthread_InitializersName[] =
3425 "hpux_pthread_initializers";
3428 * File name selection pattern
3430 tSCC zHpux_Pthread_InitializersList[] =
3433 * Machine/OS name selection pattern
3435 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3436 "*-hp-hpux11.[0-3]*",
3437 (const char*)NULL };
3438 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3439 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3442 * Fix Command Arguments for Hpux_Pthread_Initializers
3444 static const char* apzHpux_Pthread_InitializersPatch[] = { "sed",
3445 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3446 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3447 "-e", "/^[ \t]*0$/d",
3448 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3449 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3450 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3451 "-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\\\\@",
3452 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3453 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3454 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3455 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3456 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3457 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3462 * Description of Huge_Val_Hex fix
3464 tSCC zHuge_Val_HexName[] =
3468 * File name selection pattern
3470 tSCC zHuge_Val_HexList[] =
3471 "bits/huge_val.h\0";
3473 * Machine/OS name selection pattern
3475 #define apzHuge_Val_HexMachs (const char**)NULL
3478 * content selection pattern - do fix if pattern found
3480 tSCC zHuge_Val_HexSelect0[] =
3481 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3484 * content bypass pattern - skip fix if pattern found
3486 tSCC zHuge_Val_HexBypass0[] =
3487 "__builtin_huge_val";
3489 #define HUGE_VAL_HEX_TEST_CT 2
3490 static tTestDesc aHuge_Val_HexTests[] = {
3491 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3492 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3495 * Fix Command Arguments for Huge_Val_Hex
3497 static const char* apzHuge_Val_HexPatch[] = {
3499 "#define HUGE_VAL (__builtin_huge_val())\n",
3502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3504 * Description of Huge_Valf_Hex fix
3506 tSCC zHuge_Valf_HexName[] =
3510 * File name selection pattern
3512 tSCC zHuge_Valf_HexList[] =
3513 "bits/huge_val.h\0";
3515 * Machine/OS name selection pattern
3517 #define apzHuge_Valf_HexMachs (const char**)NULL
3520 * content selection pattern - do fix if pattern found
3522 tSCC zHuge_Valf_HexSelect0[] =
3523 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3526 * content bypass pattern - skip fix if pattern found
3528 tSCC zHuge_Valf_HexBypass0[] =
3529 "__builtin_huge_valf";
3531 #define HUGE_VALF_HEX_TEST_CT 2
3532 static tTestDesc aHuge_Valf_HexTests[] = {
3533 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3534 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3537 * Fix Command Arguments for Huge_Valf_Hex
3539 static const char* apzHuge_Valf_HexPatch[] = {
3541 "#define HUGE_VALF (__builtin_huge_valf())\n",
3544 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3546 * Description of Huge_Vall_Hex fix
3548 tSCC zHuge_Vall_HexName[] =
3552 * File name selection pattern
3554 tSCC zHuge_Vall_HexList[] =
3555 "bits/huge_val.h\0";
3557 * Machine/OS name selection pattern
3559 #define apzHuge_Vall_HexMachs (const char**)NULL
3562 * content selection pattern - do fix if pattern found
3564 tSCC zHuge_Vall_HexSelect0[] =
3565 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3568 * content bypass pattern - skip fix if pattern found
3570 tSCC zHuge_Vall_HexBypass0[] =
3571 "__builtin_huge_vall";
3573 #define HUGE_VALL_HEX_TEST_CT 2
3574 static tTestDesc aHuge_Vall_HexTests[] = {
3575 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3576 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3579 * Fix Command Arguments for Huge_Vall_Hex
3581 static const char* apzHuge_Vall_HexPatch[] = {
3583 "#define HUGE_VALL (__builtin_huge_vall())\n",
3586 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3588 * Description of Int_Abort_Free_And_Exit fix
3590 tSCC zInt_Abort_Free_And_ExitName[] =
3591 "int_abort_free_and_exit";
3594 * File name selection pattern
3596 tSCC zInt_Abort_Free_And_ExitList[] =
3599 * Machine/OS name selection pattern
3601 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3604 * content selection pattern - do fix if pattern found
3606 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3607 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3610 * content bypass pattern - skip fix if pattern found
3612 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3613 "_CLASSIC_ANSI_TYPES";
3615 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3616 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3617 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3618 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3621 * Fix Command Arguments for Int_Abort_Free_And_Exit
3623 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3628 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3630 * Description of Io_Quotes_Def fix
3632 tSCC zIo_Quotes_DefName[] =
3636 * File name selection pattern
3638 #define zIo_Quotes_DefList (char*)NULL
3640 * Machine/OS name selection pattern
3642 #define apzIo_Quotes_DefMachs (const char**)NULL
3645 * content selection pattern - do fix if pattern found
3647 tSCC zIo_Quotes_DefSelect0[] =
3648 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3650 #define IO_QUOTES_DEF_TEST_CT 1
3651 static tTestDesc aIo_Quotes_DefTests[] = {
3652 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3655 * Fix Command Arguments for Io_Quotes_Def
3657 static const char* apzIo_Quotes_DefPatch[] = {
3662 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3664 * Description of Io_Quotes_Use fix
3666 tSCC zIo_Quotes_UseName[] =
3670 * File name selection pattern
3672 #define zIo_Quotes_UseList (char*)NULL
3674 * Machine/OS name selection pattern
3676 #define apzIo_Quotes_UseMachs (const char**)NULL
3679 * content selection pattern - do fix if pattern found
3681 tSCC zIo_Quotes_UseSelect0[] =
3682 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3684 #define IO_QUOTES_USE_TEST_CT 1
3685 static tTestDesc aIo_Quotes_UseTests[] = {
3686 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3689 * Fix Command Arguments for Io_Quotes_Use
3691 static const char* apzIo_Quotes_UsePatch[] = {
3696 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3698 * Description of Ip_Missing_Semi fix
3700 tSCC zIp_Missing_SemiName[] =
3704 * File name selection pattern
3706 tSCC zIp_Missing_SemiList[] =
3709 * Machine/OS name selection pattern
3711 #define apzIp_Missing_SemiMachs (const char**)NULL
3714 * content selection pattern - do fix if pattern found
3716 tSCC zIp_Missing_SemiSelect0[] =
3719 #define IP_MISSING_SEMI_TEST_CT 1
3720 static tTestDesc aIp_Missing_SemiTests[] = {
3721 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3724 * Fix Command Arguments for Ip_Missing_Semi
3726 static const char* apzIp_Missing_SemiPatch[] = { "sed",
3727 "-e", "/^struct/,/^};/s/}$/};/",
3730 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3732 * Description of Irix___Restrict fix
3734 tSCC zIrix___RestrictName[] =
3738 * File name selection pattern
3740 tSCC zIrix___RestrictList[] =
3741 "internal/sgimacros.h\0";
3743 * Machine/OS name selection pattern
3745 tSCC* apzIrix___RestrictMachs[] = {
3747 (const char*)NULL };
3750 * content selection pattern - do fix if pattern found
3752 tSCC zIrix___RestrictSelect0[] =
3754 )(#[ \t]*define __restrict restrict)";
3756 #define IRIX___RESTRICT_TEST_CT 1
3757 static tTestDesc aIrix___RestrictTests[] = {
3758 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3761 * Fix Command Arguments for Irix___Restrict
3763 static const char* apzIrix___RestrictPatch[] = {
3765 "%1# ifndef __cplusplus\n\
3770 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3772 * Description of Irix___Generic1 fix
3774 tSCC zIrix___Generic1Name[] =
3778 * File name selection pattern
3780 tSCC zIrix___Generic1List[] =
3781 "internal/math_core.h\0";
3783 * Machine/OS name selection pattern
3785 tSCC* apzIrix___Generic1Machs[] = {
3787 (const char*)NULL };
3790 * content selection pattern - do fix if pattern found
3792 tSCC zIrix___Generic1Select0[] =
3793 "#define ([a-z]+)\\(x\\) *__generic.*";
3795 #define IRIX___GENERIC1_TEST_CT 1
3796 static tTestDesc aIrix___Generic1Tests[] = {
3797 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3800 * Fix Command Arguments for Irix___Generic1
3802 static const char* apzIrix___Generic1Patch[] = {
3804 "extern int %1(double);\n\
3805 extern int %1f(float);\n\
3806 extern int %1l(long double);\n\
3807 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3808 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3814 * Description of Irix___Generic2 fix
3816 tSCC zIrix___Generic2Name[] =
3820 * File name selection pattern
3822 tSCC zIrix___Generic2List[] =
3823 "internal/math_core.h\0";
3825 * Machine/OS name selection pattern
3827 tSCC* apzIrix___Generic2Machs[] = {
3829 (const char*)NULL };
3832 * content selection pattern - do fix if pattern found
3834 tSCC zIrix___Generic2Select0[] =
3835 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3837 #define IRIX___GENERIC2_TEST_CT 1
3838 static tTestDesc aIrix___Generic2Tests[] = {
3839 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3842 * Fix Command Arguments for Irix___Generic2
3844 static const char* apzIrix___Generic2Patch[] = {
3846 "#define %1(x,y) \\\n\
3847 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3848 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3852 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3854 * Description of Irix_Asm_Apostrophe fix
3856 tSCC zIrix_Asm_ApostropheName[] =
3857 "irix_asm_apostrophe";
3860 * File name selection pattern
3862 tSCC zIrix_Asm_ApostropheList[] =
3865 * Machine/OS name selection pattern
3867 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3870 * content selection pattern - do fix if pattern found
3872 tSCC zIrix_Asm_ApostropheSelect0[] =
3873 "^[ \t]*#.*[Ww]e're";
3875 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
3876 static tTestDesc aIrix_Asm_ApostropheTests[] = {
3877 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
3880 * Fix Command Arguments for Irix_Asm_Apostrophe
3882 static const char* apzIrix_Asm_ApostrophePatch[] = {
3885 "^([ \t]*#.*[Ww]e)'re",
3888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3890 * Description of Irix_Limits_Const fix
3892 tSCC zIrix_Limits_ConstName[] =
3893 "irix_limits_const";
3896 * File name selection pattern
3898 tSCC zIrix_Limits_ConstList[] =
3899 "fixinc-test-limits.h\0limits.h\0";
3901 * Machine/OS name selection pattern
3903 #define apzIrix_Limits_ConstMachs (const char**)NULL
3906 * content selection pattern - do fix if pattern found
3908 tSCC zIrix_Limits_ConstSelect0[] =
3911 #define IRIX_LIMITS_CONST_TEST_CT 1
3912 static tTestDesc aIrix_Limits_ConstTests[] = {
3913 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
3916 * Fix Command Arguments for Irix_Limits_Const
3918 static const char* apzIrix_Limits_ConstPatch[] = {
3923 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3925 * Description of Irix_Socklen_T fix
3927 tSCC zIrix_Socklen_TName[] =
3931 * File name selection pattern
3933 tSCC zIrix_Socklen_TList[] =
3936 * Machine/OS name selection pattern
3938 tSCC* apzIrix_Socklen_TMachs[] = {
3940 (const char*)NULL };
3943 * content selection pattern - do fix if pattern found
3945 tSCC zIrix_Socklen_TSelect0[] =
3946 "(#define _SOCKLEN_T\n\
3947 )(typedef u_int32_t socklen_t;)";
3949 #define IRIX_SOCKLEN_T_TEST_CT 1
3950 static tTestDesc aIrix_Socklen_TTests[] = {
3951 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
3954 * Fix Command Arguments for Irix_Socklen_T
3956 static const char* apzIrix_Socklen_TPatch[] = {
3958 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
3959 typedef int socklen_t;\n\
3962 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
3965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3967 * Description of Irix_Stdint_C99 fix
3969 tSCC zIrix_Stdint_C99Name[] =
3973 * File name selection pattern
3975 tSCC zIrix_Stdint_C99List[] =
3978 * Machine/OS name selection pattern
3980 tSCC* apzIrix_Stdint_C99Machs[] = {
3982 (const char*)NULL };
3985 * content selection pattern - do fix if pattern found
3987 tSCC zIrix_Stdint_C99Select0[] =
3989 )(#error This header file is to be used only for c99 mode compilations)";
3991 #define IRIX_STDINT_C99_TEST_CT 1
3992 static tTestDesc aIrix_Stdint_C99Tests[] = {
3993 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
3996 * Fix Command Arguments for Irix_Stdint_C99
3998 static const char* apzIrix_Stdint_C99Patch[] = {
4004 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4006 * Description of Irix_Stdio_Va_List fix
4008 tSCC zIrix_Stdio_Va_ListName[] =
4009 "irix_stdio_va_list";
4012 * File name selection pattern
4014 tSCC zIrix_Stdio_Va_ListList[] =
4015 "stdio.h\0internal/stdio_core.h\0";
4017 * Machine/OS name selection pattern
4019 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4022 * content selection pattern - do fix if pattern found
4024 tSCC zIrix_Stdio_Va_ListSelect0[] =
4025 "/\\* va_list \\*/ char \\*";
4027 #define IRIX_STDIO_VA_LIST_TEST_CT 1
4028 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4029 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4032 * Fix Command Arguments for Irix_Stdio_Va_List
4034 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4039 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4041 * Description of Irix_Wcsftime fix
4043 tSCC zIrix_WcsftimeName[] =
4047 * File name selection pattern
4049 tSCC zIrix_WcsftimeList[] =
4050 "internal/wchar_core.h\0";
4052 * Machine/OS name selection pattern
4054 tSCC* apzIrix_WcsftimeMachs[] = {
4056 (const char*)NULL };
4059 * content selection pattern - do fix if pattern found
4061 tSCC zIrix_WcsftimeSelect0[] =
4063 (extern size_t[ \t]+wcsftime.*const char *.*)";
4065 #define IRIX_WCSFTIME_TEST_CT 1
4066 static tTestDesc aIrix_WcsftimeTests[] = {
4067 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4070 * Fix Command Arguments for Irix_Wcsftime
4072 static const char* apzIrix_WcsftimePatch[] = {
4074 "#if _NO_XOPEN5 && !defined(__c99)\n\
4078 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4080 * Description of Isc_Fmod fix
4082 tSCC zIsc_FmodName[] =
4086 * File name selection pattern
4088 tSCC zIsc_FmodList[] =
4091 * Machine/OS name selection pattern
4093 #define apzIsc_FmodMachs (const char**)NULL
4096 * content selection pattern - do fix if pattern found
4098 tSCC zIsc_FmodSelect0[] =
4101 #define ISC_FMOD_TEST_CT 1
4102 static tTestDesc aIsc_FmodTests[] = {
4103 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
4106 * Fix Command Arguments for Isc_Fmod
4108 static const char* apzIsc_FmodPatch[] = {
4110 "fmod(double, double)",
4113 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4115 * Description of Isc_Omits_With_Stdc fix
4117 tSCC zIsc_Omits_With_StdcName[] =
4118 "isc_omits_with_stdc";
4121 * File name selection pattern
4123 tSCC zIsc_Omits_With_StdcList[] =
4124 "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
4126 * Machine/OS name selection pattern
4128 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
4131 * content selection pattern - do fix if pattern found
4133 tSCC zIsc_Omits_With_StdcSelect0[] =
4134 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
4136 #define ISC_OMITS_WITH_STDC_TEST_CT 1
4137 static tTestDesc aIsc_Omits_With_StdcTests[] = {
4138 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4141 * Fix Command Arguments for Isc_Omits_With_Stdc
4143 static const char* apzIsc_Omits_With_StdcPatch[] = {
4145 "!defined(_POSIX_SOURCE)",
4148 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4150 * Description of Kandr_Concat fix
4152 tSCC zKandr_ConcatName[] =
4156 * File name selection pattern
4158 tSCC zKandr_ConcatList[] =
4159 "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";
4161 * Machine/OS name selection pattern
4163 #define apzKandr_ConcatMachs (const char**)NULL
4166 * content selection pattern - do fix if pattern found
4168 tSCC zKandr_ConcatSelect0[] =
4171 #define KANDR_CONCAT_TEST_CT 1
4172 static tTestDesc aKandr_ConcatTests[] = {
4173 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4176 * Fix Command Arguments for Kandr_Concat
4178 static const char* apzKandr_ConcatPatch[] = {
4183 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4185 * Description of Libc1_G_Va_List fix
4187 tSCC zLibc1_G_Va_ListName[] =
4191 * File name selection pattern
4193 tSCC zLibc1_G_Va_ListList[] =
4196 * Machine/OS name selection pattern
4198 tSCC* apzLibc1_G_Va_ListMachs[] = {
4200 (const char*)NULL };
4203 * content selection pattern - do fix if pattern found
4205 tSCC zLibc1_G_Va_ListSelect0[] =
4206 "typedef void \\* _G_va_list;";
4208 #define LIBC1_G_VA_LIST_TEST_CT 1
4209 static tTestDesc aLibc1_G_Va_ListTests[] = {
4210 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
4213 * Fix Command Arguments for Libc1_G_Va_List
4215 static const char* apzLibc1_G_Va_ListPatch[] = {
4217 "typedef __builtin_va_list _G_va_list;",
4220 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4222 * Description of Libc1_Ifdefd_Memx fix
4224 tSCC zLibc1_Ifdefd_MemxName[] =
4225 "libc1_ifdefd_memx";
4228 * File name selection pattern
4230 tSCC zLibc1_Ifdefd_MemxList[] =
4231 "testing.h\0string.h\0";
4233 * Machine/OS name selection pattern
4235 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
4238 * content selection pattern - do fix if pattern found
4240 tSCC zLibc1_Ifdefd_MemxSelect0[] =
4241 "' is a built-in function for gcc 2\\.x\\. \\*/";
4244 * content bypass pattern - skip fix if pattern found
4246 tSCC zLibc1_Ifdefd_MemxBypass0[] =
4249 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
4250 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
4251 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
4252 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
4255 * Fix Command Arguments for Libc1_Ifdefd_Memx
4257 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
4260 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
4261 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
4263 extern [a-z_]+ mem.*(\n\
4268 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4270 * Description of Linux_Ia64_Ucontext fix
4272 tSCC zLinux_Ia64_UcontextName[] =
4273 "linux_ia64_ucontext";
4276 * File name selection pattern
4278 tSCC zLinux_Ia64_UcontextList[] =
4281 * Machine/OS name selection pattern
4283 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4285 (const char*)NULL };
4288 * content selection pattern - do fix if pattern found
4290 tSCC zLinux_Ia64_UcontextSelect0[] =
4291 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4293 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4294 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4295 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4298 * Fix Command Arguments for Linux_Ia64_Ucontext
4300 static const char* apzLinux_Ia64_UcontextPatch[] = {
4302 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4307 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4309 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4310 "lynxos_no_warning_in_sys_time_h";
4313 * File name selection pattern
4315 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4318 * Machine/OS name selection pattern
4320 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4323 * content selection pattern - do fix if pattern found
4325 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4326 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4328 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4329 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4330 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4333 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4335 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4340 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4342 * Description of Lynxos_Missing_Putenv fix
4344 tSCC zLynxos_Missing_PutenvName[] =
4345 "lynxos_missing_putenv";
4348 * File name selection pattern
4350 tSCC zLynxos_Missing_PutenvList[] =
4353 * Machine/OS name selection pattern
4355 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4357 (const char*)NULL };
4360 * content selection pattern - do fix if pattern found
4362 tSCC zLynxos_Missing_PutenvSelect0[] =
4363 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4366 * content bypass pattern - skip fix if pattern found
4368 tSCC zLynxos_Missing_PutenvBypass0[] =
4371 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4372 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4373 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4374 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4377 * Fix Command Arguments for Lynxos_Missing_Putenv
4379 static const char* apzLynxos_Missing_PutenvPatch[] = {
4382 extern int putenv\t\t\t\t_AP((char *));",
4383 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4386 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4388 * Description of Machine_Ansi_H_Va_List fix
4390 tSCC zMachine_Ansi_H_Va_ListName[] =
4391 "machine_ansi_h_va_list";
4394 * File name selection pattern
4396 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4398 * Machine/OS name selection pattern
4400 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4403 * content selection pattern - do fix if pattern found
4405 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4406 "define[ \t]+_BSD_VA_LIST_[ \t]";
4409 * content bypass pattern - skip fix if pattern found
4411 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4412 "__builtin_va_list";
4414 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4415 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4416 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4417 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4420 * Fix Command Arguments for Machine_Ansi_H_Va_List
4422 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4424 "%1__builtin_va_list",
4425 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4428 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4430 * Description of Machine_Name fix
4432 tSCC zMachine_NameName[] =
4436 * File name selection pattern
4438 #define zMachine_NameList (char*)NULL
4440 * Machine/OS name selection pattern
4442 #define apzMachine_NameMachs (const char**)NULL
4445 * perform the C function call test
4447 tSCC zMachine_NameFTst0[] = "machine_name";
4449 #define MACHINE_NAME_TEST_CT 1
4450 static tTestDesc aMachine_NameTests[] = {
4451 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4454 * Fix Command Arguments for Machine_Name
4456 static const char* apzMachine_NamePatch[] = {
4460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4462 * Description of Math_Exception fix
4464 tSCC zMath_ExceptionName[] =
4468 * File name selection pattern
4470 tSCC zMath_ExceptionList[] =
4473 * Machine/OS name selection pattern
4475 #define apzMath_ExceptionMachs (const char**)NULL
4478 * content selection pattern - do fix if pattern found
4480 tSCC zMath_ExceptionSelect0[] =
4484 * content bypass pattern - skip fix if pattern found
4486 tSCC zMath_ExceptionBypass0[] =
4487 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4489 #define MATH_EXCEPTION_TEST_CT 2
4490 static tTestDesc aMath_ExceptionTests[] = {
4491 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4492 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4495 * Fix Command Arguments for Math_Exception
4497 static const char* apzMath_ExceptionPatch[] = {
4499 "#ifdef __cplusplus\n\
4500 #define exception __math_exception\n\
4502 "#ifdef __cplusplus\n\
4507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4509 * Description of Math_Huge_Val_From_Dbl_Max fix
4511 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4512 "math_huge_val_from_dbl_max";
4515 * File name selection pattern
4517 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4520 * Machine/OS name selection pattern
4522 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4525 * content selection pattern - do fix if pattern found
4527 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4528 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4531 * content bypass pattern - skip fix if pattern found
4533 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4534 "define[ \t]+DBL_MAX";
4536 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4537 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4538 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4539 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4542 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4544 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4545 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4546 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4547 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4554 * Description of Nested_Auth_Des fix
4556 tSCC zNested_Auth_DesName[] =
4560 * File name selection pattern
4562 tSCC zNested_Auth_DesList[] =
4565 * Machine/OS name selection pattern
4567 #define apzNested_Auth_DesMachs (const char**)NULL
4570 * content selection pattern - do fix if pattern found
4572 tSCC zNested_Auth_DesSelect0[] =
4573 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4575 #define NESTED_AUTH_DES_TEST_CT 1
4576 static tTestDesc aNested_Auth_DesTests[] = {
4577 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4580 * Fix Command Arguments for Nested_Auth_Des
4582 static const char* apzNested_Auth_DesPatch[] = {
4587 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4589 * Description of Nested_Motorola fix
4591 tSCC zNested_MotorolaName[] =
4595 * File name selection pattern
4597 tSCC zNested_MotorolaList[] =
4598 "sys/limits.h\0limits.h\0";
4600 * Machine/OS name selection pattern
4602 tSCC* apzNested_MotorolaMachs[] = {
4603 "m68k-motorola-sysv*",
4604 (const char*)NULL };
4607 * content selection pattern - do fix if pattern found
4609 tSCC zNested_MotorolaSelect0[] =
4610 "max # bytes atomic in write|error value returned by Math lib";
4612 #define NESTED_MOTOROLA_TEST_CT 1
4613 static tTestDesc aNested_MotorolaTests[] = {
4614 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
4617 * Fix Command Arguments for Nested_Motorola
4619 static const char* apzNested_MotorolaPatch[] = { "sed",
4620 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
4621 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
4624 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4626 * Description of Nested_Sys_Limits fix
4628 tSCC zNested_Sys_LimitsName[] =
4629 "nested_sys_limits";
4632 * File name selection pattern
4634 tSCC zNested_Sys_LimitsList[] =
4637 * Machine/OS name selection pattern
4639 #define apzNested_Sys_LimitsMachs (const char**)NULL
4642 * content selection pattern - do fix if pattern found
4644 tSCC zNested_Sys_LimitsSelect0[] =
4647 #define NESTED_SYS_LIMITS_TEST_CT 1
4648 static tTestDesc aNested_Sys_LimitsTests[] = {
4649 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4652 * Fix Command Arguments for Nested_Sys_Limits
4654 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
4655 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4656 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4659 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4661 * Description of Netbsd_C99_Inline_1 fix
4663 tSCC zNetbsd_C99_Inline_1Name[] =
4664 "netbsd_c99_inline_1";
4667 * File name selection pattern
4669 tSCC zNetbsd_C99_Inline_1List[] =
4672 * Machine/OS name selection pattern
4674 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4676 (const char*)NULL };
4679 * content selection pattern - do fix if pattern found
4681 tSCC zNetbsd_C99_Inline_1Select0[] =
4682 "extern __inline int";
4684 #define NETBSD_C99_INLINE_1_TEST_CT 1
4685 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4686 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4689 * Fix Command Arguments for Netbsd_C99_Inline_1
4691 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4694 #ifdef __GNUC_STDC_INLINE__\n\
4695 __attribute__((__gnu_inline__))\n\
4700 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4702 * Description of Netbsd_C99_Inline_2 fix
4704 tSCC zNetbsd_C99_Inline_2Name[] =
4705 "netbsd_c99_inline_2";
4708 * File name selection pattern
4710 tSCC zNetbsd_C99_Inline_2List[] =
4713 * Machine/OS name selection pattern
4715 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4717 (const char*)NULL };
4720 * content selection pattern - do fix if pattern found
4722 tSCC zNetbsd_C99_Inline_2Select0[] =
4723 "#define _SIGINLINE extern __inline";
4725 #define NETBSD_C99_INLINE_2_TEST_CT 1
4726 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4727 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4730 * Fix Command Arguments for Netbsd_C99_Inline_2
4732 static const char* apzNetbsd_C99_Inline_2Patch[] = {
4734 "#ifdef __GNUC_STDC_INLINE__\n\
4735 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4741 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4743 * Description of Netbsd_Extra_Semicolon fix
4745 tSCC zNetbsd_Extra_SemicolonName[] =
4746 "netbsd_extra_semicolon";
4749 * File name selection pattern
4751 tSCC zNetbsd_Extra_SemicolonList[] =
4754 * Machine/OS name selection pattern
4756 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4758 (const char*)NULL };
4761 * content selection pattern - do fix if pattern found
4763 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4764 "#define[ \t]*__END_DECLS[ \t]*};";
4766 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4767 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4768 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4771 * Fix Command Arguments for Netbsd_Extra_Semicolon
4773 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4775 "#define __END_DECLS }",
4778 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4780 * Description of Next_Math_Prefix fix
4782 tSCC zNext_Math_PrefixName[] =
4786 * File name selection pattern
4788 tSCC zNext_Math_PrefixList[] =
4791 * Machine/OS name selection pattern
4793 #define apzNext_Math_PrefixMachs (const char**)NULL
4796 * content selection pattern - do fix if pattern found
4798 tSCC zNext_Math_PrefixSelect0[] =
4799 "^extern[ \t]+double[ \t]+__const__[ \t]";
4801 #define NEXT_MATH_PREFIX_TEST_CT 1
4802 static tTestDesc aNext_Math_PrefixTests[] = {
4803 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4806 * Fix Command Arguments for Next_Math_Prefix
4808 static const char* apzNext_Math_PrefixPatch[] = {
4810 "extern double %1(",
4811 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4814 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4816 * Description of Next_Template fix
4818 tSCC zNext_TemplateName[] =
4822 * File name selection pattern
4824 tSCC zNext_TemplateList[] =
4827 * Machine/OS name selection pattern
4829 #define apzNext_TemplateMachs (const char**)NULL
4832 * content selection pattern - do fix if pattern found
4834 tSCC zNext_TemplateSelect0[] =
4837 #define NEXT_TEMPLATE_TEST_CT 1
4838 static tTestDesc aNext_TemplateTests[] = {
4839 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
4842 * Fix Command Arguments for Next_Template
4844 static const char* apzNext_TemplatePatch[] = {
4847 "\\(([^)]*)[ \t]template\\)",
4850 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4852 * Description of Next_Volitile fix
4854 tSCC zNext_VolitileName[] =
4858 * File name selection pattern
4860 tSCC zNext_VolitileList[] =
4863 * Machine/OS name selection pattern
4865 #define apzNext_VolitileMachs (const char**)NULL
4868 * content selection pattern - do fix if pattern found
4870 tSCC zNext_VolitileSelect0[] =
4871 "^extern[ \t]+volatile[ \t]+void[ \t]";
4873 #define NEXT_VOLITILE_TEST_CT 1
4874 static tTestDesc aNext_VolitileTests[] = {
4875 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
4878 * Fix Command Arguments for Next_Volitile
4880 static const char* apzNext_VolitilePatch[] = {
4883 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
4886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4888 * Description of Next_Wait_Union fix
4890 tSCC zNext_Wait_UnionName[] =
4894 * File name selection pattern
4896 tSCC zNext_Wait_UnionList[] =
4899 * Machine/OS name selection pattern
4901 #define apzNext_Wait_UnionMachs (const char**)NULL
4904 * content selection pattern - do fix if pattern found
4906 tSCC zNext_Wait_UnionSelect0[] =
4907 "wait\\(union wait";
4909 #define NEXT_WAIT_UNION_TEST_CT 1
4910 static tTestDesc aNext_Wait_UnionTests[] = {
4911 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
4914 * Fix Command Arguments for Next_Wait_Union
4916 static const char* apzNext_Wait_UnionPatch[] = {
4921 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4923 * Description of Nodeent_Syntax fix
4925 tSCC zNodeent_SyntaxName[] =
4929 * File name selection pattern
4931 tSCC zNodeent_SyntaxList[] =
4932 "netdnet/dnetdb.h\0";
4934 * Machine/OS name selection pattern
4936 #define apzNodeent_SyntaxMachs (const char**)NULL
4939 * content selection pattern - do fix if pattern found
4941 tSCC zNodeent_SyntaxSelect0[] =
4942 "char[ \t]*\\*na_addr[ \t]*$";
4944 #define NODEENT_SYNTAX_TEST_CT 1
4945 static tTestDesc aNodeent_SyntaxTests[] = {
4946 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
4949 * Fix Command Arguments for Nodeent_Syntax
4951 static const char* apzNodeent_SyntaxPatch[] = {
4956 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4958 * Description of Obstack_Lvalue_Cast fix
4960 tSCC zObstack_Lvalue_CastName[] =
4961 "obstack_lvalue_cast";
4964 * File name selection pattern
4966 tSCC zObstack_Lvalue_CastList[] =
4969 * Machine/OS name selection pattern
4971 #define apzObstack_Lvalue_CastMachs (const char**)NULL
4974 * content selection pattern - do fix if pattern found
4976 tSCC zObstack_Lvalue_CastSelect0[] =
4977 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
4979 #define OBSTACK_LVALUE_CAST_TEST_CT 1
4980 static tTestDesc aObstack_Lvalue_CastTests[] = {
4981 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
4984 * Fix Command Arguments for Obstack_Lvalue_Cast
4986 static const char* apzObstack_Lvalue_CastPatch[] = {
4988 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
4991 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4993 * Description of Osf_Namespace_A fix
4995 tSCC zOsf_Namespace_AName[] =
4999 * File name selection pattern
5001 tSCC zOsf_Namespace_AList[] =
5002 "reg_types.h\0sys/lc_core.h\0";
5004 * Machine/OS name selection pattern
5006 #define apzOsf_Namespace_AMachs (const char**)NULL
5009 * perform the 'test' shell command - do fix on success
5011 tSCC zOsf_Namespace_ATest0[] =
5013 tSCC zOsf_Namespace_ATest1[] =
5014 " -r sys/lc_core.h";
5015 tSCC zOsf_Namespace_ATest2[] =
5016 " -n \"`grep '} regex_t;' reg_types.h`\"";
5017 tSCC zOsf_Namespace_ATest3[] =
5018 " -z \"`grep __regex_t regex.h`\"";
5020 #define OSF_NAMESPACE_A_TEST_CT 4
5021 static tTestDesc aOsf_Namespace_ATests[] = {
5022 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5023 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5024 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5025 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5028 * Fix Command Arguments for Osf_Namespace_A
5030 static const char* apzOsf_Namespace_APatch[] = {
5033 "reg(ex|off|match)_t",
5036 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5038 * Description of Osf_Namespace_C fix
5040 tSCC zOsf_Namespace_CName[] =
5044 * File name selection pattern
5046 tSCC zOsf_Namespace_CList[] =
5049 * Machine/OS name selection pattern
5051 #define apzOsf_Namespace_CMachs (const char**)NULL
5054 * content selection pattern - do fix if pattern found
5056 tSCC zOsf_Namespace_CSelect0[] =
5057 "#include <reg_types.h>.*";
5060 * perform the 'test' shell command - do fix on success
5062 tSCC zOsf_Namespace_CTest0[] =
5064 tSCC zOsf_Namespace_CTest1[] =
5065 " -r sys/lc_core.h";
5066 tSCC zOsf_Namespace_CTest2[] =
5067 " -n \"`grep '} regex_t;' reg_types.h`\"";
5068 tSCC zOsf_Namespace_CTest3[] =
5069 " -z \"`grep __regex_t regex.h`\"";
5071 #define OSF_NAMESPACE_C_TEST_CT 5
5072 static tTestDesc aOsf_Namespace_CTests[] = {
5073 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5074 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5075 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5076 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5077 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5080 * Fix Command Arguments for Osf_Namespace_C
5082 static const char* apzOsf_Namespace_CPatch[] = {
5085 typedef __regex_t\tregex_t;\n\
5086 typedef __regoff_t\tregoff_t;\n\
5087 typedef __regmatch_t\tregmatch_t;",
5090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5092 * Description of Pthread_Page_Size fix
5094 tSCC zPthread_Page_SizeName[] =
5095 "pthread_page_size";
5098 * File name selection pattern
5100 tSCC zPthread_Page_SizeList[] =
5103 * Machine/OS name selection pattern
5105 #define apzPthread_Page_SizeMachs (const char**)NULL
5108 * content selection pattern - do fix if pattern found
5110 tSCC zPthread_Page_SizeSelect0[] =
5113 #define PTHREAD_PAGE_SIZE_TEST_CT 1
5114 static tTestDesc aPthread_Page_SizeTests[] = {
5115 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
5118 * Fix Command Arguments for Pthread_Page_Size
5120 static const char* apzPthread_Page_SizePatch[] = {
5125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5127 * Description of Pthread_Incomplete_Struct_Argument fix
5129 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5130 "pthread_incomplete_struct_argument";
5133 * File name selection pattern
5135 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5138 * Machine/OS name selection pattern
5140 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5143 * content selection pattern - do fix if pattern found
5145 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5146 "struct __jmp_buf_tag";
5148 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5149 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5150 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5153 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5155 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5158 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5163 * Description of Read_Ret_Type fix
5165 tSCC zRead_Ret_TypeName[] =
5169 * File name selection pattern
5171 tSCC zRead_Ret_TypeList[] =
5174 * Machine/OS name selection pattern
5176 #define apzRead_Ret_TypeMachs (const char**)NULL
5179 * content selection pattern - do fix if pattern found
5181 tSCC zRead_Ret_TypeSelect0[] =
5182 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5184 #define READ_RET_TYPE_TEST_CT 1
5185 static tTestDesc aRead_Ret_TypeTests[] = {
5186 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5189 * Fix Command Arguments for Read_Ret_Type
5191 static const char* apzRead_Ret_TypePatch[] = {
5193 "extern unsigned int fread(), fwrite();\n\
5195 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5198 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5200 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5202 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5203 "rpc_xdr_lvalue_cast_a";
5206 * File name selection pattern
5208 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5211 * Machine/OS name selection pattern
5213 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5216 * content selection pattern - do fix if pattern found
5218 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5219 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5222 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5223 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5224 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5227 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5229 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5231 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5234 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5236 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5238 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5239 "rpc_xdr_lvalue_cast_b";
5242 * File name selection pattern
5244 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5247 * Machine/OS name selection pattern
5249 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5252 * content selection pattern - do fix if pattern found
5254 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5255 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5258 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5259 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5260 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5263 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5265 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5267 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5270 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5272 * Description of Rs6000_Double fix
5274 tSCC zRs6000_DoubleName[] =
5278 * File name selection pattern
5280 tSCC zRs6000_DoubleList[] =
5283 * Machine/OS name selection pattern
5285 #define apzRs6000_DoubleMachs (const char**)NULL
5288 * content selection pattern - do fix if pattern found
5290 tSCC zRs6000_DoubleSelect0[] =
5291 "[^a-zA-Z_]class\\(";
5293 #define RS6000_DOUBLE_TEST_CT 1
5294 static tTestDesc aRs6000_DoubleTests[] = {
5295 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5298 * Fix Command Arguments for Rs6000_Double
5300 static const char* apzRs6000_DoublePatch[] = {
5302 "#ifndef __cplusplus\n\
5305 "^.*[^a-zA-Z_]class\\(.*",
5308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5310 * Description of Rs6000_Fchmod fix
5312 tSCC zRs6000_FchmodName[] =
5316 * File name selection pattern
5318 tSCC zRs6000_FchmodList[] =
5321 * Machine/OS name selection pattern
5323 #define apzRs6000_FchmodMachs (const char**)NULL
5326 * content selection pattern - do fix if pattern found
5328 tSCC zRs6000_FchmodSelect0[] =
5329 "fchmod\\(char \\*";
5331 #define RS6000_FCHMOD_TEST_CT 1
5332 static tTestDesc aRs6000_FchmodTests[] = {
5333 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5336 * Fix Command Arguments for Rs6000_Fchmod
5338 static const char* apzRs6000_FchmodPatch[] = {
5343 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5345 * Description of Rs6000_Param fix
5347 tSCC zRs6000_ParamName[] =
5351 * File name selection pattern
5353 tSCC zRs6000_ParamList[] =
5354 "stdio.h\0unistd.h\0";
5356 * Machine/OS name selection pattern
5358 #define apzRs6000_ParamMachs (const char**)NULL
5361 * content selection pattern - do fix if pattern found
5363 tSCC zRs6000_ParamSelect0[] =
5364 "rename\\(const char \\*old, const char \\*new\\)";
5366 #define RS6000_PARAM_TEST_CT 1
5367 static tTestDesc aRs6000_ParamTests[] = {
5368 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
5371 * Fix Command Arguments for Rs6000_Param
5373 static const char* apzRs6000_ParamPatch[] = {
5375 "rename(const char *_old, const char *_new)",
5378 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5380 * Description of Sco_Math fix
5382 tSCC zSco_MathName[] =
5386 * File name selection pattern
5388 tSCC zSco_MathList[] =
5389 "math.h\0*/math.h\0";
5391 * Machine/OS name selection pattern
5393 #define apzSco_MathMachs (const char**)NULL
5396 * content selection pattern - do fix if pattern found
5398 tSCC zSco_MathSelect0[] =
5399 "inline double abs";
5402 * content bypass pattern - skip fix if pattern found
5404 tSCC zSco_MathBypass0[] =
5407 #define SCO_MATH_TEST_CT 2
5408 static tTestDesc aSco_MathTests[] = {
5409 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
5410 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
5413 * Fix Command Arguments for Sco_Math
5415 static const char* apzSco_MathPatch[] = { "sed",
5416 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5417 #ifndef __GNUC__\n",
5418 "-e", "/.*__builtin_generic/a\\\n\
5420 #define __fp_class(a) \\\\\\\n\
5421 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5422 __fpclassifyl(a), \\\\\\\n\
5423 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5424 __fpclassifyf(a),__fpclassify(a)))\\\n\
5426 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5427 #ifndef __GNUC__\n",
5428 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5429 #endif /* ! __GNUC__ */",
5432 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5434 * Description of Sco_Regset fix
5436 tSCC zSco_RegsetName[] =
5440 * File name selection pattern
5442 tSCC zSco_RegsetList[] =
5445 * Machine/OS name selection pattern
5447 tSCC* apzSco_RegsetMachs[] = {
5449 (const char*)NULL };
5452 * content selection pattern - do fix if pattern found
5454 tSCC zSco_RegsetSelect0[] =
5455 "(struct[ \t]+.*)fpstate";
5457 #define SCO_REGSET_TEST_CT 1
5458 static tTestDesc aSco_RegsetTests[] = {
5459 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
5462 * Fix Command Arguments for Sco_Regset
5464 static const char* apzSco_RegsetPatch[] = {
5469 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5471 * Description of Sco_Static_Func fix
5473 tSCC zSco_Static_FuncName[] =
5477 * File name selection pattern
5479 tSCC zSco_Static_FuncList[] =
5482 * Machine/OS name selection pattern
5484 tSCC* apzSco_Static_FuncMachs[] = {
5486 (const char*)NULL };
5489 * content selection pattern - do fix if pattern found
5491 tSCC zSco_Static_FuncSelect0[] =
5494 #define SCO_STATIC_FUNC_TEST_CT 1
5495 static tTestDesc aSco_Static_FuncTests[] = {
5496 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
5499 * Fix Command Arguments for Sco_Static_Func
5501 static const char* apzSco_Static_FuncPatch[] = { "sed",
5502 "-e", "/^static int/i\\\n\
5503 #if __cplusplus\\\n\
5505 #endif /* __cplusplus */",
5507 #if __cplusplus\\\n\
5509 #endif /* __cplusplus */",
5512 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5514 * Description of Sco_Utime fix
5516 tSCC zSco_UtimeName[] =
5520 * File name selection pattern
5522 tSCC zSco_UtimeList[] =
5525 * Machine/OS name selection pattern
5527 tSCC* apzSco_UtimeMachs[] = {
5529 (const char*)NULL };
5532 * content selection pattern - do fix if pattern found
5534 tSCC zSco_UtimeSelect0[] =
5535 "\\(const char \\*, struct utimbuf \\*\\);";
5537 #define SCO_UTIME_TEST_CT 1
5538 static tTestDesc aSco_UtimeTests[] = {
5539 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
5542 * Fix Command Arguments for Sco_Utime
5544 static const char* apzSco_UtimePatch[] = {
5546 "(const char *, const struct utimbuf *);",
5549 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5551 * Description of Solaris_Math_1 fix
5553 tSCC zSolaris_Math_1Name[] =
5557 * File name selection pattern
5559 tSCC zSolaris_Math_1List[] =
5562 * Machine/OS name selection pattern
5564 #define apzSolaris_Math_1Machs (const char**)NULL
5567 * content selection pattern - do fix if pattern found
5569 tSCC zSolaris_Math_1Select0[] =
5570 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5573 * content bypass pattern - skip fix if pattern found
5575 tSCC zSolaris_Math_1Bypass0[] =
5578 #define SOLARIS_MATH_1_TEST_CT 2
5579 static tTestDesc aSolaris_Math_1Tests[] = {
5580 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5581 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5584 * Fix Command Arguments for Solaris_Math_1
5586 static const char* apzSolaris_Math_1Patch[] = {
5588 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5589 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5594 * Description of Solaris_Math_2 fix
5596 tSCC zSolaris_Math_2Name[] =
5600 * File name selection pattern
5602 tSCC zSolaris_Math_2List[] =
5605 * Machine/OS name selection pattern
5607 #define apzSolaris_Math_2Machs (const char**)NULL
5610 * content selection pattern - do fix if pattern found
5612 tSCC zSolaris_Math_2Select0[] =
5613 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5616 * content bypass pattern - skip fix if pattern found
5618 tSCC zSolaris_Math_2Bypass0[] =
5621 #define SOLARIS_MATH_2_TEST_CT 2
5622 static tTestDesc aSolaris_Math_2Tests[] = {
5623 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5624 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5627 * Fix Command Arguments for Solaris_Math_2
5629 static const char* apzSolaris_Math_2Patch[] = {
5631 "#define\tINFINITY\t(__builtin_inff())",
5632 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5635 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5637 * Description of Solaris_Math_3 fix
5639 tSCC zSolaris_Math_3Name[] =
5643 * File name selection pattern
5645 tSCC zSolaris_Math_3List[] =
5648 * Machine/OS name selection pattern
5650 #define apzSolaris_Math_3Machs (const char**)NULL
5653 * content selection pattern - do fix if pattern found
5655 tSCC zSolaris_Math_3Select0[] =
5656 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5659 * content bypass pattern - skip fix if pattern found
5661 tSCC zSolaris_Math_3Bypass0[] =
5664 #define SOLARIS_MATH_3_TEST_CT 2
5665 static tTestDesc aSolaris_Math_3Tests[] = {
5666 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5667 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5670 * Fix Command Arguments for Solaris_Math_3
5672 static const char* apzSolaris_Math_3Patch[] = {
5674 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5675 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5680 * Description of Solaris_Math_4 fix
5682 tSCC zSolaris_Math_4Name[] =
5686 * File name selection pattern
5688 tSCC zSolaris_Math_4List[] =
5691 * Machine/OS name selection pattern
5693 #define apzSolaris_Math_4Machs (const char**)NULL
5696 * content selection pattern - do fix if pattern found
5698 tSCC zSolaris_Math_4Select0[] =
5699 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5702 * content bypass pattern - skip fix if pattern found
5704 tSCC zSolaris_Math_4Bypass0[] =
5707 #define SOLARIS_MATH_4_TEST_CT 2
5708 static tTestDesc aSolaris_Math_4Tests[] = {
5709 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5710 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5713 * Fix Command Arguments for Solaris_Math_4
5715 static const char* apzSolaris_Math_4Patch[] = {
5717 "#define\tfpclassify(x) \\\n\
5718 __extension__ ({ const __typeof(x) __x_fp = (x); \\\n\
5719 \t\t isnan(__x_fp) \\\n\
5721 \t\t : isinf(__x_fp) \\\n\
5722 \t\t ? FP_INFINITE \\\n\
5723 \t\t : isnormal(__x_fp) \\\n\
5724 \t\t\t ? FP_NORMAL \\\n\
5725 \t\t\t : __x_fp == 0.0 \\\n\
5726 \t\t\t ? FP_ZERO \\\n\
5727 \t\t\t : FP_SUBNORMAL; })",
5728 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5731 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5733 * Description of Solaris_Math_8 fix
5735 tSCC zSolaris_Math_8Name[] =
5739 * File name selection pattern
5741 tSCC zSolaris_Math_8List[] =
5744 * Machine/OS name selection pattern
5746 #define apzSolaris_Math_8Machs (const char**)NULL
5749 * content selection pattern - do fix if pattern found
5751 tSCC zSolaris_Math_8Select0[] =
5752 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5755 * content bypass pattern - skip fix if pattern found
5757 tSCC zSolaris_Math_8Bypass0[] =
5760 #define SOLARIS_MATH_8_TEST_CT 2
5761 static tTestDesc aSolaris_Math_8Tests[] = {
5762 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5763 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5766 * Fix Command Arguments for Solaris_Math_8
5768 static const char* apzSolaris_Math_8Patch[] = {
5770 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5771 \t\t\t ? __builtin_signbitf(x) \\\n\
5772 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
5773 \t\t\t ? __builtin_signbitl(x) \\\n\
5774 \t\t\t : __builtin_signbit(x))",
5775 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5778 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5780 * Description of Solaris_Math_9 fix
5782 tSCC zSolaris_Math_9Name[] =
5786 * File name selection pattern
5788 tSCC zSolaris_Math_9List[] =
5791 * Machine/OS name selection pattern
5793 #define apzSolaris_Math_9Machs (const char**)NULL
5796 * content selection pattern - do fix if pattern found
5798 tSCC zSolaris_Math_9Select0[] =
5799 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5802 * content bypass pattern - skip fix if pattern found
5804 tSCC zSolaris_Math_9Bypass0[] =
5807 #define SOLARIS_MATH_9_TEST_CT 2
5808 static tTestDesc aSolaris_Math_9Tests[] = {
5809 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
5810 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
5813 * Fix Command Arguments for Solaris_Math_9
5815 static const char* apzSolaris_Math_9Patch[] = {
5817 "#define\t%1(x, y)%2__builtin_%1(x, y)",
5818 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5821 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5823 * Description of Solaris_Mutex_Init_1 fix
5825 tSCC zSolaris_Mutex_Init_1Name[] =
5826 "solaris_mutex_init_1";
5829 * File name selection pattern
5831 tSCC zSolaris_Mutex_Init_1List[] =
5834 * Machine/OS name selection pattern
5836 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
5839 * content selection pattern - do fix if pattern found
5841 tSCC zSolaris_Mutex_Init_1Select0[] =
5842 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
5844 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
5845 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
5846 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
5849 * Fix Command Arguments for Solaris_Mutex_Init_1
5851 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
5852 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
5853 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
5856 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5858 * Description of Solaris_Mutex_Init_2 fix
5860 tSCC zSolaris_Mutex_Init_2Name[] =
5861 "solaris_mutex_init_2";
5864 * File name selection pattern
5866 tSCC zSolaris_Mutex_Init_2List[] =
5869 * Machine/OS name selection pattern
5871 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
5872 "*-*-solaris2.[0-9]",
5873 "*-*-solaris2.[0-9][!0-9]*",
5874 (const char*)NULL };
5877 * content selection pattern - do fix if pattern found
5879 tSCC zSolaris_Mutex_Init_2Select0[] =
5880 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5882 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
5883 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
5884 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
5887 * Fix Command Arguments for Solaris_Mutex_Init_2
5889 static const char* apzSolaris_Mutex_Init_2Patch[] = {
5891 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5896 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
5897 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
5900 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5902 * Description of Solaris_Rwlock_Init_1 fix
5904 tSCC zSolaris_Rwlock_Init_1Name[] =
5905 "solaris_rwlock_init_1";
5908 * File name selection pattern
5910 tSCC zSolaris_Rwlock_Init_1List[] =
5913 * Machine/OS name selection pattern
5915 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
5917 (const char*)NULL };
5920 * content selection pattern - do fix if pattern found
5922 tSCC zSolaris_Rwlock_Init_1Select0[] =
5923 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5925 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
5926 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
5927 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
5930 * Fix Command Arguments for Solaris_Rwlock_Init_1
5932 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
5934 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
5937 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
5939 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
5942 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5944 * Description of Solaris_Once_Init_1 fix
5946 tSCC zSolaris_Once_Init_1Name[] =
5947 "solaris_once_init_1";
5950 * File name selection pattern
5952 tSCC zSolaris_Once_Init_1List[] =
5955 * Machine/OS name selection pattern
5957 tSCC* apzSolaris_Once_Init_1Machs[] = {
5959 (const char*)NULL };
5962 * content selection pattern - do fix if pattern found
5964 tSCC zSolaris_Once_Init_1Select0[] =
5965 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5967 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
5968 static tTestDesc aSolaris_Once_Init_1Tests[] = {
5969 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
5972 * Fix Command Arguments for Solaris_Once_Init_1
5974 static const char* apzSolaris_Once_Init_1Patch[] = {
5977 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
5980 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5982 * Description of Solaris_Once_Init_2 fix
5984 tSCC zSolaris_Once_Init_2Name[] =
5985 "solaris_once_init_2";
5988 * File name selection pattern
5990 tSCC zSolaris_Once_Init_2List[] =
5993 * Machine/OS name selection pattern
5995 tSCC* apzSolaris_Once_Init_2Machs[] = {
5996 "*-*-solaris2.[0-9]",
5997 "*-*-solaris2.[0-9][!0-9]*",
5998 (const char*)NULL };
6001 * content selection pattern - do fix if pattern found
6003 tSCC zSolaris_Once_Init_2Select0[] =
6004 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6006 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
6007 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6008 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6011 * Fix Command Arguments for Solaris_Once_Init_2
6013 static const char* apzSolaris_Once_Init_2Patch[] = {
6015 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6018 %1{0}, {0}, {0}, {%3}%4\n\
6020 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6025 * Description of Solaris_Socket fix
6027 tSCC zSolaris_SocketName[] =
6031 * File name selection pattern
6033 tSCC zSolaris_SocketList[] =
6036 * Machine/OS name selection pattern
6038 #define apzSolaris_SocketMachs (const char**)NULL
6041 * content selection pattern - do fix if pattern found
6043 tSCC zSolaris_SocketSelect0[] =
6044 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
6046 #define SOLARIS_SOCKET_TEST_CT 1
6047 static tTestDesc aSolaris_SocketTests[] = {
6048 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
6051 * Fix Command Arguments for Solaris_Socket
6053 static const char* apzSolaris_SocketPatch[] = {
6055 "extern int %1(int, %2void *, int, int);",
6056 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
6059 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6061 * Description of Solaris_Stdio_Tag fix
6063 tSCC zSolaris_Stdio_TagName[] =
6064 "solaris_stdio_tag";
6067 * File name selection pattern
6069 tSCC zSolaris_Stdio_TagList[] =
6072 * Machine/OS name selection pattern
6074 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6077 * content selection pattern - do fix if pattern found
6079 tSCC zSolaris_Stdio_TagSelect0[] =
6080 "__cplusplus < 54321L";
6083 * content bypass pattern - skip fix if pattern found
6085 tSCC zSolaris_Stdio_TagBypass0[] =
6088 #define SOLARIS_STDIO_TAG_TEST_CT 2
6089 static tTestDesc aSolaris_Stdio_TagTests[] = {
6090 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6091 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6094 * Fix Command Arguments for Solaris_Stdio_Tag
6096 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
6097 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6100 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6102 * Description of Solaris_Unistd fix
6104 tSCC zSolaris_UnistdName[] =
6108 * File name selection pattern
6110 tSCC zSolaris_UnistdList[] =
6113 * Machine/OS name selection pattern
6115 #define apzSolaris_UnistdMachs (const char**)NULL
6118 * content selection pattern - do fix if pattern found
6120 tSCC zSolaris_UnistdSelect0[] =
6121 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
6124 * content bypass pattern - skip fix if pattern found
6126 tSCC zSolaris_UnistdBypass0[] =
6129 #define SOLARIS_UNISTD_TEST_CT 2
6130 static tTestDesc aSolaris_UnistdTests[] = {
6131 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
6132 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
6135 * Fix Command Arguments for Solaris_Unistd
6137 static const char* apzSolaris_UnistdPatch[] = {
6139 "extern int getpagesize();\n\
6141 "^extern (pid_t|int) getpgid\\(.*\\);",
6144 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6146 * Description of Solaris_Widec fix
6148 tSCC zSolaris_WidecName[] =
6152 * File name selection pattern
6154 tSCC zSolaris_WidecList[] =
6157 * Machine/OS name selection pattern
6159 tSCC* apzSolaris_WidecMachs[] = {
6160 "*-*-solaris2.[0-5]",
6161 "*-*-solaris2.[0-5].*",
6162 (const char*)NULL };
6165 * content selection pattern - do fix if pattern found
6167 tSCC zSolaris_WidecSelect0[] =
6171 * content bypass pattern - skip fix if pattern found
6173 tSCC zSolaris_WidecBypass0[] =
6174 "include.*wchar\\.h";
6176 #define SOLARIS_WIDEC_TEST_CT 2
6177 static tTestDesc aSolaris_WidecTests[] = {
6178 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
6179 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
6182 * Fix Command Arguments for Solaris_Widec
6184 static const char* apzSolaris_WidecPatch[] = {
6187 #include <wchar.h>",
6190 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6192 * Description of Statsswtch fix
6194 tSCC zStatsswtchName[] =
6198 * File name selection pattern
6200 tSCC zStatsswtchList[] =
6203 * Machine/OS name selection pattern
6205 #define apzStatsswtchMachs (const char**)NULL
6208 * content selection pattern - do fix if pattern found
6210 tSCC zStatsswtchSelect0[] =
6213 #define STATSSWTCH_TEST_CT 1
6214 static tTestDesc aStatsswtchTests[] = {
6215 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
6218 * Fix Command Arguments for Statsswtch
6220 static const char* apzStatsswtchPatch[] = {
6225 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6227 * Description of Stdio_Stdarg_H fix
6229 tSCC zStdio_Stdarg_HName[] =
6233 * File name selection pattern
6235 tSCC zStdio_Stdarg_HList[] =
6238 * Machine/OS name selection pattern
6240 tSCC* apzStdio_Stdarg_HMachs[] = {
6241 "*-*-solaris2.1[0-9]*",
6242 (const char*)NULL };
6245 * content bypass pattern - skip fix if pattern found
6247 tSCC zStdio_Stdarg_HBypass0[] =
6248 "include.*(stdarg.h|machine/ansi.h)";
6250 #define STDIO_STDARG_H_TEST_CT 1
6251 static tTestDesc aStdio_Stdarg_HTests[] = {
6252 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6255 * Fix Command Arguments for Stdio_Stdarg_H
6257 static const char* apzStdio_Stdarg_HPatch[] = {
6259 "#define __need___va_list\n\
6260 #include <stdarg.h>\n",
6263 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6265 * Description of Stdio_Va_List fix
6267 tSCC zStdio_Va_ListName[] =
6271 * File name selection pattern
6273 tSCC zStdio_Va_ListList[] =
6274 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
6276 * Machine/OS name selection pattern
6278 tSCC* apzStdio_Va_ListMachs[] = {
6279 "*-*-solaris2.1[0-9]*",
6280 (const char*)NULL };
6283 * content bypass pattern - skip fix if pattern found
6285 tSCC zStdio_Va_ListBypass0[] =
6286 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6288 #define STDIO_VA_LIST_TEST_CT 1
6289 static tTestDesc aStdio_Va_ListTests[] = {
6290 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6293 * Fix Command Arguments for Stdio_Va_List
6295 static const char* apzStdio_Va_ListPatch[] = { "sed",
6296 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6297 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6298 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6299 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6300 s@ va_list@ __not_va_list__@\n\
6301 s@\\*va_list@*__not_va_list__@\n\
6302 s@ __va_list)@ __gnuc_va_list)@\n\
6303 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6304 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6305 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6306 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6307 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6308 s@VA_LIST@DUMMY_VA_LIST@\n\
6309 s@_Va_LIST@_VA_LIST@",
6312 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6314 * Description of Stdio_Va_List_Clients fix
6316 tSCC zStdio_Va_List_ClientsName[] =
6317 "stdio_va_list_clients";
6320 * File name selection pattern
6322 tSCC zStdio_Va_List_ClientsList[] =
6323 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
6325 * Machine/OS name selection pattern
6327 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6330 * content bypass pattern - skip fix if pattern found
6332 tSCC zStdio_Va_List_ClientsBypass0[] =
6333 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6334 tSCC zStdio_Va_List_ClientsBypass1[] =
6335 "include <stdarg\\.h>|#ifdef va_start";
6337 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
6338 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6339 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6340 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6343 * Fix Command Arguments for Stdio_Va_List_Clients
6345 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
6346 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6347 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6348 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6349 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6350 s@ va_list@ __not_va_list__@\n\
6351 s@\\*va_list@*__not_va_list__@\n\
6352 s@ __va_list)@ __gnuc_va_list)@\n\
6353 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6354 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6355 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6356 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6357 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6358 s@VA_LIST@DUMMY_VA_LIST@\n\
6359 s@_Va_LIST@_VA_LIST@",
6362 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6364 * Description of Strict_Ansi_Not fix
6366 tSCC zStrict_Ansi_NotName[] =
6370 * File name selection pattern
6372 #define zStrict_Ansi_NotList (char*)NULL
6374 * Machine/OS name selection pattern
6376 #define apzStrict_Ansi_NotMachs (const char**)NULL
6379 * content selection pattern - do fix if pattern found
6381 tSCC zStrict_Ansi_NotSelect0[] =
6382 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6385 * content bypass pattern - skip fix if pattern found
6387 tSCC zStrict_Ansi_NotBypass0[] =
6388 "GNU and MIPS C compilers define __STDC__ differently";
6389 tSCC zStrict_Ansi_NotBypass1[] =
6390 "__SCO_VERSION__.*__STDC__ != 1";
6393 * perform the C function call test
6395 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6397 #define STRICT_ANSI_NOT_TEST_CT 4
6398 static tTestDesc aStrict_Ansi_NotTests[] = {
6399 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
6400 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6401 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6402 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6405 * Fix Command Arguments for Strict_Ansi_Not
6407 static const char* apzStrict_Ansi_NotPatch[] = {
6409 "%1 !defined(__STRICT_ANSI__)",
6412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6414 * Description of Strict_Ansi_Not_Ctd fix
6416 tSCC zStrict_Ansi_Not_CtdName[] =
6417 "strict_ansi_not_ctd";
6420 * File name selection pattern
6422 tSCC zStrict_Ansi_Not_CtdList[] =
6423 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6425 * Machine/OS name selection pattern
6427 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6430 * content selection pattern - do fix if pattern found
6432 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6433 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6436 * perform the C function call test
6438 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6440 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
6441 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6442 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6443 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6446 * Fix Command Arguments for Strict_Ansi_Not_Ctd
6448 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6450 "%1 !defined(__STRICT_ANSI__)",
6453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6455 * Description of Strict_Ansi_Only fix
6457 tSCC zStrict_Ansi_OnlyName[] =
6461 * File name selection pattern
6463 #define zStrict_Ansi_OnlyList (char*)NULL
6465 * Machine/OS name selection pattern
6467 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6470 * content selection pattern - do fix if pattern found
6472 tSCC zStrict_Ansi_OnlySelect0[] =
6473 "^([ \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)";
6476 * perform the C function call test
6478 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6480 #define STRICT_ANSI_ONLY_TEST_CT 2
6481 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6482 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6483 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6486 * Fix Command Arguments for Strict_Ansi_Only
6488 static const char* apzStrict_Ansi_OnlyPatch[] = {
6490 "%1 defined(__STRICT_ANSI__)",
6493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6495 * Description of Struct_File fix
6497 tSCC zStruct_FileName[] =
6501 * File name selection pattern
6503 tSCC zStruct_FileList[] =
6506 * Machine/OS name selection pattern
6508 #define apzStruct_FileMachs (const char**)NULL
6511 * content selection pattern - do fix if pattern found
6513 tSCC zStruct_FileSelect0[] =
6514 "^.*xdrstdio_create.*struct __file_s";
6516 #define STRUCT_FILE_TEST_CT 1
6517 static tTestDesc aStruct_FileTests[] = {
6518 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6521 * Fix Command Arguments for Struct_File
6523 static const char* apzStruct_FilePatch[] = {
6525 "struct __file_s;\n\
6529 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6531 * Description of Struct_Sockaddr fix
6533 tSCC zStruct_SockaddrName[] =
6537 * File name selection pattern
6539 tSCC zStruct_SockaddrList[] =
6542 * Machine/OS name selection pattern
6544 #define apzStruct_SockaddrMachs (const char**)NULL
6547 * content selection pattern - do fix if pattern found
6549 tSCC zStruct_SockaddrSelect0[] =
6550 "^.*authdes_create.*struct sockaddr[^_]";
6553 * content bypass pattern - skip fix if pattern found
6555 tSCC zStruct_SockaddrBypass0[] =
6557 tSCC zStruct_SockaddrBypass1[] =
6558 "struct sockaddr;\n";
6560 #define STRUCT_SOCKADDR_TEST_CT 3
6561 static tTestDesc aStruct_SockaddrTests[] = {
6562 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6563 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6564 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6567 * Fix Command Arguments for Struct_Sockaddr
6569 static const char* apzStruct_SockaddrPatch[] = {
6571 "struct sockaddr;\n\
6575 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6577 * Description of Sun_Auth_Proto fix
6579 tSCC zSun_Auth_ProtoName[] =
6583 * File name selection pattern
6585 tSCC zSun_Auth_ProtoList[] =
6586 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6588 * Machine/OS name selection pattern
6590 #define apzSun_Auth_ProtoMachs (const char**)NULL
6593 * content selection pattern - do fix if pattern found
6595 tSCC zSun_Auth_ProtoSelect0[] =
6596 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6599 * content bypass pattern - skip fix if pattern found
6601 tSCC zSun_Auth_ProtoBypass0[] =
6604 #define SUN_AUTH_PROTO_TEST_CT 2
6605 static tTestDesc aSun_Auth_ProtoTests[] = {
6606 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6607 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6610 * Fix Command Arguments for Sun_Auth_Proto
6612 static const char* apzSun_Auth_ProtoPatch[] = {
6614 "#ifdef __cplusplus\n\
6619 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6622 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6624 * Description of Sun_Bogus_Ifdef fix
6626 tSCC zSun_Bogus_IfdefName[] =
6630 * File name selection pattern
6632 tSCC zSun_Bogus_IfdefList[] =
6633 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
6635 * Machine/OS name selection pattern
6637 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6640 * content selection pattern - do fix if pattern found
6642 tSCC zSun_Bogus_IfdefSelect0[] =
6643 "#ifdef(.*\\|\\|.*)";
6645 #define SUN_BOGUS_IFDEF_TEST_CT 1
6646 static tTestDesc aSun_Bogus_IfdefTests[] = {
6647 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6650 * Fix Command Arguments for Sun_Bogus_Ifdef
6652 static const char* apzSun_Bogus_IfdefPatch[] = {
6657 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6659 * Description of Sun_Catmacro fix
6661 tSCC zSun_CatmacroName[] =
6665 * File name selection pattern
6667 tSCC zSun_CatmacroList[] =
6668 "pixrect/memvar.h\0";
6670 * Machine/OS name selection pattern
6672 #define apzSun_CatmacroMachs (const char**)NULL
6675 * content selection pattern - do fix if pattern found
6677 tSCC zSun_CatmacroSelect0[] =
6678 "^#define[ \t]+CAT\\(a,b\\).*";
6680 #define SUN_CATMACRO_TEST_CT 1
6681 static tTestDesc aSun_CatmacroTests[] = {
6682 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
6685 * Fix Command Arguments for Sun_Catmacro
6687 static const char* apzSun_CatmacroPatch[] = {
6690 # define CAT(a,b) a##b\n\
6696 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6698 * Description of Sun_Malloc fix
6700 tSCC zSun_MallocName[] =
6704 * File name selection pattern
6706 tSCC zSun_MallocList[] =
6709 * Machine/OS name selection pattern
6711 #define apzSun_MallocMachs (const char**)NULL
6714 * content bypass pattern - skip fix if pattern found
6716 tSCC zSun_MallocBypass0[] =
6717 "_CLASSIC_ANSI_TYPES";
6719 #define SUN_MALLOC_TEST_CT 1
6720 static tTestDesc aSun_MallocTests[] = {
6721 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
6724 * Fix Command Arguments for Sun_Malloc
6726 static const char* apzSun_MallocPatch[] = { "sed",
6727 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6728 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6729 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6730 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6731 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6734 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6736 * Description of Sun_Rusers_Semi fix
6738 tSCC zSun_Rusers_SemiName[] =
6742 * File name selection pattern
6744 tSCC zSun_Rusers_SemiList[] =
6745 "rpcsvc/rusers.h\0";
6747 * Machine/OS name selection pattern
6749 #define apzSun_Rusers_SemiMachs (const char**)NULL
6752 * content selection pattern - do fix if pattern found
6754 tSCC zSun_Rusers_SemiSelect0[] =
6757 #define SUN_RUSERS_SEMI_TEST_CT 1
6758 static tTestDesc aSun_Rusers_SemiTests[] = {
6759 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6762 * Fix Command Arguments for Sun_Rusers_Semi
6764 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
6765 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6768 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6770 * Description of Sun_Signal fix
6772 tSCC zSun_SignalName[] =
6776 * File name selection pattern
6778 tSCC zSun_SignalList[] =
6779 "sys/signal.h\0signal.h\0";
6781 * Machine/OS name selection pattern
6783 #define apzSun_SignalMachs (const char**)NULL
6786 * content selection pattern - do fix if pattern found
6788 tSCC zSun_SignalSelect0[] =
6789 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6791 #define SUN_SIGNAL_TEST_CT 1
6792 static tTestDesc aSun_SignalTests[] = {
6793 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
6796 * Fix Command Arguments for Sun_Signal
6798 static const char* apzSun_SignalPatch[] = {
6800 "#ifdef __cplusplus\n\
6801 void\t(*signal(...))(...);\n\
6807 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6809 * Description of Sunos_Strlen fix
6811 tSCC zSunos_StrlenName[] =
6815 * File name selection pattern
6817 tSCC zSunos_StrlenList[] =
6820 * Machine/OS name selection pattern
6822 #define apzSunos_StrlenMachs (const char**)NULL
6825 * content selection pattern - do fix if pattern found
6827 tSCC zSunos_StrlenSelect0[] =
6828 "int[ \t]*strlen\\(\\);(.*)";
6830 #define SUNOS_STRLEN_TEST_CT 1
6831 static tTestDesc aSunos_StrlenTests[] = {
6832 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
6835 * Fix Command Arguments for Sunos_Strlen
6837 static const char* apzSunos_StrlenPatch[] = {
6839 "__SIZE_TYPE__ strlen();%1",
6842 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6844 * Description of Svr4_Disable_Opt fix
6846 tSCC zSvr4_Disable_OptName[] =
6850 * File name selection pattern
6852 tSCC zSvr4_Disable_OptList[] =
6855 * Machine/OS name selection pattern
6857 #define apzSvr4_Disable_OptMachs (const char**)NULL
6860 * content selection pattern - do fix if pattern found
6862 tSCC zSvr4_Disable_OptSelect0[] =
6863 "#define.*__std_hdr_";
6865 #define SVR4_DISABLE_OPT_TEST_CT 1
6866 static tTestDesc aSvr4_Disable_OptTests[] = {
6867 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
6870 * Fix Command Arguments for Svr4_Disable_Opt
6872 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
6873 "-e", "/#define.*__std_hdr_/d",
6876 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6878 * Description of Svr4_Getcwd fix
6880 tSCC zSvr4_GetcwdName[] =
6884 * File name selection pattern
6886 tSCC zSvr4_GetcwdList[] =
6887 "stdlib.h\0unistd.h\0prototypes.h\0";
6889 * Machine/OS name selection pattern
6891 #define apzSvr4_GetcwdMachs (const char**)NULL
6894 * content selection pattern - do fix if pattern found
6896 tSCC zSvr4_GetcwdSelect0[] =
6897 "getcwd\\(char \\*, int\\)";
6899 #define SVR4_GETCWD_TEST_CT 1
6900 static tTestDesc aSvr4_GetcwdTests[] = {
6901 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
6904 * Fix Command Arguments for Svr4_Getcwd
6906 static const char* apzSvr4_GetcwdPatch[] = {
6908 "getcwd(char *, size_t)",
6911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6913 * Description of Svr4_Krnl fix
6915 tSCC zSvr4_KrnlName[] =
6919 * File name selection pattern
6921 tSCC zSvr4_KrnlList[] =
6922 "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";
6924 * Machine/OS name selection pattern
6926 tSCC* apzSvr4_KrnlMachs[] = {
6928 "i?86-sequent-ptx*",
6929 (const char*)NULL };
6932 * content bypass pattern - skip fix if pattern found
6934 tSCC zSvr4_KrnlBypass0[] =
6937 #define SVR4_KRNL_TEST_CT 1
6938 static tTestDesc aSvr4_KrnlTests[] = {
6939 { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, };
6942 * Fix Command Arguments for Svr4_Krnl
6944 static const char* apzSvr4_KrnlPatch[] = {
6947 "#endif /* _KERNEL */\n",
6950 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6952 * Description of Svr4_Profil fix
6954 tSCC zSvr4_ProfilName[] =
6958 * File name selection pattern
6960 tSCC zSvr4_ProfilList[] =
6961 "stdlib.h\0unistd.h\0";
6963 * Machine/OS name selection pattern
6965 #define apzSvr4_ProfilMachs (const char**)NULL
6968 * content selection pattern - do fix if pattern found
6970 tSCC zSvr4_ProfilSelect0[] =
6971 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
6974 * content bypass pattern - skip fix if pattern found
6976 tSCC zSvr4_ProfilBypass0[] =
6979 #define SVR4_PROFIL_TEST_CT 2
6980 static tTestDesc aSvr4_ProfilTests[] = {
6981 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
6982 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
6985 * Fix Command Arguments for Svr4_Profil
6987 static const char* apzSvr4_ProfilPatch[] = {
6989 "profil(unsigned short *, size_t, int, unsigned int)",
6992 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6994 * Description of Svr4_Sighandler_Type fix
6996 tSCC zSvr4_Sighandler_TypeName[] =
6997 "svr4_sighandler_type";
7000 * File name selection pattern
7002 tSCC zSvr4_Sighandler_TypeList[] =
7005 * Machine/OS name selection pattern
7007 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7010 * content selection pattern - do fix if pattern found
7012 tSCC zSvr4_Sighandler_TypeSelect0[] =
7013 "void *\\(\\*\\)\\(\\)";
7015 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7016 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7017 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7020 * Fix Command Arguments for Svr4_Sighandler_Type
7022 static const char* apzSvr4_Sighandler_TypePatch[] = {
7027 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7029 * Description of Svr4_Undeclared_Getrnge fix
7031 tSCC zSvr4_Undeclared_GetrngeName[] =
7032 "svr4_undeclared_getrnge";
7035 * File name selection pattern
7037 tSCC zSvr4_Undeclared_GetrngeList[] =
7040 * Machine/OS name selection pattern
7042 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7045 * content selection pattern - do fix if pattern found
7047 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7051 * content bypass pattern - skip fix if pattern found
7053 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7054 "static void getrnge";
7056 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
7057 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7058 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7059 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7062 * Fix Command Arguments for Svr4_Undeclared_Getrnge
7064 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7067 static int getrnge ();",
7068 "^static int[ \t]+size;",
7071 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7073 * Description of Sysv68_String fix
7075 tSCC zSysv68_StringName[] =
7079 * File name selection pattern
7081 tSCC zSysv68_StringList[] =
7082 "testing.h\0string.h\0";
7084 * Machine/OS name selection pattern
7086 #define apzSysv68_StringMachs (const char**)NULL
7089 * content bypass pattern - skip fix if pattern found
7091 tSCC zSysv68_StringBypass0[] =
7092 "_CLASSIC_ANSI_TYPES";
7094 #define SYSV68_STRING_TEST_CT 1
7095 static tTestDesc aSysv68_StringTests[] = {
7096 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
7099 * Fix Command Arguments for Sysv68_String
7101 static const char* apzSysv68_StringPatch[] = { "sed",
7102 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7103 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7104 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7105 "-e", "/^extern char$/N",
7106 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7107 "-e", "/^extern int$/N",
7108 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7109 "-e", "/^\tstrncmp(),$/N",
7110 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7111 extern unsigned int\\\n\
7115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7117 * Description of Sysz_Stdlib_For_Sun fix
7119 tSCC zSysz_Stdlib_For_SunName[] =
7120 "sysz_stdlib_for_sun";
7123 * File name selection pattern
7125 tSCC zSysz_Stdlib_For_SunList[] =
7128 * Machine/OS name selection pattern
7130 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7133 * content selection pattern - do fix if pattern found
7135 tSCC zSysz_Stdlib_For_SunSelect0[] =
7136 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7139 * content bypass pattern - skip fix if pattern found
7141 tSCC zSysz_Stdlib_For_SunBypass0[] =
7142 "_CLASSIC_ANSI_TYPES";
7144 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
7145 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7146 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7147 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7150 * Fix Command Arguments for Sysz_Stdlib_For_Sun
7152 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7159 * Description of Thread_Keyword fix
7161 tSCC zThread_KeywordName[] =
7165 * File name selection pattern
7167 tSCC zThread_KeywordList[] =
7168 "pthread.h\0bits/sigthread.h\0";
7170 * Machine/OS name selection pattern
7172 #define apzThread_KeywordMachs (const char**)NULL
7175 * content selection pattern - do fix if pattern found
7177 tSCC zThread_KeywordSelect0[] =
7178 "([* ])__thread([,)])";
7180 #define THREAD_KEYWORD_TEST_CT 1
7181 static tTestDesc aThread_KeywordTests[] = {
7182 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
7185 * Fix Command Arguments for Thread_Keyword
7187 static const char* apzThread_KeywordPatch[] = {
7192 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7194 * Description of Tinfo_Cplusplus fix
7196 tSCC zTinfo_CplusplusName[] =
7200 * File name selection pattern
7202 tSCC zTinfo_CplusplusList[] =
7205 * Machine/OS name selection pattern
7207 #define apzTinfo_CplusplusMachs (const char**)NULL
7210 * content selection pattern - do fix if pattern found
7212 tSCC zTinfo_CplusplusSelect0[] =
7215 #define TINFO_CPLUSPLUS_TEST_CT 1
7216 static tTestDesc aTinfo_CplusplusTests[] = {
7217 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7220 * Fix Command Arguments for Tinfo_Cplusplus
7222 static const char* apzTinfo_CplusplusPatch[] = {
7227 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7229 * Description of Ultrix_Atexit_Param fix
7231 tSCC zUltrix_Atexit_ParamName[] =
7232 "ultrix_atexit_param";
7235 * File name selection pattern
7237 tSCC zUltrix_Atexit_ParamList[] =
7240 * Machine/OS name selection pattern
7242 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
7245 * content selection pattern - do fix if pattern found
7247 tSCC zUltrix_Atexit_ParamSelect0[] =
7248 "atexit\\(.*\\(\\)";
7250 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
7251 static tTestDesc aUltrix_Atexit_ParamTests[] = {
7252 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
7255 * Fix Command Arguments for Ultrix_Atexit_Param
7257 static const char* apzUltrix_Atexit_ParamPatch[] = {
7259 "atexit( void (*__func)( void )",
7262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7264 * Description of Ultrix_Atof_Param fix
7266 tSCC zUltrix_Atof_ParamName[] =
7267 "ultrix_atof_param";
7270 * File name selection pattern
7272 tSCC zUltrix_Atof_ParamList[] =
7275 * Machine/OS name selection pattern
7277 #define apzUltrix_Atof_ParamMachs (const char**)NULL
7280 * content selection pattern - do fix if pattern found
7282 tSCC zUltrix_Atof_ParamSelect0[] =
7283 "atof\\([ \t]*char";
7285 #define ULTRIX_ATOF_PARAM_TEST_CT 1
7286 static tTestDesc aUltrix_Atof_ParamTests[] = {
7287 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
7290 * Fix Command Arguments for Ultrix_Atof_Param
7292 static const char* apzUltrix_Atof_ParamPatch[] = {
7297 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7299 * Description of Ultrix_Const fix
7301 tSCC zUltrix_ConstName[] =
7305 * File name selection pattern
7307 tSCC zUltrix_ConstList[] =
7310 * Machine/OS name selection pattern
7312 #define apzUltrix_ConstMachs (const char**)NULL
7315 * content selection pattern - do fix if pattern found
7317 tSCC zUltrix_ConstSelect0[] =
7318 "perror\\( char \\*";
7320 #define ULTRIX_CONST_TEST_CT 1
7321 static tTestDesc aUltrix_ConstTests[] = {
7322 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
7325 * Fix Command Arguments for Ultrix_Const
7327 static const char* apzUltrix_ConstPatch[] = {
7330 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7333 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7335 * Description of Ultrix_Const2 fix
7337 tSCC zUltrix_Const2Name[] =
7341 * File name selection pattern
7343 tSCC zUltrix_Const2List[] =
7346 * Machine/OS name selection pattern
7348 #define apzUltrix_Const2Machs (const char**)NULL
7351 * content selection pattern - do fix if pattern found
7353 tSCC zUltrix_Const2Select0[] =
7354 "\\*fopen\\( char \\*";
7356 #define ULTRIX_CONST2_TEST_CT 1
7357 static tTestDesc aUltrix_Const2Tests[] = {
7358 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
7361 * Fix Command Arguments for Ultrix_Const2
7363 static const char* apzUltrix_Const2Patch[] = {
7365 "%1( const char *%3, const char *",
7366 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7369 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7371 * Description of Ultrix_Const3 fix
7373 tSCC zUltrix_Const3Name[] =
7377 * File name selection pattern
7379 tSCC zUltrix_Const3List[] =
7382 * Machine/OS name selection pattern
7384 #define apzUltrix_Const3Machs (const char**)NULL
7387 * content selection pattern - do fix if pattern found
7389 tSCC zUltrix_Const3Select0[] =
7390 "fdopen\\( .*, char \\*";
7392 #define ULTRIX_CONST3_TEST_CT 1
7393 static tTestDesc aUltrix_Const3Tests[] = {
7394 { TT_EGREP, zUltrix_Const3Select0, (regex_t*)NULL }, };
7397 * Fix Command Arguments for Ultrix_Const3
7399 static const char* apzUltrix_Const3Patch[] = {
7402 "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
7405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7407 * Description of Ultrix_Fix_Fixproto fix
7409 tSCC zUltrix_Fix_FixprotoName[] =
7410 "ultrix_fix_fixproto";
7413 * File name selection pattern
7415 tSCC zUltrix_Fix_FixprotoList[] =
7418 * Machine/OS name selection pattern
7420 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
7423 * content selection pattern - do fix if pattern found
7425 tSCC zUltrix_Fix_FixprotoSelect0[] =
7428 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
7429 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
7430 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
7433 * Fix Command Arguments for Ultrix_Fix_Fixproto
7435 static const char* apzUltrix_Fix_FixprotoPatch[] = {
7439 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
7442 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7444 * Description of Ultrix_Ifdef fix
7446 tSCC zUltrix_IfdefName[] =
7450 * File name selection pattern
7452 tSCC zUltrix_IfdefList[] =
7455 * Machine/OS name selection pattern
7457 #define apzUltrix_IfdefMachs (const char**)NULL
7460 * content selection pattern - do fix if pattern found
7462 tSCC zUltrix_IfdefSelect0[] =
7463 "^#ifdef KERNEL[ \t]+&&";
7465 #define ULTRIX_IFDEF_TEST_CT 1
7466 static tTestDesc aUltrix_IfdefTests[] = {
7467 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
7470 * Fix Command Arguments for Ultrix_Ifdef
7472 static const char* apzUltrix_IfdefPatch[] = {
7474 "#if defined(KERNEL) &&",
7477 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7479 * Description of Ultrix_Locale fix
7481 tSCC zUltrix_LocaleName[] =
7485 * File name selection pattern
7487 tSCC zUltrix_LocaleList[] =
7490 * Machine/OS name selection pattern
7492 #define apzUltrix_LocaleMachs (const char**)NULL
7495 * content selection pattern - do fix if pattern found
7497 tSCC zUltrix_LocaleSelect0[] =
7498 "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
7500 #define ULTRIX_LOCALE_TEST_CT 1
7501 static tTestDesc aUltrix_LocaleTests[] = {
7502 { TT_EGREP, zUltrix_LocaleSelect0, (regex_t*)NULL }, };
7505 * Fix Command Arguments for Ultrix_Locale
7507 static const char* apzUltrix_LocalePatch[] = {
7511 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7513 * Description of Ultrix_Math_Ifdef fix
7515 tSCC zUltrix_Math_IfdefName[] =
7516 "ultrix_math_ifdef";
7519 * File name selection pattern
7521 tSCC zUltrix_Math_IfdefList[] =
7522 "sys/limits.h\0float.h\0math.h\0";
7524 * Machine/OS name selection pattern
7526 #define apzUltrix_Math_IfdefMachs (const char**)NULL
7529 * content selection pattern - do fix if pattern found
7531 tSCC zUltrix_Math_IfdefSelect0[] =
7532 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
7534 #define ULTRIX_MATH_IFDEF_TEST_CT 1
7535 static tTestDesc aUltrix_Math_IfdefTests[] = {
7536 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
7539 * Fix Command Arguments for Ultrix_Math_Ifdef
7541 static const char* apzUltrix_Math_IfdefPatch[] = {
7546 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7548 * Description of Ultrix_Nested_Ioctl fix
7550 tSCC zUltrix_Nested_IoctlName[] =
7551 "ultrix_nested_ioctl";
7554 * File name selection pattern
7556 tSCC zUltrix_Nested_IoctlList[] =
7559 * Machine/OS name selection pattern
7561 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
7564 * content selection pattern - do fix if pattern found
7566 tSCC zUltrix_Nested_IoctlSelect0[] =
7567 "^/\\* #define SIOCSCREEN";
7569 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
7570 static tTestDesc aUltrix_Nested_IoctlTests[] = {
7571 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
7574 * Fix Command Arguments for Ultrix_Nested_Ioctl
7576 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
7577 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
7580 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7582 * Description of Ultrix_Nested_Svc fix
7584 tSCC zUltrix_Nested_SvcName[] =
7585 "ultrix_nested_svc";
7588 * File name selection pattern
7590 tSCC zUltrix_Nested_SvcList[] =
7593 * Machine/OS name selection pattern
7595 #define apzUltrix_Nested_SvcMachs (const char**)NULL
7598 * content selection pattern - do fix if pattern found
7600 tSCC zUltrix_Nested_SvcSelect0[] =
7601 "^ \\*[ \t]*int protocol; */\\*";
7603 #define ULTRIX_NESTED_SVC_TEST_CT 1
7604 static tTestDesc aUltrix_Nested_SvcTests[] = {
7605 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
7608 * Fix Command Arguments for Ultrix_Nested_Svc
7610 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
7611 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
7614 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7616 * Description of Ultrix_Stat fix
7618 tSCC zUltrix_StatName[] =
7622 * File name selection pattern
7624 tSCC zUltrix_StatList[] =
7627 * Machine/OS name selection pattern
7629 #define apzUltrix_StatMachs (const char**)NULL
7632 * content selection pattern - do fix if pattern found
7634 tSCC zUltrix_StatSelect0[] =
7635 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
7637 #define ULTRIX_STAT_TEST_CT 1
7638 static tTestDesc aUltrix_StatTests[] = {
7639 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
7642 * Fix Command Arguments for Ultrix_Stat
7644 static const char* apzUltrix_StatPatch[] = { "sed",
7645 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
7647 /* macro to test for symbolic link */\\\n\
7648 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
7649 "-e", "/^[ \t]*fstat(),$/a\\\n\
7653 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7655 * Description of Ultrix_Static fix
7657 tSCC zUltrix_StaticName[] =
7661 * File name selection pattern
7663 tSCC zUltrix_StaticList[] =
7666 * Machine/OS name selection pattern
7668 #define apzUltrix_StaticMachs (const char**)NULL
7671 * content selection pattern - do fix if pattern found
7673 tSCC zUltrix_StaticSelect0[] =
7674 "#include \"r[34]_cpu";
7676 #define ULTRIX_STATIC_TEST_CT 1
7677 static tTestDesc aUltrix_StaticTests[] = {
7678 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
7681 * Fix Command Arguments for Ultrix_Static
7683 static const char* apzUltrix_StaticPatch[] = { "sed",
7684 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
7685 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
7686 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
7689 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7691 * Description of Ultrix_Stdlib fix
7693 tSCC zUltrix_StdlibName[] =
7697 * File name selection pattern
7699 tSCC zUltrix_StdlibList[] =
7702 * Machine/OS name selection pattern
7704 #define apzUltrix_StdlibMachs (const char**)NULL
7707 * content selection pattern - do fix if pattern found
7709 tSCC zUltrix_StdlibSelect0[] =
7710 "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
7712 #define ULTRIX_STDLIB_TEST_CT 1
7713 static tTestDesc aUltrix_StdlibTests[] = {
7714 { TT_EGREP, zUltrix_StdlibSelect0, (regex_t*)NULL }, };
7717 * Fix Command Arguments for Ultrix_Stdlib
7719 static const char* apzUltrix_StdlibPatch[] = { "sed",
7720 "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
7721 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
7722 void\t\tunsetenv( const char *__name );\\\n\
7723 int\t\tputenv( char *__s );\n",
7724 "-e", "/^char.*getenv();.*$/a\\\n\
7726 void\tunsetenv();\\\n\
7730 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7732 * Description of Ultrix_Strings fix
7734 tSCC zUltrix_StringsName[] =
7738 * File name selection pattern
7740 tSCC zUltrix_StringsList[] =
7743 * Machine/OS name selection pattern
7745 #define apzUltrix_StringsMachs (const char**)NULL
7748 * content selection pattern - do fix if pattern found
7750 tSCC zUltrix_StringsSelect0[] =
7751 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7753 #define ULTRIX_STRINGS_TEST_CT 1
7754 static tTestDesc aUltrix_StringsTests[] = {
7755 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
7758 * Fix Command Arguments for Ultrix_Strings
7760 static const char* apzUltrix_StringsPatch[] = {
7764 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7766 * Description of Ultrix_Strings2 fix
7768 tSCC zUltrix_Strings2Name[] =
7772 * File name selection pattern
7774 tSCC zUltrix_Strings2List[] =
7777 * Machine/OS name selection pattern
7779 #define apzUltrix_Strings2Machs (const char**)NULL
7782 * content selection pattern - do fix if pattern found
7784 tSCC zUltrix_Strings2Select0[] =
7785 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7787 #define ULTRIX_STRINGS2_TEST_CT 1
7788 static tTestDesc aUltrix_Strings2Tests[] = {
7789 { TT_EGREP, zUltrix_Strings2Select0, (regex_t*)NULL }, };
7792 * Fix Command Arguments for Ultrix_Strings2
7794 static const char* apzUltrix_Strings2Patch[] = { "sed",
7795 "-e", "/^.*strncmp( const .* );.*/a\\\n\
7798 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
7799 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
7800 "-e", "/^.*strncmp();.*/a\\\n\
7802 \tstrcasecmp(),\\\n\
7803 \tstrncasecmp();\n",
7806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7808 * Description of Ultrix_Sys_Time fix
7810 tSCC zUltrix_Sys_TimeName[] =
7814 * File name selection pattern
7816 tSCC zUltrix_Sys_TimeList[] =
7819 * Machine/OS name selection pattern
7821 #define apzUltrix_Sys_TimeMachs (const char**)NULL
7824 * content selection pattern - do fix if pattern found
7826 tSCC zUltrix_Sys_TimeSelect0[] =
7827 "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
7829 #define ULTRIX_SYS_TIME_TEST_CT 1
7830 static tTestDesc aUltrix_Sys_TimeTests[] = {
7831 { TT_EGREP, zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
7834 * Fix Command Arguments for Ultrix_Sys_Time
7836 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
7837 "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
7839 extern int adjtime(struct timeval *, struct timeval *);\\\n\
7840 extern int getitimer(int, struct itimerval *);\\\n\
7841 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
7842 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
7843 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
7844 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
7845 extern int stime(const time_t *);\\\n\
7846 extern int utimes(const char *, const struct timeval[2]);\\\n\
7847 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
7848 "-e", "/^extern.*double.*difftime();.*$/a\\\n\
7849 extern\tint adjtime();\\\n\
7850 extern\tint getitimer();\\\n\
7851 extern\tint setitimer();\\\n\
7852 extern\tint gettimeofday();\\\n\
7853 extern\tint settimeofday();\\\n\
7854 extern\tvoid profil();\\\n\
7855 extern\tint stime();\\\n\
7856 extern\tint utimes();\\\n\
7857 extern\tint select();\n",
7860 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7862 * Description of Ultrix_Unistd fix
7864 tSCC zUltrix_UnistdName[] =
7868 * File name selection pattern
7870 tSCC zUltrix_UnistdList[] =
7873 * Machine/OS name selection pattern
7875 #define apzUltrix_UnistdMachs (const char**)NULL
7878 * content selection pattern - do fix if pattern found
7880 tSCC zUltrix_UnistdSelect0[] =
7881 "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
7883 #define ULTRIX_UNISTD_TEST_CT 1
7884 static tTestDesc aUltrix_UnistdTests[] = {
7885 { TT_EGREP, zUltrix_UnistdSelect0, (regex_t*)NULL }, };
7888 * Fix Command Arguments for Ultrix_Unistd
7890 static const char* apzUltrix_UnistdPatch[] = { "sed",
7891 "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
7892 \tgetpagesize(),\n",
7893 "-e", "/^[ \t]*fork(),.*$/a\\\n\
7897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7899 * Description of Unicosmk_Restrict fix
7901 tSCC zUnicosmk_RestrictName[] =
7902 "unicosmk_restrict";
7905 * File name selection pattern
7907 tSCC zUnicosmk_RestrictList[] =
7908 "stdio.h\0stdlib.h\0wchar.h\0";
7910 * Machine/OS name selection pattern
7912 tSCC* apzUnicosmk_RestrictMachs[] = {
7914 (const char*)NULL };
7917 * content selection pattern - do fix if pattern found
7919 tSCC zUnicosmk_RestrictSelect0[] =
7920 "(\\*[ \t]*)restrict([ \t]+)";
7922 #define UNICOSMK_RESTRICT_TEST_CT 1
7923 static tTestDesc aUnicosmk_RestrictTests[] = {
7924 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
7927 * Fix Command Arguments for Unicosmk_Restrict
7929 static const char* apzUnicosmk_RestrictPatch[] = {
7934 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7936 * Description of Uw7_Byteorder_Fix fix
7938 tSCC zUw7_Byteorder_FixName[] =
7939 "uw7_byteorder_fix";
7942 * File name selection pattern
7944 tSCC zUw7_Byteorder_FixList[] =
7947 * Machine/OS name selection pattern
7949 tSCC* apzUw7_Byteorder_FixMachs[] = {
7953 "i?86-*-solaris2.[0-4]",
7954 "powerpcle-*-solaris2.[0-4]",
7955 "sparc-*-solaris2.[0-4]",
7956 (const char*)NULL };
7959 * content selection pattern - do fix if pattern found
7961 tSCC zUw7_Byteorder_FixSelect0[] =
7965 * perform the 'test' shell command - do fix on success
7967 tSCC zUw7_Byteorder_FixTest0[] =
7968 "-f sys/byteorder.h";
7970 #define UW7_BYTEORDER_FIX_TEST_CT 2
7971 static tTestDesc aUw7_Byteorder_FixTests[] = {
7972 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
7973 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
7976 * Fix Command Arguments for Uw7_Byteorder_Fix
7978 static const char* apzUw7_Byteorder_FixPatch[] = {
7981 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
7984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7986 * Description of Va_I960_Macro fix
7988 tSCC zVa_I960_MacroName[] =
7992 * File name selection pattern
7994 tSCC zVa_I960_MacroList[] =
7995 "arch/i960/archI960.h\0";
7997 * Machine/OS name selection pattern
7999 #define apzVa_I960_MacroMachs (const char**)NULL
8002 * content selection pattern - do fix if pattern found
8004 tSCC zVa_I960_MacroSelect0[] =
8005 "__(vsiz|vali|vpad|alignof__)";
8007 #define VA_I960_MACRO_TEST_CT 1
8008 static tTestDesc aVa_I960_MacroTests[] = {
8009 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8012 * Fix Command Arguments for Va_I960_Macro
8014 static const char* apzVa_I960_MacroPatch[] = {
8019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8021 * Description of Void_Null fix
8023 tSCC zVoid_NullName[] =
8027 * File name selection pattern
8029 tSCC zVoid_NullList[] =
8030 "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";
8032 * Machine/OS name selection pattern
8034 #define apzVoid_NullMachs (const char**)NULL
8037 * content selection pattern - do fix if pattern found
8039 tSCC zVoid_NullSelect0[] =
8040 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8043 * content bypass pattern - skip fix if pattern found
8045 tSCC zVoid_NullBypass0[] =
8048 #define VOID_NULL_TEST_CT 2
8049 static tTestDesc aVoid_NullTests[] = {
8050 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
8051 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
8054 * Fix Command Arguments for Void_Null
8056 static const char* apzVoid_NullPatch[] = {
8061 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8063 * Description of Vxworks_Gcc_Problem fix
8065 tSCC zVxworks_Gcc_ProblemName[] =
8066 "vxworks_gcc_problem";
8069 * File name selection pattern
8071 tSCC zVxworks_Gcc_ProblemList[] =
8072 "types/vxTypesBase.h\0";
8074 * Machine/OS name selection pattern
8076 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8079 * content selection pattern - do fix if pattern found
8081 tSCC zVxworks_Gcc_ProblemSelect0[] =
8082 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8084 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
8085 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8086 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8089 * Fix Command Arguments for Vxworks_Gcc_Problem
8091 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
8092 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8093 "-e", "/[ \t]size_t/i\\\n\
8094 #ifndef _GCC_SIZE_T\\\n\
8095 #define _GCC_SIZE_T\n",
8096 "-e", "/[ \t]size_t/a\\\n\
8098 "-e", "/[ \t]ptrdiff_t/i\\\n\
8099 #ifndef _GCC_PTRDIFF_T\\\n\
8100 #define _GCC_PTRDIFF_T\n",
8101 "-e", "/[ \t]ptrdiff_t/a\\\n\
8103 "-e", "/[ \t]wchar_t/i\\\n\
8104 #ifndef _GCC_WCHAR_T\\\n\
8105 #define _GCC_WCHAR_T\n",
8106 "-e", "/[ \t]wchar_t/a\\\n\
8110 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8112 * Description of Vxworks_Needs_Vxtypes fix
8114 tSCC zVxworks_Needs_VxtypesName[] =
8115 "vxworks_needs_vxtypes";
8118 * File name selection pattern
8120 tSCC zVxworks_Needs_VxtypesList[] =
8123 * Machine/OS name selection pattern
8125 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8128 * content selection pattern - do fix if pattern found
8130 tSCC zVxworks_Needs_VxtypesSelect0[] =
8131 "uint_t([ \t]+_clocks_per_sec)";
8133 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
8134 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8135 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8138 * Fix Command Arguments for Vxworks_Needs_Vxtypes
8140 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8145 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8147 * Description of Vxworks_Needs_Vxworks fix
8149 tSCC zVxworks_Needs_VxworksName[] =
8150 "vxworks_needs_vxworks";
8153 * File name selection pattern
8155 tSCC zVxworks_Needs_VxworksList[] =
8158 * Machine/OS name selection pattern
8160 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8163 * content selection pattern - do fix if pattern found
8165 tSCC zVxworks_Needs_VxworksSelect0[] =
8166 "#[ \t]define[ \t]+__INCstath";
8169 * perform the 'test' shell command - do fix on success
8171 tSCC zVxworks_Needs_VxworksTest0[] =
8172 " -r types/vxTypesOld.h";
8173 tSCC zVxworks_Needs_VxworksTest1[] =
8174 " -n \"`egrep '#include' $file`\"";
8175 tSCC zVxworks_Needs_VxworksTest2[] =
8176 " -n \"`egrep ULONG $file`\"";
8178 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
8179 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8180 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
8181 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
8182 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
8183 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8186 * Fix Command Arguments for Vxworks_Needs_Vxworks
8188 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
8189 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8190 #include <types/vxTypesOld.h>\n",
8193 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8195 * Description of Vxworks_Time fix
8197 tSCC zVxworks_TimeName[] =
8201 * File name selection pattern
8203 tSCC zVxworks_TimeList[] =
8206 * Machine/OS name selection pattern
8208 #define apzVxworks_TimeMachs (const char**)NULL
8211 * content selection pattern - do fix if pattern found
8213 tSCC zVxworks_TimeSelect0[] =
8214 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8217 * perform the 'test' shell command - do fix on success
8219 tSCC zVxworks_TimeTest0[] =
8222 #define VXWORKS_TIME_TEST_CT 2
8223 static tTestDesc aVxworks_TimeTests[] = {
8224 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
8225 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
8228 * Fix Command Arguments for Vxworks_Time
8230 static const char* apzVxworks_TimePatch[] = {
8232 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8233 #ifdef __cplusplus\n\
8234 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8236 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8238 #define __gcc_VOIDFUNCPTR_defined\n\
8240 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8243 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8245 * Description of Windiss_Math1 fix
8247 tSCC zWindiss_Math1Name[] =
8251 * File name selection pattern
8253 tSCC zWindiss_Math1List[] =
8256 * Machine/OS name selection pattern
8258 tSCC* apzWindiss_Math1Machs[] = {
8260 (const char*)NULL };
8261 #define WINDISS_MATH1_TEST_CT 0
8262 #define aWindiss_Math1Tests (tTestDesc*)NULL
8265 * Fix Command Arguments for Windiss_Math1
8267 static const char* apzWindiss_Math1Patch[] = { "sed",
8268 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
8271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8273 * Description of Windiss_Math2 fix
8275 tSCC zWindiss_Math2Name[] =
8279 * File name selection pattern
8281 tSCC zWindiss_Math2List[] =
8284 * Machine/OS name selection pattern
8286 tSCC* apzWindiss_Math2Machs[] = {
8288 (const char*)NULL };
8289 #define WINDISS_MATH2_TEST_CT 0
8290 #define aWindiss_Math2Tests (tTestDesc*)NULL
8293 * Fix Command Arguments for Windiss_Math2
8295 static const char* apzWindiss_Math2Patch[] = { "sed",
8296 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
8299 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8301 * Description of Windiss_Valist fix
8303 tSCC zWindiss_ValistName[] =
8307 * File name selection pattern
8309 #define zWindiss_ValistList (char*)NULL
8311 * Machine/OS name selection pattern
8313 tSCC* apzWindiss_ValistMachs[] = {
8315 (const char*)NULL };
8318 * content selection pattern - do fix if pattern found
8320 tSCC zWindiss_ValistSelect0[] =
8321 "(#include.*)diab/va_list.h";
8323 #define WINDISS_VALIST_TEST_CT 1
8324 static tTestDesc aWindiss_ValistTests[] = {
8325 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
8328 * Fix Command Arguments for Windiss_Valist
8330 static const char* apzWindiss_ValistPatch[] = { "sed",
8331 "-e", "s|diab/va_list.h|stdarg.h|",
8334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8336 * Description of X11_Class fix
8338 tSCC zX11_ClassName[] =
8342 * File name selection pattern
8344 tSCC zX11_ClassList[] =
8347 * Machine/OS name selection pattern
8349 #define apzX11_ClassMachs (const char**)NULL
8352 * content selection pattern - do fix if pattern found
8354 tSCC zX11_ClassSelect0[] =
8355 "^([ \t]*char \\*)class;(.*)";
8358 * content bypass pattern - skip fix if pattern found
8360 tSCC zX11_ClassBypass0[] =
8363 #define X11_CLASS_TEST_CT 2
8364 static tTestDesc aX11_ClassTests[] = {
8365 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
8366 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
8369 * Fix Command Arguments for X11_Class
8371 static const char* apzX11_ClassPatch[] = {
8373 "#ifdef __cplusplus\n\
8380 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8382 * Description of X11_Class_Usage fix
8384 tSCC zX11_Class_UsageName[] =
8388 * File name selection pattern
8390 tSCC zX11_Class_UsageList[] =
8391 "Xm/BaseClassI.h\0";
8393 * Machine/OS name selection pattern
8395 #define apzX11_Class_UsageMachs (const char**)NULL
8398 * content selection pattern - do fix if pattern found
8400 tSCC zX11_Class_UsageSelect0[] =
8404 * content bypass pattern - skip fix if pattern found
8406 tSCC zX11_Class_UsageBypass0[] =
8409 #define X11_CLASS_USAGE_TEST_CT 2
8410 static tTestDesc aX11_Class_UsageTests[] = {
8411 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8412 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8415 * Fix Command Arguments for X11_Class_Usage
8417 static const char* apzX11_Class_UsagePatch[] = {
8422 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8424 * Description of X11_New fix
8426 tSCC zX11_NewName[] =
8430 * File name selection pattern
8432 tSCC zX11_NewList[] =
8435 * Machine/OS name selection pattern
8437 #define apzX11_NewMachs (const char**)NULL
8440 * content bypass pattern - skip fix if pattern found
8442 tSCC zX11_NewBypass0[] =
8445 #define X11_NEW_TEST_CT 1
8446 static tTestDesc aX11_NewTests[] = {
8447 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
8450 * Fix Command Arguments for X11_New
8452 static const char* apzX11_NewPatch[] = { "sed",
8453 "-e", "/Widget\told, new;/i\\\n\
8454 #ifdef __cplusplus\\\n\
8455 \tWidget\told, c_new;\\\n\
8457 "-e", "/Widget\told, new;/a\\\n\
8459 "-e", "s/Widget new,/Widget c_new,/g",
8462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8464 * Description of X11_Sprintf fix
8466 tSCC zX11_SprintfName[] =
8470 * File name selection pattern
8472 tSCC zX11_SprintfList[] =
8473 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8475 * Machine/OS name selection pattern
8477 #define apzX11_SprintfMachs (const char**)NULL
8480 * content selection pattern - do fix if pattern found
8482 tSCC zX11_SprintfSelect0[] =
8483 "^extern char \\*\tsprintf\\(\\);$";
8485 #define X11_SPRINTF_TEST_CT 1
8486 static tTestDesc aX11_SprintfTests[] = {
8487 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
8490 * Fix Command Arguments for X11_Sprintf
8492 static const char* apzX11_SprintfPatch[] = {
8494 "#ifndef __STDC__\n\
8496 #endif /* !defined __STDC__ */",
8500 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8504 #define REGEX_COUNT 252
8505 #define MACH_LIST_SIZE_LIMIT 261
8506 #define FIX_COUNT 209
8509 * Enumerate the fixes
8512 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8513 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8514 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8515 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8516 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8517 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8518 AAB_SUN_MEMCPY_FIXIDX,
8519 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
8520 AAB_ULTRIX_LIMITS_FIXIDX,
8521 AAB_ULTRIX_MEMORY_FIXIDX,
8522 AAB_ULTRIX_STRING_FIXIDX,
8524 AIX_SYSMACHINE_FIXIDX,
8526 AIX_SYSWAIT_2_FIXIDX,
8527 AIX_VOLATILE_FIXIDX,
8528 ALPHA___ASSERT_FIXIDX,
8529 ALPHA___EXTERN_PREFIX_FIXIDX,
8530 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8531 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8532 ALPHA_ASSERT_FIXIDX,
8533 ALPHA_BAD_LVAL_FIXIDX,
8534 ALPHA_GETOPT_FIXIDX,
8535 ALPHA_PARENS_FIXIDX,
8536 ALPHA_PTHREAD_FIXIDX,
8537 ALPHA_PTHREAD_GCC_FIXIDX,
8538 ALPHA_PTHREAD_INIT_FIXIDX,
8541 AVOID_BOOL_DEFINE_FIXIDX,
8542 AVOID_BOOL_TYPE_FIXIDX,
8543 AVOID_WCHAR_T_TYPE_FIXIDX,
8544 BAD_STRUCT_TERM_FIXIDX,
8546 BROKEN_ASSERT_STDIO_FIXIDX,
8547 BROKEN_ASSERT_STDLIB_FIXIDX,
8550 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8551 CTRL_QUOTES_DEF_FIXIDX,
8552 CTRL_QUOTES_USE_FIXIDX,
8554 DARWIN_EXTERNC_FIXIDX,
8555 DARWIN_GCC4_BREAKAGE_FIXIDX,
8556 DARWIN_PRIVATE_EXTERN_FIXIDX,
8557 DEC_INTERN_ASM_FIXIDX,
8558 DJGPP_WCHAR_H_FIXIDX,
8560 EXCEPTION_STRUCTURE_FIXIDX,
8561 FREEBSD_GCC3_BREAKAGE_FIXIDX,
8562 FREEBSD_GCC4_BREAKAGE_FIXIDX,
8563 GLIBC_C99_INLINE_1_FIXIDX,
8564 GLIBC_C99_INLINE_2_FIXIDX,
8565 GLIBC_C99_INLINE_3_FIXIDX,
8566 GLIBC_C99_INLINE_4_FIXIDX,
8567 GLIBC_MUTEX_INIT_FIXIDX,
8571 HPUX10_CPP_POW_INLINE_FIXIDX,
8572 HPUX11_CPP_POW_INLINE_FIXIDX,
8573 HPPA_HPUX_FP_MACROS_FIXIDX,
8574 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8575 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8576 HPUX10_STDIO_DECLARATIONS_FIXIDX,
8578 HPUX11_FABSF_FIXIDX,
8579 HPUX11_SIZE_T_FIXIDX,
8580 HPUX11_SNPRINTF_FIXIDX,
8581 HPUX11_UINT32_C_FIXIDX,
8582 HPUX11_VSNPRINTF_FIXIDX,
8583 HPUX8_BOGUS_INLINES_FIXIDX,
8584 HPUX_CTYPE_MACROS_FIXIDX,
8586 HPUX_LONG_DOUBLE_FIXIDX,
8587 HPUX_SYSTIME_FIXIDX,
8588 HPUX_SPU_INFO_FIXIDX,
8589 HPUX11_EXTERN_SENDFILE_FIXIDX,
8590 HPUX11_EXTERN_SENDPATH_FIXIDX,
8591 HPUX_EXTERN_ERRNO_FIXIDX,
8592 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8593 HUGE_VAL_HEX_FIXIDX,
8594 HUGE_VALF_HEX_FIXIDX,
8595 HUGE_VALL_HEX_FIXIDX,
8596 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8597 IO_QUOTES_DEF_FIXIDX,
8598 IO_QUOTES_USE_FIXIDX,
8599 IP_MISSING_SEMI_FIXIDX,
8600 IRIX___RESTRICT_FIXIDX,
8601 IRIX___GENERIC1_FIXIDX,
8602 IRIX___GENERIC2_FIXIDX,
8603 IRIX_ASM_APOSTROPHE_FIXIDX,
8604 IRIX_LIMITS_CONST_FIXIDX,
8605 IRIX_SOCKLEN_T_FIXIDX,
8606 IRIX_STDINT_C99_FIXIDX,
8607 IRIX_STDIO_VA_LIST_FIXIDX,
8608 IRIX_WCSFTIME_FIXIDX,
8610 ISC_OMITS_WITH_STDC_FIXIDX,
8611 KANDR_CONCAT_FIXIDX,
8612 LIBC1_G_VA_LIST_FIXIDX,
8613 LIBC1_IFDEFD_MEMX_FIXIDX,
8614 LINUX_IA64_UCONTEXT_FIXIDX,
8615 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8616 LYNXOS_MISSING_PUTENV_FIXIDX,
8617 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8618 MACHINE_NAME_FIXIDX,
8619 MATH_EXCEPTION_FIXIDX,
8620 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8621 NESTED_AUTH_DES_FIXIDX,
8622 NESTED_MOTOROLA_FIXIDX,
8623 NESTED_SYS_LIMITS_FIXIDX,
8624 NETBSD_C99_INLINE_1_FIXIDX,
8625 NETBSD_C99_INLINE_2_FIXIDX,
8626 NETBSD_EXTRA_SEMICOLON_FIXIDX,
8627 NEXT_MATH_PREFIX_FIXIDX,
8628 NEXT_TEMPLATE_FIXIDX,
8629 NEXT_VOLITILE_FIXIDX,
8630 NEXT_WAIT_UNION_FIXIDX,
8631 NODEENT_SYNTAX_FIXIDX,
8632 OBSTACK_LVALUE_CAST_FIXIDX,
8633 OSF_NAMESPACE_A_FIXIDX,
8634 OSF_NAMESPACE_C_FIXIDX,
8635 PTHREAD_PAGE_SIZE_FIXIDX,
8636 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8637 READ_RET_TYPE_FIXIDX,
8638 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8639 RPC_XDR_LVALUE_CAST_B_FIXIDX,
8640 RS6000_DOUBLE_FIXIDX,
8641 RS6000_FCHMOD_FIXIDX,
8642 RS6000_PARAM_FIXIDX,
8645 SCO_STATIC_FUNC_FIXIDX,
8647 SOLARIS_MATH_1_FIXIDX,
8648 SOLARIS_MATH_2_FIXIDX,
8649 SOLARIS_MATH_3_FIXIDX,
8650 SOLARIS_MATH_4_FIXIDX,
8651 SOLARIS_MATH_8_FIXIDX,
8652 SOLARIS_MATH_9_FIXIDX,
8653 SOLARIS_MUTEX_INIT_1_FIXIDX,
8654 SOLARIS_MUTEX_INIT_2_FIXIDX,
8655 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8656 SOLARIS_ONCE_INIT_1_FIXIDX,
8657 SOLARIS_ONCE_INIT_2_FIXIDX,
8658 SOLARIS_SOCKET_FIXIDX,
8659 SOLARIS_STDIO_TAG_FIXIDX,
8660 SOLARIS_UNISTD_FIXIDX,
8661 SOLARIS_WIDEC_FIXIDX,
8663 STDIO_STDARG_H_FIXIDX,
8664 STDIO_VA_LIST_FIXIDX,
8665 STDIO_VA_LIST_CLIENTS_FIXIDX,
8666 STRICT_ANSI_NOT_FIXIDX,
8667 STRICT_ANSI_NOT_CTD_FIXIDX,
8668 STRICT_ANSI_ONLY_FIXIDX,
8670 STRUCT_SOCKADDR_FIXIDX,
8671 SUN_AUTH_PROTO_FIXIDX,
8672 SUN_BOGUS_IFDEF_FIXIDX,
8673 SUN_CATMACRO_FIXIDX,
8675 SUN_RUSERS_SEMI_FIXIDX,
8677 SUNOS_STRLEN_FIXIDX,
8678 SVR4_DISABLE_OPT_FIXIDX,
8682 SVR4_SIGHANDLER_TYPE_FIXIDX,
8683 SVR4_UNDECLARED_GETRNGE_FIXIDX,
8684 SYSV68_STRING_FIXIDX,
8685 SYSZ_STDLIB_FOR_SUN_FIXIDX,
8686 THREAD_KEYWORD_FIXIDX,
8687 TINFO_CPLUSPLUS_FIXIDX,
8688 ULTRIX_ATEXIT_PARAM_FIXIDX,
8689 ULTRIX_ATOF_PARAM_FIXIDX,
8690 ULTRIX_CONST_FIXIDX,
8691 ULTRIX_CONST2_FIXIDX,
8692 ULTRIX_CONST3_FIXIDX,
8693 ULTRIX_FIX_FIXPROTO_FIXIDX,
8694 ULTRIX_IFDEF_FIXIDX,
8695 ULTRIX_LOCALE_FIXIDX,
8696 ULTRIX_MATH_IFDEF_FIXIDX,
8697 ULTRIX_NESTED_IOCTL_FIXIDX,
8698 ULTRIX_NESTED_SVC_FIXIDX,
8700 ULTRIX_STATIC_FIXIDX,
8701 ULTRIX_STDLIB_FIXIDX,
8702 ULTRIX_STRINGS_FIXIDX,
8703 ULTRIX_STRINGS2_FIXIDX,
8704 ULTRIX_SYS_TIME_FIXIDX,
8705 ULTRIX_UNISTD_FIXIDX,
8706 UNICOSMK_RESTRICT_FIXIDX,
8707 UW7_BYTEORDER_FIX_FIXIDX,
8708 VA_I960_MACRO_FIXIDX,
8710 VXWORKS_GCC_PROBLEM_FIXIDX,
8711 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8712 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8713 VXWORKS_TIME_FIXIDX,
8714 WINDISS_MATH1_FIXIDX,
8715 WINDISS_MATH2_FIXIDX,
8716 WINDISS_VALIST_FIXIDX,
8718 X11_CLASS_USAGE_FIXIDX,
8723 tFixDesc fixDescList[ FIX_COUNT ] = {
8724 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8725 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8726 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8727 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8729 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8730 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8731 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8732 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8734 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
8735 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8736 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8737 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8739 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
8740 apzAab_Fd_Zero_Gnu_Types_HMachs,
8741 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8742 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8744 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
8745 apzAab_Fd_Zero_Selectbits_HMachs,
8746 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8747 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8749 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8750 apzAab_Solaris_Sys_Varargs_HMachs,
8751 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8752 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8754 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8755 apzAab_Sun_MemcpyMachs,
8756 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8757 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8759 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
8760 apzAab_Ultrix_Ansi_CompatMachs,
8761 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8762 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
8764 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
8765 apzAab_Ultrix_LimitsMachs,
8766 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8767 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
8769 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
8770 apzAab_Ultrix_MemoryMachs,
8771 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8772 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
8774 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
8775 apzAab_Ultrix_StringMachs,
8776 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8777 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
8779 { zAix_PthreadName, zAix_PthreadList,
8780 apzAix_PthreadMachs,
8781 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8782 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
8784 { zAix_SysmachineName, zAix_SysmachineList,
8785 apzAix_SysmachineMachs,
8786 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8787 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
8789 { zAix_SyswaitName, zAix_SyswaitList,
8790 apzAix_SyswaitMachs,
8791 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8792 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
8794 { zAix_Syswait_2Name, zAix_Syswait_2List,
8795 apzAix_Syswait_2Machs,
8796 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8797 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8799 { zAix_VolatileName, zAix_VolatileList,
8800 apzAix_VolatileMachs,
8801 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8802 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
8804 { zAlpha___AssertName, zAlpha___AssertList,
8805 apzAlpha___AssertMachs,
8806 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8807 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8809 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
8810 apzAlpha___Extern_PrefixMachs,
8811 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8812 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
8814 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
8815 apzAlpha___Extern_Prefix_StandardsMachs,
8816 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8817 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8819 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
8820 apzAlpha___Extern_Prefix_Sys_StatMachs,
8821 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8822 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8824 { zAlpha_AssertName, zAlpha_AssertList,
8825 apzAlpha_AssertMachs,
8826 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8827 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
8829 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
8830 apzAlpha_Bad_LvalMachs,
8831 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
8832 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
8834 { zAlpha_GetoptName, zAlpha_GetoptList,
8835 apzAlpha_GetoptMachs,
8836 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8837 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
8839 { zAlpha_ParensName, zAlpha_ParensList,
8840 apzAlpha_ParensMachs,
8841 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8842 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
8844 { zAlpha_PthreadName, zAlpha_PthreadList,
8845 apzAlpha_PthreadMachs,
8846 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8847 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
8849 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
8850 apzAlpha_Pthread_GccMachs,
8851 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8852 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
8854 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
8855 apzAlpha_Pthread_InitMachs,
8856 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
8857 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
8859 { zAlpha_SbrkName, zAlpha_SbrkList,
8861 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8862 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
8864 { zAlpha_WcharName, zAlpha_WcharList,
8865 apzAlpha_WcharMachs,
8866 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
8867 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
8869 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
8870 apzAvoid_Bool_DefineMachs,
8871 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8872 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
8874 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
8875 apzAvoid_Bool_TypeMachs,
8876 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8877 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
8879 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
8880 apzAvoid_Wchar_T_TypeMachs,
8881 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8882 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
8884 { zBad_Struct_TermName, zBad_Struct_TermList,
8885 apzBad_Struct_TermMachs,
8886 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8887 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
8889 { zBadquoteName, zBadquoteList,
8891 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8892 aBadquoteTests, apzBadquotePatch, 0 },
8894 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
8895 apzBroken_Assert_StdioMachs,
8896 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8897 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
8899 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
8900 apzBroken_Assert_StdlibMachs,
8901 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8902 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
8904 { zBroken_CabsName, zBroken_CabsList,
8905 apzBroken_CabsMachs,
8906 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
8907 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
8909 { zBroken_NanName, zBroken_NanList,
8911 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8912 aBroken_NanTests, apzBroken_NanPatch, 0 },
8914 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
8915 apzBsd_Stdio_Attrs_ConflictMachs,
8916 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8917 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
8919 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
8920 apzCtrl_Quotes_DefMachs,
8921 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8922 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
8924 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
8925 apzCtrl_Quotes_UseMachs,
8926 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8927 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
8929 { zCxx_UnreadyName, zCxx_UnreadyList,
8930 apzCxx_UnreadyMachs,
8931 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8932 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
8934 { zDarwin_ExterncName, zDarwin_ExterncList,
8935 apzDarwin_ExterncMachs,
8936 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8937 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
8939 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
8940 apzDarwin_Gcc4_BreakageMachs,
8941 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8942 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
8944 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
8945 apzDarwin_Private_ExternMachs,
8946 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8947 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
8949 { zDec_Intern_AsmName, zDec_Intern_AsmList,
8950 apzDec_Intern_AsmMachs,
8951 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
8952 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
8954 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
8955 apzDjgpp_Wchar_HMachs,
8956 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8957 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
8959 { zEcd_CursorName, zEcd_CursorList,
8961 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8962 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
8964 { zException_StructureName, zException_StructureList,
8965 apzException_StructureMachs,
8966 EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8967 aException_StructureTests, apzException_StructurePatch, 0 },
8969 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
8970 apzFreebsd_Gcc3_BreakageMachs,
8971 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8972 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
8974 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
8975 apzFreebsd_Gcc4_BreakageMachs,
8976 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8977 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
8979 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
8980 apzGlibc_C99_Inline_1Machs,
8981 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8982 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
8984 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
8985 apzGlibc_C99_Inline_2Machs,
8986 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
8987 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
8989 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
8990 apzGlibc_C99_Inline_3Machs,
8991 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8992 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
8994 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
8995 apzGlibc_C99_Inline_4Machs,
8996 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8997 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
8999 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
9000 apzGlibc_Mutex_InitMachs,
9001 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9002 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
9004 { zGnu_TypesName, zGnu_TypesList,
9006 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9007 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
9009 { zHp_InlineName, zHp_InlineList,
9011 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9012 aHp_InlineTests, apzHp_InlinePatch, 0 },
9014 { zHp_SysfileName, zHp_SysfileList,
9016 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9017 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
9019 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
9020 apzHpux10_Cpp_Pow_InlineMachs,
9021 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9022 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
9024 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
9025 apzHpux11_Cpp_Pow_InlineMachs,
9026 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9027 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
9029 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
9030 apzHppa_Hpux_Fp_MacrosMachs,
9031 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9032 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
9034 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
9035 apzHpux10_Ctype_Declarations1Machs,
9036 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9037 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
9039 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
9040 apzHpux10_Ctype_Declarations2Machs,
9041 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9042 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
9044 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
9045 apzHpux10_Stdio_DeclarationsMachs,
9046 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9047 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
9049 { zHpux11_AbsName, zHpux11_AbsList,
9051 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9052 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
9054 { zHpux11_FabsfName, zHpux11_FabsfList,
9055 apzHpux11_FabsfMachs,
9056 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9057 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
9059 { zHpux11_Size_TName, zHpux11_Size_TList,
9060 apzHpux11_Size_TMachs,
9061 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9062 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
9064 { zHpux11_SnprintfName, zHpux11_SnprintfList,
9065 apzHpux11_SnprintfMachs,
9066 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9067 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
9069 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
9070 apzHpux11_Uint32_CMachs,
9071 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9072 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
9074 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
9075 apzHpux11_VsnprintfMachs,
9076 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9077 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
9079 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
9080 apzHpux8_Bogus_InlinesMachs,
9081 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9082 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
9084 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
9085 apzHpux_Ctype_MacrosMachs,
9086 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9087 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
9089 { zHpux_HtonlName, zHpux_HtonlList,
9091 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9092 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
9094 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
9095 apzHpux_Long_DoubleMachs,
9096 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9097 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
9099 { zHpux_SystimeName, zHpux_SystimeList,
9100 apzHpux_SystimeMachs,
9101 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9102 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
9104 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
9105 apzHpux_Spu_InfoMachs,
9106 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9107 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
9109 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
9110 apzHpux11_Extern_SendfileMachs,
9111 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9112 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
9114 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
9115 apzHpux11_Extern_SendpathMachs,
9116 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9117 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
9119 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
9120 apzHpux_Extern_ErrnoMachs,
9121 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9122 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
9124 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
9125 apzHpux_Pthread_InitializersMachs,
9126 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9127 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
9129 { zHuge_Val_HexName, zHuge_Val_HexList,
9130 apzHuge_Val_HexMachs,
9131 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9132 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
9134 { zHuge_Valf_HexName, zHuge_Valf_HexList,
9135 apzHuge_Valf_HexMachs,
9136 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9137 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
9139 { zHuge_Vall_HexName, zHuge_Vall_HexList,
9140 apzHuge_Vall_HexMachs,
9141 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9142 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
9144 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
9145 apzInt_Abort_Free_And_ExitMachs,
9146 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9147 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
9149 { zIo_Quotes_DefName, zIo_Quotes_DefList,
9150 apzIo_Quotes_DefMachs,
9151 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9152 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
9154 { zIo_Quotes_UseName, zIo_Quotes_UseList,
9155 apzIo_Quotes_UseMachs,
9156 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9157 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
9159 { zIp_Missing_SemiName, zIp_Missing_SemiList,
9160 apzIp_Missing_SemiMachs,
9161 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9162 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
9164 { zIrix___RestrictName, zIrix___RestrictList,
9165 apzIrix___RestrictMachs,
9166 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9167 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
9169 { zIrix___Generic1Name, zIrix___Generic1List,
9170 apzIrix___Generic1Machs,
9171 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9172 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
9174 { zIrix___Generic2Name, zIrix___Generic2List,
9175 apzIrix___Generic2Machs,
9176 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9177 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
9179 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
9180 apzIrix_Asm_ApostropheMachs,
9181 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9182 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
9184 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
9185 apzIrix_Limits_ConstMachs,
9186 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9187 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
9189 { zIrix_Socklen_TName, zIrix_Socklen_TList,
9190 apzIrix_Socklen_TMachs,
9191 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9192 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
9194 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
9195 apzIrix_Stdint_C99Machs,
9196 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9197 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
9199 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
9200 apzIrix_Stdio_Va_ListMachs,
9201 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9202 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
9204 { zIrix_WcsftimeName, zIrix_WcsftimeList,
9205 apzIrix_WcsftimeMachs,
9206 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9207 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
9209 { zIsc_FmodName, zIsc_FmodList,
9211 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9212 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
9214 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
9215 apzIsc_Omits_With_StdcMachs,
9216 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9217 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
9219 { zKandr_ConcatName, zKandr_ConcatList,
9220 apzKandr_ConcatMachs,
9221 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9222 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
9224 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
9225 apzLibc1_G_Va_ListMachs,
9226 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9227 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
9229 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
9230 apzLibc1_Ifdefd_MemxMachs,
9231 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9232 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
9234 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
9235 apzLinux_Ia64_UcontextMachs,
9236 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9237 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
9239 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
9240 apzLynxos_No_Warning_In_Sys_Time_HMachs,
9241 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9242 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9244 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
9245 apzLynxos_Missing_PutenvMachs,
9246 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9247 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
9249 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
9250 apzMachine_Ansi_H_Va_ListMachs,
9251 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9252 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
9254 { zMachine_NameName, zMachine_NameList,
9255 apzMachine_NameMachs,
9256 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9257 aMachine_NameTests, apzMachine_NamePatch, 0 },
9259 { zMath_ExceptionName, zMath_ExceptionList,
9260 apzMath_ExceptionMachs,
9261 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9262 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
9264 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
9265 apzMath_Huge_Val_From_Dbl_MaxMachs,
9266 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9267 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9269 { zNested_Auth_DesName, zNested_Auth_DesList,
9270 apzNested_Auth_DesMachs,
9271 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9272 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
9274 { zNested_MotorolaName, zNested_MotorolaList,
9275 apzNested_MotorolaMachs,
9276 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
9277 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
9279 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
9280 apzNested_Sys_LimitsMachs,
9281 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
9282 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
9284 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
9285 apzNetbsd_C99_Inline_1Machs,
9286 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9287 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
9289 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
9290 apzNetbsd_C99_Inline_2Machs,
9291 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9292 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
9294 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
9295 apzNetbsd_Extra_SemicolonMachs,
9296 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9297 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
9299 { zNext_Math_PrefixName, zNext_Math_PrefixList,
9300 apzNext_Math_PrefixMachs,
9301 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9302 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
9304 { zNext_TemplateName, zNext_TemplateList,
9305 apzNext_TemplateMachs,
9306 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9307 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
9309 { zNext_VolitileName, zNext_VolitileList,
9310 apzNext_VolitileMachs,
9311 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9312 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
9314 { zNext_Wait_UnionName, zNext_Wait_UnionList,
9315 apzNext_Wait_UnionMachs,
9316 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9317 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
9319 { zNodeent_SyntaxName, zNodeent_SyntaxList,
9320 apzNodeent_SyntaxMachs,
9321 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9322 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
9324 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
9325 apzObstack_Lvalue_CastMachs,
9326 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9327 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
9329 { zOsf_Namespace_AName, zOsf_Namespace_AList,
9330 apzOsf_Namespace_AMachs,
9331 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9332 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
9334 { zOsf_Namespace_CName, zOsf_Namespace_CList,
9335 apzOsf_Namespace_CMachs,
9336 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9337 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
9339 { zPthread_Page_SizeName, zPthread_Page_SizeList,
9340 apzPthread_Page_SizeMachs,
9341 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9342 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
9344 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
9345 apzPthread_Incomplete_Struct_ArgumentMachs,
9346 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9347 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9349 { zRead_Ret_TypeName, zRead_Ret_TypeList,
9350 apzRead_Ret_TypeMachs,
9351 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9352 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
9354 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
9355 apzRpc_Xdr_Lvalue_Cast_AMachs,
9356 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9357 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9359 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
9360 apzRpc_Xdr_Lvalue_Cast_BMachs,
9361 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9362 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9364 { zRs6000_DoubleName, zRs6000_DoubleList,
9365 apzRs6000_DoubleMachs,
9366 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9367 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
9369 { zRs6000_FchmodName, zRs6000_FchmodList,
9370 apzRs6000_FchmodMachs,
9371 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9372 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
9374 { zRs6000_ParamName, zRs6000_ParamList,
9375 apzRs6000_ParamMachs,
9376 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9377 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
9379 { zSco_MathName, zSco_MathList,
9381 SCO_MATH_TEST_CT, FD_MACH_ONLY,
9382 aSco_MathTests, apzSco_MathPatch, 0 },
9384 { zSco_RegsetName, zSco_RegsetList,
9386 SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9387 aSco_RegsetTests, apzSco_RegsetPatch, 0 },
9389 { zSco_Static_FuncName, zSco_Static_FuncList,
9390 apzSco_Static_FuncMachs,
9391 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
9392 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
9394 { zSco_UtimeName, zSco_UtimeList,
9396 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9397 aSco_UtimeTests, apzSco_UtimePatch, 0 },
9399 { zSolaris_Math_1Name, zSolaris_Math_1List,
9400 apzSolaris_Math_1Machs,
9401 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9402 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
9404 { zSolaris_Math_2Name, zSolaris_Math_2List,
9405 apzSolaris_Math_2Machs,
9406 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9407 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
9409 { zSolaris_Math_3Name, zSolaris_Math_3List,
9410 apzSolaris_Math_3Machs,
9411 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9412 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
9414 { zSolaris_Math_4Name, zSolaris_Math_4List,
9415 apzSolaris_Math_4Machs,
9416 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9417 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
9419 { zSolaris_Math_8Name, zSolaris_Math_8List,
9420 apzSolaris_Math_8Machs,
9421 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9422 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
9424 { zSolaris_Math_9Name, zSolaris_Math_9List,
9425 apzSolaris_Math_9Machs,
9426 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9427 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
9429 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List,
9430 apzSolaris_Mutex_Init_1Machs,
9431 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
9432 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 },
9434 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
9435 apzSolaris_Mutex_Init_2Machs,
9436 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9437 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
9439 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
9440 apzSolaris_Rwlock_Init_1Machs,
9441 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9442 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
9444 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
9445 apzSolaris_Once_Init_1Machs,
9446 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9447 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
9449 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
9450 apzSolaris_Once_Init_2Machs,
9451 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9452 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
9454 { zSolaris_SocketName, zSolaris_SocketList,
9455 apzSolaris_SocketMachs,
9456 SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9457 aSolaris_SocketTests, apzSolaris_SocketPatch, 0 },
9459 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
9460 apzSolaris_Stdio_TagMachs,
9461 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9462 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
9464 { zSolaris_UnistdName, zSolaris_UnistdList,
9465 apzSolaris_UnistdMachs,
9466 SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9467 aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 },
9469 { zSolaris_WidecName, zSolaris_WidecList,
9470 apzSolaris_WidecMachs,
9471 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9472 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
9474 { zStatsswtchName, zStatsswtchList,
9476 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9477 aStatsswtchTests, apzStatsswtchPatch, 0 },
9479 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
9480 apzStdio_Stdarg_HMachs,
9481 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9482 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
9484 { zStdio_Va_ListName, zStdio_Va_ListList,
9485 apzStdio_Va_ListMachs,
9486 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9487 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
9489 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
9490 apzStdio_Va_List_ClientsMachs,
9491 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9492 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
9494 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
9495 apzStrict_Ansi_NotMachs,
9496 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9497 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
9499 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
9500 apzStrict_Ansi_Not_CtdMachs,
9501 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9502 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
9504 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
9505 apzStrict_Ansi_OnlyMachs,
9506 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9507 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
9509 { zStruct_FileName, zStruct_FileList,
9510 apzStruct_FileMachs,
9511 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9512 aStruct_FileTests, apzStruct_FilePatch, 0 },
9514 { zStruct_SockaddrName, zStruct_SockaddrList,
9515 apzStruct_SockaddrMachs,
9516 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9517 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
9519 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
9520 apzSun_Auth_ProtoMachs,
9521 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9522 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
9524 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
9525 apzSun_Bogus_IfdefMachs,
9526 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9527 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
9529 { zSun_CatmacroName, zSun_CatmacroList,
9530 apzSun_CatmacroMachs,
9531 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9532 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
9534 { zSun_MallocName, zSun_MallocList,
9536 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9537 aSun_MallocTests, apzSun_MallocPatch, 0 },
9539 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
9540 apzSun_Rusers_SemiMachs,
9541 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9542 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
9544 { zSun_SignalName, zSun_SignalList,
9546 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9547 aSun_SignalTests, apzSun_SignalPatch, 0 },
9549 { zSunos_StrlenName, zSunos_StrlenList,
9550 apzSunos_StrlenMachs,
9551 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9552 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
9554 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
9555 apzSvr4_Disable_OptMachs,
9556 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9557 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
9559 { zSvr4_GetcwdName, zSvr4_GetcwdList,
9560 apzSvr4_GetcwdMachs,
9561 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9562 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
9564 { zSvr4_KrnlName, zSvr4_KrnlList,
9566 SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9567 aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 },
9569 { zSvr4_ProfilName, zSvr4_ProfilList,
9570 apzSvr4_ProfilMachs,
9571 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9572 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
9574 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9575 apzSvr4_Sighandler_TypeMachs,
9576 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9577 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9579 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9580 apzSvr4_Undeclared_GetrngeMachs,
9581 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9582 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9584 { zSysv68_StringName, zSysv68_StringList,
9585 apzSysv68_StringMachs,
9586 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9587 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
9589 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
9590 apzSysz_Stdlib_For_SunMachs,
9591 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9592 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
9594 { zThread_KeywordName, zThread_KeywordList,
9595 apzThread_KeywordMachs,
9596 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9597 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9599 { zTinfo_CplusplusName, zTinfo_CplusplusList,
9600 apzTinfo_CplusplusMachs,
9601 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9602 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
9604 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
9605 apzUltrix_Atexit_ParamMachs,
9606 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9607 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
9609 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
9610 apzUltrix_Atof_ParamMachs,
9611 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9612 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
9614 { zUltrix_ConstName, zUltrix_ConstList,
9615 apzUltrix_ConstMachs,
9616 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9617 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
9619 { zUltrix_Const2Name, zUltrix_Const2List,
9620 apzUltrix_Const2Machs,
9621 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9622 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
9624 { zUltrix_Const3Name, zUltrix_Const3List,
9625 apzUltrix_Const3Machs,
9626 ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9627 aUltrix_Const3Tests, apzUltrix_Const3Patch, 0 },
9629 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
9630 apzUltrix_Fix_FixprotoMachs,
9631 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9632 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
9634 { zUltrix_IfdefName, zUltrix_IfdefList,
9635 apzUltrix_IfdefMachs,
9636 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9637 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
9639 { zUltrix_LocaleName, zUltrix_LocaleList,
9640 apzUltrix_LocaleMachs,
9641 ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9642 aUltrix_LocaleTests, apzUltrix_LocalePatch, 0 },
9644 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
9645 apzUltrix_Math_IfdefMachs,
9646 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9647 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
9649 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
9650 apzUltrix_Nested_IoctlMachs,
9651 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
9652 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
9654 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
9655 apzUltrix_Nested_SvcMachs,
9656 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
9657 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
9659 { zUltrix_StatName, zUltrix_StatList,
9660 apzUltrix_StatMachs,
9661 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
9662 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
9664 { zUltrix_StaticName, zUltrix_StaticList,
9665 apzUltrix_StaticMachs,
9666 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
9667 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
9669 { zUltrix_StdlibName, zUltrix_StdlibList,
9670 apzUltrix_StdlibMachs,
9671 ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
9672 aUltrix_StdlibTests, apzUltrix_StdlibPatch, 0 },
9674 { zUltrix_StringsName, zUltrix_StringsList,
9675 apzUltrix_StringsMachs,
9676 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9677 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
9679 { zUltrix_Strings2Name, zUltrix_Strings2List,
9680 apzUltrix_Strings2Machs,
9681 ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
9682 aUltrix_Strings2Tests, apzUltrix_Strings2Patch, 0 },
9684 { zUltrix_Sys_TimeName, zUltrix_Sys_TimeList,
9685 apzUltrix_Sys_TimeMachs,
9686 ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
9687 aUltrix_Sys_TimeTests, apzUltrix_Sys_TimePatch, 0 },
9689 { zUltrix_UnistdName, zUltrix_UnistdList,
9690 apzUltrix_UnistdMachs,
9691 ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
9692 aUltrix_UnistdTests, apzUltrix_UnistdPatch, 0 },
9694 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
9695 apzUnicosmk_RestrictMachs,
9696 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9697 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
9699 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
9700 apzUw7_Byteorder_FixMachs,
9701 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9702 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
9704 { zVa_I960_MacroName, zVa_I960_MacroList,
9705 apzVa_I960_MacroMachs,
9706 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9707 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
9709 { zVoid_NullName, zVoid_NullList,
9711 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9712 aVoid_NullTests, apzVoid_NullPatch, 0 },
9714 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
9715 apzVxworks_Gcc_ProblemMachs,
9716 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9717 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
9719 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
9720 apzVxworks_Needs_VxtypesMachs,
9721 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9722 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
9724 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
9725 apzVxworks_Needs_VxworksMachs,
9726 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9727 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
9729 { zVxworks_TimeName, zVxworks_TimeList,
9730 apzVxworks_TimeMachs,
9731 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9732 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
9734 { zWindiss_Math1Name, zWindiss_Math1List,
9735 apzWindiss_Math1Machs,
9736 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
9737 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
9739 { zWindiss_Math2Name, zWindiss_Math2List,
9740 apzWindiss_Math2Machs,
9741 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
9742 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
9744 { zWindiss_ValistName, zWindiss_ValistList,
9745 apzWindiss_ValistMachs,
9746 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
9747 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
9749 { zX11_ClassName, zX11_ClassList,
9751 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9752 aX11_ClassTests, apzX11_ClassPatch, 0 },
9754 { zX11_Class_UsageName, zX11_Class_UsageList,
9755 apzX11_Class_UsageMachs,
9756 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9757 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
9759 { zX11_NewName, zX11_NewList,
9761 X11_NEW_TEST_CT, FD_MACH_ONLY,
9762 aX11_NewTests, apzX11_NewPatch, 0 },
9764 { zX11_SprintfName, zX11_SprintfList,
9765 apzX11_SprintfMachs,
9766 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9767 aX11_SprintfTests, apzX11_SprintfPatch, 0 }