1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed Sunday October 23, 2011 at 12:18:29 PM EST
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Sun Oct 23 12:18:29 EST 2011
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 220 fixup descriptions.
20 * See README for more information.
22 * inclhack copyright (c) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
24 * The Free Software Foundation, Inc.
26 * inclhack is free software: you can redistribute it and/or modify it
27 * under the terms of the GNU General Public License as published by the
28 * Free Software Foundation, either version 3 of the License, or
29 * (at your option) any later version.
31 * inclhack is distributed in the hope that it will be useful, but
32 * WITHOUT ANY WARRANTY; without even the implied warranty of
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34 * See the GNU General Public License for more details.
36 * You should have received a copy of the GNU General Public License along
37 * with this program. If not, see <http://www.gnu.org/licenses/>.
40 #define SED_PROGRAM "/usr/bin/sed"
42 static char const sed_cmd_z[] = SED_PROGRAM;
44 /* * * * * * * * * * * * * * * * * * * * * * * * * *
46 * Description of Aab_Aix_Stdio fix
48 tSCC zAab_Aix_StdioName[] =
52 * File name selection pattern
54 tSCC zAab_Aix_StdioList[] =
57 * Machine/OS name selection pattern
59 tSCC* apzAab_Aix_StdioMachs[] = {
64 * content selection pattern - do fix if pattern found
66 tSCC zAab_Aix_StdioSelect0[] =
67 "define fopen fopen64";
69 #define AAB_AIX_STDIO_TEST_CT 1
70 static tTestDesc aAab_Aix_StdioTests[] = {
71 { TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
74 * Fix Command Arguments for Aab_Aix_Stdio
76 static const char* apzAab_Aix_StdioPatch[] = {
80 #if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
81 #define __need__aix_stdio_h_fix\n\
82 #ifdef __need__aix_stdio_h_fix\n\
89 /* Alias the symbols using asm */\n\
91 extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
92 extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
93 extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
94 extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
95 extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
96 extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
102 /* * * * * * * * * * * * * * * * * * * * * * * * * *
104 * Description of Aab_Darwin7_9_Long_Double_Funcs fix
106 tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
107 "AAB_darwin7_9_long_double_funcs";
110 * File name selection pattern
112 tSCC zAab_Darwin7_9_Long_Double_FuncsList[] =
113 "architecture/ppc/math.h\0";
115 * Machine/OS name selection pattern
117 tSCC* apzAab_Darwin7_9_Long_Double_FuncsMachs[] = {
122 * content bypass pattern - skip fix if pattern found
124 tSCC zAab_Darwin7_9_Long_Double_FuncsBypass0[] =
127 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT 1
128 static tTestDesc aAab_Darwin7_9_Long_Double_FuncsTests[] = {
129 { TT_NEGREP, zAab_Darwin7_9_Long_Double_FuncsBypass0, (regex_t*)NULL }, };
132 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs
134 static const char* apzAab_Darwin7_9_Long_Double_FuncsPatch[] = {
135 "/* This file prototypes the long double functions available on Mac OS\n\
138 # undef __APPLE_CC__\n\
139 # define __APPLE_CC__ 1345\n\
140 # include_next <architecture/ppc/math.h>\n\
141 # undef __APPLE_CC__\n\
142 # define __APPLE_CC__ 1\n\
143 # ifndef __LIBMLDBL_COMPAT\n\
144 # ifdef __LONG_DOUBLE_128__\n\
145 # define __LIBMLDBL_COMPAT(sym) __asm(\"_\" #sym \"$LDBL128\")\n\
147 # define __LIBMLDBL_COMPAT(sym)\n\
148 # endif /* __LONG_DOUBLE_128__ */\n\
149 # endif /* __LIBMLDBL_COMPAT */\n\
150 # ifdef __cplusplus\n\
153 extern long double acosl( long double ) __LIBMLDBL_COMPAT(acosl);\n\
154 extern long double asinl( long double ) __LIBMLDBL_COMPAT(asinl);\n\
155 extern long double atanl( long double ) __LIBMLDBL_COMPAT(atanl);\n\
156 extern long double atan2l( long double, long double ) __LIBMLDBL_COMPAT(atan2l);\n\
157 extern long double cosl( long double ) __LIBMLDBL_COMPAT(cosl);\n\
158 extern long double sinl( long double ) __LIBMLDBL_COMPAT(sinl);\n\
159 extern long double tanl( long double ) __LIBMLDBL_COMPAT(tanl);\n\
160 extern long double acoshl( long double ) __LIBMLDBL_COMPAT(acoshl);\n\
161 extern long double asinhl( long double ) __LIBMLDBL_COMPAT(asinhl);\n\
162 extern long double atanhl( long double ) __LIBMLDBL_COMPAT(atanhl);\n\
163 extern long double coshl( long double ) __LIBMLDBL_COMPAT(coshl);\n\
164 extern long double sinhl( long double ) __LIBMLDBL_COMPAT(sinhl);\n\
165 extern long double tanhl( long double ) __LIBMLDBL_COMPAT(tanhl);\n\
166 extern long double expl( long double ) __LIBMLDBL_COMPAT(expl);\n\
167 extern long double exp2l( long double ) __LIBMLDBL_COMPAT(exp2l);\n\
168 extern long double expm1l( long double ) __LIBMLDBL_COMPAT(expm1l);\n\
169 extern long double logl( long double ) __LIBMLDBL_COMPAT(logl);\n\
170 extern long double log10l( long double ) __LIBMLDBL_COMPAT(log10l);\n\
171 extern long double log2l( long double ) __LIBMLDBL_COMPAT(log2l);\n\
172 extern long double log1pl( long double ) __LIBMLDBL_COMPAT(log1pl);\n\
173 extern long double logbl( long double ) __LIBMLDBL_COMPAT(logbl);\n\
174 extern long double modfl( long double, long double * ) __LIBMLDBL_COMPAT(modfl);\n\
175 extern long double ldexpl( long double, int ) __LIBMLDBL_COMPAT(ldexpl);\n\
176 extern long double frexpl( long double, int * ) __LIBMLDBL_COMPAT(frexpl);\n\
177 extern int ilogbl( long double ) __LIBMLDBL_COMPAT(ilogbl);\n\
178 extern long double scalbnl( long double, int ) __LIBMLDBL_COMPAT(scalbnl);\n\
179 extern long double scalblnl( long double, long int ) __LIBMLDBL_COMPAT(scalblnl);\n\
180 extern long double fabsl( long double ) __LIBMLDBL_COMPAT(fabsl);\n\
181 extern long double cbrtl( long double ) __LIBMLDBL_COMPAT(cbrtl);\n\
182 extern long double hypotl( long double, long double ) __LIBMLDBL_COMPAT(hypotl);\n\
183 extern long double powl( long double, long double ) __LIBMLDBL_COMPAT(powl);\n\
184 extern long double sqrtl( long double ) __LIBMLDBL_COMPAT(sqrtl);\n\
185 extern long double erfl( long double ) __LIBMLDBL_COMPAT(erfl);\n\
186 extern long double erfcl( long double ) __LIBMLDBL_COMPAT(erfcl);\n\
187 extern long double lgammal( long double ) __LIBMLDBL_COMPAT(lgammal);\n\
188 extern long double tgammal( long double ) __LIBMLDBL_COMPAT(tgammal);\n\
189 extern long double ceill( long double ) __LIBMLDBL_COMPAT(ceill);\n\
190 extern long double floorl( long double ) __LIBMLDBL_COMPAT(floorl);\n\
191 extern long double nearbyintl( long double ) __LIBMLDBL_COMPAT(nearbyintl);\n\
192 extern long double rintl( long double ) __LIBMLDBL_COMPAT(rintl);\n\
193 extern long int lrintl( long double ) __LIBMLDBL_COMPAT(lrintl);\n\
194 extern long long int llrintl( long double ) __LIBMLDBL_COMPAT(llrintl);\n\
195 extern long double roundl( long double ) __LIBMLDBL_COMPAT(roundl);\n\
196 extern long int lroundl( long double ) __LIBMLDBL_COMPAT(lroundl);\n\
197 extern long long int llroundl( long double ) __LIBMLDBL_COMPAT(llroundl);\n\
198 extern long double truncl( long double ) __LIBMLDBL_COMPAT(truncl);\n\
199 extern long double fmodl( long double, long double) __LIBMLDBL_COMPAT(fmodl);\n\
200 extern long double remainderl( long double, long double ) __LIBMLDBL_COMPAT(remainderl);\n\
201 extern long double remquol( long double, long double, int * ) __LIBMLDBL_COMPAT(remquol);\n\
202 extern long double copysignl( long double, long double ) __LIBMLDBL_COMPAT(copysignl);\n\
203 extern long double nanl( const char * ) __LIBMLDBL_COMPAT(nanl);\n\
204 extern long double nextafterl( long double, long double ) __LIBMLDBL_COMPAT(nextafterl);\n\
205 extern long double nexttowardl( long double, long double ) __LIBMLDBL_COMPAT(nexttowardl);\n\
206 extern long double fdiml( long double, long double ) __LIBMLDBL_COMPAT(fdiml);\n\
207 extern long double fmaxl( long double, long double ) __LIBMLDBL_COMPAT(fmaxl);\n\
208 extern long double fminl( long double, long double ) __LIBMLDBL_COMPAT(fminl);\n\
209 extern long double fmal( long double, long double, long double ) __LIBMLDBL_COMPAT(fmal);\n\
210 # ifdef __cplusplus\n\
213 #endif /* __MATH__ */",
216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
218 * Description of Aab_Darwin7_9_Long_Double_Funcs_2 fix
220 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Name[] =
221 "AAB_darwin7_9_long_double_funcs_2";
224 * File name selection pattern
226 tSCC zAab_Darwin7_9_Long_Double_Funcs_2List[] =
229 * Machine/OS name selection pattern
231 tSCC* apzAab_Darwin7_9_Long_Double_Funcs_2Machs[] = {
236 * content selection pattern - do fix if pattern found
238 tSCC zAab_Darwin7_9_Long_Double_Funcs_2Select0[] =
239 "#include[ \\t]+\\\"";
241 #define AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT 1
242 static tTestDesc aAab_Darwin7_9_Long_Double_Funcs_2Tests[] = {
243 { TT_EGREP, zAab_Darwin7_9_Long_Double_Funcs_2Select0, (regex_t*)NULL }, };
246 * Fix Command Arguments for Aab_Darwin7_9_Long_Double_Funcs_2
248 static const char* apzAab_Darwin7_9_Long_Double_Funcs_2Patch[] = {
251 "([ \\t]*#[ \\t]*include[ \\t]+)\"([a-z0-9/]+)\\.h\"",
254 /* * * * * * * * * * * * * * * * * * * * * * * * * *
256 * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
258 tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
259 "AAB_fd_zero_asm_posix_types_h";
262 * File name selection pattern
264 tSCC zAab_Fd_Zero_Asm_Posix_Types_HList[] =
265 "asm/posix_types.h\0";
267 * Machine/OS name selection pattern
269 tSCC* apzAab_Fd_Zero_Asm_Posix_Types_HMachs[] = {
270 "i[34567]86-*-linux*",
274 * content bypass pattern - skip fix if pattern found
276 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass0[] =
278 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass1[] =
280 tSCC zAab_Fd_Zero_Asm_Posix_Types_HBypass2[] =
283 #define AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT 3
284 static tTestDesc aAab_Fd_Zero_Asm_Posix_Types_HTests[] = {
285 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass0, (regex_t*)NULL },
286 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass1, (regex_t*)NULL },
287 { TT_NEGREP, zAab_Fd_Zero_Asm_Posix_Types_HBypass2, (regex_t*)NULL }, };
290 * Fix Command Arguments for Aab_Fd_Zero_Asm_Posix_Types_H
292 static const char* apzAab_Fd_Zero_Asm_Posix_Types_HPatch[] = {
293 "/* This file fixes a bug in the __FD_ZERO macro\n\
294 for older versions of the Linux kernel. */\n\
295 #ifndef _POSIX_TYPES_H_WRAPPER\n\
296 #include <features.h>\n\
297 #include_next <asm/posix_types.h>\n\n\
298 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
300 #define __FD_ZERO(fdsetp) \\\n\
302 int __d0, __d1; \\\n\
303 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
304 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
305 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
306 \"1\" ((__kernel_fd_set *) (fdsetp)) :\"memory\"); \\\n\
309 #define _POSIX_TYPES_H_WRAPPER\n\
310 #endif /* _POSIX_TYPES_H_WRAPPER */",
313 /* * * * * * * * * * * * * * * * * * * * * * * * * *
315 * Description of Aab_Fd_Zero_Gnu_Types_H fix
317 tSCC zAab_Fd_Zero_Gnu_Types_HName[] =
318 "AAB_fd_zero_gnu_types_h";
321 * File name selection pattern
323 tSCC zAab_Fd_Zero_Gnu_Types_HList[] =
326 * Machine/OS name selection pattern
328 tSCC* apzAab_Fd_Zero_Gnu_Types_HMachs[] = {
329 "i[34567]86-*-linux*",
331 #define AAB_FD_ZERO_GNU_TYPES_H_TEST_CT 0
332 #define aAab_Fd_Zero_Gnu_Types_HTests (tTestDesc*)NULL
335 * Fix Command Arguments for Aab_Fd_Zero_Gnu_Types_H
337 static const char* apzAab_Fd_Zero_Gnu_Types_HPatch[] = {
338 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 1.x. */\n\
339 #ifndef _TYPES_H_WRAPPER\n\
340 #include <features.h>\n\
341 #include_next <gnu/types.h>\n\n\
342 #if defined(__FD_ZERO) && !defined(__GLIBC__)\n\
344 # define __FD_ZERO(fdsetp) \\\n\
346 int __d0, __d1; \\\n\
347 __asm__ __volatile__(\"cld ; rep ; stosl\" \\\n\
348 : \"=&c\" (__d0), \"=&D\" (__d1) \\\n\
349 : \"a\" (0), \"0\" (__FDSET_LONGS), \\\n\
350 \"1\" ((__fd_set *) (fdsetp)) :\"memory\"); \\\n\
353 #define _TYPES_H_WRAPPER\n\
354 #endif /* _TYPES_H_WRAPPER */",
357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
359 * Description of Aab_Fd_Zero_Selectbits_H fix
361 tSCC zAab_Fd_Zero_Selectbits_HName[] =
362 "AAB_fd_zero_selectbits_h";
365 * File name selection pattern
367 tSCC zAab_Fd_Zero_Selectbits_HList[] =
370 * Machine/OS name selection pattern
372 tSCC* apzAab_Fd_Zero_Selectbits_HMachs[] = {
373 "i[34567]86-*-linux*",
375 #define AAB_FD_ZERO_SELECTBITS_H_TEST_CT 0
376 #define aAab_Fd_Zero_Selectbits_HTests (tTestDesc*)NULL
379 * Fix Command Arguments for Aab_Fd_Zero_Selectbits_H
381 static const char* apzAab_Fd_Zero_Selectbits_HPatch[] = {
382 "/* This file fixes a bug in the __FD_ZERO macro present in glibc 2.0.x. */\n\
383 #ifndef _SELECTBITS_H_WRAPPER\n\
384 #include <features.h>\n\
385 #include_next <selectbits.h>\n\n\
386 #if defined(__FD_ZERO) && defined(__GLIBC__) \\\\\n\
387 && defined(__GLIBC_MINOR__) && __GLIBC__ == 2 \\\\\n\
388 && __GLIBC_MINOR__ == 0\n\
390 #define __FD_ZERO(fdsetp) \\\\\n\
392 int __d0, __d1; \\\\\n\
393 __asm__ __volatile__ (\"cld; rep; stosl\" \\\\\n\
394 : \"=&c\" (__d0), \"=&D\" (__d1) \\\\\n\
395 : \"a\" (0), \"0\" (sizeof (__fd_set) \\\\\n\
396 / sizeof (__fd_mask)), \\\\\n\
397 \"1\" ((__fd_mask *) (fdsetp)) \\\\\n\
398 : \"memory\"); \\\\\n\
401 #define _SELECTBITS_H_WRAPPER\n\
402 #endif /* _SELECTBITS_H_WRAPPER */",
405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
407 * Description of Aab_Solaris_Sys_Varargs_H fix
409 tSCC zAab_Solaris_Sys_Varargs_HName[] =
410 "AAB_solaris_sys_varargs_h";
413 * File name selection pattern
415 tSCC zAab_Solaris_Sys_Varargs_HList[] =
418 * Machine/OS name selection pattern
420 tSCC* apzAab_Solaris_Sys_Varargs_HMachs[] = {
423 #define AAB_SOLARIS_SYS_VARARGS_H_TEST_CT 0
424 #define aAab_Solaris_Sys_Varargs_HTests (tTestDesc*)NULL
427 * Fix Command Arguments for Aab_Solaris_Sys_Varargs_H
429 static const char* apzAab_Solaris_Sys_Varargs_HPatch[] = {
431 #include <stdarg.h>\n\
433 #include <varargs.h>\n\
437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
439 * Description of Aab_Sun_Memcpy fix
441 tSCC zAab_Sun_MemcpyName[] =
445 * File name selection pattern
447 tSCC zAab_Sun_MemcpyList[] =
450 * Machine/OS name selection pattern
452 #define apzAab_Sun_MemcpyMachs (const char**)NULL
455 * content selection pattern - do fix if pattern found
457 tSCC zAab_Sun_MemcpySelect0[] =
458 "/\\*\t@\\(#\\)(head/memory.h\t50.1\t |memory\\.h 1\\.[2-4] 8./../.. SMI; from S5R2 1\\.2\t)\\*/";
460 #define AAB_SUN_MEMCPY_TEST_CT 1
461 static tTestDesc aAab_Sun_MemcpyTests[] = {
462 { TT_EGREP, zAab_Sun_MemcpySelect0, (regex_t*)NULL }, };
465 * Fix Command Arguments for Aab_Sun_Memcpy
467 static const char* apzAab_Sun_MemcpyPatch[] = {
468 "/* This file was generated by fixincludes */\n\
469 #ifndef __memory_h__\n\
470 #define __memory_h__\n\n\
472 extern void *memccpy();\n\
473 extern void *memchr();\n\
474 extern void *memcpy();\n\
475 extern void *memset();\n\
477 extern char *memccpy();\n\
478 extern char *memchr();\n\
479 extern char *memcpy();\n\
480 extern char *memset();\n\
481 #endif /* __STDC__ */\n\n\
482 extern int memcmp();\n\n\
483 #endif /* __memory_h__ */",
486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
488 * Description of Aix_Complex fix
490 tSCC zAix_ComplexName[] =
494 * File name selection pattern
496 tSCC zAix_ComplexList[] =
499 * Machine/OS name selection pattern
501 tSCC* apzAix_ComplexMachs[] = {
506 * content selection pattern - do fix if pattern found
508 tSCC zAix_ComplexSelect0[] =
509 "#define[ \t]_Complex_I[ \t]__I";
511 #define AIX_COMPLEX_TEST_CT 1
512 static tTestDesc aAix_ComplexTests[] = {
513 { TT_EGREP, zAix_ComplexSelect0, (regex_t*)NULL }, };
516 * Fix Command Arguments for Aix_Complex
518 static const char* apzAix_ComplexPatch[] = {
520 "#define _Complex_I (__extension__ 1.0iF)",
523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
525 * Description of Aix_Net_If_Arp fix
527 tSCC zAix_Net_If_ArpName[] =
531 * File name selection pattern
533 tSCC zAix_Net_If_ArpList[] =
536 * Machine/OS name selection pattern
538 tSCC* apzAix_Net_If_ArpMachs[] = {
543 * content selection pattern - do fix if pattern found
545 tSCC zAix_Net_If_ArpSelect0[] =
546 "^struct fc_softc \\{";
548 #define AIX_NET_IF_ARP_TEST_CT 1
549 static tTestDesc aAix_Net_If_ArpTests[] = {
550 { TT_EGREP, zAix_Net_If_ArpSelect0, (regex_t*)NULL }, };
553 * Fix Command Arguments for Aix_Net_If_Arp
555 static const char* apzAix_Net_If_ArpPatch[] = {
557 "typedef struct _fc_softc {",
560 /* * * * * * * * * * * * * * * * * * * * * * * * * *
562 * Description of Aix_Pthread fix
564 tSCC zAix_PthreadName[] =
568 * File name selection pattern
570 tSCC zAix_PthreadList[] =
573 * Machine/OS name selection pattern
575 #define apzAix_PthreadMachs (const char**)NULL
578 * content selection pattern - do fix if pattern found
580 tSCC zAix_PthreadSelect0[] =
581 "(#define [A-Za-z_0-9]+)(\\\\\n\
585 #define AIX_PTHREAD_TEST_CT 1
586 static tTestDesc aAix_PthreadTests[] = {
587 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
590 * Fix Command Arguments for Aix_Pthread
592 static const char* apzAix_PthreadPatch[] = {
597 /* * * * * * * * * * * * * * * * * * * * * * * * * *
599 * Description of Aix_Stdint_1 fix
601 tSCC zAix_Stdint_1Name[] =
605 * File name selection pattern
607 tSCC zAix_Stdint_1List[] =
608 "stdint-aix.h\0stdint.h\0";
610 * Machine/OS name selection pattern
612 tSCC* apzAix_Stdint_1Machs[] = {
617 * content selection pattern - do fix if pattern found
619 tSCC zAix_Stdint_1Select0[] =
620 "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
621 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
623 #define AIX_STDINT_1_TEST_CT 1
624 static tTestDesc aAix_Stdint_1Tests[] = {
625 { TT_EGREP, zAix_Stdint_1Select0, (regex_t*)NULL }, };
628 * Fix Command Arguments for Aix_Stdint_1
630 static const char* apzAix_Stdint_1Patch[] = {
632 "#define UINT8_MAX\t(255)\n\
633 #define UINT16_MAX\t(65535)",
636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
638 * Description of Aix_Stdint_2 fix
640 tSCC zAix_Stdint_2Name[] =
644 * File name selection pattern
646 tSCC zAix_Stdint_2List[] =
647 "stdint-aix.h\0stdint.h\0";
649 * Machine/OS name selection pattern
651 tSCC* apzAix_Stdint_2Machs[] = {
656 * content selection pattern - do fix if pattern found
658 tSCC zAix_Stdint_2Select0[] =
659 "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
660 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
661 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
663 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
664 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
665 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
667 #define AIX_STDINT_2_TEST_CT 1
668 static tTestDesc aAix_Stdint_2Tests[] = {
669 { TT_EGREP, zAix_Stdint_2Select0, (regex_t*)NULL }, };
672 * Fix Command Arguments for Aix_Stdint_2
674 static const char* apzAix_Stdint_2Patch[] = {
676 "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
677 #define INTPTR_MAX\t9223372036854775807L\n\
678 #define UINTPTR_MAX\t18446744073709551615UL\n\
680 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
681 #define INTPTR_MAX\t2147483647L\n\
682 #define UINTPTR_MAX\t4294967295UL",
685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
687 * Description of Aix_Stdint_3 fix
689 tSCC zAix_Stdint_3Name[] =
693 * File name selection pattern
695 tSCC zAix_Stdint_3List[] =
696 "stdint-aix.h\0stdint.h\0";
698 * Machine/OS name selection pattern
700 tSCC* apzAix_Stdint_3Machs[] = {
705 * content selection pattern - do fix if pattern found
707 tSCC zAix_Stdint_3Select0[] =
708 "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
709 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
711 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
712 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
714 #define AIX_STDINT_3_TEST_CT 1
715 static tTestDesc aAix_Stdint_3Tests[] = {
716 { TT_EGREP, zAix_Stdint_3Select0, (regex_t*)NULL }, };
719 * Fix Command Arguments for Aix_Stdint_3
721 static const char* apzAix_Stdint_3Patch[] = {
723 "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
724 #define PTRDIFF_MAX\t9223372036854775807L\n\
726 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
727 #define PTRDIFF_MAX\t2147483647L",
730 /* * * * * * * * * * * * * * * * * * * * * * * * * *
732 * Description of Aix_Stdint_4 fix
734 tSCC zAix_Stdint_4Name[] =
738 * File name selection pattern
740 tSCC zAix_Stdint_4List[] =
741 "stdint-aix.h\0stdint.h\0";
743 * Machine/OS name selection pattern
745 tSCC* apzAix_Stdint_4Machs[] = {
750 * content selection pattern - do fix if pattern found
752 tSCC zAix_Stdint_4Select0[] =
753 "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
755 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
757 #define AIX_STDINT_4_TEST_CT 1
758 static tTestDesc aAix_Stdint_4Tests[] = {
759 { TT_EGREP, zAix_Stdint_4Select0, (regex_t*)NULL }, };
762 * Fix Command Arguments for Aix_Stdint_4
764 static const char* apzAix_Stdint_4Patch[] = {
766 "#define SIZE_MAX\t18446744073709551615UL\n\
768 #define SIZE_MAX\t4294967295UL",
771 /* * * * * * * * * * * * * * * * * * * * * * * * * *
773 * Description of Aix_Stdint_5 fix
775 tSCC zAix_Stdint_5Name[] =
779 * File name selection pattern
781 tSCC zAix_Stdint_5List[] =
782 "stdint-aix.h\0stdint.h\0";
784 * Machine/OS name selection pattern
786 tSCC* apzAix_Stdint_5Machs[] = {
791 * content selection pattern - do fix if pattern found
793 tSCC zAix_Stdint_5Select0[] =
794 "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
795 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
797 #define AIX_STDINT_5_TEST_CT 1
798 static tTestDesc aAix_Stdint_5Tests[] = {
799 { TT_EGREP, zAix_Stdint_5Select0, (regex_t*)NULL }, };
802 * Fix Command Arguments for Aix_Stdint_5
804 static const char* apzAix_Stdint_5Patch[] = {
806 "#define UINT8_C(c)\tc\n\
807 #define UINT16_C(c)\tc",
810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
812 * Description of Aix_Sysmachine fix
814 tSCC zAix_SysmachineName[] =
818 * File name selection pattern
820 tSCC zAix_SysmachineList[] =
823 * Machine/OS name selection pattern
825 #define apzAix_SysmachineMachs (const char**)NULL
828 * content selection pattern - do fix if pattern found
830 tSCC zAix_SysmachineSelect0[] =
833 #define AIX_SYSMACHINE_TEST_CT 1
834 static tTestDesc aAix_SysmachineTests[] = {
835 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
838 * Fix Command Arguments for Aix_Sysmachine
840 static const char* apzAix_SysmachinePatch[] = {
845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
847 * Description of Aix_Syswait_2 fix
849 tSCC zAix_Syswait_2Name[] =
853 * File name selection pattern
855 tSCC zAix_Syswait_2List[] =
858 * Machine/OS name selection pattern
860 #define apzAix_Syswait_2Machs (const char**)NULL
863 * content selection pattern - do fix if pattern found
865 tSCC zAix_Syswait_2Select0[] =
866 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
868 #define AIX_SYSWAIT_2_TEST_CT 1
869 static tTestDesc aAix_Syswait_2Tests[] = {
870 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
873 * Fix Command Arguments for Aix_Syswait_2
875 static const char* apzAix_Syswait_2Patch[] = {
880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
882 * Description of Aix_Volatile fix
884 tSCC zAix_VolatileName[] =
888 * File name selection pattern
890 tSCC zAix_VolatileList[] =
893 * Machine/OS name selection pattern
895 #define apzAix_VolatileMachs (const char**)NULL
898 * content selection pattern - do fix if pattern found
900 tSCC zAix_VolatileSelect0[] =
901 "typedef volatile int sig_atomic_t";
903 #define AIX_VOLATILE_TEST_CT 1
904 static tTestDesc aAix_VolatileTests[] = {
905 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
908 * Fix Command Arguments for Aix_Volatile
910 static const char* apzAix_VolatilePatch[] = {
912 "typedef int sig_atomic_t",
915 /* * * * * * * * * * * * * * * * * * * * * * * * * *
917 * Description of Alpha___Assert fix
919 tSCC zAlpha___AssertName[] =
923 * File name selection pattern
925 tSCC zAlpha___AssertList[] =
928 * Machine/OS name selection pattern
930 #define apzAlpha___AssertMachs (const char**)NULL
933 * content selection pattern - do fix if pattern found
935 tSCC zAlpha___AssertSelect0[] =
936 "__assert\\(char \\*, char \\*, int\\)";
938 #define ALPHA___ASSERT_TEST_CT 1
939 static tTestDesc aAlpha___AssertTests[] = {
940 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
943 * Fix Command Arguments for Alpha___Assert
945 static const char* apzAlpha___AssertPatch[] = {
947 "__assert(const char *, const char *, int)",
950 /* * * * * * * * * * * * * * * * * * * * * * * * * *
952 * Description of Alpha___Extern_Prefix fix
954 tSCC zAlpha___Extern_PrefixName[] =
955 "alpha___extern_prefix";
958 * File name selection pattern
960 #define zAlpha___Extern_PrefixList (char*)NULL
962 * Machine/OS name selection pattern
964 tSCC* apzAlpha___Extern_PrefixMachs[] = {
969 * content selection pattern - do fix if pattern found
971 tSCC zAlpha___Extern_PrefixSelect0[] =
972 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
973 (#[ \t]*pragma[ \t]*extern_prefix.*)";
975 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
976 static tTestDesc aAlpha___Extern_PrefixTests[] = {
977 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
980 * Fix Command Arguments for Alpha___Extern_Prefix
982 static const char* apzAlpha___Extern_PrefixPatch[] = {
984 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
988 /* * * * * * * * * * * * * * * * * * * * * * * * * *
990 * Description of Alpha___Extern_Prefix_Standards fix
992 tSCC zAlpha___Extern_Prefix_StandardsName[] =
993 "alpha___extern_prefix_standards";
996 * File name selection pattern
998 tSCC zAlpha___Extern_Prefix_StandardsList[] =
1001 * Machine/OS name selection pattern
1003 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
1005 (const char*)NULL };
1008 * content selection pattern - do fix if pattern found
1010 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
1011 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
1013 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
1014 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
1015 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
1018 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
1020 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
1022 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
1025 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1027 * Description of Alpha___Extern_Prefix_Sys_Stat fix
1029 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
1030 "alpha___extern_prefix_sys_stat";
1033 * File name selection pattern
1035 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
1036 "sys/stat.h\0sys/mount.h\0";
1038 * Machine/OS name selection pattern
1040 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
1042 (const char*)NULL };
1045 * content selection pattern - do fix if pattern found
1047 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1048 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1050 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
1051 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1052 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1055 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1057 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1059 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1062 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1064 * Description of Alpha_Assert fix
1066 tSCC zAlpha_AssertName[] =
1070 * File name selection pattern
1072 tSCC zAlpha_AssertList[] =
1075 * Machine/OS name selection pattern
1077 #define apzAlpha_AssertMachs (const char**)NULL
1080 * content selection pattern - do fix if pattern found
1082 tSCC zAlpha_AssertSelect0[] =
1083 "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1085 #define ALPHA_ASSERT_TEST_CT 1
1086 static tTestDesc aAlpha_AssertTests[] = {
1087 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1090 * Fix Command Arguments for Alpha_Assert
1092 static const char* apzAlpha_AssertPatch[] = {
1097 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1099 * Description of Alpha_Bad_Lval fix
1101 tSCC zAlpha_Bad_LvalName[] =
1105 * File name selection pattern
1107 #define zAlpha_Bad_LvalList (char*)NULL
1109 * Machine/OS name selection pattern
1111 tSCC* apzAlpha_Bad_LvalMachs[] = {
1113 (const char*)NULL };
1116 * content selection pattern - do fix if pattern found
1118 tSCC zAlpha_Bad_LvalSelect0[] =
1119 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1121 #define ALPHA_BAD_LVAL_TEST_CT 1
1122 static tTestDesc aAlpha_Bad_LvalTests[] = {
1123 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1126 * Fix Command Arguments for Alpha_Bad_Lval
1128 static const char* apzAlpha_Bad_LvalPatch[] = { sed_cmd_z,
1129 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1132 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1134 * Description of Alpha_Getopt fix
1136 tSCC zAlpha_GetoptName[] =
1140 * File name selection pattern
1142 tSCC zAlpha_GetoptList[] =
1143 "stdio.h\0stdlib.h\0";
1145 * Machine/OS name selection pattern
1147 #define apzAlpha_GetoptMachs (const char**)NULL
1150 * content selection pattern - do fix if pattern found
1152 tSCC zAlpha_GetoptSelect0[] =
1153 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1155 #define ALPHA_GETOPT_TEST_CT 1
1156 static tTestDesc aAlpha_GetoptTests[] = {
1157 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1160 * Fix Command Arguments for Alpha_Getopt
1162 static const char* apzAlpha_GetoptPatch[] = {
1164 "getopt(int, char *const[], const char *)",
1167 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1169 * Description of Alpha_If_Semicolon fix
1171 tSCC zAlpha_If_SemicolonName[] =
1172 "alpha_if_semicolon";
1175 * File name selection pattern
1177 tSCC zAlpha_If_SemicolonList[] =
1180 * Machine/OS name selection pattern
1182 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1185 * content selection pattern - do fix if pattern found
1187 tSCC zAlpha_If_SemicolonSelect0[] =
1188 "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1190 #define ALPHA_IF_SEMICOLON_TEST_CT 1
1191 static tTestDesc aAlpha_If_SemicolonTests[] = {
1192 { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1195 * Fix Command Arguments for Alpha_If_Semicolon
1197 static const char* apzAlpha_If_SemicolonPatch[] = {
1199 "struct sockaddr vmif_paddr;\t/*",
1202 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1204 * Description of Alpha_Parens fix
1206 tSCC zAlpha_ParensName[] =
1210 * File name selection pattern
1212 tSCC zAlpha_ParensList[] =
1215 * Machine/OS name selection pattern
1217 #define apzAlpha_ParensMachs (const char**)NULL
1220 * content selection pattern - do fix if pattern found
1222 tSCC zAlpha_ParensSelect0[] =
1223 "#ifndef\\(__mips64\\)";
1225 #define ALPHA_PARENS_TEST_CT 1
1226 static tTestDesc aAlpha_ParensTests[] = {
1227 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1230 * Fix Command Arguments for Alpha_Parens
1232 static const char* apzAlpha_ParensPatch[] = {
1237 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1239 * Description of Alpha_Pthread fix
1241 tSCC zAlpha_PthreadName[] =
1245 * File name selection pattern
1247 tSCC zAlpha_PthreadList[] =
1250 * Machine/OS name selection pattern
1252 tSCC* apzAlpha_PthreadMachs[] = {
1254 (const char*)NULL };
1257 * content selection pattern - do fix if pattern found
1259 tSCC zAlpha_PthreadSelect0[] =
1260 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1261 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1263 #define ALPHA_PTHREAD_TEST_CT 1
1264 static tTestDesc aAlpha_PthreadTests[] = {
1265 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1268 * Fix Command Arguments for Alpha_Pthread
1270 static const char* apzAlpha_PthreadPatch[] = {
1272 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1276 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1278 * Description of Alpha_Pthread_Gcc fix
1280 tSCC zAlpha_Pthread_GccName[] =
1281 "alpha_pthread_gcc";
1284 * File name selection pattern
1286 tSCC zAlpha_Pthread_GccList[] =
1289 * Machine/OS name selection pattern
1291 tSCC* apzAlpha_Pthread_GccMachs[] = {
1293 (const char*)NULL };
1296 * content selection pattern - do fix if pattern found
1298 tSCC zAlpha_Pthread_GccSelect0[] =
1300 # error <pthread.h>: unrecognized compiler.";
1302 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1303 static tTestDesc aAlpha_Pthread_GccTests[] = {
1304 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1307 * Fix Command Arguments for Alpha_Pthread_Gcc
1309 static const char* apzAlpha_Pthread_GccPatch[] = {
1311 "#elif defined (__GNUC__)\n\
1312 # define _PTHREAD_ENV_GCC\n\
1316 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1318 * Description of Alpha_Pthread_Init fix
1320 tSCC zAlpha_Pthread_InitName[] =
1321 "alpha_pthread_init";
1324 * File name selection pattern
1326 tSCC zAlpha_Pthread_InitList[] =
1329 * Machine/OS name selection pattern
1331 tSCC* apzAlpha_Pthread_InitMachs[] = {
1333 (const char*)NULL };
1336 * content selection pattern - do fix if pattern found
1338 tSCC zAlpha_Pthread_InitSelect0[] =
1339 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1341 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1342 static tTestDesc aAlpha_Pthread_InitTests[] = {
1343 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1346 * Fix Command Arguments for Alpha_Pthread_Init
1348 static const char* apzAlpha_Pthread_InitPatch[] = { sed_cmd_z,
1349 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1350 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1351 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1352 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1353 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1354 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1357 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1359 * Description of Alpha_Sbrk fix
1361 tSCC zAlpha_SbrkName[] =
1365 * File name selection pattern
1367 tSCC zAlpha_SbrkList[] =
1370 * Machine/OS name selection pattern
1372 #define apzAlpha_SbrkMachs (const char**)NULL
1375 * content selection pattern - do fix if pattern found
1377 tSCC zAlpha_SbrkSelect0[] =
1378 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1380 #define ALPHA_SBRK_TEST_CT 1
1381 static tTestDesc aAlpha_SbrkTests[] = {
1382 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1385 * Fix Command Arguments for Alpha_Sbrk
1387 static const char* apzAlpha_SbrkPatch[] = {
1392 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1394 * Description of Avoid_Bool_Define fix
1396 tSCC zAvoid_Bool_DefineName[] =
1397 "avoid_bool_define";
1400 * File name selection pattern
1402 tSCC zAvoid_Bool_DefineList[] =
1403 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1405 * Machine/OS name selection pattern
1407 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1410 * content selection pattern - do fix if pattern found
1412 tSCC zAvoid_Bool_DefineSelect0[] =
1413 "#[ \t]*define[ \t]+bool[ \t]";
1416 * content bypass pattern - skip fix if pattern found
1418 tSCC zAvoid_Bool_DefineBypass0[] =
1421 #define AVOID_BOOL_DEFINE_TEST_CT 2
1422 static tTestDesc aAvoid_Bool_DefineTests[] = {
1423 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1424 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1427 * Fix Command Arguments for Avoid_Bool_Define
1429 static const char* apzAvoid_Bool_DefinePatch[] = {
1431 "#ifndef __cplusplus\n\
1434 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1439 * Description of Avoid_Bool_Type fix
1441 tSCC zAvoid_Bool_TypeName[] =
1445 * File name selection pattern
1447 tSCC zAvoid_Bool_TypeList[] =
1448 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1450 * Machine/OS name selection pattern
1452 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1455 * content selection pattern - do fix if pattern found
1457 tSCC zAvoid_Bool_TypeSelect0[] =
1458 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1461 * content bypass pattern - skip fix if pattern found
1463 tSCC zAvoid_Bool_TypeBypass0[] =
1466 #define AVOID_BOOL_TYPE_TEST_CT 2
1467 static tTestDesc aAvoid_Bool_TypeTests[] = {
1468 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1469 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1472 * Fix Command Arguments for Avoid_Bool_Type
1474 static const char* apzAvoid_Bool_TypePatch[] = {
1476 "#ifndef __cplusplus\n\
1481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1483 * Description of Avoid_Wchar_T_Type fix
1485 tSCC zAvoid_Wchar_T_TypeName[] =
1486 "avoid_wchar_t_type";
1489 * File name selection pattern
1491 #define zAvoid_Wchar_T_TypeList (char*)NULL
1493 * Machine/OS name selection pattern
1495 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1498 * content selection pattern - do fix if pattern found
1500 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1501 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1504 * content bypass pattern - skip fix if pattern found
1506 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1508 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1510 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1511 "XFree86: xc/lib/X11/Xlib\\.h";
1513 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1514 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1515 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1516 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1517 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1518 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1521 * Fix Command Arguments for Avoid_Wchar_T_Type
1523 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1525 "#ifndef __cplusplus\n\
1530 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1532 * Description of Bad_Struct_Term fix
1534 tSCC zBad_Struct_TermName[] =
1538 * File name selection pattern
1540 tSCC zBad_Struct_TermList[] =
1543 * Machine/OS name selection pattern
1545 #define apzBad_Struct_TermMachs (const char**)NULL
1548 * content selection pattern - do fix if pattern found
1550 tSCC zBad_Struct_TermSelect0[] =
1551 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1553 #define BAD_STRUCT_TERM_TEST_CT 1
1554 static tTestDesc aBad_Struct_TermTests[] = {
1555 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1558 * Fix Command Arguments for Bad_Struct_Term
1560 static const char* apzBad_Struct_TermPatch[] = {
1565 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1567 * Description of Badquote fix
1569 tSCC zBadquoteName[] =
1573 * File name selection pattern
1575 tSCC zBadquoteList[] =
1576 "sundev/vuid_event.h\0";
1578 * Machine/OS name selection pattern
1580 #define apzBadquoteMachs (const char**)NULL
1583 * content selection pattern - do fix if pattern found
1585 tSCC zBadquoteSelect0[] =
1588 #define BADQUOTE_TEST_CT 1
1589 static tTestDesc aBadquoteTests[] = {
1590 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1593 * Fix Command Arguments for Badquote
1595 static const char* apzBadquotePatch[] = {
1600 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1602 * Description of Broken_Assert_Stdio fix
1604 tSCC zBroken_Assert_StdioName[] =
1605 "broken_assert_stdio";
1608 * File name selection pattern
1610 tSCC zBroken_Assert_StdioList[] =
1613 * Machine/OS name selection pattern
1615 #define apzBroken_Assert_StdioMachs (const char**)NULL
1618 * content selection pattern - do fix if pattern found
1620 tSCC zBroken_Assert_StdioSelect0[] =
1624 * content bypass pattern - skip fix if pattern found
1626 tSCC zBroken_Assert_StdioBypass0[] =
1627 "include.*stdio\\.h";
1629 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1630 static tTestDesc aBroken_Assert_StdioTests[] = {
1631 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1632 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1635 * Fix Command Arguments for Broken_Assert_Stdio
1637 static const char* apzBroken_Assert_StdioPatch[] = {
1639 "#include <stdio.h>\n",
1642 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1644 * Description of Broken_Assert_Stdlib fix
1646 tSCC zBroken_Assert_StdlibName[] =
1647 "broken_assert_stdlib";
1650 * File name selection pattern
1652 tSCC zBroken_Assert_StdlibList[] =
1655 * Machine/OS name selection pattern
1657 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1660 * content selection pattern - do fix if pattern found
1662 tSCC zBroken_Assert_StdlibSelect0[] =
1663 "exit *\\(|abort *\\(";
1666 * content bypass pattern - skip fix if pattern found
1668 tSCC zBroken_Assert_StdlibBypass0[] =
1669 "include.*stdlib\\.h";
1671 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1672 static tTestDesc aBroken_Assert_StdlibTests[] = {
1673 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1674 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1677 * Fix Command Arguments for Broken_Assert_Stdlib
1679 static const char* apzBroken_Assert_StdlibPatch[] = {
1681 "#ifdef __cplusplus\n\
1682 #include <stdlib.h>\n\
1686 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1688 * Description of Broken_Cabs fix
1690 tSCC zBroken_CabsName[] =
1694 * File name selection pattern
1696 tSCC zBroken_CabsList[] =
1697 "math.h\0architecture/*/math.h\0";
1699 * Machine/OS name selection pattern
1701 #define apzBroken_CabsMachs (const char**)NULL
1704 * content selection pattern - do fix if pattern found
1706 tSCC zBroken_CabsSelect0[] =
1707 "^extern[ \t]+double[ \t]+cabs";
1709 #define BROKEN_CABS_TEST_CT 1
1710 static tTestDesc aBroken_CabsTests[] = {
1711 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1714 * Fix Command Arguments for Broken_Cabs
1716 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1717 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1718 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1723 * Description of Broken_Nan fix
1725 tSCC zBroken_NanName[] =
1729 * File name selection pattern
1731 tSCC zBroken_NanList[] =
1732 "architecture/ppc/math.h\0architecture/*/math.h\0";
1734 * Machine/OS name selection pattern
1736 #define apzBroken_NanMachs (const char**)NULL
1739 * content selection pattern - do fix if pattern found
1741 tSCC zBroken_NanSelect0[] =
1742 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1745 * content bypass pattern - skip fix if pattern found
1747 tSCC zBroken_NanBypass0[] =
1750 #define BROKEN_NAN_TEST_CT 2
1751 static tTestDesc aBroken_NanTests[] = {
1752 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1753 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1756 * Fix Command Arguments for Broken_Nan
1758 static const char* apzBroken_NanPatch[] = {
1763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1765 * Description of Bsd_Stdio_Attrs_Conflict fix
1767 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1768 "bsd_stdio_attrs_conflict";
1771 * File name selection pattern
1773 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1776 * Machine/OS name selection pattern
1778 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1781 (const char*)NULL };
1784 * content selection pattern - do fix if pattern found
1786 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1787 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1789 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1790 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1791 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1794 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1796 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1798 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1799 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1800 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1803 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1805 * Description of Ctrl_Quotes_Def fix
1807 tSCC zCtrl_Quotes_DefName[] =
1811 * File name selection pattern
1813 #define zCtrl_Quotes_DefList (char*)NULL
1815 * Machine/OS name selection pattern
1817 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1820 * content selection pattern - do fix if pattern found
1822 tSCC zCtrl_Quotes_DefSelect0[] =
1823 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1825 #define CTRL_QUOTES_DEF_TEST_CT 1
1826 static tTestDesc aCtrl_Quotes_DefTests[] = {
1827 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1830 * Fix Command Arguments for Ctrl_Quotes_Def
1832 static const char* apzCtrl_Quotes_DefPatch[] = {
1837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1839 * Description of Ctrl_Quotes_Use fix
1841 tSCC zCtrl_Quotes_UseName[] =
1845 * File name selection pattern
1847 #define zCtrl_Quotes_UseList (char*)NULL
1849 * Machine/OS name selection pattern
1851 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1854 * content selection pattern - do fix if pattern found
1856 tSCC zCtrl_Quotes_UseSelect0[] =
1857 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1859 #define CTRL_QUOTES_USE_TEST_CT 1
1860 static tTestDesc aCtrl_Quotes_UseTests[] = {
1861 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1864 * Fix Command Arguments for Ctrl_Quotes_Use
1866 static const char* apzCtrl_Quotes_UsePatch[] = {
1871 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1873 * Description of Cxx_Unready fix
1875 tSCC zCxx_UnreadyName[] =
1879 * File name selection pattern
1881 tSCC zCxx_UnreadyList[] =
1882 "sys/mman.h\0rpc/types.h\0";
1884 * Machine/OS name selection pattern
1886 #define apzCxx_UnreadyMachs (const char**)NULL
1889 * content selection pattern - do fix if pattern found
1891 tSCC zCxx_UnreadySelect0[] =
1895 * content bypass pattern - skip fix if pattern found
1897 tSCC zCxx_UnreadyBypass0[] =
1898 "\"C\"|__BEGIN_DECLS";
1900 #define CXX_UNREADY_TEST_CT 2
1901 static tTestDesc aCxx_UnreadyTests[] = {
1902 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1903 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1906 * Fix Command Arguments for Cxx_Unready
1908 static const char* apzCxx_UnreadyPatch[] = {
1910 "#ifdef __cplusplus\n\
1913 "#ifdef __cplusplus\n\
1918 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1920 * Description of Darwin_Externc fix
1922 tSCC zDarwin_ExterncName[] =
1926 * File name selection pattern
1928 tSCC zDarwin_ExterncList[] =
1929 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
1931 * Machine/OS name selection pattern
1933 tSCC* apzDarwin_ExterncMachs[] = {
1935 (const char*)NULL };
1938 * content bypass pattern - skip fix if pattern found
1940 tSCC zDarwin_ExterncBypass0[] =
1942 tSCC zDarwin_ExterncBypass1[] =
1945 #define DARWIN_EXTERNC_TEST_CT 2
1946 static tTestDesc aDarwin_ExterncTests[] = {
1947 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
1948 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
1951 * Fix Command Arguments for Darwin_Externc
1953 static const char* apzDarwin_ExterncPatch[] = {
1955 "#ifdef __cplusplus\n\
1958 "#ifdef __cplusplus\n\
1963 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1965 * Description of Darwin_Gcc4_Breakage fix
1967 tSCC zDarwin_Gcc4_BreakageName[] =
1968 "darwin_gcc4_breakage";
1971 * File name selection pattern
1973 tSCC zDarwin_Gcc4_BreakageList[] =
1974 "AvailabilityMacros.h\0";
1976 * Machine/OS name selection pattern
1978 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
1980 (const char*)NULL };
1983 * content selection pattern - do fix if pattern found
1985 tSCC zDarwin_Gcc4_BreakageSelect0[] =
1986 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
1988 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
1989 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
1990 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
1993 * Fix Command Arguments for Darwin_Gcc4_Breakage
1995 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
1997 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2000 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2002 * Description of Darwin_Private_Extern fix
2004 tSCC zDarwin_Private_ExternName[] =
2005 "darwin_private_extern";
2008 * File name selection pattern
2010 tSCC zDarwin_Private_ExternList[] =
2013 * Machine/OS name selection pattern
2015 tSCC* apzDarwin_Private_ExternMachs[] = {
2017 (const char*)NULL };
2020 * content selection pattern - do fix if pattern found
2022 tSCC zDarwin_Private_ExternSelect0[] =
2023 "__private_extern__ [a-z_]+ _dyld_";
2025 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
2026 static tTestDesc aDarwin_Private_ExternTests[] = {
2027 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2030 * Fix Command Arguments for Darwin_Private_Extern
2032 static const char* apzDarwin_Private_ExternPatch[] = {
2035 "__private_extern__",
2038 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2040 * Description of Darwin_Stdint_1 fix
2042 tSCC zDarwin_Stdint_1Name[] =
2046 * File name selection pattern
2048 tSCC zDarwin_Stdint_1List[] =
2049 "stdint-darwin.h\0stdint.h\0";
2051 * Machine/OS name selection pattern
2053 tSCC* apzDarwin_Stdint_1Machs[] = {
2055 (const char*)NULL };
2058 * content selection pattern - do fix if pattern found
2060 tSCC zDarwin_Stdint_1Select0[] =
2061 "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2062 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2064 #define DARWIN_STDINT_1_TEST_CT 1
2065 static tTestDesc aDarwin_Stdint_1Tests[] = {
2066 { TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2069 * Fix Command Arguments for Darwin_Stdint_1
2071 static const char* apzDarwin_Stdint_1Patch[] = {
2073 "#define UINT8_C(v)\tv\n\
2074 #define UINT16_C(v)\tv",
2077 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2079 * Description of Darwin_Stdint_2 fix
2081 tSCC zDarwin_Stdint_2Name[] =
2085 * File name selection pattern
2087 tSCC zDarwin_Stdint_2List[] =
2088 "stdint-darwin.h\0stdint.h\0";
2090 * Machine/OS name selection pattern
2092 tSCC* apzDarwin_Stdint_2Machs[] = {
2094 (const char*)NULL };
2097 * content selection pattern - do fix if pattern found
2099 tSCC zDarwin_Stdint_2Select0[] =
2100 "#if __WORDSIZE == 64\n\
2101 #define INTPTR_MIN[ \t]+INT64_MIN\n\
2102 #define INTPTR_MAX[ \t]+INT64_MAX\n\
2104 #define INTPTR_MIN[ \t]+INT32_MIN\n\
2105 #define INTPTR_MAX[ \t]+INT32_MAX\n\
2108 #define DARWIN_STDINT_2_TEST_CT 1
2109 static tTestDesc aDarwin_Stdint_2Tests[] = {
2110 { TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
2113 * Fix Command Arguments for Darwin_Stdint_2
2115 static const char* apzDarwin_Stdint_2Patch[] = {
2117 "#if __WORDSIZE == 64\n\
2118 #define INTPTR_MAX 9223372036854775807L\n\
2119 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2121 #define INTPTR_MAX 2147483647L\n\
2122 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2126 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2128 * Description of Darwin_Stdint_3 fix
2130 tSCC zDarwin_Stdint_3Name[] =
2134 * File name selection pattern
2136 tSCC zDarwin_Stdint_3List[] =
2137 "stdint-darwin.h\0stdint.h\0";
2139 * Machine/OS name selection pattern
2141 tSCC* apzDarwin_Stdint_3Machs[] = {
2143 (const char*)NULL };
2146 * content selection pattern - do fix if pattern found
2148 tSCC zDarwin_Stdint_3Select0[] =
2149 "#if __WORDSIZE == 64\n\
2150 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2152 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2155 #define DARWIN_STDINT_3_TEST_CT 1
2156 static tTestDesc aDarwin_Stdint_3Tests[] = {
2157 { TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2160 * Fix Command Arguments for Darwin_Stdint_3
2162 static const char* apzDarwin_Stdint_3Patch[] = {
2164 "#if __WORDSIZE == 64\n\
2165 #define UINTPTR_MAX 18446744073709551615UL\n\
2167 #define UINTPTR_MAX 4294967295UL\n\
2171 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2173 * Description of Darwin_Stdint_4 fix
2175 tSCC zDarwin_Stdint_4Name[] =
2179 * File name selection pattern
2181 tSCC zDarwin_Stdint_4List[] =
2182 "stdint-darwin.h\0stdint.h\0";
2184 * Machine/OS name selection pattern
2186 tSCC* apzDarwin_Stdint_4Machs[] = {
2188 (const char*)NULL };
2191 * content selection pattern - do fix if pattern found
2193 tSCC zDarwin_Stdint_4Select0[] =
2194 "#if __WORDSIZE == 64\n\
2195 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2197 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2200 #define DARWIN_STDINT_4_TEST_CT 1
2201 static tTestDesc aDarwin_Stdint_4Tests[] = {
2202 { TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2205 * Fix Command Arguments for Darwin_Stdint_4
2207 static const char* apzDarwin_Stdint_4Patch[] = {
2209 "#if __WORDSIZE == 64\n\
2210 #define SIZE_MAX 18446744073709551615UL\n\
2212 #define SIZE_MAX 4294967295UL\n\
2216 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2218 * Description of Darwin_Stdint_5 fix
2220 tSCC zDarwin_Stdint_5Name[] =
2224 * File name selection pattern
2226 tSCC zDarwin_Stdint_5List[] =
2227 "stdint-darwin.h\0stdint.h\0";
2229 * Machine/OS name selection pattern
2231 tSCC* apzDarwin_Stdint_5Machs[] = {
2233 (const char*)NULL };
2236 * content selection pattern - do fix if pattern found
2238 tSCC zDarwin_Stdint_5Select0[] =
2239 "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2240 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2241 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2243 #define DARWIN_STDINT_5_TEST_CT 1
2244 static tTestDesc aDarwin_Stdint_5Tests[] = {
2245 { TT_EGREP, zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2248 * Fix Command Arguments for Darwin_Stdint_5
2250 static const char* apzDarwin_Stdint_5Patch[] = {
2252 "#if __WORDSIZE == 64\n\
2253 #define INTMAX_MIN (-9223372036854775807L - 1)\n\
2254 #define INTMAX_MAX 9223372036854775807L\n\
2255 #define UINTMAX_MAX 18446744073709551615UL\n\
2257 #define INTMAX_MIN (-9223372036854775807LL - 1)\n\
2258 #define INTMAX_MAX 9223372036854775807LL\n\
2259 #define UINTMAX_MAX 18446744073709551615ULL\n\
2263 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2265 * Description of Darwin_Stdint_6 fix
2267 tSCC zDarwin_Stdint_6Name[] =
2271 * File name selection pattern
2273 tSCC zDarwin_Stdint_6List[] =
2274 "stdint-darwin.h\0stdint.h\0";
2276 * Machine/OS name selection pattern
2278 tSCC* apzDarwin_Stdint_6Machs[] = {
2280 (const char*)NULL };
2283 * content selection pattern - do fix if pattern found
2285 tSCC zDarwin_Stdint_6Select0[] =
2286 "#if __WORDSIZE == 64\n\
2287 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2288 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2290 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2291 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2294 #define DARWIN_STDINT_6_TEST_CT 1
2295 static tTestDesc aDarwin_Stdint_6Tests[] = {
2296 { TT_EGREP, zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2299 * Fix Command Arguments for Darwin_Stdint_6
2301 static const char* apzDarwin_Stdint_6Patch[] = {
2303 "#if __WORDSIZE == 64\n\
2304 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2305 #define PTRDIFF_MAX 9223372036854775807L\n\
2307 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2308 #define PTRDIFF_MAX 2147483647\n\
2312 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2314 * Description of Darwin_Stdint_7 fix
2316 tSCC zDarwin_Stdint_7Name[] =
2320 * File name selection pattern
2322 tSCC zDarwin_Stdint_7List[] =
2323 "stdint-darwin.h\0stdint.h\0";
2325 * Machine/OS name selection pattern
2327 tSCC* apzDarwin_Stdint_7Machs[] = {
2329 (const char*)NULL };
2332 * content selection pattern - do fix if pattern found
2334 tSCC zDarwin_Stdint_7Select0[] =
2335 "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2336 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2338 #define DARWIN_STDINT_7_TEST_CT 1
2339 static tTestDesc aDarwin_Stdint_7Tests[] = {
2340 { TT_EGREP, zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2343 * Fix Command Arguments for Darwin_Stdint_7
2345 static const char* apzDarwin_Stdint_7Patch[] = {
2347 "#if __WORDSIZE == 64\n\
2348 #define INTMAX_C(v) (v ## L)\n\
2349 #define UINTMAX_C(v) (v ## UL)\n\
2351 #define INTMAX_C(v) (v ## LL)\n\
2352 #define UINTMAX_C(v) (v ## ULL)\n\
2356 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2358 * Description of Dec_Intern_Asm fix
2360 tSCC zDec_Intern_AsmName[] =
2364 * File name selection pattern
2366 tSCC zDec_Intern_AsmList[] =
2369 * Machine/OS name selection pattern
2371 #define apzDec_Intern_AsmMachs (const char**)NULL
2372 #define DEC_INTERN_ASM_TEST_CT 0
2373 #define aDec_Intern_AsmTests (tTestDesc*)NULL
2376 * Fix Command Arguments for Dec_Intern_Asm
2378 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2379 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2381 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2385 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2387 * Description of Djgpp_Wchar_H fix
2389 tSCC zDjgpp_Wchar_HName[] =
2393 * File name selection pattern
2395 #define zDjgpp_Wchar_HList (char*)NULL
2397 * Machine/OS name selection pattern
2399 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2402 * content selection pattern - do fix if pattern found
2404 tSCC zDjgpp_Wchar_HSelect0[] =
2408 * content bypass pattern - skip fix if pattern found
2410 tSCC zDjgpp_Wchar_HBypass0[] =
2413 #define DJGPP_WCHAR_H_TEST_CT 2
2414 static tTestDesc aDjgpp_Wchar_HTests[] = {
2415 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2416 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2419 * Fix Command Arguments for Djgpp_Wchar_H
2421 static const char* apzDjgpp_Wchar_HPatch[] = {
2424 #include <sys/djtypes.h>",
2425 "#include <stddef.h>",
2428 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2430 * Description of Ecd_Cursor fix
2432 tSCC zEcd_CursorName[] =
2436 * File name selection pattern
2438 tSCC zEcd_CursorList[] =
2439 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2441 * Machine/OS name selection pattern
2443 #define apzEcd_CursorMachs (const char**)NULL
2446 * content selection pattern - do fix if pattern found
2448 tSCC zEcd_CursorSelect0[] =
2451 #define ECD_CURSOR_TEST_CT 1
2452 static tTestDesc aEcd_CursorTests[] = {
2453 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2456 * Fix Command Arguments for Ecd_Cursor
2458 static const char* apzEcd_CursorPatch[] = {
2463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2465 * Description of Freebsd_Gcc3_Breakage fix
2467 tSCC zFreebsd_Gcc3_BreakageName[] =
2468 "freebsd_gcc3_breakage";
2471 * File name selection pattern
2473 tSCC zFreebsd_Gcc3_BreakageList[] =
2476 * Machine/OS name selection pattern
2478 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2480 (const char*)NULL };
2483 * content selection pattern - do fix if pattern found
2485 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2486 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2489 * content bypass pattern - skip fix if pattern found
2491 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2492 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2494 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2495 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2496 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2497 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2500 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2502 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2504 "%0 || __GNUC__ >= 3",
2507 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2509 * Description of Freebsd_Gcc4_Breakage fix
2511 tSCC zFreebsd_Gcc4_BreakageName[] =
2512 "freebsd_gcc4_breakage";
2515 * File name selection pattern
2517 tSCC zFreebsd_Gcc4_BreakageList[] =
2520 * Machine/OS name selection pattern
2522 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2524 (const char*)NULL };
2527 * content selection pattern - do fix if pattern found
2529 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2530 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2532 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2533 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2534 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2537 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2539 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2541 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2544 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2546 * Description of Glibc_C99_Inline_1 fix
2548 tSCC zGlibc_C99_Inline_1Name[] =
2549 "glibc_c99_inline_1";
2552 * File name selection pattern
2554 tSCC zGlibc_C99_Inline_1List[] =
2555 "features.h\0*/features.h\0";
2557 * Machine/OS name selection pattern
2559 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2562 * content selection pattern - do fix if pattern found
2564 tSCC zGlibc_C99_Inline_1Select0[] =
2565 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2567 #define GLIBC_C99_INLINE_1_TEST_CT 1
2568 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2569 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2572 * Fix Command Arguments for Glibc_C99_Inline_1
2574 static const char* apzGlibc_C99_Inline_1Patch[] = {
2576 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2579 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2581 * Description of Glibc_C99_Inline_1a fix
2583 tSCC zGlibc_C99_Inline_1aName[] =
2584 "glibc_c99_inline_1a";
2587 * File name selection pattern
2589 tSCC zGlibc_C99_Inline_1aList[] =
2590 "features.h\0*/features.h\0";
2592 * Machine/OS name selection pattern
2594 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2597 * content selection pattern - do fix if pattern found
2599 tSCC zGlibc_C99_Inline_1aSelect0[] =
2600 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2601 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2603 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2604 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2605 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2608 * Fix Command Arguments for Glibc_C99_Inline_1a
2610 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2612 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2616 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2618 * Description of Glibc_C99_Inline_2 fix
2620 tSCC zGlibc_C99_Inline_2Name[] =
2621 "glibc_c99_inline_2";
2624 * File name selection pattern
2626 tSCC zGlibc_C99_Inline_2List[] =
2627 "sys/stat.h\0*/sys/stat.h\0";
2629 * Machine/OS name selection pattern
2631 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2634 * content selection pattern - do fix if pattern found
2636 tSCC zGlibc_C99_Inline_2Select0[] =
2637 "extern __inline__ int";
2639 #define GLIBC_C99_INLINE_2_TEST_CT 1
2640 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2641 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2644 * Fix Command Arguments for Glibc_C99_Inline_2
2646 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2647 "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2650 __inline__ int \\1/",
2651 "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2654 __inline__ int \\1/",
2655 "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2658 __inline__ int \\1/",
2659 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2662 __inline__ int __REDIRECT\\1 (\\2/",
2663 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2666 __inline__ int __REDIRECT\\1 (\\2/",
2667 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2673 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2675 * Description of Glibc_C99_Inline_3 fix
2677 tSCC zGlibc_C99_Inline_3Name[] =
2678 "glibc_c99_inline_3";
2681 * File name selection pattern
2683 tSCC zGlibc_C99_Inline_3List[] =
2684 "bits/string2.h\0*/bits/string2.h\0";
2686 * Machine/OS name selection pattern
2688 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2691 * content selection pattern - do fix if pattern found
2693 tSCC zGlibc_C99_Inline_3Select0[] =
2697 * content bypass pattern - skip fix if pattern found
2699 tSCC zGlibc_C99_Inline_3Bypass0[] =
2700 "__extern_inline|__GNU_STDC_INLINE__";
2702 #define GLIBC_C99_INLINE_3_TEST_CT 2
2703 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2704 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2705 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2708 * Fix Command Arguments for Glibc_C99_Inline_3
2710 static const char* apzGlibc_C99_Inline_3Patch[] = {
2712 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2713 "^# ifdef __cplusplus$",
2716 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2718 * Description of Glibc_C99_Inline_4 fix
2720 tSCC zGlibc_C99_Inline_4Name[] =
2721 "glibc_c99_inline_4";
2724 * File name selection pattern
2726 tSCC zGlibc_C99_Inline_4List[] =
2727 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2729 * Machine/OS name selection pattern
2731 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2734 * content selection pattern - do fix if pattern found
2736 tSCC zGlibc_C99_Inline_4Select0[] =
2737 "(^| )extern __inline";
2740 * content bypass pattern - skip fix if pattern found
2742 tSCC zGlibc_C99_Inline_4Bypass0[] =
2743 "__extern_inline|__gnu_inline__";
2745 #define GLIBC_C99_INLINE_4_TEST_CT 2
2746 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2747 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2748 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2751 * Fix Command Arguments for Glibc_C99_Inline_4
2753 static const char* apzGlibc_C99_Inline_4Patch[] = {
2755 "%0 __attribute__ ((__gnu_inline__))",
2758 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2760 * Description of Glibc_Mutex_Init fix
2762 tSCC zGlibc_Mutex_InitName[] =
2766 * File name selection pattern
2768 tSCC zGlibc_Mutex_InitList[] =
2771 * Machine/OS name selection pattern
2773 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2776 * content selection pattern - do fix if pattern found
2778 tSCC zGlibc_Mutex_InitSelect0[] =
2779 "\\{ *\\{ *0, *\\} *\\}";
2781 #define GLIBC_MUTEX_INIT_TEST_CT 1
2782 static tTestDesc aGlibc_Mutex_InitTests[] = {
2783 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2786 * Fix Command Arguments for Glibc_Mutex_Init
2788 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2789 "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2791 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2793 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
2794 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
2795 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2796 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2797 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
2798 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2799 "-e", "/define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\/N;s/^[ \t]*#[ \t]*\\(define[ \t]\\{1,\\}PTHREAD_RWLOCK_INITIALIZER[ \t]*\\\\\\)\\n[ \t]*{ { 0, } }/# if __WORDSIZE == 64\\\n\
2801 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2804 { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2806 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2807 "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2810 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2812 * Description of Glibc_Stdint fix
2814 tSCC zGlibc_StdintName[] =
2818 * File name selection pattern
2820 tSCC zGlibc_StdintList[] =
2823 * Machine/OS name selection pattern
2825 #define apzGlibc_StdintMachs (const char**)NULL
2828 * content selection pattern - do fix if pattern found
2830 tSCC zGlibc_StdintSelect0[] =
2833 #define GLIBC_STDINT_TEST_CT 1
2834 static tTestDesc aGlibc_StdintTests[] = {
2835 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
2838 * Fix Command Arguments for Glibc_Stdint
2840 static const char* apzGlibc_StdintPatch[] = {
2842 "# define UINT8_C(c)\tc\n\
2843 # define UINT16_C(c)\tc",
2844 "# define UINT8_C\\(c\\)\tc ## U\n\
2845 # define UINT16_C\\(c\\)\tc ## U",
2848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2850 * Description of Glibc_Strncpy fix
2852 tSCC zGlibc_StrncpyName[] =
2856 * File name selection pattern
2858 tSCC zGlibc_StrncpyList[] =
2861 * Machine/OS name selection pattern
2863 #define apzGlibc_StrncpyMachs (const char**)NULL
2866 * content bypass pattern - skip fix if pattern found
2868 tSCC zGlibc_StrncpyBypass0[] =
2869 "__builtin_strncpy";
2871 #define GLIBC_STRNCPY_TEST_CT 1
2872 static tTestDesc aGlibc_StrncpyTests[] = {
2873 { TT_NEGREP, zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
2876 * Fix Command Arguments for Glibc_Strncpy
2878 static const char* apzGlibc_StrncpyPatch[] = {
2880 "# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
2881 "# define strncpy([^\n\
2887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2889 * Description of Glibc_Tgmath fix
2891 tSCC zGlibc_TgmathName[] =
2895 * File name selection pattern
2897 tSCC zGlibc_TgmathList[] =
2900 * Machine/OS name selection pattern
2902 #define apzGlibc_TgmathMachs (const char**)NULL
2905 * content selection pattern - do fix if pattern found
2907 tSCC zGlibc_TgmathSelect0[] =
2908 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2911 * content bypass pattern - skip fix if pattern found
2913 tSCC zGlibc_TgmathBypass0[] =
2914 "__floating_type\\(type\\) \\\\\n\
2915 .*__builtin_classify_type";
2917 #define GLIBC_TGMATH_TEST_CT 2
2918 static tTestDesc aGlibc_TgmathTests[] = {
2919 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
2920 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
2923 * Fix Command Arguments for Glibc_Tgmath
2925 static const char* apzGlibc_TgmathPatch[] = {
2927 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
2930 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2932 * Description of Gnu_Types fix
2934 tSCC zGnu_TypesName[] =
2938 * File name selection pattern
2940 tSCC zGnu_TypesList[] =
2941 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
2943 * Machine/OS name selection pattern
2945 tSCC* apzGnu_TypesMachs[] = {
2946 "*-*-solaris2.1[0-9]*",
2947 (const char*)NULL };
2950 * content selection pattern - do fix if pattern found
2952 tSCC zGnu_TypesSelect0[] =
2953 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
2956 * content bypass pattern - skip fix if pattern found
2958 tSCC zGnu_TypesBypass0[] =
2959 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
2961 #define GNU_TYPES_TEST_CT 2
2962 static tTestDesc aGnu_TypesTests[] = {
2963 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
2964 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
2967 * Fix Command Arguments for Gnu_Types
2969 static const char* apzGnu_TypesPatch[] = {
2973 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2975 * Description of Hp_Inline fix
2977 tSCC zHp_InlineName[] =
2981 * File name selection pattern
2983 tSCC zHp_InlineList[] =
2984 "sys/spinlock.h\0machine/machparam.h\0";
2986 * Machine/OS name selection pattern
2988 #define apzHp_InlineMachs (const char**)NULL
2991 * content selection pattern - do fix if pattern found
2993 tSCC zHp_InlineSelect0[] =
2994 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
2996 #define HP_INLINE_TEST_CT 1
2997 static tTestDesc aHp_InlineTests[] = {
2998 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
3001 * Fix Command Arguments for Hp_Inline
3003 static const char* apzHp_InlinePatch[] = {
3006 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
3009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3011 * Description of Hp_Sysfile fix
3013 tSCC zHp_SysfileName[] =
3017 * File name selection pattern
3019 tSCC zHp_SysfileList[] =
3022 * Machine/OS name selection pattern
3024 #define apzHp_SysfileMachs (const char**)NULL
3027 * content selection pattern - do fix if pattern found
3029 tSCC zHp_SysfileSelect0[] =
3032 #define HP_SYSFILE_TEST_CT 1
3033 static tTestDesc aHp_SysfileTests[] = {
3034 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
3037 * Fix Command Arguments for Hp_Sysfile
3039 static const char* apzHp_SysfilePatch[] = {
3041 "(struct file *, ...)",
3045 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3047 * Description of Hppa_Hpux_Fp_Macros fix
3049 tSCC zHppa_Hpux_Fp_MacrosName[] =
3050 "hppa_hpux_fp_macros";
3053 * File name selection pattern
3055 tSCC zHppa_Hpux_Fp_MacrosList[] =
3058 * Machine/OS name selection pattern
3060 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
3062 (const char*)NULL };
3065 * content selection pattern - do fix if pattern found
3067 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
3068 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
3069 #[ \t]*define[ \t]*FP_ZERO.*\n\
3070 #[ \t]*define[ \t]*FP_INFINITE.*\n\
3071 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
3072 #[ \t]*define[ \t]*FP_NAN.*\n";
3074 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
3075 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
3076 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
3079 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
3081 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
3083 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
3084 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
3085 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
3087 #ifdef _INCLUDE_HPUX_SOURCE\n",
3090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3092 * Description of Hpux10_Cpp_Pow_Inline fix
3094 tSCC zHpux10_Cpp_Pow_InlineName[] =
3095 "hpux10_cpp_pow_inline";
3098 * File name selection pattern
3100 tSCC zHpux10_Cpp_Pow_InlineList[] =
3101 "fixinc-test-limits.h\0math.h\0";
3103 * Machine/OS name selection pattern
3105 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
3108 * content selection pattern - do fix if pattern found
3110 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
3111 "^# +ifdef +__cplusplus\n\
3113 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
3114 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
3116 +extern +\"C\" +\\{\n\
3120 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
3121 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
3122 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3125 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
3127 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
3132 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3134 * Description of Hpux11_Cpp_Pow_Inline fix
3136 tSCC zHpux11_Cpp_Pow_InlineName[] =
3137 "hpux11_cpp_pow_inline";
3140 * File name selection pattern
3142 tSCC zHpux11_Cpp_Pow_InlineList[] =
3145 * Machine/OS name selection pattern
3147 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
3150 * content selection pattern - do fix if pattern found
3152 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
3153 " +inline double pow\\(double d,int expon\\) \\{\n\
3154 +return pow\\(d, \\(double\\)expon\\);\n\
3157 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
3158 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3159 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3162 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3164 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3169 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3171 * Description of Hpux10_Ctype_Declarations1 fix
3173 tSCC zHpux10_Ctype_Declarations1Name[] =
3174 "hpux10_ctype_declarations1";
3177 * File name selection pattern
3179 tSCC zHpux10_Ctype_Declarations1List[] =
3182 * Machine/OS name selection pattern
3184 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3187 * content selection pattern - do fix if pattern found
3189 tSCC zHpux10_Ctype_Declarations1Select0[] =
3190 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3193 * content bypass pattern - skip fix if pattern found
3195 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3196 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3198 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
3199 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3200 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3201 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3204 * Fix Command Arguments for Hpux10_Ctype_Declarations1
3206 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3208 "#ifdef _PROTOTYPES\n\
3209 extern int __tolower(int);\n\
3210 extern int __toupper(int);\n\
3211 #else /* NOT _PROTOTYPES */\n\
3212 extern int __tolower();\n\
3213 extern int __toupper();\n\
3214 #endif /* _PROTOTYPES */\n\n\
3218 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3220 * Description of Hpux10_Ctype_Declarations2 fix
3222 tSCC zHpux10_Ctype_Declarations2Name[] =
3223 "hpux10_ctype_declarations2";
3226 * File name selection pattern
3228 tSCC zHpux10_Ctype_Declarations2List[] =
3231 * Machine/OS name selection pattern
3233 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3236 * content selection pattern - do fix if pattern found
3238 tSCC zHpux10_Ctype_Declarations2Select0[] =
3239 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3242 * content bypass pattern - skip fix if pattern found
3244 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3245 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3247 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
3248 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3249 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3250 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3253 * Fix Command Arguments for Hpux10_Ctype_Declarations2
3255 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3258 #ifdef _PROTOTYPES\n\
3259 extern int _isalnum(int);\n\
3260 extern int _isalpha(int);\n\
3261 extern int _iscntrl(int);\n\
3262 extern int _isdigit(int);\n\
3263 extern int _isgraph(int);\n\
3264 extern int _islower(int);\n\
3265 extern int _isprint(int);\n\
3266 extern int _ispunct(int);\n\
3267 extern int _isspace(int);\n\
3268 extern int _isupper(int);\n\
3269 extern int _isxdigit(int);\n\
3270 # else /* not _PROTOTYPES */\n\
3271 extern int _isalnum();\n\
3272 extern int _isalpha();\n\
3273 extern int _iscntrl();\n\
3274 extern int _isdigit();\n\
3275 extern int _isgraph();\n\
3276 extern int _islower();\n\
3277 extern int _isprint();\n\
3278 extern int _ispunct();\n\
3279 extern int _isspace();\n\
3280 extern int _isupper();\n\
3281 extern int _isxdigit();\n\
3282 #endif /* _PROTOTYPES */\n",
3285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3287 * Description of Hpux10_Stdio_Declarations fix
3289 tSCC zHpux10_Stdio_DeclarationsName[] =
3290 "hpux10_stdio_declarations";
3293 * File name selection pattern
3295 tSCC zHpux10_Stdio_DeclarationsList[] =
3298 * Machine/OS name selection pattern
3300 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3303 * content selection pattern - do fix if pattern found
3305 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3306 "^#[ \t]*define _iob[ \t]*__iob";
3309 * content bypass pattern - skip fix if pattern found
3311 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3312 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3314 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
3315 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3316 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3317 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3320 * Fix Command Arguments for Hpux10_Stdio_Declarations
3322 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3325 # if defined(__STDC__) || defined(__cplusplus)\n\
3326 extern int snprintf(char *, size_t, const char *, ...);\n\
3327 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3328 # else /* not __STDC__) || __cplusplus */\n\
3329 extern int snprintf();\n\
3330 extern int vsnprintf();\n\
3331 # endif /* __STDC__) || __cplusplus */\n",
3334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3336 * Description of Hpux11_Abs fix
3338 tSCC zHpux11_AbsName[] =
3342 * File name selection pattern
3344 tSCC zHpux11_AbsList[] =
3347 * Machine/OS name selection pattern
3349 tSCC* apzHpux11_AbsMachs[] = {
3351 (const char*)NULL };
3354 * content selection pattern - do fix if pattern found
3356 tSCC zHpux11_AbsSelect0[] =
3357 "ifndef _MATH_INCLUDED";
3359 #define HPUX11_ABS_TEST_CT 1
3360 static tTestDesc aHpux11_AbsTests[] = {
3361 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
3364 * Fix Command Arguments for Hpux11_Abs
3366 static const char* apzHpux11_AbsPatch[] = {
3368 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3371 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3373 * Description of Hpux11_Fabsf fix
3375 tSCC zHpux11_FabsfName[] =
3379 * File name selection pattern
3381 tSCC zHpux11_FabsfList[] =
3384 * Machine/OS name selection pattern
3386 #define apzHpux11_FabsfMachs (const char**)NULL
3389 * content selection pattern - do fix if pattern found
3391 tSCC zHpux11_FabsfSelect0[] =
3392 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3395 * content bypass pattern - skip fix if pattern found
3397 tSCC zHpux11_FabsfBypass0[] =
3400 #define HPUX11_FABSF_TEST_CT 2
3401 static tTestDesc aHpux11_FabsfTests[] = {
3402 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
3403 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3406 * Fix Command Arguments for Hpux11_Fabsf
3408 static const char* apzHpux11_FabsfPatch[] = {
3410 "#ifndef __cplusplus\n\
3415 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3417 * Description of Hpux11_Pthread_Const fix
3419 tSCC zHpux11_Pthread_ConstName[] =
3420 "hpux11_pthread_const";
3423 * File name selection pattern
3425 tSCC zHpux11_Pthread_ConstList[] =
3428 * Machine/OS name selection pattern
3430 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3431 "*-hp-hpux11.[0-3]*",
3432 (const char*)NULL };
3435 * content selection pattern - do fix if pattern found
3437 tSCC zHpux11_Pthread_ConstSelect0[] =
3438 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3440 #define HPUX11_PTHREAD_CONST_TEST_CT 1
3441 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3442 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3445 * Fix Command Arguments for Hpux11_Pthread_Const
3447 static const char* apzHpux11_Pthread_ConstPatch[] = {
3449 "#define __POINTER_SET\t\t((void *) 1L)",
3452 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3454 * Description of Hpux11_Size_T fix
3456 tSCC zHpux11_Size_TName[] =
3460 * File name selection pattern
3462 #define zHpux11_Size_TList (char*)NULL
3464 * Machine/OS name selection pattern
3466 tSCC* apzHpux11_Size_TMachs[] = {
3468 (const char*)NULL };
3471 * content selection pattern - do fix if pattern found
3473 tSCC zHpux11_Size_TSelect0[] =
3476 #define HPUX11_SIZE_T_TEST_CT 1
3477 static tTestDesc aHpux11_Size_TTests[] = {
3478 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3481 * Fix Command Arguments for Hpux11_Size_T
3483 static const char* apzHpux11_Size_TPatch[] = {
3488 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3490 * Description of Hpux11_Snprintf fix
3492 tSCC zHpux11_SnprintfName[] =
3496 * File name selection pattern
3498 tSCC zHpux11_SnprintfList[] =
3501 * Machine/OS name selection pattern
3503 #define apzHpux11_SnprintfMachs (const char**)NULL
3506 * content selection pattern - do fix if pattern found
3508 tSCC zHpux11_SnprintfSelect0[] =
3509 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3511 #define HPUX11_SNPRINTF_TEST_CT 1
3512 static tTestDesc aHpux11_SnprintfTests[] = {
3513 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3516 * Fix Command Arguments for Hpux11_Snprintf
3518 static const char* apzHpux11_SnprintfPatch[] = {
3523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3525 * Description of Hpux11_Vsnprintf fix
3527 tSCC zHpux11_VsnprintfName[] =
3531 * File name selection pattern
3533 tSCC zHpux11_VsnprintfList[] =
3536 * Machine/OS name selection pattern
3538 #define apzHpux11_VsnprintfMachs (const char**)NULL
3541 * content selection pattern - do fix if pattern found
3543 tSCC zHpux11_VsnprintfSelect0[] =
3544 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3546 #define HPUX11_VSNPRINTF_TEST_CT 1
3547 static tTestDesc aHpux11_VsnprintfTests[] = {
3548 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3551 * Fix Command Arguments for Hpux11_Vsnprintf
3553 static const char* apzHpux11_VsnprintfPatch[] = {
3558 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3560 * Description of Hpux8_Bogus_Inlines fix
3562 tSCC zHpux8_Bogus_InlinesName[] =
3563 "hpux8_bogus_inlines";
3566 * File name selection pattern
3568 tSCC zHpux8_Bogus_InlinesList[] =
3571 * Machine/OS name selection pattern
3573 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3576 * content selection pattern - do fix if pattern found
3578 tSCC zHpux8_Bogus_InlinesSelect0[] =
3582 * content bypass pattern - skip fix if pattern found
3584 tSCC zHpux8_Bogus_InlinesBypass0[] =
3587 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3588 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3589 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3590 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3593 * Fix Command Arguments for Hpux8_Bogus_Inlines
3595 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3596 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3597 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3598 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3599 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3602 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3604 * Description of Hpux_Ctype_Macros fix
3606 tSCC zHpux_Ctype_MacrosName[] =
3607 "hpux_ctype_macros";
3610 * File name selection pattern
3612 tSCC zHpux_Ctype_MacrosList[] =
3615 * Machine/OS name selection pattern
3617 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3620 * content selection pattern - do fix if pattern found
3622 tSCC zHpux_Ctype_MacrosSelect0[] =
3623 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3625 #define HPUX_CTYPE_MACROS_TEST_CT 1
3626 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3627 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3630 * Fix Command Arguments for Hpux_Ctype_Macros
3632 static const char* apzHpux_Ctype_MacrosPatch[] = {
3637 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3639 * Description of Hpux_Htonl fix
3641 tSCC zHpux_HtonlName[] =
3645 * File name selection pattern
3647 tSCC zHpux_HtonlList[] =
3650 * Machine/OS name selection pattern
3652 #define apzHpux_HtonlMachs (const char**)NULL
3655 * content selection pattern - do fix if pattern found
3657 tSCC zHpux_HtonlSelect0[] =
3658 "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
3660 \\* Macros for number representation conversion\\.\n\
3664 #define HPUX_HTONL_TEST_CT 1
3665 static tTestDesc aHpux_HtonlTests[] = {
3666 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3669 * Fix Command Arguments for Hpux_Htonl
3671 static const char* apzHpux_HtonlPatch[] = {
3677 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3679 * Description of Hpux_Long_Double fix
3681 tSCC zHpux_Long_DoubleName[] =
3685 * File name selection pattern
3687 tSCC zHpux_Long_DoubleList[] =
3690 * Machine/OS name selection pattern
3692 tSCC* apzHpux_Long_DoubleMachs[] = {
3694 "*-*-hpux11.[012]*",
3695 (const char*)NULL };
3698 * content selection pattern - do fix if pattern found
3700 tSCC zHpux_Long_DoubleSelect0[] =
3701 "extern[ \t]long_double[ \t]strtold";
3704 * content bypass pattern - skip fix if pattern found
3706 tSCC zHpux_Long_DoubleBypass0[] =
3709 #define HPUX_LONG_DOUBLE_TEST_CT 2
3710 static tTestDesc aHpux_Long_DoubleTests[] = {
3711 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3712 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3715 * Fix Command Arguments for Hpux_Long_Double
3717 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3718 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3719 "-e", "s/long_double/long double/g",
3722 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3724 * Description of Hpux_Long_Double_2 fix
3726 tSCC zHpux_Long_Double_2Name[] =
3727 "hpux_long_double_2";
3730 * File name selection pattern
3732 tSCC zHpux_Long_Double_2List[] =
3735 * Machine/OS name selection pattern
3737 tSCC* apzHpux_Long_Double_2Machs[] = {
3738 "hppa*-*-hpux11.3*",
3739 (const char*)NULL };
3742 * content selection pattern - do fix if pattern found
3744 tSCC zHpux_Long_Double_2Select0[] =
3745 "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
3747 #define HPUX_LONG_DOUBLE_2_TEST_CT 1
3748 static tTestDesc aHpux_Long_Double_2Tests[] = {
3749 { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
3752 * Fix Command Arguments for Hpux_Long_Double_2
3754 static const char* apzHpux_Long_Double_2Patch[] = {
3756 "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
3759 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3761 * Description of Hpux_Systime fix
3763 tSCC zHpux_SystimeName[] =
3767 * File name selection pattern
3769 tSCC zHpux_SystimeList[] =
3772 * Machine/OS name selection pattern
3774 #define apzHpux_SystimeMachs (const char**)NULL
3777 * content selection pattern - do fix if pattern found
3779 tSCC zHpux_SystimeSelect0[] =
3780 "^extern struct sigevent;";
3782 #define HPUX_SYSTIME_TEST_CT 1
3783 static tTestDesc aHpux_SystimeTests[] = {
3784 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3787 * Fix Command Arguments for Hpux_Systime
3789 static const char* apzHpux_SystimePatch[] = {
3794 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3796 * Description of Hpux_Spu_Info fix
3798 tSCC zHpux_Spu_InfoName[] =
3802 * File name selection pattern
3804 tSCC zHpux_Spu_InfoList[] =
3805 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3807 * Machine/OS name selection pattern
3809 tSCC* apzHpux_Spu_InfoMachs[] = {
3811 (const char*)NULL };
3814 * content selection pattern - do fix if pattern found
3816 tSCC zHpux_Spu_InfoSelect0[] =
3817 "^.*extern.*spu_info.*";
3819 #define HPUX_SPU_INFO_TEST_CT 1
3820 static tTestDesc aHpux_Spu_InfoTests[] = {
3821 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3824 * Fix Command Arguments for Hpux_Spu_Info
3826 static const char* apzHpux_Spu_InfoPatch[] = {
3833 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3835 * Description of Hpux11_Extern_Sendfile fix
3837 tSCC zHpux11_Extern_SendfileName[] =
3838 "hpux11_extern_sendfile";
3841 * File name selection pattern
3843 tSCC zHpux11_Extern_SendfileList[] =
3846 * Machine/OS name selection pattern
3848 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3849 "*-hp-hpux11.[12]*",
3850 (const char*)NULL };
3853 * content selection pattern - do fix if pattern found
3855 tSCC zHpux11_Extern_SendfileSelect0[] =
3856 "^[ \t]*extern sbsize_t sendfile.*\n\
3859 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3860 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3861 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3864 * Fix Command Arguments for Hpux11_Extern_Sendfile
3866 static const char* apzHpux11_Extern_SendfilePatch[] = {
3868 "#ifndef _APP32_64BIT_OFF_T\n\
3872 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3874 * Description of Hpux11_Extern_Sendpath fix
3876 tSCC zHpux11_Extern_SendpathName[] =
3877 "hpux11_extern_sendpath";
3880 * File name selection pattern
3882 tSCC zHpux11_Extern_SendpathList[] =
3885 * Machine/OS name selection pattern
3887 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3888 "*-hp-hpux11.[12]*",
3889 (const char*)NULL };
3892 * content selection pattern - do fix if pattern found
3894 tSCC zHpux11_Extern_SendpathSelect0[] =
3895 "^[ \t]*extern sbsize_t sendpath.*\n\
3898 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3899 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3900 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3903 * Fix Command Arguments for Hpux11_Extern_Sendpath
3905 static const char* apzHpux11_Extern_SendpathPatch[] = {
3907 "#ifndef _APP32_64BIT_OFF_T\n\
3911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3913 * Description of Hpux_Extern_Errno fix
3915 tSCC zHpux_Extern_ErrnoName[] =
3916 "hpux_extern_errno";
3919 * File name selection pattern
3921 tSCC zHpux_Extern_ErrnoList[] =
3924 * Machine/OS name selection pattern
3926 tSCC* apzHpux_Extern_ErrnoMachs[] = {
3928 "*-hp-hpux11.[0-2]*",
3929 (const char*)NULL };
3932 * content selection pattern - do fix if pattern found
3934 tSCC zHpux_Extern_ErrnoSelect0[] =
3935 "^[ \t]*extern int errno;$";
3937 #define HPUX_EXTERN_ERRNO_TEST_CT 1
3938 static tTestDesc aHpux_Extern_ErrnoTests[] = {
3939 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
3942 * Fix Command Arguments for Hpux_Extern_Errno
3944 static const char* apzHpux_Extern_ErrnoPatch[] = {
3946 "#ifdef __cplusplus\n\
3950 #ifdef __cplusplus\n\
3955 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3957 * Description of Hpux_Pthread_Initializers fix
3959 tSCC zHpux_Pthread_InitializersName[] =
3960 "hpux_pthread_initializers";
3963 * File name selection pattern
3965 tSCC zHpux_Pthread_InitializersList[] =
3968 * Machine/OS name selection pattern
3970 tSCC* apzHpux_Pthread_InitializersMachs[] = {
3971 "*-hp-hpux11.[0-3]*",
3972 (const char*)NULL };
3973 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
3974 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
3977 * Fix Command Arguments for Hpux_Pthread_Initializers
3979 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
3980 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
3981 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
3982 "-e", "/^[ \t]*0$/d",
3983 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
3984 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
3985 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
3986 "-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\\\\@",
3987 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
3988 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
3989 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
3990 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
3991 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
3992 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
3995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3997 * Description of Hpux_C99_Intptr fix
3999 tSCC zHpux_C99_IntptrName[] =
4003 * File name selection pattern
4005 tSCC zHpux_C99_IntptrList[] =
4006 "stdint-hpux11.h\0stdint.h\0";
4008 * Machine/OS name selection pattern
4010 tSCC* apzHpux_C99_IntptrMachs[] = {
4012 (const char*)NULL };
4013 #define HPUX_C99_INTPTR_TEST_CT 0
4014 #define aHpux_C99_IntptrTests (tTestDesc*)NULL
4017 * Fix Command Arguments for Hpux_C99_Intptr
4019 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
4020 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
4021 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4022 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
4023 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
4024 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
4025 "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
4028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4030 * Description of Hpux_C99_Inttypes fix
4032 tSCC zHpux_C99_InttypesName[] =
4033 "hpux_c99_inttypes";
4036 * File name selection pattern
4038 tSCC zHpux_C99_InttypesList[] =
4039 "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
4041 * Machine/OS name selection pattern
4043 tSCC* apzHpux_C99_InttypesMachs[] = {
4044 "*-hp-hpux11.[23]*",
4045 (const char*)NULL };
4046 #define HPUX_C99_INTTYPES_TEST_CT 0
4047 #define aHpux_C99_InttypesTests (tTestDesc*)NULL
4050 * Fix Command Arguments for Hpux_C99_Inttypes
4052 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4053 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4054 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4055 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4056 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4059 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4061 * Description of Hpux_C99_Inttypes2 fix
4063 tSCC zHpux_C99_Inttypes2Name[] =
4064 "hpux_c99_inttypes2";
4067 * File name selection pattern
4069 tSCC zHpux_C99_Inttypes2List[] =
4070 "stdint-hpux11.h\0stdint.h\0";
4072 * Machine/OS name selection pattern
4074 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4076 (const char*)NULL };
4077 #define HPUX_C99_INTTYPES2_TEST_CT 0
4078 #define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL
4081 * Fix Command Arguments for Hpux_C99_Inttypes2
4083 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4084 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4085 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4086 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4087 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4090 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4092 * Description of Hpux_Stdint_Least_Fast fix
4094 tSCC zHpux_Stdint_Least_FastName[] =
4095 "hpux_stdint_least_fast";
4098 * File name selection pattern
4100 tSCC zHpux_Stdint_Least_FastList[] =
4101 "stdint-hpux11.h\0stdint.h\0";
4103 * Machine/OS name selection pattern
4105 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
4107 (const char*)NULL };
4110 * content selection pattern - do fix if pattern found
4112 tSCC zHpux_Stdint_Least_FastSelect0[] =
4113 "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
4115 #define HPUX_STDINT_LEAST_FAST_TEST_CT 1
4116 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
4117 { TT_EGREP, zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
4120 * Fix Command Arguments for Hpux_Stdint_Least_Fast
4122 static const char* apzHpux_Stdint_Least_FastPatch[] = {
4124 "# define\tUINT_%164_MAX\t__UINT64_MAX__",
4127 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4129 * Description of Hpux_Inttype_Int8_T fix
4131 tSCC zHpux_Inttype_Int8_TName[] =
4132 "hpux_inttype_int8_t";
4135 * File name selection pattern
4137 tSCC zHpux_Inttype_Int8_TList[] =
4138 "sys/_inttypes.h\0";
4140 * Machine/OS name selection pattern
4142 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4144 (const char*)NULL };
4147 * content selection pattern - do fix if pattern found
4149 tSCC zHpux_Inttype_Int8_TSelect0[] =
4150 "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4152 #define HPUX_INTTYPE_INT8_T_TEST_CT 1
4153 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4154 { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4157 * Fix Command Arguments for Hpux_Inttype_Int8_T
4159 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4161 "typedef signed char int%18_t;",
4164 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4166 * Description of Hpux_Imaginary_I fix
4168 tSCC zHpux_Imaginary_IName[] =
4172 * File name selection pattern
4174 tSCC zHpux_Imaginary_IList[] =
4177 * Machine/OS name selection pattern
4179 tSCC* apzHpux_Imaginary_IMachs[] = {
4181 (const char*)NULL };
4184 * content selection pattern - do fix if pattern found
4186 tSCC zHpux_Imaginary_ISelect0[] =
4187 "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4189 #define HPUX_IMAGINARY_I_TEST_CT 1
4190 static tTestDesc aHpux_Imaginary_ITests[] = {
4191 { TT_EGREP, zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4194 * Fix Command Arguments for Hpux_Imaginary_I
4196 static const char* apzHpux_Imaginary_IPatch[] = {
4198 "#define _Complex_I (__extension__ 1.0iF)",
4201 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4203 * Description of Huge_Val_Hex fix
4205 tSCC zHuge_Val_HexName[] =
4209 * File name selection pattern
4211 tSCC zHuge_Val_HexList[] =
4212 "bits/huge_val.h\0";
4214 * Machine/OS name selection pattern
4216 #define apzHuge_Val_HexMachs (const char**)NULL
4219 * content selection pattern - do fix if pattern found
4221 tSCC zHuge_Val_HexSelect0[] =
4222 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4225 * content bypass pattern - skip fix if pattern found
4227 tSCC zHuge_Val_HexBypass0[] =
4228 "__builtin_huge_val";
4230 #define HUGE_VAL_HEX_TEST_CT 2
4231 static tTestDesc aHuge_Val_HexTests[] = {
4232 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
4233 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4236 * Fix Command Arguments for Huge_Val_Hex
4238 static const char* apzHuge_Val_HexPatch[] = {
4240 "#define HUGE_VAL (__builtin_huge_val())\n",
4243 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4245 * Description of Huge_Valf_Hex fix
4247 tSCC zHuge_Valf_HexName[] =
4251 * File name selection pattern
4253 tSCC zHuge_Valf_HexList[] =
4254 "bits/huge_val.h\0";
4256 * Machine/OS name selection pattern
4258 #define apzHuge_Valf_HexMachs (const char**)NULL
4261 * content selection pattern - do fix if pattern found
4263 tSCC zHuge_Valf_HexSelect0[] =
4264 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4267 * content bypass pattern - skip fix if pattern found
4269 tSCC zHuge_Valf_HexBypass0[] =
4270 "__builtin_huge_valf";
4272 #define HUGE_VALF_HEX_TEST_CT 2
4273 static tTestDesc aHuge_Valf_HexTests[] = {
4274 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
4275 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4278 * Fix Command Arguments for Huge_Valf_Hex
4280 static const char* apzHuge_Valf_HexPatch[] = {
4282 "#define HUGE_VALF (__builtin_huge_valf())\n",
4285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4287 * Description of Huge_Vall_Hex fix
4289 tSCC zHuge_Vall_HexName[] =
4293 * File name selection pattern
4295 tSCC zHuge_Vall_HexList[] =
4296 "bits/huge_val.h\0";
4298 * Machine/OS name selection pattern
4300 #define apzHuge_Vall_HexMachs (const char**)NULL
4303 * content selection pattern - do fix if pattern found
4305 tSCC zHuge_Vall_HexSelect0[] =
4306 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4309 * content bypass pattern - skip fix if pattern found
4311 tSCC zHuge_Vall_HexBypass0[] =
4312 "__builtin_huge_vall";
4314 #define HUGE_VALL_HEX_TEST_CT 2
4315 static tTestDesc aHuge_Vall_HexTests[] = {
4316 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
4317 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4320 * Fix Command Arguments for Huge_Vall_Hex
4322 static const char* apzHuge_Vall_HexPatch[] = {
4324 "#define HUGE_VALL (__builtin_huge_vall())\n",
4327 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4329 * Description of Int_Abort_Free_And_Exit fix
4331 tSCC zInt_Abort_Free_And_ExitName[] =
4332 "int_abort_free_and_exit";
4335 * File name selection pattern
4337 tSCC zInt_Abort_Free_And_ExitList[] =
4340 * Machine/OS name selection pattern
4342 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4345 * content selection pattern - do fix if pattern found
4347 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4348 "int[ \t]+(abort|free|exit)[ \t]*\\(";
4351 * content bypass pattern - skip fix if pattern found
4353 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4354 "_CLASSIC_ANSI_TYPES";
4356 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
4357 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4358 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4359 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4362 * Fix Command Arguments for Int_Abort_Free_And_Exit
4364 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4369 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4371 * Description of Io_Quotes_Def fix
4373 tSCC zIo_Quotes_DefName[] =
4377 * File name selection pattern
4379 #define zIo_Quotes_DefList (char*)NULL
4381 * Machine/OS name selection pattern
4383 #define apzIo_Quotes_DefMachs (const char**)NULL
4386 * content selection pattern - do fix if pattern found
4388 tSCC zIo_Quotes_DefSelect0[] =
4389 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4391 #define IO_QUOTES_DEF_TEST_CT 1
4392 static tTestDesc aIo_Quotes_DefTests[] = {
4393 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4396 * Fix Command Arguments for Io_Quotes_Def
4398 static const char* apzIo_Quotes_DefPatch[] = {
4403 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4405 * Description of Io_Quotes_Use fix
4407 tSCC zIo_Quotes_UseName[] =
4411 * File name selection pattern
4413 #define zIo_Quotes_UseList (char*)NULL
4415 * Machine/OS name selection pattern
4417 #define apzIo_Quotes_UseMachs (const char**)NULL
4420 * content selection pattern - do fix if pattern found
4422 tSCC zIo_Quotes_UseSelect0[] =
4423 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4425 #define IO_QUOTES_USE_TEST_CT 1
4426 static tTestDesc aIo_Quotes_UseTests[] = {
4427 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4430 * Fix Command Arguments for Io_Quotes_Use
4432 static const char* apzIo_Quotes_UsePatch[] = {
4437 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4439 * Description of Ip_Missing_Semi fix
4441 tSCC zIp_Missing_SemiName[] =
4445 * File name selection pattern
4447 tSCC zIp_Missing_SemiList[] =
4450 * Machine/OS name selection pattern
4452 #define apzIp_Missing_SemiMachs (const char**)NULL
4455 * content selection pattern - do fix if pattern found
4457 tSCC zIp_Missing_SemiSelect0[] =
4460 #define IP_MISSING_SEMI_TEST_CT 1
4461 static tTestDesc aIp_Missing_SemiTests[] = {
4462 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4465 * Fix Command Arguments for Ip_Missing_Semi
4467 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4468 "-e", "/^struct/,/^};/s/}$/};/",
4471 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4473 * Description of Irix___Restrict fix
4475 tSCC zIrix___RestrictName[] =
4479 * File name selection pattern
4481 tSCC zIrix___RestrictList[] =
4482 "internal/sgimacros.h\0";
4484 * Machine/OS name selection pattern
4486 tSCC* apzIrix___RestrictMachs[] = {
4488 (const char*)NULL };
4491 * content selection pattern - do fix if pattern found
4493 tSCC zIrix___RestrictSelect0[] =
4495 )(#[ \t]*define __restrict restrict)";
4497 #define IRIX___RESTRICT_TEST_CT 1
4498 static tTestDesc aIrix___RestrictTests[] = {
4499 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
4502 * Fix Command Arguments for Irix___Restrict
4504 static const char* apzIrix___RestrictPatch[] = {
4506 "%1# ifndef __cplusplus\n\
4511 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4513 * Description of Irix___Generic1 fix
4515 tSCC zIrix___Generic1Name[] =
4519 * File name selection pattern
4521 tSCC zIrix___Generic1List[] =
4522 "internal/math_core.h\0";
4524 * Machine/OS name selection pattern
4526 tSCC* apzIrix___Generic1Machs[] = {
4528 (const char*)NULL };
4531 * content selection pattern - do fix if pattern found
4533 tSCC zIrix___Generic1Select0[] =
4534 "#define ([a-z]+)\\(x\\) *__generic.*";
4536 #define IRIX___GENERIC1_TEST_CT 1
4537 static tTestDesc aIrix___Generic1Tests[] = {
4538 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
4541 * Fix Command Arguments for Irix___Generic1
4543 static const char* apzIrix___Generic1Patch[] = {
4545 "extern int %1(double);\n\
4546 extern int %1f(float);\n\
4547 extern int %1l(long double);\n\
4548 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
4549 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
4553 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4555 * Description of Irix___Generic2 fix
4557 tSCC zIrix___Generic2Name[] =
4561 * File name selection pattern
4563 tSCC zIrix___Generic2List[] =
4564 "internal/math_core.h\0";
4566 * Machine/OS name selection pattern
4568 tSCC* apzIrix___Generic2Machs[] = {
4570 (const char*)NULL };
4573 * content selection pattern - do fix if pattern found
4575 tSCC zIrix___Generic2Select0[] =
4576 "#define ([a-z]+)\\(x,y\\) *__generic.*";
4578 #define IRIX___GENERIC2_TEST_CT 1
4579 static tTestDesc aIrix___Generic2Tests[] = {
4580 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
4583 * Fix Command Arguments for Irix___Generic2
4585 static const char* apzIrix___Generic2Patch[] = {
4587 "#define %1(x,y) \\\n\
4588 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
4589 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
4593 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4595 * Description of Irix_Asm_Apostrophe fix
4597 tSCC zIrix_Asm_ApostropheName[] =
4598 "irix_asm_apostrophe";
4601 * File name selection pattern
4603 tSCC zIrix_Asm_ApostropheList[] =
4606 * Machine/OS name selection pattern
4608 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
4611 * content selection pattern - do fix if pattern found
4613 tSCC zIrix_Asm_ApostropheSelect0[] =
4614 "^[ \t]*#.*[Ww]e're";
4616 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
4617 static tTestDesc aIrix_Asm_ApostropheTests[] = {
4618 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
4621 * Fix Command Arguments for Irix_Asm_Apostrophe
4623 static const char* apzIrix_Asm_ApostrophePatch[] = {
4626 "^([ \t]*#.*[Ww]e)'re",
4629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4631 * Description of Irix_Complex fix
4633 tSCC zIrix_ComplexName[] =
4637 * File name selection pattern
4639 tSCC zIrix_ComplexList[] =
4642 * Machine/OS name selection pattern
4644 tSCC* apzIrix_ComplexMachs[] = {
4646 (const char*)NULL };
4649 * content selection pattern - do fix if pattern found
4651 tSCC zIrix_ComplexSelect0[] =
4652 "#define[ \t]_Complex_I[ \t]\\(\\(float[ \t]_Complex\\)[ \t]\\(__I__\\)\\)";
4654 #define IRIX_COMPLEX_TEST_CT 1
4655 static tTestDesc aIrix_ComplexTests[] = {
4656 { TT_EGREP, zIrix_ComplexSelect0, (regex_t*)NULL }, };
4659 * Fix Command Arguments for Irix_Complex
4661 static const char* apzIrix_ComplexPatch[] = { sed_cmd_z,
4662 "-e", "s/#define[ \t]_Complex_I[ \t]((float[ \t]_Complex)[ \t](__I__))/#define _Complex_I (__extension__ 1.0iF)/",
4663 "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
4664 "-e", "/#define[ \t]_Imaginary_I/d",
4665 "-e", "s/#define[ \t]I[ \t]_Imaginary_I/#define I _Complex_I/",
4668 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4670 * Description of Irix_Limits_Const fix
4672 tSCC zIrix_Limits_ConstName[] =
4673 "irix_limits_const";
4676 * File name selection pattern
4678 tSCC zIrix_Limits_ConstList[] =
4679 "fixinc-test-limits.h\0limits.h\0";
4681 * Machine/OS name selection pattern
4683 #define apzIrix_Limits_ConstMachs (const char**)NULL
4686 * content selection pattern - do fix if pattern found
4688 tSCC zIrix_Limits_ConstSelect0[] =
4691 #define IRIX_LIMITS_CONST_TEST_CT 1
4692 static tTestDesc aIrix_Limits_ConstTests[] = {
4693 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4696 * Fix Command Arguments for Irix_Limits_Const
4698 static const char* apzIrix_Limits_ConstPatch[] = {
4703 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4705 * Description of Irix_Pthread_Init fix
4707 tSCC zIrix_Pthread_InitName[] =
4708 "irix_pthread_init";
4711 * File name selection pattern
4713 tSCC zIrix_Pthread_InitList[] =
4716 * Machine/OS name selection pattern
4718 tSCC* apzIrix_Pthread_InitMachs[] = {
4720 (const char*)NULL };
4723 * content selection pattern - do fix if pattern found
4725 tSCC zIrix_Pthread_InitSelect0[] =
4726 "^(#define[ \t]+PTHREAD_.*_INITIALIZER[ \t]+)(\\{ 0 \\})";
4728 #define IRIX_PTHREAD_INIT_TEST_CT 1
4729 static tTestDesc aIrix_Pthread_InitTests[] = {
4730 { TT_EGREP, zIrix_Pthread_InitSelect0, (regex_t*)NULL }, };
4733 * Fix Command Arguments for Irix_Pthread_Init
4735 static const char* apzIrix_Pthread_InitPatch[] = {
4740 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4742 * Description of Irix_Socklen_T fix
4744 tSCC zIrix_Socklen_TName[] =
4748 * File name selection pattern
4750 tSCC zIrix_Socklen_TList[] =
4753 * Machine/OS name selection pattern
4755 tSCC* apzIrix_Socklen_TMachs[] = {
4757 (const char*)NULL };
4760 * content selection pattern - do fix if pattern found
4762 tSCC zIrix_Socklen_TSelect0[] =
4763 "(#define _SOCKLEN_T\n\
4764 )(typedef u_int32_t socklen_t;)";
4766 #define IRIX_SOCKLEN_T_TEST_CT 1
4767 static tTestDesc aIrix_Socklen_TTests[] = {
4768 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4771 * Fix Command Arguments for Irix_Socklen_T
4773 static const char* apzIrix_Socklen_TPatch[] = {
4775 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4776 typedef int socklen_t;\n\
4779 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4782 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4784 * Description of Irix_Stdint_C99_Mode fix
4786 tSCC zIrix_Stdint_C99_ModeName[] =
4787 "irix_stdint_c99_mode";
4790 * File name selection pattern
4792 tSCC zIrix_Stdint_C99_ModeList[] =
4795 * Machine/OS name selection pattern
4797 tSCC* apzIrix_Stdint_C99_ModeMachs[] = {
4799 (const char*)NULL };
4802 * content selection pattern - do fix if pattern found
4804 tSCC zIrix_Stdint_C99_ModeSelect0[] =
4806 )(#error This header file is to be used only for c99 mode compilations)";
4808 #define IRIX_STDINT_C99_MODE_TEST_CT 1
4809 static tTestDesc aIrix_Stdint_C99_ModeTests[] = {
4810 { TT_EGREP, zIrix_Stdint_C99_ModeSelect0, (regex_t*)NULL }, };
4813 * Fix Command Arguments for Irix_Stdint_C99_Mode
4815 static const char* apzIrix_Stdint_C99_ModePatch[] = {
4821 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4823 * Description of Irix_Stdint_C99_Types fix
4825 tSCC zIrix_Stdint_C99_TypesName[] =
4826 "irix_stdint_c99_types";
4829 * File name selection pattern
4831 tSCC zIrix_Stdint_C99_TypesList[] =
4832 "stdint-irix65.h\0stdint.h\0";
4834 * Machine/OS name selection pattern
4836 tSCC* apzIrix_Stdint_C99_TypesMachs[] = {
4838 (const char*)NULL };
4839 #define IRIX_STDINT_C99_TYPES_TEST_CT 0
4840 #define aIrix_Stdint_C99_TypesTests (tTestDesc*)NULL
4843 * Fix Command Arguments for Irix_Stdint_C99_Types
4845 static const char* apzIrix_Stdint_C99_TypesPatch[] = { sed_cmd_z,
4846 "-e", "s@^#define INT64_MIN.*(-0x7fffffffffffffff - 1)$@#define INT64_MIN (-0x7fffffffffffffffLL - 1)@",
4847 "-e", "s@^#define INT64_MAX.*0x7fffffffffffffff$@#define INT64_MAX 0x7fffffffffffffffLL@",
4848 "-e", "s@^#define UINT32_MAX.*0xffffffff$@#define UINT32_MAX 0xffffffffU@",
4849 "-e", "s@^#define UINT64_MAX.*0xffffffffffffffff$@#define UINT64_MAX 0xffffffffffffffffULL@",
4850 "-e", "s@^#define INTPTR_MIN.*INT32_MIN$@#define INTPTR_MIN (-0x7fffffffL - 1)@",
4851 "-e", "s@^#define INTPTR_MAX.*INT32_MAX$@#define INTPTR_MAX 0x7fffffffL@",
4852 "-e", "s@^#define UINTPTR_MAX.*UINT32_MAX$@#define UINTPTR_MAX 0xffffffffUL@",
4853 "-e", "s@^#define INTPTR_MIN.*INT64_MIN@#define INTPTR_MIN (-0x7fffffffffffffffL - 1)@",
4854 "-e", "s@^#define INTPTR_MAX.*INT64_MAX$@#define INTPTR_MAX 0x7fffffffffffffffL@",
4855 "-e", "s@^#define UINTPTR_MAX.*UINT64_MAX$@#define UINTPTR_MAX 0xffffffffffffffffUL@",
4856 "-e", "s@^#define PTRDIFF_MIN.*INT64_MIN$@#define PTRDIFF_MIN (-0x7fffffffffffffffL - 1)@",
4857 "-e", "s@^#define PTRDIFF_MAX.*INT64_MAX$@#define PTRDIFF_MAX 0x7fffffffffffffffL@",
4858 "-e", "s@^#define SIZE_MAX.*UINT64_MAX$@#define SIZE_MAX 0xffffffffffffffffUL@",
4861 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4863 * Description of Irix_Stdint_C99_Macros fix
4865 tSCC zIrix_Stdint_C99_MacrosName[] =
4866 "irix_stdint_c99_macros";
4869 * File name selection pattern
4871 tSCC zIrix_Stdint_C99_MacrosList[] =
4872 "stdint-irix65.h\0stdint.h\0";
4874 * Machine/OS name selection pattern
4876 tSCC* apzIrix_Stdint_C99_MacrosMachs[] = {
4878 (const char*)NULL };
4879 #define IRIX_STDINT_C99_MACROS_TEST_CT 0
4880 #define aIrix_Stdint_C99_MacrosTests (tTestDesc*)NULL
4883 * Fix Command Arguments for Irix_Stdint_C99_Macros
4885 static const char* apzIrix_Stdint_C99_MacrosPatch[] = { sed_cmd_z,
4886 "-e", "s@^#define INT8_C(x).*int.*_t.*$@#define INT8_C(x) (x)@",
4887 "-e", "s@^#define INT16_C(x).*int.*_t.*$@#define INT16_C(x) (x)@",
4888 "-e", "s@^#define INT32_C(x).*int.*_t.*$@#define INT32_C(x) (x)@",
4889 "-e", "s@^#define INT64_C(x).*int.*_t.*$@#define INT64_C(x) (x ## LL)@",
4890 "-e", "s@^#define UINT8_C(x).*int.*_t.*$@#define UINT8_C(x) (x)@",
4891 "-e", "s@^#define UINT16_C(x).*int.*_t.*$@#define UINT16_C(x) (x)@",
4892 "-e", "s@^#define UINT32_C(x).*int.*_t.*$@#define UINT32_C(x) (x ## U)@",
4893 "-e", "s@^#define UINT64_C(x).*int.*_t.*$@#define UINT64_C(x) (x ## ULL)@",
4894 "-e", "s@^#define INTMAX_C(x).*int.*_t.*$@#define INTMAX_C(x) (x ## LL)@",
4895 "-e", "s@^#define UINTMAX_C(x).*int.*_t.*$@#define UINTMAX_C(x) (x ## ULL)@",
4898 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4900 * Description of Irix_Stdio_Va_List fix
4902 tSCC zIrix_Stdio_Va_ListName[] =
4903 "irix_stdio_va_list";
4906 * File name selection pattern
4908 tSCC zIrix_Stdio_Va_ListList[] =
4909 "stdio.h\0internal/stdio_core.h\0";
4911 * Machine/OS name selection pattern
4913 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4916 * content selection pattern - do fix if pattern found
4918 tSCC zIrix_Stdio_Va_ListSelect0[] =
4919 "/\\* va_list \\*/ char \\*";
4921 #define IRIX_STDIO_VA_LIST_TEST_CT 1
4922 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
4923 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
4926 * Fix Command Arguments for Irix_Stdio_Va_List
4928 static const char* apzIrix_Stdio_Va_ListPatch[] = {
4933 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4935 * Description of Irix_Wcsftime fix
4937 tSCC zIrix_WcsftimeName[] =
4941 * File name selection pattern
4943 tSCC zIrix_WcsftimeList[] =
4944 "internal/wchar_core.h\0";
4946 * Machine/OS name selection pattern
4948 tSCC* apzIrix_WcsftimeMachs[] = {
4950 (const char*)NULL };
4953 * content selection pattern - do fix if pattern found
4955 tSCC zIrix_WcsftimeSelect0[] =
4957 (extern size_t[ \t]+wcsftime.*const char *.*)";
4959 #define IRIX_WCSFTIME_TEST_CT 1
4960 static tTestDesc aIrix_WcsftimeTests[] = {
4961 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
4964 * Fix Command Arguments for Irix_Wcsftime
4966 static const char* apzIrix_WcsftimePatch[] = {
4968 "#if _NO_XOPEN5 && !defined(__c99)\n\
4972 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4974 * Description of Kandr_Concat fix
4976 tSCC zKandr_ConcatName[] =
4980 * File name selection pattern
4982 tSCC zKandr_ConcatList[] =
4983 "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";
4985 * Machine/OS name selection pattern
4987 #define apzKandr_ConcatMachs (const char**)NULL
4990 * content selection pattern - do fix if pattern found
4992 tSCC zKandr_ConcatSelect0[] =
4995 #define KANDR_CONCAT_TEST_CT 1
4996 static tTestDesc aKandr_ConcatTests[] = {
4997 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
5000 * Fix Command Arguments for Kandr_Concat
5002 static const char* apzKandr_ConcatPatch[] = {
5007 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5009 * Description of Linux_Ia64_Ucontext fix
5011 tSCC zLinux_Ia64_UcontextName[] =
5012 "linux_ia64_ucontext";
5015 * File name selection pattern
5017 tSCC zLinux_Ia64_UcontextList[] =
5020 * Machine/OS name selection pattern
5022 tSCC* apzLinux_Ia64_UcontextMachs[] = {
5024 (const char*)NULL };
5027 * content selection pattern - do fix if pattern found
5029 tSCC zLinux_Ia64_UcontextSelect0[] =
5030 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
5032 #define LINUX_IA64_UCONTEXT_TEST_CT 1
5033 static tTestDesc aLinux_Ia64_UcontextTests[] = {
5034 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
5037 * Fix Command Arguments for Linux_Ia64_Ucontext
5039 static const char* apzLinux_Ia64_UcontextPatch[] = {
5041 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
5044 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5046 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
5048 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
5049 "lynxos_no_warning_in_sys_time_h";
5052 * File name selection pattern
5054 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
5057 * Machine/OS name selection pattern
5059 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
5062 * content selection pattern - do fix if pattern found
5064 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
5065 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
5067 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
5068 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
5069 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
5072 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
5074 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
5079 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5081 * Description of Lynxos_Missing_Putenv fix
5083 tSCC zLynxos_Missing_PutenvName[] =
5084 "lynxos_missing_putenv";
5087 * File name selection pattern
5089 tSCC zLynxos_Missing_PutenvList[] =
5092 * Machine/OS name selection pattern
5094 tSCC* apzLynxos_Missing_PutenvMachs[] = {
5096 (const char*)NULL };
5099 * content selection pattern - do fix if pattern found
5101 tSCC zLynxos_Missing_PutenvSelect0[] =
5102 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
5105 * content bypass pattern - skip fix if pattern found
5107 tSCC zLynxos_Missing_PutenvBypass0[] =
5110 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
5111 static tTestDesc aLynxos_Missing_PutenvTests[] = {
5112 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
5113 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
5116 * Fix Command Arguments for Lynxos_Missing_Putenv
5118 static const char* apzLynxos_Missing_PutenvPatch[] = {
5121 extern int putenv\t\t\t\t_AP((char *));",
5122 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
5125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5127 * Description of Machine_Ansi_H_Va_List fix
5129 tSCC zMachine_Ansi_H_Va_ListName[] =
5130 "machine_ansi_h_va_list";
5133 * File name selection pattern
5135 #define zMachine_Ansi_H_Va_ListList (char*)NULL
5137 * Machine/OS name selection pattern
5139 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5142 * content selection pattern - do fix if pattern found
5144 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
5145 "define[ \t]+_BSD_VA_LIST_[ \t]";
5148 * content bypass pattern - skip fix if pattern found
5150 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5151 "__builtin_va_list";
5153 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
5154 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5155 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5156 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5159 * Fix Command Arguments for Machine_Ansi_H_Va_List
5161 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5163 "%1__builtin_va_list",
5164 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5167 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5169 * Description of Machine_Name fix
5171 tSCC zMachine_NameName[] =
5175 * File name selection pattern
5177 #define zMachine_NameList (char*)NULL
5179 * Machine/OS name selection pattern
5181 #define apzMachine_NameMachs (const char**)NULL
5184 * perform the C function call test
5186 tSCC zMachine_NameFTst0[] = "machine_name";
5188 #define MACHINE_NAME_TEST_CT 1
5189 static tTestDesc aMachine_NameTests[] = {
5190 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
5193 * Fix Command Arguments for Machine_Name
5195 static const char* apzMachine_NamePatch[] = {
5199 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5201 * Description of Math_Exception fix
5203 tSCC zMath_ExceptionName[] =
5207 * File name selection pattern
5209 tSCC zMath_ExceptionList[] =
5212 * Machine/OS name selection pattern
5214 #define apzMath_ExceptionMachs (const char**)NULL
5217 * content selection pattern - do fix if pattern found
5219 tSCC zMath_ExceptionSelect0[] =
5223 * content bypass pattern - skip fix if pattern found
5225 tSCC zMath_ExceptionBypass0[] =
5226 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5228 #define MATH_EXCEPTION_TEST_CT 2
5229 static tTestDesc aMath_ExceptionTests[] = {
5230 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
5231 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
5234 * Fix Command Arguments for Math_Exception
5236 static const char* apzMath_ExceptionPatch[] = {
5238 "#ifdef __cplusplus\n\
5239 #define exception __math_exception\n\
5241 "#ifdef __cplusplus\n\
5246 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5248 * Description of Math_Huge_Val_From_Dbl_Max fix
5250 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
5251 "math_huge_val_from_dbl_max";
5254 * File name selection pattern
5256 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
5259 * Machine/OS name selection pattern
5261 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
5264 * content selection pattern - do fix if pattern found
5266 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
5267 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
5270 * content bypass pattern - skip fix if pattern found
5272 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
5273 "define[ \t]+DBL_MAX";
5275 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
5276 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
5277 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
5278 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
5281 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
5283 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5284 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
5285 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
5286 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
5291 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5293 * Description of Nested_Auth_Des fix
5295 tSCC zNested_Auth_DesName[] =
5299 * File name selection pattern
5301 tSCC zNested_Auth_DesList[] =
5304 * Machine/OS name selection pattern
5306 #define apzNested_Auth_DesMachs (const char**)NULL
5309 * content selection pattern - do fix if pattern found
5311 tSCC zNested_Auth_DesSelect0[] =
5312 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
5314 #define NESTED_AUTH_DES_TEST_CT 1
5315 static tTestDesc aNested_Auth_DesTests[] = {
5316 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
5319 * Fix Command Arguments for Nested_Auth_Des
5321 static const char* apzNested_Auth_DesPatch[] = {
5326 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5328 * Description of Netbsd_C99_Inline_1 fix
5330 tSCC zNetbsd_C99_Inline_1Name[] =
5331 "netbsd_c99_inline_1";
5334 * File name selection pattern
5336 tSCC zNetbsd_C99_Inline_1List[] =
5339 * Machine/OS name selection pattern
5341 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
5343 (const char*)NULL };
5346 * content selection pattern - do fix if pattern found
5348 tSCC zNetbsd_C99_Inline_1Select0[] =
5349 "extern __inline int";
5351 #define NETBSD_C99_INLINE_1_TEST_CT 1
5352 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
5353 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
5356 * Fix Command Arguments for Netbsd_C99_Inline_1
5358 static const char* apzNetbsd_C99_Inline_1Patch[] = {
5361 #ifdef __GNUC_STDC_INLINE__\n\
5362 __attribute__((__gnu_inline__))\n\
5367 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5369 * Description of Netbsd_C99_Inline_2 fix
5371 tSCC zNetbsd_C99_Inline_2Name[] =
5372 "netbsd_c99_inline_2";
5375 * File name selection pattern
5377 tSCC zNetbsd_C99_Inline_2List[] =
5380 * Machine/OS name selection pattern
5382 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
5384 (const char*)NULL };
5387 * content selection pattern - do fix if pattern found
5389 tSCC zNetbsd_C99_Inline_2Select0[] =
5390 "#define _SIGINLINE extern __inline";
5392 #define NETBSD_C99_INLINE_2_TEST_CT 1
5393 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
5394 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
5397 * Fix Command Arguments for Netbsd_C99_Inline_2
5399 static const char* apzNetbsd_C99_Inline_2Patch[] = {
5401 "#ifdef __GNUC_STDC_INLINE__\n\
5402 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
5408 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5410 * Description of Netbsd_Extra_Semicolon fix
5412 tSCC zNetbsd_Extra_SemicolonName[] =
5413 "netbsd_extra_semicolon";
5416 * File name selection pattern
5418 tSCC zNetbsd_Extra_SemicolonList[] =
5421 * Machine/OS name selection pattern
5423 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
5425 (const char*)NULL };
5428 * content selection pattern - do fix if pattern found
5430 tSCC zNetbsd_Extra_SemicolonSelect0[] =
5431 "#define[ \t]*__END_DECLS[ \t]*};";
5433 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
5434 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
5435 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
5438 * Fix Command Arguments for Netbsd_Extra_Semicolon
5440 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
5442 "#define __END_DECLS }",
5445 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5447 * Description of Newlib_Stdint_1 fix
5449 tSCC zNewlib_Stdint_1Name[] =
5453 * File name selection pattern
5455 tSCC zNewlib_Stdint_1List[] =
5456 "stdint-newlib.h\0stdint.h\0";
5458 * Machine/OS name selection pattern
5460 #define apzNewlib_Stdint_1Machs (const char**)NULL
5463 * content selection pattern - do fix if pattern found
5465 tSCC zNewlib_Stdint_1Select0[] =
5466 "@todo - Add support for wint_t types";
5468 #define NEWLIB_STDINT_1_TEST_CT 1
5469 static tTestDesc aNewlib_Stdint_1Tests[] = {
5470 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5473 * Fix Command Arguments for Newlib_Stdint_1
5475 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5476 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5477 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5478 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5479 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5480 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5481 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5482 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5483 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5484 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5485 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5486 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5487 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5488 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5489 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5492 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5494 * Description of Newlib_Stdint_2 fix
5496 tSCC zNewlib_Stdint_2Name[] =
5500 * File name selection pattern
5502 tSCC zNewlib_Stdint_2List[] =
5503 "stdint-newlib.h\0stdint.h\0";
5505 * Machine/OS name selection pattern
5507 #define apzNewlib_Stdint_2Machs (const char**)NULL
5510 * content selection pattern - do fix if pattern found
5512 tSCC zNewlib_Stdint_2Select0[] =
5513 "@todo - Add support for wint_t types";
5515 #define NEWLIB_STDINT_2_TEST_CT 1
5516 static tTestDesc aNewlib_Stdint_2Tests[] = {
5517 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5520 * Fix Command Arguments for Newlib_Stdint_2
5522 static const char* apzNewlib_Stdint_2Patch[] = {
5524 "#define INTMAX_MAX __INTMAX_MAX__\n\
5525 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5526 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5527 #define WCHAR_MAX __WCHAR_MAX__\n\
5528 #define WCHAR_MIN __WCHAR_MIN__\n\
5529 #define WINT_MAX __WINT_MAX__\n\
5530 #define WINT_MIN __WINT_MIN__\n\n\
5532 "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5535 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5537 * Description of Next_Math_Prefix fix
5539 tSCC zNext_Math_PrefixName[] =
5543 * File name selection pattern
5545 tSCC zNext_Math_PrefixList[] =
5548 * Machine/OS name selection pattern
5550 #define apzNext_Math_PrefixMachs (const char**)NULL
5553 * content selection pattern - do fix if pattern found
5555 tSCC zNext_Math_PrefixSelect0[] =
5556 "^extern[ \t]+double[ \t]+__const__[ \t]";
5558 #define NEXT_MATH_PREFIX_TEST_CT 1
5559 static tTestDesc aNext_Math_PrefixTests[] = {
5560 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5563 * Fix Command Arguments for Next_Math_Prefix
5565 static const char* apzNext_Math_PrefixPatch[] = {
5567 "extern double %1(",
5568 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5571 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5573 * Description of Next_Template fix
5575 tSCC zNext_TemplateName[] =
5579 * File name selection pattern
5581 tSCC zNext_TemplateList[] =
5584 * Machine/OS name selection pattern
5586 #define apzNext_TemplateMachs (const char**)NULL
5589 * content selection pattern - do fix if pattern found
5591 tSCC zNext_TemplateSelect0[] =
5594 #define NEXT_TEMPLATE_TEST_CT 1
5595 static tTestDesc aNext_TemplateTests[] = {
5596 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
5599 * Fix Command Arguments for Next_Template
5601 static const char* apzNext_TemplatePatch[] = {
5604 "\\(([^)]*)[ \t]template\\)",
5607 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5609 * Description of Next_Volitile fix
5611 tSCC zNext_VolitileName[] =
5615 * File name selection pattern
5617 tSCC zNext_VolitileList[] =
5620 * Machine/OS name selection pattern
5622 #define apzNext_VolitileMachs (const char**)NULL
5625 * content selection pattern - do fix if pattern found
5627 tSCC zNext_VolitileSelect0[] =
5628 "^extern[ \t]+volatile[ \t]+void[ \t]";
5630 #define NEXT_VOLITILE_TEST_CT 1
5631 static tTestDesc aNext_VolitileTests[] = {
5632 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
5635 * Fix Command Arguments for Next_Volitile
5637 static const char* apzNext_VolitilePatch[] = {
5640 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5645 * Description of Next_Wait_Union fix
5647 tSCC zNext_Wait_UnionName[] =
5651 * File name selection pattern
5653 tSCC zNext_Wait_UnionList[] =
5656 * Machine/OS name selection pattern
5658 #define apzNext_Wait_UnionMachs (const char**)NULL
5661 * content selection pattern - do fix if pattern found
5663 tSCC zNext_Wait_UnionSelect0[] =
5664 "wait\\(union wait";
5666 #define NEXT_WAIT_UNION_TEST_CT 1
5667 static tTestDesc aNext_Wait_UnionTests[] = {
5668 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5671 * Fix Command Arguments for Next_Wait_Union
5673 static const char* apzNext_Wait_UnionPatch[] = {
5678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5680 * Description of Nodeent_Syntax fix
5682 tSCC zNodeent_SyntaxName[] =
5686 * File name selection pattern
5688 tSCC zNodeent_SyntaxList[] =
5689 "netdnet/dnetdb.h\0";
5691 * Machine/OS name selection pattern
5693 #define apzNodeent_SyntaxMachs (const char**)NULL
5696 * content selection pattern - do fix if pattern found
5698 tSCC zNodeent_SyntaxSelect0[] =
5699 "char[ \t]*\\*na_addr[ \t]*$";
5701 #define NODEENT_SYNTAX_TEST_CT 1
5702 static tTestDesc aNodeent_SyntaxTests[] = {
5703 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5706 * Fix Command Arguments for Nodeent_Syntax
5708 static const char* apzNodeent_SyntaxPatch[] = {
5713 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5715 * Description of Openbsd_Null_Definition fix
5717 tSCC zOpenbsd_Null_DefinitionName[] =
5718 "openbsd_null_definition";
5721 * File name selection pattern
5723 tSCC zOpenbsd_Null_DefinitionList[] =
5724 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5726 * Machine/OS name selection pattern
5728 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5730 (const char*)NULL };
5733 * content selection pattern - do fix if pattern found
5735 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5738 #define OPENBSD_NULL_DEFINITION_TEST_CT 1
5739 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5740 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5743 * Fix Command Arguments for Openbsd_Null_Definition
5745 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5748 #ifdef __cplusplus\n\
5750 #define NULL\t__null\n\
5751 #else\t /* ! __GNUG__ */\n\
5753 #endif\t /* __GNUG__ */\n\
5754 #else\t /* ! __cplusplus */\n\
5755 #define NULL\t((void *)0)\n\
5756 #endif\t /* __cplusplus */\n\
5757 #endif\t /* !NULL */",
5758 "^#ifndef[ \t]*NULL\n\
5759 ^#ifdef[ \t]*__GNUG__\n\
5760 ^#define[ \t]*NULL[ \t]*__null\n\
5762 ^#define[ \t]*NULL[ \t]*0L\n\
5767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5769 * Description of Obstack_Lvalue_Cast fix
5771 tSCC zObstack_Lvalue_CastName[] =
5772 "obstack_lvalue_cast";
5775 * File name selection pattern
5777 tSCC zObstack_Lvalue_CastList[] =
5780 * Machine/OS name selection pattern
5782 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5785 * content selection pattern - do fix if pattern found
5787 tSCC zObstack_Lvalue_CastSelect0[] =
5788 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5790 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5791 static tTestDesc aObstack_Lvalue_CastTests[] = {
5792 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5795 * Fix Command Arguments for Obstack_Lvalue_Cast
5797 static const char* apzObstack_Lvalue_CastPatch[] = {
5799 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5802 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5804 * Description of Openbsd_Va_Start fix
5806 tSCC zOpenbsd_Va_StartName[] =
5810 * File name selection pattern
5812 tSCC zOpenbsd_Va_StartList[] =
5815 * Machine/OS name selection pattern
5817 tSCC* apzOpenbsd_Va_StartMachs[] = {
5819 (const char*)NULL };
5822 * content selection pattern - do fix if pattern found
5824 tSCC zOpenbsd_Va_StartSelect0[] =
5825 "__builtin_stdarg_start";
5827 #define OPENBSD_VA_START_TEST_CT 1
5828 static tTestDesc aOpenbsd_Va_StartTests[] = {
5829 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5832 * Fix Command Arguments for Openbsd_Va_Start
5834 static const char* apzOpenbsd_Va_StartPatch[] = {
5836 "__builtin_va_start",
5839 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5841 * Description of Osf_Namespace_A fix
5843 tSCC zOsf_Namespace_AName[] =
5847 * File name selection pattern
5849 tSCC zOsf_Namespace_AList[] =
5850 "reg_types.h\0sys/lc_core.h\0";
5852 * Machine/OS name selection pattern
5854 #define apzOsf_Namespace_AMachs (const char**)NULL
5857 * perform the 'test' shell command - do fix on success
5859 tSCC zOsf_Namespace_ATest0[] =
5861 tSCC zOsf_Namespace_ATest1[] =
5862 " -r sys/lc_core.h";
5863 tSCC zOsf_Namespace_ATest2[] =
5864 " -n \"`grep '} regex_t;' reg_types.h`\"";
5865 tSCC zOsf_Namespace_ATest3[] =
5866 " -z \"`grep __regex_t regex.h`\"";
5868 #define OSF_NAMESPACE_A_TEST_CT 4
5869 static tTestDesc aOsf_Namespace_ATests[] = {
5870 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5871 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5872 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5873 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5876 * Fix Command Arguments for Osf_Namespace_A
5878 static const char* apzOsf_Namespace_APatch[] = {
5881 "reg(ex|off|match)_t",
5884 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5886 * Description of Osf_Namespace_C fix
5888 tSCC zOsf_Namespace_CName[] =
5892 * File name selection pattern
5894 tSCC zOsf_Namespace_CList[] =
5897 * Machine/OS name selection pattern
5899 #define apzOsf_Namespace_CMachs (const char**)NULL
5902 * content selection pattern - do fix if pattern found
5904 tSCC zOsf_Namespace_CSelect0[] =
5905 "#include <reg_types.h>.*";
5908 * perform the 'test' shell command - do fix on success
5910 tSCC zOsf_Namespace_CTest0[] =
5912 tSCC zOsf_Namespace_CTest1[] =
5913 " -r sys/lc_core.h";
5914 tSCC zOsf_Namespace_CTest2[] =
5915 " -n \"`grep '} regex_t;' reg_types.h`\"";
5916 tSCC zOsf_Namespace_CTest3[] =
5917 " -z \"`grep __regex_t regex.h`\"";
5919 #define OSF_NAMESPACE_C_TEST_CT 5
5920 static tTestDesc aOsf_Namespace_CTests[] = {
5921 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
5922 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
5923 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
5924 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
5925 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
5928 * Fix Command Arguments for Osf_Namespace_C
5930 static const char* apzOsf_Namespace_CPatch[] = {
5933 typedef __regex_t\tregex_t;\n\
5934 typedef __regoff_t\tregoff_t;\n\
5935 typedef __regmatch_t\tregmatch_t;",
5938 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5940 * Description of Pthread_Incomplete_Struct_Argument fix
5942 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
5943 "pthread_incomplete_struct_argument";
5946 * File name selection pattern
5948 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
5951 * Machine/OS name selection pattern
5953 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
5956 * content selection pattern - do fix if pattern found
5958 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
5959 "struct __jmp_buf_tag";
5961 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
5962 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
5963 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
5966 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
5968 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
5971 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
5974 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5976 * Description of Read_Ret_Type fix
5978 tSCC zRead_Ret_TypeName[] =
5982 * File name selection pattern
5984 tSCC zRead_Ret_TypeList[] =
5987 * Machine/OS name selection pattern
5989 #define apzRead_Ret_TypeMachs (const char**)NULL
5992 * content selection pattern - do fix if pattern found
5994 tSCC zRead_Ret_TypeSelect0[] =
5995 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
5997 #define READ_RET_TYPE_TEST_CT 1
5998 static tTestDesc aRead_Ret_TypeTests[] = {
5999 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
6002 * Fix Command Arguments for Read_Ret_Type
6004 static const char* apzRead_Ret_TypePatch[] = {
6006 "extern unsigned int fread(), fwrite();\n\
6008 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
6011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6013 * Description of Rpc_Xdr_Lvalue_Cast_A fix
6015 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
6016 "rpc_xdr_lvalue_cast_a";
6019 * File name selection pattern
6021 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
6024 * Machine/OS name selection pattern
6026 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
6029 * content selection pattern - do fix if pattern found
6031 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
6032 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
6035 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
6036 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
6037 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
6040 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
6042 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
6044 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
6047 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6049 * Description of Rpc_Xdr_Lvalue_Cast_B fix
6051 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
6052 "rpc_xdr_lvalue_cast_b";
6055 * File name selection pattern
6057 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
6060 * Machine/OS name selection pattern
6062 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
6065 * content selection pattern - do fix if pattern found
6067 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
6068 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
6071 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
6072 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
6073 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
6076 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
6078 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
6080 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
6083 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6085 * Description of Rs6000_Double fix
6087 tSCC zRs6000_DoubleName[] =
6091 * File name selection pattern
6093 tSCC zRs6000_DoubleList[] =
6096 * Machine/OS name selection pattern
6098 #define apzRs6000_DoubleMachs (const char**)NULL
6101 * content selection pattern - do fix if pattern found
6103 tSCC zRs6000_DoubleSelect0[] =
6104 "[^a-zA-Z_]class\\(";
6106 #define RS6000_DOUBLE_TEST_CT 1
6107 static tTestDesc aRs6000_DoubleTests[] = {
6108 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
6111 * Fix Command Arguments for Rs6000_Double
6113 static const char* apzRs6000_DoublePatch[] = {
6115 "#ifndef __cplusplus\n\
6118 "^.*[^a-zA-Z_]class\\(.*",
6121 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6123 * Description of Rs6000_Fchmod fix
6125 tSCC zRs6000_FchmodName[] =
6129 * File name selection pattern
6131 tSCC zRs6000_FchmodList[] =
6134 * Machine/OS name selection pattern
6136 #define apzRs6000_FchmodMachs (const char**)NULL
6139 * content selection pattern - do fix if pattern found
6141 tSCC zRs6000_FchmodSelect0[] =
6142 "fchmod\\(char \\*";
6144 #define RS6000_FCHMOD_TEST_CT 1
6145 static tTestDesc aRs6000_FchmodTests[] = {
6146 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
6149 * Fix Command Arguments for Rs6000_Fchmod
6151 static const char* apzRs6000_FchmodPatch[] = {
6156 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6158 * Description of Rs6000_Param fix
6160 tSCC zRs6000_ParamName[] =
6164 * File name selection pattern
6166 tSCC zRs6000_ParamList[] =
6167 "stdio.h\0unistd.h\0";
6169 * Machine/OS name selection pattern
6171 #define apzRs6000_ParamMachs (const char**)NULL
6174 * content selection pattern - do fix if pattern found
6176 tSCC zRs6000_ParamSelect0[] =
6177 "rename\\(const char \\*old, const char \\*new\\)";
6179 #define RS6000_PARAM_TEST_CT 1
6180 static tTestDesc aRs6000_ParamTests[] = {
6181 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
6184 * Fix Command Arguments for Rs6000_Param
6186 static const char* apzRs6000_ParamPatch[] = {
6188 "rename(const char *_old, const char *_new)",
6191 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6193 * Description of Solaris___Restrict fix
6195 tSCC zSolaris___RestrictName[] =
6196 "solaris___restrict";
6199 * File name selection pattern
6201 tSCC zSolaris___RestrictList[] =
6202 "sys/feature_tests.h\0";
6204 * Machine/OS name selection pattern
6206 tSCC* apzSolaris___RestrictMachs[] = {
6208 (const char*)NULL };
6211 * content selection pattern - do fix if pattern found
6213 tSCC zSolaris___RestrictSelect0[] =
6214 "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
6216 #define SOLARIS___RESTRICT_TEST_CT 1
6217 static tTestDesc aSolaris___RestrictTests[] = {
6218 { TT_EGREP, zSolaris___RestrictSelect0, (regex_t*)NULL }, };
6221 * Fix Command Arguments for Solaris___Restrict
6223 static const char* apzSolaris___RestrictPatch[] = {
6225 "#ifdef __cplusplus\n\
6226 #define\t_RESTRICT_KYWD\t__restrict\n\
6232 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6234 * Description of Solaris_Complex fix
6236 tSCC zSolaris_ComplexName[] =
6240 * File name selection pattern
6242 tSCC zSolaris_ComplexList[] =
6245 * Machine/OS name selection pattern
6247 tSCC* apzSolaris_ComplexMachs[] = {
6249 (const char*)NULL };
6252 * content selection pattern - do fix if pattern found
6254 tSCC zSolaris_ComplexSelect0[] =
6255 "#define[ \t]_Complex_I[ \t]_Complex_I";
6257 #define SOLARIS_COMPLEX_TEST_CT 1
6258 static tTestDesc aSolaris_ComplexTests[] = {
6259 { TT_EGREP, zSolaris_ComplexSelect0, (regex_t*)NULL }, };
6262 * Fix Command Arguments for Solaris_Complex
6264 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
6265 "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
6266 "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
6267 "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
6268 "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
6271 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6273 * Description of Solaris_Complex_Cxx fix
6275 tSCC zSolaris_Complex_CxxName[] =
6276 "solaris_complex_cxx";
6279 * File name selection pattern
6281 tSCC zSolaris_Complex_CxxList[] =
6284 * Machine/OS name selection pattern
6286 tSCC* apzSolaris_Complex_CxxMachs[] = {
6288 (const char*)NULL };
6289 #define SOLARIS_COMPLEX_CXX_TEST_CT 0
6290 #define aSolaris_Complex_CxxTests (tTestDesc*)NULL
6293 * Fix Command Arguments for Solaris_Complex_Cxx
6295 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
6296 "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
6297 #ifdef\t__cplusplus\\\n\
6300 "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
6301 #ifdef\t__cplusplus\\\n\
6306 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6308 * Description of Solaris_Cond_Init fix
6310 tSCC zSolaris_Cond_InitName[] =
6311 "solaris_cond_init";
6314 * File name selection pattern
6316 tSCC zSolaris_Cond_InitList[] =
6319 * Machine/OS name selection pattern
6321 tSCC* apzSolaris_Cond_InitMachs[] = {
6323 (const char*)NULL };
6326 * content selection pattern - do fix if pattern found
6328 tSCC zSolaris_Cond_InitSelect0[] =
6329 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6331 #define SOLARIS_COND_INIT_TEST_CT 1
6332 static tTestDesc aSolaris_Cond_InitTests[] = {
6333 { TT_EGREP, zSolaris_Cond_InitSelect0, (regex_t*)NULL }, };
6336 * Fix Command Arguments for Solaris_Cond_Init
6338 static const char* apzSolaris_Cond_InitPatch[] = {
6341 "^(#define[ \t]+PTHREAD_COND_INITIALIZER[ \t]+\\{.*0)(\\},[ \t]*0\\}.*)$",
6344 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6346 * Description of Solaris_Cxx_Linkage fix
6348 tSCC zSolaris_Cxx_LinkageName[] =
6349 "solaris_cxx_linkage";
6352 * File name selection pattern
6354 tSCC zSolaris_Cxx_LinkageList[] =
6355 "iso/stdlib_iso.h\0";
6357 * Machine/OS name selection pattern
6359 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
6361 (const char*)NULL };
6364 * content selection pattern - do fix if pattern found
6366 tSCC zSolaris_Cxx_LinkageSelect0[] =
6367 "(#if __cplusplus >= 199711L)\n\
6368 (extern \"C\\+\\+\" \\{\n\
6369 )(.*(bsearch|qsort).*)";
6371 #define SOLARIS_CXX_LINKAGE_TEST_CT 1
6372 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
6373 { TT_EGREP, zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
6376 * Fix Command Arguments for Solaris_Cxx_Linkage
6378 static const char* apzSolaris_Cxx_LinkagePatch[] = {
6384 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6386 * Description of Solaris_Getc_Strict_Stdc fix
6388 tSCC zSolaris_Getc_Strict_StdcName[] =
6389 "solaris_getc_strict_stdc";
6392 * File name selection pattern
6394 tSCC zSolaris_Getc_Strict_StdcList[] =
6395 "iso/stdio_iso.h\0";
6397 * Machine/OS name selection pattern
6399 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
6401 (const char*)NULL };
6404 * content selection pattern - do fix if pattern found
6406 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
6407 "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
6409 #define SOLARIS_GETC_STRICT_STDC_TEST_CT 1
6410 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
6411 { TT_EGREP, zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
6414 * Fix Command Arguments for Solaris_Getc_Strict_Stdc
6416 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
6418 "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
6421 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6423 * Description of Solaris_Longjmp_Noreturn fix
6425 tSCC zSolaris_Longjmp_NoreturnName[] =
6426 "solaris_longjmp_noreturn";
6429 * File name selection pattern
6431 tSCC zSolaris_Longjmp_NoreturnList[] =
6432 "iso/setjmp_iso.h\0";
6434 * Machine/OS name selection pattern
6436 tSCC* apzSolaris_Longjmp_NoreturnMachs[] = {
6438 (const char*)NULL };
6441 * content selection pattern - do fix if pattern found
6443 tSCC zSolaris_Longjmp_NoreturnSelect0[] =
6444 "(.*longjmp\\(jmp_buf.*[^)]+\\));";
6447 * content bypass pattern - skip fix if pattern found
6449 tSCC zSolaris_Longjmp_NoreturnBypass0[] =
6452 #define SOLARIS_LONGJMP_NORETURN_TEST_CT 2
6453 static tTestDesc aSolaris_Longjmp_NoreturnTests[] = {
6454 { TT_NEGREP, zSolaris_Longjmp_NoreturnBypass0, (regex_t*)NULL },
6455 { TT_EGREP, zSolaris_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
6458 * Fix Command Arguments for Solaris_Longjmp_Noreturn
6460 static const char* apzSolaris_Longjmp_NoreturnPatch[] = {
6462 "%1 __attribute__ ((__noreturn__));",
6465 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6467 * Description of Solaris_Math_1 fix
6469 tSCC zSolaris_Math_1Name[] =
6473 * File name selection pattern
6475 tSCC zSolaris_Math_1List[] =
6478 * Machine/OS name selection pattern
6480 #define apzSolaris_Math_1Machs (const char**)NULL
6483 * content selection pattern - do fix if pattern found
6485 tSCC zSolaris_Math_1Select0[] =
6486 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6489 * content bypass pattern - skip fix if pattern found
6491 tSCC zSolaris_Math_1Bypass0[] =
6494 #define SOLARIS_MATH_1_TEST_CT 2
6495 static tTestDesc aSolaris_Math_1Tests[] = {
6496 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
6497 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
6500 * Fix Command Arguments for Solaris_Math_1
6502 static const char* apzSolaris_Math_1Patch[] = {
6504 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
6505 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
6508 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6510 * Description of Solaris_Math_2 fix
6512 tSCC zSolaris_Math_2Name[] =
6516 * File name selection pattern
6518 tSCC zSolaris_Math_2List[] =
6521 * Machine/OS name selection pattern
6523 #define apzSolaris_Math_2Machs (const char**)NULL
6526 * content selection pattern - do fix if pattern found
6528 tSCC zSolaris_Math_2Select0[] =
6529 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6532 * content bypass pattern - skip fix if pattern found
6534 tSCC zSolaris_Math_2Bypass0[] =
6537 #define SOLARIS_MATH_2_TEST_CT 2
6538 static tTestDesc aSolaris_Math_2Tests[] = {
6539 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
6540 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
6543 * Fix Command Arguments for Solaris_Math_2
6545 static const char* apzSolaris_Math_2Patch[] = {
6547 "#define\tINFINITY\t(__builtin_inff())",
6548 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
6551 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6553 * Description of Solaris_Math_3 fix
6555 tSCC zSolaris_Math_3Name[] =
6559 * File name selection pattern
6561 tSCC zSolaris_Math_3List[] =
6564 * Machine/OS name selection pattern
6566 #define apzSolaris_Math_3Machs (const char**)NULL
6569 * content selection pattern - do fix if pattern found
6571 tSCC zSolaris_Math_3Select0[] =
6572 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6575 * content bypass pattern - skip fix if pattern found
6577 tSCC zSolaris_Math_3Bypass0[] =
6580 #define SOLARIS_MATH_3_TEST_CT 2
6581 static tTestDesc aSolaris_Math_3Tests[] = {
6582 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
6583 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
6586 * Fix Command Arguments for Solaris_Math_3
6588 static const char* apzSolaris_Math_3Patch[] = {
6590 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6591 "^#define[ \t]+NAN[ \t]+__builtin_nan",
6594 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6596 * Description of Solaris_Math_4 fix
6598 tSCC zSolaris_Math_4Name[] =
6602 * File name selection pattern
6604 tSCC zSolaris_Math_4List[] =
6607 * Machine/OS name selection pattern
6609 #define apzSolaris_Math_4Machs (const char**)NULL
6612 * content selection pattern - do fix if pattern found
6614 tSCC zSolaris_Math_4Select0[] =
6615 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6618 * content bypass pattern - skip fix if pattern found
6620 tSCC zSolaris_Math_4Bypass0[] =
6623 #define SOLARIS_MATH_4_TEST_CT 2
6624 static tTestDesc aSolaris_Math_4Tests[] = {
6625 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
6626 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
6629 * Fix Command Arguments for Solaris_Math_4
6631 static const char* apzSolaris_Math_4Patch[] = {
6633 "#define\tfpclassify(x) \\\n\
6634 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6635 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6638 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6640 * Description of Solaris_Math_8 fix
6642 tSCC zSolaris_Math_8Name[] =
6646 * File name selection pattern
6648 tSCC zSolaris_Math_8List[] =
6651 * Machine/OS name selection pattern
6653 #define apzSolaris_Math_8Machs (const char**)NULL
6656 * content selection pattern - do fix if pattern found
6658 tSCC zSolaris_Math_8Select0[] =
6659 "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
6662 * content bypass pattern - skip fix if pattern found
6664 tSCC zSolaris_Math_8Bypass0[] =
6667 #define SOLARIS_MATH_8_TEST_CT 2
6668 static tTestDesc aSolaris_Math_8Tests[] = {
6669 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
6670 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
6673 * Fix Command Arguments for Solaris_Math_8
6675 static const char* apzSolaris_Math_8Patch[] = {
6677 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6678 \t\t\t ? __builtin_signbitf(x) \\\n\
6679 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
6680 \t\t\t ? __builtin_signbitl(x) \\\n\
6681 \t\t\t : __builtin_signbit(x))",
6682 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6687 * Description of Solaris_Math_9 fix
6689 tSCC zSolaris_Math_9Name[] =
6693 * File name selection pattern
6695 tSCC zSolaris_Math_9List[] =
6698 * Machine/OS name selection pattern
6700 #define apzSolaris_Math_9Machs (const char**)NULL
6703 * content selection pattern - do fix if pattern found
6705 tSCC zSolaris_Math_9Select0[] =
6706 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6709 * content bypass pattern - skip fix if pattern found
6711 tSCC zSolaris_Math_9Bypass0[] =
6714 #define SOLARIS_MATH_9_TEST_CT 2
6715 static tTestDesc aSolaris_Math_9Tests[] = {
6716 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
6717 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
6720 * Fix Command Arguments for Solaris_Math_9
6722 static const char* apzSolaris_Math_9Patch[] = {
6724 "#define\t%1(x, y)%2__builtin_%1(x, y)",
6725 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6728 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6730 * Description of Solaris_Math_10 fix
6732 tSCC zSolaris_Math_10Name[] =
6736 * File name selection pattern
6738 tSCC zSolaris_Math_10List[] =
6741 * Machine/OS name selection pattern
6743 #define apzSolaris_Math_10Machs (const char**)NULL
6746 * content selection pattern - do fix if pattern found
6748 tSCC zSolaris_Math_10Select0[] =
6749 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6751 #define SOLARIS_MATH_10_TEST_CT 1
6752 static tTestDesc aSolaris_Math_10Tests[] = {
6753 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
6756 * Fix Command Arguments for Solaris_Math_10
6758 static const char* apzSolaris_Math_10Patch[] = {
6760 "#define\tisinf(x) __builtin_isinf(x)",
6761 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6762 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6763 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6764 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6767 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6769 * Description of Solaris_Mutex_Init_2 fix
6771 tSCC zSolaris_Mutex_Init_2Name[] =
6772 "solaris_mutex_init_2";
6775 * File name selection pattern
6777 tSCC zSolaris_Mutex_Init_2List[] =
6780 * Machine/OS name selection pattern
6782 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6783 "*-*-solaris2.[0-9]",
6784 "*-*-solaris2.[0-9][!0-9]*",
6785 (const char*)NULL };
6788 * content selection pattern - do fix if pattern found
6790 tSCC zSolaris_Mutex_Init_2Select0[] =
6791 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6793 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
6794 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6795 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6798 * Fix Command Arguments for Solaris_Mutex_Init_2
6800 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6802 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6807 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6808 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6811 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6813 * Description of Solaris_Pow_Int_Overload fix
6815 tSCC zSolaris_Pow_Int_OverloadName[] =
6816 "solaris_pow_int_overload";
6819 * File name selection pattern
6821 tSCC zSolaris_Pow_Int_OverloadList[] =
6824 * Machine/OS name selection pattern
6826 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
6828 (const char*)NULL };
6831 * content selection pattern - do fix if pattern found
6833 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
6834 "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
6837 #define SOLARIS_POW_INT_OVERLOAD_TEST_CT 1
6838 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
6839 { TT_EGREP, zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
6842 * Fix Command Arguments for Solaris_Pow_Int_Overload
6844 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
6846 "#ifndef __GXX_EXPERIMENTAL_CXX0X__\n\
6851 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6853 * Description of Solaris_Rwlock_Init_1 fix
6855 tSCC zSolaris_Rwlock_Init_1Name[] =
6856 "solaris_rwlock_init_1";
6859 * File name selection pattern
6861 tSCC zSolaris_Rwlock_Init_1List[] =
6864 * Machine/OS name selection pattern
6866 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6868 (const char*)NULL };
6871 * content selection pattern - do fix if pattern found
6873 tSCC zSolaris_Rwlock_Init_1Select0[] =
6874 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6876 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
6877 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6878 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6881 * Fix Command Arguments for Solaris_Rwlock_Init_1
6883 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6885 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6888 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6890 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6893 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6895 * Description of Solaris_Once_Init_1 fix
6897 tSCC zSolaris_Once_Init_1Name[] =
6898 "solaris_once_init_1";
6901 * File name selection pattern
6903 tSCC zSolaris_Once_Init_1List[] =
6906 * Machine/OS name selection pattern
6908 tSCC* apzSolaris_Once_Init_1Machs[] = {
6910 (const char*)NULL };
6913 * content selection pattern - do fix if pattern found
6915 tSCC zSolaris_Once_Init_1Select0[] =
6916 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6918 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6919 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6920 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
6923 * Fix Command Arguments for Solaris_Once_Init_1
6925 static const char* apzSolaris_Once_Init_1Patch[] = {
6928 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
6931 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6933 * Description of Solaris_Once_Init_2 fix
6935 tSCC zSolaris_Once_Init_2Name[] =
6936 "solaris_once_init_2";
6939 * File name selection pattern
6941 tSCC zSolaris_Once_Init_2List[] =
6944 * Machine/OS name selection pattern
6946 tSCC* apzSolaris_Once_Init_2Machs[] = {
6947 "*-*-solaris2.[0-9]",
6948 "*-*-solaris2.[0-9][!0-9]*",
6949 (const char*)NULL };
6952 * content selection pattern - do fix if pattern found
6954 tSCC zSolaris_Once_Init_2Select0[] =
6955 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6957 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
6958 static tTestDesc aSolaris_Once_Init_2Tests[] = {
6959 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
6962 * Fix Command Arguments for Solaris_Once_Init_2
6964 static const char* apzSolaris_Once_Init_2Patch[] = {
6966 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6969 %1{0}, {0}, {0}, {%3}%4\n\
6971 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
6974 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6976 * Description of Solaris_Int_Const fix
6978 tSCC zSolaris_Int_ConstName[] =
6979 "solaris_int_const";
6982 * File name selection pattern
6984 tSCC zSolaris_Int_ConstList[] =
6985 "sys/int_const.h\0";
6987 * Machine/OS name selection pattern
6989 tSCC* apzSolaris_Int_ConstMachs[] = {
6991 (const char*)NULL };
6994 * content selection pattern - do fix if pattern found
6996 tSCC zSolaris_Int_ConstSelect0[] =
6997 "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
6999 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
7001 #define SOLARIS_INT_CONST_TEST_CT 1
7002 static tTestDesc aSolaris_Int_ConstTests[] = {
7003 { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
7006 * Fix Command Arguments for Solaris_Int_Const
7008 static const char* apzSolaris_Int_ConstPatch[] = {
7010 "#define\tUINT8_C(c)\t(c)\n\
7012 #define\tUINT16_C(c)\t(c)",
7015 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7017 * Description of Solaris_Int_Limits_1 fix
7019 tSCC zSolaris_Int_Limits_1Name[] =
7020 "solaris_int_limits_1";
7023 * File name selection pattern
7025 tSCC zSolaris_Int_Limits_1List[] =
7026 "sys/int_limits.h\0";
7028 * Machine/OS name selection pattern
7030 tSCC* apzSolaris_Int_Limits_1Machs[] = {
7032 (const char*)NULL };
7035 * content selection pattern - do fix if pattern found
7037 tSCC zSolaris_Int_Limits_1Select0[] =
7038 "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
7039 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
7041 #define SOLARIS_INT_LIMITS_1_TEST_CT 1
7042 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
7043 { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
7046 * Fix Command Arguments for Solaris_Int_Limits_1
7048 static const char* apzSolaris_Int_Limits_1Patch[] = {
7050 "#define\tUINT8_MAX\t(255)\n\
7051 #define\tUINT16_MAX\t(65535)",
7054 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7056 * Description of Solaris_Int_Limits_2 fix
7058 tSCC zSolaris_Int_Limits_2Name[] =
7059 "solaris_int_limits_2";
7062 * File name selection pattern
7064 tSCC zSolaris_Int_Limits_2List[] =
7065 "sys/int_limits.h\0";
7067 * Machine/OS name selection pattern
7069 tSCC* apzSolaris_Int_Limits_2Machs[] = {
7071 (const char*)NULL };
7074 * content selection pattern - do fix if pattern found
7076 tSCC zSolaris_Int_Limits_2Select0[] =
7077 "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
7079 #define SOLARIS_INT_LIMITS_2_TEST_CT 1
7080 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
7081 { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
7084 * Fix Command Arguments for Solaris_Int_Limits_2
7086 static const char* apzSolaris_Int_Limits_2Patch[] = {
7088 "#define\t%1_FAST16_%2 %132_%2",
7091 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7093 * Description of Solaris_Int_Limits_3 fix
7095 tSCC zSolaris_Int_Limits_3Name[] =
7096 "solaris_int_limits_3";
7099 * File name selection pattern
7101 tSCC zSolaris_Int_Limits_3List[] =
7102 "sys/int_limits.h\0";
7104 * Machine/OS name selection pattern
7106 tSCC* apzSolaris_Int_Limits_3Machs[] = {
7108 (const char*)NULL };
7111 * content selection pattern - do fix if pattern found
7113 tSCC zSolaris_Int_Limits_3Select0[] =
7114 "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
7116 #define SOLARIS_INT_LIMITS_3_TEST_CT 1
7117 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
7118 { TT_EGREP, zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
7121 * Fix Command Arguments for Solaris_Int_Limits_3
7123 static const char* apzSolaris_Int_Limits_3Patch[] = {
7125 "#define\tSIZE_MAX\t4294967295U",
7128 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7130 * Description of Solaris_Int_Types fix
7132 tSCC zSolaris_Int_TypesName[] =
7133 "solaris_int_types";
7136 * File name selection pattern
7138 tSCC zSolaris_Int_TypesList[] =
7139 "sys/int_types.h\0";
7141 * Machine/OS name selection pattern
7143 #define apzSolaris_Int_TypesMachs (const char**)NULL
7146 * content selection pattern - do fix if pattern found
7148 tSCC zSolaris_Int_TypesSelect0[] =
7149 "__STDC__ - 0 == 0";
7152 * content bypass pattern - skip fix if pattern found
7154 tSCC zSolaris_Int_TypesBypass0[] =
7157 #define SOLARIS_INT_TYPES_TEST_CT 2
7158 static tTestDesc aSolaris_Int_TypesTests[] = {
7159 { TT_NEGREP, zSolaris_Int_TypesBypass0, (regex_t*)NULL },
7160 { TT_EGREP, zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
7163 * Fix Command Arguments for Solaris_Int_Types
7165 static const char* apzSolaris_Int_TypesPatch[] = {
7167 "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
7170 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7172 * Description of Solaris_Posix_Spawn_Restrict fix
7174 tSCC zSolaris_Posix_Spawn_RestrictName[] =
7175 "solaris_posix_spawn_restrict";
7178 * File name selection pattern
7180 tSCC zSolaris_Posix_Spawn_RestrictList[] =
7183 * Machine/OS name selection pattern
7185 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
7187 (const char*)NULL };
7190 * content selection pattern - do fix if pattern found
7192 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
7193 "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
7195 #define SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT 1
7196 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
7197 { TT_EGREP, zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
7200 * Fix Command Arguments for Solaris_Posix_Spawn_Restrict
7202 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
7204 "%1*_RESTRICT_KYWD %2%3",
7207 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7209 * Description of Solaris_Std___Filbuf fix
7211 tSCC zSolaris_Std___FilbufName[] =
7212 "solaris_std___filbuf";
7215 * File name selection pattern
7217 tSCC zSolaris_Std___FilbufList[] =
7220 * Machine/OS name selection pattern
7222 tSCC* apzSolaris_Std___FilbufMachs[] = {
7224 (const char*)NULL };
7227 * content selection pattern - do fix if pattern found
7229 tSCC zSolaris_Std___FilbufSelect0[] =
7230 "(using std::perror;\n\
7234 * content bypass pattern - skip fix if pattern found
7236 tSCC zSolaris_Std___FilbufBypass0[] =
7237 "using std::__filbuf";
7239 #define SOLARIS_STD___FILBUF_TEST_CT 2
7240 static tTestDesc aSolaris_Std___FilbufTests[] = {
7241 { TT_NEGREP, zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
7242 { TT_EGREP, zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
7245 * Fix Command Arguments for Solaris_Std___Filbuf
7247 static const char* apzSolaris_Std___FilbufPatch[] = {
7250 using std::__filbuf;\n\
7251 using std::__flsbuf;\n\
7256 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7258 * Description of Solaris_Stdio_Tag fix
7260 tSCC zSolaris_Stdio_TagName[] =
7261 "solaris_stdio_tag";
7264 * File name selection pattern
7266 tSCC zSolaris_Stdio_TagList[] =
7269 * Machine/OS name selection pattern
7271 #define apzSolaris_Stdio_TagMachs (const char**)NULL
7274 * content selection pattern - do fix if pattern found
7276 tSCC zSolaris_Stdio_TagSelect0[] =
7277 "__cplusplus < 54321L";
7280 * content bypass pattern - skip fix if pattern found
7282 tSCC zSolaris_Stdio_TagBypass0[] =
7285 #define SOLARIS_STDIO_TAG_TEST_CT 2
7286 static tTestDesc aSolaris_Stdio_TagTests[] = {
7287 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
7288 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
7291 * Fix Command Arguments for Solaris_Stdio_Tag
7293 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
7294 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
7297 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7299 * Description of Solaris_Sys_Va_List fix
7301 tSCC zSolaris_Sys_Va_ListName[] =
7302 "solaris_sys_va_list";
7305 * File name selection pattern
7307 tSCC zSolaris_Sys_Va_ListList[] =
7310 * Machine/OS name selection pattern
7312 tSCC* apzSolaris_Sys_Va_ListMachs[] = {
7313 "*-*-solaris2.[89]",
7314 (const char*)NULL };
7317 * content selection pattern - do fix if pattern found
7319 tSCC zSolaris_Sys_Va_ListSelect0[] =
7321 typedef void \\*__va_list;\n\
7323 typedef char \\*__va_list;\n\
7326 #define SOLARIS_SYS_VA_LIST_TEST_CT 1
7327 static tTestDesc aSolaris_Sys_Va_ListTests[] = {
7328 { TT_EGREP, zSolaris_Sys_Va_ListSelect0, (regex_t*)NULL }, };
7331 * Fix Command Arguments for Solaris_Sys_Va_List
7333 static const char* apzSolaris_Sys_Va_ListPatch[] = {
7336 typedef __builtin_va_list __va_list;\n\
7342 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7344 * Description of Statsswtch fix
7346 tSCC zStatsswtchName[] =
7350 * File name selection pattern
7352 tSCC zStatsswtchList[] =
7355 * Machine/OS name selection pattern
7357 #define apzStatsswtchMachs (const char**)NULL
7360 * content selection pattern - do fix if pattern found
7362 tSCC zStatsswtchSelect0[] =
7365 #define STATSSWTCH_TEST_CT 1
7366 static tTestDesc aStatsswtchTests[] = {
7367 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
7370 * Fix Command Arguments for Statsswtch
7372 static const char* apzStatsswtchPatch[] = {
7377 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7379 * Description of Stdio_Stdarg_H fix
7381 tSCC zStdio_Stdarg_HName[] =
7385 * File name selection pattern
7387 tSCC zStdio_Stdarg_HList[] =
7390 * Machine/OS name selection pattern
7392 tSCC* apzStdio_Stdarg_HMachs[] = {
7393 "*-*-solaris2.1[0-9]*",
7394 (const char*)NULL };
7397 * content bypass pattern - skip fix if pattern found
7399 tSCC zStdio_Stdarg_HBypass0[] =
7400 "include.*(stdarg.h|machine/ansi.h)";
7402 #define STDIO_STDARG_H_TEST_CT 1
7403 static tTestDesc aStdio_Stdarg_HTests[] = {
7404 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
7407 * Fix Command Arguments for Stdio_Stdarg_H
7409 static const char* apzStdio_Stdarg_HPatch[] = {
7411 "#define __need___va_list\n\
7412 #include <stdarg.h>\n",
7415 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7417 * Description of Stdio_Va_List fix
7419 tSCC zStdio_Va_ListName[] =
7423 * File name selection pattern
7425 tSCC zStdio_Va_ListList[] =
7426 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
7428 * Machine/OS name selection pattern
7430 tSCC* apzStdio_Va_ListMachs[] = {
7431 "*-*-solaris2.1[0-9]*",
7432 (const char*)NULL };
7435 * content bypass pattern - skip fix if pattern found
7437 tSCC zStdio_Va_ListBypass0[] =
7438 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7440 #define STDIO_VA_LIST_TEST_CT 1
7441 static tTestDesc aStdio_Va_ListTests[] = {
7442 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
7445 * Fix Command Arguments for Stdio_Va_List
7447 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
7448 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7449 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7450 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7451 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7452 s@ va_list@ __not_va_list__@\n\
7453 s@\\*va_list@*__not_va_list__@\n\
7454 s@ __va_list)@ __gnuc_va_list)@\n\
7455 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7456 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7457 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7458 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7459 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7460 s@VA_LIST@DUMMY_VA_LIST@\n\
7461 s@_Va_LIST@_VA_LIST@",
7464 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7466 * Description of Stdio_Va_List_Clients fix
7468 tSCC zStdio_Va_List_ClientsName[] =
7469 "stdio_va_list_clients";
7472 * File name selection pattern
7474 tSCC zStdio_Va_List_ClientsList[] =
7475 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
7477 * Machine/OS name selection pattern
7479 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
7482 * content bypass pattern - skip fix if pattern found
7484 tSCC zStdio_Va_List_ClientsBypass0[] =
7485 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7486 tSCC zStdio_Va_List_ClientsBypass1[] =
7487 "include <stdarg\\.h>|#ifdef va_start";
7489 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
7490 static tTestDesc aStdio_Va_List_ClientsTests[] = {
7491 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
7492 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
7495 * Fix Command Arguments for Stdio_Va_List_Clients
7497 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
7498 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7499 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7500 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7501 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7502 s@ va_list@ __not_va_list__@\n\
7503 s@\\*va_list@*__not_va_list__@\n\
7504 s@ __va_list)@ __gnuc_va_list)@\n\
7505 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7506 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7507 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7508 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7509 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7510 s@VA_LIST@DUMMY_VA_LIST@\n\
7511 s@_Va_LIST@_VA_LIST@",
7514 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7516 * Description of Strict_Ansi_Not fix
7518 tSCC zStrict_Ansi_NotName[] =
7522 * File name selection pattern
7524 #define zStrict_Ansi_NotList (char*)NULL
7526 * Machine/OS name selection pattern
7528 #define apzStrict_Ansi_NotMachs (const char**)NULL
7531 * content selection pattern - do fix if pattern found
7533 tSCC zStrict_Ansi_NotSelect0[] =
7534 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
7537 * content bypass pattern - skip fix if pattern found
7539 tSCC zStrict_Ansi_NotBypass0[] =
7540 "GNU and MIPS C compilers define __STDC__ differently";
7541 tSCC zStrict_Ansi_NotBypass1[] =
7542 "__SCO_VERSION__.*__STDC__ != 1";
7545 * perform the C function call test
7547 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
7549 #define STRICT_ANSI_NOT_TEST_CT 4
7550 static tTestDesc aStrict_Ansi_NotTests[] = {
7551 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
7552 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
7553 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7554 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
7557 * Fix Command Arguments for Strict_Ansi_Not
7559 static const char* apzStrict_Ansi_NotPatch[] = {
7561 "%1 !defined(__STRICT_ANSI__)",
7564 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7566 * Description of Strict_Ansi_Not_Ctd fix
7568 tSCC zStrict_Ansi_Not_CtdName[] =
7569 "strict_ansi_not_ctd";
7572 * File name selection pattern
7574 tSCC zStrict_Ansi_Not_CtdList[] =
7575 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
7577 * Machine/OS name selection pattern
7579 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
7582 * content selection pattern - do fix if pattern found
7584 tSCC zStrict_Ansi_Not_CtdSelect0[] =
7585 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7588 * perform the C function call test
7590 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7592 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
7593 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7594 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
7595 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7598 * Fix Command Arguments for Strict_Ansi_Not_Ctd
7600 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7602 "%1 !defined(__STRICT_ANSI__)",
7605 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7607 * Description of Strict_Ansi_Only fix
7609 tSCC zStrict_Ansi_OnlyName[] =
7613 * File name selection pattern
7615 #define zStrict_Ansi_OnlyList (char*)NULL
7617 * Machine/OS name selection pattern
7619 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7622 * content selection pattern - do fix if pattern found
7624 tSCC zStrict_Ansi_OnlySelect0[] =
7625 "^([ \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)";
7628 * perform the C function call test
7630 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7632 #define STRICT_ANSI_ONLY_TEST_CT 2
7633 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7634 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
7635 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7638 * Fix Command Arguments for Strict_Ansi_Only
7640 static const char* apzStrict_Ansi_OnlyPatch[] = {
7642 "%1 defined(__STRICT_ANSI__)",
7645 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7647 * Description of Struct_File fix
7649 tSCC zStruct_FileName[] =
7653 * File name selection pattern
7655 tSCC zStruct_FileList[] =
7658 * Machine/OS name selection pattern
7660 #define apzStruct_FileMachs (const char**)NULL
7663 * content selection pattern - do fix if pattern found
7665 tSCC zStruct_FileSelect0[] =
7666 "^.*xdrstdio_create.*struct __file_s";
7668 #define STRUCT_FILE_TEST_CT 1
7669 static tTestDesc aStruct_FileTests[] = {
7670 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
7673 * Fix Command Arguments for Struct_File
7675 static const char* apzStruct_FilePatch[] = {
7677 "struct __file_s;\n\
7681 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7683 * Description of Struct_Sockaddr fix
7685 tSCC zStruct_SockaddrName[] =
7689 * File name selection pattern
7691 tSCC zStruct_SockaddrList[] =
7694 * Machine/OS name selection pattern
7696 #define apzStruct_SockaddrMachs (const char**)NULL
7699 * content selection pattern - do fix if pattern found
7701 tSCC zStruct_SockaddrSelect0[] =
7702 "^.*authdes_create.*struct sockaddr[^_]";
7705 * content bypass pattern - skip fix if pattern found
7707 tSCC zStruct_SockaddrBypass0[] =
7709 tSCC zStruct_SockaddrBypass1[] =
7710 "struct sockaddr;\n";
7712 #define STRUCT_SOCKADDR_TEST_CT 3
7713 static tTestDesc aStruct_SockaddrTests[] = {
7714 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
7715 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
7716 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7719 * Fix Command Arguments for Struct_Sockaddr
7721 static const char* apzStruct_SockaddrPatch[] = {
7723 "struct sockaddr;\n\
7727 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7729 * Description of Sun_Auth_Proto fix
7731 tSCC zSun_Auth_ProtoName[] =
7735 * File name selection pattern
7737 tSCC zSun_Auth_ProtoList[] =
7738 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7740 * Machine/OS name selection pattern
7742 #define apzSun_Auth_ProtoMachs (const char**)NULL
7745 * content selection pattern - do fix if pattern found
7747 tSCC zSun_Auth_ProtoSelect0[] =
7748 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7751 * content bypass pattern - skip fix if pattern found
7753 tSCC zSun_Auth_ProtoBypass0[] =
7756 #define SUN_AUTH_PROTO_TEST_CT 2
7757 static tTestDesc aSun_Auth_ProtoTests[] = {
7758 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7759 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7762 * Fix Command Arguments for Sun_Auth_Proto
7764 static const char* apzSun_Auth_ProtoPatch[] = {
7766 "#ifdef __cplusplus\n\
7771 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7774 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7776 * Description of Sun_Bogus_Ifdef fix
7778 tSCC zSun_Bogus_IfdefName[] =
7782 * File name selection pattern
7784 tSCC zSun_Bogus_IfdefList[] =
7785 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7787 * Machine/OS name selection pattern
7789 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7792 * content selection pattern - do fix if pattern found
7794 tSCC zSun_Bogus_IfdefSelect0[] =
7795 "#ifdef(.*\\|\\|.*)";
7797 #define SUN_BOGUS_IFDEF_TEST_CT 1
7798 static tTestDesc aSun_Bogus_IfdefTests[] = {
7799 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7802 * Fix Command Arguments for Sun_Bogus_Ifdef
7804 static const char* apzSun_Bogus_IfdefPatch[] = {
7809 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7811 * Description of Sun_Catmacro fix
7813 tSCC zSun_CatmacroName[] =
7817 * File name selection pattern
7819 tSCC zSun_CatmacroList[] =
7820 "pixrect/memvar.h\0";
7822 * Machine/OS name selection pattern
7824 #define apzSun_CatmacroMachs (const char**)NULL
7827 * content selection pattern - do fix if pattern found
7829 tSCC zSun_CatmacroSelect0[] =
7830 "^#define[ \t]+CAT\\(a,b\\).*";
7832 #define SUN_CATMACRO_TEST_CT 1
7833 static tTestDesc aSun_CatmacroTests[] = {
7834 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
7837 * Fix Command Arguments for Sun_Catmacro
7839 static const char* apzSun_CatmacroPatch[] = {
7842 # define CAT(a,b) a##b\n\
7848 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7850 * Description of Sun_Malloc fix
7852 tSCC zSun_MallocName[] =
7856 * File name selection pattern
7858 tSCC zSun_MallocList[] =
7861 * Machine/OS name selection pattern
7863 #define apzSun_MallocMachs (const char**)NULL
7866 * content bypass pattern - skip fix if pattern found
7868 tSCC zSun_MallocBypass0[] =
7869 "_CLASSIC_ANSI_TYPES";
7871 #define SUN_MALLOC_TEST_CT 1
7872 static tTestDesc aSun_MallocTests[] = {
7873 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
7876 * Fix Command Arguments for Sun_Malloc
7878 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7879 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7880 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7881 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7882 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7883 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7886 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7888 * Description of Sun_Rusers_Semi fix
7890 tSCC zSun_Rusers_SemiName[] =
7894 * File name selection pattern
7896 tSCC zSun_Rusers_SemiList[] =
7897 "rpcsvc/rusers.h\0";
7899 * Machine/OS name selection pattern
7901 #define apzSun_Rusers_SemiMachs (const char**)NULL
7904 * content selection pattern - do fix if pattern found
7906 tSCC zSun_Rusers_SemiSelect0[] =
7909 #define SUN_RUSERS_SEMI_TEST_CT 1
7910 static tTestDesc aSun_Rusers_SemiTests[] = {
7911 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7914 * Fix Command Arguments for Sun_Rusers_Semi
7916 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7917 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7920 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7922 * Description of Sun_Signal fix
7924 tSCC zSun_SignalName[] =
7928 * File name selection pattern
7930 tSCC zSun_SignalList[] =
7931 "sys/signal.h\0signal.h\0";
7933 * Machine/OS name selection pattern
7935 #define apzSun_SignalMachs (const char**)NULL
7938 * content selection pattern - do fix if pattern found
7940 tSCC zSun_SignalSelect0[] =
7941 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
7943 #define SUN_SIGNAL_TEST_CT 1
7944 static tTestDesc aSun_SignalTests[] = {
7945 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
7948 * Fix Command Arguments for Sun_Signal
7950 static const char* apzSun_SignalPatch[] = {
7952 "#ifdef __cplusplus\n\
7953 void\t(*signal(...))(...);\n\
7959 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7961 * Description of Sunos_Strlen fix
7963 tSCC zSunos_StrlenName[] =
7967 * File name selection pattern
7969 tSCC zSunos_StrlenList[] =
7972 * Machine/OS name selection pattern
7974 #define apzSunos_StrlenMachs (const char**)NULL
7977 * content selection pattern - do fix if pattern found
7979 tSCC zSunos_StrlenSelect0[] =
7980 "int[ \t]*strlen\\(\\);(.*)";
7982 #define SUNOS_STRLEN_TEST_CT 1
7983 static tTestDesc aSunos_StrlenTests[] = {
7984 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
7987 * Fix Command Arguments for Sunos_Strlen
7989 static const char* apzSunos_StrlenPatch[] = {
7991 "__SIZE_TYPE__ strlen();%1",
7994 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7996 * Description of Svr4_Disable_Opt fix
7998 tSCC zSvr4_Disable_OptName[] =
8002 * File name selection pattern
8004 tSCC zSvr4_Disable_OptList[] =
8007 * Machine/OS name selection pattern
8009 #define apzSvr4_Disable_OptMachs (const char**)NULL
8012 * content selection pattern - do fix if pattern found
8014 tSCC zSvr4_Disable_OptSelect0[] =
8015 "#define.*__std_hdr_";
8017 #define SVR4_DISABLE_OPT_TEST_CT 1
8018 static tTestDesc aSvr4_Disable_OptTests[] = {
8019 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
8022 * Fix Command Arguments for Svr4_Disable_Opt
8024 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
8025 "-e", "/#define.*__std_hdr_/d",
8028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8030 * Description of Svr4_Getcwd fix
8032 tSCC zSvr4_GetcwdName[] =
8036 * File name selection pattern
8038 tSCC zSvr4_GetcwdList[] =
8039 "stdlib.h\0unistd.h\0prototypes.h\0";
8041 * Machine/OS name selection pattern
8043 #define apzSvr4_GetcwdMachs (const char**)NULL
8046 * content selection pattern - do fix if pattern found
8048 tSCC zSvr4_GetcwdSelect0[] =
8049 "getcwd\\(char \\*, int\\)";
8051 #define SVR4_GETCWD_TEST_CT 1
8052 static tTestDesc aSvr4_GetcwdTests[] = {
8053 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
8056 * Fix Command Arguments for Svr4_Getcwd
8058 static const char* apzSvr4_GetcwdPatch[] = {
8060 "getcwd(char *, size_t)",
8063 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8065 * Description of Svr4_Profil fix
8067 tSCC zSvr4_ProfilName[] =
8071 * File name selection pattern
8073 tSCC zSvr4_ProfilList[] =
8074 "stdlib.h\0unistd.h\0";
8076 * Machine/OS name selection pattern
8078 #define apzSvr4_ProfilMachs (const char**)NULL
8081 * content selection pattern - do fix if pattern found
8083 tSCC zSvr4_ProfilSelect0[] =
8084 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
8087 * content bypass pattern - skip fix if pattern found
8089 tSCC zSvr4_ProfilBypass0[] =
8092 #define SVR4_PROFIL_TEST_CT 2
8093 static tTestDesc aSvr4_ProfilTests[] = {
8094 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
8095 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
8098 * Fix Command Arguments for Svr4_Profil
8100 static const char* apzSvr4_ProfilPatch[] = {
8102 "profil(unsigned short *, size_t, int, unsigned int)",
8105 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8107 * Description of Svr4_Sighandler_Type fix
8109 tSCC zSvr4_Sighandler_TypeName[] =
8110 "svr4_sighandler_type";
8113 * File name selection pattern
8115 tSCC zSvr4_Sighandler_TypeList[] =
8118 * Machine/OS name selection pattern
8120 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
8123 * content selection pattern - do fix if pattern found
8125 tSCC zSvr4_Sighandler_TypeSelect0[] =
8126 "void *\\(\\*\\)\\(\\)";
8128 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
8129 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
8130 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
8133 * Fix Command Arguments for Svr4_Sighandler_Type
8135 static const char* apzSvr4_Sighandler_TypePatch[] = {
8140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8142 * Description of Svr4_Undeclared_Getrnge fix
8144 tSCC zSvr4_Undeclared_GetrngeName[] =
8145 "svr4_undeclared_getrnge";
8148 * File name selection pattern
8150 tSCC zSvr4_Undeclared_GetrngeList[] =
8153 * Machine/OS name selection pattern
8155 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
8158 * content selection pattern - do fix if pattern found
8160 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
8164 * content bypass pattern - skip fix if pattern found
8166 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
8167 "static void getrnge";
8169 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
8170 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
8171 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
8172 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
8175 * Fix Command Arguments for Svr4_Undeclared_Getrnge
8177 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
8180 static int getrnge ();",
8181 "^static int[ \t]+size;",
8184 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8186 * Description of Sysv68_String fix
8188 tSCC zSysv68_StringName[] =
8192 * File name selection pattern
8194 tSCC zSysv68_StringList[] =
8195 "testing.h\0string.h\0";
8197 * Machine/OS name selection pattern
8199 #define apzSysv68_StringMachs (const char**)NULL
8202 * content bypass pattern - skip fix if pattern found
8204 tSCC zSysv68_StringBypass0[] =
8205 "_CLASSIC_ANSI_TYPES";
8207 #define SYSV68_STRING_TEST_CT 1
8208 static tTestDesc aSysv68_StringTests[] = {
8209 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
8212 * Fix Command Arguments for Sysv68_String
8214 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
8215 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
8216 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
8217 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
8218 "-e", "/^extern char$/N",
8219 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
8220 "-e", "/^extern int$/N",
8221 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
8222 "-e", "/^\tstrncmp(),$/N",
8223 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
8224 extern unsigned int\\\n\
8228 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8230 * Description of Sysz_Stdlib_For_Sun fix
8232 tSCC zSysz_Stdlib_For_SunName[] =
8233 "sysz_stdlib_for_sun";
8236 * File name selection pattern
8238 tSCC zSysz_Stdlib_For_SunList[] =
8241 * Machine/OS name selection pattern
8243 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
8246 * content selection pattern - do fix if pattern found
8248 tSCC zSysz_Stdlib_For_SunSelect0[] =
8249 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
8252 * content bypass pattern - skip fix if pattern found
8254 tSCC zSysz_Stdlib_For_SunBypass0[] =
8255 "_CLASSIC_ANSI_TYPES";
8257 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
8258 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
8259 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
8260 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
8263 * Fix Command Arguments for Sysz_Stdlib_For_Sun
8265 static const char* apzSysz_Stdlib_For_SunPatch[] = {
8270 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8272 * Description of Thread_Keyword fix
8274 tSCC zThread_KeywordName[] =
8278 * File name selection pattern
8280 tSCC zThread_KeywordList[] =
8281 "pthread.h\0bits/sigthread.h\0";
8283 * Machine/OS name selection pattern
8285 #define apzThread_KeywordMachs (const char**)NULL
8288 * content selection pattern - do fix if pattern found
8290 tSCC zThread_KeywordSelect0[] =
8291 "([* ])__thread([,)])";
8293 #define THREAD_KEYWORD_TEST_CT 1
8294 static tTestDesc aThread_KeywordTests[] = {
8295 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
8298 * Fix Command Arguments for Thread_Keyword
8300 static const char* apzThread_KeywordPatch[] = {
8305 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8307 * Description of Tinfo_Cplusplus fix
8309 tSCC zTinfo_CplusplusName[] =
8313 * File name selection pattern
8315 tSCC zTinfo_CplusplusList[] =
8318 * Machine/OS name selection pattern
8320 #define apzTinfo_CplusplusMachs (const char**)NULL
8323 * content selection pattern - do fix if pattern found
8325 tSCC zTinfo_CplusplusSelect0[] =
8328 #define TINFO_CPLUSPLUS_TEST_CT 1
8329 static tTestDesc aTinfo_CplusplusTests[] = {
8330 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
8333 * Fix Command Arguments for Tinfo_Cplusplus
8335 static const char* apzTinfo_CplusplusPatch[] = {
8340 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8342 * Description of Ultrix_Const fix
8344 tSCC zUltrix_ConstName[] =
8348 * File name selection pattern
8350 tSCC zUltrix_ConstList[] =
8353 * Machine/OS name selection pattern
8355 #define apzUltrix_ConstMachs (const char**)NULL
8358 * content selection pattern - do fix if pattern found
8360 tSCC zUltrix_ConstSelect0[] =
8361 "perror\\( char \\*";
8363 #define ULTRIX_CONST_TEST_CT 1
8364 static tTestDesc aUltrix_ConstTests[] = {
8365 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
8368 * Fix Command Arguments for Ultrix_Const
8370 static const char* apzUltrix_ConstPatch[] = {
8373 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
8376 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8378 * Description of Ultrix_Const2 fix
8380 tSCC zUltrix_Const2Name[] =
8384 * File name selection pattern
8386 tSCC zUltrix_Const2List[] =
8389 * Machine/OS name selection pattern
8391 #define apzUltrix_Const2Machs (const char**)NULL
8394 * content selection pattern - do fix if pattern found
8396 tSCC zUltrix_Const2Select0[] =
8397 "\\*fopen\\( char \\*";
8399 #define ULTRIX_CONST2_TEST_CT 1
8400 static tTestDesc aUltrix_Const2Tests[] = {
8401 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
8404 * Fix Command Arguments for Ultrix_Const2
8406 static const char* apzUltrix_Const2Patch[] = {
8408 "%1( const char *%3, const char *",
8409 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
8412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8414 * Description of Va_I960_Macro fix
8416 tSCC zVa_I960_MacroName[] =
8420 * File name selection pattern
8422 tSCC zVa_I960_MacroList[] =
8423 "arch/i960/archI960.h\0";
8425 * Machine/OS name selection pattern
8427 #define apzVa_I960_MacroMachs (const char**)NULL
8430 * content selection pattern - do fix if pattern found
8432 tSCC zVa_I960_MacroSelect0[] =
8433 "__(vsiz|vali|vpad|alignof__)";
8435 #define VA_I960_MACRO_TEST_CT 1
8436 static tTestDesc aVa_I960_MacroTests[] = {
8437 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8440 * Fix Command Arguments for Va_I960_Macro
8442 static const char* apzVa_I960_MacroPatch[] = {
8447 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8449 * Description of Vms_Define_Can_Use_Extern_Prefix fix
8451 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
8452 "vms_define_can_use_extern_prefix";
8455 * File name selection pattern
8457 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
8458 "rtldef/decc$types.h\0";
8460 * Machine/OS name selection pattern
8462 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
8464 (const char*)NULL };
8467 * content selection pattern - do fix if pattern found
8469 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
8471 #[ \t]*if defined\\(__DECCXX\\)\n\
8472 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
8474 #define VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT 1
8475 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
8476 { TT_EGREP, zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
8479 * Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
8481 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
8483 "%0# elif defined (__GNUC__)\n\
8484 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
8487 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8489 * Description of Vms_Use_Pragma_Extern_Model fix
8491 tSCC zVms_Use_Pragma_Extern_ModelName[] =
8492 "vms_use_pragma_extern_model";
8495 * File name selection pattern
8497 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
8499 * Machine/OS name selection pattern
8501 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
8503 (const char*)NULL };
8506 * content selection pattern - do fix if pattern found
8508 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
8509 "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
8510 # pragma extern_model __save\n";
8512 #define VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT 1
8513 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
8514 { TT_EGREP, zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
8517 * Fix Command Arguments for Vms_Use_Pragma_Extern_Model
8519 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
8521 "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
8522 # pragma extern_model __save\n",
8525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8527 * Description of Vms_Disable_Decc_String_Builtins fix
8529 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
8530 "vms_disable_decc_string_builtins";
8533 * File name selection pattern
8535 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
8536 "rtldef/string.h\0";
8538 * Machine/OS name selection pattern
8540 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
8542 (const char*)NULL };
8545 * content selection pattern - do fix if pattern found
8547 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
8548 "#if !defined\\(__VAX\\)\n";
8550 #define VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT 1
8551 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
8552 { TT_EGREP, zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
8555 * Fix Command Arguments for Vms_Disable_Decc_String_Builtins
8557 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
8559 "#if !defined(__VAX) && !defined(__GNUC__)\n",
8562 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8564 * Description of Void_Null fix
8566 tSCC zVoid_NullName[] =
8570 * File name selection pattern
8572 tSCC zVoid_NullList[] =
8573 "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";
8575 * Machine/OS name selection pattern
8577 #define apzVoid_NullMachs (const char**)NULL
8580 * content selection pattern - do fix if pattern found
8582 tSCC zVoid_NullSelect0[] =
8583 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8586 * content bypass pattern - skip fix if pattern found
8588 tSCC zVoid_NullBypass0[] =
8590 tSCC zVoid_NullBypass1[] =
8593 #define VOID_NULL_TEST_CT 3
8594 static tTestDesc aVoid_NullTests[] = {
8595 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
8596 { TT_NEGREP, zVoid_NullBypass1, (regex_t*)NULL },
8597 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
8600 * Fix Command Arguments for Void_Null
8602 static const char* apzVoid_NullPatch[] = {
8607 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8609 * Description of Vxworks_Gcc_Problem fix
8611 tSCC zVxworks_Gcc_ProblemName[] =
8612 "vxworks_gcc_problem";
8615 * File name selection pattern
8617 tSCC zVxworks_Gcc_ProblemList[] =
8618 "types/vxTypesBase.h\0";
8620 * Machine/OS name selection pattern
8622 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8625 * content selection pattern - do fix if pattern found
8627 tSCC zVxworks_Gcc_ProblemSelect0[] =
8628 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8630 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
8631 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8632 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8635 * Fix Command Arguments for Vxworks_Gcc_Problem
8637 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8638 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8639 "-e", "/[ \t]size_t/i\\\n\
8640 #ifndef _GCC_SIZE_T\\\n\
8641 #define _GCC_SIZE_T\n",
8642 "-e", "/[ \t]size_t/a\\\n\
8644 "-e", "/[ \t]ptrdiff_t/i\\\n\
8645 #ifndef _GCC_PTRDIFF_T\\\n\
8646 #define _GCC_PTRDIFF_T\n",
8647 "-e", "/[ \t]ptrdiff_t/a\\\n\
8649 "-e", "/[ \t]wchar_t/i\\\n\
8650 #ifndef _GCC_WCHAR_T\\\n\
8651 #define _GCC_WCHAR_T\n",
8652 "-e", "/[ \t]wchar_t/a\\\n\
8656 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8658 * Description of Vxworks_Needs_Vxtypes fix
8660 tSCC zVxworks_Needs_VxtypesName[] =
8661 "vxworks_needs_vxtypes";
8664 * File name selection pattern
8666 tSCC zVxworks_Needs_VxtypesList[] =
8669 * Machine/OS name selection pattern
8671 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8674 * content selection pattern - do fix if pattern found
8676 tSCC zVxworks_Needs_VxtypesSelect0[] =
8677 "uint_t([ \t]+_clocks_per_sec)";
8679 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
8680 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8681 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8684 * Fix Command Arguments for Vxworks_Needs_Vxtypes
8686 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8691 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8693 * Description of Vxworks_Needs_Vxworks fix
8695 tSCC zVxworks_Needs_VxworksName[] =
8696 "vxworks_needs_vxworks";
8699 * File name selection pattern
8701 tSCC zVxworks_Needs_VxworksList[] =
8704 * Machine/OS name selection pattern
8706 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8709 * content selection pattern - do fix if pattern found
8711 tSCC zVxworks_Needs_VxworksSelect0[] =
8712 "#[ \t]define[ \t]+__INCstath";
8715 * perform the 'test' shell command - do fix on success
8717 tSCC zVxworks_Needs_VxworksTest0[] =
8718 " -r types/vxTypesOld.h";
8719 tSCC zVxworks_Needs_VxworksTest1[] =
8720 " -n \"`egrep '#include' $file`\"";
8721 tSCC zVxworks_Needs_VxworksTest2[] =
8722 " -n \"`egrep ULONG $file`\"";
8724 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
8725 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8726 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
8727 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
8728 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
8729 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8732 * Fix Command Arguments for Vxworks_Needs_Vxworks
8734 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8735 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8736 #include <types/vxTypesOld.h>\n",
8739 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8741 * Description of Vxworks_Time fix
8743 tSCC zVxworks_TimeName[] =
8747 * File name selection pattern
8749 tSCC zVxworks_TimeList[] =
8752 * Machine/OS name selection pattern
8754 #define apzVxworks_TimeMachs (const char**)NULL
8757 * content selection pattern - do fix if pattern found
8759 tSCC zVxworks_TimeSelect0[] =
8760 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8763 * perform the 'test' shell command - do fix on success
8765 tSCC zVxworks_TimeTest0[] =
8768 #define VXWORKS_TIME_TEST_CT 2
8769 static tTestDesc aVxworks_TimeTests[] = {
8770 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
8771 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
8774 * Fix Command Arguments for Vxworks_Time
8776 static const char* apzVxworks_TimePatch[] = {
8778 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8779 #ifdef __cplusplus\n\
8780 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8782 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8784 #define __gcc_VOIDFUNCPTR_defined\n\
8786 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8789 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8791 * Description of X11_Class fix
8793 tSCC zX11_ClassName[] =
8797 * File name selection pattern
8799 tSCC zX11_ClassList[] =
8802 * Machine/OS name selection pattern
8804 #define apzX11_ClassMachs (const char**)NULL
8807 * content selection pattern - do fix if pattern found
8809 tSCC zX11_ClassSelect0[] =
8810 "^([ \t]*char \\*)class;(.*)";
8813 * content bypass pattern - skip fix if pattern found
8815 tSCC zX11_ClassBypass0[] =
8818 #define X11_CLASS_TEST_CT 2
8819 static tTestDesc aX11_ClassTests[] = {
8820 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
8821 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
8824 * Fix Command Arguments for X11_Class
8826 static const char* apzX11_ClassPatch[] = {
8828 "#ifdef __cplusplus\n\
8835 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8837 * Description of X11_Class_Usage fix
8839 tSCC zX11_Class_UsageName[] =
8843 * File name selection pattern
8845 tSCC zX11_Class_UsageList[] =
8846 "Xm/BaseClassI.h\0";
8848 * Machine/OS name selection pattern
8850 #define apzX11_Class_UsageMachs (const char**)NULL
8853 * content selection pattern - do fix if pattern found
8855 tSCC zX11_Class_UsageSelect0[] =
8859 * content bypass pattern - skip fix if pattern found
8861 tSCC zX11_Class_UsageBypass0[] =
8864 #define X11_CLASS_USAGE_TEST_CT 2
8865 static tTestDesc aX11_Class_UsageTests[] = {
8866 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8867 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8870 * Fix Command Arguments for X11_Class_Usage
8872 static const char* apzX11_Class_UsagePatch[] = {
8877 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8879 * Description of X11_New fix
8881 tSCC zX11_NewName[] =
8885 * File name selection pattern
8887 tSCC zX11_NewList[] =
8890 * Machine/OS name selection pattern
8892 #define apzX11_NewMachs (const char**)NULL
8895 * content bypass pattern - skip fix if pattern found
8897 tSCC zX11_NewBypass0[] =
8900 #define X11_NEW_TEST_CT 1
8901 static tTestDesc aX11_NewTests[] = {
8902 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
8905 * Fix Command Arguments for X11_New
8907 static const char* apzX11_NewPatch[] = { sed_cmd_z,
8908 "-e", "/Widget\told, new;/i\\\n\
8909 #ifdef __cplusplus\\\n\
8910 \\\tWidget\told, c_new;\\\n\
8912 "-e", "/Widget\told, new;/a\\\n\
8914 "-e", "s/Widget new,/Widget c_new,/g",
8917 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8919 * Description of X11_Sprintf fix
8921 tSCC zX11_SprintfName[] =
8925 * File name selection pattern
8927 tSCC zX11_SprintfList[] =
8928 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
8930 * Machine/OS name selection pattern
8932 #define apzX11_SprintfMachs (const char**)NULL
8935 * content selection pattern - do fix if pattern found
8937 tSCC zX11_SprintfSelect0[] =
8938 "^extern char \\*\tsprintf\\(\\);$";
8940 #define X11_SPRINTF_TEST_CT 1
8941 static tTestDesc aX11_SprintfTests[] = {
8942 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
8945 * Fix Command Arguments for X11_Sprintf
8947 static const char* apzX11_SprintfPatch[] = {
8949 "#ifndef __STDC__\n\
8951 #endif /* !defined __STDC__ */",
8955 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8959 #define REGEX_COUNT 262
8960 #define MACH_LIST_SIZE_LIMIT 181
8961 #define FIX_COUNT 220
8964 * Enumerate the fixes
8967 AAB_AIX_STDIO_FIXIDX,
8968 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
8969 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
8970 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
8971 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
8972 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
8973 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
8974 AAB_SUN_MEMCPY_FIXIDX,
8976 AIX_NET_IF_ARP_FIXIDX,
8978 AIX_STDINT_1_FIXIDX,
8979 AIX_STDINT_2_FIXIDX,
8980 AIX_STDINT_3_FIXIDX,
8981 AIX_STDINT_4_FIXIDX,
8982 AIX_STDINT_5_FIXIDX,
8983 AIX_SYSMACHINE_FIXIDX,
8984 AIX_SYSWAIT_2_FIXIDX,
8985 AIX_VOLATILE_FIXIDX,
8986 ALPHA___ASSERT_FIXIDX,
8987 ALPHA___EXTERN_PREFIX_FIXIDX,
8988 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
8989 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
8990 ALPHA_ASSERT_FIXIDX,
8991 ALPHA_BAD_LVAL_FIXIDX,
8992 ALPHA_GETOPT_FIXIDX,
8993 ALPHA_IF_SEMICOLON_FIXIDX,
8994 ALPHA_PARENS_FIXIDX,
8995 ALPHA_PTHREAD_FIXIDX,
8996 ALPHA_PTHREAD_GCC_FIXIDX,
8997 ALPHA_PTHREAD_INIT_FIXIDX,
8999 AVOID_BOOL_DEFINE_FIXIDX,
9000 AVOID_BOOL_TYPE_FIXIDX,
9001 AVOID_WCHAR_T_TYPE_FIXIDX,
9002 BAD_STRUCT_TERM_FIXIDX,
9004 BROKEN_ASSERT_STDIO_FIXIDX,
9005 BROKEN_ASSERT_STDLIB_FIXIDX,
9008 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
9009 CTRL_QUOTES_DEF_FIXIDX,
9010 CTRL_QUOTES_USE_FIXIDX,
9012 DARWIN_EXTERNC_FIXIDX,
9013 DARWIN_GCC4_BREAKAGE_FIXIDX,
9014 DARWIN_PRIVATE_EXTERN_FIXIDX,
9015 DARWIN_STDINT_1_FIXIDX,
9016 DARWIN_STDINT_2_FIXIDX,
9017 DARWIN_STDINT_3_FIXIDX,
9018 DARWIN_STDINT_4_FIXIDX,
9019 DARWIN_STDINT_5_FIXIDX,
9020 DARWIN_STDINT_6_FIXIDX,
9021 DARWIN_STDINT_7_FIXIDX,
9022 DEC_INTERN_ASM_FIXIDX,
9023 DJGPP_WCHAR_H_FIXIDX,
9025 FREEBSD_GCC3_BREAKAGE_FIXIDX,
9026 FREEBSD_GCC4_BREAKAGE_FIXIDX,
9027 GLIBC_C99_INLINE_1_FIXIDX,
9028 GLIBC_C99_INLINE_1A_FIXIDX,
9029 GLIBC_C99_INLINE_2_FIXIDX,
9030 GLIBC_C99_INLINE_3_FIXIDX,
9031 GLIBC_C99_INLINE_4_FIXIDX,
9032 GLIBC_MUTEX_INIT_FIXIDX,
9033 GLIBC_STDINT_FIXIDX,
9034 GLIBC_STRNCPY_FIXIDX,
9035 GLIBC_TGMATH_FIXIDX,
9039 HPPA_HPUX_FP_MACROS_FIXIDX,
9040 HPUX10_CPP_POW_INLINE_FIXIDX,
9041 HPUX11_CPP_POW_INLINE_FIXIDX,
9042 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
9043 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
9044 HPUX10_STDIO_DECLARATIONS_FIXIDX,
9046 HPUX11_FABSF_FIXIDX,
9047 HPUX11_PTHREAD_CONST_FIXIDX,
9048 HPUX11_SIZE_T_FIXIDX,
9049 HPUX11_SNPRINTF_FIXIDX,
9050 HPUX11_VSNPRINTF_FIXIDX,
9051 HPUX8_BOGUS_INLINES_FIXIDX,
9052 HPUX_CTYPE_MACROS_FIXIDX,
9054 HPUX_LONG_DOUBLE_FIXIDX,
9055 HPUX_LONG_DOUBLE_2_FIXIDX,
9056 HPUX_SYSTIME_FIXIDX,
9057 HPUX_SPU_INFO_FIXIDX,
9058 HPUX11_EXTERN_SENDFILE_FIXIDX,
9059 HPUX11_EXTERN_SENDPATH_FIXIDX,
9060 HPUX_EXTERN_ERRNO_FIXIDX,
9061 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
9062 HPUX_C99_INTPTR_FIXIDX,
9063 HPUX_C99_INTTYPES_FIXIDX,
9064 HPUX_C99_INTTYPES2_FIXIDX,
9065 HPUX_STDINT_LEAST_FAST_FIXIDX,
9066 HPUX_INTTYPE_INT8_T_FIXIDX,
9067 HPUX_IMAGINARY_I_FIXIDX,
9068 HUGE_VAL_HEX_FIXIDX,
9069 HUGE_VALF_HEX_FIXIDX,
9070 HUGE_VALL_HEX_FIXIDX,
9071 INT_ABORT_FREE_AND_EXIT_FIXIDX,
9072 IO_QUOTES_DEF_FIXIDX,
9073 IO_QUOTES_USE_FIXIDX,
9074 IP_MISSING_SEMI_FIXIDX,
9075 IRIX___RESTRICT_FIXIDX,
9076 IRIX___GENERIC1_FIXIDX,
9077 IRIX___GENERIC2_FIXIDX,
9078 IRIX_ASM_APOSTROPHE_FIXIDX,
9079 IRIX_COMPLEX_FIXIDX,
9080 IRIX_LIMITS_CONST_FIXIDX,
9081 IRIX_PTHREAD_INIT_FIXIDX,
9082 IRIX_SOCKLEN_T_FIXIDX,
9083 IRIX_STDINT_C99_MODE_FIXIDX,
9084 IRIX_STDINT_C99_TYPES_FIXIDX,
9085 IRIX_STDINT_C99_MACROS_FIXIDX,
9086 IRIX_STDIO_VA_LIST_FIXIDX,
9087 IRIX_WCSFTIME_FIXIDX,
9088 KANDR_CONCAT_FIXIDX,
9089 LINUX_IA64_UCONTEXT_FIXIDX,
9090 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
9091 LYNXOS_MISSING_PUTENV_FIXIDX,
9092 MACHINE_ANSI_H_VA_LIST_FIXIDX,
9093 MACHINE_NAME_FIXIDX,
9094 MATH_EXCEPTION_FIXIDX,
9095 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
9096 NESTED_AUTH_DES_FIXIDX,
9097 NETBSD_C99_INLINE_1_FIXIDX,
9098 NETBSD_C99_INLINE_2_FIXIDX,
9099 NETBSD_EXTRA_SEMICOLON_FIXIDX,
9100 NEWLIB_STDINT_1_FIXIDX,
9101 NEWLIB_STDINT_2_FIXIDX,
9102 NEXT_MATH_PREFIX_FIXIDX,
9103 NEXT_TEMPLATE_FIXIDX,
9104 NEXT_VOLITILE_FIXIDX,
9105 NEXT_WAIT_UNION_FIXIDX,
9106 NODEENT_SYNTAX_FIXIDX,
9107 OPENBSD_NULL_DEFINITION_FIXIDX,
9108 OBSTACK_LVALUE_CAST_FIXIDX,
9109 OPENBSD_VA_START_FIXIDX,
9110 OSF_NAMESPACE_A_FIXIDX,
9111 OSF_NAMESPACE_C_FIXIDX,
9112 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
9113 READ_RET_TYPE_FIXIDX,
9114 RPC_XDR_LVALUE_CAST_A_FIXIDX,
9115 RPC_XDR_LVALUE_CAST_B_FIXIDX,
9116 RS6000_DOUBLE_FIXIDX,
9117 RS6000_FCHMOD_FIXIDX,
9118 RS6000_PARAM_FIXIDX,
9119 SOLARIS___RESTRICT_FIXIDX,
9120 SOLARIS_COMPLEX_FIXIDX,
9121 SOLARIS_COMPLEX_CXX_FIXIDX,
9122 SOLARIS_COND_INIT_FIXIDX,
9123 SOLARIS_CXX_LINKAGE_FIXIDX,
9124 SOLARIS_GETC_STRICT_STDC_FIXIDX,
9125 SOLARIS_LONGJMP_NORETURN_FIXIDX,
9126 SOLARIS_MATH_1_FIXIDX,
9127 SOLARIS_MATH_2_FIXIDX,
9128 SOLARIS_MATH_3_FIXIDX,
9129 SOLARIS_MATH_4_FIXIDX,
9130 SOLARIS_MATH_8_FIXIDX,
9131 SOLARIS_MATH_9_FIXIDX,
9132 SOLARIS_MATH_10_FIXIDX,
9133 SOLARIS_MUTEX_INIT_2_FIXIDX,
9134 SOLARIS_POW_INT_OVERLOAD_FIXIDX,
9135 SOLARIS_RWLOCK_INIT_1_FIXIDX,
9136 SOLARIS_ONCE_INIT_1_FIXIDX,
9137 SOLARIS_ONCE_INIT_2_FIXIDX,
9138 SOLARIS_INT_CONST_FIXIDX,
9139 SOLARIS_INT_LIMITS_1_FIXIDX,
9140 SOLARIS_INT_LIMITS_2_FIXIDX,
9141 SOLARIS_INT_LIMITS_3_FIXIDX,
9142 SOLARIS_INT_TYPES_FIXIDX,
9143 SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
9144 SOLARIS_STD___FILBUF_FIXIDX,
9145 SOLARIS_STDIO_TAG_FIXIDX,
9146 SOLARIS_SYS_VA_LIST_FIXIDX,
9148 STDIO_STDARG_H_FIXIDX,
9149 STDIO_VA_LIST_FIXIDX,
9150 STDIO_VA_LIST_CLIENTS_FIXIDX,
9151 STRICT_ANSI_NOT_FIXIDX,
9152 STRICT_ANSI_NOT_CTD_FIXIDX,
9153 STRICT_ANSI_ONLY_FIXIDX,
9155 STRUCT_SOCKADDR_FIXIDX,
9156 SUN_AUTH_PROTO_FIXIDX,
9157 SUN_BOGUS_IFDEF_FIXIDX,
9158 SUN_CATMACRO_FIXIDX,
9160 SUN_RUSERS_SEMI_FIXIDX,
9162 SUNOS_STRLEN_FIXIDX,
9163 SVR4_DISABLE_OPT_FIXIDX,
9166 SVR4_SIGHANDLER_TYPE_FIXIDX,
9167 SVR4_UNDECLARED_GETRNGE_FIXIDX,
9168 SYSV68_STRING_FIXIDX,
9169 SYSZ_STDLIB_FOR_SUN_FIXIDX,
9170 THREAD_KEYWORD_FIXIDX,
9171 TINFO_CPLUSPLUS_FIXIDX,
9172 ULTRIX_CONST_FIXIDX,
9173 ULTRIX_CONST2_FIXIDX,
9174 VA_I960_MACRO_FIXIDX,
9175 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
9176 VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
9177 VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
9179 VXWORKS_GCC_PROBLEM_FIXIDX,
9180 VXWORKS_NEEDS_VXTYPES_FIXIDX,
9181 VXWORKS_NEEDS_VXWORKS_FIXIDX,
9182 VXWORKS_TIME_FIXIDX,
9184 X11_CLASS_USAGE_FIXIDX,
9189 tFixDesc fixDescList[ FIX_COUNT ] = {
9190 { zAab_Aix_StdioName, zAab_Aix_StdioList,
9191 apzAab_Aix_StdioMachs,
9192 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9193 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
9195 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
9196 apzAab_Darwin7_9_Long_Double_FuncsMachs,
9197 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9198 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
9200 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
9201 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
9202 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9203 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
9205 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
9206 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
9207 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9208 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
9210 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
9211 apzAab_Fd_Zero_Gnu_Types_HMachs,
9212 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9213 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
9215 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
9216 apzAab_Fd_Zero_Selectbits_HMachs,
9217 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9218 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
9220 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
9221 apzAab_Solaris_Sys_Varargs_HMachs,
9222 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9223 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
9225 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
9226 apzAab_Sun_MemcpyMachs,
9227 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9228 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
9230 { zAix_ComplexName, zAix_ComplexList,
9231 apzAix_ComplexMachs,
9232 AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9233 aAix_ComplexTests, apzAix_ComplexPatch, 0 },
9235 { zAix_Net_If_ArpName, zAix_Net_If_ArpList,
9236 apzAix_Net_If_ArpMachs,
9237 AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9238 aAix_Net_If_ArpTests, apzAix_Net_If_ArpPatch, 0 },
9240 { zAix_PthreadName, zAix_PthreadList,
9241 apzAix_PthreadMachs,
9242 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9243 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
9245 { zAix_Stdint_1Name, zAix_Stdint_1List,
9246 apzAix_Stdint_1Machs,
9247 AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9248 aAix_Stdint_1Tests, apzAix_Stdint_1Patch, 0 },
9250 { zAix_Stdint_2Name, zAix_Stdint_2List,
9251 apzAix_Stdint_2Machs,
9252 AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9253 aAix_Stdint_2Tests, apzAix_Stdint_2Patch, 0 },
9255 { zAix_Stdint_3Name, zAix_Stdint_3List,
9256 apzAix_Stdint_3Machs,
9257 AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9258 aAix_Stdint_3Tests, apzAix_Stdint_3Patch, 0 },
9260 { zAix_Stdint_4Name, zAix_Stdint_4List,
9261 apzAix_Stdint_4Machs,
9262 AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9263 aAix_Stdint_4Tests, apzAix_Stdint_4Patch, 0 },
9265 { zAix_Stdint_5Name, zAix_Stdint_5List,
9266 apzAix_Stdint_5Machs,
9267 AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9268 aAix_Stdint_5Tests, apzAix_Stdint_5Patch, 0 },
9270 { zAix_SysmachineName, zAix_SysmachineList,
9271 apzAix_SysmachineMachs,
9272 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9273 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
9275 { zAix_Syswait_2Name, zAix_Syswait_2List,
9276 apzAix_Syswait_2Machs,
9277 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9278 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
9280 { zAix_VolatileName, zAix_VolatileList,
9281 apzAix_VolatileMachs,
9282 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9283 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
9285 { zAlpha___AssertName, zAlpha___AssertList,
9286 apzAlpha___AssertMachs,
9287 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9288 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
9290 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
9291 apzAlpha___Extern_PrefixMachs,
9292 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9293 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
9295 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
9296 apzAlpha___Extern_Prefix_StandardsMachs,
9297 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9298 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
9300 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
9301 apzAlpha___Extern_Prefix_Sys_StatMachs,
9302 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9303 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
9305 { zAlpha_AssertName, zAlpha_AssertList,
9306 apzAlpha_AssertMachs,
9307 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9308 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
9310 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
9311 apzAlpha_Bad_LvalMachs,
9312 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
9313 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
9315 { zAlpha_GetoptName, zAlpha_GetoptList,
9316 apzAlpha_GetoptMachs,
9317 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9318 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
9320 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
9321 apzAlpha_If_SemicolonMachs,
9322 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9323 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
9325 { zAlpha_ParensName, zAlpha_ParensList,
9326 apzAlpha_ParensMachs,
9327 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9328 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
9330 { zAlpha_PthreadName, zAlpha_PthreadList,
9331 apzAlpha_PthreadMachs,
9332 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9333 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
9335 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
9336 apzAlpha_Pthread_GccMachs,
9337 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9338 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
9340 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
9341 apzAlpha_Pthread_InitMachs,
9342 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
9343 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
9345 { zAlpha_SbrkName, zAlpha_SbrkList,
9347 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9348 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
9350 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
9351 apzAvoid_Bool_DefineMachs,
9352 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9353 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
9355 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
9356 apzAvoid_Bool_TypeMachs,
9357 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9358 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
9360 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
9361 apzAvoid_Wchar_T_TypeMachs,
9362 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9363 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
9365 { zBad_Struct_TermName, zBad_Struct_TermList,
9366 apzBad_Struct_TermMachs,
9367 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9368 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
9370 { zBadquoteName, zBadquoteList,
9372 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9373 aBadquoteTests, apzBadquotePatch, 0 },
9375 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
9376 apzBroken_Assert_StdioMachs,
9377 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9378 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
9380 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
9381 apzBroken_Assert_StdlibMachs,
9382 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9383 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
9385 { zBroken_CabsName, zBroken_CabsList,
9386 apzBroken_CabsMachs,
9387 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9388 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
9390 { zBroken_NanName, zBroken_NanList,
9392 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9393 aBroken_NanTests, apzBroken_NanPatch, 0 },
9395 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
9396 apzBsd_Stdio_Attrs_ConflictMachs,
9397 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9398 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9400 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
9401 apzCtrl_Quotes_DefMachs,
9402 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9403 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
9405 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
9406 apzCtrl_Quotes_UseMachs,
9407 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9408 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
9410 { zCxx_UnreadyName, zCxx_UnreadyList,
9411 apzCxx_UnreadyMachs,
9412 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9413 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
9415 { zDarwin_ExterncName, zDarwin_ExterncList,
9416 apzDarwin_ExterncMachs,
9417 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9418 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
9420 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
9421 apzDarwin_Gcc4_BreakageMachs,
9422 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9423 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
9425 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
9426 apzDarwin_Private_ExternMachs,
9427 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9428 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
9430 { zDarwin_Stdint_1Name, zDarwin_Stdint_1List,
9431 apzDarwin_Stdint_1Machs,
9432 DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9433 aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 },
9435 { zDarwin_Stdint_2Name, zDarwin_Stdint_2List,
9436 apzDarwin_Stdint_2Machs,
9437 DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9438 aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 },
9440 { zDarwin_Stdint_3Name, zDarwin_Stdint_3List,
9441 apzDarwin_Stdint_3Machs,
9442 DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9443 aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 },
9445 { zDarwin_Stdint_4Name, zDarwin_Stdint_4List,
9446 apzDarwin_Stdint_4Machs,
9447 DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9448 aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 },
9450 { zDarwin_Stdint_5Name, zDarwin_Stdint_5List,
9451 apzDarwin_Stdint_5Machs,
9452 DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9453 aDarwin_Stdint_5Tests, apzDarwin_Stdint_5Patch, 0 },
9455 { zDarwin_Stdint_6Name, zDarwin_Stdint_6List,
9456 apzDarwin_Stdint_6Machs,
9457 DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9458 aDarwin_Stdint_6Tests, apzDarwin_Stdint_6Patch, 0 },
9460 { zDarwin_Stdint_7Name, zDarwin_Stdint_7List,
9461 apzDarwin_Stdint_7Machs,
9462 DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9463 aDarwin_Stdint_7Tests, apzDarwin_Stdint_7Patch, 0 },
9465 { zDec_Intern_AsmName, zDec_Intern_AsmList,
9466 apzDec_Intern_AsmMachs,
9467 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9468 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
9470 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
9471 apzDjgpp_Wchar_HMachs,
9472 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9473 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
9475 { zEcd_CursorName, zEcd_CursorList,
9477 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9478 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
9480 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
9481 apzFreebsd_Gcc3_BreakageMachs,
9482 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9483 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
9485 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
9486 apzFreebsd_Gcc4_BreakageMachs,
9487 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9488 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
9490 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
9491 apzGlibc_C99_Inline_1Machs,
9492 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9493 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
9495 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
9496 apzGlibc_C99_Inline_1aMachs,
9497 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9498 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
9500 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
9501 apzGlibc_C99_Inline_2Machs,
9502 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9503 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
9505 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
9506 apzGlibc_C99_Inline_3Machs,
9507 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9508 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
9510 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
9511 apzGlibc_C99_Inline_4Machs,
9512 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9513 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
9515 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
9516 apzGlibc_Mutex_InitMachs,
9517 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9518 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
9520 { zGlibc_StdintName, zGlibc_StdintList,
9521 apzGlibc_StdintMachs,
9522 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9523 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 },
9525 { zGlibc_StrncpyName, zGlibc_StrncpyList,
9526 apzGlibc_StrncpyMachs,
9527 GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9528 aGlibc_StrncpyTests, apzGlibc_StrncpyPatch, 0 },
9530 { zGlibc_TgmathName, zGlibc_TgmathList,
9531 apzGlibc_TgmathMachs,
9532 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9533 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
9535 { zGnu_TypesName, zGnu_TypesList,
9537 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9538 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
9540 { zHp_InlineName, zHp_InlineList,
9542 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9543 aHp_InlineTests, apzHp_InlinePatch, 0 },
9545 { zHp_SysfileName, zHp_SysfileList,
9547 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9548 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
9550 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
9551 apzHppa_Hpux_Fp_MacrosMachs,
9552 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9553 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
9555 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
9556 apzHpux10_Cpp_Pow_InlineMachs,
9557 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9558 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
9560 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
9561 apzHpux11_Cpp_Pow_InlineMachs,
9562 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9563 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
9565 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
9566 apzHpux10_Ctype_Declarations1Machs,
9567 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9568 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
9570 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
9571 apzHpux10_Ctype_Declarations2Machs,
9572 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9573 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
9575 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
9576 apzHpux10_Stdio_DeclarationsMachs,
9577 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9578 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
9580 { zHpux11_AbsName, zHpux11_AbsList,
9582 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9583 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
9585 { zHpux11_FabsfName, zHpux11_FabsfList,
9586 apzHpux11_FabsfMachs,
9587 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9588 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
9590 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
9591 apzHpux11_Pthread_ConstMachs,
9592 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9593 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
9595 { zHpux11_Size_TName, zHpux11_Size_TList,
9596 apzHpux11_Size_TMachs,
9597 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9598 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
9600 { zHpux11_SnprintfName, zHpux11_SnprintfList,
9601 apzHpux11_SnprintfMachs,
9602 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9603 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
9605 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
9606 apzHpux11_VsnprintfMachs,
9607 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9608 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
9610 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
9611 apzHpux8_Bogus_InlinesMachs,
9612 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9613 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
9615 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
9616 apzHpux_Ctype_MacrosMachs,
9617 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9618 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
9620 { zHpux_HtonlName, zHpux_HtonlList,
9622 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9623 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
9625 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
9626 apzHpux_Long_DoubleMachs,
9627 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9628 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
9630 { zHpux_Long_Double_2Name, zHpux_Long_Double_2List,
9631 apzHpux_Long_Double_2Machs,
9632 HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9633 aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 },
9635 { zHpux_SystimeName, zHpux_SystimeList,
9636 apzHpux_SystimeMachs,
9637 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9638 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
9640 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
9641 apzHpux_Spu_InfoMachs,
9642 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9643 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
9645 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
9646 apzHpux11_Extern_SendfileMachs,
9647 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9648 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
9650 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
9651 apzHpux11_Extern_SendpathMachs,
9652 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9653 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
9655 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
9656 apzHpux_Extern_ErrnoMachs,
9657 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9658 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
9660 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
9661 apzHpux_Pthread_InitializersMachs,
9662 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9663 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
9665 { zHpux_C99_IntptrName, zHpux_C99_IntptrList,
9666 apzHpux_C99_IntptrMachs,
9667 HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
9668 aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 },
9670 { zHpux_C99_InttypesName, zHpux_C99_InttypesList,
9671 apzHpux_C99_InttypesMachs,
9672 HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
9673 aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 },
9675 { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List,
9676 apzHpux_C99_Inttypes2Machs,
9677 HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
9678 aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 },
9680 { zHpux_Stdint_Least_FastName, zHpux_Stdint_Least_FastList,
9681 apzHpux_Stdint_Least_FastMachs,
9682 HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9683 aHpux_Stdint_Least_FastTests, apzHpux_Stdint_Least_FastPatch, 0 },
9685 { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList,
9686 apzHpux_Inttype_Int8_TMachs,
9687 HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9688 aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 },
9690 { zHpux_Imaginary_IName, zHpux_Imaginary_IList,
9691 apzHpux_Imaginary_IMachs,
9692 HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9693 aHpux_Imaginary_ITests, apzHpux_Imaginary_IPatch, 0 },
9695 { zHuge_Val_HexName, zHuge_Val_HexList,
9696 apzHuge_Val_HexMachs,
9697 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9698 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
9700 { zHuge_Valf_HexName, zHuge_Valf_HexList,
9701 apzHuge_Valf_HexMachs,
9702 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9703 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
9705 { zHuge_Vall_HexName, zHuge_Vall_HexList,
9706 apzHuge_Vall_HexMachs,
9707 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9708 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
9710 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
9711 apzInt_Abort_Free_And_ExitMachs,
9712 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9713 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
9715 { zIo_Quotes_DefName, zIo_Quotes_DefList,
9716 apzIo_Quotes_DefMachs,
9717 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9718 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
9720 { zIo_Quotes_UseName, zIo_Quotes_UseList,
9721 apzIo_Quotes_UseMachs,
9722 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9723 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
9725 { zIp_Missing_SemiName, zIp_Missing_SemiList,
9726 apzIp_Missing_SemiMachs,
9727 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9728 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
9730 { zIrix___RestrictName, zIrix___RestrictList,
9731 apzIrix___RestrictMachs,
9732 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9733 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
9735 { zIrix___Generic1Name, zIrix___Generic1List,
9736 apzIrix___Generic1Machs,
9737 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9738 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
9740 { zIrix___Generic2Name, zIrix___Generic2List,
9741 apzIrix___Generic2Machs,
9742 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9743 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
9745 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
9746 apzIrix_Asm_ApostropheMachs,
9747 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9748 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
9750 { zIrix_ComplexName, zIrix_ComplexList,
9751 apzIrix_ComplexMachs,
9752 IRIX_COMPLEX_TEST_CT, FD_MACH_ONLY,
9753 aIrix_ComplexTests, apzIrix_ComplexPatch, 0 },
9755 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
9756 apzIrix_Limits_ConstMachs,
9757 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9758 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
9760 { zIrix_Pthread_InitName, zIrix_Pthread_InitList,
9761 apzIrix_Pthread_InitMachs,
9762 IRIX_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9763 aIrix_Pthread_InitTests, apzIrix_Pthread_InitPatch, 0 },
9765 { zIrix_Socklen_TName, zIrix_Socklen_TList,
9766 apzIrix_Socklen_TMachs,
9767 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9768 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
9770 { zIrix_Stdint_C99_ModeName, zIrix_Stdint_C99_ModeList,
9771 apzIrix_Stdint_C99_ModeMachs,
9772 IRIX_STDINT_C99_MODE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9773 aIrix_Stdint_C99_ModeTests, apzIrix_Stdint_C99_ModePatch, 0 },
9775 { zIrix_Stdint_C99_TypesName, zIrix_Stdint_C99_TypesList,
9776 apzIrix_Stdint_C99_TypesMachs,
9777 IRIX_STDINT_C99_TYPES_TEST_CT, FD_MACH_ONLY,
9778 aIrix_Stdint_C99_TypesTests, apzIrix_Stdint_C99_TypesPatch, 0 },
9780 { zIrix_Stdint_C99_MacrosName, zIrix_Stdint_C99_MacrosList,
9781 apzIrix_Stdint_C99_MacrosMachs,
9782 IRIX_STDINT_C99_MACROS_TEST_CT, FD_MACH_ONLY,
9783 aIrix_Stdint_C99_MacrosTests, apzIrix_Stdint_C99_MacrosPatch, 0 },
9785 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
9786 apzIrix_Stdio_Va_ListMachs,
9787 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9788 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
9790 { zIrix_WcsftimeName, zIrix_WcsftimeList,
9791 apzIrix_WcsftimeMachs,
9792 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9793 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
9795 { zKandr_ConcatName, zKandr_ConcatList,
9796 apzKandr_ConcatMachs,
9797 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9798 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
9800 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
9801 apzLinux_Ia64_UcontextMachs,
9802 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9803 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
9805 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
9806 apzLynxos_No_Warning_In_Sys_Time_HMachs,
9807 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9808 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9810 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
9811 apzLynxos_Missing_PutenvMachs,
9812 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9813 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
9815 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
9816 apzMachine_Ansi_H_Va_ListMachs,
9817 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9818 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
9820 { zMachine_NameName, zMachine_NameList,
9821 apzMachine_NameMachs,
9822 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9823 aMachine_NameTests, apzMachine_NamePatch, 0 },
9825 { zMath_ExceptionName, zMath_ExceptionList,
9826 apzMath_ExceptionMachs,
9827 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9828 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
9830 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
9831 apzMath_Huge_Val_From_Dbl_MaxMachs,
9832 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9833 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9835 { zNested_Auth_DesName, zNested_Auth_DesList,
9836 apzNested_Auth_DesMachs,
9837 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9838 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
9840 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
9841 apzNetbsd_C99_Inline_1Machs,
9842 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9843 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
9845 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
9846 apzNetbsd_C99_Inline_2Machs,
9847 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9848 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
9850 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
9851 apzNetbsd_Extra_SemicolonMachs,
9852 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9853 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
9855 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List,
9856 apzNewlib_Stdint_1Machs,
9857 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
9858 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 },
9860 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List,
9861 apzNewlib_Stdint_2Machs,
9862 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9863 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 },
9865 { zNext_Math_PrefixName, zNext_Math_PrefixList,
9866 apzNext_Math_PrefixMachs,
9867 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9868 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
9870 { zNext_TemplateName, zNext_TemplateList,
9871 apzNext_TemplateMachs,
9872 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9873 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
9875 { zNext_VolitileName, zNext_VolitileList,
9876 apzNext_VolitileMachs,
9877 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9878 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
9880 { zNext_Wait_UnionName, zNext_Wait_UnionList,
9881 apzNext_Wait_UnionMachs,
9882 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9883 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
9885 { zNodeent_SyntaxName, zNodeent_SyntaxList,
9886 apzNodeent_SyntaxMachs,
9887 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9888 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
9890 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
9891 apzOpenbsd_Null_DefinitionMachs,
9892 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9893 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
9895 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
9896 apzObstack_Lvalue_CastMachs,
9897 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9898 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
9900 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
9901 apzOpenbsd_Va_StartMachs,
9902 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9903 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
9905 { zOsf_Namespace_AName, zOsf_Namespace_AList,
9906 apzOsf_Namespace_AMachs,
9907 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9908 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
9910 { zOsf_Namespace_CName, zOsf_Namespace_CList,
9911 apzOsf_Namespace_CMachs,
9912 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9913 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
9915 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
9916 apzPthread_Incomplete_Struct_ArgumentMachs,
9917 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9918 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
9920 { zRead_Ret_TypeName, zRead_Ret_TypeList,
9921 apzRead_Ret_TypeMachs,
9922 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9923 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
9925 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
9926 apzRpc_Xdr_Lvalue_Cast_AMachs,
9927 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9928 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
9930 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
9931 apzRpc_Xdr_Lvalue_Cast_BMachs,
9932 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9933 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
9935 { zRs6000_DoubleName, zRs6000_DoubleList,
9936 apzRs6000_DoubleMachs,
9937 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9938 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
9940 { zRs6000_FchmodName, zRs6000_FchmodList,
9941 apzRs6000_FchmodMachs,
9942 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9943 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
9945 { zRs6000_ParamName, zRs6000_ParamList,
9946 apzRs6000_ParamMachs,
9947 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9948 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
9950 { zSolaris___RestrictName, zSolaris___RestrictList,
9951 apzSolaris___RestrictMachs,
9952 SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9953 aSolaris___RestrictTests, apzSolaris___RestrictPatch, 0 },
9955 { zSolaris_ComplexName, zSolaris_ComplexList,
9956 apzSolaris_ComplexMachs,
9957 SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
9958 aSolaris_ComplexTests, apzSolaris_ComplexPatch, 0 },
9960 { zSolaris_Complex_CxxName, zSolaris_Complex_CxxList,
9961 apzSolaris_Complex_CxxMachs,
9962 SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
9963 aSolaris_Complex_CxxTests, apzSolaris_Complex_CxxPatch, 0 },
9965 { zSolaris_Cond_InitName, zSolaris_Cond_InitList,
9966 apzSolaris_Cond_InitMachs,
9967 SOLARIS_COND_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9968 aSolaris_Cond_InitTests, apzSolaris_Cond_InitPatch, 0 },
9970 { zSolaris_Cxx_LinkageName, zSolaris_Cxx_LinkageList,
9971 apzSolaris_Cxx_LinkageMachs,
9972 SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9973 aSolaris_Cxx_LinkageTests, apzSolaris_Cxx_LinkagePatch, 0 },
9975 { zSolaris_Getc_Strict_StdcName, zSolaris_Getc_Strict_StdcList,
9976 apzSolaris_Getc_Strict_StdcMachs,
9977 SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9978 aSolaris_Getc_Strict_StdcTests, apzSolaris_Getc_Strict_StdcPatch, 0 },
9980 { zSolaris_Longjmp_NoreturnName, zSolaris_Longjmp_NoreturnList,
9981 apzSolaris_Longjmp_NoreturnMachs,
9982 SOLARIS_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9983 aSolaris_Longjmp_NoreturnTests, apzSolaris_Longjmp_NoreturnPatch, 0 },
9985 { zSolaris_Math_1Name, zSolaris_Math_1List,
9986 apzSolaris_Math_1Machs,
9987 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9988 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
9990 { zSolaris_Math_2Name, zSolaris_Math_2List,
9991 apzSolaris_Math_2Machs,
9992 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9993 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
9995 { zSolaris_Math_3Name, zSolaris_Math_3List,
9996 apzSolaris_Math_3Machs,
9997 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9998 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
10000 { zSolaris_Math_4Name, zSolaris_Math_4List,
10001 apzSolaris_Math_4Machs,
10002 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10003 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
10005 { zSolaris_Math_8Name, zSolaris_Math_8List,
10006 apzSolaris_Math_8Machs,
10007 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10008 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
10010 { zSolaris_Math_9Name, zSolaris_Math_9List,
10011 apzSolaris_Math_9Machs,
10012 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10013 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
10015 { zSolaris_Math_10Name, zSolaris_Math_10List,
10016 apzSolaris_Math_10Machs,
10017 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10018 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
10020 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
10021 apzSolaris_Mutex_Init_2Machs,
10022 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10023 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
10025 { zSolaris_Pow_Int_OverloadName, zSolaris_Pow_Int_OverloadList,
10026 apzSolaris_Pow_Int_OverloadMachs,
10027 SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10028 aSolaris_Pow_Int_OverloadTests, apzSolaris_Pow_Int_OverloadPatch, 0 },
10030 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
10031 apzSolaris_Rwlock_Init_1Machs,
10032 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10033 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
10035 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
10036 apzSolaris_Once_Init_1Machs,
10037 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10038 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
10040 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
10041 apzSolaris_Once_Init_2Machs,
10042 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10043 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
10045 { zSolaris_Int_ConstName, zSolaris_Int_ConstList,
10046 apzSolaris_Int_ConstMachs,
10047 SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10048 aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 },
10050 { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List,
10051 apzSolaris_Int_Limits_1Machs,
10052 SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10053 aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 },
10055 { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List,
10056 apzSolaris_Int_Limits_2Machs,
10057 SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10058 aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 },
10060 { zSolaris_Int_Limits_3Name, zSolaris_Int_Limits_3List,
10061 apzSolaris_Int_Limits_3Machs,
10062 SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10063 aSolaris_Int_Limits_3Tests, apzSolaris_Int_Limits_3Patch, 0 },
10065 { zSolaris_Int_TypesName, zSolaris_Int_TypesList,
10066 apzSolaris_Int_TypesMachs,
10067 SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10068 aSolaris_Int_TypesTests, apzSolaris_Int_TypesPatch, 0 },
10070 { zSolaris_Posix_Spawn_RestrictName, zSolaris_Posix_Spawn_RestrictList,
10071 apzSolaris_Posix_Spawn_RestrictMachs,
10072 SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10073 aSolaris_Posix_Spawn_RestrictTests, apzSolaris_Posix_Spawn_RestrictPatch, 0 },
10075 { zSolaris_Std___FilbufName, zSolaris_Std___FilbufList,
10076 apzSolaris_Std___FilbufMachs,
10077 SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10078 aSolaris_Std___FilbufTests, apzSolaris_Std___FilbufPatch, 0 },
10080 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
10081 apzSolaris_Stdio_TagMachs,
10082 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
10083 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
10085 { zSolaris_Sys_Va_ListName, zSolaris_Sys_Va_ListList,
10086 apzSolaris_Sys_Va_ListMachs,
10087 SOLARIS_SYS_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10088 aSolaris_Sys_Va_ListTests, apzSolaris_Sys_Va_ListPatch, 0 },
10090 { zStatsswtchName, zStatsswtchList,
10091 apzStatsswtchMachs,
10092 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10093 aStatsswtchTests, apzStatsswtchPatch, 0 },
10095 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
10096 apzStdio_Stdarg_HMachs,
10097 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10098 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
10100 { zStdio_Va_ListName, zStdio_Va_ListList,
10101 apzStdio_Va_ListMachs,
10102 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
10103 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
10105 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
10106 apzStdio_Va_List_ClientsMachs,
10107 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
10108 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
10110 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
10111 apzStrict_Ansi_NotMachs,
10112 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10113 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
10115 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
10116 apzStrict_Ansi_Not_CtdMachs,
10117 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10118 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
10120 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
10121 apzStrict_Ansi_OnlyMachs,
10122 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10123 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
10125 { zStruct_FileName, zStruct_FileList,
10126 apzStruct_FileMachs,
10127 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10128 aStruct_FileTests, apzStruct_FilePatch, 0 },
10130 { zStruct_SockaddrName, zStruct_SockaddrList,
10131 apzStruct_SockaddrMachs,
10132 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10133 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
10135 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
10136 apzSun_Auth_ProtoMachs,
10137 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10138 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
10140 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
10141 apzSun_Bogus_IfdefMachs,
10142 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10143 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
10145 { zSun_CatmacroName, zSun_CatmacroList,
10146 apzSun_CatmacroMachs,
10147 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10148 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
10150 { zSun_MallocName, zSun_MallocList,
10151 apzSun_MallocMachs,
10152 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
10153 aSun_MallocTests, apzSun_MallocPatch, 0 },
10155 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
10156 apzSun_Rusers_SemiMachs,
10157 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
10158 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
10160 { zSun_SignalName, zSun_SignalList,
10161 apzSun_SignalMachs,
10162 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10163 aSun_SignalTests, apzSun_SignalPatch, 0 },
10165 { zSunos_StrlenName, zSunos_StrlenList,
10166 apzSunos_StrlenMachs,
10167 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10168 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
10170 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
10171 apzSvr4_Disable_OptMachs,
10172 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
10173 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
10175 { zSvr4_GetcwdName, zSvr4_GetcwdList,
10176 apzSvr4_GetcwdMachs,
10177 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10178 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
10180 { zSvr4_ProfilName, zSvr4_ProfilList,
10181 apzSvr4_ProfilMachs,
10182 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10183 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
10185 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
10186 apzSvr4_Sighandler_TypeMachs,
10187 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10188 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
10190 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
10191 apzSvr4_Undeclared_GetrngeMachs,
10192 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10193 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
10195 { zSysv68_StringName, zSysv68_StringList,
10196 apzSysv68_StringMachs,
10197 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
10198 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
10200 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
10201 apzSysz_Stdlib_For_SunMachs,
10202 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10203 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
10205 { zThread_KeywordName, zThread_KeywordList,
10206 apzThread_KeywordMachs,
10207 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10208 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
10210 { zTinfo_CplusplusName, zTinfo_CplusplusList,
10211 apzTinfo_CplusplusMachs,
10212 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10213 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
10215 { zUltrix_ConstName, zUltrix_ConstList,
10216 apzUltrix_ConstMachs,
10217 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10218 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
10220 { zUltrix_Const2Name, zUltrix_Const2List,
10221 apzUltrix_Const2Machs,
10222 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10223 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
10225 { zVa_I960_MacroName, zVa_I960_MacroList,
10226 apzVa_I960_MacroMachs,
10227 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10228 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
10230 { zVms_Define_Can_Use_Extern_PrefixName, zVms_Define_Can_Use_Extern_PrefixList,
10231 apzVms_Define_Can_Use_Extern_PrefixMachs,
10232 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10233 aVms_Define_Can_Use_Extern_PrefixTests, apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
10235 { zVms_Use_Pragma_Extern_ModelName, zVms_Use_Pragma_Extern_ModelList,
10236 apzVms_Use_Pragma_Extern_ModelMachs,
10237 VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10238 aVms_Use_Pragma_Extern_ModelTests, apzVms_Use_Pragma_Extern_ModelPatch, 0 },
10240 { zVms_Disable_Decc_String_BuiltinsName, zVms_Disable_Decc_String_BuiltinsList,
10241 apzVms_Disable_Decc_String_BuiltinsMachs,
10242 VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10243 aVms_Disable_Decc_String_BuiltinsTests, apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
10245 { zVoid_NullName, zVoid_NullList,
10247 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10248 aVoid_NullTests, apzVoid_NullPatch, 0 },
10250 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
10251 apzVxworks_Gcc_ProblemMachs,
10252 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
10253 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
10255 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
10256 apzVxworks_Needs_VxtypesMachs,
10257 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10258 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
10260 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
10261 apzVxworks_Needs_VxworksMachs,
10262 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
10263 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
10265 { zVxworks_TimeName, zVxworks_TimeList,
10266 apzVxworks_TimeMachs,
10267 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10268 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
10270 { zX11_ClassName, zX11_ClassList,
10272 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10273 aX11_ClassTests, apzX11_ClassPatch, 0 },
10275 { zX11_Class_UsageName, zX11_Class_UsageList,
10276 apzX11_Class_UsageMachs,
10277 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10278 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
10280 { zX11_NewName, zX11_NewList,
10282 X11_NEW_TEST_CT, FD_MACH_ONLY,
10283 aX11_NewTests, apzX11_NewPatch, 0 },
10285 { zX11_SprintfName, zX11_SprintfList,
10286 apzX11_SprintfMachs,
10287 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10288 aX11_SprintfTests, apzX11_SprintfPatch, 0 }