1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Friday March 7, 2008 at 07:37:21 AM CET
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Fr 7. Mär 07:37:22 CET 2008
11 * You must regenerate it. Use the ./genfixes script.
14 * This is part of the fixincl program used to install modified versions of
15 * certain ANSI-incompatible system header files which are fixed to work
16 * correctly with ANSI C and placed in a directory that GNU C will search.
18 * This file contains 213 fixup descriptions.
20 * See README for more information.
22 * inclhack copyright (c) 1998, 1999, 2000, 2001
23 * The Free Software Foundation, Inc.
25 * inclhack is free software: you can redistribute it and/or modify it
26 * under the terms of the GNU General Public License as published by the
27 * Free Software Foundation, either version 3 of the License, or
28 * (at your option) any later version.
30 * inclhack is distributed in the hope that it will be useful, but
31 * WITHOUT ANY WARRANTY; without even the implied warranty of
32 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
33 * See the GNU General Public License for more details.
35 * You should have received a copy of the GNU General Public License along
36 * with this program. If not, see <http://www.gnu.org/licenses/>.
39 /* * * * * * * * * * * * * * * * * * * * * * * * * *
41 * Description of Aab_Aix_Stdio fix
43 tSCC zAab_Aix_StdioName[] =
47 * File name selection pattern
49 tSCC zAab_Aix_StdioList[] =
52 * Machine/OS name selection pattern
54 tSCC* apzAab_Aix_StdioMachs[] = {
59 * content selection pattern - do fix if pattern found
61 tSCC zAab_Aix_StdioSelect0[] =
62 "define fopen fopen64";
64 #define AAB_AIX_STDIO_TEST_CT 1
65 static tTestDesc aAab_Aix_StdioTests[] = {
66 { TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
69 * Fix Command Arguments for Aab_Aix_Stdio
71 static const char* apzAab_Aix_StdioPatch[] = {
75 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
76 #define __need__aix_stdio_h_fix\n\
77 #ifdef __need__aix_stdio_h_fix\n\
84 /* Alias the symbols using asm */\n\
86 extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
87 extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
88 extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
89 extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
90 extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
91 extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
97 /* * * * * * * * * * * * * * * * * * * * * * * * * *
99 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
101 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
102 "AAB_darwin7_9_long_double_funcs";
105 * File name selection pattern
107 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
108 "architecture/ppc/math.h\0";
110 * Machine/OS name selection pattern
112 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
117 * content bypass pattern - skip fix if pattern found
119 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
122 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
123 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
124 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
127 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
129 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
130 "/* This file prototypes the long double functions available on Mac OS\n\
133 # undef __APPLE_CC__\n\
134 # define __APPLE_CC__ 1345\n\
135 # include_next <architecture/ppc/math.h>\n\
136 # undef __APPLE_CC__\n\
137 # define __APPLE_CC__ 1\n\
138 # ifndef __LIBMLDBL_COMPAT\n\
139 # ifdef __LONG_DOUBLE_128__\n\
140 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
142 # define __LIBMLDBL_COMPAT(sym)\n\
143 # endif /* __LONG_DOUBLE_128__ */\n\
144 # endif /* __LIBMLDBL_COMPAT */\n\
145 # ifdef __cplusplus\n\
148 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
149 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
150 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
151 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
152 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
153 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
154 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
155 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
156 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
157 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
158 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
159 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
160 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
161 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
162 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
163 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
164 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
165 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
166 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
167 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
168 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
169 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
170 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
171 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
172 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
173 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
174 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
175 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
176 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
177 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
178 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
179 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
180 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
181 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
182 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
183 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
184 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
185 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
186 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
187 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
188 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
189 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
190 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
191 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
192 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
193 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
194 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
195 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
196 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
197 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
198 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
199 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
200 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
201 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
202 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
203 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
204 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
205 # ifdef __cplusplus\n\
208 #endif /* __MATH__ */",
211 /* * * * * * * * * * * * * * * * * * * * * * * * * *
213 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
215 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
216 "AAB_darwin7_9_long_double_funcs_2";
219 * File name selection pattern
221 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
224 * Machine/OS name selection pattern
226 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
231 * content selection pattern - do fix if pattern found
233 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
234 "#include[ \\t]+\\\"";
236 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
237 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
238 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
241 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
243 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
246 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
251 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
253 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
254 "AAB_fd_zero_asm_posix_types_h";
257 * File name selection pattern
259 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
260 "asm/posix_types.h\0";
262 * Machine/OS name selection pattern
264 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
265 "i[34567]86-*-linux*",
269 * content bypass pattern - skip fix if pattern found
271 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
273 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
276 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 2
277 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
278 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
279 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL }, };
282 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
284 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
285 "/* This file fixes a bug in the __FD_ZERO macro\n\
286 for older versions of the Linux kernel. */\n\
287 #ifndef _POSIX_TYPES_H_WRAPPER\n\
288 #include <features.h>\n\
289 #include_next <asm/posix_types.h>\n\n\
290 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
292 #define __FD_ZERO(fdsetp) \\\n\
294 int __d0, __d1; \\\n\
295 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
296 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
297 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
298 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
301 #define _POSIX_TYPES_H_WRAPPER\n\
302 #endif /* _POSIX_TYPES_H_WRAPPER */",
305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
307 * Description of Aab_Fd_Zero_Gnu_Types_H fix
309 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
310 "AAB_fd_zero_gnu_types_h";
313 * File name selection pattern
315 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
318 * Machine/OS name selection pattern
320 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
321 "i[34567]86-*-linux*",
323 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
324 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
327 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
329 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
330 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
331 #ifndef _TYPES_H_WRAPPER\n\
332 #include <features.h>\n\
333 #include_next <gnu/types.h>\n\n\
334 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
336 # define __FD_ZERO(fdsetp) \\\n\
338 int __d0, __d1; \\\n\
339 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
340 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
341 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
342 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
345 #define _TYPES_H_WRAPPER\n\
346 #endif /* _TYPES_H_WRAPPER */",
349 /* * * * * * * * * * * * * * * * * * * * * * * * * *
351 * Description of Aab_Fd_Zero_Selectbits_H fix
353 tSCC zAab_Fd_Zero_Selectbits_HName[] =
354 "AAB_fd_zero_selectbits_h";
357 * File name selection pattern
359 tSCC zAab_Fd_Zero_Selectbits_HList[] =
362 * Machine/OS name selection pattern
364 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
365 "i[34567]86-*-linux*",
367 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
368 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
371 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
373 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
374 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
375 #ifndef _SELECTBITS_H_WRAPPER\n\
376 #include <features.h>\n\
377 #include_next <selectbits.h>\n\n\
378 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
379 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
380 && __GLIBC_MINOR__ == 0\n\
382 #define __FD_ZERO(fdsetp) \\\\\n\
384 int __d0, __d1; \\\\\n\
385 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
386 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
387 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
388 / sizeof (__fd_mask)), \\\\\n\
389 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
390 : \"memory\"); \\\\\n\
393 #define _SELECTBITS_H_WRAPPER\n\
394 #endif /* _SELECTBITS_H_WRAPPER */",
397 /* * * * * * * * * * * * * * * * * * * * * * * * * *
399 * Description of Aab_Solaris_Sys_Varargs_H fix
401 tSCC zAab_Solaris_Sys_Varargs_HName[] =
402 "AAB_solaris_sys_varargs_h";
405 * File name selection pattern
407 tSCC zAab_Solaris_Sys_Varargs_HList[] =
410 * Machine/OS name selection pattern
412 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
415 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
416 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
419 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
421 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
423 #include <stdarg.h>\n\
425 #include <varargs.h>\n\
429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
431 * Description of Aab_Sun_Memcpy fix
433 tSCC zAab_Sun_MemcpyName[] =
437 * File name selection pattern
439 tSCC zAab_Sun_MemcpyList[] =
442 * Machine/OS name selection pattern
444 #define apzAab_Sun_MemcpyMachs (const char**)NULL
447 * content selection pattern - do fix if pattern found
449 tSCC zAab_Sun_MemcpySelect0[] =
450 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
452 #define AAB_SUN_MEMCPY_TEST_CT 1
453 static tTestDesc aAab_Sun_MemcpyTests[] = {
454 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
457 * Fix Command Arguments for Aab_Sun_Memcpy
459 static const char* apzAab_Sun_MemcpyPatch[] = {
460 "/* This file was generated by fixincludes */\n\
461 #ifndef __memory_h__\n\
462 #define __memory_h__\n\n\
464 extern void *memccpy();\n\
465 extern void *memchr();\n\
466 extern void *memcpy();\n\
467 extern void *memset();\n\
469 extern char *memccpy();\n\
470 extern char *memchr();\n\
471 extern char *memcpy();\n\
472 extern char *memset();\n\
473 #endif /* __STDC__ */\n\n\
474 extern int memcmp();\n\n\
475 #endif /* __memory_h__ */\n\
479 * Completely replace <sys/varargs.h> with a file that includes gcc's\n\
480 * stdarg.h or varargs.h files as appropriate.\n\
484 hackname = AAB_svr4_no_varargs;\n\
485 files = sys/varargs.h;\n\
486 replace = \"/* This file was generated by fixincludes. */\\n\"\n\
487 \"#ifndef _SYS_VARARGS_H\\n\"\n\
488 \"#define _SYS_VARARGS_H\\n\\n\"\n\n\
489 \"#ifdef __STDC__\\n\"\n\
490 \"#include <stdarg.h>\\n\"\n\
492 \"#include <varargs.h>\\n\"\n\
493 \"#endif\\n\\n\"\n\n\
494 \"#endif /* _SYS_VARARGS_H */\\n\";\n\
498 * Completely replace <sys/byteorder.h> with a file that implements gcc's\n\
499 * optimized byteswapping. (The original probably implemented some\n\
500 * incompatible optimized byteswapping.)\n\
503 hackname = AAB_svr4_replace_byteorder;\n\
504 mach = \"*-*-sysv4*\";\n\
505 mach = \"i[34567]86-*-sysv5*\";\n\
506 mach = \"i[34567]86-*-sco3.2v5*\";\n\
507 mach = \"i[34567]86-*-udk*\";\n\
508 mach = \"i[34567]86-*-solaris2.[0-4]\";\n\
509 mach = \"powerpcle-*-solaris2.[0-4]\";\n\
510 mach = \"sparc-*-solaris2.[0-4]\";\n\
511 mach = \"i[34567]86-sequent-ptx*\";\n\
512 files = sys/byteorder.h;\n\
513 replace = <<- _EndOfHeader_\n\
514 #ifndef _SYS_BYTEORDER_H\n\
515 #define _SYS_BYTEORDER_H\n\n\
516 /* Functions to convert `short' and `long' quantities from host byte order\n\
517 to (internet) network byte order (i.e. big-endian).\n\n\
518 Written by Ron Guilmette (rfg@ncd.com).\n\n\
519 This isn't actually used by GCC. It is installed by fixinc.svr4.\n\n\
520 For big-endian machines these functions are essentially no-ops.\n\n\
521 For little-endian machines, we define the functions using specialized\n\
522 asm sequences in cases where doing so yields better code (e.g. i386). */\n\n\
523 #if !defined (__GNUC__) && !defined (__GNUG__)\n\
524 #error You lose! This file is only useful with GNU compilers.\n\
526 #ifndef __BYTE_ORDER__\n\
527 /* Byte order defines. These are as defined on UnixWare 1.1, but with\n\
528 double underscores added at the front and back. */\n\
529 #define __LITTLE_ENDIAN__ 1234\n\
530 #define __BIG_ENDIAN__ 4321\n\
531 #define __PDP_ENDIAN__ 3412\n\
534 static __inline__ unsigned long htonl (unsigned long);\n\
535 static __inline__ unsigned short htons (unsigned int);\n\
536 static __inline__ unsigned long ntohl (unsigned long);\n\
537 static __inline__ unsigned short ntohs (unsigned int);\n\
538 #endif /* defined (__STDC__) */\n\n\
539 #if defined (__i386__)\n\n\
540 #ifndef __BYTE_ORDER__\n\
541 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
543 /* Convert a host long to a network long. */\n\n\
544 /* We must use a new-style function definition, so that this will also\n\
545 be valid for C++. */\n\
546 static __inline__ unsigned long\n\
547 htonl (unsigned long __arg)\n\
549 register unsigned long __result;\n\n\
550 __asm__ (\"xchg%B0 %b0,%h0\n\
552 xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
555 /* Convert a host short to a network short. */\n\n\
556 static __inline__ unsigned short\n\
557 htons (unsigned int __arg)\n\
559 register unsigned short __result;\n\n\
560 __asm__ (\"xchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
563 #elif (defined (__ns32k__) || defined (__vax__) || defined (__arm__))\n\n\
564 #ifndef __BYTE_ORDER__\n\
565 #define __BYTE_ORDER__ __LITTLE_ENDIAN__\n\
567 /* For other little-endian machines, using C code is just as efficient as\n\
568 using assembly code. */\n\n\
569 /* Convert a host long to a network long. */\n\n\
570 static __inline__ unsigned long\n\
571 htonl (unsigned long __arg)\n\
573 register unsigned long __result;\n\n\
574 __result = (__arg >> 24) & 0x000000ff;\n\
575 __result |= (__arg >> 8) & 0x0000ff00;\n\
576 __result |= (__arg << 8) & 0x00ff0000;\n\
577 __result |= (__arg << 24) & 0xff000000;\n\
580 /* Convert a host short to a network short. */\n\n\
581 static __inline__ unsigned short\n\
582 htons (unsigned int __arg)\n\
584 register unsigned short __result;\n\n\
585 __result = (__arg << 8) & 0xff00;\n\
586 __result |= (__arg >> 8) & 0x00ff;\n\
589 #else /* must be a big-endian machine */\n\n\
590 #ifndef __BYTE_ORDER__\n\
591 #define __BYTE_ORDER__ __BIG_ENDIAN__\n\
593 /* Convert a host long to a network long. */\n\n\
594 static __inline__ unsigned long\n\
595 htonl (unsigned long __arg)\n\
599 /* Convert a host short to a network short. */\n\n\
600 static __inline__ unsigned short\n\
601 htons (unsigned int __arg)\n\
605 #endif /* big-endian */\n\n\
606 /* Convert a network long to a host long. */\n\n\
607 static __inline__ unsigned long\n\
608 ntohl (unsigned long __arg)\n\
610 return htonl (__arg);\n\
612 /* Convert a network short to a host short. */\n\n\
613 static __inline__ unsigned short\n\
614 ntohs (unsigned int __arg)\n\
616 return htons (__arg);\n\
621 /* * * * * * * * * * * * * * * * * * * * * * * * * *
623 * Description of Aab_Ultrix_Ansi_Compat fix
625 tSCC zAab_Ultrix_Ansi_CompatName[] =
626 "AAB_ultrix_ansi_compat";
629 * File name selection pattern
631 tSCC zAab_Ultrix_Ansi_CompatList[] =
634 * Machine/OS name selection pattern
636 #define apzAab_Ultrix_Ansi_CompatMachs (const char**)NULL
639 * content selection pattern - do fix if pattern found
641 tSCC zAab_Ultrix_Ansi_CompatSelect0[] =
644 #define AAB_ULTRIX_ANSI_COMPAT_TEST_CT 1
645 static tTestDesc aAab_Ultrix_Ansi_CompatTests[] = {
646 { TT_EGREP, zAab_Ultrix_Ansi_CompatSelect0, (regex_t*)NULL }, };
649 * Fix Command Arguments for Aab_Ultrix_Ansi_Compat
651 static const char* apzAab_Ultrix_Ansi_CompatPatch[] = {
652 "/* This file intentionally left blank. */\n",
655 /* * * * * * * * * * * * * * * * * * * * * * * * * *
657 * Description of Aab_Ultrix_Limits fix
659 tSCC zAab_Ultrix_LimitsName[] =
663 * File name selection pattern
665 tSCC zAab_Ultrix_LimitsList[] =
668 * Machine/OS name selection pattern
670 tSCC* apzAab_Ultrix_LimitsMachs[] = {
673 #define AAB_ULTRIX_LIMITS_TEST_CT 0
674 #define aAab_Ultrix_LimitsTests (tTestDesc*)NULL
677 * Fix Command Arguments for Aab_Ultrix_Limits
679 static const char* apzAab_Ultrix_LimitsPatch[] = {
680 "#ifndef _LIMITS_INCLUDED\n\
681 #define _LIMITS_INCLUDED\n\
682 #include <sys/limits.h>\n\
683 #endif /* _LIMITS_INCLUDED */",
686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
688 * Description of Aab_Ultrix_Memory fix
690 tSCC zAab_Ultrix_MemoryName[] =
694 * File name selection pattern
696 tSCC zAab_Ultrix_MemoryList[] =
699 * Machine/OS name selection pattern
701 tSCC* apzAab_Ultrix_MemoryMachs[] = {
704 #define AAB_ULTRIX_MEMORY_TEST_CT 0
705 #define aAab_Ultrix_MemoryTests (tTestDesc*)NULL
708 * Fix Command Arguments for Aab_Ultrix_Memory
710 static const char* apzAab_Ultrix_MemoryPatch[] = {
711 "#ifndef _MEMORY_INCLUDED\n\
712 #define _MEMORY_INCLUDED\n\
713 #include <strings.h>\n\
714 #endif /* _MEMORY_INCLUDED */",
717 /* * * * * * * * * * * * * * * * * * * * * * * * * *
719 * Description of Aab_Ultrix_String fix
721 tSCC zAab_Ultrix_StringName[] =
725 * File name selection pattern
727 tSCC zAab_Ultrix_StringList[] =
730 * Machine/OS name selection pattern
732 tSCC* apzAab_Ultrix_StringMachs[] = {
735 #define AAB_ULTRIX_STRING_TEST_CT 0
736 #define aAab_Ultrix_StringTests (tTestDesc*)NULL
739 * Fix Command Arguments for Aab_Ultrix_String
741 static const char* apzAab_Ultrix_StringPatch[] = {
742 "#ifndef _STRING_INCLUDED\n\
743 #define _STRING_INCLUDED\n\
744 #include <strings.h>\n\
745 #endif /* _STRING_INCLUDED */",
748 /* * * * * * * * * * * * * * * * * * * * * * * * * *
750 * Description of Aix_Pthread fix
752 tSCC zAix_PthreadName[] =
756 * File name selection pattern
758 tSCC zAix_PthreadList[] =
761 * Machine/OS name selection pattern
763 #define apzAix_PthreadMachs (const char**)NULL
766 * content selection pattern - do fix if pattern found
768 tSCC zAix_PthreadSelect0[] =
769 "(#define [A-Za-z_0-9]+)(\\\\\n\
773 #define AIX_PTHREAD_TEST_CT 1
774 static tTestDesc aAix_PthreadTests[] = {
775 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
778 * Fix Command Arguments for Aix_Pthread
780 static const char* apzAix_PthreadPatch[] = {
785 /* * * * * * * * * * * * * * * * * * * * * * * * * *
787 * Description of Aix_Sysmachine fix
789 tSCC zAix_SysmachineName[] =
793 * File name selection pattern
795 tSCC zAix_SysmachineList[] =
798 * Machine/OS name selection pattern
800 #define apzAix_SysmachineMachs (const char**)NULL
803 * content selection pattern - do fix if pattern found
805 tSCC zAix_SysmachineSelect0[] =
808 #define AIX_SYSMACHINE_TEST_CT 1
809 static tTestDesc aAix_SysmachineTests[] = {
810 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
813 * Fix Command Arguments for Aix_Sysmachine
815 static const char* apzAix_SysmachinePatch[] = {
820 /* * * * * * * * * * * * * * * * * * * * * * * * * *
822 * Description of Aix_Syswait fix
824 tSCC zAix_SyswaitName[] =
828 * File name selection pattern
830 tSCC zAix_SyswaitList[] =
833 * Machine/OS name selection pattern
835 #define apzAix_SyswaitMachs (const char**)NULL
838 * content selection pattern - do fix if pattern found
840 tSCC zAix_SyswaitSelect0[] =
841 "^extern pid_t wait3\\(\\);\n";
842 tSCC zAix_SyswaitSelect1[] =
845 #define AIX_SYSWAIT_TEST_CT 2
846 static tTestDesc aAix_SyswaitTests[] = {
847 { TT_EGREP, zAix_SyswaitSelect0, (regex_t*)NULL },
848 { TT_EGREP, zAix_SyswaitSelect1, (regex_t*)NULL }, };
851 * Fix Command Arguments for Aix_Syswait
853 static const char* apzAix_SyswaitPatch[] = {
859 /* * * * * * * * * * * * * * * * * * * * * * * * * *
861 * Description of Aix_Syswait_2 fix
863 tSCC zAix_Syswait_2Name[] =
867 * File name selection pattern
869 tSCC zAix_Syswait_2List[] =
872 * Machine/OS name selection pattern
874 #define apzAix_Syswait_2Machs (const char**)NULL
877 * content selection pattern - do fix if pattern found
879 tSCC zAix_Syswait_2Select0[] =
880 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
882 #define AIX_SYSWAIT_2_TEST_CT 1
883 static tTestDesc aAix_Syswait_2Tests[] = {
884 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
887 * Fix Command Arguments for Aix_Syswait_2
889 static const char* apzAix_Syswait_2Patch[] = {
894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
896 * Description of Aix_Volatile fix
898 tSCC zAix_VolatileName[] =
902 * File name selection pattern
904 tSCC zAix_VolatileList[] =
907 * Machine/OS name selection pattern
909 #define apzAix_VolatileMachs (const char**)NULL
912 * content selection pattern - do fix if pattern found
914 tSCC zAix_VolatileSelect0[] =
915 "typedef volatile int sig_atomic_t";
917 #define AIX_VOLATILE_TEST_CT 1
918 static tTestDesc aAix_VolatileTests[] = {
919 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
922 * Fix Command Arguments for Aix_Volatile
924 static const char* apzAix_VolatilePatch[] = {
926 "typedef int sig_atomic_t",
929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
931 * Description of Alpha___Assert fix
933 tSCC zAlpha___AssertName[] =
937 * File name selection pattern
939 tSCC zAlpha___AssertList[] =
942 * Machine/OS name selection pattern
944 #define apzAlpha___AssertMachs (const char**)NULL
947 * content selection pattern - do fix if pattern found
949 tSCC zAlpha___AssertSelect0[] =
950 "__assert\\(char \\*, char \\*, int\\)";
952 #define ALPHA___ASSERT_TEST_CT 1
953 static tTestDesc aAlpha___AssertTests[] = {
954 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
957 * Fix Command Arguments for Alpha___Assert
959 static const char* apzAlpha___AssertPatch[] = {
961 "__assert(const char *, const char *, int)",
964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
966 * Description of Alpha___Extern_Prefix fix
968 tSCC zAlpha___Extern_PrefixName[] =
969 "alpha___extern_prefix";
972 * File name selection pattern
974 #define zAlpha___Extern_PrefixList (char*)NULL
976 * Machine/OS name selection pattern
978 tSCC* apzAlpha___Extern_PrefixMachs[] = {
983 * content selection pattern - do fix if pattern found
985 tSCC zAlpha___Extern_PrefixSelect0[] =
986 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
987 (#[ \t]*pragma[ \t]*extern_prefix.*)";
989 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
990 static tTestDesc aAlpha___Extern_PrefixTests[] = {
991 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
994 * Fix Command Arguments for Alpha___Extern_Prefix
996 static const char* apzAlpha___Extern_PrefixPatch[] = {
998 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
1002 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1004 * Description of Alpha___Extern_Prefix_Standards fix
1006 tSCC zAlpha___Extern_Prefix_StandardsName[] =
1007 "alpha___extern_prefix_standards";
1010 * File name selection pattern
1012 tSCC zAlpha___Extern_Prefix_StandardsList[] =
1015 * Machine/OS name selection pattern
1017 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
1019 (const char*)NULL };
1022 * content selection pattern - do fix if pattern found
1024 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
1025 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
1027 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
1028 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
1029 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
1032 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
1034 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
1036 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
1039 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1041 * Description of Alpha___Extern_Prefix_Sys_Stat fix
1043 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
1044 "alpha___extern_prefix_sys_stat";
1047 * File name selection pattern
1049 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
1050 "sys/stat.h\0sys/mount.h\0";
1052 * Machine/OS name selection pattern
1054 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
1056 (const char*)NULL };
1059 * content selection pattern - do fix if pattern found
1061 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1062 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1064 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
1065 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1066 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1069 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1071 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1073 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1076 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1078 * Description of Alpha_Assert fix
1080 tSCC zAlpha_AssertName[] =
1084 * File name selection pattern
1086 tSCC zAlpha_AssertList[] =
1089 * Machine/OS name selection pattern
1091 #define apzAlpha_AssertMachs (const char**)NULL
1094 * content selection pattern - do fix if pattern found
1096 tSCC zAlpha_AssertSelect0[] =
1097 "(#define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1099 #define ALPHA_ASSERT_TEST_CT 1
1100 static tTestDesc aAlpha_AssertTests[] = {
1101 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1104 * Fix Command Arguments for Alpha_Assert
1106 static const char* apzAlpha_AssertPatch[] = {
1111 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1113 * Description of Alpha_Bad_Lval fix
1115 tSCC zAlpha_Bad_LvalName[] =
1119 * File name selection pattern
1121 #define zAlpha_Bad_LvalList (char*)NULL
1123 * Machine/OS name selection pattern
1125 tSCC* apzAlpha_Bad_LvalMachs[] = {
1127 (const char*)NULL };
1130 * content selection pattern - do fix if pattern found
1132 tSCC zAlpha_Bad_LvalSelect0[] =
1133 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1135 #define ALPHA_BAD_LVAL_TEST_CT 1
1136 static tTestDesc aAlpha_Bad_LvalTests[] = {
1137 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1140 * Fix Command Arguments for Alpha_Bad_Lval
1142 static const char* apzAlpha_Bad_LvalPatch[] = { "sed",
1143 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1146 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1148 * Description of Alpha_Getopt fix
1150 tSCC zAlpha_GetoptName[] =
1154 * File name selection pattern
1156 tSCC zAlpha_GetoptList[] =
1157 "stdio.h\0stdlib.h\0";
1159 * Machine/OS name selection pattern
1161 #define apzAlpha_GetoptMachs (const char**)NULL
1164 * content selection pattern - do fix if pattern found
1166 tSCC zAlpha_GetoptSelect0[] =
1167 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1169 #define ALPHA_GETOPT_TEST_CT 1
1170 static tTestDesc aAlpha_GetoptTests[] = {
1171 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1174 * Fix Command Arguments for Alpha_Getopt
1176 static const char* apzAlpha_GetoptPatch[] = {
1178 "getopt(int, char *const[], const char *)",
1181 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1183 * Description of Alpha_Parens fix
1185 tSCC zAlpha_ParensName[] =
1189 * File name selection pattern
1191 tSCC zAlpha_ParensList[] =
1194 * Machine/OS name selection pattern
1196 #define apzAlpha_ParensMachs (const char**)NULL
1199 * content selection pattern - do fix if pattern found
1201 tSCC zAlpha_ParensSelect0[] =
1202 "#ifndef\\(__mips64\\)";
1204 #define ALPHA_PARENS_TEST_CT 1
1205 static tTestDesc aAlpha_ParensTests[] = {
1206 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1209 * Fix Command Arguments for Alpha_Parens
1211 static const char* apzAlpha_ParensPatch[] = {
1216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1218 * Description of Alpha_Pthread fix
1220 tSCC zAlpha_PthreadName[] =
1224 * File name selection pattern
1226 tSCC zAlpha_PthreadList[] =
1229 * Machine/OS name selection pattern
1231 tSCC* apzAlpha_PthreadMachs[] = {
1233 (const char*)NULL };
1236 * content selection pattern - do fix if pattern found
1238 tSCC zAlpha_PthreadSelect0[] =
1239 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1240 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1242 #define ALPHA_PTHREAD_TEST_CT 1
1243 static tTestDesc aAlpha_PthreadTests[] = {
1244 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1247 * Fix Command Arguments for Alpha_Pthread
1249 static const char* apzAlpha_PthreadPatch[] = {
1251 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1255 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1257 * Description of Alpha_Pthread_Gcc fix
1259 tSCC zAlpha_Pthread_GccName[] =
1260 "alpha_pthread_gcc";
1263 * File name selection pattern
1265 tSCC zAlpha_Pthread_GccList[] =
1268 * Machine/OS name selection pattern
1270 tSCC* apzAlpha_Pthread_GccMachs[] = {
1272 (const char*)NULL };
1275 * content selection pattern - do fix if pattern found
1277 tSCC zAlpha_Pthread_GccSelect0[] =
1279 # error <pthread.h>: unrecognized compiler.";
1281 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1282 static tTestDesc aAlpha_Pthread_GccTests[] = {
1283 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1286 * Fix Command Arguments for Alpha_Pthread_Gcc
1288 static const char* apzAlpha_Pthread_GccPatch[] = {
1290 "#elif defined (__GNUC__)\n\
1291 # define _PTHREAD_ENV_GCC\n\
1295 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1297 * Description of Alpha_Pthread_Init fix
1299 tSCC zAlpha_Pthread_InitName[] =
1300 "alpha_pthread_init";
1303 * File name selection pattern
1305 tSCC zAlpha_Pthread_InitList[] =
1308 * Machine/OS name selection pattern
1310 tSCC* apzAlpha_Pthread_InitMachs[] = {
1312 (const char*)NULL };
1315 * content selection pattern - do fix if pattern found
1317 tSCC zAlpha_Pthread_InitSelect0[] =
1318 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1320 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1321 static tTestDesc aAlpha_Pthread_InitTests[] = {
1322 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1325 * Fix Command Arguments for Alpha_Pthread_Init
1327 static const char* apzAlpha_Pthread_InitPatch[] = { "sed",
1328 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1329 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1330 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1331 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1332 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1333 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1336 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1338 * Description of Alpha_Sbrk fix
1340 tSCC zAlpha_SbrkName[] =
1344 * File name selection pattern
1346 tSCC zAlpha_SbrkList[] =
1349 * Machine/OS name selection pattern
1351 #define apzAlpha_SbrkMachs (const char**)NULL
1354 * content selection pattern - do fix if pattern found
1356 tSCC zAlpha_SbrkSelect0[] =
1357 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1359 #define ALPHA_SBRK_TEST_CT 1
1360 static tTestDesc aAlpha_SbrkTests[] = {
1361 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1364 * Fix Command Arguments for Alpha_Sbrk
1366 static const char* apzAlpha_SbrkPatch[] = {
1371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1373 * Description of Alpha_Wchar fix
1375 tSCC zAlpha_WcharName[] =
1379 * File name selection pattern
1381 tSCC zAlpha_WcharList[] =
1384 * Machine/OS name selection pattern
1386 tSCC* apzAlpha_WcharMachs[] = {
1388 (const char*)NULL };
1391 * content selection pattern - do fix if pattern found
1393 tSCC zAlpha_WcharSelect0[] =
1394 "#define wcstok wcstok_r";
1396 #define ALPHA_WCHAR_TEST_CT 1
1397 static tTestDesc aAlpha_WcharTests[] = {
1398 { TT_EGREP, zAlpha_WcharSelect0, (regex_t*)NULL }, };
1401 * Fix Command Arguments for Alpha_Wchar
1403 static const char* apzAlpha_WcharPatch[] = { "sed",
1404 "-e", "s@#define wcstok wcstok_r@extern wchar_t *wcstok __((wchar_t *, const wchar_t *, wchar_t **)) __asm__(\"wcstok_r\");@",
1405 "-e", "s@#define wcsftime __wcsftime_isoc@extern size_t wcsftime __((wchar_t *, size_t, const wchar_t *, const struct tm *)) __asm__(\"__wcsftime_isoc\");@",
1408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1410 * Description of Avoid_Bool_Define fix
1412 tSCC zAvoid_Bool_DefineName[] =
1413 "avoid_bool_define";
1416 * File name selection pattern
1418 tSCC zAvoid_Bool_DefineList[] =
1419 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1421 * Machine/OS name selection pattern
1423 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1426 * content selection pattern - do fix if pattern found
1428 tSCC zAvoid_Bool_DefineSelect0[] =
1429 "#[ \t]*define[ \t]+bool[ \t]";
1432 * content bypass pattern - skip fix if pattern found
1434 tSCC zAvoid_Bool_DefineBypass0[] =
1437 #define AVOID_BOOL_DEFINE_TEST_CT 2
1438 static tTestDesc aAvoid_Bool_DefineTests[] = {
1439 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1440 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1443 * Fix Command Arguments for Avoid_Bool_Define
1445 static const char* apzAvoid_Bool_DefinePatch[] = {
1447 "#ifndef __cplusplus\n\
1450 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1453 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1455 * Description of Avoid_Bool_Type fix
1457 tSCC zAvoid_Bool_TypeName[] =
1461 * File name selection pattern
1463 tSCC zAvoid_Bool_TypeList[] =
1464 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1466 * Machine/OS name selection pattern
1468 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1471 * content selection pattern - do fix if pattern found
1473 tSCC zAvoid_Bool_TypeSelect0[] =
1474 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1477 * content bypass pattern - skip fix if pattern found
1479 tSCC zAvoid_Bool_TypeBypass0[] =
1482 #define AVOID_BOOL_TYPE_TEST_CT 2
1483 static tTestDesc aAvoid_Bool_TypeTests[] = {
1484 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1485 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1488 * Fix Command Arguments for Avoid_Bool_Type
1490 static const char* apzAvoid_Bool_TypePatch[] = {
1492 "#ifndef __cplusplus\n\
1497 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1499 * Description of Avoid_Wchar_T_Type fix
1501 tSCC zAvoid_Wchar_T_TypeName[] =
1502 "avoid_wchar_t_type";
1505 * File name selection pattern
1507 #define zAvoid_Wchar_T_TypeList (char*)NULL
1509 * Machine/OS name selection pattern
1511 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1514 * content selection pattern - do fix if pattern found
1516 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1517 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1520 * content bypass pattern - skip fix if pattern found
1522 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1524 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1526 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1527 "XFree86: xc/lib/X11/Xlib\\.h";
1529 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1530 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1531 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1532 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1533 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1534 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1537 * Fix Command Arguments for Avoid_Wchar_T_Type
1539 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1541 "#ifndef __cplusplus\n\
1546 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1548 * Description of Bad_Struct_Term fix
1550 tSCC zBad_Struct_TermName[] =
1554 * File name selection pattern
1556 tSCC zBad_Struct_TermList[] =
1559 * Machine/OS name selection pattern
1561 #define apzBad_Struct_TermMachs (const char**)NULL
1564 * content selection pattern - do fix if pattern found
1566 tSCC zBad_Struct_TermSelect0[] =
1567 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1569 #define BAD_STRUCT_TERM_TEST_CT 1
1570 static tTestDesc aBad_Struct_TermTests[] = {
1571 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1574 * Fix Command Arguments for Bad_Struct_Term
1576 static const char* apzBad_Struct_TermPatch[] = {
1581 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1583 * Description of Badquote fix
1585 tSCC zBadquoteName[] =
1589 * File name selection pattern
1591 tSCC zBadquoteList[] =
1592 "sundev/vuid_event.h\0";
1594 * Machine/OS name selection pattern
1596 #define apzBadquoteMachs (const char**)NULL
1599 * content selection pattern - do fix if pattern found
1601 tSCC zBadquoteSelect0[] =
1604 #define BADQUOTE_TEST_CT 1
1605 static tTestDesc aBadquoteTests[] = {
1606 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1609 * Fix Command Arguments for Badquote
1611 static const char* apzBadquotePatch[] = {
1616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1618 * Description of Broken_Assert_Stdio fix
1620 tSCC zBroken_Assert_StdioName[] =
1621 "broken_assert_stdio";
1624 * File name selection pattern
1626 tSCC zBroken_Assert_StdioList[] =
1629 * Machine/OS name selection pattern
1631 #define apzBroken_Assert_StdioMachs (const char**)NULL
1634 * content selection pattern - do fix if pattern found
1636 tSCC zBroken_Assert_StdioSelect0[] =
1640 * content bypass pattern - skip fix if pattern found
1642 tSCC zBroken_Assert_StdioBypass0[] =
1643 "include.*stdio\\.h";
1645 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1646 static tTestDesc aBroken_Assert_StdioTests[] = {
1647 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1648 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1651 * Fix Command Arguments for Broken_Assert_Stdio
1653 static const char* apzBroken_Assert_StdioPatch[] = {
1655 "#include <stdio.h>\n",
1658 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1660 * Description of Broken_Assert_Stdlib fix
1662 tSCC zBroken_Assert_StdlibName[] =
1663 "broken_assert_stdlib";
1666 * File name selection pattern
1668 tSCC zBroken_Assert_StdlibList[] =
1671 * Machine/OS name selection pattern
1673 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1676 * content selection pattern - do fix if pattern found
1678 tSCC zBroken_Assert_StdlibSelect0[] =
1679 "exit *\\(|abort *\\(";
1682 * content bypass pattern - skip fix if pattern found
1684 tSCC zBroken_Assert_StdlibBypass0[] =
1685 "include.*stdlib\\.h";
1687 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1688 static tTestDesc aBroken_Assert_StdlibTests[] = {
1689 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1690 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1693 * Fix Command Arguments for Broken_Assert_Stdlib
1695 static const char* apzBroken_Assert_StdlibPatch[] = {
1697 "#ifdef __cplusplus\n\
1698 #include <stdlib.h>\n\
1702 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1704 * Description of Broken_Cabs fix
1706 tSCC zBroken_CabsName[] =
1710 * File name selection pattern
1712 tSCC zBroken_CabsList[] =
1713 "math.h\0architecture/*/math.h\0";
1715 * Machine/OS name selection pattern
1717 #define apzBroken_CabsMachs (const char**)NULL
1720 * content selection pattern - do fix if pattern found
1722 tSCC zBroken_CabsSelect0[] =
1723 "^extern[ \t]+double[ \t]+cabs";
1725 #define BROKEN_CABS_TEST_CT 1
1726 static tTestDesc aBroken_CabsTests[] = {
1727 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1730 * Fix Command Arguments for Broken_Cabs
1732 static const char* apzBroken_CabsPatch[] = { "sed",
1733 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1734 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1737 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1739 * Description of Broken_Nan fix
1741 tSCC zBroken_NanName[] =
1745 * File name selection pattern
1747 tSCC zBroken_NanList[] =
1748 "architecture/ppc/math.h\0architecture/*/math.h\0";
1750 * Machine/OS name selection pattern
1752 #define apzBroken_NanMachs (const char**)NULL
1755 * content selection pattern - do fix if pattern found
1757 tSCC zBroken_NanSelect0[] =
1758 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1761 * content bypass pattern - skip fix if pattern found
1763 tSCC zBroken_NanBypass0[] =
1766 #define BROKEN_NAN_TEST_CT 2
1767 static tTestDesc aBroken_NanTests[] = {
1768 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1769 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1772 * Fix Command Arguments for Broken_Nan
1774 static const char* apzBroken_NanPatch[] = {
1779 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1781 * Description of Bsd_Stdio_Attrs_Conflict fix
1783 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1784 "bsd_stdio_attrs_conflict";
1787 * File name selection pattern
1789 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1792 * Machine/OS name selection pattern
1794 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1797 (const char*)NULL };
1800 * content selection pattern - do fix if pattern found
1802 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1803 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1805 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1806 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1807 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1810 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1812 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1814 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1815 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1816 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1819 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1821 * Description of Ctrl_Quotes_Def fix
1823 tSCC zCtrl_Quotes_DefName[] =
1827 * File name selection pattern
1829 #define zCtrl_Quotes_DefList (char*)NULL
1831 * Machine/OS name selection pattern
1833 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1836 * content selection pattern - do fix if pattern found
1838 tSCC zCtrl_Quotes_DefSelect0[] =
1839 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1841 #define CTRL_QUOTES_DEF_TEST_CT 1
1842 static tTestDesc aCtrl_Quotes_DefTests[] = {
1843 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1846 * Fix Command Arguments for Ctrl_Quotes_Def
1848 static const char* apzCtrl_Quotes_DefPatch[] = {
1853 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1855 * Description of Ctrl_Quotes_Use fix
1857 tSCC zCtrl_Quotes_UseName[] =
1861 * File name selection pattern
1863 #define zCtrl_Quotes_UseList (char*)NULL
1865 * Machine/OS name selection pattern
1867 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1870 * content selection pattern - do fix if pattern found
1872 tSCC zCtrl_Quotes_UseSelect0[] =
1873 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1875 #define CTRL_QUOTES_USE_TEST_CT 1
1876 static tTestDesc aCtrl_Quotes_UseTests[] = {
1877 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1880 * Fix Command Arguments for Ctrl_Quotes_Use
1882 static const char* apzCtrl_Quotes_UsePatch[] = {
1887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1889 * Description of Cxx_Unready fix
1891 tSCC zCxx_UnreadyName[] =
1895 * File name selection pattern
1897 tSCC zCxx_UnreadyList[] =
1898 "sys/mman.h\0rpc/types.h\0";
1900 * Machine/OS name selection pattern
1902 #define apzCxx_UnreadyMachs (const char**)NULL
1905 * content selection pattern - do fix if pattern found
1907 tSCC zCxx_UnreadySelect0[] =
1911 * content bypass pattern - skip fix if pattern found
1913 tSCC zCxx_UnreadyBypass0[] =
1914 "\"C\"|__BEGIN_DECLS";
1916 #define CXX_UNREADY_TEST_CT 2
1917 static tTestDesc aCxx_UnreadyTests[] = {
1918 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1919 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1922 * Fix Command Arguments for Cxx_Unready
1924 static const char* apzCxx_UnreadyPatch[] = {
1926 "#ifdef __cplusplus\n\
1929 "#ifdef __cplusplus\n\
1934 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1936 * Description of Darwin_Externc fix
1938 tSCC zDarwin_ExterncName[] =
1942 * File name selection pattern
1944 tSCC zDarwin_ExterncList[] =
1945 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1947 * Machine/OS name selection pattern
1949 tSCC* apzDarwin_ExterncMachs[] = {
1951 (const char*)NULL };
1954 * content bypass pattern - skip fix if pattern found
1956 tSCC zDarwin_ExterncBypass0[] =
1958 tSCC zDarwin_ExterncBypass1[] =
1961 #define DARWIN_EXTERNC_TEST_CT 2
1962 static tTestDesc aDarwin_ExterncTests[] = {
1963 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1964 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1967 * Fix Command Arguments for Darwin_Externc
1969 static const char* apzDarwin_ExterncPatch[] = {
1971 "#ifdef __cplusplus\n\
1974 "#ifdef __cplusplus\n\
1979 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1981 * Description of Darwin_Gcc4_Breakage fix
1983 tSCC zDarwin_Gcc4_BreakageName[] =
1984 "darwin_gcc4_breakage";
1987 * File name selection pattern
1989 tSCC zDarwin_Gcc4_BreakageList[] =
1990 "AvailabilityMacros.h\0";
1992 * Machine/OS name selection pattern
1994 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1996 (const char*)NULL };
1999 * content selection pattern - do fix if pattern found
2001 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2002 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2004 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
2005 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2006 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2009 * Fix Command Arguments for Darwin_Gcc4_Breakage
2011 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2013 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2016 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2018 * Description of Darwin_Private_Extern fix
2020 tSCC zDarwin_Private_ExternName[] =
2021 "darwin_private_extern";
2024 * File name selection pattern
2026 tSCC zDarwin_Private_ExternList[] =
2029 * Machine/OS name selection pattern
2031 tSCC* apzDarwin_Private_ExternMachs[] = {
2033 (const char*)NULL };
2036 * content selection pattern - do fix if pattern found
2038 tSCC zDarwin_Private_ExternSelect0[] =
2039 "__private_extern__ [a-z_]+ _dyld_";
2041 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
2042 static tTestDesc aDarwin_Private_ExternTests[] = {
2043 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2046 * Fix Command Arguments for Darwin_Private_Extern
2048 static const char* apzDarwin_Private_ExternPatch[] = {
2051 "__private_extern__",
2054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2056 * Description of Dec_Intern_Asm fix
2058 tSCC zDec_Intern_AsmName[] =
2062 * File name selection pattern
2064 tSCC zDec_Intern_AsmList[] =
2067 * Machine/OS name selection pattern
2069 #define apzDec_Intern_AsmMachs (const char**)NULL
2070 #define DEC_INTERN_ASM_TEST_CT 0
2071 #define aDec_Intern_AsmTests (tTestDesc*)NULL
2074 * Fix Command Arguments for Dec_Intern_Asm
2076 static const char* apzDec_Intern_AsmPatch[] = { "sed",
2077 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2079 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2085 * Description of Djgpp_Wchar_H fix
2087 tSCC zDjgpp_Wchar_HName[] =
2091 * File name selection pattern
2093 #define zDjgpp_Wchar_HList (char*)NULL
2095 * Machine/OS name selection pattern
2097 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2100 * content selection pattern - do fix if pattern found
2102 tSCC zDjgpp_Wchar_HSelect0[] =
2106 * content bypass pattern - skip fix if pattern found
2108 tSCC zDjgpp_Wchar_HBypass0[] =
2111 #define DJGPP_WCHAR_H_TEST_CT 2
2112 static tTestDesc aDjgpp_Wchar_HTests[] = {
2113 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2114 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2117 * Fix Command Arguments for Djgpp_Wchar_H
2119 static const char* apzDjgpp_Wchar_HPatch[] = {
2122 #include <sys/djtypes.h>",
2123 "#include <stddef.h>",
2126 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2128 * Description of Ecd_Cursor fix
2130 tSCC zEcd_CursorName[] =
2134 * File name selection pattern
2136 tSCC zEcd_CursorList[] =
2137 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2139 * Machine/OS name selection pattern
2141 #define apzEcd_CursorMachs (const char**)NULL
2144 * content selection pattern - do fix if pattern found
2146 tSCC zEcd_CursorSelect0[] =
2149 #define ECD_CURSOR_TEST_CT 1
2150 static tTestDesc aEcd_CursorTests[] = {
2151 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2154 * Fix Command Arguments for Ecd_Cursor
2156 static const char* apzEcd_CursorPatch[] = {
2161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2163 * Description of Exception_Structure fix
2165 tSCC zException_StructureName[] =
2166 "exception_structure";
2169 * File name selection pattern
2171 tSCC zException_StructureList[] =
2174 * Machine/OS name selection pattern
2176 #define apzException_StructureMachs (const char**)NULL
2179 * content selection pattern - do fix if pattern found
2181 tSCC zException_StructureSelect0[] =
2185 * content bypass pattern - skip fix if pattern found
2187 tSCC zException_StructureBypass0[] =
2188 "matherr.*(struct exception|__MATH_EXCEPTION|[ \\t]*__FP_EXCEPTION[ \\t]*\\*[ \\t]*)";
2190 #define EXCEPTION_STRUCTURE_TEST_CT 2
2191 static tTestDesc aException_StructureTests[] = {
2192 { TT_NEGREP, zException_StructureBypass0, (regex_t*)NULL },
2193 { TT_EGREP, zException_StructureSelect0, (regex_t*)NULL }, };
2196 * Fix Command Arguments for Exception_Structure
2198 static const char* apzException_StructurePatch[] = {
2200 "struct exception;\n",
2203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2205 * Description of Freebsd_Gcc3_Breakage fix
2207 tSCC zFreebsd_Gcc3_BreakageName[] =
2208 "freebsd_gcc3_breakage";
2211 * File name selection pattern
2213 tSCC zFreebsd_Gcc3_BreakageList[] =
2216 * Machine/OS name selection pattern
2218 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2220 (const char*)NULL };
2223 * content selection pattern - do fix if pattern found
2225 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2226 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2229 * content bypass pattern - skip fix if pattern found
2231 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2232 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2234 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2235 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2236 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2237 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2240 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2242 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2244 "%0 || __GNUC__ >= 3",
2247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2249 * Description of Freebsd_Gcc4_Breakage fix
2251 tSCC zFreebsd_Gcc4_BreakageName[] =
2252 "freebsd_gcc4_breakage";
2255 * File name selection pattern
2257 tSCC zFreebsd_Gcc4_BreakageList[] =
2260 * Machine/OS name selection pattern
2262 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2264 (const char*)NULL };
2267 * content selection pattern - do fix if pattern found
2269 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2270 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2272 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2273 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2274 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2277 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2279 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2281 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2284 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2286 * Description of Glibc_C99_Inline_1 fix
2288 tSCC zGlibc_C99_Inline_1Name[] =
2289 "glibc_c99_inline_1";
2292 * File name selection pattern
2294 tSCC zGlibc_C99_Inline_1List[] =
2295 "features.h\0*/features.h\0";
2297 * Machine/OS name selection pattern
2299 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2302 * content selection pattern - do fix if pattern found
2304 tSCC zGlibc_C99_Inline_1Select0[] =
2305 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2307 #define GLIBC_C99_INLINE_1_TEST_CT 1
2308 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2309 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2312 * Fix Command Arguments for Glibc_C99_Inline_1
2314 static const char* apzGlibc_C99_Inline_1Patch[] = {
2316 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2319 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2321 * Description of Glibc_C99_Inline_1a fix
2323 tSCC zGlibc_C99_Inline_1aName[] =
2324 "glibc_c99_inline_1a";
2327 * File name selection pattern
2329 tSCC zGlibc_C99_Inline_1aList[] =
2330 "features.h\0*/features.h\0";
2332 * Machine/OS name selection pattern
2334 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2337 * content selection pattern - do fix if pattern found
2339 tSCC zGlibc_C99_Inline_1aSelect0[] =
2340 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2341 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2343 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2344 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2345 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2348 * Fix Command Arguments for Glibc_C99_Inline_1a
2350 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2352 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2358 * Description of Glibc_C99_Inline_2 fix
2360 tSCC zGlibc_C99_Inline_2Name[] =
2361 "glibc_c99_inline_2";
2364 * File name selection pattern
2366 tSCC zGlibc_C99_Inline_2List[] =
2367 "sys/stat.h\0*/sys/stat.h\0";
2369 * Machine/OS name selection pattern
2371 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2374 * content selection pattern - do fix if pattern found
2376 tSCC zGlibc_C99_Inline_2Select0[] =
2377 "extern __inline__ int";
2379 #define GLIBC_C99_INLINE_2_TEST_CT 1
2380 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2381 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2384 * Fix Command Arguments for Glibc_C99_Inline_2
2386 static const char* apzGlibc_C99_Inline_2Patch[] = { "sed",
2387 "-e", "s/extern int \\(stat\\|lstat\\|fstat\\|mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2390 __inline__ int \\1/",
2391 "-e", "s/extern int __REDIRECT\\(_NTH\\|\\) (\\(stat\\|lstat\\|fstat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2394 __inline__ int __REDIRECT\\1 (\\2/",
2395 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2401 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2403 * Description of Glibc_C99_Inline_3 fix
2405 tSCC zGlibc_C99_Inline_3Name[] =
2406 "glibc_c99_inline_3";
2409 * File name selection pattern
2411 tSCC zGlibc_C99_Inline_3List[] =
2412 "bits/string2.h\0*/bits/string2.h\0";
2414 * Machine/OS name selection pattern
2416 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2419 * content selection pattern - do fix if pattern found
2421 tSCC zGlibc_C99_Inline_3Select0[] =
2425 * content bypass pattern - skip fix if pattern found
2427 tSCC zGlibc_C99_Inline_3Bypass0[] =
2428 "__extern_inline|__GNU_STDC_INLINE__";
2430 #define GLIBC_C99_INLINE_3_TEST_CT 2
2431 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2432 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2433 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2436 * Fix Command Arguments for Glibc_C99_Inline_3
2438 static const char* apzGlibc_C99_Inline_3Patch[] = {
2440 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2441 "^# ifdef __cplusplus$",
2444 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2446 * Description of Glibc_C99_Inline_4 fix
2448 tSCC zGlibc_C99_Inline_4Name[] =
2449 "glibc_c99_inline_4";
2452 * File name selection pattern
2454 tSCC zGlibc_C99_Inline_4List[] =
2455 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2457 * Machine/OS name selection pattern
2459 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2462 * content selection pattern - do fix if pattern found
2464 tSCC zGlibc_C99_Inline_4Select0[] =
2465 "(^| )extern __inline";
2468 * content bypass pattern - skip fix if pattern found
2470 tSCC zGlibc_C99_Inline_4Bypass0[] =
2471 "__extern_inline|__gnu_inline__";
2473 #define GLIBC_C99_INLINE_4_TEST_CT 2
2474 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2475 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2476 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2479 * Fix Command Arguments for Glibc_C99_Inline_4
2481 static const char* apzGlibc_C99_Inline_4Patch[] = {
2483 "%0 __attribute__ ((__gnu_inline__))",
2486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2488 * Description of Glibc_Mutex_Init fix
2490 tSCC zGlibc_Mutex_InitName[] =
2494 * File name selection pattern
2496 tSCC zGlibc_Mutex_InitList[] =
2499 * Machine/OS name selection pattern
2501 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2504 * content selection pattern - do fix if pattern found
2506 tSCC zGlibc_Mutex_InitSelect0[] =
2507 "\\{ *\\{ *0, *\\} *\\}";
2509 #define GLIBC_MUTEX_INIT_TEST_CT 1
2510 static tTestDesc aGlibc_Mutex_InitTests[] = {
2511 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2514 * Fix Command Arguments for Glibc_Mutex_Init
2516 static const char* apzGlibc_Mutex_InitPatch[] = { "sed",
2517 "-e", "/define[ \t]\\+PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/,+1s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/",
2518 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2519 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\|ERRORCHECK\\|ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2520 "-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/",
2521 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2522 "-e", "/define[ \t]\\+PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2527 * Description of Gnu_Types fix
2529 tSCC zGnu_TypesName[] =
2533 * File name selection pattern
2535 tSCC zGnu_TypesList[] =
2536 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2538 * Machine/OS name selection pattern
2540 tSCC* apzGnu_TypesMachs[] = {
2541 "*-*-solaris2.1[0-9]*",
2542 (const char*)NULL };
2545 * content selection pattern - do fix if pattern found
2547 tSCC zGnu_TypesSelect0[] =
2548 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2551 * content bypass pattern - skip fix if pattern found
2553 tSCC zGnu_TypesBypass0[] =
2554 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2556 #define GNU_TYPES_TEST_CT 2
2557 static tTestDesc aGnu_TypesTests[] = {
2558 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2559 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2562 * Fix Command Arguments for Gnu_Types
2564 static const char* apzGnu_TypesPatch[] = {
2568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2570 * Description of Hp_Inline fix
2572 tSCC zHp_InlineName[] =
2576 * File name selection pattern
2578 tSCC zHp_InlineList[] =
2579 "sys/spinlock.h\0machine/machparam.h\0";
2581 * Machine/OS name selection pattern
2583 #define apzHp_InlineMachs (const char**)NULL
2586 * content selection pattern - do fix if pattern found
2588 tSCC zHp_InlineSelect0[] =
2589 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2591 #define HP_INLINE_TEST_CT 1
2592 static tTestDesc aHp_InlineTests[] = {
2593 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
2596 * Fix Command Arguments for Hp_Inline
2598 static const char* apzHp_InlinePatch[] = {
2601 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
2604 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2606 * Description of Hp_Sysfile fix
2608 tSCC zHp_SysfileName[] =
2612 * File name selection pattern
2614 tSCC zHp_SysfileList[] =
2617 * Machine/OS name selection pattern
2619 #define apzHp_SysfileMachs (const char**)NULL
2622 * content selection pattern - do fix if pattern found
2624 tSCC zHp_SysfileSelect0[] =
2627 #define HP_SYSFILE_TEST_CT 1
2628 static tTestDesc aHp_SysfileTests[] = {
2629 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
2632 * Fix Command Arguments for Hp_Sysfile
2634 static const char* apzHp_SysfilePatch[] = {
2636 "(struct file *, ...)",
2640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2642 * Description of Hpux10_Cpp_Pow_Inline fix
2644 tSCC zHpux10_Cpp_Pow_InlineName[] =
2645 "hpux10_cpp_pow_inline";
2648 * File name selection pattern
2650 tSCC zHpux10_Cpp_Pow_InlineList[] =
2651 "fixinc-test-limits.h\0math.h\0";
2653 * Machine/OS name selection pattern
2655 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
2658 * content selection pattern - do fix if pattern found
2660 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
2661 "^# +ifdef +__cplusplus\n\
2663 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
2664 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
2666 +extern +\"C\" +\\{\n\
2670 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
2671 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
2672 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2675 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
2677 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
2682 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2684 * Description of Hpux11_Cpp_Pow_Inline fix
2686 tSCC zHpux11_Cpp_Pow_InlineName[] =
2687 "hpux11_cpp_pow_inline";
2690 * File name selection pattern
2692 tSCC zHpux11_Cpp_Pow_InlineList[] =
2695 * Machine/OS name selection pattern
2697 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
2700 * content selection pattern - do fix if pattern found
2702 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
2703 " +inline double pow\\(double d,int expon\\) \\{\n\
2704 +return pow\\(d, \\(double\\)expon\\);\n\
2707 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
2708 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
2709 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
2712 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
2714 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
2719 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2721 * Description of Hppa_Hpux_Fp_Macros fix
2723 tSCC zHppa_Hpux_Fp_MacrosName[] =
2724 "hppa_hpux_fp_macros";
2727 * File name selection pattern
2729 tSCC zHppa_Hpux_Fp_MacrosList[] =
2732 * Machine/OS name selection pattern
2734 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
2736 (const char*)NULL };
2739 * content selection pattern - do fix if pattern found
2741 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
2742 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
2743 #[ \t]*define[ \t]*FP_ZERO.*\n\
2744 #[ \t]*define[ \t]*FP_INFINITE.*\n\
2745 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
2746 #[ \t]*define[ \t]*FP_NAN.*\n";
2748 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
2749 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
2750 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
2753 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
2755 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
2757 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
2758 #if defined(_INCLUDE_HPUX_SOURCE) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
2760 #ifdef _INCLUDE_HPUX_SOURCE\n",
2763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2765 * Description of Hpux10_Ctype_Declarations1 fix
2767 tSCC zHpux10_Ctype_Declarations1Name[] =
2768 "hpux10_ctype_declarations1";
2771 * File name selection pattern
2773 tSCC zHpux10_Ctype_Declarations1List[] =
2776 * Machine/OS name selection pattern
2778 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
2781 * content selection pattern - do fix if pattern found
2783 tSCC zHpux10_Ctype_Declarations1Select0[] =
2784 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
2787 * content bypass pattern - skip fix if pattern found
2789 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
2790 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
2792 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
2793 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
2794 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
2795 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
2798 * Fix Command Arguments for Hpux10_Ctype_Declarations1
2800 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
2802 "#ifdef _PROTOTYPES\n\
2803 extern int __tolower(int);\n\
2804 extern int __toupper(int);\n\
2805 #else /* NOT _PROTOTYPES */\n\
2806 extern int __tolower();\n\
2807 extern int __toupper();\n\
2808 #endif /* _PROTOTYPES */\n\n\
2812 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2814 * Description of Hpux10_Ctype_Declarations2 fix
2816 tSCC zHpux10_Ctype_Declarations2Name[] =
2817 "hpux10_ctype_declarations2";
2820 * File name selection pattern
2822 tSCC zHpux10_Ctype_Declarations2List[] =
2825 * Machine/OS name selection pattern
2827 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
2830 * content selection pattern - do fix if pattern found
2832 tSCC zHpux10_Ctype_Declarations2Select0[] =
2833 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
2836 * content bypass pattern - skip fix if pattern found
2838 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
2839 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
2841 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
2842 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
2843 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
2844 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
2847 * Fix Command Arguments for Hpux10_Ctype_Declarations2
2849 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
2852 #ifdef _PROTOTYPES\n\
2853 extern int _isalnum(int);\n\
2854 extern int _isalpha(int);\n\
2855 extern int _iscntrl(int);\n\
2856 extern int _isdigit(int);\n\
2857 extern int _isgraph(int);\n\
2858 extern int _islower(int);\n\
2859 extern int _isprint(int);\n\
2860 extern int _ispunct(int);\n\
2861 extern int _isspace(int);\n\
2862 extern int _isupper(int);\n\
2863 extern int _isxdigit(int);\n\
2864 # else /* not _PROTOTYPES */\n\
2865 extern int _isalnum();\n\
2866 extern int _isalpha();\n\
2867 extern int _iscntrl();\n\
2868 extern int _isdigit();\n\
2869 extern int _isgraph();\n\
2870 extern int _islower();\n\
2871 extern int _isprint();\n\
2872 extern int _ispunct();\n\
2873 extern int _isspace();\n\
2874 extern int _isupper();\n\
2875 extern int _isxdigit();\n\
2876 #endif /* _PROTOTYPES */\n",
2879 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2881 * Description of Hpux10_Stdio_Declarations fix
2883 tSCC zHpux10_Stdio_DeclarationsName[] =
2884 "hpux10_stdio_declarations";
2887 * File name selection pattern
2889 tSCC zHpux10_Stdio_DeclarationsList[] =
2892 * Machine/OS name selection pattern
2894 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
2897 * content selection pattern - do fix if pattern found
2899 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
2900 "^#[ \t]*define _iob[ \t]*__iob";
2903 * content bypass pattern - skip fix if pattern found
2905 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
2906 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
2908 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
2909 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
2910 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
2911 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
2914 * Fix Command Arguments for Hpux10_Stdio_Declarations
2916 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
2919 # if defined(__STDC__) || defined(__cplusplus)\n\
2920 extern int snprintf(char *, size_t, const char *, ...);\n\
2921 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
2922 # else /* not __STDC__) || __cplusplus */\n\
2923 extern int snprintf();\n\
2924 extern int vsnprintf();\n\
2925 # endif /* __STDC__) || __cplusplus */\n",
2928 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2930 * Description of Hpux11_Abs fix
2932 tSCC zHpux11_AbsName[] =
2936 * File name selection pattern
2938 tSCC zHpux11_AbsList[] =
2941 * Machine/OS name selection pattern
2943 tSCC* apzHpux11_AbsMachs[] = {
2945 (const char*)NULL };
2948 * content selection pattern - do fix if pattern found
2950 tSCC zHpux11_AbsSelect0[] =
2951 "ifndef _MATH_INCLUDED";
2953 #define HPUX11_ABS_TEST_CT 1
2954 static tTestDesc aHpux11_AbsTests[] = {
2955 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
2958 * Fix Command Arguments for Hpux11_Abs
2960 static const char* apzHpux11_AbsPatch[] = {
2962 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
2965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2967 * Description of Hpux11_Fabsf fix
2969 tSCC zHpux11_FabsfName[] =
2973 * File name selection pattern
2975 tSCC zHpux11_FabsfList[] =
2978 * Machine/OS name selection pattern
2980 #define apzHpux11_FabsfMachs (const char**)NULL
2983 * content selection pattern - do fix if pattern found
2985 tSCC zHpux11_FabsfSelect0[] =
2986 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2989 * content bypass pattern - skip fix if pattern found
2991 tSCC zHpux11_FabsfBypass0[] =
2994 #define HPUX11_FABSF_TEST_CT 2
2995 static tTestDesc aHpux11_FabsfTests[] = {
2996 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
2997 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3000 * Fix Command Arguments for Hpux11_Fabsf
3002 static const char* apzHpux11_FabsfPatch[] = {
3004 "#ifndef __cplusplus\n\
3009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3011 * Description of Hpux11_Size_T fix
3013 tSCC zHpux11_Size_TName[] =
3017 * File name selection pattern
3019 #define zHpux11_Size_TList (char*)NULL
3021 * Machine/OS name selection pattern
3023 tSCC* apzHpux11_Size_TMachs[] = {
3025 (const char*)NULL };
3028 * content selection pattern - do fix if pattern found
3030 tSCC zHpux11_Size_TSelect0[] =
3033 #define HPUX11_SIZE_T_TEST_CT 1
3034 static tTestDesc aHpux11_Size_TTests[] = {
3035 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3038 * Fix Command Arguments for Hpux11_Size_T
3040 static const char* apzHpux11_Size_TPatch[] = {
3045 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3047 * Description of Hpux11_Snprintf fix
3049 tSCC zHpux11_SnprintfName[] =
3053 * File name selection pattern
3055 tSCC zHpux11_SnprintfList[] =
3058 * Machine/OS name selection pattern
3060 #define apzHpux11_SnprintfMachs (const char**)NULL
3063 * content selection pattern - do fix if pattern found
3065 tSCC zHpux11_SnprintfSelect0[] =
3066 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3068 #define HPUX11_SNPRINTF_TEST_CT 1
3069 static tTestDesc aHpux11_SnprintfTests[] = {
3070 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3073 * Fix Command Arguments for Hpux11_Snprintf
3075 static const char* apzHpux11_SnprintfPatch[] = {
3080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3082 * Description of Hpux11_Uint32_C fix
3084 tSCC zHpux11_Uint32_CName[] =
3088 * File name selection pattern
3090 tSCC zHpux11_Uint32_CList[] =
3093 * Machine/OS name selection pattern
3095 #define apzHpux11_Uint32_CMachs (const char**)NULL
3098 * content selection pattern - do fix if pattern found
3100 tSCC zHpux11_Uint32_CSelect0[] =
3101 "^#define UINT32_C\\(__c\\)[ \t]*__CONCAT__\\(__CONCAT_U__\\(__c\\),l\\)";
3103 #define HPUX11_UINT32_C_TEST_CT 1
3104 static tTestDesc aHpux11_Uint32_CTests[] = {
3105 { TT_EGREP, zHpux11_Uint32_CSelect0, (regex_t*)NULL }, };
3108 * Fix Command Arguments for Hpux11_Uint32_C
3110 static const char* apzHpux11_Uint32_CPatch[] = {
3112 "#define UINT32_C(__c) __CONCAT__(__c,ul)",
3115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3117 * Description of Hpux11_Vsnprintf fix
3119 tSCC zHpux11_VsnprintfName[] =
3123 * File name selection pattern
3125 tSCC zHpux11_VsnprintfList[] =
3128 * Machine/OS name selection pattern
3130 #define apzHpux11_VsnprintfMachs (const char**)NULL
3133 * content selection pattern - do fix if pattern found
3135 tSCC zHpux11_VsnprintfSelect0[] =
3136 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3138 #define HPUX11_VSNPRINTF_TEST_CT 1
3139 static tTestDesc aHpux11_VsnprintfTests[] = {
3140 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3143 * Fix Command Arguments for Hpux11_Vsnprintf
3145 static const char* apzHpux11_VsnprintfPatch[] = {
3150 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3152 * Description of Hpux8_Bogus_Inlines fix
3154 tSCC zHpux8_Bogus_InlinesName[] =
3155 "hpux8_bogus_inlines";
3158 * File name selection pattern
3160 tSCC zHpux8_Bogus_InlinesList[] =
3163 * Machine/OS name selection pattern
3165 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3168 * content selection pattern - do fix if pattern found
3170 tSCC zHpux8_Bogus_InlinesSelect0[] =
3174 * content bypass pattern - skip fix if pattern found
3176 tSCC zHpux8_Bogus_InlinesBypass0[] =
3179 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3180 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3181 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3182 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3185 * Fix Command Arguments for Hpux8_Bogus_Inlines
3187 static const char* apzHpux8_Bogus_InlinesPatch[] = { "sed",
3188 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3189 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3190 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3191 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3194 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3196 * Description of Hpux_Ctype_Macros fix
3198 tSCC zHpux_Ctype_MacrosName[] =
3199 "hpux_ctype_macros";
3202 * File name selection pattern
3204 tSCC zHpux_Ctype_MacrosList[] =
3207 * Machine/OS name selection pattern
3209 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3212 * content selection pattern - do fix if pattern found
3214 tSCC zHpux_Ctype_MacrosSelect0[] =
3215 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3217 #define HPUX_CTYPE_MACROS_TEST_CT 1
3218 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3219 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3222 * Fix Command Arguments for Hpux_Ctype_Macros
3224 static const char* apzHpux_Ctype_MacrosPatch[] = {
3229 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3231 * Description of Hpux_Htonl fix
3233 tSCC zHpux_HtonlName[] =
3237 * File name selection pattern
3239 tSCC zHpux_HtonlList[] =
3242 * Machine/OS name selection pattern
3244 #define apzHpux_HtonlMachs (const char**)NULL
3247 * content selection pattern - do fix if pattern found
3249 tSCC zHpux_HtonlSelect0[] =
3250 "#ifndef _XOPEN_SOURCE_EXTENDED\n\
3252 \\* Macros for number representation conversion\\.\n\
3256 #define HPUX_HTONL_TEST_CT 1
3257 static tTestDesc aHpux_HtonlTests[] = {
3258 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3261 * Fix Command Arguments for Hpux_Htonl
3263 static const char* apzHpux_HtonlPatch[] = {
3269 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3271 * Description of Hpux_Long_Double fix
3273 tSCC zHpux_Long_DoubleName[] =
3277 * File name selection pattern
3279 tSCC zHpux_Long_DoubleList[] =
3282 * Machine/OS name selection pattern
3284 #define apzHpux_Long_DoubleMachs (const char**)NULL
3287 * content selection pattern - do fix if pattern found
3289 tSCC zHpux_Long_DoubleSelect0[] =
3290 "extern[ \t]long_double[ \t]strtold";
3293 * content bypass pattern - skip fix if pattern found
3295 tSCC zHpux_Long_DoubleBypass0[] =
3298 #define HPUX_LONG_DOUBLE_TEST_CT 2
3299 static tTestDesc aHpux_Long_DoubleTests[] = {
3300 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3301 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3304 * Fix Command Arguments for Hpux_Long_Double
3306 static const char* apzHpux_Long_DoublePatch[] = { "sed",
3307 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3308 "-e", "s/long_double/long double/g",
3311 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3313 * Description of Hpux_Systime fix
3315 tSCC zHpux_SystimeName[] =
3319 * File name selection pattern
3321 tSCC zHpux_SystimeList[] =
3324 * Machine/OS name selection pattern
3326 #define apzHpux_SystimeMachs (const char**)NULL
3329 * content selection pattern - do fix if pattern found
3331 tSCC zHpux_SystimeSelect0[] =
3332 "^extern struct sigevent;";
3334 #define HPUX_SYSTIME_TEST_CT 1
3335 static tTestDesc aHpux_SystimeTests[] = {
3336 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3339 * Fix Command Arguments for Hpux_Systime
3341 static const char* apzHpux_SystimePatch[] = {
3346 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3348 * Description of Hpux_Spu_Info fix
3350 tSCC zHpux_Spu_InfoName[] =
3354 * File name selection pattern
3356 tSCC zHpux_Spu_InfoList[] =
3357 "ia64/sys/getppdp.h\0";
3359 * Machine/OS name selection pattern
3361 tSCC* apzHpux_Spu_InfoMachs[] = {
3363 (const char*)NULL };
3366 * content selection pattern - do fix if pattern found
3368 tSCC zHpux_Spu_InfoSelect0[] =
3369 "^.*extern.*spu_info.*";
3371 #define HPUX_SPU_INFO_TEST_CT 1
3372 static tTestDesc aHpux_Spu_InfoTests[] = {
3373 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3376 * Fix Command Arguments for Hpux_Spu_Info
3378 static const char* apzHpux_Spu_InfoPatch[] = {
3385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3387 * Description of Hpux11_Extern_Sendfile fix
3389 tSCC zHpux11_Extern_SendfileName[] =
3390 "hpux11_extern_sendfile";
3393 * File name selection pattern
3395 tSCC zHpux11_Extern_SendfileList[] =
3398 * Machine/OS name selection pattern
3400 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3401 "*-hp-hpux11.[12]*",
3402 (const char*)NULL };
3405 * content selection pattern - do fix if pattern found
3407 tSCC zHpux11_Extern_SendfileSelect0[] =
3408 "^[ \t]*extern sbsize_t sendfile.*\n\
3411 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3412 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3413 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3416 * Fix Command Arguments for Hpux11_Extern_Sendfile
3418 static const char* apzHpux11_Extern_SendfilePatch[] = {
3420 "#ifndef _APP32_64BIT_OFF_T\n\
3424 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3426 * Description of Hpux11_Extern_Sendpath fix
3428 tSCC zHpux11_Extern_SendpathName[] =
3429 "hpux11_extern_sendpath";
3432 * File name selection pattern
3434 tSCC zHpux11_Extern_SendpathList[] =
3437 * Machine/OS name selection pattern
3439 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3440 "*-hp-hpux11.[12]*",
3441 (const char*)NULL };
3444 * content selection pattern - do fix if pattern found
3446 tSCC zHpux11_Extern_SendpathSelect0[] =
3447 "^[ \t]*extern sbsize_t sendpath.*\n\
3450 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3451 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3452 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3455 * Fix Command Arguments for Hpux11_Extern_Sendpath
3457 static const char* apzHpux11_Extern_SendpathPatch[] = {
3459 "#ifndef _APP32_64BIT_OFF_T\n\
3463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3465 * Description of Hpux_Extern_Errno fix
3467 tSCC zHpux_Extern_ErrnoName[] =
3468 "hpux_extern_errno";
3471 * File name selection pattern
3473 tSCC zHpux_Extern_ErrnoList[] =
3476 * Machine/OS name selection pattern
3478 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3480 "*-hp-hpux11.[0-2]*",
3481 (const char*)NULL };
3484 * content selection pattern - do fix if pattern found
3486 tSCC zHpux_Extern_ErrnoSelect0[] =
3487 "^[ \t]*extern int errno;$";
3489 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3490 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3491 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3494 * Fix Command Arguments for Hpux_Extern_Errno
3496 static const char* apzHpux_Extern_ErrnoPatch[] = {
3498 "#ifdef __cplusplus\n\
3502 #ifdef __cplusplus\n\
3507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3509 * Description of Hpux11_Pthread_Const fix
3511 tSCC zHpux11_Pthread_ConstName[] =
3512 "hpux11_pthread_const";
3515 * File name selection pattern
3517 tSCC zHpux11_Pthread_ConstList[] =
3520 * Machine/OS name selection pattern
3522 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3523 "*-hp-hpux11.[0-3]*",
3524 (const char*)NULL };
3527 * content selection pattern - do fix if pattern found
3529 tSCC zHpux11_Pthread_ConstSelect0[] =
3530 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3532 #define HPUX11_PTHREAD_CONST_TEST_CT 1
3533 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3534 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3537 * Fix Command Arguments for Hpux11_Pthread_Const
3539 static const char* apzHpux11_Pthread_ConstPatch[] = {
3541 "#define __POINTER_SET\t\t((void *) 1L)",
3544 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3546 * Description of Hpux_Pthread_Initializers fix
3548 tSCC zHpux_Pthread_InitializersName[] =
3549 "hpux_pthread_initializers";
3552 * File name selection pattern
3554 tSCC zHpux_Pthread_InitializersList[] =
3557 * Machine/OS name selection pattern
3559 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3560 "*-hp-hpux11.[0-3]*",
3561 (const char*)NULL };
3562 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3563 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3566 * Fix Command Arguments for Hpux_Pthread_Initializers
3568 static const char* apzHpux_Pthread_InitializersPatch[] = { "sed",
3569 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3570 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3571 "-e", "/^[ \t]*0$/d",
3572 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3573 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3574 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3575 "-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\\\\@",
3576 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3577 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3578 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3579 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3580 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3581 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3586 * Description of Huge_Val_Hex fix
3588 tSCC zHuge_Val_HexName[] =
3592 * File name selection pattern
3594 tSCC zHuge_Val_HexList[] =
3595 "bits/huge_val.h\0";
3597 * Machine/OS name selection pattern
3599 #define apzHuge_Val_HexMachs (const char**)NULL
3602 * content selection pattern - do fix if pattern found
3604 tSCC zHuge_Val_HexSelect0[] =
3605 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
3608 * content bypass pattern - skip fix if pattern found
3610 tSCC zHuge_Val_HexBypass0[] =
3611 "__builtin_huge_val";
3613 #define HUGE_VAL_HEX_TEST_CT 2
3614 static tTestDesc aHuge_Val_HexTests[] = {
3615 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
3616 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
3619 * Fix Command Arguments for Huge_Val_Hex
3621 static const char* apzHuge_Val_HexPatch[] = {
3623 "#define HUGE_VAL (__builtin_huge_val())\n",
3626 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3628 * Description of Huge_Valf_Hex fix
3630 tSCC zHuge_Valf_HexName[] =
3634 * File name selection pattern
3636 tSCC zHuge_Valf_HexList[] =
3637 "bits/huge_val.h\0";
3639 * Machine/OS name selection pattern
3641 #define apzHuge_Valf_HexMachs (const char**)NULL
3644 * content selection pattern - do fix if pattern found
3646 tSCC zHuge_Valf_HexSelect0[] =
3647 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
3650 * content bypass pattern - skip fix if pattern found
3652 tSCC zHuge_Valf_HexBypass0[] =
3653 "__builtin_huge_valf";
3655 #define HUGE_VALF_HEX_TEST_CT 2
3656 static tTestDesc aHuge_Valf_HexTests[] = {
3657 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
3658 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
3661 * Fix Command Arguments for Huge_Valf_Hex
3663 static const char* apzHuge_Valf_HexPatch[] = {
3665 "#define HUGE_VALF (__builtin_huge_valf())\n",
3668 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3670 * Description of Huge_Vall_Hex fix
3672 tSCC zHuge_Vall_HexName[] =
3676 * File name selection pattern
3678 tSCC zHuge_Vall_HexList[] =
3679 "bits/huge_val.h\0";
3681 * Machine/OS name selection pattern
3683 #define apzHuge_Vall_HexMachs (const char**)NULL
3686 * content selection pattern - do fix if pattern found
3688 tSCC zHuge_Vall_HexSelect0[] =
3689 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
3692 * content bypass pattern - skip fix if pattern found
3694 tSCC zHuge_Vall_HexBypass0[] =
3695 "__builtin_huge_vall";
3697 #define HUGE_VALL_HEX_TEST_CT 2
3698 static tTestDesc aHuge_Vall_HexTests[] = {
3699 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
3700 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
3703 * Fix Command Arguments for Huge_Vall_Hex
3705 static const char* apzHuge_Vall_HexPatch[] = {
3707 "#define HUGE_VALL (__builtin_huge_vall())\n",
3710 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3712 * Description of Int_Abort_Free_And_Exit fix
3714 tSCC zInt_Abort_Free_And_ExitName[] =
3715 "int_abort_free_and_exit";
3718 * File name selection pattern
3720 tSCC zInt_Abort_Free_And_ExitList[] =
3723 * Machine/OS name selection pattern
3725 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
3728 * content selection pattern - do fix if pattern found
3730 tSCC zInt_Abort_Free_And_ExitSelect0[] =
3731 "int[ \t]+(abort|free|exit)[ \t]*\\(";
3734 * content bypass pattern - skip fix if pattern found
3736 tSCC zInt_Abort_Free_And_ExitBypass0[] =
3737 "_CLASSIC_ANSI_TYPES";
3739 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
3740 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
3741 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
3742 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
3745 * Fix Command Arguments for Int_Abort_Free_And_Exit
3747 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
3752 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3754 * Description of Io_Quotes_Def fix
3756 tSCC zIo_Quotes_DefName[] =
3760 * File name selection pattern
3762 #define zIo_Quotes_DefList (char*)NULL
3764 * Machine/OS name selection pattern
3766 #define apzIo_Quotes_DefMachs (const char**)NULL
3769 * content selection pattern - do fix if pattern found
3771 tSCC zIo_Quotes_DefSelect0[] =
3772 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
3774 #define IO_QUOTES_DEF_TEST_CT 1
3775 static tTestDesc aIo_Quotes_DefTests[] = {
3776 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
3779 * Fix Command Arguments for Io_Quotes_Def
3781 static const char* apzIo_Quotes_DefPatch[] = {
3786 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3788 * Description of Io_Quotes_Use fix
3790 tSCC zIo_Quotes_UseName[] =
3794 * File name selection pattern
3796 #define zIo_Quotes_UseList (char*)NULL
3798 * Machine/OS name selection pattern
3800 #define apzIo_Quotes_UseMachs (const char**)NULL
3803 * content selection pattern - do fix if pattern found
3805 tSCC zIo_Quotes_UseSelect0[] =
3806 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
3808 #define IO_QUOTES_USE_TEST_CT 1
3809 static tTestDesc aIo_Quotes_UseTests[] = {
3810 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
3813 * Fix Command Arguments for Io_Quotes_Use
3815 static const char* apzIo_Quotes_UsePatch[] = {
3820 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3822 * Description of Ip_Missing_Semi fix
3824 tSCC zIp_Missing_SemiName[] =
3828 * File name selection pattern
3830 tSCC zIp_Missing_SemiList[] =
3833 * Machine/OS name selection pattern
3835 #define apzIp_Missing_SemiMachs (const char**)NULL
3838 * content selection pattern - do fix if pattern found
3840 tSCC zIp_Missing_SemiSelect0[] =
3843 #define IP_MISSING_SEMI_TEST_CT 1
3844 static tTestDesc aIp_Missing_SemiTests[] = {
3845 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
3848 * Fix Command Arguments for Ip_Missing_Semi
3850 static const char* apzIp_Missing_SemiPatch[] = { "sed",
3851 "-e", "/^struct/,/^};/s/}$/};/",
3854 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3856 * Description of Irix___Restrict fix
3858 tSCC zIrix___RestrictName[] =
3862 * File name selection pattern
3864 tSCC zIrix___RestrictList[] =
3865 "internal/sgimacros.h\0";
3867 * Machine/OS name selection pattern
3869 tSCC* apzIrix___RestrictMachs[] = {
3871 (const char*)NULL };
3874 * content selection pattern - do fix if pattern found
3876 tSCC zIrix___RestrictSelect0[] =
3878 )(#[ \t]*define __restrict restrict)";
3880 #define IRIX___RESTRICT_TEST_CT 1
3881 static tTestDesc aIrix___RestrictTests[] = {
3882 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
3885 * Fix Command Arguments for Irix___Restrict
3887 static const char* apzIrix___RestrictPatch[] = {
3889 "%1# ifndef __cplusplus\n\
3894 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3896 * Description of Irix___Generic1 fix
3898 tSCC zIrix___Generic1Name[] =
3902 * File name selection pattern
3904 tSCC zIrix___Generic1List[] =
3905 "internal/math_core.h\0";
3907 * Machine/OS name selection pattern
3909 tSCC* apzIrix___Generic1Machs[] = {
3911 (const char*)NULL };
3914 * content selection pattern - do fix if pattern found
3916 tSCC zIrix___Generic1Select0[] =
3917 "#define ([a-z]+)\\(x\\) *__generic.*";
3919 #define IRIX___GENERIC1_TEST_CT 1
3920 static tTestDesc aIrix___Generic1Tests[] = {
3921 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
3924 * Fix Command Arguments for Irix___Generic1
3926 static const char* apzIrix___Generic1Patch[] = {
3928 "extern int %1(double);\n\
3929 extern int %1f(float);\n\
3930 extern int %1l(long double);\n\
3931 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
3932 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
3936 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3938 * Description of Irix___Generic2 fix
3940 tSCC zIrix___Generic2Name[] =
3944 * File name selection pattern
3946 tSCC zIrix___Generic2List[] =
3947 "internal/math_core.h\0";
3949 * Machine/OS name selection pattern
3951 tSCC* apzIrix___Generic2Machs[] = {
3953 (const char*)NULL };
3956 * content selection pattern - do fix if pattern found
3958 tSCC zIrix___Generic2Select0[] =
3959 "#define ([a-z]+)\\(x,y\\) *__generic.*";
3961 #define IRIX___GENERIC2_TEST_CT 1
3962 static tTestDesc aIrix___Generic2Tests[] = {
3963 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
3966 * Fix Command Arguments for Irix___Generic2
3968 static const char* apzIrix___Generic2Patch[] = {
3970 "#define %1(x,y) \\\n\
3971 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
3972 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
3976 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3978 * Description of Irix_Asm_Apostrophe fix
3980 tSCC zIrix_Asm_ApostropheName[] =
3981 "irix_asm_apostrophe";
3984 * File name selection pattern
3986 tSCC zIrix_Asm_ApostropheList[] =
3989 * Machine/OS name selection pattern
3991 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
3994 * content selection pattern - do fix if pattern found
3996 tSCC zIrix_Asm_ApostropheSelect0[] =
3997 "^[ \t]*#.*[Ww]e're";
3999 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
4000 static tTestDesc aIrix_Asm_ApostropheTests[] = {
4001 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
4004 * Fix Command Arguments for Irix_Asm_Apostrophe
4006 static const char* apzIrix_Asm_ApostrophePatch[] = {
4009 "^([ \t]*#.*[Ww]e)'re",
4012 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4014 * Description of Irix_Limits_Const fix
4016 tSCC zIrix_Limits_ConstName[] =
4017 "irix_limits_const";
4020 * File name selection pattern
4022 tSCC zIrix_Limits_ConstList[] =
4023 "fixinc-test-limits.h\0limits.h\0";
4025 * Machine/OS name selection pattern
4027 #define apzIrix_Limits_ConstMachs (const char**)NULL
4030 * content selection pattern - do fix if pattern found
4032 tSCC zIrix_Limits_ConstSelect0[] =
4035 #define IRIX_LIMITS_CONST_TEST_CT 1
4036 static tTestDesc aIrix_Limits_ConstTests[] = {
4037 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4040 * Fix Command Arguments for Irix_Limits_Const
4042 static const char* apzIrix_Limits_ConstPatch[] = {
4047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4049 * Description of Irix_Socklen_T fix
4051 tSCC zIrix_Socklen_TName[] =
4055 * File name selection pattern
4057 tSCC zIrix_Socklen_TList[] =
4060 * Machine/OS name selection pattern
4062 tSCC* apzIrix_Socklen_TMachs[] = {
4064 (const char*)NULL };
4067 * content selection pattern - do fix if pattern found
4069 tSCC zIrix_Socklen_TSelect0[] =
4070 "(#define _SOCKLEN_T\n\
4071 )(typedef u_int32_t socklen_t;)";
4073 #define IRIX_SOCKLEN_T_TEST_CT 1
4074 static tTestDesc aIrix_Socklen_TTests[] = {
4075 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4078 * Fix Command Arguments for Irix_Socklen_T
4080 static const char* apzIrix_Socklen_TPatch[] = {
4082 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4083 typedef int socklen_t;\n\
4086 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4089 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4091 * Description of Irix_Stdint_C99 fix
4093 tSCC zIrix_Stdint_C99Name[] =
4097 * File name selection pattern
4099 tSCC zIrix_Stdint_C99List[] =
4102 * Machine/OS name selection pattern
4104 tSCC* apzIrix_Stdint_C99Machs[] = {
4106 (const char*)NULL };
4109 * content selection pattern - do fix if pattern found
4111 tSCC zIrix_Stdint_C99Select0[] =
4113 )(#error This header file is to be used only for c99 mode compilations)";
4115 #define IRIX_STDINT_C99_TEST_CT 1
4116 static tTestDesc aIrix_Stdint_C99Tests[] = {
4117 { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
4120 * Fix Command Arguments for Irix_Stdint_C99
4122 static const char* apzIrix_Stdint_C99Patch[] = {
4128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4130 * Description of Irix_Stdio_Va_List fix
4132 tSCC zIrix_Stdio_Va_ListName[] =
4133 "irix_stdio_va_list";
4136 * File name selection pattern
4138 tSCC zIrix_Stdio_Va_ListList[] =
4139 "stdio.h\0internal/stdio_core.h\0";
4141 * Machine/OS name selection pattern
4143 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4146 * content selection pattern - do fix if pattern found
4148 tSCC zIrix_Stdio_Va_ListSelect0[] =
4149 "/\\* va_list \\*/ char \\*";
4151 #define IRIX_STDIO_VA_LIST_TEST_CT 1
4152 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4153 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4156 * Fix Command Arguments for Irix_Stdio_Va_List
4158 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4163 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4165 * Description of Irix_Wcsftime fix
4167 tSCC zIrix_WcsftimeName[] =
4171 * File name selection pattern
4173 tSCC zIrix_WcsftimeList[] =
4174 "internal/wchar_core.h\0";
4176 * Machine/OS name selection pattern
4178 tSCC* apzIrix_WcsftimeMachs[] = {
4180 (const char*)NULL };
4183 * content selection pattern - do fix if pattern found
4185 tSCC zIrix_WcsftimeSelect0[] =
4187 (extern size_t[ \t]+wcsftime.*const char *.*)";
4189 #define IRIX_WCSFTIME_TEST_CT 1
4190 static tTestDesc aIrix_WcsftimeTests[] = {
4191 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4194 * Fix Command Arguments for Irix_Wcsftime
4196 static const char* apzIrix_WcsftimePatch[] = {
4198 "#if _NO_XOPEN5 && !defined(__c99)\n\
4202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4204 * Description of Isc_Fmod fix
4206 tSCC zIsc_FmodName[] =
4210 * File name selection pattern
4212 tSCC zIsc_FmodList[] =
4215 * Machine/OS name selection pattern
4217 #define apzIsc_FmodMachs (const char**)NULL
4220 * content selection pattern - do fix if pattern found
4222 tSCC zIsc_FmodSelect0[] =
4225 #define ISC_FMOD_TEST_CT 1
4226 static tTestDesc aIsc_FmodTests[] = {
4227 { TT_EGREP, zIsc_FmodSelect0, (regex_t*)NULL }, };
4230 * Fix Command Arguments for Isc_Fmod
4232 static const char* apzIsc_FmodPatch[] = {
4234 "fmod(double, double)",
4237 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4239 * Description of Isc_Omits_With_Stdc fix
4241 tSCC zIsc_Omits_With_StdcName[] =
4242 "isc_omits_with_stdc";
4245 * File name selection pattern
4247 tSCC zIsc_Omits_With_StdcList[] =
4248 "stdio.h\0math.h\0ctype.h\0sys/limits.h\0sys/fcntl.h\0sys/dirent.h\0";
4250 * Machine/OS name selection pattern
4252 #define apzIsc_Omits_With_StdcMachs (const char**)NULL
4255 * content selection pattern - do fix if pattern found
4257 tSCC zIsc_Omits_With_StdcSelect0[] =
4258 "!defined\\(__STDC__\\) && !defined\\(_POSIX_SOURCE\\)";
4260 #define ISC_OMITS_WITH_STDC_TEST_CT 1
4261 static tTestDesc aIsc_Omits_With_StdcTests[] = {
4262 { TT_EGREP, zIsc_Omits_With_StdcSelect0, (regex_t*)NULL }, };
4265 * Fix Command Arguments for Isc_Omits_With_Stdc
4267 static const char* apzIsc_Omits_With_StdcPatch[] = {
4269 "!defined(_POSIX_SOURCE)",
4272 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4274 * Description of Kandr_Concat fix
4276 tSCC zKandr_ConcatName[] =
4280 * File name selection pattern
4282 tSCC zKandr_ConcatList[] =
4283 "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";
4285 * Machine/OS name selection pattern
4287 #define apzKandr_ConcatMachs (const char**)NULL
4290 * content selection pattern - do fix if pattern found
4292 tSCC zKandr_ConcatSelect0[] =
4295 #define KANDR_CONCAT_TEST_CT 1
4296 static tTestDesc aKandr_ConcatTests[] = {
4297 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
4300 * Fix Command Arguments for Kandr_Concat
4302 static const char* apzKandr_ConcatPatch[] = {
4307 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4309 * Description of Libc1_G_Va_List fix
4311 tSCC zLibc1_G_Va_ListName[] =
4315 * File name selection pattern
4317 tSCC zLibc1_G_Va_ListList[] =
4320 * Machine/OS name selection pattern
4322 tSCC* apzLibc1_G_Va_ListMachs[] = {
4324 (const char*)NULL };
4327 * content selection pattern - do fix if pattern found
4329 tSCC zLibc1_G_Va_ListSelect0[] =
4330 "typedef void \\* _G_va_list;";
4332 #define LIBC1_G_VA_LIST_TEST_CT 1
4333 static tTestDesc aLibc1_G_Va_ListTests[] = {
4334 { TT_EGREP, zLibc1_G_Va_ListSelect0, (regex_t*)NULL }, };
4337 * Fix Command Arguments for Libc1_G_Va_List
4339 static const char* apzLibc1_G_Va_ListPatch[] = {
4341 "typedef __builtin_va_list _G_va_list;",
4344 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4346 * Description of Libc1_Ifdefd_Memx fix
4348 tSCC zLibc1_Ifdefd_MemxName[] =
4349 "libc1_ifdefd_memx";
4352 * File name selection pattern
4354 tSCC zLibc1_Ifdefd_MemxList[] =
4355 "testing.h\0string.h\0";
4357 * Machine/OS name selection pattern
4359 #define apzLibc1_Ifdefd_MemxMachs (const char**)NULL
4362 * content selection pattern - do fix if pattern found
4364 tSCC zLibc1_Ifdefd_MemxSelect0[] =
4365 "' is a built-in function for gcc 2\\.x\\. \\*/";
4368 * content bypass pattern - skip fix if pattern found
4370 tSCC zLibc1_Ifdefd_MemxBypass0[] =
4373 #define LIBC1_IFDEFD_MEMX_TEST_CT 2
4374 static tTestDesc aLibc1_Ifdefd_MemxTests[] = {
4375 { TT_NEGREP, zLibc1_Ifdefd_MemxBypass0, (regex_t*)NULL },
4376 { TT_EGREP, zLibc1_Ifdefd_MemxSelect0, (regex_t*)NULL }, };
4379 * Fix Command Arguments for Libc1_Ifdefd_Memx
4381 static const char* apzLibc1_Ifdefd_MemxPatch[] = {
4384 "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n\
4385 #if defined\\(__STDC__\\) && __GNUC__ < 2\n\
4387 extern [a-z_]+ mem.*(\n\
4392 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4394 * Description of Linux_Ia64_Ucontext fix
4396 tSCC zLinux_Ia64_UcontextName[] =
4397 "linux_ia64_ucontext";
4400 * File name selection pattern
4402 tSCC zLinux_Ia64_UcontextList[] =
4405 * Machine/OS name selection pattern
4407 tSCC* apzLinux_Ia64_UcontextMachs[] = {
4409 (const char*)NULL };
4412 * content selection pattern - do fix if pattern found
4414 tSCC zLinux_Ia64_UcontextSelect0[] =
4415 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
4417 #define LINUX_IA64_UCONTEXT_TEST_CT 1
4418 static tTestDesc aLinux_Ia64_UcontextTests[] = {
4419 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
4422 * Fix Command Arguments for Linux_Ia64_Ucontext
4424 static const char* apzLinux_Ia64_UcontextPatch[] = {
4426 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
4429 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4431 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
4433 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
4434 "lynxos_no_warning_in_sys_time_h";
4437 * File name selection pattern
4439 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
4442 * Machine/OS name selection pattern
4444 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
4447 * content selection pattern - do fix if pattern found
4449 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
4450 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
4452 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
4453 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
4454 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
4457 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
4459 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
4464 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4466 * Description of Lynxos_Missing_Putenv fix
4468 tSCC zLynxos_Missing_PutenvName[] =
4469 "lynxos_missing_putenv";
4472 * File name selection pattern
4474 tSCC zLynxos_Missing_PutenvList[] =
4477 * Machine/OS name selection pattern
4479 tSCC* apzLynxos_Missing_PutenvMachs[] = {
4481 (const char*)NULL };
4484 * content selection pattern - do fix if pattern found
4486 tSCC zLynxos_Missing_PutenvSelect0[] =
4487 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
4490 * content bypass pattern - skip fix if pattern found
4492 tSCC zLynxos_Missing_PutenvBypass0[] =
4495 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
4496 static tTestDesc aLynxos_Missing_PutenvTests[] = {
4497 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
4498 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
4501 * Fix Command Arguments for Lynxos_Missing_Putenv
4503 static const char* apzLynxos_Missing_PutenvPatch[] = {
4506 extern int putenv\t\t\t\t_AP((char *));",
4507 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
4510 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4512 * Description of Machine_Ansi_H_Va_List fix
4514 tSCC zMachine_Ansi_H_Va_ListName[] =
4515 "machine_ansi_h_va_list";
4518 * File name selection pattern
4520 #define zMachine_Ansi_H_Va_ListList (char*)NULL
4522 * Machine/OS name selection pattern
4524 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
4527 * content selection pattern - do fix if pattern found
4529 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
4530 "define[ \t]+_BSD_VA_LIST_[ \t]";
4533 * content bypass pattern - skip fix if pattern found
4535 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
4536 "__builtin_va_list";
4538 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
4539 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
4540 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
4541 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
4544 * Fix Command Arguments for Machine_Ansi_H_Va_List
4546 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
4548 "%1__builtin_va_list",
4549 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
4552 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4554 * Description of Machine_Name fix
4556 tSCC zMachine_NameName[] =
4560 * File name selection pattern
4562 #define zMachine_NameList (char*)NULL
4564 * Machine/OS name selection pattern
4566 #define apzMachine_NameMachs (const char**)NULL
4569 * perform the C function call test
4571 tSCC zMachine_NameFTst0[] = "machine_name";
4573 #define MACHINE_NAME_TEST_CT 1
4574 static tTestDesc aMachine_NameTests[] = {
4575 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
4578 * Fix Command Arguments for Machine_Name
4580 static const char* apzMachine_NamePatch[] = {
4584 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4586 * Description of Math_Exception fix
4588 tSCC zMath_ExceptionName[] =
4592 * File name selection pattern
4594 tSCC zMath_ExceptionList[] =
4597 * Machine/OS name selection pattern
4599 #define apzMath_ExceptionMachs (const char**)NULL
4602 * content selection pattern - do fix if pattern found
4604 tSCC zMath_ExceptionSelect0[] =
4608 * content bypass pattern - skip fix if pattern found
4610 tSCC zMath_ExceptionBypass0[] =
4611 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
4613 #define MATH_EXCEPTION_TEST_CT 2
4614 static tTestDesc aMath_ExceptionTests[] = {
4615 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
4616 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
4619 * Fix Command Arguments for Math_Exception
4621 static const char* apzMath_ExceptionPatch[] = {
4623 "#ifdef __cplusplus\n\
4624 #define exception __math_exception\n\
4626 "#ifdef __cplusplus\n\
4631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4633 * Description of Math_Huge_Val_From_Dbl_Max fix
4635 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
4636 "math_huge_val_from_dbl_max";
4639 * File name selection pattern
4641 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
4644 * Machine/OS name selection pattern
4646 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
4649 * content selection pattern - do fix if pattern found
4651 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
4652 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
4655 * content bypass pattern - skip fix if pattern found
4657 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
4658 "define[ \t]+DBL_MAX";
4660 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
4661 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
4662 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
4663 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
4666 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
4668 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
4669 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
4670 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
4671 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
4676 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4678 * Description of Nested_Auth_Des fix
4680 tSCC zNested_Auth_DesName[] =
4684 * File name selection pattern
4686 tSCC zNested_Auth_DesList[] =
4689 * Machine/OS name selection pattern
4691 #define apzNested_Auth_DesMachs (const char**)NULL
4694 * content selection pattern - do fix if pattern found
4696 tSCC zNested_Auth_DesSelect0[] =
4697 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
4699 #define NESTED_AUTH_DES_TEST_CT 1
4700 static tTestDesc aNested_Auth_DesTests[] = {
4701 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
4704 * Fix Command Arguments for Nested_Auth_Des
4706 static const char* apzNested_Auth_DesPatch[] = {
4711 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4713 * Description of Nested_Motorola fix
4715 tSCC zNested_MotorolaName[] =
4719 * File name selection pattern
4721 tSCC zNested_MotorolaList[] =
4722 "sys/limits.h\0limits.h\0";
4724 * Machine/OS name selection pattern
4726 tSCC* apzNested_MotorolaMachs[] = {
4727 "m68k-motorola-sysv*",
4728 (const char*)NULL };
4731 * content selection pattern - do fix if pattern found
4733 tSCC zNested_MotorolaSelect0[] =
4734 "max # bytes atomic in write|error value returned by Math lib";
4736 #define NESTED_MOTOROLA_TEST_CT 1
4737 static tTestDesc aNested_MotorolaTests[] = {
4738 { TT_EGREP, zNested_MotorolaSelect0, (regex_t*)NULL }, };
4741 * Fix Command Arguments for Nested_Motorola
4743 static const char* apzNested_MotorolaPatch[] = { "sed",
4744 "-e", "s@^\\(#undef[ \t][ \t]*PIPE_BUF[ \t]*/\\* max # bytes atomic in write to a\\)$@\\1 */@",
4745 "-e", "s@\\(/\\*#define\tHUGE_VAL\t3.[0-9e+]* \\)\\(/\\*error value returned by Math lib\\*/\\)$@\\1*/ \\2@",
4748 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4750 * Description of Nested_Sys_Limits fix
4752 tSCC zNested_Sys_LimitsName[] =
4753 "nested_sys_limits";
4756 * File name selection pattern
4758 tSCC zNested_Sys_LimitsList[] =
4761 * Machine/OS name selection pattern
4763 #define apzNested_Sys_LimitsMachs (const char**)NULL
4766 * content selection pattern - do fix if pattern found
4768 tSCC zNested_Sys_LimitsSelect0[] =
4771 #define NESTED_SYS_LIMITS_TEST_CT 1
4772 static tTestDesc aNested_Sys_LimitsTests[] = {
4773 { TT_EGREP, zNested_Sys_LimitsSelect0, (regex_t*)NULL }, };
4776 * Fix Command Arguments for Nested_Sys_Limits
4778 static const char* apzNested_Sys_LimitsPatch[] = { "sed",
4779 "-e", "/CHILD_MAX/s,/\\* Max, Max,",
4780 "-e", "/OPEN_MAX/s,/\\* Max, Max,",
4783 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4785 * Description of Netbsd_C99_Inline_1 fix
4787 tSCC zNetbsd_C99_Inline_1Name[] =
4788 "netbsd_c99_inline_1";
4791 * File name selection pattern
4793 tSCC zNetbsd_C99_Inline_1List[] =
4796 * Machine/OS name selection pattern
4798 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
4800 (const char*)NULL };
4803 * content selection pattern - do fix if pattern found
4805 tSCC zNetbsd_C99_Inline_1Select0[] =
4806 "extern __inline int";
4808 #define NETBSD_C99_INLINE_1_TEST_CT 1
4809 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
4810 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
4813 * Fix Command Arguments for Netbsd_C99_Inline_1
4815 static const char* apzNetbsd_C99_Inline_1Patch[] = {
4818 #ifdef __GNUC_STDC_INLINE__\n\
4819 __attribute__((__gnu_inline__))\n\
4824 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4826 * Description of Netbsd_C99_Inline_2 fix
4828 tSCC zNetbsd_C99_Inline_2Name[] =
4829 "netbsd_c99_inline_2";
4832 * File name selection pattern
4834 tSCC zNetbsd_C99_Inline_2List[] =
4837 * Machine/OS name selection pattern
4839 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
4841 (const char*)NULL };
4844 * content selection pattern - do fix if pattern found
4846 tSCC zNetbsd_C99_Inline_2Select0[] =
4847 "#define _SIGINLINE extern __inline";
4849 #define NETBSD_C99_INLINE_2_TEST_CT 1
4850 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
4851 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
4854 * Fix Command Arguments for Netbsd_C99_Inline_2
4856 static const char* apzNetbsd_C99_Inline_2Patch[] = {
4858 "#ifdef __GNUC_STDC_INLINE__\n\
4859 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
4865 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4867 * Description of Netbsd_Extra_Semicolon fix
4869 tSCC zNetbsd_Extra_SemicolonName[] =
4870 "netbsd_extra_semicolon";
4873 * File name selection pattern
4875 tSCC zNetbsd_Extra_SemicolonList[] =
4878 * Machine/OS name selection pattern
4880 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
4882 (const char*)NULL };
4885 * content selection pattern - do fix if pattern found
4887 tSCC zNetbsd_Extra_SemicolonSelect0[] =
4888 "#define[ \t]*__END_DECLS[ \t]*};";
4890 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
4891 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
4892 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
4895 * Fix Command Arguments for Netbsd_Extra_Semicolon
4897 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
4899 "#define __END_DECLS }",
4902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4904 * Description of Next_Math_Prefix fix
4906 tSCC zNext_Math_PrefixName[] =
4910 * File name selection pattern
4912 tSCC zNext_Math_PrefixList[] =
4915 * Machine/OS name selection pattern
4917 #define apzNext_Math_PrefixMachs (const char**)NULL
4920 * content selection pattern - do fix if pattern found
4922 tSCC zNext_Math_PrefixSelect0[] =
4923 "^extern[ \t]+double[ \t]+__const__[ \t]";
4925 #define NEXT_MATH_PREFIX_TEST_CT 1
4926 static tTestDesc aNext_Math_PrefixTests[] = {
4927 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
4930 * Fix Command Arguments for Next_Math_Prefix
4932 static const char* apzNext_Math_PrefixPatch[] = {
4934 "extern double %1(",
4935 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
4938 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4940 * Description of Next_Template fix
4942 tSCC zNext_TemplateName[] =
4946 * File name selection pattern
4948 tSCC zNext_TemplateList[] =
4951 * Machine/OS name selection pattern
4953 #define apzNext_TemplateMachs (const char**)NULL
4956 * content selection pattern - do fix if pattern found
4958 tSCC zNext_TemplateSelect0[] =
4961 #define NEXT_TEMPLATE_TEST_CT 1
4962 static tTestDesc aNext_TemplateTests[] = {
4963 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
4966 * Fix Command Arguments for Next_Template
4968 static const char* apzNext_TemplatePatch[] = {
4971 "\\(([^)]*)[ \t]template\\)",
4974 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4976 * Description of Next_Volitile fix
4978 tSCC zNext_VolitileName[] =
4982 * File name selection pattern
4984 tSCC zNext_VolitileList[] =
4987 * Machine/OS name selection pattern
4989 #define apzNext_VolitileMachs (const char**)NULL
4992 * content selection pattern - do fix if pattern found
4994 tSCC zNext_VolitileSelect0[] =
4995 "^extern[ \t]+volatile[ \t]+void[ \t]";
4997 #define NEXT_VOLITILE_TEST_CT 1
4998 static tTestDesc aNext_VolitileTests[] = {
4999 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
5002 * Fix Command Arguments for Next_Volitile
5004 static const char* apzNext_VolitilePatch[] = {
5007 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5010 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5012 * Description of Next_Wait_Union fix
5014 tSCC zNext_Wait_UnionName[] =
5018 * File name selection pattern
5020 tSCC zNext_Wait_UnionList[] =
5023 * Machine/OS name selection pattern
5025 #define apzNext_Wait_UnionMachs (const char**)NULL
5028 * content selection pattern - do fix if pattern found
5030 tSCC zNext_Wait_UnionSelect0[] =
5031 "wait\\(union wait";
5033 #define NEXT_WAIT_UNION_TEST_CT 1
5034 static tTestDesc aNext_Wait_UnionTests[] = {
5035 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5038 * Fix Command Arguments for Next_Wait_Union
5040 static const char* apzNext_Wait_UnionPatch[] = {
5045 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5047 * Description of Nodeent_Syntax fix
5049 tSCC zNodeent_SyntaxName[] =
5053 * File name selection pattern
5055 tSCC zNodeent_SyntaxList[] =
5056 "netdnet/dnetdb.h\0";
5058 * Machine/OS name selection pattern
5060 #define apzNodeent_SyntaxMachs (const char**)NULL
5063 * content selection pattern - do fix if pattern found
5065 tSCC zNodeent_SyntaxSelect0[] =
5066 "char[ \t]*\\*na_addr[ \t]*$";
5068 #define NODEENT_SYNTAX_TEST_CT 1
5069 static tTestDesc aNodeent_SyntaxTests[] = {
5070 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5073 * Fix Command Arguments for Nodeent_Syntax
5075 static const char* apzNodeent_SyntaxPatch[] = {
5080 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5082 * Description of Obstack_Lvalue_Cast fix
5084 tSCC zObstack_Lvalue_CastName[] =
5085 "obstack_lvalue_cast";
5088 * File name selection pattern
5090 tSCC zObstack_Lvalue_CastList[] =
5093 * Machine/OS name selection pattern
5095 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5098 * content selection pattern - do fix if pattern found
5100 tSCC zObstack_Lvalue_CastSelect0[] =
5101 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5103 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5104 static tTestDesc aObstack_Lvalue_CastTests[] = {
5105 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5108 * Fix Command Arguments for Obstack_Lvalue_Cast
5110 static const char* apzObstack_Lvalue_CastPatch[] = {
5112 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5115 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5117 * Description of Osf_Namespace_A fix
5119 tSCC zOsf_Namespace_AName[] =
5123 * File name selection pattern
5125 tSCC zOsf_Namespace_AList[] =
5126 "reg_types.h\0sys/lc_core.h\0";
5128 * Machine/OS name selection pattern
5130 #define apzOsf_Namespace_AMachs (const char**)NULL
5133 * perform the 'test' shell command - do fix on success
5135 tSCC zOsf_Namespace_ATest0[] =
5137 tSCC zOsf_Namespace_ATest1[] =
5138 " -r sys/lc_core.h";
5139 tSCC zOsf_Namespace_ATest2[] =
5140 " -n \"`grep '} regex_t;' reg_types.h`\"";
5141 tSCC zOsf_Namespace_ATest3[] =
5142 " -z \"`grep __regex_t regex.h`\"";
5144 #define OSF_NAMESPACE_A_TEST_CT 4
5145 static tTestDesc aOsf_Namespace_ATests[] = {
5146 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5147 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5148 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5149 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5152 * Fix Command Arguments for Osf_Namespace_A
5154 static const char* apzOsf_Namespace_APatch[] = {
5157 "reg(ex|off|match)_t",
5160 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5162 * Description of Osf_Namespace_C fix
5164 tSCC zOsf_Namespace_CName[] =
5168 * File name selection pattern
5170 tSCC zOsf_Namespace_CList[] =
5173 * Machine/OS name selection pattern
5175 #define apzOsf_Namespace_CMachs (const char**)NULL
5178 * content selection pattern - do fix if pattern found
5180 tSCC zOsf_Namespace_CSelect0[] =
5181 "#include <reg_types.h>.*";
5184 * perform the 'test' shell command - do fix on success
5186 tSCC zOsf_Namespace_CTest0[] =
5188 tSCC zOsf_Namespace_CTest1[] =
5189 " -r sys/lc_core.h";
5190 tSCC zOsf_Namespace_CTest2[] =
5191 " -n \"`grep '} regex_t;' reg_types.h`\"";
5192 tSCC zOsf_Namespace_CTest3[] =
5193 " -z \"`grep __regex_t regex.h`\"";
5195 #define OSF_NAMESPACE_C_TEST_CT 5
5196 static tTestDesc aOsf_Namespace_CTests[] = {
5197 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5198 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5199 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5200 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5201 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5204 * Fix Command Arguments for Osf_Namespace_C
5206 static const char* apzOsf_Namespace_CPatch[] = {
5209 typedef __regex_t\tregex_t;\n\
5210 typedef __regoff_t\tregoff_t;\n\
5211 typedef __regmatch_t\tregmatch_t;",
5214 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5216 * Description of Pthread_Page_Size fix
5218 tSCC zPthread_Page_SizeName[] =
5219 "pthread_page_size";
5222 * File name selection pattern
5224 tSCC zPthread_Page_SizeList[] =
5227 * Machine/OS name selection pattern
5229 #define apzPthread_Page_SizeMachs (const char**)NULL
5232 * content selection pattern - do fix if pattern found
5234 tSCC zPthread_Page_SizeSelect0[] =
5237 #define PTHREAD_PAGE_SIZE_TEST_CT 1
5238 static tTestDesc aPthread_Page_SizeTests[] = {
5239 { TT_EGREP, zPthread_Page_SizeSelect0, (regex_t*)NULL }, };
5242 * Fix Command Arguments for Pthread_Page_Size
5244 static const char* apzPthread_Page_SizePatch[] = {
5249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5251 * Description of Pthread_Incomplete_Struct_Argument fix
5253 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5254 "pthread_incomplete_struct_argument";
5257 * File name selection pattern
5259 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5262 * Machine/OS name selection pattern
5264 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5267 * content selection pattern - do fix if pattern found
5269 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5270 "struct __jmp_buf_tag";
5272 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5273 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5274 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5277 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5279 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5282 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5287 * Description of Read_Ret_Type fix
5289 tSCC zRead_Ret_TypeName[] =
5293 * File name selection pattern
5295 tSCC zRead_Ret_TypeList[] =
5298 * Machine/OS name selection pattern
5300 #define apzRead_Ret_TypeMachs (const char**)NULL
5303 * content selection pattern - do fix if pattern found
5305 tSCC zRead_Ret_TypeSelect0[] =
5306 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5308 #define READ_RET_TYPE_TEST_CT 1
5309 static tTestDesc aRead_Ret_TypeTests[] = {
5310 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
5313 * Fix Command Arguments for Read_Ret_Type
5315 static const char* apzRead_Ret_TypePatch[] = {
5317 "extern unsigned int fread(), fwrite();\n\
5319 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
5322 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5324 * Description of Rpc_Xdr_Lvalue_Cast_A fix
5326 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
5327 "rpc_xdr_lvalue_cast_a";
5330 * File name selection pattern
5332 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
5335 * Machine/OS name selection pattern
5337 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
5340 * content selection pattern - do fix if pattern found
5342 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
5343 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
5346 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
5347 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
5348 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
5351 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
5353 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
5355 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
5358 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5360 * Description of Rpc_Xdr_Lvalue_Cast_B fix
5362 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
5363 "rpc_xdr_lvalue_cast_b";
5366 * File name selection pattern
5368 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
5371 * Machine/OS name selection pattern
5373 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
5376 * content selection pattern - do fix if pattern found
5378 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
5379 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
5382 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
5383 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
5384 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
5387 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
5389 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
5391 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
5394 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5396 * Description of Rs6000_Double fix
5398 tSCC zRs6000_DoubleName[] =
5402 * File name selection pattern
5404 tSCC zRs6000_DoubleList[] =
5407 * Machine/OS name selection pattern
5409 #define apzRs6000_DoubleMachs (const char**)NULL
5412 * content selection pattern - do fix if pattern found
5414 tSCC zRs6000_DoubleSelect0[] =
5415 "[^a-zA-Z_]class\\(";
5417 #define RS6000_DOUBLE_TEST_CT 1
5418 static tTestDesc aRs6000_DoubleTests[] = {
5419 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
5422 * Fix Command Arguments for Rs6000_Double
5424 static const char* apzRs6000_DoublePatch[] = {
5426 "#ifndef __cplusplus\n\
5429 "^.*[^a-zA-Z_]class\\(.*",
5432 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5434 * Description of Rs6000_Fchmod fix
5436 tSCC zRs6000_FchmodName[] =
5440 * File name selection pattern
5442 tSCC zRs6000_FchmodList[] =
5445 * Machine/OS name selection pattern
5447 #define apzRs6000_FchmodMachs (const char**)NULL
5450 * content selection pattern - do fix if pattern found
5452 tSCC zRs6000_FchmodSelect0[] =
5453 "fchmod\\(char \\*";
5455 #define RS6000_FCHMOD_TEST_CT 1
5456 static tTestDesc aRs6000_FchmodTests[] = {
5457 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
5460 * Fix Command Arguments for Rs6000_Fchmod
5462 static const char* apzRs6000_FchmodPatch[] = {
5467 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5469 * Description of Rs6000_Param fix
5471 tSCC zRs6000_ParamName[] =
5475 * File name selection pattern
5477 tSCC zRs6000_ParamList[] =
5478 "stdio.h\0unistd.h\0";
5480 * Machine/OS name selection pattern
5482 #define apzRs6000_ParamMachs (const char**)NULL
5485 * content selection pattern - do fix if pattern found
5487 tSCC zRs6000_ParamSelect0[] =
5488 "rename\\(const char \\*old, const char \\*new\\)";
5490 #define RS6000_PARAM_TEST_CT 1
5491 static tTestDesc aRs6000_ParamTests[] = {
5492 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
5495 * Fix Command Arguments for Rs6000_Param
5497 static const char* apzRs6000_ParamPatch[] = {
5499 "rename(const char *_old, const char *_new)",
5502 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5504 * Description of Sco_Math fix
5506 tSCC zSco_MathName[] =
5510 * File name selection pattern
5512 tSCC zSco_MathList[] =
5513 "math.h\0*/math.h\0";
5515 * Machine/OS name selection pattern
5517 #define apzSco_MathMachs (const char**)NULL
5520 * content selection pattern - do fix if pattern found
5522 tSCC zSco_MathSelect0[] =
5523 "inline double abs";
5526 * content bypass pattern - skip fix if pattern found
5528 tSCC zSco_MathBypass0[] =
5531 #define SCO_MATH_TEST_CT 2
5532 static tTestDesc aSco_MathTests[] = {
5533 { TT_NEGREP, zSco_MathBypass0, (regex_t*)NULL },
5534 { TT_EGREP, zSco_MathSelect0, (regex_t*)NULL }, };
5537 * Fix Command Arguments for Sco_Math
5539 static const char* apzSco_MathPatch[] = { "sed",
5540 "-e", "/#define.*__fp_class(a) \\\\/i\\\n\
5541 #ifndef __GNUC__\n",
5542 "-e", "/.*__builtin_generic/a\\\n\
5544 #define __fp_class(a) \\\\\\\n\
5545 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a),long double),\\\\\\\n\
5546 __fpclassifyl(a), \\\\\\\n\
5547 __builtin_choose_expr(__builtin_types_compatible_p(typeof(a), float), \\\\\\\n\
5548 __fpclassifyf(a),__fpclassify(a)))\\\n\
5550 "-e", "/extern \"C\\+\\+\"/N;/inline double abs/i\\\n\
5551 #ifndef __GNUC__\n",
5552 "-e", "/inline long double trunc/N;/inline long double trunc.*}.*extern \"C\\+\\+\"/a\\\n\
5553 #endif /* ! __GNUC__ */",
5556 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5558 * Description of Sco_Regset fix
5560 tSCC zSco_RegsetName[] =
5564 * File name selection pattern
5566 tSCC zSco_RegsetList[] =
5569 * Machine/OS name selection pattern
5571 tSCC* apzSco_RegsetMachs[] = {
5573 (const char*)NULL };
5576 * content selection pattern - do fix if pattern found
5578 tSCC zSco_RegsetSelect0[] =
5579 "(struct[ \t]+.*)fpstate";
5581 #define SCO_REGSET_TEST_CT 1
5582 static tTestDesc aSco_RegsetTests[] = {
5583 { TT_EGREP, zSco_RegsetSelect0, (regex_t*)NULL }, };
5586 * Fix Command Arguments for Sco_Regset
5588 static const char* apzSco_RegsetPatch[] = {
5593 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5595 * Description of Sco_Static_Func fix
5597 tSCC zSco_Static_FuncName[] =
5601 * File name selection pattern
5603 tSCC zSco_Static_FuncList[] =
5606 * Machine/OS name selection pattern
5608 tSCC* apzSco_Static_FuncMachs[] = {
5610 (const char*)NULL };
5613 * content selection pattern - do fix if pattern found
5615 tSCC zSco_Static_FuncSelect0[] =
5618 #define SCO_STATIC_FUNC_TEST_CT 1
5619 static tTestDesc aSco_Static_FuncTests[] = {
5620 { TT_EGREP, zSco_Static_FuncSelect0, (regex_t*)NULL }, };
5623 * Fix Command Arguments for Sco_Static_Func
5625 static const char* apzSco_Static_FuncPatch[] = { "sed",
5626 "-e", "/^static int/i\\\n\
5627 #if __cplusplus\\\n\
5629 #endif /* __cplusplus */",
5631 #if __cplusplus\\\n\
5633 #endif /* __cplusplus */",
5636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5638 * Description of Sco_Utime fix
5640 tSCC zSco_UtimeName[] =
5644 * File name selection pattern
5646 tSCC zSco_UtimeList[] =
5649 * Machine/OS name selection pattern
5651 tSCC* apzSco_UtimeMachs[] = {
5653 (const char*)NULL };
5656 * content selection pattern - do fix if pattern found
5658 tSCC zSco_UtimeSelect0[] =
5659 "\\(const char \\*, struct utimbuf \\*\\);";
5661 #define SCO_UTIME_TEST_CT 1
5662 static tTestDesc aSco_UtimeTests[] = {
5663 { TT_EGREP, zSco_UtimeSelect0, (regex_t*)NULL }, };
5666 * Fix Command Arguments for Sco_Utime
5668 static const char* apzSco_UtimePatch[] = {
5670 "(const char *, const struct utimbuf *);",
5673 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5675 * Description of Solaris_Math_1 fix
5677 tSCC zSolaris_Math_1Name[] =
5681 * File name selection pattern
5683 tSCC zSolaris_Math_1List[] =
5686 * Machine/OS name selection pattern
5688 #define apzSolaris_Math_1Machs (const char**)NULL
5691 * content selection pattern - do fix if pattern found
5693 tSCC zSolaris_Math_1Select0[] =
5694 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5697 * content bypass pattern - skip fix if pattern found
5699 tSCC zSolaris_Math_1Bypass0[] =
5702 #define SOLARIS_MATH_1_TEST_CT 2
5703 static tTestDesc aSolaris_Math_1Tests[] = {
5704 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
5705 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
5708 * Fix Command Arguments for Solaris_Math_1
5710 static const char* apzSolaris_Math_1Patch[] = {
5712 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
5713 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
5716 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5718 * Description of Solaris_Math_2 fix
5720 tSCC zSolaris_Math_2Name[] =
5724 * File name selection pattern
5726 tSCC zSolaris_Math_2List[] =
5729 * Machine/OS name selection pattern
5731 #define apzSolaris_Math_2Machs (const char**)NULL
5734 * content selection pattern - do fix if pattern found
5736 tSCC zSolaris_Math_2Select0[] =
5737 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5740 * content bypass pattern - skip fix if pattern found
5742 tSCC zSolaris_Math_2Bypass0[] =
5745 #define SOLARIS_MATH_2_TEST_CT 2
5746 static tTestDesc aSolaris_Math_2Tests[] = {
5747 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
5748 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
5751 * Fix Command Arguments for Solaris_Math_2
5753 static const char* apzSolaris_Math_2Patch[] = {
5755 "#define\tINFINITY\t(__builtin_inff())",
5756 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
5759 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5761 * Description of Solaris_Math_3 fix
5763 tSCC zSolaris_Math_3Name[] =
5767 * File name selection pattern
5769 tSCC zSolaris_Math_3List[] =
5772 * Machine/OS name selection pattern
5774 #define apzSolaris_Math_3Machs (const char**)NULL
5777 * content selection pattern - do fix if pattern found
5779 tSCC zSolaris_Math_3Select0[] =
5780 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5783 * content bypass pattern - skip fix if pattern found
5785 tSCC zSolaris_Math_3Bypass0[] =
5788 #define SOLARIS_MATH_3_TEST_CT 2
5789 static tTestDesc aSolaris_Math_3Tests[] = {
5790 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
5791 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
5794 * Fix Command Arguments for Solaris_Math_3
5796 static const char* apzSolaris_Math_3Patch[] = {
5798 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
5799 "^#define[ \t]+NAN[ \t]+__builtin_nan",
5802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5804 * Description of Solaris_Math_4 fix
5806 tSCC zSolaris_Math_4Name[] =
5810 * File name selection pattern
5812 tSCC zSolaris_Math_4List[] =
5815 * Machine/OS name selection pattern
5817 #define apzSolaris_Math_4Machs (const char**)NULL
5820 * content selection pattern - do fix if pattern found
5822 tSCC zSolaris_Math_4Select0[] =
5823 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5826 * content bypass pattern - skip fix if pattern found
5828 tSCC zSolaris_Math_4Bypass0[] =
5831 #define SOLARIS_MATH_4_TEST_CT 2
5832 static tTestDesc aSolaris_Math_4Tests[] = {
5833 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
5834 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
5837 * Fix Command Arguments for Solaris_Math_4
5839 static const char* apzSolaris_Math_4Patch[] = {
5841 "#define\tfpclassify(x) \\\n\
5842 __extension__ ({ const __typeof(x) __x_fp = (x); \\\n\
5843 \t\t isnan(__x_fp) \\\n\
5845 \t\t : isinf(__x_fp) \\\n\
5846 \t\t ? FP_INFINITE \\\n\
5847 \t\t : isnormal(__x_fp) \\\n\
5848 \t\t\t ? FP_NORMAL \\\n\
5849 \t\t\t : __x_fp == 0.0 \\\n\
5850 \t\t\t ? FP_ZERO \\\n\
5851 \t\t\t : FP_SUBNORMAL; })",
5852 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
5855 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5857 * Description of Solaris_Math_8 fix
5859 tSCC zSolaris_Math_8Name[] =
5863 * File name selection pattern
5865 tSCC zSolaris_Math_8List[] =
5868 * Machine/OS name selection pattern
5870 #define apzSolaris_Math_8Machs (const char**)NULL
5873 * content selection pattern - do fix if pattern found
5875 tSCC zSolaris_Math_8Select0[] =
5876 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5879 * content bypass pattern - skip fix if pattern found
5881 tSCC zSolaris_Math_8Bypass0[] =
5884 #define SOLARIS_MATH_8_TEST_CT 2
5885 static tTestDesc aSolaris_Math_8Tests[] = {
5886 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
5887 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
5890 * Fix Command Arguments for Solaris_Math_8
5892 static const char* apzSolaris_Math_8Patch[] = {
5894 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
5895 \t\t\t ? __builtin_signbitf(x) \\\n\
5896 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
5897 \t\t\t ? __builtin_signbitl(x) \\\n\
5898 \t\t\t : __builtin_signbit(x))",
5899 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
5902 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5904 * Description of Solaris_Math_9 fix
5906 tSCC zSolaris_Math_9Name[] =
5910 * File name selection pattern
5912 tSCC zSolaris_Math_9List[] =
5915 * Machine/OS name selection pattern
5917 #define apzSolaris_Math_9Machs (const char**)NULL
5920 * content selection pattern - do fix if pattern found
5922 tSCC zSolaris_Math_9Select0[] =
5923 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5926 * content bypass pattern - skip fix if pattern found
5928 tSCC zSolaris_Math_9Bypass0[] =
5931 #define SOLARIS_MATH_9_TEST_CT 2
5932 static tTestDesc aSolaris_Math_9Tests[] = {
5933 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
5934 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
5937 * Fix Command Arguments for Solaris_Math_9
5939 static const char* apzSolaris_Math_9Patch[] = {
5941 "#define\t%1(x, y)%2__builtin_%1(x, y)",
5942 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
5945 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5947 * Description of Solaris_Math_10 fix
5949 tSCC zSolaris_Math_10Name[] =
5953 * File name selection pattern
5955 tSCC zSolaris_Math_10List[] =
5958 * Machine/OS name selection pattern
5960 #define apzSolaris_Math_10Machs (const char**)NULL
5963 * content selection pattern - do fix if pattern found
5965 tSCC zSolaris_Math_10Select0[] =
5966 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
5968 #define SOLARIS_MATH_10_TEST_CT 1
5969 static tTestDesc aSolaris_Math_10Tests[] = {
5970 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
5973 * Fix Command Arguments for Solaris_Math_10
5975 static const char* apzSolaris_Math_10Patch[] = {
5977 "#define\tisinf(x) __builtin_isinf(x)",
5978 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
5979 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
5980 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
5981 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
5984 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5986 * Description of Solaris_Mutex_Init_1 fix
5988 tSCC zSolaris_Mutex_Init_1Name[] =
5989 "solaris_mutex_init_1";
5992 * File name selection pattern
5994 tSCC zSolaris_Mutex_Init_1List[] =
5997 * Machine/OS name selection pattern
5999 #define apzSolaris_Mutex_Init_1Machs (const char**)NULL
6002 * content selection pattern - do fix if pattern found
6004 tSCC zSolaris_Mutex_Init_1Select0[] =
6005 "@\\(#\\)pthread.h[ \t]+1.1[0-9][ \t]+9[567]/[0-9/]+ SMI";
6007 #define SOLARIS_MUTEX_INIT_1_TEST_CT 1
6008 static tTestDesc aSolaris_Mutex_Init_1Tests[] = {
6009 { TT_EGREP, zSolaris_Mutex_Init_1Select0, (regex_t*)NULL }, };
6012 * Fix Command Arguments for Solaris_Mutex_Init_1
6014 static const char* apzSolaris_Mutex_Init_1Patch[] = { "sed",
6015 "-e", "/define[ \t]*PTHREAD_MUTEX_INI/s/{0, 0,/{{{0}, 0}, {{{0}}},/\n\
6016 /define[ \t]*PTHREAD_COND_INI/s/{0,/{{{0},0},/",
6019 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6021 * Description of Solaris_Mutex_Init_2 fix
6023 tSCC zSolaris_Mutex_Init_2Name[] =
6024 "solaris_mutex_init_2";
6027 * File name selection pattern
6029 tSCC zSolaris_Mutex_Init_2List[] =
6032 * Machine/OS name selection pattern
6034 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6035 "*-*-solaris2.[0-9]",
6036 "*-*-solaris2.[0-9][!0-9]*",
6037 (const char*)NULL };
6040 * content selection pattern - do fix if pattern found
6042 tSCC zSolaris_Mutex_Init_2Select0[] =
6043 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6045 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
6046 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6047 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6050 * Fix Command Arguments for Solaris_Mutex_Init_2
6052 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6054 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6059 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6060 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6065 * Description of Solaris_Rwlock_Init_1 fix
6067 tSCC zSolaris_Rwlock_Init_1Name[] =
6068 "solaris_rwlock_init_1";
6071 * File name selection pattern
6073 tSCC zSolaris_Rwlock_Init_1List[] =
6076 * Machine/OS name selection pattern
6078 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6080 (const char*)NULL };
6083 * content selection pattern - do fix if pattern found
6085 tSCC zSolaris_Rwlock_Init_1Select0[] =
6086 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6088 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
6089 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6090 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6093 * Fix Command Arguments for Solaris_Rwlock_Init_1
6095 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6097 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6100 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6102 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6107 * Description of Solaris_Once_Init_1 fix
6109 tSCC zSolaris_Once_Init_1Name[] =
6110 "solaris_once_init_1";
6113 * File name selection pattern
6115 tSCC zSolaris_Once_Init_1List[] =
6118 * Machine/OS name selection pattern
6120 tSCC* apzSolaris_Once_Init_1Machs[] = {
6122 (const char*)NULL };
6125 * content selection pattern - do fix if pattern found
6127 tSCC zSolaris_Once_Init_1Select0[] =
6128 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6130 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6131 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6132 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6135 * Fix Command Arguments for Solaris_Once_Init_1
6137 static const char* apzSolaris_Once_Init_1Patch[] = {
6140 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6143 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6145 * Description of Solaris_Once_Init_2 fix
6147 tSCC zSolaris_Once_Init_2Name[] =
6148 "solaris_once_init_2";
6151 * File name selection pattern
6153 tSCC zSolaris_Once_Init_2List[] =
6156 * Machine/OS name selection pattern
6158 tSCC* apzSolaris_Once_Init_2Machs[] = {
6159 "*-*-solaris2.[0-9]",
6160 "*-*-solaris2.[0-9][!0-9]*",
6161 (const char*)NULL };
6164 * content selection pattern - do fix if pattern found
6166 tSCC zSolaris_Once_Init_2Select0[] =
6167 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6169 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
6170 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6171 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6174 * Fix Command Arguments for Solaris_Once_Init_2
6176 static const char* apzSolaris_Once_Init_2Patch[] = {
6178 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6181 %1{0}, {0}, {0}, {%3}%4\n\
6183 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6186 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6188 * Description of Solaris_Socket fix
6190 tSCC zSolaris_SocketName[] =
6194 * File name selection pattern
6196 tSCC zSolaris_SocketList[] =
6199 * Machine/OS name selection pattern
6201 #define apzSolaris_SocketMachs (const char**)NULL
6204 * content selection pattern - do fix if pattern found
6206 tSCC zSolaris_SocketSelect0[] =
6207 "@\\(#\\)socket.h[ \t]+1.[123][0-9][ \t]+9[567]/[0-9/]+ SMI";
6209 #define SOLARIS_SOCKET_TEST_CT 1
6210 static tTestDesc aSolaris_SocketTests[] = {
6211 { TT_EGREP, zSolaris_SocketSelect0, (regex_t*)NULL }, };
6214 * Fix Command Arguments for Solaris_Socket
6216 static const char* apzSolaris_SocketPatch[] = {
6218 "extern int %1(int, %2void *, int, int);",
6219 "^extern int (recv|send)\\(int, (const )*char \\*, int, int\\);",
6222 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6224 * Description of Solaris_Stdio_Tag fix
6226 tSCC zSolaris_Stdio_TagName[] =
6227 "solaris_stdio_tag";
6230 * File name selection pattern
6232 tSCC zSolaris_Stdio_TagList[] =
6235 * Machine/OS name selection pattern
6237 #define apzSolaris_Stdio_TagMachs (const char**)NULL
6240 * content selection pattern - do fix if pattern found
6242 tSCC zSolaris_Stdio_TagSelect0[] =
6243 "__cplusplus < 54321L";
6246 * content bypass pattern - skip fix if pattern found
6248 tSCC zSolaris_Stdio_TagBypass0[] =
6251 #define SOLARIS_STDIO_TAG_TEST_CT 2
6252 static tTestDesc aSolaris_Stdio_TagTests[] = {
6253 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
6254 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
6257 * Fix Command Arguments for Solaris_Stdio_Tag
6259 static const char* apzSolaris_Stdio_TagPatch[] = { "sed",
6260 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
6263 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6265 * Description of Solaris_Unistd fix
6267 tSCC zSolaris_UnistdName[] =
6271 * File name selection pattern
6273 tSCC zSolaris_UnistdList[] =
6276 * Machine/OS name selection pattern
6278 #define apzSolaris_UnistdMachs (const char**)NULL
6281 * content selection pattern - do fix if pattern found
6283 tSCC zSolaris_UnistdSelect0[] =
6284 "@\\(#\\)unistd.h[ \t]+1.3[0-9][ \t]+9[567]/[0-9/]+ SMI";
6287 * content bypass pattern - skip fix if pattern found
6289 tSCC zSolaris_UnistdBypass0[] =
6292 #define SOLARIS_UNISTD_TEST_CT 2
6293 static tTestDesc aSolaris_UnistdTests[] = {
6294 { TT_NEGREP, zSolaris_UnistdBypass0, (regex_t*)NULL },
6295 { TT_EGREP, zSolaris_UnistdSelect0, (regex_t*)NULL }, };
6298 * Fix Command Arguments for Solaris_Unistd
6300 static const char* apzSolaris_UnistdPatch[] = {
6302 "extern int getpagesize();\n\
6304 "^extern (pid_t|int) getpgid\\(.*\\);",
6307 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6309 * Description of Solaris_Widec fix
6311 tSCC zSolaris_WidecName[] =
6315 * File name selection pattern
6317 tSCC zSolaris_WidecList[] =
6320 * Machine/OS name selection pattern
6322 tSCC* apzSolaris_WidecMachs[] = {
6323 "*-*-solaris2.[0-5]",
6324 "*-*-solaris2.[0-5].*",
6325 (const char*)NULL };
6328 * content selection pattern - do fix if pattern found
6330 tSCC zSolaris_WidecSelect0[] =
6334 * content bypass pattern - skip fix if pattern found
6336 tSCC zSolaris_WidecBypass0[] =
6337 "include.*wchar\\.h";
6339 #define SOLARIS_WIDEC_TEST_CT 2
6340 static tTestDesc aSolaris_WidecTests[] = {
6341 { TT_NEGREP, zSolaris_WidecBypass0, (regex_t*)NULL },
6342 { TT_EGREP, zSolaris_WidecSelect0, (regex_t*)NULL }, };
6345 * Fix Command Arguments for Solaris_Widec
6347 static const char* apzSolaris_WidecPatch[] = {
6350 #include <wchar.h>",
6353 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6355 * Description of Statsswtch fix
6357 tSCC zStatsswtchName[] =
6361 * File name selection pattern
6363 tSCC zStatsswtchList[] =
6366 * Machine/OS name selection pattern
6368 #define apzStatsswtchMachs (const char**)NULL
6371 * content selection pattern - do fix if pattern found
6373 tSCC zStatsswtchSelect0[] =
6376 #define STATSSWTCH_TEST_CT 1
6377 static tTestDesc aStatsswtchTests[] = {
6378 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
6381 * Fix Command Arguments for Statsswtch
6383 static const char* apzStatsswtchPatch[] = {
6388 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6390 * Description of Stdio_Stdarg_H fix
6392 tSCC zStdio_Stdarg_HName[] =
6396 * File name selection pattern
6398 tSCC zStdio_Stdarg_HList[] =
6401 * Machine/OS name selection pattern
6403 tSCC* apzStdio_Stdarg_HMachs[] = {
6404 "*-*-solaris2.1[0-9]*",
6405 (const char*)NULL };
6408 * content bypass pattern - skip fix if pattern found
6410 tSCC zStdio_Stdarg_HBypass0[] =
6411 "include.*(stdarg.h|machine/ansi.h)";
6413 #define STDIO_STDARG_H_TEST_CT 1
6414 static tTestDesc aStdio_Stdarg_HTests[] = {
6415 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
6418 * Fix Command Arguments for Stdio_Stdarg_H
6420 static const char* apzStdio_Stdarg_HPatch[] = {
6422 "#define __need___va_list\n\
6423 #include <stdarg.h>\n",
6426 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6428 * Description of Stdio_Va_List fix
6430 tSCC zStdio_Va_ListName[] =
6434 * File name selection pattern
6436 tSCC zStdio_Va_ListList[] =
6437 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
6439 * Machine/OS name selection pattern
6441 tSCC* apzStdio_Va_ListMachs[] = {
6442 "*-*-solaris2.1[0-9]*",
6443 (const char*)NULL };
6446 * content bypass pattern - skip fix if pattern found
6448 tSCC zStdio_Va_ListBypass0[] =
6449 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6451 #define STDIO_VA_LIST_TEST_CT 1
6452 static tTestDesc aStdio_Va_ListTests[] = {
6453 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
6456 * Fix Command Arguments for Stdio_Va_List
6458 static const char* apzStdio_Va_ListPatch[] = { "sed",
6459 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6460 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6461 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6462 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6463 s@ va_list@ __not_va_list__@\n\
6464 s@\\*va_list@*__not_va_list__@\n\
6465 s@ __va_list)@ __gnuc_va_list)@\n\
6466 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6467 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6468 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6469 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6470 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6471 s@VA_LIST@DUMMY_VA_LIST@\n\
6472 s@_Va_LIST@_VA_LIST@",
6475 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6477 * Description of Stdio_Va_List_Clients fix
6479 tSCC zStdio_Va_List_ClientsName[] =
6480 "stdio_va_list_clients";
6483 * File name selection pattern
6485 tSCC zStdio_Va_List_ClientsList[] =
6486 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
6488 * Machine/OS name selection pattern
6490 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
6493 * content bypass pattern - skip fix if pattern found
6495 tSCC zStdio_Va_List_ClientsBypass0[] =
6496 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
6497 tSCC zStdio_Va_List_ClientsBypass1[] =
6498 "include <stdarg\\.h>|#ifdef va_start";
6500 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
6501 static tTestDesc aStdio_Va_List_ClientsTests[] = {
6502 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
6503 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
6506 * Fix Command Arguments for Stdio_Va_List_Clients
6508 static const char* apzStdio_Va_List_ClientsPatch[] = { "sed",
6509 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
6510 s@(va_list)&@(__gnuc_va_list)\\&@\n\
6511 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
6512 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
6513 s@ va_list@ __not_va_list__@\n\
6514 s@\\*va_list@*__not_va_list__@\n\
6515 s@ __va_list)@ __gnuc_va_list)@\n\
6516 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
6517 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
6518 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
6519 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
6520 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
6521 s@VA_LIST@DUMMY_VA_LIST@\n\
6522 s@_Va_LIST@_VA_LIST@",
6525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6527 * Description of Strict_Ansi_Not fix
6529 tSCC zStrict_Ansi_NotName[] =
6533 * File name selection pattern
6535 #define zStrict_Ansi_NotList (char*)NULL
6537 * Machine/OS name selection pattern
6539 #define apzStrict_Ansi_NotMachs (const char**)NULL
6542 * content selection pattern - do fix if pattern found
6544 tSCC zStrict_Ansi_NotSelect0[] =
6545 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
6548 * content bypass pattern - skip fix if pattern found
6550 tSCC zStrict_Ansi_NotBypass0[] =
6551 "GNU and MIPS C compilers define __STDC__ differently";
6552 tSCC zStrict_Ansi_NotBypass1[] =
6553 "__SCO_VERSION__.*__STDC__ != 1";
6556 * perform the C function call test
6558 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
6560 #define STRICT_ANSI_NOT_TEST_CT 4
6561 static tTestDesc aStrict_Ansi_NotTests[] = {
6562 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
6563 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
6564 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
6565 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
6568 * Fix Command Arguments for Strict_Ansi_Not
6570 static const char* apzStrict_Ansi_NotPatch[] = {
6572 "%1 !defined(__STRICT_ANSI__)",
6575 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6577 * Description of Strict_Ansi_Not_Ctd fix
6579 tSCC zStrict_Ansi_Not_CtdName[] =
6580 "strict_ansi_not_ctd";
6583 * File name selection pattern
6585 tSCC zStrict_Ansi_Not_CtdList[] =
6586 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
6588 * Machine/OS name selection pattern
6590 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
6593 * content selection pattern - do fix if pattern found
6595 tSCC zStrict_Ansi_Not_CtdSelect0[] =
6596 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
6599 * perform the C function call test
6601 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
6603 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
6604 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
6605 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
6606 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
6609 * Fix Command Arguments for Strict_Ansi_Not_Ctd
6611 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
6613 "%1 !defined(__STRICT_ANSI__)",
6616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6618 * Description of Strict_Ansi_Only fix
6620 tSCC zStrict_Ansi_OnlyName[] =
6624 * File name selection pattern
6626 #define zStrict_Ansi_OnlyList (char*)NULL
6628 * Machine/OS name selection pattern
6630 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
6633 * content selection pattern - do fix if pattern found
6635 tSCC zStrict_Ansi_OnlySelect0[] =
6636 "^([ \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)";
6639 * perform the C function call test
6641 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
6643 #define STRICT_ANSI_ONLY_TEST_CT 2
6644 static tTestDesc aStrict_Ansi_OnlyTests[] = {
6645 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
6646 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
6649 * Fix Command Arguments for Strict_Ansi_Only
6651 static const char* apzStrict_Ansi_OnlyPatch[] = {
6653 "%1 defined(__STRICT_ANSI__)",
6656 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6658 * Description of Struct_File fix
6660 tSCC zStruct_FileName[] =
6664 * File name selection pattern
6666 tSCC zStruct_FileList[] =
6669 * Machine/OS name selection pattern
6671 #define apzStruct_FileMachs (const char**)NULL
6674 * content selection pattern - do fix if pattern found
6676 tSCC zStruct_FileSelect0[] =
6677 "^.*xdrstdio_create.*struct __file_s";
6679 #define STRUCT_FILE_TEST_CT 1
6680 static tTestDesc aStruct_FileTests[] = {
6681 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
6684 * Fix Command Arguments for Struct_File
6686 static const char* apzStruct_FilePatch[] = {
6688 "struct __file_s;\n\
6692 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6694 * Description of Struct_Sockaddr fix
6696 tSCC zStruct_SockaddrName[] =
6700 * File name selection pattern
6702 tSCC zStruct_SockaddrList[] =
6705 * Machine/OS name selection pattern
6707 #define apzStruct_SockaddrMachs (const char**)NULL
6710 * content selection pattern - do fix if pattern found
6712 tSCC zStruct_SockaddrSelect0[] =
6713 "^.*authdes_create.*struct sockaddr[^_]";
6716 * content bypass pattern - skip fix if pattern found
6718 tSCC zStruct_SockaddrBypass0[] =
6720 tSCC zStruct_SockaddrBypass1[] =
6721 "struct sockaddr;\n";
6723 #define STRUCT_SOCKADDR_TEST_CT 3
6724 static tTestDesc aStruct_SockaddrTests[] = {
6725 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
6726 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
6727 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
6730 * Fix Command Arguments for Struct_Sockaddr
6732 static const char* apzStruct_SockaddrPatch[] = {
6734 "struct sockaddr;\n\
6738 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6740 * Description of Sun_Auth_Proto fix
6742 tSCC zSun_Auth_ProtoName[] =
6746 * File name selection pattern
6748 tSCC zSun_Auth_ProtoList[] =
6749 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
6751 * Machine/OS name selection pattern
6753 #define apzSun_Auth_ProtoMachs (const char**)NULL
6756 * content selection pattern - do fix if pattern found
6758 tSCC zSun_Auth_ProtoSelect0[] =
6759 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
6762 * content bypass pattern - skip fix if pattern found
6764 tSCC zSun_Auth_ProtoBypass0[] =
6767 #define SUN_AUTH_PROTO_TEST_CT 2
6768 static tTestDesc aSun_Auth_ProtoTests[] = {
6769 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
6770 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
6773 * Fix Command Arguments for Sun_Auth_Proto
6775 static const char* apzSun_Auth_ProtoPatch[] = {
6777 "#ifdef __cplusplus\n\
6782 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
6785 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6787 * Description of Sun_Bogus_Ifdef fix
6789 tSCC zSun_Bogus_IfdefName[] =
6793 * File name selection pattern
6795 tSCC zSun_Bogus_IfdefList[] =
6796 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
6798 * Machine/OS name selection pattern
6800 #define apzSun_Bogus_IfdefMachs (const char**)NULL
6803 * content selection pattern - do fix if pattern found
6805 tSCC zSun_Bogus_IfdefSelect0[] =
6806 "#ifdef(.*\\|\\|.*)";
6808 #define SUN_BOGUS_IFDEF_TEST_CT 1
6809 static tTestDesc aSun_Bogus_IfdefTests[] = {
6810 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
6813 * Fix Command Arguments for Sun_Bogus_Ifdef
6815 static const char* apzSun_Bogus_IfdefPatch[] = {
6820 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6822 * Description of Sun_Catmacro fix
6824 tSCC zSun_CatmacroName[] =
6828 * File name selection pattern
6830 tSCC zSun_CatmacroList[] =
6831 "pixrect/memvar.h\0";
6833 * Machine/OS name selection pattern
6835 #define apzSun_CatmacroMachs (const char**)NULL
6838 * content selection pattern - do fix if pattern found
6840 tSCC zSun_CatmacroSelect0[] =
6841 "^#define[ \t]+CAT\\(a,b\\).*";
6843 #define SUN_CATMACRO_TEST_CT 1
6844 static tTestDesc aSun_CatmacroTests[] = {
6845 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
6848 * Fix Command Arguments for Sun_Catmacro
6850 static const char* apzSun_CatmacroPatch[] = {
6853 # define CAT(a,b) a##b\n\
6859 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6861 * Description of Sun_Malloc fix
6863 tSCC zSun_MallocName[] =
6867 * File name selection pattern
6869 tSCC zSun_MallocList[] =
6872 * Machine/OS name selection pattern
6874 #define apzSun_MallocMachs (const char**)NULL
6877 * content bypass pattern - skip fix if pattern found
6879 tSCC zSun_MallocBypass0[] =
6880 "_CLASSIC_ANSI_TYPES";
6882 #define SUN_MALLOC_TEST_CT 1
6883 static tTestDesc aSun_MallocTests[] = {
6884 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
6887 * Fix Command Arguments for Sun_Malloc
6889 static const char* apzSun_MallocPatch[] = { "sed",
6890 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
6891 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
6892 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
6893 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
6894 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
6897 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6899 * Description of Sun_Rusers_Semi fix
6901 tSCC zSun_Rusers_SemiName[] =
6905 * File name selection pattern
6907 tSCC zSun_Rusers_SemiList[] =
6908 "rpcsvc/rusers.h\0";
6910 * Machine/OS name selection pattern
6912 #define apzSun_Rusers_SemiMachs (const char**)NULL
6915 * content selection pattern - do fix if pattern found
6917 tSCC zSun_Rusers_SemiSelect0[] =
6920 #define SUN_RUSERS_SEMI_TEST_CT 1
6921 static tTestDesc aSun_Rusers_SemiTests[] = {
6922 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
6925 * Fix Command Arguments for Sun_Rusers_Semi
6927 static const char* apzSun_Rusers_SemiPatch[] = { "sed",
6928 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
6931 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6933 * Description of Sun_Signal fix
6935 tSCC zSun_SignalName[] =
6939 * File name selection pattern
6941 tSCC zSun_SignalList[] =
6942 "sys/signal.h\0signal.h\0";
6944 * Machine/OS name selection pattern
6946 #define apzSun_SignalMachs (const char**)NULL
6949 * content selection pattern - do fix if pattern found
6951 tSCC zSun_SignalSelect0[] =
6952 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
6954 #define SUN_SIGNAL_TEST_CT 1
6955 static tTestDesc aSun_SignalTests[] = {
6956 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
6959 * Fix Command Arguments for Sun_Signal
6961 static const char* apzSun_SignalPatch[] = {
6963 "#ifdef __cplusplus\n\
6964 void\t(*signal(...))(...);\n\
6970 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6972 * Description of Sunos_Strlen fix
6974 tSCC zSunos_StrlenName[] =
6978 * File name selection pattern
6980 tSCC zSunos_StrlenList[] =
6983 * Machine/OS name selection pattern
6985 #define apzSunos_StrlenMachs (const char**)NULL
6988 * content selection pattern - do fix if pattern found
6990 tSCC zSunos_StrlenSelect0[] =
6991 "int[ \t]*strlen\\(\\);(.*)";
6993 #define SUNOS_STRLEN_TEST_CT 1
6994 static tTestDesc aSunos_StrlenTests[] = {
6995 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
6998 * Fix Command Arguments for Sunos_Strlen
7000 static const char* apzSunos_StrlenPatch[] = {
7002 "__SIZE_TYPE__ strlen();%1",
7005 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7007 * Description of Svr4_Disable_Opt fix
7009 tSCC zSvr4_Disable_OptName[] =
7013 * File name selection pattern
7015 tSCC zSvr4_Disable_OptList[] =
7018 * Machine/OS name selection pattern
7020 #define apzSvr4_Disable_OptMachs (const char**)NULL
7023 * content selection pattern - do fix if pattern found
7025 tSCC zSvr4_Disable_OptSelect0[] =
7026 "#define.*__std_hdr_";
7028 #define SVR4_DISABLE_OPT_TEST_CT 1
7029 static tTestDesc aSvr4_Disable_OptTests[] = {
7030 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
7033 * Fix Command Arguments for Svr4_Disable_Opt
7035 static const char* apzSvr4_Disable_OptPatch[] = { "sed",
7036 "-e", "/#define.*__std_hdr_/d",
7039 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7041 * Description of Svr4_Getcwd fix
7043 tSCC zSvr4_GetcwdName[] =
7047 * File name selection pattern
7049 tSCC zSvr4_GetcwdList[] =
7050 "stdlib.h\0unistd.h\0prototypes.h\0";
7052 * Machine/OS name selection pattern
7054 #define apzSvr4_GetcwdMachs (const char**)NULL
7057 * content selection pattern - do fix if pattern found
7059 tSCC zSvr4_GetcwdSelect0[] =
7060 "getcwd\\(char \\*, int\\)";
7062 #define SVR4_GETCWD_TEST_CT 1
7063 static tTestDesc aSvr4_GetcwdTests[] = {
7064 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
7067 * Fix Command Arguments for Svr4_Getcwd
7069 static const char* apzSvr4_GetcwdPatch[] = {
7071 "getcwd(char *, size_t)",
7074 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7076 * Description of Svr4_Krnl fix
7078 tSCC zSvr4_KrnlName[] =
7082 * File name selection pattern
7084 tSCC zSvr4_KrnlList[] =
7085 "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";
7087 * Machine/OS name selection pattern
7089 tSCC* apzSvr4_KrnlMachs[] = {
7091 "i?86-sequent-ptx*",
7092 (const char*)NULL };
7095 * content bypass pattern - skip fix if pattern found
7097 tSCC zSvr4_KrnlBypass0[] =
7100 #define SVR4_KRNL_TEST_CT 1
7101 static tTestDesc aSvr4_KrnlTests[] = {
7102 { TT_NEGREP, zSvr4_KrnlBypass0, (regex_t*)NULL }, };
7105 * Fix Command Arguments for Svr4_Krnl
7107 static const char* apzSvr4_KrnlPatch[] = {
7110 "#endif /* _KERNEL */\n",
7113 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7115 * Description of Svr4_Profil fix
7117 tSCC zSvr4_ProfilName[] =
7121 * File name selection pattern
7123 tSCC zSvr4_ProfilList[] =
7124 "stdlib.h\0unistd.h\0";
7126 * Machine/OS name selection pattern
7128 #define apzSvr4_ProfilMachs (const char**)NULL
7131 * content selection pattern - do fix if pattern found
7133 tSCC zSvr4_ProfilSelect0[] =
7134 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
7137 * content bypass pattern - skip fix if pattern found
7139 tSCC zSvr4_ProfilBypass0[] =
7142 #define SVR4_PROFIL_TEST_CT 2
7143 static tTestDesc aSvr4_ProfilTests[] = {
7144 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
7145 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
7148 * Fix Command Arguments for Svr4_Profil
7150 static const char* apzSvr4_ProfilPatch[] = {
7152 "profil(unsigned short *, size_t, int, unsigned int)",
7155 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7157 * Description of Svr4_Sighandler_Type fix
7159 tSCC zSvr4_Sighandler_TypeName[] =
7160 "svr4_sighandler_type";
7163 * File name selection pattern
7165 tSCC zSvr4_Sighandler_TypeList[] =
7168 * Machine/OS name selection pattern
7170 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
7173 * content selection pattern - do fix if pattern found
7175 tSCC zSvr4_Sighandler_TypeSelect0[] =
7176 "void *\\(\\*\\)\\(\\)";
7178 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
7179 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
7180 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
7183 * Fix Command Arguments for Svr4_Sighandler_Type
7185 static const char* apzSvr4_Sighandler_TypePatch[] = {
7190 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7192 * Description of Svr4_Undeclared_Getrnge fix
7194 tSCC zSvr4_Undeclared_GetrngeName[] =
7195 "svr4_undeclared_getrnge";
7198 * File name selection pattern
7200 tSCC zSvr4_Undeclared_GetrngeList[] =
7203 * Machine/OS name selection pattern
7205 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
7208 * content selection pattern - do fix if pattern found
7210 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
7214 * content bypass pattern - skip fix if pattern found
7216 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
7217 "static void getrnge";
7219 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
7220 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
7221 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
7222 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
7225 * Fix Command Arguments for Svr4_Undeclared_Getrnge
7227 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
7230 static int getrnge ();",
7231 "^static int[ \t]+size;",
7234 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7236 * Description of Sysv68_String fix
7238 tSCC zSysv68_StringName[] =
7242 * File name selection pattern
7244 tSCC zSysv68_StringList[] =
7245 "testing.h\0string.h\0";
7247 * Machine/OS name selection pattern
7249 #define apzSysv68_StringMachs (const char**)NULL
7252 * content bypass pattern - skip fix if pattern found
7254 tSCC zSysv68_StringBypass0[] =
7255 "_CLASSIC_ANSI_TYPES";
7257 #define SYSV68_STRING_TEST_CT 1
7258 static tTestDesc aSysv68_StringTests[] = {
7259 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
7262 * Fix Command Arguments for Sysv68_String
7264 static const char* apzSysv68_StringPatch[] = { "sed",
7265 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
7266 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
7267 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
7268 "-e", "/^extern char$/N",
7269 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
7270 "-e", "/^extern int$/N",
7271 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
7272 "-e", "/^\tstrncmp(),$/N",
7273 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
7274 extern unsigned int\\\n\
7278 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7280 * Description of Sysz_Stdlib_For_Sun fix
7282 tSCC zSysz_Stdlib_For_SunName[] =
7283 "sysz_stdlib_for_sun";
7286 * File name selection pattern
7288 tSCC zSysz_Stdlib_For_SunList[] =
7291 * Machine/OS name selection pattern
7293 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
7296 * content selection pattern - do fix if pattern found
7298 tSCC zSysz_Stdlib_For_SunSelect0[] =
7299 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
7302 * content bypass pattern - skip fix if pattern found
7304 tSCC zSysz_Stdlib_For_SunBypass0[] =
7305 "_CLASSIC_ANSI_TYPES";
7307 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
7308 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
7309 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
7310 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
7313 * Fix Command Arguments for Sysz_Stdlib_For_Sun
7315 static const char* apzSysz_Stdlib_For_SunPatch[] = {
7320 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7322 * Description of Thread_Keyword fix
7324 tSCC zThread_KeywordName[] =
7328 * File name selection pattern
7330 tSCC zThread_KeywordList[] =
7331 "pthread.h\0bits/sigthread.h\0";
7333 * Machine/OS name selection pattern
7335 #define apzThread_KeywordMachs (const char**)NULL
7338 * content selection pattern - do fix if pattern found
7340 tSCC zThread_KeywordSelect0[] =
7341 "([* ])__thread([,)])";
7343 #define THREAD_KEYWORD_TEST_CT 1
7344 static tTestDesc aThread_KeywordTests[] = {
7345 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
7348 * Fix Command Arguments for Thread_Keyword
7350 static const char* apzThread_KeywordPatch[] = {
7355 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7357 * Description of Tinfo_Cplusplus fix
7359 tSCC zTinfo_CplusplusName[] =
7363 * File name selection pattern
7365 tSCC zTinfo_CplusplusList[] =
7368 * Machine/OS name selection pattern
7370 #define apzTinfo_CplusplusMachs (const char**)NULL
7373 * content selection pattern - do fix if pattern found
7375 tSCC zTinfo_CplusplusSelect0[] =
7378 #define TINFO_CPLUSPLUS_TEST_CT 1
7379 static tTestDesc aTinfo_CplusplusTests[] = {
7380 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
7383 * Fix Command Arguments for Tinfo_Cplusplus
7385 static const char* apzTinfo_CplusplusPatch[] = {
7390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7392 * Description of Ultrix_Atexit_Param fix
7394 tSCC zUltrix_Atexit_ParamName[] =
7395 "ultrix_atexit_param";
7398 * File name selection pattern
7400 tSCC zUltrix_Atexit_ParamList[] =
7403 * Machine/OS name selection pattern
7405 #define apzUltrix_Atexit_ParamMachs (const char**)NULL
7408 * content selection pattern - do fix if pattern found
7410 tSCC zUltrix_Atexit_ParamSelect0[] =
7411 "atexit\\(.*\\(\\)";
7413 #define ULTRIX_ATEXIT_PARAM_TEST_CT 1
7414 static tTestDesc aUltrix_Atexit_ParamTests[] = {
7415 { TT_EGREP, zUltrix_Atexit_ParamSelect0, (regex_t*)NULL }, };
7418 * Fix Command Arguments for Ultrix_Atexit_Param
7420 static const char* apzUltrix_Atexit_ParamPatch[] = {
7422 "atexit( void (*__func)( void )",
7425 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7427 * Description of Ultrix_Atof_Param fix
7429 tSCC zUltrix_Atof_ParamName[] =
7430 "ultrix_atof_param";
7433 * File name selection pattern
7435 tSCC zUltrix_Atof_ParamList[] =
7438 * Machine/OS name selection pattern
7440 #define apzUltrix_Atof_ParamMachs (const char**)NULL
7443 * content selection pattern - do fix if pattern found
7445 tSCC zUltrix_Atof_ParamSelect0[] =
7446 "atof\\([ \t]*char";
7448 #define ULTRIX_ATOF_PARAM_TEST_CT 1
7449 static tTestDesc aUltrix_Atof_ParamTests[] = {
7450 { TT_EGREP, zUltrix_Atof_ParamSelect0, (regex_t*)NULL }, };
7453 * Fix Command Arguments for Ultrix_Atof_Param
7455 static const char* apzUltrix_Atof_ParamPatch[] = {
7460 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7462 * Description of Ultrix_Const fix
7464 tSCC zUltrix_ConstName[] =
7468 * File name selection pattern
7470 tSCC zUltrix_ConstList[] =
7473 * Machine/OS name selection pattern
7475 #define apzUltrix_ConstMachs (const char**)NULL
7478 * content selection pattern - do fix if pattern found
7480 tSCC zUltrix_ConstSelect0[] =
7481 "perror\\( char \\*";
7483 #define ULTRIX_CONST_TEST_CT 1
7484 static tTestDesc aUltrix_ConstTests[] = {
7485 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
7488 * Fix Command Arguments for Ultrix_Const
7490 static const char* apzUltrix_ConstPatch[] = {
7493 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
7496 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7498 * Description of Ultrix_Const2 fix
7500 tSCC zUltrix_Const2Name[] =
7504 * File name selection pattern
7506 tSCC zUltrix_Const2List[] =
7509 * Machine/OS name selection pattern
7511 #define apzUltrix_Const2Machs (const char**)NULL
7514 * content selection pattern - do fix if pattern found
7516 tSCC zUltrix_Const2Select0[] =
7517 "\\*fopen\\( char \\*";
7519 #define ULTRIX_CONST2_TEST_CT 1
7520 static tTestDesc aUltrix_Const2Tests[] = {
7521 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
7524 * Fix Command Arguments for Ultrix_Const2
7526 static const char* apzUltrix_Const2Patch[] = {
7528 "%1( const char *%3, const char *",
7529 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
7532 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7534 * Description of Ultrix_Const3 fix
7536 tSCC zUltrix_Const3Name[] =
7540 * File name selection pattern
7542 tSCC zUltrix_Const3List[] =
7545 * Machine/OS name selection pattern
7547 #define apzUltrix_Const3Machs (const char**)NULL
7550 * content selection pattern - do fix if pattern found
7552 tSCC zUltrix_Const3Select0[] =
7553 "fdopen\\( .*, char \\*";
7555 #define ULTRIX_CONST3_TEST_CT 1
7556 static tTestDesc aUltrix_Const3Tests[] = {
7557 { TT_EGREP, zUltrix_Const3Select0, (regex_t*)NULL }, };
7560 * Fix Command Arguments for Ultrix_Const3
7562 static const char* apzUltrix_Const3Patch[] = {
7565 "([ \t*](fdopen)\\(.*)[ \t]+(char|void) \\*__",
7568 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7570 * Description of Ultrix_Fix_Fixproto fix
7572 tSCC zUltrix_Fix_FixprotoName[] =
7573 "ultrix_fix_fixproto";
7576 * File name selection pattern
7578 tSCC zUltrix_Fix_FixprotoList[] =
7581 * Machine/OS name selection pattern
7583 #define apzUltrix_Fix_FixprotoMachs (const char**)NULL
7586 * content selection pattern - do fix if pattern found
7588 tSCC zUltrix_Fix_FixprotoSelect0[] =
7591 #define ULTRIX_FIX_FIXPROTO_TEST_CT 1
7592 static tTestDesc aUltrix_Fix_FixprotoTests[] = {
7593 { TT_EGREP, zUltrix_Fix_FixprotoSelect0, (regex_t*)NULL }, };
7596 * Fix Command Arguments for Ultrix_Fix_Fixproto
7598 static const char* apzUltrix_Fix_FixprotoPatch[] = {
7602 "^[ \t]*extern[ \t]*int[ \t]*uname\\(\\);",
7605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7607 * Description of Ultrix_Ifdef fix
7609 tSCC zUltrix_IfdefName[] =
7613 * File name selection pattern
7615 tSCC zUltrix_IfdefList[] =
7618 * Machine/OS name selection pattern
7620 #define apzUltrix_IfdefMachs (const char**)NULL
7623 * content selection pattern - do fix if pattern found
7625 tSCC zUltrix_IfdefSelect0[] =
7626 "^#ifdef KERNEL[ \t]+&&";
7628 #define ULTRIX_IFDEF_TEST_CT 1
7629 static tTestDesc aUltrix_IfdefTests[] = {
7630 { TT_EGREP, zUltrix_IfdefSelect0, (regex_t*)NULL }, };
7633 * Fix Command Arguments for Ultrix_Ifdef
7635 static const char* apzUltrix_IfdefPatch[] = {
7637 "#if defined(KERNEL) &&",
7640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7642 * Description of Ultrix_Locale fix
7644 tSCC zUltrix_LocaleName[] =
7648 * File name selection pattern
7650 tSCC zUltrix_LocaleList[] =
7653 * Machine/OS name selection pattern
7655 #define apzUltrix_LocaleMachs (const char**)NULL
7658 * content selection pattern - do fix if pattern found
7660 tSCC zUltrix_LocaleSelect0[] =
7661 "@\\(#\\)locale\\.h.*6\\.1.*\\(ULTRIX\\)";
7663 #define ULTRIX_LOCALE_TEST_CT 1
7664 static tTestDesc aUltrix_LocaleTests[] = {
7665 { TT_EGREP, zUltrix_LocaleSelect0, (regex_t*)NULL }, };
7668 * Fix Command Arguments for Ultrix_Locale
7670 static const char* apzUltrix_LocalePatch[] = {
7674 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7676 * Description of Ultrix_Math_Ifdef fix
7678 tSCC zUltrix_Math_IfdefName[] =
7679 "ultrix_math_ifdef";
7682 * File name selection pattern
7684 tSCC zUltrix_Math_IfdefList[] =
7685 "sys/limits.h\0float.h\0math.h\0";
7687 * Machine/OS name selection pattern
7689 #define apzUltrix_Math_IfdefMachs (const char**)NULL
7692 * content selection pattern - do fix if pattern found
7694 tSCC zUltrix_Math_IfdefSelect0[] =
7695 "^(#if.*)\\|\\|[ \t]+CC\\$[a-z]+";
7697 #define ULTRIX_MATH_IFDEF_TEST_CT 1
7698 static tTestDesc aUltrix_Math_IfdefTests[] = {
7699 { TT_EGREP, zUltrix_Math_IfdefSelect0, (regex_t*)NULL }, };
7702 * Fix Command Arguments for Ultrix_Math_Ifdef
7704 static const char* apzUltrix_Math_IfdefPatch[] = {
7709 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7711 * Description of Ultrix_Nested_Ioctl fix
7713 tSCC zUltrix_Nested_IoctlName[] =
7714 "ultrix_nested_ioctl";
7717 * File name selection pattern
7719 tSCC zUltrix_Nested_IoctlList[] =
7722 * Machine/OS name selection pattern
7724 #define apzUltrix_Nested_IoctlMachs (const char**)NULL
7727 * content selection pattern - do fix if pattern found
7729 tSCC zUltrix_Nested_IoctlSelect0[] =
7730 "^/\\* #define SIOCSCREEN";
7732 #define ULTRIX_NESTED_IOCTL_TEST_CT 1
7733 static tTestDesc aUltrix_Nested_IoctlTests[] = {
7734 { TT_EGREP, zUltrix_Nested_IoctlSelect0, (regex_t*)NULL }, };
7737 * Fix Command Arguments for Ultrix_Nested_Ioctl
7739 static const char* apzUltrix_Nested_IoctlPatch[] = { "sed",
7740 "-e", "/^\\/\\* #define SIOCSCREEN/s@/\\* screend@*//* screend@",
7743 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7745 * Description of Ultrix_Nested_Svc fix
7747 tSCC zUltrix_Nested_SvcName[] =
7748 "ultrix_nested_svc";
7751 * File name selection pattern
7753 tSCC zUltrix_Nested_SvcList[] =
7756 * Machine/OS name selection pattern
7758 #define apzUltrix_Nested_SvcMachs (const char**)NULL
7761 * content selection pattern - do fix if pattern found
7763 tSCC zUltrix_Nested_SvcSelect0[] =
7764 "^ \\*[ \t]*int protocol; */\\*";
7766 #define ULTRIX_NESTED_SVC_TEST_CT 1
7767 static tTestDesc aUltrix_Nested_SvcTests[] = {
7768 { TT_EGREP, zUltrix_Nested_SvcSelect0, (regex_t*)NULL }, };
7771 * Fix Command Arguments for Ultrix_Nested_Svc
7773 static const char* apzUltrix_Nested_SvcPatch[] = { "sed",
7774 "-e", "s@^\\( \\*\tint protocol; \\)/\\*@\\1*/ /*@",
7777 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7779 * Description of Ultrix_Stat fix
7781 tSCC zUltrix_StatName[] =
7785 * File name selection pattern
7787 tSCC zUltrix_StatList[] =
7790 * Machine/OS name selection pattern
7792 #define apzUltrix_StatMachs (const char**)NULL
7795 * content selection pattern - do fix if pattern found
7797 tSCC zUltrix_StatSelect0[] =
7798 "@\\(#\\)stat\\.h.*6\\.1.*\\(ULTRIX\\)";
7800 #define ULTRIX_STAT_TEST_CT 1
7801 static tTestDesc aUltrix_StatTests[] = {
7802 { TT_EGREP, zUltrix_StatSelect0, (regex_t*)NULL }, };
7805 * Fix Command Arguments for Ultrix_Stat
7807 static const char* apzUltrix_StatPatch[] = { "sed",
7808 "-e", "/^#define[ \t]S_IFPORT[ \t]*S_IFIFO$/a\\\n\
7810 /* macro to test for symbolic link */\\\n\
7811 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)\\\n\n",
7812 "-e", "/^[ \t]*fstat(),$/a\\\n\
7816 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7818 * Description of Ultrix_Static fix
7820 tSCC zUltrix_StaticName[] =
7824 * File name selection pattern
7826 tSCC zUltrix_StaticList[] =
7829 * Machine/OS name selection pattern
7831 #define apzUltrix_StaticMachs (const char**)NULL
7834 * content selection pattern - do fix if pattern found
7836 tSCC zUltrix_StaticSelect0[] =
7837 "#include \"r[34]_cpu";
7839 #define ULTRIX_STATIC_TEST_CT 1
7840 static tTestDesc aUltrix_StaticTests[] = {
7841 { TT_EGREP, zUltrix_StaticSelect0, (regex_t*)NULL }, };
7844 * Fix Command Arguments for Ultrix_Static
7846 static const char* apzUltrix_StaticPatch[] = { "sed",
7847 "-e", "s/^static struct tlb_pid_state/struct tlb_pid_state/",
7848 "-e", "s/^#include \"r3_cpu\\.h\"$/#include <machine\\/r3_cpu\\.h>/",
7849 "-e", "s/^#include \"r4_cpu\\.h\"$/#include <machine\\/r4_cpu\\.h>/",
7852 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7854 * Description of Ultrix_Stdlib fix
7856 tSCC zUltrix_StdlibName[] =
7860 * File name selection pattern
7862 tSCC zUltrix_StdlibList[] =
7865 * Machine/OS name selection pattern
7867 #define apzUltrix_StdlibMachs (const char**)NULL
7870 * content selection pattern - do fix if pattern found
7872 tSCC zUltrix_StdlibSelect0[] =
7873 "@\\(#\\)stdlib\\.h.*6\\.1.*\\(ULTRIX\\)";
7875 #define ULTRIX_STDLIB_TEST_CT 1
7876 static tTestDesc aUltrix_StdlibTests[] = {
7877 { TT_EGREP, zUltrix_StdlibSelect0, (regex_t*)NULL }, };
7880 * Fix Command Arguments for Ultrix_Stdlib
7882 static const char* apzUltrix_StdlibPatch[] = { "sed",
7883 "-e", "/^char.*getenv( const char .* );.*$/a\\\n\
7884 int\t\tsetenv( const char *__name, const char *__val, int __ovrwrt );\\\n\
7885 void\t\tunsetenv( const char *__name );\\\n\
7886 int\t\tputenv( char *__s );\n",
7887 "-e", "/^char.*getenv();.*$/a\\\n\
7889 void\tunsetenv();\\\n\
7893 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7895 * Description of Ultrix_Strings fix
7897 tSCC zUltrix_StringsName[] =
7901 * File name selection pattern
7903 tSCC zUltrix_StringsList[] =
7906 * Machine/OS name selection pattern
7908 #define apzUltrix_StringsMachs (const char**)NULL
7911 * content selection pattern - do fix if pattern found
7913 tSCC zUltrix_StringsSelect0[] =
7914 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7916 #define ULTRIX_STRINGS_TEST_CT 1
7917 static tTestDesc aUltrix_StringsTests[] = {
7918 { TT_EGREP, zUltrix_StringsSelect0, (regex_t*)NULL }, };
7921 * Fix Command Arguments for Ultrix_Strings
7923 static const char* apzUltrix_StringsPatch[] = {
7927 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7929 * Description of Ultrix_Strings2 fix
7931 tSCC zUltrix_Strings2Name[] =
7935 * File name selection pattern
7937 tSCC zUltrix_Strings2List[] =
7940 * Machine/OS name selection pattern
7942 #define apzUltrix_Strings2Machs (const char**)NULL
7945 * content selection pattern - do fix if pattern found
7947 tSCC zUltrix_Strings2Select0[] =
7948 "@\\(#\\)strings\\.h.*6\\.1.*\\(ULTRIX\\)";
7950 #define ULTRIX_STRINGS2_TEST_CT 1
7951 static tTestDesc aUltrix_Strings2Tests[] = {
7952 { TT_EGREP, zUltrix_Strings2Select0, (regex_t*)NULL }, };
7955 * Fix Command Arguments for Ultrix_Strings2
7957 static const char* apzUltrix_Strings2Patch[] = { "sed",
7958 "-e", "/^.*strncmp( const .* );.*/a\\\n\
7961 \tstrcasecmp( const char *__s1, const char *__s2),\\\n\
7962 \tstrncasecmp( const char *__s1, const char *__s2, size_t __n );\n",
7963 "-e", "/^.*strncmp();.*/a\\\n\
7965 \tstrcasecmp(),\\\n\
7966 \tstrncasecmp();\n",
7969 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7971 * Description of Ultrix_Sys_Time fix
7973 tSCC zUltrix_Sys_TimeName[] =
7977 * File name selection pattern
7979 tSCC zUltrix_Sys_TimeList[] =
7982 * Machine/OS name selection pattern
7984 #define apzUltrix_Sys_TimeMachs (const char**)NULL
7987 * content selection pattern - do fix if pattern found
7989 tSCC zUltrix_Sys_TimeSelect0[] =
7990 "@\\(#\\)time\\.h.*6\\.1.*\\(ULTRIX\\)";
7992 #define ULTRIX_SYS_TIME_TEST_CT 1
7993 static tTestDesc aUltrix_Sys_TimeTests[] = {
7994 { TT_EGREP, zUltrix_Sys_TimeSelect0, (regex_t*)NULL }, };
7997 * Fix Command Arguments for Ultrix_Sys_Time
7999 static const char* apzUltrix_Sys_TimePatch[] = { "sed",
8000 "-e", "/^extern.*time_t.*time( time_t .* );.*$/a\\\n\
8002 extern int adjtime(struct timeval *, struct timeval *);\\\n\
8003 extern int getitimer(int, struct itimerval *);\\\n\
8004 extern int setitimer(int, struct itimerval *, struct itimerval *);\\\n\
8005 extern int gettimeofday(struct timeval *, struct timezone *);\\\n\
8006 extern int settimeofday(struct timeval *, struct timezone *);\\\n\
8007 extern void profil(const void *, size_t, size_t, unsigned int);\\\n\
8008 extern int stime(const time_t *);\\\n\
8009 extern int utimes(const char *, const struct timeval[2]);\\\n\
8010 extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);\n",
8011 "-e", "/^extern.*double.*difftime();.*$/a\\\n\
8012 extern\tint adjtime();\\\n\
8013 extern\tint getitimer();\\\n\
8014 extern\tint setitimer();\\\n\
8015 extern\tint gettimeofday();\\\n\
8016 extern\tint settimeofday();\\\n\
8017 extern\tvoid profil();\\\n\
8018 extern\tint stime();\\\n\
8019 extern\tint utimes();\\\n\
8020 extern\tint select();\n",
8023 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8025 * Description of Ultrix_Unistd fix
8027 tSCC zUltrix_UnistdName[] =
8031 * File name selection pattern
8033 tSCC zUltrix_UnistdList[] =
8036 * Machine/OS name selection pattern
8038 #define apzUltrix_UnistdMachs (const char**)NULL
8041 * content selection pattern - do fix if pattern found
8043 tSCC zUltrix_UnistdSelect0[] =
8044 "@\\(#\\)unistd\\.h.*6\\.1.*\\(ULTRIX\\)";
8046 #define ULTRIX_UNISTD_TEST_CT 1
8047 static tTestDesc aUltrix_UnistdTests[] = {
8048 { TT_EGREP, zUltrix_UnistdSelect0, (regex_t*)NULL }, };
8051 * Fix Command Arguments for Ultrix_Unistd
8053 static const char* apzUltrix_UnistdPatch[] = { "sed",
8054 "-e", "/^[ \t]*getgroups(),.*$/a\\\n\
8055 \tgetpagesize(),\n",
8056 "-e", "/^[ \t]*fork(),.*$/a\\\n\
8060 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8062 * Description of Unicosmk_Restrict fix
8064 tSCC zUnicosmk_RestrictName[] =
8065 "unicosmk_restrict";
8068 * File name selection pattern
8070 tSCC zUnicosmk_RestrictList[] =
8071 "stdio.h\0stdlib.h\0wchar.h\0";
8073 * Machine/OS name selection pattern
8075 tSCC* apzUnicosmk_RestrictMachs[] = {
8077 (const char*)NULL };
8080 * content selection pattern - do fix if pattern found
8082 tSCC zUnicosmk_RestrictSelect0[] =
8083 "(\\*[ \t]*)restrict([ \t]+)";
8085 #define UNICOSMK_RESTRICT_TEST_CT 1
8086 static tTestDesc aUnicosmk_RestrictTests[] = {
8087 { TT_EGREP, zUnicosmk_RestrictSelect0, (regex_t*)NULL }, };
8090 * Fix Command Arguments for Unicosmk_Restrict
8092 static const char* apzUnicosmk_RestrictPatch[] = {
8097 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8099 * Description of Uw7_Byteorder_Fix fix
8101 tSCC zUw7_Byteorder_FixName[] =
8102 "uw7_byteorder_fix";
8105 * File name selection pattern
8107 tSCC zUw7_Byteorder_FixList[] =
8110 * Machine/OS name selection pattern
8112 tSCC* apzUw7_Byteorder_FixMachs[] = {
8116 "i?86-*-solaris2.[0-4]",
8117 "powerpcle-*-solaris2.[0-4]",
8118 "sparc-*-solaris2.[0-4]",
8119 (const char*)NULL };
8122 * content selection pattern - do fix if pattern found
8124 tSCC zUw7_Byteorder_FixSelect0[] =
8128 * perform the 'test' shell command - do fix on success
8130 tSCC zUw7_Byteorder_FixTest0[] =
8131 "-f sys/byteorder.h";
8133 #define UW7_BYTEORDER_FIX_TEST_CT 2
8134 static tTestDesc aUw7_Byteorder_FixTests[] = {
8135 { TT_TEST, zUw7_Byteorder_FixTest0, 0 /* unused */ },
8136 { TT_EGREP, zUw7_Byteorder_FixSelect0, (regex_t*)NULL }, };
8139 * Fix Command Arguments for Uw7_Byteorder_Fix
8141 static const char* apzUw7_Byteorder_FixPatch[] = {
8144 "^extern.*[ \t](htons|ntohs).*\\(in_port_t\\).*;",
8147 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8149 * Description of Va_I960_Macro fix
8151 tSCC zVa_I960_MacroName[] =
8155 * File name selection pattern
8157 tSCC zVa_I960_MacroList[] =
8158 "arch/i960/archI960.h\0";
8160 * Machine/OS name selection pattern
8162 #define apzVa_I960_MacroMachs (const char**)NULL
8165 * content selection pattern - do fix if pattern found
8167 tSCC zVa_I960_MacroSelect0[] =
8168 "__(vsiz|vali|vpad|alignof__)";
8170 #define VA_I960_MACRO_TEST_CT 1
8171 static tTestDesc aVa_I960_MacroTests[] = {
8172 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8175 * Fix Command Arguments for Va_I960_Macro
8177 static const char* apzVa_I960_MacroPatch[] = {
8182 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8184 * Description of Void_Null fix
8186 tSCC zVoid_NullName[] =
8190 * File name selection pattern
8192 tSCC zVoid_NullList[] =
8193 "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";
8195 * Machine/OS name selection pattern
8197 #define apzVoid_NullMachs (const char**)NULL
8200 * content selection pattern - do fix if pattern found
8202 tSCC zVoid_NullSelect0[] =
8203 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8206 * content bypass pattern - skip fix if pattern found
8208 tSCC zVoid_NullBypass0[] =
8211 #define VOID_NULL_TEST_CT 2
8212 static tTestDesc aVoid_NullTests[] = {
8213 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
8214 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
8217 * Fix Command Arguments for Void_Null
8219 static const char* apzVoid_NullPatch[] = {
8224 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8226 * Description of Vxworks_Gcc_Problem fix
8228 tSCC zVxworks_Gcc_ProblemName[] =
8229 "vxworks_gcc_problem";
8232 * File name selection pattern
8234 tSCC zVxworks_Gcc_ProblemList[] =
8235 "types/vxTypesBase.h\0";
8237 * Machine/OS name selection pattern
8239 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8242 * content selection pattern - do fix if pattern found
8244 tSCC zVxworks_Gcc_ProblemSelect0[] =
8245 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8247 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
8248 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8249 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8252 * Fix Command Arguments for Vxworks_Gcc_Problem
8254 static const char* apzVxworks_Gcc_ProblemPatch[] = { "sed",
8255 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8256 "-e", "/[ \t]size_t/i\\\n\
8257 #ifndef _GCC_SIZE_T\\\n\
8258 #define _GCC_SIZE_T\n",
8259 "-e", "/[ \t]size_t/a\\\n\
8261 "-e", "/[ \t]ptrdiff_t/i\\\n\
8262 #ifndef _GCC_PTRDIFF_T\\\n\
8263 #define _GCC_PTRDIFF_T\n",
8264 "-e", "/[ \t]ptrdiff_t/a\\\n\
8266 "-e", "/[ \t]wchar_t/i\\\n\
8267 #ifndef _GCC_WCHAR_T\\\n\
8268 #define _GCC_WCHAR_T\n",
8269 "-e", "/[ \t]wchar_t/a\\\n\
8273 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8275 * Description of Vxworks_Needs_Vxtypes fix
8277 tSCC zVxworks_Needs_VxtypesName[] =
8278 "vxworks_needs_vxtypes";
8281 * File name selection pattern
8283 tSCC zVxworks_Needs_VxtypesList[] =
8286 * Machine/OS name selection pattern
8288 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8291 * content selection pattern - do fix if pattern found
8293 tSCC zVxworks_Needs_VxtypesSelect0[] =
8294 "uint_t([ \t]+_clocks_per_sec)";
8296 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
8297 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8298 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8301 * Fix Command Arguments for Vxworks_Needs_Vxtypes
8303 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8308 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8310 * Description of Vxworks_Needs_Vxworks fix
8312 tSCC zVxworks_Needs_VxworksName[] =
8313 "vxworks_needs_vxworks";
8316 * File name selection pattern
8318 tSCC zVxworks_Needs_VxworksList[] =
8321 * Machine/OS name selection pattern
8323 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8326 * content selection pattern - do fix if pattern found
8328 tSCC zVxworks_Needs_VxworksSelect0[] =
8329 "#[ \t]define[ \t]+__INCstath";
8332 * perform the 'test' shell command - do fix on success
8334 tSCC zVxworks_Needs_VxworksTest0[] =
8335 " -r types/vxTypesOld.h";
8336 tSCC zVxworks_Needs_VxworksTest1[] =
8337 " -n \"`egrep '#include' $file`\"";
8338 tSCC zVxworks_Needs_VxworksTest2[] =
8339 " -n \"`egrep ULONG $file`\"";
8341 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
8342 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8343 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
8344 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
8345 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
8346 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8349 * Fix Command Arguments for Vxworks_Needs_Vxworks
8351 static const char* apzVxworks_Needs_VxworksPatch[] = { "sed",
8352 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8353 #include <types/vxTypesOld.h>\n",
8356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8358 * Description of Vxworks_Time fix
8360 tSCC zVxworks_TimeName[] =
8364 * File name selection pattern
8366 tSCC zVxworks_TimeList[] =
8369 * Machine/OS name selection pattern
8371 #define apzVxworks_TimeMachs (const char**)NULL
8374 * content selection pattern - do fix if pattern found
8376 tSCC zVxworks_TimeSelect0[] =
8377 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8380 * perform the 'test' shell command - do fix on success
8382 tSCC zVxworks_TimeTest0[] =
8385 #define VXWORKS_TIME_TEST_CT 2
8386 static tTestDesc aVxworks_TimeTests[] = {
8387 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
8388 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
8391 * Fix Command Arguments for Vxworks_Time
8393 static const char* apzVxworks_TimePatch[] = {
8395 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8396 #ifdef __cplusplus\n\
8397 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8399 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8401 #define __gcc_VOIDFUNCPTR_defined\n\
8403 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8406 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8408 * Description of Windiss_Math1 fix
8410 tSCC zWindiss_Math1Name[] =
8414 * File name selection pattern
8416 tSCC zWindiss_Math1List[] =
8419 * Machine/OS name selection pattern
8421 tSCC* apzWindiss_Math1Machs[] = {
8423 (const char*)NULL };
8424 #define WINDISS_MATH1_TEST_CT 0
8425 #define aWindiss_Math1Tests (tTestDesc*)NULL
8428 * Fix Command Arguments for Windiss_Math1
8430 static const char* apzWindiss_Math1Patch[] = { "sed",
8431 "-e", "s|inline long double cosl.*|#ifndef __GNUC__|",
8434 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8436 * Description of Windiss_Math2 fix
8438 tSCC zWindiss_Math2Name[] =
8442 * File name selection pattern
8444 tSCC zWindiss_Math2List[] =
8447 * Machine/OS name selection pattern
8449 tSCC* apzWindiss_Math2Machs[] = {
8451 (const char*)NULL };
8452 #define WINDISS_MATH2_TEST_CT 0
8453 #define aWindiss_Math2Tests (tTestDesc*)NULL
8456 * Fix Command Arguments for Windiss_Math2
8458 static const char* apzWindiss_Math2Patch[] = { "sed",
8459 "-e", "s|/\\* long double declarations \\*/|#endif /* __GNUC__ */|",
8462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8464 * Description of Windiss_Valist fix
8466 tSCC zWindiss_ValistName[] =
8470 * File name selection pattern
8472 #define zWindiss_ValistList (char*)NULL
8474 * Machine/OS name selection pattern
8476 tSCC* apzWindiss_ValistMachs[] = {
8478 (const char*)NULL };
8481 * content selection pattern - do fix if pattern found
8483 tSCC zWindiss_ValistSelect0[] =
8484 "(#include.*)diab/va_list.h";
8486 #define WINDISS_VALIST_TEST_CT 1
8487 static tTestDesc aWindiss_ValistTests[] = {
8488 { TT_EGREP, zWindiss_ValistSelect0, (regex_t*)NULL }, };
8491 * Fix Command Arguments for Windiss_Valist
8493 static const char* apzWindiss_ValistPatch[] = { "sed",
8494 "-e", "s|diab/va_list.h|stdarg.h|",
8497 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8499 * Description of X11_Class fix
8501 tSCC zX11_ClassName[] =
8505 * File name selection pattern
8507 tSCC zX11_ClassList[] =
8510 * Machine/OS name selection pattern
8512 #define apzX11_ClassMachs (const char**)NULL
8515 * content selection pattern - do fix if pattern found
8517 tSCC zX11_ClassSelect0[] =
8518 "^([ \t]*char \\*)class;(.*)";
8521 * content bypass pattern - skip fix if pattern found
8523 tSCC zX11_ClassBypass0[] =
8526 #define X11_CLASS_TEST_CT 2
8527 static tTestDesc aX11_ClassTests[] = {
8528 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
8529 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
8532 * Fix Command Arguments for X11_Class
8534 static const char* apzX11_ClassPatch[] = {
8536 "#ifdef __cplusplus\n\
8543 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8545 * Description of X11_Class_Usage fix
8547 tSCC zX11_Class_UsageName[] =
8551 * File name selection pattern
8553 tSCC zX11_Class_UsageList[] =
8554 "Xm/BaseClassI.h\0";
8556 * Machine/OS name selection pattern
8558 #define apzX11_Class_UsageMachs (const char**)NULL
8561 * content selection pattern - do fix if pattern found
8563 tSCC zX11_Class_UsageSelect0[] =
8567 * content bypass pattern - skip fix if pattern found
8569 tSCC zX11_Class_UsageBypass0[] =
8572 #define X11_CLASS_USAGE_TEST_CT 2
8573 static tTestDesc aX11_Class_UsageTests[] = {
8574 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8575 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8578 * Fix Command Arguments for X11_Class_Usage
8580 static const char* apzX11_Class_UsagePatch[] = {
8585 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8587 * Description of X11_New fix
8589 tSCC zX11_NewName[] =
8593 * File name selection pattern
8595 tSCC zX11_NewList[] =
8598 * Machine/OS name selection pattern
8600 #define apzX11_NewMachs (const char**)NULL
8603 * content bypass pattern - skip fix if pattern found
8605 tSCC zX11_NewBypass0[] =
8608 #define X11_NEW_TEST_CT 1
8609 static tTestDesc aX11_NewTests[] = {
8610 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
8613 * Fix Command Arguments for X11_New
8615 static const char* apzX11_NewPatch[] = { "sed",
8616 "-e", "/Widget\told, new;/i\\\n\
8617 #ifdef __cplusplus\\\n\
8618 \tWidget\told, c_new;\\\n\
8620 "-e", "/Widget\told, new;/a\\\n\
8622 "-e", "s/Widget new,/Widget c_new,/g",
8625 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8627 * Description of X11_Sprintf fix
8629 tSCC zX11_SprintfName[] =
8633 * File name selection pattern
8635 tSCC zX11_SprintfList[] =
8636 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8638 * Machine/OS name selection pattern
8640 #define apzX11_SprintfMachs (const char**)NULL
8643 * content selection pattern - do fix if pattern found
8645 tSCC zX11_SprintfSelect0[] =
8646 "^extern char \\*\tsprintf\\(\\);$";
8648 #define X11_SPRINTF_TEST_CT 1
8649 static tTestDesc aX11_SprintfTests[] = {
8650 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
8653 * Fix Command Arguments for X11_Sprintf
8655 static const char* apzX11_SprintfPatch[] = {
8657 "#ifndef __STDC__\n\
8659 #endif /* !defined __STDC__ */",
8663 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8667 #define REGEX_COUNT 256
8668 #define MACH_LIST_SIZE_LIMIT 261
8669 #define FIX_COUNT 213
8672 * Enumerate the fixes
8675 AAB_AIX_STDIO_FIXIDX,
8676 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8677 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8678 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8679 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8680 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8681 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8682 AAB_SUN_MEMCPY_FIXIDX,
8683 AAB_ULTRIX_ANSI_COMPAT_FIXIDX,
8684 AAB_ULTRIX_LIMITS_FIXIDX,
8685 AAB_ULTRIX_MEMORY_FIXIDX,
8686 AAB_ULTRIX_STRING_FIXIDX,
8688 AIX_SYSMACHINE_FIXIDX,
8690 AIX_SYSWAIT_2_FIXIDX,
8691 AIX_VOLATILE_FIXIDX,
8692 ALPHA___ASSERT_FIXIDX,
8693 ALPHA___EXTERN_PREFIX_FIXIDX,
8694 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8695 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8696 ALPHA_ASSERT_FIXIDX,
8697 ALPHA_BAD_LVAL_FIXIDX,
8698 ALPHA_GETOPT_FIXIDX,
8699 ALPHA_PARENS_FIXIDX,
8700 ALPHA_PTHREAD_FIXIDX,
8701 ALPHA_PTHREAD_GCC_FIXIDX,
8702 ALPHA_PTHREAD_INIT_FIXIDX,
8705 AVOID_BOOL_DEFINE_FIXIDX,
8706 AVOID_BOOL_TYPE_FIXIDX,
8707 AVOID_WCHAR_T_TYPE_FIXIDX,
8708 BAD_STRUCT_TERM_FIXIDX,
8710 BROKEN_ASSERT_STDIO_FIXIDX,
8711 BROKEN_ASSERT_STDLIB_FIXIDX,
8714 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
8715 CTRL_QUOTES_DEF_FIXIDX,
8716 CTRL_QUOTES_USE_FIXIDX,
8718 DARWIN_EXTERNC_FIXIDX,
8719 DARWIN_GCC4_BREAKAGE_FIXIDX,
8720 DARWIN_PRIVATE_EXTERN_FIXIDX,
8721 DEC_INTERN_ASM_FIXIDX,
8722 DJGPP_WCHAR_H_FIXIDX,
8724 EXCEPTION_STRUCTURE_FIXIDX,
8725 FREEBSD_GCC3_BREAKAGE_FIXIDX,
8726 FREEBSD_GCC4_BREAKAGE_FIXIDX,
8727 GLIBC_C99_INLINE_1_FIXIDX,
8728 GLIBC_C99_INLINE_1A_FIXIDX,
8729 GLIBC_C99_INLINE_2_FIXIDX,
8730 GLIBC_C99_INLINE_3_FIXIDX,
8731 GLIBC_C99_INLINE_4_FIXIDX,
8732 GLIBC_MUTEX_INIT_FIXIDX,
8736 HPUX10_CPP_POW_INLINE_FIXIDX,
8737 HPUX11_CPP_POW_INLINE_FIXIDX,
8738 HPPA_HPUX_FP_MACROS_FIXIDX,
8739 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
8740 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
8741 HPUX10_STDIO_DECLARATIONS_FIXIDX,
8743 HPUX11_FABSF_FIXIDX,
8744 HPUX11_SIZE_T_FIXIDX,
8745 HPUX11_SNPRINTF_FIXIDX,
8746 HPUX11_UINT32_C_FIXIDX,
8747 HPUX11_VSNPRINTF_FIXIDX,
8748 HPUX8_BOGUS_INLINES_FIXIDX,
8749 HPUX_CTYPE_MACROS_FIXIDX,
8751 HPUX_LONG_DOUBLE_FIXIDX,
8752 HPUX_SYSTIME_FIXIDX,
8753 HPUX_SPU_INFO_FIXIDX,
8754 HPUX11_EXTERN_SENDFILE_FIXIDX,
8755 HPUX11_EXTERN_SENDPATH_FIXIDX,
8756 HPUX_EXTERN_ERRNO_FIXIDX,
8757 HPUX11_PTHREAD_CONST_FIXIDX,
8758 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
8759 HUGE_VAL_HEX_FIXIDX,
8760 HUGE_VALF_HEX_FIXIDX,
8761 HUGE_VALL_HEX_FIXIDX,
8762 INT_ABORT_FREE_AND_EXIT_FIXIDX,
8763 IO_QUOTES_DEF_FIXIDX,
8764 IO_QUOTES_USE_FIXIDX,
8765 IP_MISSING_SEMI_FIXIDX,
8766 IRIX___RESTRICT_FIXIDX,
8767 IRIX___GENERIC1_FIXIDX,
8768 IRIX___GENERIC2_FIXIDX,
8769 IRIX_ASM_APOSTROPHE_FIXIDX,
8770 IRIX_LIMITS_CONST_FIXIDX,
8771 IRIX_SOCKLEN_T_FIXIDX,
8772 IRIX_STDINT_C99_FIXIDX,
8773 IRIX_STDIO_VA_LIST_FIXIDX,
8774 IRIX_WCSFTIME_FIXIDX,
8776 ISC_OMITS_WITH_STDC_FIXIDX,
8777 KANDR_CONCAT_FIXIDX,
8778 LIBC1_G_VA_LIST_FIXIDX,
8779 LIBC1_IFDEFD_MEMX_FIXIDX,
8780 LINUX_IA64_UCONTEXT_FIXIDX,
8781 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
8782 LYNXOS_MISSING_PUTENV_FIXIDX,
8783 MACHINE_ANSI_H_VA_LIST_FIXIDX,
8784 MACHINE_NAME_FIXIDX,
8785 MATH_EXCEPTION_FIXIDX,
8786 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
8787 NESTED_AUTH_DES_FIXIDX,
8788 NESTED_MOTOROLA_FIXIDX,
8789 NESTED_SYS_LIMITS_FIXIDX,
8790 NETBSD_C99_INLINE_1_FIXIDX,
8791 NETBSD_C99_INLINE_2_FIXIDX,
8792 NETBSD_EXTRA_SEMICOLON_FIXIDX,
8793 NEXT_MATH_PREFIX_FIXIDX,
8794 NEXT_TEMPLATE_FIXIDX,
8795 NEXT_VOLITILE_FIXIDX,
8796 NEXT_WAIT_UNION_FIXIDX,
8797 NODEENT_SYNTAX_FIXIDX,
8798 OBSTACK_LVALUE_CAST_FIXIDX,
8799 OSF_NAMESPACE_A_FIXIDX,
8800 OSF_NAMESPACE_C_FIXIDX,
8801 PTHREAD_PAGE_SIZE_FIXIDX,
8802 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
8803 READ_RET_TYPE_FIXIDX,
8804 RPC_XDR_LVALUE_CAST_A_FIXIDX,
8805 RPC_XDR_LVALUE_CAST_B_FIXIDX,
8806 RS6000_DOUBLE_FIXIDX,
8807 RS6000_FCHMOD_FIXIDX,
8808 RS6000_PARAM_FIXIDX,
8811 SCO_STATIC_FUNC_FIXIDX,
8813 SOLARIS_MATH_1_FIXIDX,
8814 SOLARIS_MATH_2_FIXIDX,
8815 SOLARIS_MATH_3_FIXIDX,
8816 SOLARIS_MATH_4_FIXIDX,
8817 SOLARIS_MATH_8_FIXIDX,
8818 SOLARIS_MATH_9_FIXIDX,
8819 SOLARIS_MATH_10_FIXIDX,
8820 SOLARIS_MUTEX_INIT_1_FIXIDX,
8821 SOLARIS_MUTEX_INIT_2_FIXIDX,
8822 SOLARIS_RWLOCK_INIT_1_FIXIDX,
8823 SOLARIS_ONCE_INIT_1_FIXIDX,
8824 SOLARIS_ONCE_INIT_2_FIXIDX,
8825 SOLARIS_SOCKET_FIXIDX,
8826 SOLARIS_STDIO_TAG_FIXIDX,
8827 SOLARIS_UNISTD_FIXIDX,
8828 SOLARIS_WIDEC_FIXIDX,
8830 STDIO_STDARG_H_FIXIDX,
8831 STDIO_VA_LIST_FIXIDX,
8832 STDIO_VA_LIST_CLIENTS_FIXIDX,
8833 STRICT_ANSI_NOT_FIXIDX,
8834 STRICT_ANSI_NOT_CTD_FIXIDX,
8835 STRICT_ANSI_ONLY_FIXIDX,
8837 STRUCT_SOCKADDR_FIXIDX,
8838 SUN_AUTH_PROTO_FIXIDX,
8839 SUN_BOGUS_IFDEF_FIXIDX,
8840 SUN_CATMACRO_FIXIDX,
8842 SUN_RUSERS_SEMI_FIXIDX,
8844 SUNOS_STRLEN_FIXIDX,
8845 SVR4_DISABLE_OPT_FIXIDX,
8849 SVR4_SIGHANDLER_TYPE_FIXIDX,
8850 SVR4_UNDECLARED_GETRNGE_FIXIDX,
8851 SYSV68_STRING_FIXIDX,
8852 SYSZ_STDLIB_FOR_SUN_FIXIDX,
8853 THREAD_KEYWORD_FIXIDX,
8854 TINFO_CPLUSPLUS_FIXIDX,
8855 ULTRIX_ATEXIT_PARAM_FIXIDX,
8856 ULTRIX_ATOF_PARAM_FIXIDX,
8857 ULTRIX_CONST_FIXIDX,
8858 ULTRIX_CONST2_FIXIDX,
8859 ULTRIX_CONST3_FIXIDX,
8860 ULTRIX_FIX_FIXPROTO_FIXIDX,
8861 ULTRIX_IFDEF_FIXIDX,
8862 ULTRIX_LOCALE_FIXIDX,
8863 ULTRIX_MATH_IFDEF_FIXIDX,
8864 ULTRIX_NESTED_IOCTL_FIXIDX,
8865 ULTRIX_NESTED_SVC_FIXIDX,
8867 ULTRIX_STATIC_FIXIDX,
8868 ULTRIX_STDLIB_FIXIDX,
8869 ULTRIX_STRINGS_FIXIDX,
8870 ULTRIX_STRINGS2_FIXIDX,
8871 ULTRIX_SYS_TIME_FIXIDX,
8872 ULTRIX_UNISTD_FIXIDX,
8873 UNICOSMK_RESTRICT_FIXIDX,
8874 UW7_BYTEORDER_FIX_FIXIDX,
8875 VA_I960_MACRO_FIXIDX,
8877 VXWORKS_GCC_PROBLEM_FIXIDX,
8878 VXWORKS_NEEDS_VXTYPES_FIXIDX,
8879 VXWORKS_NEEDS_VXWORKS_FIXIDX,
8880 VXWORKS_TIME_FIXIDX,
8881 WINDISS_MATH1_FIXIDX,
8882 WINDISS_MATH2_FIXIDX,
8883 WINDISS_VALIST_FIXIDX,
8885 X11_CLASS_USAGE_FIXIDX,
8890 tFixDesc fixDescList[ FIX_COUNT ] = {
8891 { zAab_Aix_StdioName, zAab_Aix_StdioList,
8892 apzAab_Aix_StdioMachs,
8893 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8894 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
8896 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
8897 apzAab_Darwin7_9_Long_Double_FuncsMachs,
8898 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8899 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
8901 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
8902 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
8903 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8904 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
8906 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
8907 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
8908 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8909 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
8911 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
8912 apzAab_Fd_Zero_Gnu_Types_HMachs,
8913 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8914 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
8916 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
8917 apzAab_Fd_Zero_Selectbits_HMachs,
8918 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8919 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
8921 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
8922 apzAab_Solaris_Sys_Varargs_HMachs,
8923 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8924 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
8926 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
8927 apzAab_Sun_MemcpyMachs,
8928 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8929 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
8931 { zAab_Ultrix_Ansi_CompatName, zAab_Ultrix_Ansi_CompatList,
8932 apzAab_Ultrix_Ansi_CompatMachs,
8933 AAB_ULTRIX_ANSI_COMPAT_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8934 aAab_Ultrix_Ansi_CompatTests, apzAab_Ultrix_Ansi_CompatPatch, 0 },
8936 { zAab_Ultrix_LimitsName, zAab_Ultrix_LimitsList,
8937 apzAab_Ultrix_LimitsMachs,
8938 AAB_ULTRIX_LIMITS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8939 aAab_Ultrix_LimitsTests, apzAab_Ultrix_LimitsPatch, 0 },
8941 { zAab_Ultrix_MemoryName, zAab_Ultrix_MemoryList,
8942 apzAab_Ultrix_MemoryMachs,
8943 AAB_ULTRIX_MEMORY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8944 aAab_Ultrix_MemoryTests, apzAab_Ultrix_MemoryPatch, 0 },
8946 { zAab_Ultrix_StringName, zAab_Ultrix_StringList,
8947 apzAab_Ultrix_StringMachs,
8948 AAB_ULTRIX_STRING_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
8949 aAab_Ultrix_StringTests, apzAab_Ultrix_StringPatch, 0 },
8951 { zAix_PthreadName, zAix_PthreadList,
8952 apzAix_PthreadMachs,
8953 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8954 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
8956 { zAix_SysmachineName, zAix_SysmachineList,
8957 apzAix_SysmachineMachs,
8958 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8959 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
8961 { zAix_SyswaitName, zAix_SyswaitList,
8962 apzAix_SyswaitMachs,
8963 AIX_SYSWAIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8964 aAix_SyswaitTests, apzAix_SyswaitPatch, 0 },
8966 { zAix_Syswait_2Name, zAix_Syswait_2List,
8967 apzAix_Syswait_2Machs,
8968 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8969 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
8971 { zAix_VolatileName, zAix_VolatileList,
8972 apzAix_VolatileMachs,
8973 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8974 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
8976 { zAlpha___AssertName, zAlpha___AssertList,
8977 apzAlpha___AssertMachs,
8978 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8979 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
8981 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
8982 apzAlpha___Extern_PrefixMachs,
8983 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8984 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
8986 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
8987 apzAlpha___Extern_Prefix_StandardsMachs,
8988 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8989 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
8991 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
8992 apzAlpha___Extern_Prefix_Sys_StatMachs,
8993 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8994 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
8996 { zAlpha_AssertName, zAlpha_AssertList,
8997 apzAlpha_AssertMachs,
8998 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
8999 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
9001 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
9002 apzAlpha_Bad_LvalMachs,
9003 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
9004 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
9006 { zAlpha_GetoptName, zAlpha_GetoptList,
9007 apzAlpha_GetoptMachs,
9008 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9009 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
9011 { zAlpha_ParensName, zAlpha_ParensList,
9012 apzAlpha_ParensMachs,
9013 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9014 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
9016 { zAlpha_PthreadName, zAlpha_PthreadList,
9017 apzAlpha_PthreadMachs,
9018 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9019 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
9021 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
9022 apzAlpha_Pthread_GccMachs,
9023 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9024 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
9026 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
9027 apzAlpha_Pthread_InitMachs,
9028 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
9029 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
9031 { zAlpha_SbrkName, zAlpha_SbrkList,
9033 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9034 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
9036 { zAlpha_WcharName, zAlpha_WcharList,
9037 apzAlpha_WcharMachs,
9038 ALPHA_WCHAR_TEST_CT, FD_MACH_ONLY,
9039 aAlpha_WcharTests, apzAlpha_WcharPatch, 0 },
9041 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
9042 apzAvoid_Bool_DefineMachs,
9043 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9044 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
9046 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
9047 apzAvoid_Bool_TypeMachs,
9048 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9049 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
9051 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
9052 apzAvoid_Wchar_T_TypeMachs,
9053 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9054 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
9056 { zBad_Struct_TermName, zBad_Struct_TermList,
9057 apzBad_Struct_TermMachs,
9058 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9059 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
9061 { zBadquoteName, zBadquoteList,
9063 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9064 aBadquoteTests, apzBadquotePatch, 0 },
9066 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
9067 apzBroken_Assert_StdioMachs,
9068 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9069 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
9071 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
9072 apzBroken_Assert_StdlibMachs,
9073 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9074 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
9076 { zBroken_CabsName, zBroken_CabsList,
9077 apzBroken_CabsMachs,
9078 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9079 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
9081 { zBroken_NanName, zBroken_NanList,
9083 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9084 aBroken_NanTests, apzBroken_NanPatch, 0 },
9086 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
9087 apzBsd_Stdio_Attrs_ConflictMachs,
9088 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9089 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9091 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
9092 apzCtrl_Quotes_DefMachs,
9093 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9094 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
9096 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
9097 apzCtrl_Quotes_UseMachs,
9098 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9099 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
9101 { zCxx_UnreadyName, zCxx_UnreadyList,
9102 apzCxx_UnreadyMachs,
9103 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9104 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
9106 { zDarwin_ExterncName, zDarwin_ExterncList,
9107 apzDarwin_ExterncMachs,
9108 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9109 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
9111 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
9112 apzDarwin_Gcc4_BreakageMachs,
9113 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9114 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
9116 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
9117 apzDarwin_Private_ExternMachs,
9118 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9119 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
9121 { zDec_Intern_AsmName, zDec_Intern_AsmList,
9122 apzDec_Intern_AsmMachs,
9123 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9124 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
9126 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
9127 apzDjgpp_Wchar_HMachs,
9128 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9129 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
9131 { zEcd_CursorName, zEcd_CursorList,
9133 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9134 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
9136 { zException_StructureName, zException_StructureList,
9137 apzException_StructureMachs,
9138 EXCEPTION_STRUCTURE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9139 aException_StructureTests, apzException_StructurePatch, 0 },
9141 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
9142 apzFreebsd_Gcc3_BreakageMachs,
9143 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9144 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
9146 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
9147 apzFreebsd_Gcc4_BreakageMachs,
9148 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9149 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
9151 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
9152 apzGlibc_C99_Inline_1Machs,
9153 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9154 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
9156 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
9157 apzGlibc_C99_Inline_1aMachs,
9158 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9159 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
9161 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
9162 apzGlibc_C99_Inline_2Machs,
9163 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9164 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
9166 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
9167 apzGlibc_C99_Inline_3Machs,
9168 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9169 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
9171 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
9172 apzGlibc_C99_Inline_4Machs,
9173 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9174 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
9176 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
9177 apzGlibc_Mutex_InitMachs,
9178 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9179 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
9181 { zGnu_TypesName, zGnu_TypesList,
9183 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9184 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
9186 { zHp_InlineName, zHp_InlineList,
9188 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9189 aHp_InlineTests, apzHp_InlinePatch, 0 },
9191 { zHp_SysfileName, zHp_SysfileList,
9193 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9194 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
9196 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
9197 apzHpux10_Cpp_Pow_InlineMachs,
9198 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9199 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
9201 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
9202 apzHpux11_Cpp_Pow_InlineMachs,
9203 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9204 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
9206 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
9207 apzHppa_Hpux_Fp_MacrosMachs,
9208 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9209 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
9211 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
9212 apzHpux10_Ctype_Declarations1Machs,
9213 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9214 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
9216 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
9217 apzHpux10_Ctype_Declarations2Machs,
9218 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9219 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
9221 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
9222 apzHpux10_Stdio_DeclarationsMachs,
9223 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9224 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
9226 { zHpux11_AbsName, zHpux11_AbsList,
9228 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9229 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
9231 { zHpux11_FabsfName, zHpux11_FabsfList,
9232 apzHpux11_FabsfMachs,
9233 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9234 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
9236 { zHpux11_Size_TName, zHpux11_Size_TList,
9237 apzHpux11_Size_TMachs,
9238 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9239 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
9241 { zHpux11_SnprintfName, zHpux11_SnprintfList,
9242 apzHpux11_SnprintfMachs,
9243 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9244 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
9246 { zHpux11_Uint32_CName, zHpux11_Uint32_CList,
9247 apzHpux11_Uint32_CMachs,
9248 HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9249 aHpux11_Uint32_CTests, apzHpux11_Uint32_CPatch, 0 },
9251 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
9252 apzHpux11_VsnprintfMachs,
9253 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9254 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
9256 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
9257 apzHpux8_Bogus_InlinesMachs,
9258 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9259 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
9261 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
9262 apzHpux_Ctype_MacrosMachs,
9263 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9264 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
9266 { zHpux_HtonlName, zHpux_HtonlList,
9268 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9269 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
9271 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
9272 apzHpux_Long_DoubleMachs,
9273 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9274 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
9276 { zHpux_SystimeName, zHpux_SystimeList,
9277 apzHpux_SystimeMachs,
9278 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9279 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
9281 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
9282 apzHpux_Spu_InfoMachs,
9283 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9284 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
9286 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
9287 apzHpux11_Extern_SendfileMachs,
9288 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9289 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
9291 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
9292 apzHpux11_Extern_SendpathMachs,
9293 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9294 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
9296 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
9297 apzHpux_Extern_ErrnoMachs,
9298 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9299 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
9301 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
9302 apzHpux11_Pthread_ConstMachs,
9303 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9304 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
9306 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
9307 apzHpux_Pthread_InitializersMachs,
9308 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9309 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
9311 { zHuge_Val_HexName, zHuge_Val_HexList,
9312 apzHuge_Val_HexMachs,
9313 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9314 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
9316 { zHuge_Valf_HexName, zHuge_Valf_HexList,
9317 apzHuge_Valf_HexMachs,
9318 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9319 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
9321 { zHuge_Vall_HexName, zHuge_Vall_HexList,
9322 apzHuge_Vall_HexMachs,
9323 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9324 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
9326 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
9327 apzInt_Abort_Free_And_ExitMachs,
9328 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9329 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
9331 { zIo_Quotes_DefName, zIo_Quotes_DefList,
9332 apzIo_Quotes_DefMachs,
9333 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9334 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
9336 { zIo_Quotes_UseName, zIo_Quotes_UseList,
9337 apzIo_Quotes_UseMachs,
9338 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9339 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
9341 { zIp_Missing_SemiName, zIp_Missing_SemiList,
9342 apzIp_Missing_SemiMachs,
9343 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9344 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
9346 { zIrix___RestrictName, zIrix___RestrictList,
9347 apzIrix___RestrictMachs,
9348 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9349 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
9351 { zIrix___Generic1Name, zIrix___Generic1List,
9352 apzIrix___Generic1Machs,
9353 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9354 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
9356 { zIrix___Generic2Name, zIrix___Generic2List,
9357 apzIrix___Generic2Machs,
9358 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9359 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
9361 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
9362 apzIrix_Asm_ApostropheMachs,
9363 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9364 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
9366 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
9367 apzIrix_Limits_ConstMachs,
9368 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9369 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
9371 { zIrix_Socklen_TName, zIrix_Socklen_TList,
9372 apzIrix_Socklen_TMachs,
9373 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9374 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
9376 { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
9377 apzIrix_Stdint_C99Machs,
9378 IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9379 aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
9381 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
9382 apzIrix_Stdio_Va_ListMachs,
9383 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9384 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
9386 { zIrix_WcsftimeName, zIrix_WcsftimeList,
9387 apzIrix_WcsftimeMachs,
9388 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9389 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
9391 { zIsc_FmodName, zIsc_FmodList,
9393 ISC_FMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9394 aIsc_FmodTests, apzIsc_FmodPatch, 0 },
9396 { zIsc_Omits_With_StdcName, zIsc_Omits_With_StdcList,
9397 apzIsc_Omits_With_StdcMachs,
9398 ISC_OMITS_WITH_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9399 aIsc_Omits_With_StdcTests, apzIsc_Omits_With_StdcPatch, 0 },
9401 { zKandr_ConcatName, zKandr_ConcatList,
9402 apzKandr_ConcatMachs,
9403 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9404 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
9406 { zLibc1_G_Va_ListName, zLibc1_G_Va_ListList,
9407 apzLibc1_G_Va_ListMachs,
9408 LIBC1_G_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9409 aLibc1_G_Va_ListTests, apzLibc1_G_Va_ListPatch, 0 },
9411 { zLibc1_Ifdefd_MemxName, zLibc1_Ifdefd_MemxList,
9412 apzLibc1_Ifdefd_MemxMachs,
9413 LIBC1_IFDEFD_MEMX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9414 aLibc1_Ifdefd_MemxTests, apzLibc1_Ifdefd_MemxPatch, 0 },
9416 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
9417 apzLinux_Ia64_UcontextMachs,
9418 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9419 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
9421 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
9422 apzLynxos_No_Warning_In_Sys_Time_HMachs,
9423 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9424 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9426 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
9427 apzLynxos_Missing_PutenvMachs,
9428 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9429 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
9431 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
9432 apzMachine_Ansi_H_Va_ListMachs,
9433 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9434 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
9436 { zMachine_NameName, zMachine_NameList,
9437 apzMachine_NameMachs,
9438 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9439 aMachine_NameTests, apzMachine_NamePatch, 0 },
9441 { zMath_ExceptionName, zMath_ExceptionList,
9442 apzMath_ExceptionMachs,
9443 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9444 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
9446 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
9447 apzMath_Huge_Val_From_Dbl_MaxMachs,
9448 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9449 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9451 { zNested_Auth_DesName, zNested_Auth_DesList,
9452 apzNested_Auth_DesMachs,
9453 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9454 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
9456 { zNested_MotorolaName, zNested_MotorolaList,
9457 apzNested_MotorolaMachs,
9458 NESTED_MOTOROLA_TEST_CT, FD_MACH_ONLY,
9459 aNested_MotorolaTests, apzNested_MotorolaPatch, 0 },
9461 { zNested_Sys_LimitsName, zNested_Sys_LimitsList,
9462 apzNested_Sys_LimitsMachs,
9463 NESTED_SYS_LIMITS_TEST_CT, FD_MACH_ONLY,
9464 aNested_Sys_LimitsTests, apzNested_Sys_LimitsPatch, 0 },
9466 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
9467 apzNetbsd_C99_Inline_1Machs,
9468 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9469 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
9471 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
9472 apzNetbsd_C99_Inline_2Machs,
9473 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9474 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
9476 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
9477 apzNetbsd_Extra_SemicolonMachs,
9478 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9479 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
9481 { zNext_Math_PrefixName, zNext_Math_PrefixList,
9482 apzNext_Math_PrefixMachs,
9483 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9484 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
9486 { zNext_TemplateName, zNext_TemplateList,
9487 apzNext_TemplateMachs,
9488 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9489 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
9491 { zNext_VolitileName, zNext_VolitileList,
9492 apzNext_VolitileMachs,
9493 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9494 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
9496 { zNext_Wait_UnionName, zNext_Wait_UnionList,
9497 apzNext_Wait_UnionMachs,
9498 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9499 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
9501 { zNodeent_SyntaxName, zNodeent_SyntaxList,
9502 apzNodeent_SyntaxMachs,
9503 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9504 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
9506 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
9507 apzObstack_Lvalue_CastMachs,
9508 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9509 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
9511 { zOsf_Namespace_AName, zOsf_Namespace_AList,
9512 apzOsf_Namespace_AMachs,
9513 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9514 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
9516 { zOsf_Namespace_CName, zOsf_Namespace_CList,
9517 apzOsf_Namespace_CMachs,
9518 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9519 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
9521 { zPthread_Page_SizeName, zPthread_Page_SizeList,
9522 apzPthread_Page_SizeMachs,
9523 PTHREAD_PAGE_SIZE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9524 aPthread_Page_SizeTests, apzPthread_Page_SizePatch, 0 },
9526 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
9527 apzPthread_Incomplete_Struct_ArgumentMachs,
9528 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9529 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9531 { zRead_Ret_TypeName, zRead_Ret_TypeList,
9532 apzRead_Ret_TypeMachs,
9533 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9534 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
9536 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
9537 apzRpc_Xdr_Lvalue_Cast_AMachs,
9538 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9539 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9541 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
9542 apzRpc_Xdr_Lvalue_Cast_BMachs,
9543 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9544 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9546 { zRs6000_DoubleName, zRs6000_DoubleList,
9547 apzRs6000_DoubleMachs,
9548 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9549 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
9551 { zRs6000_FchmodName, zRs6000_FchmodList,
9552 apzRs6000_FchmodMachs,
9553 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9554 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
9556 { zRs6000_ParamName, zRs6000_ParamList,
9557 apzRs6000_ParamMachs,
9558 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9559 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
9561 { zSco_MathName, zSco_MathList,
9563 SCO_MATH_TEST_CT, FD_MACH_ONLY,
9564 aSco_MathTests, apzSco_MathPatch, 0 },
9566 { zSco_RegsetName, zSco_RegsetList,
9568 SCO_REGSET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9569 aSco_RegsetTests, apzSco_RegsetPatch, 0 },
9571 { zSco_Static_FuncName, zSco_Static_FuncList,
9572 apzSco_Static_FuncMachs,
9573 SCO_STATIC_FUNC_TEST_CT, FD_MACH_ONLY,
9574 aSco_Static_FuncTests, apzSco_Static_FuncPatch, 0 },
9576 { zSco_UtimeName, zSco_UtimeList,
9578 SCO_UTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9579 aSco_UtimeTests, apzSco_UtimePatch, 0 },
9581 { zSolaris_Math_1Name, zSolaris_Math_1List,
9582 apzSolaris_Math_1Machs,
9583 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9584 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
9586 { zSolaris_Math_2Name, zSolaris_Math_2List,
9587 apzSolaris_Math_2Machs,
9588 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9589 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
9591 { zSolaris_Math_3Name, zSolaris_Math_3List,
9592 apzSolaris_Math_3Machs,
9593 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9594 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
9596 { zSolaris_Math_4Name, zSolaris_Math_4List,
9597 apzSolaris_Math_4Machs,
9598 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9599 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
9601 { zSolaris_Math_8Name, zSolaris_Math_8List,
9602 apzSolaris_Math_8Machs,
9603 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9604 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
9606 { zSolaris_Math_9Name, zSolaris_Math_9List,
9607 apzSolaris_Math_9Machs,
9608 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9609 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
9611 { zSolaris_Math_10Name, zSolaris_Math_10List,
9612 apzSolaris_Math_10Machs,
9613 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9614 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
9616 { zSolaris_Mutex_Init_1Name, zSolaris_Mutex_Init_1List,
9617 apzSolaris_Mutex_Init_1Machs,
9618 SOLARIS_MUTEX_INIT_1_TEST_CT, FD_MACH_ONLY,
9619 aSolaris_Mutex_Init_1Tests, apzSolaris_Mutex_Init_1Patch, 0 },
9621 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
9622 apzSolaris_Mutex_Init_2Machs,
9623 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9624 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
9626 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
9627 apzSolaris_Rwlock_Init_1Machs,
9628 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9629 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
9631 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
9632 apzSolaris_Once_Init_1Machs,
9633 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9634 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
9636 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
9637 apzSolaris_Once_Init_2Machs,
9638 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9639 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
9641 { zSolaris_SocketName, zSolaris_SocketList,
9642 apzSolaris_SocketMachs,
9643 SOLARIS_SOCKET_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9644 aSolaris_SocketTests, apzSolaris_SocketPatch, 0 },
9646 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
9647 apzSolaris_Stdio_TagMachs,
9648 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
9649 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
9651 { zSolaris_UnistdName, zSolaris_UnistdList,
9652 apzSolaris_UnistdMachs,
9653 SOLARIS_UNISTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9654 aSolaris_UnistdTests, apzSolaris_UnistdPatch, 0 },
9656 { zSolaris_WidecName, zSolaris_WidecList,
9657 apzSolaris_WidecMachs,
9658 SOLARIS_WIDEC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9659 aSolaris_WidecTests, apzSolaris_WidecPatch, 0 },
9661 { zStatsswtchName, zStatsswtchList,
9663 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9664 aStatsswtchTests, apzStatsswtchPatch, 0 },
9666 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
9667 apzStdio_Stdarg_HMachs,
9668 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9669 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
9671 { zStdio_Va_ListName, zStdio_Va_ListList,
9672 apzStdio_Va_ListMachs,
9673 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
9674 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
9676 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
9677 apzStdio_Va_List_ClientsMachs,
9678 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
9679 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
9681 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
9682 apzStrict_Ansi_NotMachs,
9683 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9684 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
9686 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
9687 apzStrict_Ansi_Not_CtdMachs,
9688 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9689 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
9691 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
9692 apzStrict_Ansi_OnlyMachs,
9693 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9694 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
9696 { zStruct_FileName, zStruct_FileList,
9697 apzStruct_FileMachs,
9698 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9699 aStruct_FileTests, apzStruct_FilePatch, 0 },
9701 { zStruct_SockaddrName, zStruct_SockaddrList,
9702 apzStruct_SockaddrMachs,
9703 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9704 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
9706 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
9707 apzSun_Auth_ProtoMachs,
9708 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9709 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
9711 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
9712 apzSun_Bogus_IfdefMachs,
9713 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9714 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
9716 { zSun_CatmacroName, zSun_CatmacroList,
9717 apzSun_CatmacroMachs,
9718 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9719 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
9721 { zSun_MallocName, zSun_MallocList,
9723 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
9724 aSun_MallocTests, apzSun_MallocPatch, 0 },
9726 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
9727 apzSun_Rusers_SemiMachs,
9728 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
9729 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
9731 { zSun_SignalName, zSun_SignalList,
9733 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9734 aSun_SignalTests, apzSun_SignalPatch, 0 },
9736 { zSunos_StrlenName, zSunos_StrlenList,
9737 apzSunos_StrlenMachs,
9738 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9739 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
9741 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
9742 apzSvr4_Disable_OptMachs,
9743 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
9744 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
9746 { zSvr4_GetcwdName, zSvr4_GetcwdList,
9747 apzSvr4_GetcwdMachs,
9748 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9749 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
9751 { zSvr4_KrnlName, zSvr4_KrnlList,
9753 SVR4_KRNL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9754 aSvr4_KrnlTests, apzSvr4_KrnlPatch, 0 },
9756 { zSvr4_ProfilName, zSvr4_ProfilList,
9757 apzSvr4_ProfilMachs,
9758 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9759 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
9761 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
9762 apzSvr4_Sighandler_TypeMachs,
9763 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9764 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
9766 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
9767 apzSvr4_Undeclared_GetrngeMachs,
9768 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9769 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
9771 { zSysv68_StringName, zSysv68_StringList,
9772 apzSysv68_StringMachs,
9773 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
9774 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
9776 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
9777 apzSysz_Stdlib_For_SunMachs,
9778 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9779 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
9781 { zThread_KeywordName, zThread_KeywordList,
9782 apzThread_KeywordMachs,
9783 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9784 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
9786 { zTinfo_CplusplusName, zTinfo_CplusplusList,
9787 apzTinfo_CplusplusMachs,
9788 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9789 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
9791 { zUltrix_Atexit_ParamName, zUltrix_Atexit_ParamList,
9792 apzUltrix_Atexit_ParamMachs,
9793 ULTRIX_ATEXIT_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9794 aUltrix_Atexit_ParamTests, apzUltrix_Atexit_ParamPatch, 0 },
9796 { zUltrix_Atof_ParamName, zUltrix_Atof_ParamList,
9797 apzUltrix_Atof_ParamMachs,
9798 ULTRIX_ATOF_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9799 aUltrix_Atof_ParamTests, apzUltrix_Atof_ParamPatch, 0 },
9801 { zUltrix_ConstName, zUltrix_ConstList,
9802 apzUltrix_ConstMachs,
9803 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9804 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
9806 { zUltrix_Const2Name, zUltrix_Const2List,
9807 apzUltrix_Const2Machs,
9808 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9809 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
9811 { zUltrix_Const3Name, zUltrix_Const3List,
9812 apzUltrix_Const3Machs,
9813 ULTRIX_CONST3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9814 aUltrix_Const3Tests, apzUltrix_Const3Patch, 0 },
9816 { zUltrix_Fix_FixprotoName, zUltrix_Fix_FixprotoList,
9817 apzUltrix_Fix_FixprotoMachs,
9818 ULTRIX_FIX_FIXPROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9819 aUltrix_Fix_FixprotoTests, apzUltrix_Fix_FixprotoPatch, 0 },
9821 { zUltrix_IfdefName, zUltrix_IfdefList,
9822 apzUltrix_IfdefMachs,
9823 ULTRIX_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9824 aUltrix_IfdefTests, apzUltrix_IfdefPatch, 0 },
9826 { zUltrix_LocaleName, zUltrix_LocaleList,
9827 apzUltrix_LocaleMachs,
9828 ULTRIX_LOCALE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9829 aUltrix_LocaleTests, apzUltrix_LocalePatch, 0 },
9831 { zUltrix_Math_IfdefName, zUltrix_Math_IfdefList,
9832 apzUltrix_Math_IfdefMachs,
9833 ULTRIX_MATH_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9834 aUltrix_Math_IfdefTests, apzUltrix_Math_IfdefPatch, 0 },
9836 { zUltrix_Nested_IoctlName, zUltrix_Nested_IoctlList,
9837 apzUltrix_Nested_IoctlMachs,
9838 ULTRIX_NESTED_IOCTL_TEST_CT, FD_MACH_ONLY,
9839 aUltrix_Nested_IoctlTests, apzUltrix_Nested_IoctlPatch, 0 },
9841 { zUltrix_Nested_SvcName, zUltrix_Nested_SvcList,
9842 apzUltrix_Nested_SvcMachs,
9843 ULTRIX_NESTED_SVC_TEST_CT, FD_MACH_ONLY,
9844 aUltrix_Nested_SvcTests, apzUltrix_Nested_SvcPatch, 0 },
9846 { zUltrix_StatName, zUltrix_StatList,
9847 apzUltrix_StatMachs,
9848 ULTRIX_STAT_TEST_CT, FD_MACH_ONLY,
9849 aUltrix_StatTests, apzUltrix_StatPatch, 0 },
9851 { zUltrix_StaticName, zUltrix_StaticList,
9852 apzUltrix_StaticMachs,
9853 ULTRIX_STATIC_TEST_CT, FD_MACH_ONLY,
9854 aUltrix_StaticTests, apzUltrix_StaticPatch, 0 },
9856 { zUltrix_StdlibName, zUltrix_StdlibList,
9857 apzUltrix_StdlibMachs,
9858 ULTRIX_STDLIB_TEST_CT, FD_MACH_ONLY,
9859 aUltrix_StdlibTests, apzUltrix_StdlibPatch, 0 },
9861 { zUltrix_StringsName, zUltrix_StringsList,
9862 apzUltrix_StringsMachs,
9863 ULTRIX_STRINGS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9864 aUltrix_StringsTests, apzUltrix_StringsPatch, 0 },
9866 { zUltrix_Strings2Name, zUltrix_Strings2List,
9867 apzUltrix_Strings2Machs,
9868 ULTRIX_STRINGS2_TEST_CT, FD_MACH_ONLY,
9869 aUltrix_Strings2Tests, apzUltrix_Strings2Patch, 0 },
9871 { zUltrix_Sys_TimeName, zUltrix_Sys_TimeList,
9872 apzUltrix_Sys_TimeMachs,
9873 ULTRIX_SYS_TIME_TEST_CT, FD_MACH_ONLY,
9874 aUltrix_Sys_TimeTests, apzUltrix_Sys_TimePatch, 0 },
9876 { zUltrix_UnistdName, zUltrix_UnistdList,
9877 apzUltrix_UnistdMachs,
9878 ULTRIX_UNISTD_TEST_CT, FD_MACH_ONLY,
9879 aUltrix_UnistdTests, apzUltrix_UnistdPatch, 0 },
9881 { zUnicosmk_RestrictName, zUnicosmk_RestrictList,
9882 apzUnicosmk_RestrictMachs,
9883 UNICOSMK_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9884 aUnicosmk_RestrictTests, apzUnicosmk_RestrictPatch, 0 },
9886 { zUw7_Byteorder_FixName, zUw7_Byteorder_FixList,
9887 apzUw7_Byteorder_FixMachs,
9888 UW7_BYTEORDER_FIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9889 aUw7_Byteorder_FixTests, apzUw7_Byteorder_FixPatch, 0 },
9891 { zVa_I960_MacroName, zVa_I960_MacroList,
9892 apzVa_I960_MacroMachs,
9893 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9894 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
9896 { zVoid_NullName, zVoid_NullList,
9898 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9899 aVoid_NullTests, apzVoid_NullPatch, 0 },
9901 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
9902 apzVxworks_Gcc_ProblemMachs,
9903 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
9904 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
9906 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
9907 apzVxworks_Needs_VxtypesMachs,
9908 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9909 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
9911 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
9912 apzVxworks_Needs_VxworksMachs,
9913 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
9914 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
9916 { zVxworks_TimeName, zVxworks_TimeList,
9917 apzVxworks_TimeMachs,
9918 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9919 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
9921 { zWindiss_Math1Name, zWindiss_Math1List,
9922 apzWindiss_Math1Machs,
9923 WINDISS_MATH1_TEST_CT, FD_MACH_ONLY,
9924 aWindiss_Math1Tests, apzWindiss_Math1Patch, 0 },
9926 { zWindiss_Math2Name, zWindiss_Math2List,
9927 apzWindiss_Math2Machs,
9928 WINDISS_MATH2_TEST_CT, FD_MACH_ONLY,
9929 aWindiss_Math2Tests, apzWindiss_Math2Patch, 0 },
9931 { zWindiss_ValistName, zWindiss_ValistList,
9932 apzWindiss_ValistMachs,
9933 WINDISS_VALIST_TEST_CT, FD_MACH_ONLY,
9934 aWindiss_ValistTests, apzWindiss_ValistPatch, 0 },
9936 { zX11_ClassName, zX11_ClassList,
9938 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9939 aX11_ClassTests, apzX11_ClassPatch, 0 },
9941 { zX11_Class_UsageName, zX11_Class_UsageList,
9942 apzX11_Class_UsageMachs,
9943 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9944 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
9946 { zX11_NewName, zX11_NewList,
9948 X11_NEW_TEST_CT, FD_MACH_ONLY,
9949 aX11_NewTests, apzX11_NewPatch, 0 },
9951 { zX11_SprintfName, zX11_SprintfList,
9952 apzX11_SprintfMachs,
9953 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9954 aX11_SprintfTests, apzX11_SprintfPatch, 0 }