1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (fixincl.x)
5 * It has been AutoGen-ed November 7, 2011 at 01:16:39 PM by AutoGen 5.10
6 * From the definitions inclhack.def
7 * and the template file fixincl
9 /* DO NOT SVN-MERGE THIS FILE, EITHER Mon Nov 7 13:16:39 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 222 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_Once_Init_1 fix
564 tSCC zAix_Once_Init_1Name[] =
568 * File name selection pattern
570 tSCC zAix_Once_Init_1List[] =
573 * Machine/OS name selection pattern
575 tSCC* apzAix_Once_Init_1Machs[] = {
580 * content selection pattern - do fix if pattern found
582 tSCC zAix_Once_Init_1Select0[] =
583 "#define[ \t]PTHREAD_ONCE_INIT \\\\\n\
586 #define AIX_ONCE_INIT_1_TEST_CT 1
587 static tTestDesc aAix_Once_Init_1Tests[] = {
588 { TT_EGREP, zAix_Once_Init_1Select0, (regex_t*)NULL }, };
591 * Fix Command Arguments for Aix_Once_Init_1
593 static const char* apzAix_Once_Init_1Patch[] = {
595 "#define PTHREAD_ONCE_INIT \\\n\
599 /* * * * * * * * * * * * * * * * * * * * * * * * * *
601 * Description of Aix_Once_Init_2 fix
603 tSCC zAix_Once_Init_2Name[] =
607 * File name selection pattern
609 tSCC zAix_Once_Init_2List[] =
612 * Machine/OS name selection pattern
614 tSCC* apzAix_Once_Init_2Machs[] = {
619 * content selection pattern - do fix if pattern found
621 tSCC zAix_Once_Init_2Select0[] =
625 #define AIX_ONCE_INIT_2_TEST_CT 1
626 static tTestDesc aAix_Once_Init_2Tests[] = {
627 { TT_EGREP, zAix_Once_Init_2Select0, (regex_t*)NULL }, };
630 * Fix Command Arguments for Aix_Once_Init_2
632 static const char* apzAix_Once_Init_2Patch[] = {
638 /* * * * * * * * * * * * * * * * * * * * * * * * * *
640 * Description of Aix_Pthread fix
642 tSCC zAix_PthreadName[] =
646 * File name selection pattern
648 tSCC zAix_PthreadList[] =
651 * Machine/OS name selection pattern
653 #define apzAix_PthreadMachs (const char**)NULL
656 * content selection pattern - do fix if pattern found
658 tSCC zAix_PthreadSelect0[] =
659 "(#define [A-Za-z_0-9]+)(\\\\\n\
663 #define AIX_PTHREAD_TEST_CT 1
664 static tTestDesc aAix_PthreadTests[] = {
665 { TT_EGREP, zAix_PthreadSelect0, (regex_t*)NULL }, };
668 * Fix Command Arguments for Aix_Pthread
670 static const char* apzAix_PthreadPatch[] = {
675 /* * * * * * * * * * * * * * * * * * * * * * * * * *
677 * Description of Aix_Stdint_1 fix
679 tSCC zAix_Stdint_1Name[] =
683 * File name selection pattern
685 tSCC zAix_Stdint_1List[] =
686 "stdint-aix.h\0stdint.h\0";
688 * Machine/OS name selection pattern
690 tSCC* apzAix_Stdint_1Machs[] = {
695 * content selection pattern - do fix if pattern found
697 tSCC zAix_Stdint_1Select0[] =
698 "#define[ \t]UINT8_MAX[ \t]\\(255U\\)\n\
699 #define[ \t]UINT16_MAX[ \t]\\(65535U\\)";
701 #define AIX_STDINT_1_TEST_CT 1
702 static tTestDesc aAix_Stdint_1Tests[] = {
703 { TT_EGREP, zAix_Stdint_1Select0, (regex_t*)NULL }, };
706 * Fix Command Arguments for Aix_Stdint_1
708 static const char* apzAix_Stdint_1Patch[] = {
710 "#define UINT8_MAX\t(255)\n\
711 #define UINT16_MAX\t(65535)",
714 /* * * * * * * * * * * * * * * * * * * * * * * * * *
716 * Description of Aix_Stdint_2 fix
718 tSCC zAix_Stdint_2Name[] =
722 * File name selection pattern
724 tSCC zAix_Stdint_2List[] =
725 "stdint-aix.h\0stdint.h\0";
727 * Machine/OS name selection pattern
729 tSCC* apzAix_Stdint_2Machs[] = {
734 * content selection pattern - do fix if pattern found
736 tSCC zAix_Stdint_2Select0[] =
737 "#define[ \t]INTPTR_MIN[ \t]INT64_MIN\n\
738 #define[ \t]INTPTR_MAX[ \t]INT64_MAX\n\
739 #define[ \t]UINTPTR_MAX[ \t]UINT64_MAX\n\
741 #define[ \t]INTPTR_MIN[ \t]INT32_MIN\n\
742 #define[ \t]INTPTR_MAX[ \t]INT32_MAX\n\
743 #define[ \t]UINTPTR_MAX[ \t]UINT32_MAX";
745 #define AIX_STDINT_2_TEST_CT 1
746 static tTestDesc aAix_Stdint_2Tests[] = {
747 { TT_EGREP, zAix_Stdint_2Select0, (regex_t*)NULL }, };
750 * Fix Command Arguments for Aix_Stdint_2
752 static const char* apzAix_Stdint_2Patch[] = {
754 "#define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
755 #define INTPTR_MAX\t9223372036854775807L\n\
756 #define UINTPTR_MAX\t18446744073709551615UL\n\
758 #define INTPTR_MIN\t(-INTPTR_MAX-1)\n\
759 #define INTPTR_MAX\t2147483647L\n\
760 #define UINTPTR_MAX\t4294967295UL",
763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
765 * Description of Aix_Stdint_3 fix
767 tSCC zAix_Stdint_3Name[] =
771 * File name selection pattern
773 tSCC zAix_Stdint_3List[] =
774 "stdint-aix.h\0stdint.h\0";
776 * Machine/OS name selection pattern
778 tSCC* apzAix_Stdint_3Machs[] = {
783 * content selection pattern - do fix if pattern found
785 tSCC zAix_Stdint_3Select0[] =
786 "#define[ \t]PTRDIFF_MIN[ \t]INT64_MIN\n\
787 #define[ \t]PTRDIFF_MAX[ \t]INT64_MAX\n\
789 #define[ \t]PTRDIFF_MIN[ \t]*INT32_MIN\n\
790 #define[ \t]PTRDIFF_MAX[ \t]*INT32_MAX";
792 #define AIX_STDINT_3_TEST_CT 1
793 static tTestDesc aAix_Stdint_3Tests[] = {
794 { TT_EGREP, zAix_Stdint_3Select0, (regex_t*)NULL }, };
797 * Fix Command Arguments for Aix_Stdint_3
799 static const char* apzAix_Stdint_3Patch[] = {
801 "#define PTRDIFF_MIN\t(-9223372036854775807L - 1)\n\
802 #define PTRDIFF_MAX\t9223372036854775807L\n\
804 #define PTRDIFF_MIN\t(-2147483647L - 1)\n\
805 #define PTRDIFF_MAX\t2147483647L",
808 /* * * * * * * * * * * * * * * * * * * * * * * * * *
810 * Description of Aix_Stdint_4 fix
812 tSCC zAix_Stdint_4Name[] =
816 * File name selection pattern
818 tSCC zAix_Stdint_4List[] =
819 "stdint-aix.h\0stdint.h\0";
821 * Machine/OS name selection pattern
823 tSCC* apzAix_Stdint_4Machs[] = {
828 * content selection pattern - do fix if pattern found
830 tSCC zAix_Stdint_4Select0[] =
831 "#define[ \t]SIZE_MAX[ \t]UINT64_MAX\n\
833 #define[ \t]SIZE_MAX[ \t]*UINT32_MAX";
835 #define AIX_STDINT_4_TEST_CT 1
836 static tTestDesc aAix_Stdint_4Tests[] = {
837 { TT_EGREP, zAix_Stdint_4Select0, (regex_t*)NULL }, };
840 * Fix Command Arguments for Aix_Stdint_4
842 static const char* apzAix_Stdint_4Patch[] = {
844 "#define SIZE_MAX\t18446744073709551615UL\n\
846 #define SIZE_MAX\t4294967295UL",
849 /* * * * * * * * * * * * * * * * * * * * * * * * * *
851 * Description of Aix_Stdint_5 fix
853 tSCC zAix_Stdint_5Name[] =
857 * File name selection pattern
859 tSCC zAix_Stdint_5List[] =
860 "stdint-aix.h\0stdint.h\0";
862 * Machine/OS name selection pattern
864 tSCC* apzAix_Stdint_5Machs[] = {
869 * content selection pattern - do fix if pattern found
871 tSCC zAix_Stdint_5Select0[] =
872 "#define[ \t]UINT8_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)\n\
873 #define[ \t]UINT16_C\\(c\\)[ \t]__CONCAT__\\(c,U\\)";
875 #define AIX_STDINT_5_TEST_CT 1
876 static tTestDesc aAix_Stdint_5Tests[] = {
877 { TT_EGREP, zAix_Stdint_5Select0, (regex_t*)NULL }, };
880 * Fix Command Arguments for Aix_Stdint_5
882 static const char* apzAix_Stdint_5Patch[] = {
884 "#define UINT8_C(c)\tc\n\
885 #define UINT16_C(c)\tc",
888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
890 * Description of Aix_Sysmachine fix
892 tSCC zAix_SysmachineName[] =
896 * File name selection pattern
898 tSCC zAix_SysmachineList[] =
901 * Machine/OS name selection pattern
903 #define apzAix_SysmachineMachs (const char**)NULL
906 * content selection pattern - do fix if pattern found
908 tSCC zAix_SysmachineSelect0[] =
911 #define AIX_SYSMACHINE_TEST_CT 1
912 static tTestDesc aAix_SysmachineTests[] = {
913 { TT_EGREP, zAix_SysmachineSelect0, (regex_t*)NULL }, };
916 * Fix Command Arguments for Aix_Sysmachine
918 static const char* apzAix_SysmachinePatch[] = {
923 /* * * * * * * * * * * * * * * * * * * * * * * * * *
925 * Description of Aix_Syswait_2 fix
927 tSCC zAix_Syswait_2Name[] =
931 * File name selection pattern
933 tSCC zAix_Syswait_2List[] =
936 * Machine/OS name selection pattern
938 #define apzAix_Syswait_2Machs (const char**)NULL
941 * content selection pattern - do fix if pattern found
943 tSCC zAix_Syswait_2Select0[] =
944 "\\? (\\(\\(\\(\\(unsigned[^)]*\\)[^)]*\\) >> [^)]*\\) \\& 0xff\\) : -1)";
946 #define AIX_SYSWAIT_2_TEST_CT 1
947 static tTestDesc aAix_Syswait_2Tests[] = {
948 { TT_EGREP, zAix_Syswait_2Select0, (regex_t*)NULL }, };
951 * Fix Command Arguments for Aix_Syswait_2
953 static const char* apzAix_Syswait_2Patch[] = {
958 /* * * * * * * * * * * * * * * * * * * * * * * * * *
960 * Description of Aix_Volatile fix
962 tSCC zAix_VolatileName[] =
966 * File name selection pattern
968 tSCC zAix_VolatileList[] =
971 * Machine/OS name selection pattern
973 #define apzAix_VolatileMachs (const char**)NULL
976 * content selection pattern - do fix if pattern found
978 tSCC zAix_VolatileSelect0[] =
979 "typedef volatile int sig_atomic_t";
981 #define AIX_VOLATILE_TEST_CT 1
982 static tTestDesc aAix_VolatileTests[] = {
983 { TT_EGREP, zAix_VolatileSelect0, (regex_t*)NULL }, };
986 * Fix Command Arguments for Aix_Volatile
988 static const char* apzAix_VolatilePatch[] = {
990 "typedef int sig_atomic_t",
993 /* * * * * * * * * * * * * * * * * * * * * * * * * *
995 * Description of Alpha___Assert fix
997 tSCC zAlpha___AssertName[] =
1001 * File name selection pattern
1003 tSCC zAlpha___AssertList[] =
1006 * Machine/OS name selection pattern
1008 #define apzAlpha___AssertMachs (const char**)NULL
1011 * content selection pattern - do fix if pattern found
1013 tSCC zAlpha___AssertSelect0[] =
1014 "__assert\\(char \\*, char \\*, int\\)";
1016 #define ALPHA___ASSERT_TEST_CT 1
1017 static tTestDesc aAlpha___AssertTests[] = {
1018 { TT_EGREP, zAlpha___AssertSelect0, (regex_t*)NULL }, };
1021 * Fix Command Arguments for Alpha___Assert
1023 static const char* apzAlpha___AssertPatch[] = {
1025 "__assert(const char *, const char *, int)",
1028 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1030 * Description of Alpha___Extern_Prefix fix
1032 tSCC zAlpha___Extern_PrefixName[] =
1033 "alpha___extern_prefix";
1036 * File name selection pattern
1038 #define zAlpha___Extern_PrefixList (char*)NULL
1040 * Machine/OS name selection pattern
1042 tSCC* apzAlpha___Extern_PrefixMachs[] = {
1044 (const char*)NULL };
1047 * content selection pattern - do fix if pattern found
1049 tSCC zAlpha___Extern_PrefixSelect0[] =
1050 "(.*)(defined\\(__DECC\\)|def[ \t]*__DECC)[ \t]*\n\
1051 (#[ \t]*pragma[ \t]*extern_prefix.*)";
1053 #define ALPHA___EXTERN_PREFIX_TEST_CT 1
1054 static tTestDesc aAlpha___Extern_PrefixTests[] = {
1055 { TT_EGREP, zAlpha___Extern_PrefixSelect0, (regex_t*)NULL }, };
1058 * Fix Command Arguments for Alpha___Extern_Prefix
1060 static const char* apzAlpha___Extern_PrefixPatch[] = {
1062 "%1 (defined(__DECC) || defined(__PRAGMA_EXTERN_PREFIX))\n\
1066 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1068 * Description of Alpha___Extern_Prefix_Standards fix
1070 tSCC zAlpha___Extern_Prefix_StandardsName[] =
1071 "alpha___extern_prefix_standards";
1074 * File name selection pattern
1076 tSCC zAlpha___Extern_Prefix_StandardsList[] =
1079 * Machine/OS name selection pattern
1081 tSCC* apzAlpha___Extern_Prefix_StandardsMachs[] = {
1083 (const char*)NULL };
1086 * content selection pattern - do fix if pattern found
1088 tSCC zAlpha___Extern_Prefix_StandardsSelect0[] =
1089 ".*!defined\\(_LIBC_POLLUTION_H_\\) && !defined\\(__DECC\\)";
1091 #define ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT 1
1092 static tTestDesc aAlpha___Extern_Prefix_StandardsTests[] = {
1093 { TT_EGREP, zAlpha___Extern_Prefix_StandardsSelect0, (regex_t*)NULL }, };
1096 * Fix Command Arguments for Alpha___Extern_Prefix_Standards
1098 static const char* apzAlpha___Extern_Prefix_StandardsPatch[] = {
1100 "%0 && !defined(__PRAGMA_EXTERN_PREFIX)",
1103 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1105 * Description of Alpha___Extern_Prefix_Sys_Stat fix
1107 tSCC zAlpha___Extern_Prefix_Sys_StatName[] =
1108 "alpha___extern_prefix_sys_stat";
1111 * File name selection pattern
1113 tSCC zAlpha___Extern_Prefix_Sys_StatList[] =
1114 "sys/stat.h\0sys/mount.h\0";
1116 * Machine/OS name selection pattern
1118 tSCC* apzAlpha___Extern_Prefix_Sys_StatMachs[] = {
1120 (const char*)NULL };
1123 * content selection pattern - do fix if pattern found
1125 tSCC zAlpha___Extern_Prefix_Sys_StatSelect0[] =
1126 "#[ \t]*if[ \t]*defined\\(__DECC\\)";
1128 #define ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT 1
1129 static tTestDesc aAlpha___Extern_Prefix_Sys_StatTests[] = {
1130 { TT_EGREP, zAlpha___Extern_Prefix_Sys_StatSelect0, (regex_t*)NULL }, };
1133 * Fix Command Arguments for Alpha___Extern_Prefix_Sys_Stat
1135 static const char* apzAlpha___Extern_Prefix_Sys_StatPatch[] = {
1137 "%0 || defined(__PRAGMA_EXTERN_PREFIX)",
1140 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1142 * Description of Alpha_Assert fix
1144 tSCC zAlpha_AssertName[] =
1148 * File name selection pattern
1150 tSCC zAlpha_AssertList[] =
1153 * Machine/OS name selection pattern
1155 #define apzAlpha_AssertMachs (const char**)NULL
1158 * content selection pattern - do fix if pattern found
1160 tSCC zAlpha_AssertSelect0[] =
1161 "(#[ \t]*define assert\\(EX\\).*)\\(\\(int\\) \\(EX\\)\\)";
1163 #define ALPHA_ASSERT_TEST_CT 1
1164 static tTestDesc aAlpha_AssertTests[] = {
1165 { TT_EGREP, zAlpha_AssertSelect0, (regex_t*)NULL }, };
1168 * Fix Command Arguments for Alpha_Assert
1170 static const char* apzAlpha_AssertPatch[] = {
1175 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1177 * Description of Alpha_Bad_Lval fix
1179 tSCC zAlpha_Bad_LvalName[] =
1183 * File name selection pattern
1185 #define zAlpha_Bad_LvalList (char*)NULL
1187 * Machine/OS name selection pattern
1189 tSCC* apzAlpha_Bad_LvalMachs[] = {
1191 (const char*)NULL };
1194 * content selection pattern - do fix if pattern found
1196 tSCC zAlpha_Bad_LvalSelect0[] =
1197 "^[ \t]*#[ \t]*pragma[ \t]+extern_prefix";
1199 #define ALPHA_BAD_LVAL_TEST_CT 1
1200 static tTestDesc aAlpha_Bad_LvalTests[] = {
1201 { TT_EGREP, zAlpha_Bad_LvalSelect0, (regex_t*)NULL }, };
1204 * Fix Command Arguments for Alpha_Bad_Lval
1206 static const char* apzAlpha_Bad_LvalPatch[] = { sed_cmd_z,
1207 "-e", "s/^[ \t]*#[ \t]*define[ \t][ \t]*\\([^(]*\\)\\(([^)]*)\\)[ \t]*\\(_.*\\)\\1\\2[ \t]*$/#define \\1 \\3\\1/",
1210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1212 * Description of Alpha_Getopt fix
1214 tSCC zAlpha_GetoptName[] =
1218 * File name selection pattern
1220 tSCC zAlpha_GetoptList[] =
1221 "stdio.h\0stdlib.h\0";
1223 * Machine/OS name selection pattern
1225 #define apzAlpha_GetoptMachs (const char**)NULL
1228 * content selection pattern - do fix if pattern found
1230 tSCC zAlpha_GetoptSelect0[] =
1231 "getopt\\(int, char \\*\\[\\], *char \\*\\)";
1233 #define ALPHA_GETOPT_TEST_CT 1
1234 static tTestDesc aAlpha_GetoptTests[] = {
1235 { TT_EGREP, zAlpha_GetoptSelect0, (regex_t*)NULL }, };
1238 * Fix Command Arguments for Alpha_Getopt
1240 static const char* apzAlpha_GetoptPatch[] = {
1242 "getopt(int, char *const[], const char *)",
1245 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1247 * Description of Alpha_If_Semicolon fix
1249 tSCC zAlpha_If_SemicolonName[] =
1250 "alpha_if_semicolon";
1253 * File name selection pattern
1255 tSCC zAlpha_If_SemicolonList[] =
1258 * Machine/OS name selection pattern
1260 #define apzAlpha_If_SemicolonMachs (const char**)NULL
1263 * content selection pattern - do fix if pattern found
1265 tSCC zAlpha_If_SemicolonSelect0[] =
1266 "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
1268 #define ALPHA_IF_SEMICOLON_TEST_CT 1
1269 static tTestDesc aAlpha_If_SemicolonTests[] = {
1270 { TT_EGREP, zAlpha_If_SemicolonSelect0, (regex_t*)NULL }, };
1273 * Fix Command Arguments for Alpha_If_Semicolon
1275 static const char* apzAlpha_If_SemicolonPatch[] = {
1277 "struct sockaddr vmif_paddr;\t/*",
1280 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1282 * Description of Alpha_Parens fix
1284 tSCC zAlpha_ParensName[] =
1288 * File name selection pattern
1290 tSCC zAlpha_ParensList[] =
1293 * Machine/OS name selection pattern
1295 #define apzAlpha_ParensMachs (const char**)NULL
1298 * content selection pattern - do fix if pattern found
1300 tSCC zAlpha_ParensSelect0[] =
1301 "#ifndef\\(__mips64\\)";
1303 #define ALPHA_PARENS_TEST_CT 1
1304 static tTestDesc aAlpha_ParensTests[] = {
1305 { TT_EGREP, zAlpha_ParensSelect0, (regex_t*)NULL }, };
1308 * Fix Command Arguments for Alpha_Parens
1310 static const char* apzAlpha_ParensPatch[] = {
1315 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1317 * Description of Alpha_Pthread fix
1319 tSCC zAlpha_PthreadName[] =
1323 * File name selection pattern
1325 tSCC zAlpha_PthreadList[] =
1328 * Machine/OS name selection pattern
1330 tSCC* apzAlpha_PthreadMachs[] = {
1332 (const char*)NULL };
1335 * content selection pattern - do fix if pattern found
1337 tSCC zAlpha_PthreadSelect0[] =
1338 "((#[ \t]*if)([ \t]*defined[ \t]*\\(_PTHREAD_ENV_DECC\\)|def _PTHREAD_ENV_DECC)(.*))\n\
1339 (#[ \t]*define _PTHREAD_USE_PTDNAM_)";
1341 #define ALPHA_PTHREAD_TEST_CT 1
1342 static tTestDesc aAlpha_PthreadTests[] = {
1343 { TT_EGREP, zAlpha_PthreadSelect0, (regex_t*)NULL }, };
1346 * Fix Command Arguments for Alpha_Pthread
1348 static const char* apzAlpha_PthreadPatch[] = {
1350 "%2 defined (_PTHREAD_ENV_DECC)%4 || defined (__PRAGMA_EXTERN_PREFIX)\n\
1354 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1356 * Description of Alpha_Pthread_Gcc fix
1358 tSCC zAlpha_Pthread_GccName[] =
1359 "alpha_pthread_gcc";
1362 * File name selection pattern
1364 tSCC zAlpha_Pthread_GccList[] =
1367 * Machine/OS name selection pattern
1369 tSCC* apzAlpha_Pthread_GccMachs[] = {
1371 (const char*)NULL };
1374 * content selection pattern - do fix if pattern found
1376 tSCC zAlpha_Pthread_GccSelect0[] =
1378 # error <pthread.h>: unrecognized compiler.";
1380 #define ALPHA_PTHREAD_GCC_TEST_CT 1
1381 static tTestDesc aAlpha_Pthread_GccTests[] = {
1382 { TT_EGREP, zAlpha_Pthread_GccSelect0, (regex_t*)NULL }, };
1385 * Fix Command Arguments for Alpha_Pthread_Gcc
1387 static const char* apzAlpha_Pthread_GccPatch[] = {
1389 "#elif defined (__GNUC__)\n\
1390 # define _PTHREAD_ENV_GCC\n\
1394 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1396 * Description of Alpha_Pthread_Init fix
1398 tSCC zAlpha_Pthread_InitName[] =
1399 "alpha_pthread_init";
1402 * File name selection pattern
1404 tSCC zAlpha_Pthread_InitList[] =
1407 * Machine/OS name selection pattern
1409 tSCC* apzAlpha_Pthread_InitMachs[] = {
1411 (const char*)NULL };
1414 * content selection pattern - do fix if pattern found
1416 tSCC zAlpha_Pthread_InitSelect0[] =
1417 " \\* @\\(#\\).RCSfile: pthread\\.h,v \\$ .Revision: 1\\.1\\.33\\.21 \\$ \\(DEC\\) .Date: 2000/08/15 15:30:13 \\$";
1419 #define ALPHA_PTHREAD_INIT_TEST_CT 1
1420 static tTestDesc aAlpha_Pthread_InitTests[] = {
1421 { TT_EGREP, zAlpha_Pthread_InitSelect0, (regex_t*)NULL }, };
1424 * Fix Command Arguments for Alpha_Pthread_Init
1426 static const char* apzAlpha_Pthread_InitPatch[] = { sed_cmd_z,
1427 "-e", "s@MVALID\\(.*\\)A}@MVALID\\1A, 0, 0, 0, 0, 0, 0 }@\n\
1428 s@MVALID\\(.*\\)_}@MVALID\\1_, 0, 0, 0, 0 }@\n\
1429 s@CVALID\\(.*\\)A}@CVALID\\1A, 0, 0, 0, 0 }@\n\
1430 s@CVALID\\(.*\\)_}@CVALID\\1_, 0, 0 }@\n\
1431 s@WVALID\\(.*\\)A}@WVALID\\1A, 0, 0, 0, 0, 0, 0, 0, 0, 0 }@\n\
1432 s@WVALID\\(.*\\)_}@WVALID\\1_, 0, 0, 0, 0, 0, 0, 0 }@\n",
1435 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1437 * Description of Alpha_Sbrk fix
1439 tSCC zAlpha_SbrkName[] =
1443 * File name selection pattern
1445 tSCC zAlpha_SbrkList[] =
1448 * Machine/OS name selection pattern
1450 #define apzAlpha_SbrkMachs (const char**)NULL
1453 * content selection pattern - do fix if pattern found
1455 tSCC zAlpha_SbrkSelect0[] =
1456 "char[ \t]*\\*[\t ]*sbrk[ \t]*\\(";
1458 #define ALPHA_SBRK_TEST_CT 1
1459 static tTestDesc aAlpha_SbrkTests[] = {
1460 { TT_EGREP, zAlpha_SbrkSelect0, (regex_t*)NULL }, };
1463 * Fix Command Arguments for Alpha_Sbrk
1465 static const char* apzAlpha_SbrkPatch[] = {
1470 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1472 * Description of Avoid_Bool_Define fix
1474 tSCC zAvoid_Bool_DefineName[] =
1475 "avoid_bool_define";
1478 * File name selection pattern
1480 tSCC zAvoid_Bool_DefineList[] =
1481 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1483 * Machine/OS name selection pattern
1485 #define apzAvoid_Bool_DefineMachs (const char**)NULL
1488 * content selection pattern - do fix if pattern found
1490 tSCC zAvoid_Bool_DefineSelect0[] =
1491 "#[ \t]*define[ \t]+bool[ \t]";
1494 * content bypass pattern - skip fix if pattern found
1496 tSCC zAvoid_Bool_DefineBypass0[] =
1499 #define AVOID_BOOL_DEFINE_TEST_CT 2
1500 static tTestDesc aAvoid_Bool_DefineTests[] = {
1501 { TT_NEGREP, zAvoid_Bool_DefineBypass0, (regex_t*)NULL },
1502 { TT_EGREP, zAvoid_Bool_DefineSelect0, (regex_t*)NULL }, };
1505 * Fix Command Arguments for Avoid_Bool_Define
1507 static const char* apzAvoid_Bool_DefinePatch[] = {
1509 "#ifndef __cplusplus\n\
1512 "^[ \t]*#[ \t]*define[ \t]+bool[ \t].*",
1515 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1517 * Description of Avoid_Bool_Type fix
1519 tSCC zAvoid_Bool_TypeName[] =
1523 * File name selection pattern
1525 tSCC zAvoid_Bool_TypeList[] =
1526 "curses.h\0curses_colr/curses.h\0term.h\0tinfo.h\0";
1528 * Machine/OS name selection pattern
1530 #define apzAvoid_Bool_TypeMachs (const char**)NULL
1533 * content selection pattern - do fix if pattern found
1535 tSCC zAvoid_Bool_TypeSelect0[] =
1536 "^[ \t]*typedef[ \t].*[ \t]bool[ \t]*;";
1539 * content bypass pattern - skip fix if pattern found
1541 tSCC zAvoid_Bool_TypeBypass0[] =
1544 #define AVOID_BOOL_TYPE_TEST_CT 2
1545 static tTestDesc aAvoid_Bool_TypeTests[] = {
1546 { TT_NEGREP, zAvoid_Bool_TypeBypass0, (regex_t*)NULL },
1547 { TT_EGREP, zAvoid_Bool_TypeSelect0, (regex_t*)NULL }, };
1550 * Fix Command Arguments for Avoid_Bool_Type
1552 static const char* apzAvoid_Bool_TypePatch[] = {
1554 "#ifndef __cplusplus\n\
1559 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1561 * Description of Avoid_Wchar_T_Type fix
1563 tSCC zAvoid_Wchar_T_TypeName[] =
1564 "avoid_wchar_t_type";
1567 * File name selection pattern
1569 #define zAvoid_Wchar_T_TypeList (char*)NULL
1571 * Machine/OS name selection pattern
1573 #define apzAvoid_Wchar_T_TypeMachs (const char**)NULL
1576 * content selection pattern - do fix if pattern found
1578 tSCC zAvoid_Wchar_T_TypeSelect0[] =
1579 "^[ \t]*typedef[ \t].*[ \t]wchar_t[ \t]*;";
1582 * content bypass pattern - skip fix if pattern found
1584 tSCC zAvoid_Wchar_T_TypeBypass0[] =
1586 tSCC zAvoid_Wchar_T_TypeBypass1[] =
1588 tSCC zAvoid_Wchar_T_TypeBypass2[] =
1589 "XFree86: xc/lib/X11/Xlib\\.h";
1591 #define AVOID_WCHAR_T_TYPE_TEST_CT 4
1592 static tTestDesc aAvoid_Wchar_T_TypeTests[] = {
1593 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass0, (regex_t*)NULL },
1594 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass1, (regex_t*)NULL },
1595 { TT_NEGREP, zAvoid_Wchar_T_TypeBypass2, (regex_t*)NULL },
1596 { TT_EGREP, zAvoid_Wchar_T_TypeSelect0, (regex_t*)NULL }, };
1599 * Fix Command Arguments for Avoid_Wchar_T_Type
1601 static const char* apzAvoid_Wchar_T_TypePatch[] = {
1603 "#ifndef __cplusplus\n\
1608 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1610 * Description of Bad_Struct_Term fix
1612 tSCC zBad_Struct_TermName[] =
1616 * File name selection pattern
1618 tSCC zBad_Struct_TermList[] =
1621 * Machine/OS name selection pattern
1623 #define apzBad_Struct_TermMachs (const char**)NULL
1626 * content selection pattern - do fix if pattern found
1628 tSCC zBad_Struct_TermSelect0[] =
1629 "^[ \t]*typedef[ \t]+struct[ \t]+term[ \t]*;";
1631 #define BAD_STRUCT_TERM_TEST_CT 1
1632 static tTestDesc aBad_Struct_TermTests[] = {
1633 { TT_EGREP, zBad_Struct_TermSelect0, (regex_t*)NULL }, };
1636 * Fix Command Arguments for Bad_Struct_Term
1638 static const char* apzBad_Struct_TermPatch[] = {
1643 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1645 * Description of Badquote fix
1647 tSCC zBadquoteName[] =
1651 * File name selection pattern
1653 tSCC zBadquoteList[] =
1654 "sundev/vuid_event.h\0";
1656 * Machine/OS name selection pattern
1658 #define apzBadquoteMachs (const char**)NULL
1661 * content selection pattern - do fix if pattern found
1663 tSCC zBadquoteSelect0[] =
1666 #define BADQUOTE_TEST_CT 1
1667 static tTestDesc aBadquoteTests[] = {
1668 { TT_EGREP, zBadquoteSelect0, (regex_t*)NULL }, };
1671 * Fix Command Arguments for Badquote
1673 static const char* apzBadquotePatch[] = {
1678 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1680 * Description of Broken_Assert_Stdio fix
1682 tSCC zBroken_Assert_StdioName[] =
1683 "broken_assert_stdio";
1686 * File name selection pattern
1688 tSCC zBroken_Assert_StdioList[] =
1691 * Machine/OS name selection pattern
1693 #define apzBroken_Assert_StdioMachs (const char**)NULL
1696 * content selection pattern - do fix if pattern found
1698 tSCC zBroken_Assert_StdioSelect0[] =
1702 * content bypass pattern - skip fix if pattern found
1704 tSCC zBroken_Assert_StdioBypass0[] =
1705 "include.*stdio\\.h";
1707 #define BROKEN_ASSERT_STDIO_TEST_CT 2
1708 static tTestDesc aBroken_Assert_StdioTests[] = {
1709 { TT_NEGREP, zBroken_Assert_StdioBypass0, (regex_t*)NULL },
1710 { TT_EGREP, zBroken_Assert_StdioSelect0, (regex_t*)NULL }, };
1713 * Fix Command Arguments for Broken_Assert_Stdio
1715 static const char* apzBroken_Assert_StdioPatch[] = {
1717 "#include <stdio.h>\n",
1720 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1722 * Description of Broken_Assert_Stdlib fix
1724 tSCC zBroken_Assert_StdlibName[] =
1725 "broken_assert_stdlib";
1728 * File name selection pattern
1730 tSCC zBroken_Assert_StdlibList[] =
1733 * Machine/OS name selection pattern
1735 #define apzBroken_Assert_StdlibMachs (const char**)NULL
1738 * content selection pattern - do fix if pattern found
1740 tSCC zBroken_Assert_StdlibSelect0[] =
1741 "exit *\\(|abort *\\(";
1744 * content bypass pattern - skip fix if pattern found
1746 tSCC zBroken_Assert_StdlibBypass0[] =
1747 "include.*stdlib\\.h";
1749 #define BROKEN_ASSERT_STDLIB_TEST_CT 2
1750 static tTestDesc aBroken_Assert_StdlibTests[] = {
1751 { TT_NEGREP, zBroken_Assert_StdlibBypass0, (regex_t*)NULL },
1752 { TT_EGREP, zBroken_Assert_StdlibSelect0, (regex_t*)NULL }, };
1755 * Fix Command Arguments for Broken_Assert_Stdlib
1757 static const char* apzBroken_Assert_StdlibPatch[] = {
1759 "#ifdef __cplusplus\n\
1760 #include <stdlib.h>\n\
1764 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1766 * Description of Broken_Cabs fix
1768 tSCC zBroken_CabsName[] =
1772 * File name selection pattern
1774 tSCC zBroken_CabsList[] =
1775 "math.h\0architecture/*/math.h\0";
1777 * Machine/OS name selection pattern
1779 #define apzBroken_CabsMachs (const char**)NULL
1782 * content selection pattern - do fix if pattern found
1784 tSCC zBroken_CabsSelect0[] =
1785 "^extern[ \t]+double[ \t]+cabs";
1787 #define BROKEN_CABS_TEST_CT 1
1788 static tTestDesc aBroken_CabsTests[] = {
1789 { TT_EGREP, zBroken_CabsSelect0, (regex_t*)NULL }, };
1792 * Fix Command Arguments for Broken_Cabs
1794 static const char* apzBroken_CabsPatch[] = { sed_cmd_z,
1795 "-e", "s/^extern[ \t]*double[ \t]*cabs[ \t]*([^\\)]*);//",
1796 "-e", "s/^extern[ \t]*long[ \t]*double[ \t]*cabsl[ \t]*([^\\)]*);//",
1799 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1801 * Description of Broken_Nan fix
1803 tSCC zBroken_NanName[] =
1807 * File name selection pattern
1809 tSCC zBroken_NanList[] =
1810 "architecture/ppc/math.h\0architecture/*/math.h\0";
1812 * Machine/OS name selection pattern
1814 #define apzBroken_NanMachs (const char**)NULL
1817 * content selection pattern - do fix if pattern found
1819 tSCC zBroken_NanSelect0[] =
1820 "#if defined(__APPLE_CC__) && (__APPLE_CC__ >= 1345)";
1823 * content bypass pattern - skip fix if pattern found
1825 tSCC zBroken_NanBypass0[] =
1828 #define BROKEN_NAN_TEST_CT 2
1829 static tTestDesc aBroken_NanTests[] = {
1830 { TT_NEGREP, zBroken_NanBypass0, (regex_t*)NULL },
1831 { TT_EGREP, zBroken_NanSelect0, (regex_t*)NULL }, };
1834 * Fix Command Arguments for Broken_Nan
1836 static const char* apzBroken_NanPatch[] = {
1841 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1843 * Description of Bsd_Stdio_Attrs_Conflict fix
1845 tSCC zBsd_Stdio_Attrs_ConflictName[] =
1846 "bsd_stdio_attrs_conflict";
1849 * File name selection pattern
1851 tSCC zBsd_Stdio_Attrs_ConflictList[] =
1854 * Machine/OS name selection pattern
1856 tSCC* apzBsd_Stdio_Attrs_ConflictMachs[] = {
1859 (const char*)NULL };
1862 * content selection pattern - do fix if pattern found
1864 tSCC zBsd_Stdio_Attrs_ConflictSelect0[] =
1865 "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
1867 #define BSD_STDIO_ATTRS_CONFLICT_TEST_CT 1
1868 static tTestDesc aBsd_Stdio_Attrs_ConflictTests[] = {
1869 { TT_EGREP, zBsd_Stdio_Attrs_ConflictSelect0, (regex_t*)NULL }, };
1872 * Fix Command Arguments for Bsd_Stdio_Attrs_Conflict
1874 static const char* apzBsd_Stdio_Attrs_ConflictPatch[] = {
1876 "#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)\n\
1877 #define _BSD_STRINGX(_BSD_X) #_BSD_X\n\
1878 int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) \"__svfscanf\");",
1881 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1883 * Description of Ctrl_Quotes_Def fix
1885 tSCC zCtrl_Quotes_DefName[] =
1889 * File name selection pattern
1891 #define zCtrl_Quotes_DefList (char*)NULL
1893 * Machine/OS name selection pattern
1895 #define apzCtrl_Quotes_DefMachs (const char**)NULL
1898 * content selection pattern - do fix if pattern found
1900 tSCC zCtrl_Quotes_DefSelect0[] =
1901 "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
1903 #define CTRL_QUOTES_DEF_TEST_CT 1
1904 static tTestDesc aCtrl_Quotes_DefTests[] = {
1905 { TT_EGREP, zCtrl_Quotes_DefSelect0, (regex_t*)NULL }, };
1908 * Fix Command Arguments for Ctrl_Quotes_Def
1910 static const char* apzCtrl_Quotes_DefPatch[] = {
1915 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1917 * Description of Ctrl_Quotes_Use fix
1919 tSCC zCtrl_Quotes_UseName[] =
1923 * File name selection pattern
1925 #define zCtrl_Quotes_UseList (char*)NULL
1927 * Machine/OS name selection pattern
1929 #define apzCtrl_Quotes_UseMachs (const char**)NULL
1932 * content selection pattern - do fix if pattern found
1934 tSCC zCtrl_Quotes_UseSelect0[] =
1935 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+CTRL[ \t]*\\( *[^,']";
1937 #define CTRL_QUOTES_USE_TEST_CT 1
1938 static tTestDesc aCtrl_Quotes_UseTests[] = {
1939 { TT_EGREP, zCtrl_Quotes_UseSelect0, (regex_t*)NULL }, };
1942 * Fix Command Arguments for Ctrl_Quotes_Use
1944 static const char* apzCtrl_Quotes_UsePatch[] = {
1949 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1951 * Description of Cxx_Unready fix
1953 tSCC zCxx_UnreadyName[] =
1957 * File name selection pattern
1959 tSCC zCxx_UnreadyList[] =
1960 "sys/mman.h\0rpc/types.h\0";
1962 * Machine/OS name selection pattern
1964 #define apzCxx_UnreadyMachs (const char**)NULL
1967 * content selection pattern - do fix if pattern found
1969 tSCC zCxx_UnreadySelect0[] =
1973 * content bypass pattern - skip fix if pattern found
1975 tSCC zCxx_UnreadyBypass0[] =
1976 "\"C\"|__BEGIN_DECLS";
1978 #define CXX_UNREADY_TEST_CT 2
1979 static tTestDesc aCxx_UnreadyTests[] = {
1980 { TT_NEGREP, zCxx_UnreadyBypass0, (regex_t*)NULL },
1981 { TT_EGREP, zCxx_UnreadySelect0, (regex_t*)NULL }, };
1984 * Fix Command Arguments for Cxx_Unready
1986 static const char* apzCxx_UnreadyPatch[] = {
1988 "#ifdef __cplusplus\n\
1991 "#ifdef __cplusplus\n\
1996 /* * * * * * * * * * * * * * * * * * * * * * * * * *
1998 * Description of Darwin_Externc fix
2000 tSCC zDarwin_ExterncName[] =
2004 * File name selection pattern
2006 tSCC zDarwin_ExterncList[] =
2007 "mach-o/swap.h\0mach/mach_time.h\0mach/mach_traps.h\0mach/message.h\0mach/mig.h\0mach/semaphore.h\0";
2009 * Machine/OS name selection pattern
2011 tSCC* apzDarwin_ExterncMachs[] = {
2013 (const char*)NULL };
2016 * content bypass pattern - skip fix if pattern found
2018 tSCC zDarwin_ExterncBypass0[] =
2020 tSCC zDarwin_ExterncBypass1[] =
2023 #define DARWIN_EXTERNC_TEST_CT 2
2024 static tTestDesc aDarwin_ExterncTests[] = {
2025 { TT_NEGREP, zDarwin_ExterncBypass0, (regex_t*)NULL },
2026 { TT_NEGREP, zDarwin_ExterncBypass1, (regex_t*)NULL }, };
2029 * Fix Command Arguments for Darwin_Externc
2031 static const char* apzDarwin_ExterncPatch[] = {
2033 "#ifdef __cplusplus\n\
2036 "#ifdef __cplusplus\n\
2041 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2043 * Description of Darwin_Gcc4_Breakage fix
2045 tSCC zDarwin_Gcc4_BreakageName[] =
2046 "darwin_gcc4_breakage";
2049 * File name selection pattern
2051 tSCC zDarwin_Gcc4_BreakageList[] =
2052 "AvailabilityMacros.h\0";
2054 * Machine/OS name selection pattern
2056 tSCC* apzDarwin_Gcc4_BreakageMachs[] = {
2058 (const char*)NULL };
2061 * content selection pattern - do fix if pattern found
2063 tSCC zDarwin_Gcc4_BreakageSelect0[] =
2064 "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)";
2066 #define DARWIN_GCC4_BREAKAGE_TEST_CT 1
2067 static tTestDesc aDarwin_Gcc4_BreakageTests[] = {
2068 { TT_EGREP, zDarwin_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2071 * Fix Command Arguments for Darwin_Gcc4_Breakage
2073 static const char* apzDarwin_Gcc4_BreakagePatch[] = {
2075 "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))",
2078 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2080 * Description of Darwin_Private_Extern fix
2082 tSCC zDarwin_Private_ExternName[] =
2083 "darwin_private_extern";
2086 * File name selection pattern
2088 tSCC zDarwin_Private_ExternList[] =
2091 * Machine/OS name selection pattern
2093 tSCC* apzDarwin_Private_ExternMachs[] = {
2095 (const char*)NULL };
2098 * content selection pattern - do fix if pattern found
2100 tSCC zDarwin_Private_ExternSelect0[] =
2101 "__private_extern__ [a-z_]+ _dyld_";
2103 #define DARWIN_PRIVATE_EXTERN_TEST_CT 1
2104 static tTestDesc aDarwin_Private_ExternTests[] = {
2105 { TT_EGREP, zDarwin_Private_ExternSelect0, (regex_t*)NULL }, };
2108 * Fix Command Arguments for Darwin_Private_Extern
2110 static const char* apzDarwin_Private_ExternPatch[] = {
2113 "__private_extern__",
2116 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2118 * Description of Darwin_Stdint_1 fix
2120 tSCC zDarwin_Stdint_1Name[] =
2124 * File name selection pattern
2126 tSCC zDarwin_Stdint_1List[] =
2127 "stdint-darwin.h\0stdint.h\0";
2129 * Machine/OS name selection pattern
2131 tSCC* apzDarwin_Stdint_1Machs[] = {
2133 (const char*)NULL };
2136 * content selection pattern - do fix if pattern found
2138 tSCC zDarwin_Stdint_1Select0[] =
2139 "#define UINT8_C\\(v\\)[ \t]+\\(v ## U\\)\n\
2140 #define UINT16_C\\(v\\)[ \t]+\\(v ## U\\)";
2142 #define DARWIN_STDINT_1_TEST_CT 1
2143 static tTestDesc aDarwin_Stdint_1Tests[] = {
2144 { TT_EGREP, zDarwin_Stdint_1Select0, (regex_t*)NULL }, };
2147 * Fix Command Arguments for Darwin_Stdint_1
2149 static const char* apzDarwin_Stdint_1Patch[] = {
2151 "#define UINT8_C(v)\tv\n\
2152 #define UINT16_C(v)\tv",
2155 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2157 * Description of Darwin_Stdint_2 fix
2159 tSCC zDarwin_Stdint_2Name[] =
2163 * File name selection pattern
2165 tSCC zDarwin_Stdint_2List[] =
2166 "stdint-darwin.h\0stdint.h\0";
2168 * Machine/OS name selection pattern
2170 tSCC* apzDarwin_Stdint_2Machs[] = {
2172 (const char*)NULL };
2175 * content selection pattern - do fix if pattern found
2177 tSCC zDarwin_Stdint_2Select0[] =
2178 "#if __WORDSIZE == 64\n\
2179 #define INTPTR_MIN[ \t]+INT64_MIN\n\
2180 #define INTPTR_MAX[ \t]+INT64_MAX\n\
2182 #define INTPTR_MIN[ \t]+INT32_MIN\n\
2183 #define INTPTR_MAX[ \t]+INT32_MAX\n\
2186 #define DARWIN_STDINT_2_TEST_CT 1
2187 static tTestDesc aDarwin_Stdint_2Tests[] = {
2188 { TT_EGREP, zDarwin_Stdint_2Select0, (regex_t*)NULL }, };
2191 * Fix Command Arguments for Darwin_Stdint_2
2193 static const char* apzDarwin_Stdint_2Patch[] = {
2195 "#if __WORDSIZE == 64\n\
2196 #define INTPTR_MAX 9223372036854775807L\n\
2197 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2199 #define INTPTR_MAX 2147483647L\n\
2200 #define INTPTR_MIN (-INTPTR_MAX-1)\n\
2204 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2206 * Description of Darwin_Stdint_3 fix
2208 tSCC zDarwin_Stdint_3Name[] =
2212 * File name selection pattern
2214 tSCC zDarwin_Stdint_3List[] =
2215 "stdint-darwin.h\0stdint.h\0";
2217 * Machine/OS name selection pattern
2219 tSCC* apzDarwin_Stdint_3Machs[] = {
2221 (const char*)NULL };
2224 * content selection pattern - do fix if pattern found
2226 tSCC zDarwin_Stdint_3Select0[] =
2227 "#if __WORDSIZE == 64\n\
2228 #define UINTPTR_MAX[ \t]+UINT64_MAX\n\
2230 #define UINTPTR_MAX[ \t]+UINT32_MAX\n\
2233 #define DARWIN_STDINT_3_TEST_CT 1
2234 static tTestDesc aDarwin_Stdint_3Tests[] = {
2235 { TT_EGREP, zDarwin_Stdint_3Select0, (regex_t*)NULL }, };
2238 * Fix Command Arguments for Darwin_Stdint_3
2240 static const char* apzDarwin_Stdint_3Patch[] = {
2242 "#if __WORDSIZE == 64\n\
2243 #define UINTPTR_MAX 18446744073709551615UL\n\
2245 #define UINTPTR_MAX 4294967295UL\n\
2249 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2251 * Description of Darwin_Stdint_4 fix
2253 tSCC zDarwin_Stdint_4Name[] =
2257 * File name selection pattern
2259 tSCC zDarwin_Stdint_4List[] =
2260 "stdint-darwin.h\0stdint.h\0";
2262 * Machine/OS name selection pattern
2264 tSCC* apzDarwin_Stdint_4Machs[] = {
2266 (const char*)NULL };
2269 * content selection pattern - do fix if pattern found
2271 tSCC zDarwin_Stdint_4Select0[] =
2272 "#if __WORDSIZE == 64\n\
2273 #define SIZE_MAX[ \t]+UINT64_MAX\n\
2275 #define SIZE_MAX[ \t]+UINT32_MAX\n\
2278 #define DARWIN_STDINT_4_TEST_CT 1
2279 static tTestDesc aDarwin_Stdint_4Tests[] = {
2280 { TT_EGREP, zDarwin_Stdint_4Select0, (regex_t*)NULL }, };
2283 * Fix Command Arguments for Darwin_Stdint_4
2285 static const char* apzDarwin_Stdint_4Patch[] = {
2287 "#if __WORDSIZE == 64\n\
2288 #define SIZE_MAX 18446744073709551615UL\n\
2290 #define SIZE_MAX 4294967295UL\n\
2294 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2296 * Description of Darwin_Stdint_5 fix
2298 tSCC zDarwin_Stdint_5Name[] =
2302 * File name selection pattern
2304 tSCC zDarwin_Stdint_5List[] =
2305 "stdint-darwin.h\0stdint.h\0";
2307 * Machine/OS name selection pattern
2309 tSCC* apzDarwin_Stdint_5Machs[] = {
2311 (const char*)NULL };
2314 * content selection pattern - do fix if pattern found
2316 tSCC zDarwin_Stdint_5Select0[] =
2317 "#define INTMAX_MIN[ \t]+INT64_MIN\n\
2318 #define INTMAX_MAX[ \t]+INT64_MAX\n\n\
2319 #define UINTMAX_MAX[ \t]+UINT64_MAX";
2321 #define DARWIN_STDINT_5_TEST_CT 1
2322 static tTestDesc aDarwin_Stdint_5Tests[] = {
2323 { TT_EGREP, zDarwin_Stdint_5Select0, (regex_t*)NULL }, };
2326 * Fix Command Arguments for Darwin_Stdint_5
2328 static const char* apzDarwin_Stdint_5Patch[] = {
2330 "#if __WORDSIZE == 64\n\
2331 #define INTMAX_MIN (-9223372036854775807L - 1)\n\
2332 #define INTMAX_MAX 9223372036854775807L\n\
2333 #define UINTMAX_MAX 18446744073709551615UL\n\
2335 #define INTMAX_MIN (-9223372036854775807LL - 1)\n\
2336 #define INTMAX_MAX 9223372036854775807LL\n\
2337 #define UINTMAX_MAX 18446744073709551615ULL\n\
2341 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2343 * Description of Darwin_Stdint_6 fix
2345 tSCC zDarwin_Stdint_6Name[] =
2349 * File name selection pattern
2351 tSCC zDarwin_Stdint_6List[] =
2352 "stdint-darwin.h\0stdint.h\0";
2354 * Machine/OS name selection pattern
2356 tSCC* apzDarwin_Stdint_6Machs[] = {
2358 (const char*)NULL };
2361 * content selection pattern - do fix if pattern found
2363 tSCC zDarwin_Stdint_6Select0[] =
2364 "#if __WORDSIZE == 64\n\
2365 #define PTRDIFF_MIN[ \t]+INT64_MIN\n\
2366 #define PTRDIFF_MAX[ \t]+INT64_MAX\n\
2368 #define PTRDIFF_MIN[ \t]+INT32_MIN\n\
2369 #define PTRDIFF_MAX[ \t]+INT32_MAX\n\
2372 #define DARWIN_STDINT_6_TEST_CT 1
2373 static tTestDesc aDarwin_Stdint_6Tests[] = {
2374 { TT_EGREP, zDarwin_Stdint_6Select0, (regex_t*)NULL }, };
2377 * Fix Command Arguments for Darwin_Stdint_6
2379 static const char* apzDarwin_Stdint_6Patch[] = {
2381 "#if __WORDSIZE == 64\n\
2382 #define PTRDIFF_MIN (-9223372036854775807L - 1)\n\
2383 #define PTRDIFF_MAX 9223372036854775807L\n\
2385 #define PTRDIFF_MIN (-2147483647 - 1)\n\
2386 #define PTRDIFF_MAX 2147483647\n\
2390 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2392 * Description of Darwin_Stdint_7 fix
2394 tSCC zDarwin_Stdint_7Name[] =
2398 * File name selection pattern
2400 tSCC zDarwin_Stdint_7List[] =
2401 "stdint-darwin.h\0stdint.h\0";
2403 * Machine/OS name selection pattern
2405 tSCC* apzDarwin_Stdint_7Machs[] = {
2407 (const char*)NULL };
2410 * content selection pattern - do fix if pattern found
2412 tSCC zDarwin_Stdint_7Select0[] =
2413 "#define INTMAX_C\\(v\\)[ \t]+\\(v ## LL\\)\n\
2414 #define UINTMAX_C\\(v\\)[ \t]+\\(v ## ULL\\)";
2416 #define DARWIN_STDINT_7_TEST_CT 1
2417 static tTestDesc aDarwin_Stdint_7Tests[] = {
2418 { TT_EGREP, zDarwin_Stdint_7Select0, (regex_t*)NULL }, };
2421 * Fix Command Arguments for Darwin_Stdint_7
2423 static const char* apzDarwin_Stdint_7Patch[] = {
2425 "#if __WORDSIZE == 64\n\
2426 #define INTMAX_C(v) (v ## L)\n\
2427 #define UINTMAX_C(v) (v ## UL)\n\
2429 #define INTMAX_C(v) (v ## LL)\n\
2430 #define UINTMAX_C(v) (v ## ULL)\n\
2434 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2436 * Description of Dec_Intern_Asm fix
2438 tSCC zDec_Intern_AsmName[] =
2442 * File name selection pattern
2444 tSCC zDec_Intern_AsmList[] =
2447 * Machine/OS name selection pattern
2449 #define apzDec_Intern_AsmMachs (const char**)NULL
2450 #define DEC_INTERN_ASM_TEST_CT 0
2451 #define aDec_Intern_AsmTests (tTestDesc*)NULL
2454 * Fix Command Arguments for Dec_Intern_Asm
2456 static const char* apzDec_Intern_AsmPatch[] = { sed_cmd_z,
2457 "-e", "/^[ \t]*float[ \t]*fasm/i\\\n\
2459 "-e", "/^[ \t]*#[ \t]*pragma[ \t]*intrinsic([ \t]*dasm/a\\\n\
2463 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2465 * Description of Djgpp_Wchar_H fix
2467 tSCC zDjgpp_Wchar_HName[] =
2471 * File name selection pattern
2473 #define zDjgpp_Wchar_HList (char*)NULL
2475 * Machine/OS name selection pattern
2477 #define apzDjgpp_Wchar_HMachs (const char**)NULL
2480 * content selection pattern - do fix if pattern found
2482 tSCC zDjgpp_Wchar_HSelect0[] =
2486 * content bypass pattern - skip fix if pattern found
2488 tSCC zDjgpp_Wchar_HBypass0[] =
2491 #define DJGPP_WCHAR_H_TEST_CT 2
2492 static tTestDesc aDjgpp_Wchar_HTests[] = {
2493 { TT_NEGREP, zDjgpp_Wchar_HBypass0, (regex_t*)NULL },
2494 { TT_EGREP, zDjgpp_Wchar_HSelect0, (regex_t*)NULL }, };
2497 * Fix Command Arguments for Djgpp_Wchar_H
2499 static const char* apzDjgpp_Wchar_HPatch[] = {
2502 #include <sys/djtypes.h>",
2503 "#include <stddef.h>",
2506 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2508 * Description of Ecd_Cursor fix
2510 tSCC zEcd_CursorName[] =
2514 * File name selection pattern
2516 tSCC zEcd_CursorList[] =
2517 "sunwindow/win_lock.h\0sunwindow/win_cursor.h\0";
2519 * Machine/OS name selection pattern
2521 #define apzEcd_CursorMachs (const char**)NULL
2524 * content selection pattern - do fix if pattern found
2526 tSCC zEcd_CursorSelect0[] =
2529 #define ECD_CURSOR_TEST_CT 1
2530 static tTestDesc aEcd_CursorTests[] = {
2531 { TT_EGREP, zEcd_CursorSelect0, (regex_t*)NULL }, };
2534 * Fix Command Arguments for Ecd_Cursor
2536 static const char* apzEcd_CursorPatch[] = {
2541 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2543 * Description of Freebsd_Gcc3_Breakage fix
2545 tSCC zFreebsd_Gcc3_BreakageName[] =
2546 "freebsd_gcc3_breakage";
2549 * File name selection pattern
2551 tSCC zFreebsd_Gcc3_BreakageList[] =
2554 * Machine/OS name selection pattern
2556 tSCC* apzFreebsd_Gcc3_BreakageMachs[] = {
2558 (const char*)NULL };
2561 * content selection pattern - do fix if pattern found
2563 tSCC zFreebsd_Gcc3_BreakageSelect0[] =
2564 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$";
2567 * content bypass pattern - skip fix if pattern found
2569 tSCC zFreebsd_Gcc3_BreakageBypass0[] =
2570 "__GNUC__[ \\t]*([>=]=[ \\t]*[3-9]|>[ \\t]*2)";
2572 #define FREEBSD_GCC3_BREAKAGE_TEST_CT 2
2573 static tTestDesc aFreebsd_Gcc3_BreakageTests[] = {
2574 { TT_NEGREP, zFreebsd_Gcc3_BreakageBypass0, (regex_t*)NULL },
2575 { TT_EGREP, zFreebsd_Gcc3_BreakageSelect0, (regex_t*)NULL }, };
2578 * Fix Command Arguments for Freebsd_Gcc3_Breakage
2580 static const char* apzFreebsd_Gcc3_BreakagePatch[] = {
2582 "%0 || __GNUC__ >= 3",
2585 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2587 * Description of Freebsd_Gcc4_Breakage fix
2589 tSCC zFreebsd_Gcc4_BreakageName[] =
2590 "freebsd_gcc4_breakage";
2593 * File name selection pattern
2595 tSCC zFreebsd_Gcc4_BreakageList[] =
2598 * Machine/OS name selection pattern
2600 tSCC* apzFreebsd_Gcc4_BreakageMachs[] = {
2602 (const char*)NULL };
2605 * content selection pattern - do fix if pattern found
2607 tSCC zFreebsd_Gcc4_BreakageSelect0[] =
2608 "^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \\|\\| __GNUC__ == 3$";
2610 #define FREEBSD_GCC4_BREAKAGE_TEST_CT 1
2611 static tTestDesc aFreebsd_Gcc4_BreakageTests[] = {
2612 { TT_EGREP, zFreebsd_Gcc4_BreakageSelect0, (regex_t*)NULL }, };
2615 * Fix Command Arguments for Freebsd_Gcc4_Breakage
2617 static const char* apzFreebsd_Gcc4_BreakagePatch[] = {
2619 "#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3",
2622 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2624 * Description of Glibc_C99_Inline_1 fix
2626 tSCC zGlibc_C99_Inline_1Name[] =
2627 "glibc_c99_inline_1";
2630 * File name selection pattern
2632 tSCC zGlibc_C99_Inline_1List[] =
2633 "features.h\0*/features.h\0";
2635 * Machine/OS name selection pattern
2637 #define apzGlibc_C99_Inline_1Machs (const char**)NULL
2640 * content selection pattern - do fix if pattern found
2642 tSCC zGlibc_C99_Inline_1Select0[] =
2643 "^ *&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__$";
2645 #define GLIBC_C99_INLINE_1_TEST_CT 1
2646 static tTestDesc aGlibc_C99_Inline_1Tests[] = {
2647 { TT_EGREP, zGlibc_C99_Inline_1Select0, (regex_t*)NULL }, };
2650 * Fix Command Arguments for Glibc_C99_Inline_1
2652 static const char* apzGlibc_C99_Inline_1Patch[] = {
2654 "%0 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)",
2657 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2659 * Description of Glibc_C99_Inline_1a fix
2661 tSCC zGlibc_C99_Inline_1aName[] =
2662 "glibc_c99_inline_1a";
2665 * File name selection pattern
2667 tSCC zGlibc_C99_Inline_1aList[] =
2668 "features.h\0*/features.h\0";
2670 * Machine/OS name selection pattern
2672 #define apzGlibc_C99_Inline_1aMachs (const char**)NULL
2675 * content selection pattern - do fix if pattern found
2677 tSCC zGlibc_C99_Inline_1aSelect0[] =
2678 "(\\) && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__)\n\
2679 (#[ \t]*define[ \t]*__USE_EXTERN_INLINES[ \t]*1)";
2681 #define GLIBC_C99_INLINE_1A_TEST_CT 1
2682 static tTestDesc aGlibc_C99_Inline_1aTests[] = {
2683 { TT_EGREP, zGlibc_C99_Inline_1aSelect0, (regex_t*)NULL }, };
2686 * Fix Command Arguments for Glibc_C99_Inline_1a
2688 static const char* apzGlibc_C99_Inline_1aPatch[] = {
2690 "%1 && (defined __extern_inline || defined __GNUC_GNU_INLINE__)\n\
2694 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2696 * Description of Glibc_C99_Inline_2 fix
2698 tSCC zGlibc_C99_Inline_2Name[] =
2699 "glibc_c99_inline_2";
2702 * File name selection pattern
2704 tSCC zGlibc_C99_Inline_2List[] =
2705 "sys/stat.h\0*/sys/stat.h\0";
2707 * Machine/OS name selection pattern
2709 #define apzGlibc_C99_Inline_2Machs (const char**)NULL
2712 * content selection pattern - do fix if pattern found
2714 tSCC zGlibc_C99_Inline_2Select0[] =
2715 "extern __inline__ int";
2717 #define GLIBC_C99_INLINE_2_TEST_CT 1
2718 static tTestDesc aGlibc_C99_Inline_2Tests[] = {
2719 { TT_EGREP, zGlibc_C99_Inline_2Select0, (regex_t*)NULL }, };
2722 * Fix Command Arguments for Glibc_C99_Inline_2
2724 static const char* apzGlibc_C99_Inline_2Patch[] = { sed_cmd_z,
2725 "-e", "s/extern int \\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2728 __inline__ int \\1/",
2729 "-e", "s/extern int \\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2732 __inline__ int \\1/",
2733 "-e", "s/extern int \\(mknod\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2736 __inline__ int \\1/",
2737 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\(stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2740 __inline__ int __REDIRECT\\1 (\\2/",
2741 "-e", "s/extern int __REDIRECT\\(_NTH\\)\\{0,1\\} (\\([lf]stat\\)/#ifdef __GNUC_GNU_INLINE__\\\n\
2744 __inline__ int __REDIRECT\\1 (\\2/",
2745 "-e", "s/^extern __inline__ int/#ifdef __GNUC_GNU_INLINE__\\\n\
2751 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2753 * Description of Glibc_C99_Inline_3 fix
2755 tSCC zGlibc_C99_Inline_3Name[] =
2756 "glibc_c99_inline_3";
2759 * File name selection pattern
2761 tSCC zGlibc_C99_Inline_3List[] =
2762 "bits/string2.h\0*/bits/string2.h\0";
2764 * Machine/OS name selection pattern
2766 #define apzGlibc_C99_Inline_3Machs (const char**)NULL
2769 * content selection pattern - do fix if pattern found
2771 tSCC zGlibc_C99_Inline_3Select0[] =
2775 * content bypass pattern - skip fix if pattern found
2777 tSCC zGlibc_C99_Inline_3Bypass0[] =
2778 "__extern_inline|__GNU_STDC_INLINE__";
2780 #define GLIBC_C99_INLINE_3_TEST_CT 2
2781 static tTestDesc aGlibc_C99_Inline_3Tests[] = {
2782 { TT_NEGREP, zGlibc_C99_Inline_3Bypass0, (regex_t*)NULL },
2783 { TT_EGREP, zGlibc_C99_Inline_3Select0, (regex_t*)NULL }, };
2786 * Fix Command Arguments for Glibc_C99_Inline_3
2788 static const char* apzGlibc_C99_Inline_3Patch[] = {
2790 "# if defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)",
2791 "^# ifdef __cplusplus$",
2794 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2796 * Description of Glibc_C99_Inline_4 fix
2798 tSCC zGlibc_C99_Inline_4Name[] =
2799 "glibc_c99_inline_4";
2802 * File name selection pattern
2804 tSCC zGlibc_C99_Inline_4List[] =
2805 "sys/sysmacros.h\0*/sys/sysmacros.h\0wchar.h\0*/wchar.h\0";
2807 * Machine/OS name selection pattern
2809 #define apzGlibc_C99_Inline_4Machs (const char**)NULL
2812 * content selection pattern - do fix if pattern found
2814 tSCC zGlibc_C99_Inline_4Select0[] =
2815 "(^| )extern __inline";
2818 * content bypass pattern - skip fix if pattern found
2820 tSCC zGlibc_C99_Inline_4Bypass0[] =
2821 "__extern_inline|__gnu_inline__";
2823 #define GLIBC_C99_INLINE_4_TEST_CT 2
2824 static tTestDesc aGlibc_C99_Inline_4Tests[] = {
2825 { TT_NEGREP, zGlibc_C99_Inline_4Bypass0, (regex_t*)NULL },
2826 { TT_EGREP, zGlibc_C99_Inline_4Select0, (regex_t*)NULL }, };
2829 * Fix Command Arguments for Glibc_C99_Inline_4
2831 static const char* apzGlibc_C99_Inline_4Patch[] = {
2833 "%0 __attribute__ ((__gnu_inline__))",
2836 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2838 * Description of Glibc_Mutex_Init fix
2840 tSCC zGlibc_Mutex_InitName[] =
2844 * File name selection pattern
2846 tSCC zGlibc_Mutex_InitList[] =
2849 * Machine/OS name selection pattern
2851 #define apzGlibc_Mutex_InitMachs (const char**)NULL
2854 * content selection pattern - do fix if pattern found
2856 tSCC zGlibc_Mutex_InitSelect0[] =
2857 "\\{ *\\{ *0, *\\} *\\}";
2859 #define GLIBC_MUTEX_INIT_TEST_CT 1
2860 static tTestDesc aGlibc_Mutex_InitTests[] = {
2861 { TT_EGREP, zGlibc_Mutex_InitSelect0, (regex_t*)NULL }, };
2864 * Fix Command Arguments for Glibc_Mutex_Init
2866 static const char* apzGlibc_Mutex_InitPatch[] = { sed_cmd_z,
2867 "-e", "/define[ \t]\\{1,\\}PTHREAD_MUTEX_INITIALIZER[ \t]*\\\\/{\n\
2869 s/{ { 0, } }/{ { 0, 0, 0, 0, 0, 0 } }/\n\
2871 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0 }/",
2872 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0 }/",
2873 "-e", "s/{ \\(0, 0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0 }/",
2874 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(RECURSIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2875 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ERRORCHECK\\)_NP\\) }/{ \\1, 0, 0 }/",
2876 "-e", "s/{ \\(0, 0, 0, PTHREAD_MUTEX_\\(ADAPTIVE\\)_NP\\) }/{ \\1, 0, 0 }/",
2877 "-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\
2879 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2882 { { 0, 0, 0, 0, 0, 0, 0, 0 } }\\\n\
2884 "-e", "s/{ \\(0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP\\) }/{ \\1, 0 }/",
2885 "-e", "/define[ \t]\\{1,\\}PTHREAD_COND_INITIALIZER/s/{ { 0, } }/{ { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }/",
2888 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2890 * Description of Glibc_Stdint fix
2892 tSCC zGlibc_StdintName[] =
2896 * File name selection pattern
2898 tSCC zGlibc_StdintList[] =
2901 * Machine/OS name selection pattern
2903 #define apzGlibc_StdintMachs (const char**)NULL
2906 * content selection pattern - do fix if pattern found
2908 tSCC zGlibc_StdintSelect0[] =
2911 #define GLIBC_STDINT_TEST_CT 1
2912 static tTestDesc aGlibc_StdintTests[] = {
2913 { TT_EGREP, zGlibc_StdintSelect0, (regex_t*)NULL }, };
2916 * Fix Command Arguments for Glibc_Stdint
2918 static const char* apzGlibc_StdintPatch[] = {
2920 "# define UINT8_C(c)\tc\n\
2921 # define UINT16_C(c)\tc",
2922 "# define UINT8_C\\(c\\)\tc ## U\n\
2923 # define UINT16_C\\(c\\)\tc ## U",
2926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2928 * Description of Glibc_Strncpy fix
2930 tSCC zGlibc_StrncpyName[] =
2934 * File name selection pattern
2936 tSCC zGlibc_StrncpyList[] =
2939 * Machine/OS name selection pattern
2941 #define apzGlibc_StrncpyMachs (const char**)NULL
2944 * content bypass pattern - skip fix if pattern found
2946 tSCC zGlibc_StrncpyBypass0[] =
2947 "__builtin_strncpy";
2949 #define GLIBC_STRNCPY_TEST_CT 1
2950 static tTestDesc aGlibc_StrncpyTests[] = {
2951 { TT_NEGREP, zGlibc_StrncpyBypass0, (regex_t*)NULL }, };
2954 * Fix Command Arguments for Glibc_Strncpy
2956 static const char* apzGlibc_StrncpyPatch[] = {
2958 "# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n)",
2959 "# define strncpy([^\n\
2965 /* * * * * * * * * * * * * * * * * * * * * * * * * *
2967 * Description of Glibc_Tgmath fix
2969 tSCC zGlibc_TgmathName[] =
2973 * File name selection pattern
2975 tSCC zGlibc_TgmathList[] =
2978 * Machine/OS name selection pattern
2980 #define apzGlibc_TgmathMachs (const char**)NULL
2983 * content selection pattern - do fix if pattern found
2985 tSCC zGlibc_TgmathSelect0[] =
2986 "\\(\\(\\(type\\) 0.25\\) && \\(\\(type\\) 0.25 - 1\\)\\)";
2989 * content bypass pattern - skip fix if pattern found
2991 tSCC zGlibc_TgmathBypass0[] =
2992 "__floating_type\\(type\\) \\\\\n\
2993 .*__builtin_classify_type";
2995 #define GLIBC_TGMATH_TEST_CT 2
2996 static tTestDesc aGlibc_TgmathTests[] = {
2997 { TT_NEGREP, zGlibc_TgmathBypass0, (regex_t*)NULL },
2998 { TT_EGREP, zGlibc_TgmathSelect0, (regex_t*)NULL }, };
3001 * Fix Command Arguments for Glibc_Tgmath
3003 static const char* apzGlibc_TgmathPatch[] = {
3005 "(__builtin_classify_type ((type) 0) == 8 || (__builtin_classify_type ((type) 0) == 9 && __builtin_classify_type (__real__ ((type) 0)) == 8))",
3008 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3010 * Description of Gnu_Types fix
3012 tSCC zGnu_TypesName[] =
3016 * File name selection pattern
3018 tSCC zGnu_TypesList[] =
3019 "sys/types.h\0stdlib.h\0sys/stdtypes.h\0stddef.h\0memory.h\0unistd.h\0";
3021 * Machine/OS name selection pattern
3023 tSCC* apzGnu_TypesMachs[] = {
3024 "*-*-solaris2.1[0-9]*",
3025 (const char*)NULL };
3028 * content selection pattern - do fix if pattern found
3030 tSCC zGnu_TypesSelect0[] =
3031 "^[ \t]*typedef[ \t]+.*[ \t](ptrdiff|size|wchar)_t;";
3034 * content bypass pattern - skip fix if pattern found
3036 tSCC zGnu_TypesBypass0[] =
3037 "_GCC_(PTRDIFF|SIZE|WCHAR)_T";
3039 #define GNU_TYPES_TEST_CT 2
3040 static tTestDesc aGnu_TypesTests[] = {
3041 { TT_NEGREP, zGnu_TypesBypass0, (regex_t*)NULL },
3042 { TT_EGREP, zGnu_TypesSelect0, (regex_t*)NULL }, };
3045 * Fix Command Arguments for Gnu_Types
3047 static const char* apzGnu_TypesPatch[] = {
3051 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3053 * Description of Hp_Inline fix
3055 tSCC zHp_InlineName[] =
3059 * File name selection pattern
3061 tSCC zHp_InlineList[] =
3062 "sys/spinlock.h\0machine/machparam.h\0";
3064 * Machine/OS name selection pattern
3066 #define apzHp_InlineMachs (const char**)NULL
3069 * content selection pattern - do fix if pattern found
3071 tSCC zHp_InlineSelect0[] =
3072 "[ \t]*#[ \t]*include[ \t]+\"\\.\\./machine/";
3074 #define HP_INLINE_TEST_CT 1
3075 static tTestDesc aHp_InlineTests[] = {
3076 { TT_EGREP, zHp_InlineSelect0, (regex_t*)NULL }, };
3079 * Fix Command Arguments for Hp_Inline
3081 static const char* apzHp_InlinePatch[] = {
3084 "([ \t]*#[ \t]*include[ \t]+)\"\\.\\./machine/([a-z]+)\\.h\"",
3087 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3089 * Description of Hp_Sysfile fix
3091 tSCC zHp_SysfileName[] =
3095 * File name selection pattern
3097 tSCC zHp_SysfileList[] =
3100 * Machine/OS name selection pattern
3102 #define apzHp_SysfileMachs (const char**)NULL
3105 * content selection pattern - do fix if pattern found
3107 tSCC zHp_SysfileSelect0[] =
3110 #define HP_SYSFILE_TEST_CT 1
3111 static tTestDesc aHp_SysfileTests[] = {
3112 { TT_EGREP, zHp_SysfileSelect0, (regex_t*)NULL }, };
3115 * Fix Command Arguments for Hp_Sysfile
3117 static const char* apzHp_SysfilePatch[] = {
3119 "(struct file *, ...)",
3123 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3125 * Description of Hppa_Hpux_Fp_Macros fix
3127 tSCC zHppa_Hpux_Fp_MacrosName[] =
3128 "hppa_hpux_fp_macros";
3131 * File name selection pattern
3133 tSCC zHppa_Hpux_Fp_MacrosList[] =
3136 * Machine/OS name selection pattern
3138 tSCC* apzHppa_Hpux_Fp_MacrosMachs[] = {
3140 (const char*)NULL };
3143 * content selection pattern - do fix if pattern found
3145 tSCC zHppa_Hpux_Fp_MacrosSelect0[] =
3146 "#[ \t]*define[ \t]*FP_NORMAL.*\n\
3147 #[ \t]*define[ \t]*FP_ZERO.*\n\
3148 #[ \t]*define[ \t]*FP_INFINITE.*\n\
3149 #[ \t]*define[ \t]*FP_SUBNORMAL.*\n\
3150 #[ \t]*define[ \t]*FP_NAN.*\n";
3152 #define HPPA_HPUX_FP_MACROS_TEST_CT 1
3153 static tTestDesc aHppa_Hpux_Fp_MacrosTests[] = {
3154 { TT_EGREP, zHppa_Hpux_Fp_MacrosSelect0, (regex_t*)NULL }, };
3157 * Fix Command Arguments for Hppa_Hpux_Fp_Macros
3159 static const char* apzHppa_Hpux_Fp_MacrosPatch[] = {
3161 "#endif /* _INCLUDE_HPUX_SOURCE */\n\n\
3162 #if defined(_INCLUDE_HPUX_SOURCE) || \\\n\
3163 (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))\n\
3165 #ifdef _INCLUDE_HPUX_SOURCE\n",
3168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3170 * Description of Hpux10_Cpp_Pow_Inline fix
3172 tSCC zHpux10_Cpp_Pow_InlineName[] =
3173 "hpux10_cpp_pow_inline";
3176 * File name selection pattern
3178 tSCC zHpux10_Cpp_Pow_InlineList[] =
3179 "fixinc-test-limits.h\0math.h\0";
3181 * Machine/OS name selection pattern
3183 #define apzHpux10_Cpp_Pow_InlineMachs (const char**)NULL
3186 * content selection pattern - do fix if pattern found
3188 tSCC zHpux10_Cpp_Pow_InlineSelect0[] =
3189 "^# +ifdef +__cplusplus\n\
3191 +inline +double +pow\\(double +__d,int +__expon\\) +\\{\n\
3192 [ \t]+return +pow\\(__d,\\(double\\)__expon\\);\n\
3194 +extern +\"C\" +\\{\n\
3198 #define HPUX10_CPP_POW_INLINE_TEST_CT 1
3199 static tTestDesc aHpux10_Cpp_Pow_InlineTests[] = {
3200 { TT_EGREP, zHpux10_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3203 * Fix Command Arguments for Hpux10_Cpp_Pow_Inline
3205 static const char* apzHpux10_Cpp_Pow_InlinePatch[] = {
3210 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3212 * Description of Hpux11_Cpp_Pow_Inline fix
3214 tSCC zHpux11_Cpp_Pow_InlineName[] =
3215 "hpux11_cpp_pow_inline";
3218 * File name selection pattern
3220 tSCC zHpux11_Cpp_Pow_InlineList[] =
3223 * Machine/OS name selection pattern
3225 #define apzHpux11_Cpp_Pow_InlineMachs (const char**)NULL
3228 * content selection pattern - do fix if pattern found
3230 tSCC zHpux11_Cpp_Pow_InlineSelect0[] =
3231 " +inline double pow\\(double d,int expon\\) \\{\n\
3232 +return pow\\(d, \\(double\\)expon\\);\n\
3235 #define HPUX11_CPP_POW_INLINE_TEST_CT 1
3236 static tTestDesc aHpux11_Cpp_Pow_InlineTests[] = {
3237 { TT_EGREP, zHpux11_Cpp_Pow_InlineSelect0, (regex_t*)NULL }, };
3240 * Fix Command Arguments for Hpux11_Cpp_Pow_Inline
3242 static const char* apzHpux11_Cpp_Pow_InlinePatch[] = {
3247 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3249 * Description of Hpux10_Ctype_Declarations1 fix
3251 tSCC zHpux10_Ctype_Declarations1Name[] =
3252 "hpux10_ctype_declarations1";
3255 * File name selection pattern
3257 tSCC zHpux10_Ctype_Declarations1List[] =
3260 * Machine/OS name selection pattern
3262 #define apzHpux10_Ctype_Declarations1Machs (const char**)NULL
3265 * content selection pattern - do fix if pattern found
3267 tSCC zHpux10_Ctype_Declarations1Select0[] =
3268 "^#[ \t]*define _toupper\\(__c\\)[ \t]*__toupper\\(__c\\)";
3271 * content bypass pattern - skip fix if pattern found
3273 tSCC zHpux10_Ctype_Declarations1Bypass0[] =
3274 "^[ \t]*extern[ \t]*int[ \t]*__tolower[ \t]*\\(";
3276 #define HPUX10_CTYPE_DECLARATIONS1_TEST_CT 2
3277 static tTestDesc aHpux10_Ctype_Declarations1Tests[] = {
3278 { TT_NEGREP, zHpux10_Ctype_Declarations1Bypass0, (regex_t*)NULL },
3279 { TT_EGREP, zHpux10_Ctype_Declarations1Select0, (regex_t*)NULL }, };
3282 * Fix Command Arguments for Hpux10_Ctype_Declarations1
3284 static const char* apzHpux10_Ctype_Declarations1Patch[] = {
3286 "#ifdef _PROTOTYPES\n\
3287 extern int __tolower(int);\n\
3288 extern int __toupper(int);\n\
3289 #else /* NOT _PROTOTYPES */\n\
3290 extern int __tolower();\n\
3291 extern int __toupper();\n\
3292 #endif /* _PROTOTYPES */\n\n\
3296 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3298 * Description of Hpux10_Ctype_Declarations2 fix
3300 tSCC zHpux10_Ctype_Declarations2Name[] =
3301 "hpux10_ctype_declarations2";
3304 * File name selection pattern
3306 tSCC zHpux10_Ctype_Declarations2List[] =
3309 * Machine/OS name selection pattern
3311 #define apzHpux10_Ctype_Declarations2Machs (const char**)NULL
3314 * content selection pattern - do fix if pattern found
3316 tSCC zHpux10_Ctype_Declarations2Select0[] =
3317 "^# if defined\\(_SB_CTYPE_MACROS\\) && \\!defined\\(__lint\\)";
3320 * content bypass pattern - skip fix if pattern found
3322 tSCC zHpux10_Ctype_Declarations2Bypass0[] =
3323 "^[ \t]*extern[ \t]*int[ \t]*_isalnum[ \t]*\\(";
3325 #define HPUX10_CTYPE_DECLARATIONS2_TEST_CT 2
3326 static tTestDesc aHpux10_Ctype_Declarations2Tests[] = {
3327 { TT_NEGREP, zHpux10_Ctype_Declarations2Bypass0, (regex_t*)NULL },
3328 { TT_EGREP, zHpux10_Ctype_Declarations2Select0, (regex_t*)NULL }, };
3331 * Fix Command Arguments for Hpux10_Ctype_Declarations2
3333 static const char* apzHpux10_Ctype_Declarations2Patch[] = {
3336 #ifdef _PROTOTYPES\n\
3337 extern int _isalnum(int);\n\
3338 extern int _isalpha(int);\n\
3339 extern int _iscntrl(int);\n\
3340 extern int _isdigit(int);\n\
3341 extern int _isgraph(int);\n\
3342 extern int _islower(int);\n\
3343 extern int _isprint(int);\n\
3344 extern int _ispunct(int);\n\
3345 extern int _isspace(int);\n\
3346 extern int _isupper(int);\n\
3347 extern int _isxdigit(int);\n\
3348 # else /* not _PROTOTYPES */\n\
3349 extern int _isalnum();\n\
3350 extern int _isalpha();\n\
3351 extern int _iscntrl();\n\
3352 extern int _isdigit();\n\
3353 extern int _isgraph();\n\
3354 extern int _islower();\n\
3355 extern int _isprint();\n\
3356 extern int _ispunct();\n\
3357 extern int _isspace();\n\
3358 extern int _isupper();\n\
3359 extern int _isxdigit();\n\
3360 #endif /* _PROTOTYPES */\n",
3363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3365 * Description of Hpux10_Stdio_Declarations fix
3367 tSCC zHpux10_Stdio_DeclarationsName[] =
3368 "hpux10_stdio_declarations";
3371 * File name selection pattern
3373 tSCC zHpux10_Stdio_DeclarationsList[] =
3376 * Machine/OS name selection pattern
3378 #define apzHpux10_Stdio_DeclarationsMachs (const char**)NULL
3381 * content selection pattern - do fix if pattern found
3383 tSCC zHpux10_Stdio_DeclarationsSelect0[] =
3384 "^#[ \t]*define _iob[ \t]*__iob";
3387 * content bypass pattern - skip fix if pattern found
3389 tSCC zHpux10_Stdio_DeclarationsBypass0[] =
3390 "^[ \t]*extern[ \t]*int[ \t]*vsnprintf[ \t]*\\(";
3392 #define HPUX10_STDIO_DECLARATIONS_TEST_CT 2
3393 static tTestDesc aHpux10_Stdio_DeclarationsTests[] = {
3394 { TT_NEGREP, zHpux10_Stdio_DeclarationsBypass0, (regex_t*)NULL },
3395 { TT_EGREP, zHpux10_Stdio_DeclarationsSelect0, (regex_t*)NULL }, };
3398 * Fix Command Arguments for Hpux10_Stdio_Declarations
3400 static const char* apzHpux10_Stdio_DeclarationsPatch[] = {
3403 # if defined(__STDC__) || defined(__cplusplus)\n\
3404 extern int snprintf(char *, size_t, const char *, ...);\n\
3405 extern int vsnprintf(char *, size_t, const char *, __va_list);\n\
3406 # else /* not __STDC__) || __cplusplus */\n\
3407 extern int snprintf();\n\
3408 extern int vsnprintf();\n\
3409 # endif /* __STDC__) || __cplusplus */\n",
3412 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3414 * Description of Hpux11_Abs fix
3416 tSCC zHpux11_AbsName[] =
3420 * File name selection pattern
3422 tSCC zHpux11_AbsList[] =
3425 * Machine/OS name selection pattern
3427 tSCC* apzHpux11_AbsMachs[] = {
3429 (const char*)NULL };
3432 * content selection pattern - do fix if pattern found
3434 tSCC zHpux11_AbsSelect0[] =
3435 "ifndef _MATH_INCLUDED";
3437 #define HPUX11_ABS_TEST_CT 1
3438 static tTestDesc aHpux11_AbsTests[] = {
3439 { TT_EGREP, zHpux11_AbsSelect0, (regex_t*)NULL }, };
3442 * Fix Command Arguments for Hpux11_Abs
3444 static const char* apzHpux11_AbsPatch[] = {
3446 "if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
3449 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3451 * Description of Hpux11_Fabsf fix
3453 tSCC zHpux11_FabsfName[] =
3457 * File name selection pattern
3459 tSCC zHpux11_FabsfList[] =
3462 * Machine/OS name selection pattern
3464 #define apzHpux11_FabsfMachs (const char**)NULL
3467 * content selection pattern - do fix if pattern found
3469 tSCC zHpux11_FabsfSelect0[] =
3470 "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
3473 * content bypass pattern - skip fix if pattern found
3475 tSCC zHpux11_FabsfBypass0[] =
3478 #define HPUX11_FABSF_TEST_CT 2
3479 static tTestDesc aHpux11_FabsfTests[] = {
3480 { TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
3481 { TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
3484 * Fix Command Arguments for Hpux11_Fabsf
3486 static const char* apzHpux11_FabsfPatch[] = {
3488 "#ifndef __cplusplus\n\
3493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3495 * Description of Hpux11_Pthread_Const fix
3497 tSCC zHpux11_Pthread_ConstName[] =
3498 "hpux11_pthread_const";
3501 * File name selection pattern
3503 tSCC zHpux11_Pthread_ConstList[] =
3506 * Machine/OS name selection pattern
3508 tSCC* apzHpux11_Pthread_ConstMachs[] = {
3509 "*-hp-hpux11.[0-3]*",
3510 (const char*)NULL };
3513 * content selection pattern - do fix if pattern found
3515 tSCC zHpux11_Pthread_ConstSelect0[] =
3516 "^#define[ \t]*__POINTER_SET[ \t]*\\(\\(void \\*\\) 1LL\\)";
3518 #define HPUX11_PTHREAD_CONST_TEST_CT 1
3519 static tTestDesc aHpux11_Pthread_ConstTests[] = {
3520 { TT_EGREP, zHpux11_Pthread_ConstSelect0, (regex_t*)NULL }, };
3523 * Fix Command Arguments for Hpux11_Pthread_Const
3525 static const char* apzHpux11_Pthread_ConstPatch[] = {
3527 "#define __POINTER_SET\t\t((void *) 1L)",
3530 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3532 * Description of Hpux11_Size_T fix
3534 tSCC zHpux11_Size_TName[] =
3538 * File name selection pattern
3540 #define zHpux11_Size_TList (char*)NULL
3542 * Machine/OS name selection pattern
3544 tSCC* apzHpux11_Size_TMachs[] = {
3546 (const char*)NULL };
3549 * content selection pattern - do fix if pattern found
3551 tSCC zHpux11_Size_TSelect0[] =
3554 #define HPUX11_SIZE_T_TEST_CT 1
3555 static tTestDesc aHpux11_Size_TTests[] = {
3556 { TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
3559 * Fix Command Arguments for Hpux11_Size_T
3561 static const char* apzHpux11_Size_TPatch[] = {
3566 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3568 * Description of Hpux11_Snprintf fix
3570 tSCC zHpux11_SnprintfName[] =
3574 * File name selection pattern
3576 tSCC zHpux11_SnprintfList[] =
3579 * Machine/OS name selection pattern
3581 #define apzHpux11_SnprintfMachs (const char**)NULL
3584 * content selection pattern - do fix if pattern found
3586 tSCC zHpux11_SnprintfSelect0[] =
3587 "(extern int snprintf *\\(char *\\*, *(|__|_hpux_)size_t,) *(char *\\*, *\\.\\.\\.\\);)";
3589 #define HPUX11_SNPRINTF_TEST_CT 1
3590 static tTestDesc aHpux11_SnprintfTests[] = {
3591 { TT_EGREP, zHpux11_SnprintfSelect0, (regex_t*)NULL }, };
3594 * Fix Command Arguments for Hpux11_Snprintf
3596 static const char* apzHpux11_SnprintfPatch[] = {
3601 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3603 * Description of Hpux11_Vsnprintf fix
3605 tSCC zHpux11_VsnprintfName[] =
3609 * File name selection pattern
3611 tSCC zHpux11_VsnprintfList[] =
3614 * Machine/OS name selection pattern
3616 #define apzHpux11_VsnprintfMachs (const char**)NULL
3619 * content selection pattern - do fix if pattern found
3621 tSCC zHpux11_VsnprintfSelect0[] =
3622 "(extern int vsnprintf\\(char \\*, _[hpux]*_size_t, const char \\*,) __va__list\\);";
3624 #define HPUX11_VSNPRINTF_TEST_CT 1
3625 static tTestDesc aHpux11_VsnprintfTests[] = {
3626 { TT_EGREP, zHpux11_VsnprintfSelect0, (regex_t*)NULL }, };
3629 * Fix Command Arguments for Hpux11_Vsnprintf
3631 static const char* apzHpux11_VsnprintfPatch[] = {
3636 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3638 * Description of Hpux8_Bogus_Inlines fix
3640 tSCC zHpux8_Bogus_InlinesName[] =
3641 "hpux8_bogus_inlines";
3644 * File name selection pattern
3646 tSCC zHpux8_Bogus_InlinesList[] =
3649 * Machine/OS name selection pattern
3651 #define apzHpux8_Bogus_InlinesMachs (const char**)NULL
3654 * content selection pattern - do fix if pattern found
3656 tSCC zHpux8_Bogus_InlinesSelect0[] =
3660 * content bypass pattern - skip fix if pattern found
3662 tSCC zHpux8_Bogus_InlinesBypass0[] =
3665 #define HPUX8_BOGUS_INLINES_TEST_CT 2
3666 static tTestDesc aHpux8_Bogus_InlinesTests[] = {
3667 { TT_NEGREP, zHpux8_Bogus_InlinesBypass0, (regex_t*)NULL },
3668 { TT_EGREP, zHpux8_Bogus_InlinesSelect0, (regex_t*)NULL }, };
3671 * Fix Command Arguments for Hpux8_Bogus_Inlines
3673 static const char* apzHpux8_Bogus_InlinesPatch[] = { sed_cmd_z,
3674 "-e", "s@inline int abs(int [a-z][a-z]*) {.*}@extern \"C\" int abs(int);@",
3675 "-e", "s@inline double abs(double [a-z][a-z]*) {.*}@@",
3676 "-e", "s@inline int sqr(int [a-z][a-z]*) {.*}@@",
3677 "-e", "s@inline double sqr(double [a-z][a-z]*) {.*}@@",
3680 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3682 * Description of Hpux_Ctype_Macros fix
3684 tSCC zHpux_Ctype_MacrosName[] =
3685 "hpux_ctype_macros";
3688 * File name selection pattern
3690 tSCC zHpux_Ctype_MacrosList[] =
3693 * Machine/OS name selection pattern
3695 #define apzHpux_Ctype_MacrosMachs (const char**)NULL
3698 * content selection pattern - do fix if pattern found
3700 tSCC zHpux_Ctype_MacrosSelect0[] =
3701 "((: |\\()__SB_masks \\? )(__SB_masks\\[__(alnum|c)\\] & _IS)";
3703 #define HPUX_CTYPE_MACROS_TEST_CT 1
3704 static tTestDesc aHpux_Ctype_MacrosTests[] = {
3705 { TT_EGREP, zHpux_Ctype_MacrosSelect0, (regex_t*)NULL }, };
3708 * Fix Command Arguments for Hpux_Ctype_Macros
3710 static const char* apzHpux_Ctype_MacrosPatch[] = {
3715 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3717 * Description of Hpux_Htonl fix
3719 tSCC zHpux_HtonlName[] =
3723 * File name selection pattern
3725 tSCC zHpux_HtonlList[] =
3728 * Machine/OS name selection pattern
3730 #define apzHpux_HtonlMachs (const char**)NULL
3733 * content selection pattern - do fix if pattern found
3735 tSCC zHpux_HtonlSelect0[] =
3736 "#ifndef _XOPEN_SOURCE_EXTENDED[ \t]*\n\
3738 \\* Macros for number representation conversion\\.\n\
3742 #define HPUX_HTONL_TEST_CT 1
3743 static tTestDesc aHpux_HtonlTests[] = {
3744 { TT_EGREP, zHpux_HtonlSelect0, (regex_t*)NULL }, };
3747 * Fix Command Arguments for Hpux_Htonl
3749 static const char* apzHpux_HtonlPatch[] = {
3755 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3757 * Description of Hpux_Long_Double fix
3759 tSCC zHpux_Long_DoubleName[] =
3763 * File name selection pattern
3765 tSCC zHpux_Long_DoubleList[] =
3768 * Machine/OS name selection pattern
3770 tSCC* apzHpux_Long_DoubleMachs[] = {
3772 "*-*-hpux11.[012]*",
3773 (const char*)NULL };
3776 * content selection pattern - do fix if pattern found
3778 tSCC zHpux_Long_DoubleSelect0[] =
3779 "extern[ \t]long_double[ \t]strtold";
3782 * content bypass pattern - skip fix if pattern found
3784 tSCC zHpux_Long_DoubleBypass0[] =
3787 #define HPUX_LONG_DOUBLE_TEST_CT 2
3788 static tTestDesc aHpux_Long_DoubleTests[] = {
3789 { TT_NEGREP, zHpux_Long_DoubleBypass0, (regex_t*)NULL },
3790 { TT_EGREP, zHpux_Long_DoubleSelect0, (regex_t*)NULL }, };
3793 * Fix Command Arguments for Hpux_Long_Double
3795 static const char* apzHpux_Long_DoublePatch[] = { sed_cmd_z,
3796 "-e", "/^#[ \t]*ifndef _LONG_DOUBLE/,/\\/\\* _LONG_DOUBLE \\*\\//D",
3797 "-e", "s/long_double/long double/g",
3800 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3802 * Description of Hpux_Long_Double_2 fix
3804 tSCC zHpux_Long_Double_2Name[] =
3805 "hpux_long_double_2";
3808 * File name selection pattern
3810 tSCC zHpux_Long_Double_2List[] =
3813 * Machine/OS name selection pattern
3815 tSCC* apzHpux_Long_Double_2Machs[] = {
3816 "hppa*-*-hpux11.3*",
3817 (const char*)NULL };
3820 * content selection pattern - do fix if pattern found
3822 tSCC zHpux_Long_Double_2Select0[] =
3823 "#[ \t]*if[ \t]*!defined\\(__ia64\\) \\|\\| defined\\(_PROTOTYPES\\) \\|\\| defined\\(_LONG_DOUBLE_STRUCT\\)";
3825 #define HPUX_LONG_DOUBLE_2_TEST_CT 1
3826 static tTestDesc aHpux_Long_Double_2Tests[] = {
3827 { TT_EGREP, zHpux_Long_Double_2Select0, (regex_t*)NULL }, };
3830 * Fix Command Arguments for Hpux_Long_Double_2
3832 static const char* apzHpux_Long_Double_2Patch[] = {
3834 "# if !defined(_PROTOTYPES) || defined(_LONG_DOUBLE_STRUCT)",
3837 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3839 * Description of Hpux_Systime fix
3841 tSCC zHpux_SystimeName[] =
3845 * File name selection pattern
3847 tSCC zHpux_SystimeList[] =
3850 * Machine/OS name selection pattern
3852 #define apzHpux_SystimeMachs (const char**)NULL
3855 * content selection pattern - do fix if pattern found
3857 tSCC zHpux_SystimeSelect0[] =
3858 "^extern struct sigevent;";
3860 #define HPUX_SYSTIME_TEST_CT 1
3861 static tTestDesc aHpux_SystimeTests[] = {
3862 { TT_EGREP, zHpux_SystimeSelect0, (regex_t*)NULL }, };
3865 * Fix Command Arguments for Hpux_Systime
3867 static const char* apzHpux_SystimePatch[] = {
3872 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3874 * Description of Hpux_Spu_Info fix
3876 tSCC zHpux_Spu_InfoName[] =
3880 * File name selection pattern
3882 tSCC zHpux_Spu_InfoList[] =
3883 "ia64/sys/getppdp.h\0*/sys/getppdp.h\0";
3885 * Machine/OS name selection pattern
3887 tSCC* apzHpux_Spu_InfoMachs[] = {
3889 (const char*)NULL };
3892 * content selection pattern - do fix if pattern found
3894 tSCC zHpux_Spu_InfoSelect0[] =
3895 "^.*extern.*spu_info.*";
3897 #define HPUX_SPU_INFO_TEST_CT 1
3898 static tTestDesc aHpux_Spu_InfoTests[] = {
3899 { TT_EGREP, zHpux_Spu_InfoSelect0, (regex_t*)NULL }, };
3902 * Fix Command Arguments for Hpux_Spu_Info
3904 static const char* apzHpux_Spu_InfoPatch[] = {
3911 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3913 * Description of Hpux11_Extern_Sendfile fix
3915 tSCC zHpux11_Extern_SendfileName[] =
3916 "hpux11_extern_sendfile";
3919 * File name selection pattern
3921 tSCC zHpux11_Extern_SendfileList[] =
3924 * Machine/OS name selection pattern
3926 tSCC* apzHpux11_Extern_SendfileMachs[] = {
3927 "*-hp-hpux11.[12]*",
3928 (const char*)NULL };
3931 * content selection pattern - do fix if pattern found
3933 tSCC zHpux11_Extern_SendfileSelect0[] =
3934 "^[ \t]*extern sbsize_t sendfile.*\n\
3937 #define HPUX11_EXTERN_SENDFILE_TEST_CT 1
3938 static tTestDesc aHpux11_Extern_SendfileTests[] = {
3939 { TT_EGREP, zHpux11_Extern_SendfileSelect0, (regex_t*)NULL }, };
3942 * Fix Command Arguments for Hpux11_Extern_Sendfile
3944 static const char* apzHpux11_Extern_SendfilePatch[] = {
3946 "#ifndef _APP32_64BIT_OFF_T\n\
3950 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3952 * Description of Hpux11_Extern_Sendpath fix
3954 tSCC zHpux11_Extern_SendpathName[] =
3955 "hpux11_extern_sendpath";
3958 * File name selection pattern
3960 tSCC zHpux11_Extern_SendpathList[] =
3963 * Machine/OS name selection pattern
3965 tSCC* apzHpux11_Extern_SendpathMachs[] = {
3966 "*-hp-hpux11.[12]*",
3967 (const char*)NULL };
3970 * content selection pattern - do fix if pattern found
3972 tSCC zHpux11_Extern_SendpathSelect0[] =
3973 "^[ \t]*extern sbsize_t sendpath.*\n\
3976 #define HPUX11_EXTERN_SENDPATH_TEST_CT 1
3977 static tTestDesc aHpux11_Extern_SendpathTests[] = {
3978 { TT_EGREP, zHpux11_Extern_SendpathSelect0, (regex_t*)NULL }, };
3981 * Fix Command Arguments for Hpux11_Extern_Sendpath
3983 static const char* apzHpux11_Extern_SendpathPatch[] = {
3985 "#ifndef _APP32_64BIT_OFF_T\n\
3989 /* * * * * * * * * * * * * * * * * * * * * * * * * *
3991 * Description of Hpux_Extern_Errno fix
3993 tSCC zHpux_Extern_ErrnoName[] =
3994 "hpux_extern_errno";
3997 * File name selection pattern
3999 tSCC zHpux_Extern_ErrnoList[] =
4002 * Machine/OS name selection pattern
4004 tSCC* apzHpux_Extern_ErrnoMachs[] = {
4006 "*-hp-hpux11.[0-2]*",
4007 (const char*)NULL };
4010 * content selection pattern - do fix if pattern found
4012 tSCC zHpux_Extern_ErrnoSelect0[] =
4013 "^[ \t]*extern int errno;$";
4015 #define HPUX_EXTERN_ERRNO_TEST_CT 1
4016 static tTestDesc aHpux_Extern_ErrnoTests[] = {
4017 { TT_EGREP, zHpux_Extern_ErrnoSelect0, (regex_t*)NULL }, };
4020 * Fix Command Arguments for Hpux_Extern_Errno
4022 static const char* apzHpux_Extern_ErrnoPatch[] = {
4024 "#ifdef __cplusplus\n\
4028 #ifdef __cplusplus\n\
4033 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4035 * Description of Hpux_Pthread_Initializers fix
4037 tSCC zHpux_Pthread_InitializersName[] =
4038 "hpux_pthread_initializers";
4041 * File name selection pattern
4043 tSCC zHpux_Pthread_InitializersList[] =
4046 * Machine/OS name selection pattern
4048 tSCC* apzHpux_Pthread_InitializersMachs[] = {
4049 "*-hp-hpux11.[0-3]*",
4050 (const char*)NULL };
4051 #define HPUX_PTHREAD_INITIALIZERS_TEST_CT 0
4052 #define aHpux_Pthread_InitializersTests (tTestDesc*)NULL
4055 * Fix Command Arguments for Hpux_Pthread_Initializers
4057 static const char* apzHpux_Pthread_InitializersPatch[] = { sed_cmd_z,
4058 "-e", "s@^[ \t]*1, 1, 1, 1,[ \t]*\\\\@\t{ 1, 1, 1, 1 },\t\t\t\t\t\t\t\\\\@",
4059 "-e", "s@^[ \t]*1,[ \t]*\\\\@\t{ 1, 0 }@",
4060 "-e", "/^[ \t]*0$/d",
4061 "-e", "s@__PTHREAD_MUTEX_VALID, 0@{ __PTHREAD_MUTEX_VALID, 0 }@",
4062 "-e", "s@^[ \t]*0, 0, -1, 0,[ \t]*\\\\@\t{ 0, 0, -1, 0 },\t\t\t\t\t\t\\\\@",
4063 "-e", "s@0, __LWP_MTX_VALID, 0, 1, 1, 1, 1,[ \t]*\\\\@{ 0, __LWP_MTX_VALID }, { 0, 1, 1, 1, 1 },\t\t\t\\\\@",
4064 "-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\\\\@",
4065 "-e", "s@^[ \t]*0, 0[ \t]*\\\\@\t{ 0, 0 }\t\t\t\t\t\t\t\\\\@",
4066 "-e", "s@__PTHREAD_COND_VALID, 0@{ __PTHREAD_COND_VALID, 0 }@",
4067 "-e", "s@__LWP_COND_VALID, 0,[ \t]*\\\\@{ __LWP_COND_VALID, 0 },\t\t\t\t\t\\\\@",
4068 "-e", "s@__PTHREAD_RWLOCK_VALID, 0@{ __PTHREAD_RWLOCK_VALID, 0 }@",
4069 "-e", "s@__LWP_RWLOCK_VALID, 0,[ \t]*\\\\@{ __LWP_RWLOCK_VALID, 0 },\t\t\t\t\t\\\\@",
4070 "-e", "s@^[ \t]*0, 0, 0, 0, 0, 0, 0[ \t]*\\\\@\t{ 0, 0, 0, 0, 0 }, { 0, 0}\t\t\t\t\t\\\\@",
4073 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4075 * Description of Hpux_C99_Intptr fix
4077 tSCC zHpux_C99_IntptrName[] =
4081 * File name selection pattern
4083 tSCC zHpux_C99_IntptrList[] =
4084 "stdint-hpux11.h\0stdint.h\0";
4086 * Machine/OS name selection pattern
4088 tSCC* apzHpux_C99_IntptrMachs[] = {
4090 (const char*)NULL };
4091 #define HPUX_C99_INTPTR_TEST_CT 0
4092 #define aHpux_C99_IntptrTests (tTestDesc*)NULL
4095 * Fix Command Arguments for Hpux_C99_Intptr
4097 static const char* apzHpux_C99_IntptrPatch[] = { sed_cmd_z,
4098 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MAX[ \t]*INT32_MAX[ \t]*$@#define PTRDIFF_MAX (2147483647l)@",
4099 "-e", "s@^[ \t]*#[ \t]*define[ \t]*PTRDIFF_MIN[ \t]*INT32_MIN[ \t]*$@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
4100 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MAX[ \t]*INT32_MAX[ \t]*$@#define INTPTR_MAX (2147483647l)@",
4101 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INTPTR_MIN[ \t]*INT32_MIN[ \t]*$@#define INTPTR_MIN (-INTPTR_MAX - 1)@",
4102 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINTPTR_MAX[ \t]*UINT32_MAX[ \t]*$@#define UINTPTR_MAX (4294967295ul)@",
4103 "-e", "s@^[ \t]*#[ \t]*define[ \t]*SIZE_MAX[ \t]*UINT32_MAX[ \t]*$@#define SIZE_MAX (4294967295ul)@",
4106 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4108 * Description of Hpux_C99_Inttypes fix
4110 tSCC zHpux_C99_InttypesName[] =
4111 "hpux_c99_inttypes";
4114 * File name selection pattern
4116 tSCC zHpux_C99_InttypesList[] =
4117 "inttypes.h\0stdint-hpux11.h\0stdint.h\0";
4119 * Machine/OS name selection pattern
4121 tSCC* apzHpux_C99_InttypesMachs[] = {
4122 "*-hp-hpux11.[23]*",
4123 (const char*)NULL };
4124 #define HPUX_C99_INTTYPES_TEST_CT 0
4125 #define aHpux_C99_InttypesTests (tTestDesc*)NULL
4128 * Fix Command Arguments for Hpux_C99_Inttypes
4130 static const char* apzHpux_C99_InttypesPatch[] = { sed_cmd_z,
4131 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT8_C(__c) (__c)@",
4132 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*__CONCAT_U__(__c)[ \t]*$@#define UINT16_C(__c) (__c)@",
4133 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT32_C(__c)[ \t]*__CONCAT__(__c,l)[ \t]*$@#define INT32_C(__c) (__c)@",
4134 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT32_C(__c)[ \t].*$@#define UINT32_C(__c) __CONCAT__(__c,u)@",
4137 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4139 * Description of Hpux_C99_Inttypes2 fix
4141 tSCC zHpux_C99_Inttypes2Name[] =
4142 "hpux_c99_inttypes2";
4145 * File name selection pattern
4147 tSCC zHpux_C99_Inttypes2List[] =
4148 "stdint-hpux11.h\0stdint.h\0";
4150 * Machine/OS name selection pattern
4152 tSCC* apzHpux_C99_Inttypes2Machs[] = {
4154 (const char*)NULL };
4155 #define HPUX_C99_INTTYPES2_TEST_CT 0
4156 #define aHpux_C99_Inttypes2Tests (tTestDesc*)NULL
4159 * Fix Command Arguments for Hpux_C99_Inttypes2
4161 static const char* apzHpux_C99_Inttypes2Patch[] = { sed_cmd_z,
4162 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT8_C(__c)[ \t]*((signed char)(__c))[ \t]*$@#define INT8_C(__c) (__c)@",
4163 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT8_C(__c)[ \t]*((unsigned char)(__c))[ \t]*$@#define UINT8_C(__c) (__c)@",
4164 "-e", "s@^[ \t]*#[ \t]*define[ \t]*INT16_C(__c)[ \t]*((short)(__c))[ \t]*$@#define INT16_C(__c) (__c)@",
4165 "-e", "s@^[ \t]*#[ \t]*define[ \t]*UINT16_C(__c)[ \t]*((unsigned short)(__c))[ \t]*$@#define UINT16_C(__c) (__c)@",
4168 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4170 * Description of Hpux_Stdint_Least_Fast fix
4172 tSCC zHpux_Stdint_Least_FastName[] =
4173 "hpux_stdint_least_fast";
4176 * File name selection pattern
4178 tSCC zHpux_Stdint_Least_FastList[] =
4179 "stdint-hpux11.h\0stdint.h\0";
4181 * Machine/OS name selection pattern
4183 tSCC* apzHpux_Stdint_Least_FastMachs[] = {
4185 (const char*)NULL };
4188 * content selection pattern - do fix if pattern found
4190 tSCC zHpux_Stdint_Least_FastSelect0[] =
4191 "^[ \t]*#[ \t]*define[ \t]+UINT_(LEAST|FAST)64_MAX[ \t]+ULLONG_MAX";
4193 #define HPUX_STDINT_LEAST_FAST_TEST_CT 1
4194 static tTestDesc aHpux_Stdint_Least_FastTests[] = {
4195 { TT_EGREP, zHpux_Stdint_Least_FastSelect0, (regex_t*)NULL }, };
4198 * Fix Command Arguments for Hpux_Stdint_Least_Fast
4200 static const char* apzHpux_Stdint_Least_FastPatch[] = {
4202 "# define\tUINT_%164_MAX\t__UINT64_MAX__",
4205 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4207 * Description of Hpux_Inttype_Int8_T fix
4209 tSCC zHpux_Inttype_Int8_TName[] =
4210 "hpux_inttype_int8_t";
4213 * File name selection pattern
4215 tSCC zHpux_Inttype_Int8_TList[] =
4216 "sys/_inttypes.h\0";
4218 * Machine/OS name selection pattern
4220 tSCC* apzHpux_Inttype_Int8_TMachs[] = {
4222 (const char*)NULL };
4225 * content selection pattern - do fix if pattern found
4227 tSCC zHpux_Inttype_Int8_TSelect0[] =
4228 "^[ \t]*typedef[ \t]*char[ \t]*int(_least){0,1}8_t.*";
4230 #define HPUX_INTTYPE_INT8_T_TEST_CT 1
4231 static tTestDesc aHpux_Inttype_Int8_TTests[] = {
4232 { TT_EGREP, zHpux_Inttype_Int8_TSelect0, (regex_t*)NULL }, };
4235 * Fix Command Arguments for Hpux_Inttype_Int8_T
4237 static const char* apzHpux_Inttype_Int8_TPatch[] = {
4239 "typedef signed char int%18_t;",
4242 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4244 * Description of Hpux_Imaginary_I fix
4246 tSCC zHpux_Imaginary_IName[] =
4250 * File name selection pattern
4252 tSCC zHpux_Imaginary_IList[] =
4255 * Machine/OS name selection pattern
4257 tSCC* apzHpux_Imaginary_IMachs[] = {
4259 (const char*)NULL };
4262 * content selection pattern - do fix if pattern found
4264 tSCC zHpux_Imaginary_ISelect0[] =
4265 "^[ \t]*#[ \t]*define[ \t]*_Complex_I.*";
4267 #define HPUX_IMAGINARY_I_TEST_CT 1
4268 static tTestDesc aHpux_Imaginary_ITests[] = {
4269 { TT_EGREP, zHpux_Imaginary_ISelect0, (regex_t*)NULL }, };
4272 * Fix Command Arguments for Hpux_Imaginary_I
4274 static const char* apzHpux_Imaginary_IPatch[] = {
4276 "#define _Complex_I (__extension__ 1.0iF)",
4279 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4281 * Description of Huge_Val_Hex fix
4283 tSCC zHuge_Val_HexName[] =
4287 * File name selection pattern
4289 tSCC zHuge_Val_HexList[] =
4290 "bits/huge_val.h\0";
4292 * Machine/OS name selection pattern
4294 #define apzHuge_Val_HexMachs (const char**)NULL
4297 * content selection pattern - do fix if pattern found
4299 tSCC zHuge_Val_HexSelect0[] =
4300 "^#[ \t]*define[ \t]*HUGE_VAL[ \t].*0x1\\.0p.*";
4303 * content bypass pattern - skip fix if pattern found
4305 tSCC zHuge_Val_HexBypass0[] =
4306 "__builtin_huge_val";
4308 #define HUGE_VAL_HEX_TEST_CT 2
4309 static tTestDesc aHuge_Val_HexTests[] = {
4310 { TT_NEGREP, zHuge_Val_HexBypass0, (regex_t*)NULL },
4311 { TT_EGREP, zHuge_Val_HexSelect0, (regex_t*)NULL }, };
4314 * Fix Command Arguments for Huge_Val_Hex
4316 static const char* apzHuge_Val_HexPatch[] = {
4318 "#define HUGE_VAL (__builtin_huge_val())\n",
4321 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4323 * Description of Huge_Valf_Hex fix
4325 tSCC zHuge_Valf_HexName[] =
4329 * File name selection pattern
4331 tSCC zHuge_Valf_HexList[] =
4332 "bits/huge_val.h\0";
4334 * Machine/OS name selection pattern
4336 #define apzHuge_Valf_HexMachs (const char**)NULL
4339 * content selection pattern - do fix if pattern found
4341 tSCC zHuge_Valf_HexSelect0[] =
4342 "^#[ \t]*define[ \t]*HUGE_VALF[ \t].*0x1\\.0p.*";
4345 * content bypass pattern - skip fix if pattern found
4347 tSCC zHuge_Valf_HexBypass0[] =
4348 "__builtin_huge_valf";
4350 #define HUGE_VALF_HEX_TEST_CT 2
4351 static tTestDesc aHuge_Valf_HexTests[] = {
4352 { TT_NEGREP, zHuge_Valf_HexBypass0, (regex_t*)NULL },
4353 { TT_EGREP, zHuge_Valf_HexSelect0, (regex_t*)NULL }, };
4356 * Fix Command Arguments for Huge_Valf_Hex
4358 static const char* apzHuge_Valf_HexPatch[] = {
4360 "#define HUGE_VALF (__builtin_huge_valf())\n",
4363 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4365 * Description of Huge_Vall_Hex fix
4367 tSCC zHuge_Vall_HexName[] =
4371 * File name selection pattern
4373 tSCC zHuge_Vall_HexList[] =
4374 "bits/huge_val.h\0";
4376 * Machine/OS name selection pattern
4378 #define apzHuge_Vall_HexMachs (const char**)NULL
4381 * content selection pattern - do fix if pattern found
4383 tSCC zHuge_Vall_HexSelect0[] =
4384 "^#[ \t]*define[ \t]*HUGE_VALL[ \t].*0x1\\.0p.*";
4387 * content bypass pattern - skip fix if pattern found
4389 tSCC zHuge_Vall_HexBypass0[] =
4390 "__builtin_huge_vall";
4392 #define HUGE_VALL_HEX_TEST_CT 2
4393 static tTestDesc aHuge_Vall_HexTests[] = {
4394 { TT_NEGREP, zHuge_Vall_HexBypass0, (regex_t*)NULL },
4395 { TT_EGREP, zHuge_Vall_HexSelect0, (regex_t*)NULL }, };
4398 * Fix Command Arguments for Huge_Vall_Hex
4400 static const char* apzHuge_Vall_HexPatch[] = {
4402 "#define HUGE_VALL (__builtin_huge_vall())\n",
4405 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4407 * Description of Int_Abort_Free_And_Exit fix
4409 tSCC zInt_Abort_Free_And_ExitName[] =
4410 "int_abort_free_and_exit";
4413 * File name selection pattern
4415 tSCC zInt_Abort_Free_And_ExitList[] =
4418 * Machine/OS name selection pattern
4420 #define apzInt_Abort_Free_And_ExitMachs (const char**)NULL
4423 * content selection pattern - do fix if pattern found
4425 tSCC zInt_Abort_Free_And_ExitSelect0[] =
4426 "int[ \t]+(abort|free|exit)[ \t]*\\(";
4429 * content bypass pattern - skip fix if pattern found
4431 tSCC zInt_Abort_Free_And_ExitBypass0[] =
4432 "_CLASSIC_ANSI_TYPES";
4434 #define INT_ABORT_FREE_AND_EXIT_TEST_CT 2
4435 static tTestDesc aInt_Abort_Free_And_ExitTests[] = {
4436 { TT_NEGREP, zInt_Abort_Free_And_ExitBypass0, (regex_t*)NULL },
4437 { TT_EGREP, zInt_Abort_Free_And_ExitSelect0, (regex_t*)NULL }, };
4440 * Fix Command Arguments for Int_Abort_Free_And_Exit
4442 static const char* apzInt_Abort_Free_And_ExitPatch[] = {
4447 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4449 * Description of Io_Quotes_Def fix
4451 tSCC zIo_Quotes_DefName[] =
4455 * File name selection pattern
4457 #define zIo_Quotes_DefList (char*)NULL
4459 * Machine/OS name selection pattern
4461 #define apzIo_Quotes_DefMachs (const char**)NULL
4464 * content selection pattern - do fix if pattern found
4466 tSCC zIo_Quotes_DefSelect0[] =
4467 "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
4469 #define IO_QUOTES_DEF_TEST_CT 1
4470 static tTestDesc aIo_Quotes_DefTests[] = {
4471 { TT_EGREP, zIo_Quotes_DefSelect0, (regex_t*)NULL }, };
4474 * Fix Command Arguments for Io_Quotes_Def
4476 static const char* apzIo_Quotes_DefPatch[] = {
4481 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4483 * Description of Io_Quotes_Use fix
4485 tSCC zIo_Quotes_UseName[] =
4489 * File name selection pattern
4491 #define zIo_Quotes_UseList (char*)NULL
4493 * Machine/OS name selection pattern
4495 #define apzIo_Quotes_UseMachs (const char**)NULL
4498 * content selection pattern - do fix if pattern found
4500 tSCC zIo_Quotes_UseSelect0[] =
4501 "define[ \t]+[A-Z0-9_]+[ \t]+[A-Z0-9_]+IO[A-Z]*[ \t]*\\( *[^,']";
4503 #define IO_QUOTES_USE_TEST_CT 1
4504 static tTestDesc aIo_Quotes_UseTests[] = {
4505 { TT_EGREP, zIo_Quotes_UseSelect0, (regex_t*)NULL }, };
4508 * Fix Command Arguments for Io_Quotes_Use
4510 static const char* apzIo_Quotes_UsePatch[] = {
4515 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4517 * Description of Ip_Missing_Semi fix
4519 tSCC zIp_Missing_SemiName[] =
4523 * File name selection pattern
4525 tSCC zIp_Missing_SemiList[] =
4528 * Machine/OS name selection pattern
4530 #define apzIp_Missing_SemiMachs (const char**)NULL
4533 * content selection pattern - do fix if pattern found
4535 tSCC zIp_Missing_SemiSelect0[] =
4538 #define IP_MISSING_SEMI_TEST_CT 1
4539 static tTestDesc aIp_Missing_SemiTests[] = {
4540 { TT_EGREP, zIp_Missing_SemiSelect0, (regex_t*)NULL }, };
4543 * Fix Command Arguments for Ip_Missing_Semi
4545 static const char* apzIp_Missing_SemiPatch[] = { sed_cmd_z,
4546 "-e", "/^struct/,/^};/s/}$/};/",
4549 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4551 * Description of Irix___Restrict fix
4553 tSCC zIrix___RestrictName[] =
4557 * File name selection pattern
4559 tSCC zIrix___RestrictList[] =
4560 "internal/sgimacros.h\0";
4562 * Machine/OS name selection pattern
4564 tSCC* apzIrix___RestrictMachs[] = {
4566 (const char*)NULL };
4569 * content selection pattern - do fix if pattern found
4571 tSCC zIrix___RestrictSelect0[] =
4573 )(#[ \t]*define __restrict restrict)";
4575 #define IRIX___RESTRICT_TEST_CT 1
4576 static tTestDesc aIrix___RestrictTests[] = {
4577 { TT_EGREP, zIrix___RestrictSelect0, (regex_t*)NULL }, };
4580 * Fix Command Arguments for Irix___Restrict
4582 static const char* apzIrix___RestrictPatch[] = {
4584 "%1# ifndef __cplusplus\n\
4589 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4591 * Description of Irix___Generic1 fix
4593 tSCC zIrix___Generic1Name[] =
4597 * File name selection pattern
4599 tSCC zIrix___Generic1List[] =
4600 "internal/math_core.h\0";
4602 * Machine/OS name selection pattern
4604 tSCC* apzIrix___Generic1Machs[] = {
4606 (const char*)NULL };
4609 * content selection pattern - do fix if pattern found
4611 tSCC zIrix___Generic1Select0[] =
4612 "#define ([a-z]+)\\(x\\) *__generic.*";
4614 #define IRIX___GENERIC1_TEST_CT 1
4615 static tTestDesc aIrix___Generic1Tests[] = {
4616 { TT_EGREP, zIrix___Generic1Select0, (regex_t*)NULL }, };
4619 * Fix Command Arguments for Irix___Generic1
4621 static const char* apzIrix___Generic1Patch[] = {
4623 "extern int %1(double);\n\
4624 extern int %1f(float);\n\
4625 extern int %1l(long double);\n\
4626 #define %1(x) (sizeof(x) == sizeof(double) ? _%1(x) \\\n\
4627 : sizeof(x) == sizeof(float) ? _%1f(x) \\\n\
4631 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4633 * Description of Irix___Generic2 fix
4635 tSCC zIrix___Generic2Name[] =
4639 * File name selection pattern
4641 tSCC zIrix___Generic2List[] =
4642 "internal/math_core.h\0";
4644 * Machine/OS name selection pattern
4646 tSCC* apzIrix___Generic2Machs[] = {
4648 (const char*)NULL };
4651 * content selection pattern - do fix if pattern found
4653 tSCC zIrix___Generic2Select0[] =
4654 "#define ([a-z]+)\\(x,y\\) *__generic.*";
4656 #define IRIX___GENERIC2_TEST_CT 1
4657 static tTestDesc aIrix___Generic2Tests[] = {
4658 { TT_EGREP, zIrix___Generic2Select0, (regex_t*)NULL }, };
4661 * Fix Command Arguments for Irix___Generic2
4663 static const char* apzIrix___Generic2Patch[] = {
4665 "#define %1(x,y) \\\n\
4666 ((sizeof(x)<=4 && sizeof(y)<=4) ? _%1f(x,y) \\\n\
4667 : (sizeof(x)<=8 && sizeof(y)<=8) ? _%1(x,y) \\\n\
4671 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4673 * Description of Irix_Asm_Apostrophe fix
4675 tSCC zIrix_Asm_ApostropheName[] =
4676 "irix_asm_apostrophe";
4679 * File name selection pattern
4681 tSCC zIrix_Asm_ApostropheList[] =
4684 * Machine/OS name selection pattern
4686 #define apzIrix_Asm_ApostropheMachs (const char**)NULL
4689 * content selection pattern - do fix if pattern found
4691 tSCC zIrix_Asm_ApostropheSelect0[] =
4692 "^[ \t]*#.*[Ww]e're";
4694 #define IRIX_ASM_APOSTROPHE_TEST_CT 1
4695 static tTestDesc aIrix_Asm_ApostropheTests[] = {
4696 { TT_EGREP, zIrix_Asm_ApostropheSelect0, (regex_t*)NULL }, };
4699 * Fix Command Arguments for Irix_Asm_Apostrophe
4701 static const char* apzIrix_Asm_ApostrophePatch[] = {
4704 "^([ \t]*#.*[Ww]e)'re",
4707 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4709 * Description of Irix_Complex fix
4711 tSCC zIrix_ComplexName[] =
4715 * File name selection pattern
4717 tSCC zIrix_ComplexList[] =
4720 * Machine/OS name selection pattern
4722 tSCC* apzIrix_ComplexMachs[] = {
4724 (const char*)NULL };
4727 * content selection pattern - do fix if pattern found
4729 tSCC zIrix_ComplexSelect0[] =
4730 "#define[ \t]_Complex_I[ \t]\\(\\(float[ \t]_Complex\\)[ \t]\\(__I__\\)\\)";
4732 #define IRIX_COMPLEX_TEST_CT 1
4733 static tTestDesc aIrix_ComplexTests[] = {
4734 { TT_EGREP, zIrix_ComplexSelect0, (regex_t*)NULL }, };
4737 * Fix Command Arguments for Irix_Complex
4739 static const char* apzIrix_ComplexPatch[] = { sed_cmd_z,
4740 "-e", "s/#define[ \t]_Complex_I[ \t]((float[ \t]_Complex)[ \t](__I__))/#define _Complex_I (__extension__ 1.0iF)/",
4741 "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
4742 "-e", "/#define[ \t]_Imaginary_I/d",
4743 "-e", "s/#define[ \t]I[ \t]_Imaginary_I/#define I _Complex_I/",
4746 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4748 * Description of Irix_Limits_Const fix
4750 tSCC zIrix_Limits_ConstName[] =
4751 "irix_limits_const";
4754 * File name selection pattern
4756 tSCC zIrix_Limits_ConstList[] =
4757 "fixinc-test-limits.h\0limits.h\0";
4759 * Machine/OS name selection pattern
4761 #define apzIrix_Limits_ConstMachs (const char**)NULL
4764 * content selection pattern - do fix if pattern found
4766 tSCC zIrix_Limits_ConstSelect0[] =
4769 #define IRIX_LIMITS_CONST_TEST_CT 1
4770 static tTestDesc aIrix_Limits_ConstTests[] = {
4771 { TT_EGREP, zIrix_Limits_ConstSelect0, (regex_t*)NULL }, };
4774 * Fix Command Arguments for Irix_Limits_Const
4776 static const char* apzIrix_Limits_ConstPatch[] = {
4781 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4783 * Description of Irix_Pthread_Init fix
4785 tSCC zIrix_Pthread_InitName[] =
4786 "irix_pthread_init";
4789 * File name selection pattern
4791 tSCC zIrix_Pthread_InitList[] =
4794 * Machine/OS name selection pattern
4796 tSCC* apzIrix_Pthread_InitMachs[] = {
4798 (const char*)NULL };
4801 * content selection pattern - do fix if pattern found
4803 tSCC zIrix_Pthread_InitSelect0[] =
4804 "^(#define[ \t]+PTHREAD_.*_INITIALIZER[ \t]+)(\\{ 0 \\})";
4806 #define IRIX_PTHREAD_INIT_TEST_CT 1
4807 static tTestDesc aIrix_Pthread_InitTests[] = {
4808 { TT_EGREP, zIrix_Pthread_InitSelect0, (regex_t*)NULL }, };
4811 * Fix Command Arguments for Irix_Pthread_Init
4813 static const char* apzIrix_Pthread_InitPatch[] = {
4818 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4820 * Description of Irix_Socklen_T fix
4822 tSCC zIrix_Socklen_TName[] =
4826 * File name selection pattern
4828 tSCC zIrix_Socklen_TList[] =
4831 * Machine/OS name selection pattern
4833 tSCC* apzIrix_Socklen_TMachs[] = {
4835 (const char*)NULL };
4838 * content selection pattern - do fix if pattern found
4840 tSCC zIrix_Socklen_TSelect0[] =
4841 "(#define _SOCKLEN_T\n\
4842 )(typedef u_int32_t socklen_t;)";
4844 #define IRIX_SOCKLEN_T_TEST_CT 1
4845 static tTestDesc aIrix_Socklen_TTests[] = {
4846 { TT_EGREP, zIrix_Socklen_TSelect0, (regex_t*)NULL }, };
4849 * Fix Command Arguments for Irix_Socklen_T
4851 static const char* apzIrix_Socklen_TPatch[] = {
4853 "%1#if _NO_XOPEN4 && _NO_XOPEN5\n\
4854 typedef int socklen_t;\n\
4857 #endif /* _NO_XOPEN4 && _NO_XOPEN5 */",
4860 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4862 * Description of Irix_Stdint_C99_Mode fix
4864 tSCC zIrix_Stdint_C99_ModeName[] =
4865 "irix_stdint_c99_mode";
4868 * File name selection pattern
4870 tSCC zIrix_Stdint_C99_ModeList[] =
4873 * Machine/OS name selection pattern
4875 tSCC* apzIrix_Stdint_C99_ModeMachs[] = {
4877 (const char*)NULL };
4880 * content selection pattern - do fix if pattern found
4882 tSCC zIrix_Stdint_C99_ModeSelect0[] =
4884 )(#error This header file is to be used only for c99 mode compilations)";
4886 #define IRIX_STDINT_C99_MODE_TEST_CT 1
4887 static tTestDesc aIrix_Stdint_C99_ModeTests[] = {
4888 { TT_EGREP, zIrix_Stdint_C99_ModeSelect0, (regex_t*)NULL }, };
4891 * Fix Command Arguments for Irix_Stdint_C99_Mode
4893 static const char* apzIrix_Stdint_C99_ModePatch[] = {
4899 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4901 * Description of Irix_Stdint_C99_Types fix
4903 tSCC zIrix_Stdint_C99_TypesName[] =
4904 "irix_stdint_c99_types";
4907 * File name selection pattern
4909 tSCC zIrix_Stdint_C99_TypesList[] =
4910 "stdint-irix65.h\0stdint.h\0";
4912 * Machine/OS name selection pattern
4914 tSCC* apzIrix_Stdint_C99_TypesMachs[] = {
4916 (const char*)NULL };
4917 #define IRIX_STDINT_C99_TYPES_TEST_CT 0
4918 #define aIrix_Stdint_C99_TypesTests (tTestDesc*)NULL
4921 * Fix Command Arguments for Irix_Stdint_C99_Types
4923 static const char* apzIrix_Stdint_C99_TypesPatch[] = { sed_cmd_z,
4924 "-e", "s@^#define INT64_MIN.*(-0x7fffffffffffffff - 1)$@#define INT64_MIN (-0x7fffffffffffffffLL - 1)@",
4925 "-e", "s@^#define INT64_MAX.*0x7fffffffffffffff$@#define INT64_MAX 0x7fffffffffffffffLL@",
4926 "-e", "s@^#define UINT32_MAX.*0xffffffff$@#define UINT32_MAX 0xffffffffU@",
4927 "-e", "s@^#define UINT64_MAX.*0xffffffffffffffff$@#define UINT64_MAX 0xffffffffffffffffULL@",
4928 "-e", "s@^#define INTPTR_MIN.*INT32_MIN$@#define INTPTR_MIN (-0x7fffffffL - 1)@",
4929 "-e", "s@^#define INTPTR_MAX.*INT32_MAX$@#define INTPTR_MAX 0x7fffffffL@",
4930 "-e", "s@^#define UINTPTR_MAX.*UINT32_MAX$@#define UINTPTR_MAX 0xffffffffUL@",
4931 "-e", "s@^#define INTPTR_MIN.*INT64_MIN@#define INTPTR_MIN (-0x7fffffffffffffffL - 1)@",
4932 "-e", "s@^#define INTPTR_MAX.*INT64_MAX$@#define INTPTR_MAX 0x7fffffffffffffffL@",
4933 "-e", "s@^#define UINTPTR_MAX.*UINT64_MAX$@#define UINTPTR_MAX 0xffffffffffffffffUL@",
4934 "-e", "s@^#define PTRDIFF_MIN.*INT64_MIN$@#define PTRDIFF_MIN (-0x7fffffffffffffffL - 1)@",
4935 "-e", "s@^#define PTRDIFF_MAX.*INT64_MAX$@#define PTRDIFF_MAX 0x7fffffffffffffffL@",
4936 "-e", "s@^#define SIZE_MAX.*UINT64_MAX$@#define SIZE_MAX 0xffffffffffffffffUL@",
4939 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4941 * Description of Irix_Stdint_C99_Macros fix
4943 tSCC zIrix_Stdint_C99_MacrosName[] =
4944 "irix_stdint_c99_macros";
4947 * File name selection pattern
4949 tSCC zIrix_Stdint_C99_MacrosList[] =
4950 "stdint-irix65.h\0stdint.h\0";
4952 * Machine/OS name selection pattern
4954 tSCC* apzIrix_Stdint_C99_MacrosMachs[] = {
4956 (const char*)NULL };
4957 #define IRIX_STDINT_C99_MACROS_TEST_CT 0
4958 #define aIrix_Stdint_C99_MacrosTests (tTestDesc*)NULL
4961 * Fix Command Arguments for Irix_Stdint_C99_Macros
4963 static const char* apzIrix_Stdint_C99_MacrosPatch[] = { sed_cmd_z,
4964 "-e", "s@^#define INT8_C(x).*int.*_t.*$@#define INT8_C(x) (x)@",
4965 "-e", "s@^#define INT16_C(x).*int.*_t.*$@#define INT16_C(x) (x)@",
4966 "-e", "s@^#define INT32_C(x).*int.*_t.*$@#define INT32_C(x) (x)@",
4967 "-e", "s@^#define INT64_C(x).*int.*_t.*$@#define INT64_C(x) (x ## LL)@",
4968 "-e", "s@^#define UINT8_C(x).*int.*_t.*$@#define UINT8_C(x) (x)@",
4969 "-e", "s@^#define UINT16_C(x).*int.*_t.*$@#define UINT16_C(x) (x)@",
4970 "-e", "s@^#define UINT32_C(x).*int.*_t.*$@#define UINT32_C(x) (x ## U)@",
4971 "-e", "s@^#define UINT64_C(x).*int.*_t.*$@#define UINT64_C(x) (x ## ULL)@",
4972 "-e", "s@^#define INTMAX_C(x).*int.*_t.*$@#define INTMAX_C(x) (x ## LL)@",
4973 "-e", "s@^#define UINTMAX_C(x).*int.*_t.*$@#define UINTMAX_C(x) (x ## ULL)@",
4976 /* * * * * * * * * * * * * * * * * * * * * * * * * *
4978 * Description of Irix_Stdio_Va_List fix
4980 tSCC zIrix_Stdio_Va_ListName[] =
4981 "irix_stdio_va_list";
4984 * File name selection pattern
4986 tSCC zIrix_Stdio_Va_ListList[] =
4987 "stdio.h\0internal/stdio_core.h\0";
4989 * Machine/OS name selection pattern
4991 #define apzIrix_Stdio_Va_ListMachs (const char**)NULL
4994 * content selection pattern - do fix if pattern found
4996 tSCC zIrix_Stdio_Va_ListSelect0[] =
4997 "/\\* va_list \\*/ char \\*";
4999 #define IRIX_STDIO_VA_LIST_TEST_CT 1
5000 static tTestDesc aIrix_Stdio_Va_ListTests[] = {
5001 { TT_EGREP, zIrix_Stdio_Va_ListSelect0, (regex_t*)NULL }, };
5004 * Fix Command Arguments for Irix_Stdio_Va_List
5006 static const char* apzIrix_Stdio_Va_ListPatch[] = {
5011 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5013 * Description of Irix_Wcsftime fix
5015 tSCC zIrix_WcsftimeName[] =
5019 * File name selection pattern
5021 tSCC zIrix_WcsftimeList[] =
5022 "internal/wchar_core.h\0";
5024 * Machine/OS name selection pattern
5026 tSCC* apzIrix_WcsftimeMachs[] = {
5028 (const char*)NULL };
5031 * content selection pattern - do fix if pattern found
5033 tSCC zIrix_WcsftimeSelect0[] =
5035 (extern size_t[ \t]+wcsftime.*const char *.*)";
5037 #define IRIX_WCSFTIME_TEST_CT 1
5038 static tTestDesc aIrix_WcsftimeTests[] = {
5039 { TT_EGREP, zIrix_WcsftimeSelect0, (regex_t*)NULL }, };
5042 * Fix Command Arguments for Irix_Wcsftime
5044 static const char* apzIrix_WcsftimePatch[] = {
5046 "#if _NO_XOPEN5 && !defined(__c99)\n\
5050 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5052 * Description of Kandr_Concat fix
5054 tSCC zKandr_ConcatName[] =
5058 * File name selection pattern
5060 tSCC zKandr_ConcatList[] =
5061 "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";
5063 * Machine/OS name selection pattern
5065 #define apzKandr_ConcatMachs (const char**)NULL
5068 * content selection pattern - do fix if pattern found
5070 tSCC zKandr_ConcatSelect0[] =
5073 #define KANDR_CONCAT_TEST_CT 1
5074 static tTestDesc aKandr_ConcatTests[] = {
5075 { TT_EGREP, zKandr_ConcatSelect0, (regex_t*)NULL }, };
5078 * Fix Command Arguments for Kandr_Concat
5080 static const char* apzKandr_ConcatPatch[] = {
5085 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5087 * Description of Linux_Ia64_Ucontext fix
5089 tSCC zLinux_Ia64_UcontextName[] =
5090 "linux_ia64_ucontext";
5093 * File name selection pattern
5095 tSCC zLinux_Ia64_UcontextList[] =
5098 * Machine/OS name selection pattern
5100 tSCC* apzLinux_Ia64_UcontextMachs[] = {
5102 (const char*)NULL };
5105 * content selection pattern - do fix if pattern found
5107 tSCC zLinux_Ia64_UcontextSelect0[] =
5108 "\\(\\(\\(char \\*\\) &\\(\\(struct sigcontext \\*\\) 0\\)->sc_gr\\[0\\]\\) - \\(char \\*\\) 0\\)";
5110 #define LINUX_IA64_UCONTEXT_TEST_CT 1
5111 static tTestDesc aLinux_Ia64_UcontextTests[] = {
5112 { TT_EGREP, zLinux_Ia64_UcontextSelect0, (regex_t*)NULL }, };
5115 * Fix Command Arguments for Linux_Ia64_Ucontext
5117 static const char* apzLinux_Ia64_UcontextPatch[] = {
5119 "__builtin_offsetof (struct sigcontext, sc_gr[0])",
5122 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5124 * Description of Lynxos_No_Warning_In_Sys_Time_H fix
5126 tSCC zLynxos_No_Warning_In_Sys_Time_HName[] =
5127 "lynxos_no_warning_in_sys_time_h";
5130 * File name selection pattern
5132 tSCC zLynxos_No_Warning_In_Sys_Time_HList[] =
5135 * Machine/OS name selection pattern
5137 #define apzLynxos_No_Warning_In_Sys_Time_HMachs (const char**)NULL
5140 * content selection pattern - do fix if pattern found
5142 tSCC zLynxos_No_Warning_In_Sys_Time_HSelect0[] =
5143 "#warning[ \t]+Using <time.h> instead of <sys/time.h>";
5145 #define LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT 1
5146 static tTestDesc aLynxos_No_Warning_In_Sys_Time_HTests[] = {
5147 { TT_EGREP, zLynxos_No_Warning_In_Sys_Time_HSelect0, (regex_t*)NULL }, };
5150 * Fix Command Arguments for Lynxos_No_Warning_In_Sys_Time_H
5152 static const char* apzLynxos_No_Warning_In_Sys_Time_HPatch[] = {
5157 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5159 * Description of Lynxos_Missing_Putenv fix
5161 tSCC zLynxos_Missing_PutenvName[] =
5162 "lynxos_missing_putenv";
5165 * File name selection pattern
5167 tSCC zLynxos_Missing_PutenvList[] =
5170 * Machine/OS name selection pattern
5172 tSCC* apzLynxos_Missing_PutenvMachs[] = {
5174 (const char*)NULL };
5177 * content selection pattern - do fix if pattern found
5179 tSCC zLynxos_Missing_PutenvSelect0[] =
5180 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);";
5183 * content bypass pattern - skip fix if pattern found
5185 tSCC zLynxos_Missing_PutenvBypass0[] =
5188 #define LYNXOS_MISSING_PUTENV_TEST_CT 2
5189 static tTestDesc aLynxos_Missing_PutenvTests[] = {
5190 { TT_NEGREP, zLynxos_Missing_PutenvBypass0, (regex_t*)NULL },
5191 { TT_EGREP, zLynxos_Missing_PutenvSelect0, (regex_t*)NULL }, };
5194 * Fix Command Arguments for Lynxos_Missing_Putenv
5196 static const char* apzLynxos_Missing_PutenvPatch[] = {
5199 extern int putenv\t\t\t\t_AP((char *));",
5200 "extern char \\*getenv[ \t]*_AP\\(\\(const char \\*\\)\\);",
5203 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5205 * Description of Machine_Ansi_H_Va_List fix
5207 tSCC zMachine_Ansi_H_Va_ListName[] =
5208 "machine_ansi_h_va_list";
5211 * File name selection pattern
5213 #define zMachine_Ansi_H_Va_ListList (char*)NULL
5215 * Machine/OS name selection pattern
5217 #define apzMachine_Ansi_H_Va_ListMachs (const char**)NULL
5220 * content selection pattern - do fix if pattern found
5222 tSCC zMachine_Ansi_H_Va_ListSelect0[] =
5223 "define[ \t]+_BSD_VA_LIST_[ \t]";
5226 * content bypass pattern - skip fix if pattern found
5228 tSCC zMachine_Ansi_H_Va_ListBypass0[] =
5229 "__builtin_va_list";
5231 #define MACHINE_ANSI_H_VA_LIST_TEST_CT 2
5232 static tTestDesc aMachine_Ansi_H_Va_ListTests[] = {
5233 { TT_NEGREP, zMachine_Ansi_H_Va_ListBypass0, (regex_t*)NULL },
5234 { TT_EGREP, zMachine_Ansi_H_Va_ListSelect0, (regex_t*)NULL }, };
5237 * Fix Command Arguments for Machine_Ansi_H_Va_List
5239 static const char* apzMachine_Ansi_H_Va_ListPatch[] = {
5241 "%1__builtin_va_list",
5242 "(define[ \t]+_BSD_VA_LIST_[ \t]+).*",
5245 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5247 * Description of Machine_Name fix
5249 tSCC zMachine_NameName[] =
5253 * File name selection pattern
5255 #define zMachine_NameList (char*)NULL
5257 * Machine/OS name selection pattern
5259 #define apzMachine_NameMachs (const char**)NULL
5262 * perform the C function call test
5264 tSCC zMachine_NameFTst0[] = "machine_name";
5266 #define MACHINE_NAME_TEST_CT 1
5267 static tTestDesc aMachine_NameTests[] = {
5268 { TT_FUNCTION, zMachine_NameFTst0, 0 /* unused */ }, };
5271 * Fix Command Arguments for Machine_Name
5273 static const char* apzMachine_NamePatch[] = {
5277 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5279 * Description of Math_Exception fix
5281 tSCC zMath_ExceptionName[] =
5285 * File name selection pattern
5287 tSCC zMath_ExceptionList[] =
5290 * Machine/OS name selection pattern
5292 #define apzMath_ExceptionMachs (const char**)NULL
5295 * content selection pattern - do fix if pattern found
5297 tSCC zMath_ExceptionSelect0[] =
5301 * content bypass pattern - skip fix if pattern found
5303 tSCC zMath_ExceptionBypass0[] =
5304 "We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
5306 #define MATH_EXCEPTION_TEST_CT 2
5307 static tTestDesc aMath_ExceptionTests[] = {
5308 { TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
5309 { TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
5312 * Fix Command Arguments for Math_Exception
5314 static const char* apzMath_ExceptionPatch[] = {
5316 "#ifdef __cplusplus\n\
5317 #define exception __math_exception\n\
5319 "#ifdef __cplusplus\n\
5324 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5326 * Description of Math_Huge_Val_From_Dbl_Max fix
5328 tSCC zMath_Huge_Val_From_Dbl_MaxName[] =
5329 "math_huge_val_from_dbl_max";
5332 * File name selection pattern
5334 tSCC zMath_Huge_Val_From_Dbl_MaxList[] =
5337 * Machine/OS name selection pattern
5339 #define apzMath_Huge_Val_From_Dbl_MaxMachs (const char**)NULL
5342 * content selection pattern - do fix if pattern found
5344 tSCC zMath_Huge_Val_From_Dbl_MaxSelect0[] =
5345 "define[ \t]+HUGE_VAL[ \t]+DBL_MAX";
5348 * content bypass pattern - skip fix if pattern found
5350 tSCC zMath_Huge_Val_From_Dbl_MaxBypass0[] =
5351 "define[ \t]+DBL_MAX";
5353 #define MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT 2
5354 static tTestDesc aMath_Huge_Val_From_Dbl_MaxTests[] = {
5355 { TT_NEGREP, zMath_Huge_Val_From_Dbl_MaxBypass0, (regex_t*)NULL },
5356 { TT_EGREP, zMath_Huge_Val_From_Dbl_MaxSelect0, (regex_t*)NULL }, };
5359 * Fix Command Arguments for Math_Huge_Val_From_Dbl_Max
5361 static const char* apzMath_Huge_Val_From_Dbl_MaxPatch[] = { "sh", "-c",
5362 "\tdbl_max_def=`egrep 'define[ \t]+DBL_MAX[ \t]+.*' float.h | sed 's/.*DBL_MAX[ \t]*//' 2>/dev/null`\n\n\
5363 \tif ( test -n \"${dbl_max_def}\" ) > /dev/null 2>&1\n\
5364 \tthen sed -e '/define[ \t]*HUGE_VAL[ \t]*DBL_MAX/s@DBL_MAX@'\"$dbl_max_def@\"\n\
5369 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5371 * Description of Nested_Auth_Des fix
5373 tSCC zNested_Auth_DesName[] =
5377 * File name selection pattern
5379 tSCC zNested_Auth_DesList[] =
5382 * Machine/OS name selection pattern
5384 #define apzNested_Auth_DesMachs (const char**)NULL
5387 * content selection pattern - do fix if pattern found
5389 tSCC zNested_Auth_DesSelect0[] =
5390 "(/\\*.*rpc/auth_des\\.h>.*)/\\*";
5392 #define NESTED_AUTH_DES_TEST_CT 1
5393 static tTestDesc aNested_Auth_DesTests[] = {
5394 { TT_EGREP, zNested_Auth_DesSelect0, (regex_t*)NULL }, };
5397 * Fix Command Arguments for Nested_Auth_Des
5399 static const char* apzNested_Auth_DesPatch[] = {
5404 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5406 * Description of Netbsd_C99_Inline_1 fix
5408 tSCC zNetbsd_C99_Inline_1Name[] =
5409 "netbsd_c99_inline_1";
5412 * File name selection pattern
5414 tSCC zNetbsd_C99_Inline_1List[] =
5417 * Machine/OS name selection pattern
5419 tSCC* apzNetbsd_C99_Inline_1Machs[] = {
5421 (const char*)NULL };
5424 * content selection pattern - do fix if pattern found
5426 tSCC zNetbsd_C99_Inline_1Select0[] =
5427 "extern __inline int";
5429 #define NETBSD_C99_INLINE_1_TEST_CT 1
5430 static tTestDesc aNetbsd_C99_Inline_1Tests[] = {
5431 { TT_EGREP, zNetbsd_C99_Inline_1Select0, (regex_t*)NULL }, };
5434 * Fix Command Arguments for Netbsd_C99_Inline_1
5436 static const char* apzNetbsd_C99_Inline_1Patch[] = {
5439 #ifdef __GNUC_STDC_INLINE__\n\
5440 __attribute__((__gnu_inline__))\n\
5445 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5447 * Description of Netbsd_C99_Inline_2 fix
5449 tSCC zNetbsd_C99_Inline_2Name[] =
5450 "netbsd_c99_inline_2";
5453 * File name selection pattern
5455 tSCC zNetbsd_C99_Inline_2List[] =
5458 * Machine/OS name selection pattern
5460 tSCC* apzNetbsd_C99_Inline_2Machs[] = {
5462 (const char*)NULL };
5465 * content selection pattern - do fix if pattern found
5467 tSCC zNetbsd_C99_Inline_2Select0[] =
5468 "#define _SIGINLINE extern __inline";
5470 #define NETBSD_C99_INLINE_2_TEST_CT 1
5471 static tTestDesc aNetbsd_C99_Inline_2Tests[] = {
5472 { TT_EGREP, zNetbsd_C99_Inline_2Select0, (regex_t*)NULL }, };
5475 * Fix Command Arguments for Netbsd_C99_Inline_2
5477 static const char* apzNetbsd_C99_Inline_2Patch[] = {
5479 "#ifdef __GNUC_STDC_INLINE__\n\
5480 #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline\n\
5486 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5488 * Description of Netbsd_Extra_Semicolon fix
5490 tSCC zNetbsd_Extra_SemicolonName[] =
5491 "netbsd_extra_semicolon";
5494 * File name selection pattern
5496 tSCC zNetbsd_Extra_SemicolonList[] =
5499 * Machine/OS name selection pattern
5501 tSCC* apzNetbsd_Extra_SemicolonMachs[] = {
5503 (const char*)NULL };
5506 * content selection pattern - do fix if pattern found
5508 tSCC zNetbsd_Extra_SemicolonSelect0[] =
5509 "#define[ \t]*__END_DECLS[ \t]*};";
5511 #define NETBSD_EXTRA_SEMICOLON_TEST_CT 1
5512 static tTestDesc aNetbsd_Extra_SemicolonTests[] = {
5513 { TT_EGREP, zNetbsd_Extra_SemicolonSelect0, (regex_t*)NULL }, };
5516 * Fix Command Arguments for Netbsd_Extra_Semicolon
5518 static const char* apzNetbsd_Extra_SemicolonPatch[] = {
5520 "#define __END_DECLS }",
5523 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5525 * Description of Newlib_Stdint_1 fix
5527 tSCC zNewlib_Stdint_1Name[] =
5531 * File name selection pattern
5533 tSCC zNewlib_Stdint_1List[] =
5534 "stdint-newlib.h\0stdint.h\0";
5536 * Machine/OS name selection pattern
5538 #define apzNewlib_Stdint_1Machs (const char**)NULL
5541 * content selection pattern - do fix if pattern found
5543 tSCC zNewlib_Stdint_1Select0[] =
5544 "@todo - Add support for wint_t types";
5546 #define NEWLIB_STDINT_1_TEST_CT 1
5547 static tTestDesc aNewlib_Stdint_1Tests[] = {
5548 { TT_EGREP, zNewlib_Stdint_1Select0, (regex_t*)NULL }, };
5551 * Fix Command Arguments for Newlib_Stdint_1
5553 static const char* apzNewlib_Stdint_1Patch[] = { sed_cmd_z,
5554 "-e", "s@#define INT32_MIN.*@#define INT32_MIN (-INT32_MAX - 1)@",
5555 "-e", "s@#define INT32_MAX.*@#define INT32_MAX __INT32_MAX__@",
5556 "-e", "s@#define UINT32_MAX.*@#define UINT32_MAX __UINT32_MAX__@",
5557 "-e", "s@#define INT_LEAST32_MIN.*@#define INT_LEAST32_MIN (-INT_LEAST32_MAX - 1)@",
5558 "-e", "s@#define INT_LEAST32_MAX.*@#define INT_LEAST32_MAX __INT_LEAST32_MAX__@",
5559 "-e", "s@#define UINT_LEAST32_MAX.*@#define UINT_LEAST32_MAX __UINT_LEAST32_MAX__@",
5560 "-e", "s@#define INT_FAST\\([0-9]*\\)_MIN.*@#define INT_FAST\\1_MIN (-INT_FAST\\1_MAX - 1)@",
5561 "-e", "s@#define INT_FAST\\([0-9]*\\)_MAX.*@#define INT_FAST\\1_MAX __INT_FAST\\1_MAX__@",
5562 "-e", "s@#define UINT_FAST\\([0-9]*\\)_MAX.*@#define UINT_FAST\\1_MAX __UINT_FAST\\1_MAX__@",
5563 "-e", "s@#define SIZE_MAX.*@#define SIZE_MAX __SIZE_MAX__@",
5564 "-e", "s@#define PTRDIFF_MIN.*@#define PTRDIFF_MIN (-PTRDIFF_MAX - 1)@",
5565 "-e", "s@#define PTRDIFF_MAX.*@#define PTRDIFF_MAX __PTRDIFF_MAX__@",
5566 "-e", "s@#define UINT8_C.*@#define UINT8_C(c) __UINT8_C(c)@",
5567 "-e", "s@#define UINT16_C.*@#define UINT16_C(c) __UINT16_C(c)@",
5570 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5572 * Description of Newlib_Stdint_2 fix
5574 tSCC zNewlib_Stdint_2Name[] =
5578 * File name selection pattern
5580 tSCC zNewlib_Stdint_2List[] =
5581 "stdint-newlib.h\0stdint.h\0";
5583 * Machine/OS name selection pattern
5585 #define apzNewlib_Stdint_2Machs (const char**)NULL
5588 * content selection pattern - do fix if pattern found
5590 tSCC zNewlib_Stdint_2Select0[] =
5591 "@todo - Add support for wint_t types";
5593 #define NEWLIB_STDINT_2_TEST_CT 1
5594 static tTestDesc aNewlib_Stdint_2Tests[] = {
5595 { TT_EGREP, zNewlib_Stdint_2Select0, (regex_t*)NULL }, };
5598 * Fix Command Arguments for Newlib_Stdint_2
5600 static const char* apzNewlib_Stdint_2Patch[] = {
5602 "#define INTMAX_MAX __INTMAX_MAX__\n\
5603 #define INTMAX_MIN (-INTMAX_MAX - 1)\n\
5604 #define UINTMAX_MAX __UINTMAX_MAX__\n\
5605 #define WCHAR_MAX __WCHAR_MAX__\n\
5606 #define WCHAR_MIN __WCHAR_MIN__\n\
5607 #define WINT_MAX __WINT_MAX__\n\
5608 #define WINT_MIN __WINT_MIN__\n\n\
5610 "/\\*\\* Macros for minimum-width integer constant expressions \\*/",
5613 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5615 * Description of Next_Math_Prefix fix
5617 tSCC zNext_Math_PrefixName[] =
5621 * File name selection pattern
5623 tSCC zNext_Math_PrefixList[] =
5626 * Machine/OS name selection pattern
5628 #define apzNext_Math_PrefixMachs (const char**)NULL
5631 * content selection pattern - do fix if pattern found
5633 tSCC zNext_Math_PrefixSelect0[] =
5634 "^extern[ \t]+double[ \t]+__const__[ \t]";
5636 #define NEXT_MATH_PREFIX_TEST_CT 1
5637 static tTestDesc aNext_Math_PrefixTests[] = {
5638 { TT_EGREP, zNext_Math_PrefixSelect0, (regex_t*)NULL }, };
5641 * Fix Command Arguments for Next_Math_Prefix
5643 static const char* apzNext_Math_PrefixPatch[] = {
5645 "extern double %1(",
5646 "^extern[ \t]+double[ \t]+__const__[ \t]+([a-z]+)\\(",
5649 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5651 * Description of Next_Template fix
5653 tSCC zNext_TemplateName[] =
5657 * File name selection pattern
5659 tSCC zNext_TemplateList[] =
5662 * Machine/OS name selection pattern
5664 #define apzNext_TemplateMachs (const char**)NULL
5667 * content selection pattern - do fix if pattern found
5669 tSCC zNext_TemplateSelect0[] =
5672 #define NEXT_TEMPLATE_TEST_CT 1
5673 static tTestDesc aNext_TemplateTests[] = {
5674 { TT_EGREP, zNext_TemplateSelect0, (regex_t*)NULL }, };
5677 * Fix Command Arguments for Next_Template
5679 static const char* apzNext_TemplatePatch[] = {
5682 "\\(([^)]*)[ \t]template\\)",
5685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5687 * Description of Next_Volitile fix
5689 tSCC zNext_VolitileName[] =
5693 * File name selection pattern
5695 tSCC zNext_VolitileList[] =
5698 * Machine/OS name selection pattern
5700 #define apzNext_VolitileMachs (const char**)NULL
5703 * content selection pattern - do fix if pattern found
5705 tSCC zNext_VolitileSelect0[] =
5706 "^extern[ \t]+volatile[ \t]+void[ \t]";
5708 #define NEXT_VOLITILE_TEST_CT 1
5709 static tTestDesc aNext_VolitileTests[] = {
5710 { TT_EGREP, zNext_VolitileSelect0, (regex_t*)NULL }, };
5713 * Fix Command Arguments for Next_Volitile
5715 static const char* apzNext_VolitilePatch[] = {
5718 "^extern[ \t]+volatile[ \t]+void[ \t]+(exit|abort)\\(",
5721 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5723 * Description of Next_Wait_Union fix
5725 tSCC zNext_Wait_UnionName[] =
5729 * File name selection pattern
5731 tSCC zNext_Wait_UnionList[] =
5734 * Machine/OS name selection pattern
5736 #define apzNext_Wait_UnionMachs (const char**)NULL
5739 * content selection pattern - do fix if pattern found
5741 tSCC zNext_Wait_UnionSelect0[] =
5742 "wait\\(union wait";
5744 #define NEXT_WAIT_UNION_TEST_CT 1
5745 static tTestDesc aNext_Wait_UnionTests[] = {
5746 { TT_EGREP, zNext_Wait_UnionSelect0, (regex_t*)NULL }, };
5749 * Fix Command Arguments for Next_Wait_Union
5751 static const char* apzNext_Wait_UnionPatch[] = {
5756 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5758 * Description of Nodeent_Syntax fix
5760 tSCC zNodeent_SyntaxName[] =
5764 * File name selection pattern
5766 tSCC zNodeent_SyntaxList[] =
5767 "netdnet/dnetdb.h\0";
5769 * Machine/OS name selection pattern
5771 #define apzNodeent_SyntaxMachs (const char**)NULL
5774 * content selection pattern - do fix if pattern found
5776 tSCC zNodeent_SyntaxSelect0[] =
5777 "char[ \t]*\\*na_addr[ \t]*$";
5779 #define NODEENT_SYNTAX_TEST_CT 1
5780 static tTestDesc aNodeent_SyntaxTests[] = {
5781 { TT_EGREP, zNodeent_SyntaxSelect0, (regex_t*)NULL }, };
5784 * Fix Command Arguments for Nodeent_Syntax
5786 static const char* apzNodeent_SyntaxPatch[] = {
5791 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5793 * Description of Openbsd_Null_Definition fix
5795 tSCC zOpenbsd_Null_DefinitionName[] =
5796 "openbsd_null_definition";
5799 * File name selection pattern
5801 tSCC zOpenbsd_Null_DefinitionList[] =
5802 "locale.h\0stddef.h\0stdio.h\0string.h\0time.h\0unistd.h\0wchar.h\0sys/param.h\0";
5804 * Machine/OS name selection pattern
5806 tSCC* apzOpenbsd_Null_DefinitionMachs[] = {
5808 (const char*)NULL };
5811 * content selection pattern - do fix if pattern found
5813 tSCC zOpenbsd_Null_DefinitionSelect0[] =
5816 #define OPENBSD_NULL_DEFINITION_TEST_CT 1
5817 static tTestDesc aOpenbsd_Null_DefinitionTests[] = {
5818 { TT_EGREP, zOpenbsd_Null_DefinitionSelect0, (regex_t*)NULL }, };
5821 * Fix Command Arguments for Openbsd_Null_Definition
5823 static const char* apzOpenbsd_Null_DefinitionPatch[] = {
5826 #ifdef __cplusplus\n\
5828 #define NULL\t__null\n\
5829 #else\t /* ! __GNUG__ */\n\
5831 #endif\t /* __GNUG__ */\n\
5832 #else\t /* ! __cplusplus */\n\
5833 #define NULL\t((void *)0)\n\
5834 #endif\t /* __cplusplus */\n\
5835 #endif\t /* !NULL */",
5836 "^#ifndef[ \t]*NULL\n\
5837 ^#ifdef[ \t]*__GNUG__\n\
5838 ^#define[ \t]*NULL[ \t]*__null\n\
5840 ^#define[ \t]*NULL[ \t]*0L\n\
5845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5847 * Description of Obstack_Lvalue_Cast fix
5849 tSCC zObstack_Lvalue_CastName[] =
5850 "obstack_lvalue_cast";
5853 * File name selection pattern
5855 tSCC zObstack_Lvalue_CastList[] =
5858 * Machine/OS name selection pattern
5860 #define apzObstack_Lvalue_CastMachs (const char**)NULL
5863 * content selection pattern - do fix if pattern found
5865 tSCC zObstack_Lvalue_CastSelect0[] =
5866 "\\*\\(\\(([^()]*)\\*\\)(.*)\\)\\+\\+ = \\(([^()]*)\\)";
5868 #define OBSTACK_LVALUE_CAST_TEST_CT 1
5869 static tTestDesc aObstack_Lvalue_CastTests[] = {
5870 { TT_EGREP, zObstack_Lvalue_CastSelect0, (regex_t*)NULL }, };
5873 * Fix Command Arguments for Obstack_Lvalue_Cast
5875 static const char* apzObstack_Lvalue_CastPatch[] = {
5877 "((*((%1*)%2) = (%3)), (%2 += sizeof (%1)))",
5880 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5882 * Description of Openbsd_Va_Start fix
5884 tSCC zOpenbsd_Va_StartName[] =
5888 * File name selection pattern
5890 tSCC zOpenbsd_Va_StartList[] =
5893 * Machine/OS name selection pattern
5895 tSCC* apzOpenbsd_Va_StartMachs[] = {
5897 (const char*)NULL };
5900 * content selection pattern - do fix if pattern found
5902 tSCC zOpenbsd_Va_StartSelect0[] =
5903 "__builtin_stdarg_start";
5905 #define OPENBSD_VA_START_TEST_CT 1
5906 static tTestDesc aOpenbsd_Va_StartTests[] = {
5907 { TT_EGREP, zOpenbsd_Va_StartSelect0, (regex_t*)NULL }, };
5910 * Fix Command Arguments for Openbsd_Va_Start
5912 static const char* apzOpenbsd_Va_StartPatch[] = {
5914 "__builtin_va_start",
5917 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5919 * Description of Osf_Namespace_A fix
5921 tSCC zOsf_Namespace_AName[] =
5925 * File name selection pattern
5927 tSCC zOsf_Namespace_AList[] =
5928 "reg_types.h\0sys/lc_core.h\0";
5930 * Machine/OS name selection pattern
5932 #define apzOsf_Namespace_AMachs (const char**)NULL
5935 * perform the 'test' shell command - do fix on success
5937 tSCC zOsf_Namespace_ATest0[] =
5939 tSCC zOsf_Namespace_ATest1[] =
5940 " -r sys/lc_core.h";
5941 tSCC zOsf_Namespace_ATest2[] =
5942 " -n \"`grep '} regex_t;' reg_types.h`\"";
5943 tSCC zOsf_Namespace_ATest3[] =
5944 " -z \"`grep __regex_t regex.h`\"";
5946 #define OSF_NAMESPACE_A_TEST_CT 4
5947 static tTestDesc aOsf_Namespace_ATests[] = {
5948 { TT_TEST, zOsf_Namespace_ATest0, 0 /* unused */ },
5949 { TT_TEST, zOsf_Namespace_ATest1, 0 /* unused */ },
5950 { TT_TEST, zOsf_Namespace_ATest2, 0 /* unused */ },
5951 { TT_TEST, zOsf_Namespace_ATest3, 0 /* unused */ }, };
5954 * Fix Command Arguments for Osf_Namespace_A
5956 static const char* apzOsf_Namespace_APatch[] = {
5959 "reg(ex|off|match)_t",
5962 /* * * * * * * * * * * * * * * * * * * * * * * * * *
5964 * Description of Osf_Namespace_C fix
5966 tSCC zOsf_Namespace_CName[] =
5970 * File name selection pattern
5972 tSCC zOsf_Namespace_CList[] =
5975 * Machine/OS name selection pattern
5977 #define apzOsf_Namespace_CMachs (const char**)NULL
5980 * content selection pattern - do fix if pattern found
5982 tSCC zOsf_Namespace_CSelect0[] =
5983 "#include <reg_types.h>.*";
5986 * perform the 'test' shell command - do fix on success
5988 tSCC zOsf_Namespace_CTest0[] =
5990 tSCC zOsf_Namespace_CTest1[] =
5991 " -r sys/lc_core.h";
5992 tSCC zOsf_Namespace_CTest2[] =
5993 " -n \"`grep '} regex_t;' reg_types.h`\"";
5994 tSCC zOsf_Namespace_CTest3[] =
5995 " -z \"`grep __regex_t regex.h`\"";
5997 #define OSF_NAMESPACE_C_TEST_CT 5
5998 static tTestDesc aOsf_Namespace_CTests[] = {
5999 { TT_TEST, zOsf_Namespace_CTest0, 0 /* unused */ },
6000 { TT_TEST, zOsf_Namespace_CTest1, 0 /* unused */ },
6001 { TT_TEST, zOsf_Namespace_CTest2, 0 /* unused */ },
6002 { TT_TEST, zOsf_Namespace_CTest3, 0 /* unused */ },
6003 { TT_EGREP, zOsf_Namespace_CSelect0, (regex_t*)NULL }, };
6006 * Fix Command Arguments for Osf_Namespace_C
6008 static const char* apzOsf_Namespace_CPatch[] = {
6011 typedef __regex_t\tregex_t;\n\
6012 typedef __regoff_t\tregoff_t;\n\
6013 typedef __regmatch_t\tregmatch_t;",
6016 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6018 * Description of Pthread_Incomplete_Struct_Argument fix
6020 tSCC zPthread_Incomplete_Struct_ArgumentName[] =
6021 "pthread_incomplete_struct_argument";
6024 * File name selection pattern
6026 tSCC zPthread_Incomplete_Struct_ArgumentList[] =
6029 * Machine/OS name selection pattern
6031 #define apzPthread_Incomplete_Struct_ArgumentMachs (const char**)NULL
6034 * content selection pattern - do fix if pattern found
6036 tSCC zPthread_Incomplete_Struct_ArgumentSelect0[] =
6037 "struct __jmp_buf_tag";
6039 #define PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT 1
6040 static tTestDesc aPthread_Incomplete_Struct_ArgumentTests[] = {
6041 { TT_EGREP, zPthread_Incomplete_Struct_ArgumentSelect0, (regex_t*)NULL }, };
6044 * Fix Command Arguments for Pthread_Incomplete_Struct_Argument
6046 static const char* apzPthread_Incomplete_Struct_ArgumentPatch[] = {
6049 "^(extern int __sigsetjmp \\(struct __jmp_buf_tag) (__env)\\[1\\](.*)$",
6052 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6054 * Description of Read_Ret_Type fix
6056 tSCC zRead_Ret_TypeName[] =
6060 * File name selection pattern
6062 tSCC zRead_Ret_TypeList[] =
6065 * Machine/OS name selection pattern
6067 #define apzRead_Ret_TypeMachs (const char**)NULL
6070 * content selection pattern - do fix if pattern found
6072 tSCC zRead_Ret_TypeSelect0[] =
6073 "extern int\t.*, fread\\(\\), fwrite\\(\\)";
6075 #define READ_RET_TYPE_TEST_CT 1
6076 static tTestDesc aRead_Ret_TypeTests[] = {
6077 { TT_EGREP, zRead_Ret_TypeSelect0, (regex_t*)NULL }, };
6080 * Fix Command Arguments for Read_Ret_Type
6082 static const char* apzRead_Ret_TypePatch[] = {
6084 "extern unsigned int fread(), fwrite();\n\
6086 "(extern int\t.*), fread\\(\\), fwrite\\(\\)(.*)",
6089 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6091 * Description of Rpc_Xdr_Lvalue_Cast_A fix
6093 tSCC zRpc_Xdr_Lvalue_Cast_AName[] =
6094 "rpc_xdr_lvalue_cast_a";
6097 * File name selection pattern
6099 tSCC zRpc_Xdr_Lvalue_Cast_AList[] =
6102 * Machine/OS name selection pattern
6104 #define apzRpc_Xdr_Lvalue_Cast_AMachs (const char**)NULL
6107 * content selection pattern - do fix if pattern found
6109 tSCC zRpc_Xdr_Lvalue_Cast_ASelect0[] =
6110 "#define[ \t]*IXDR_GET_LONG.*\\\\\n\
6113 #define RPC_XDR_LVALUE_CAST_A_TEST_CT 1
6114 static tTestDesc aRpc_Xdr_Lvalue_Cast_ATests[] = {
6115 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_ASelect0, (regex_t*)NULL }, };
6118 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_A
6120 static const char* apzRpc_Xdr_Lvalue_Cast_APatch[] = {
6122 "#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))",
6125 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6127 * Description of Rpc_Xdr_Lvalue_Cast_B fix
6129 tSCC zRpc_Xdr_Lvalue_Cast_BName[] =
6130 "rpc_xdr_lvalue_cast_b";
6133 * File name selection pattern
6135 tSCC zRpc_Xdr_Lvalue_Cast_BList[] =
6138 * Machine/OS name selection pattern
6140 #define apzRpc_Xdr_Lvalue_Cast_BMachs (const char**)NULL
6143 * content selection pattern - do fix if pattern found
6145 tSCC zRpc_Xdr_Lvalue_Cast_BSelect0[] =
6146 "#define[ \t]*IXDR_PUT_LONG.*\\\\\n\
6149 #define RPC_XDR_LVALUE_CAST_B_TEST_CT 1
6150 static tTestDesc aRpc_Xdr_Lvalue_Cast_BTests[] = {
6151 { TT_EGREP, zRpc_Xdr_Lvalue_Cast_BSelect0, (regex_t*)NULL }, };
6154 * Fix Command Arguments for Rpc_Xdr_Lvalue_Cast_B
6156 static const char* apzRpc_Xdr_Lvalue_Cast_BPatch[] = {
6158 "#define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v)))",
6161 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6163 * Description of Rs6000_Double fix
6165 tSCC zRs6000_DoubleName[] =
6169 * File name selection pattern
6171 tSCC zRs6000_DoubleList[] =
6174 * Machine/OS name selection pattern
6176 #define apzRs6000_DoubleMachs (const char**)NULL
6179 * content selection pattern - do fix if pattern found
6181 tSCC zRs6000_DoubleSelect0[] =
6182 "[^a-zA-Z_]class\\(";
6184 #define RS6000_DOUBLE_TEST_CT 1
6185 static tTestDesc aRs6000_DoubleTests[] = {
6186 { TT_EGREP, zRs6000_DoubleSelect0, (regex_t*)NULL }, };
6189 * Fix Command Arguments for Rs6000_Double
6191 static const char* apzRs6000_DoublePatch[] = {
6193 "#ifndef __cplusplus\n\
6196 "^.*[^a-zA-Z_]class\\(.*",
6199 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6201 * Description of Rs6000_Fchmod fix
6203 tSCC zRs6000_FchmodName[] =
6207 * File name selection pattern
6209 tSCC zRs6000_FchmodList[] =
6212 * Machine/OS name selection pattern
6214 #define apzRs6000_FchmodMachs (const char**)NULL
6217 * content selection pattern - do fix if pattern found
6219 tSCC zRs6000_FchmodSelect0[] =
6220 "fchmod\\(char \\*";
6222 #define RS6000_FCHMOD_TEST_CT 1
6223 static tTestDesc aRs6000_FchmodTests[] = {
6224 { TT_EGREP, zRs6000_FchmodSelect0, (regex_t*)NULL }, };
6227 * Fix Command Arguments for Rs6000_Fchmod
6229 static const char* apzRs6000_FchmodPatch[] = {
6234 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6236 * Description of Rs6000_Param fix
6238 tSCC zRs6000_ParamName[] =
6242 * File name selection pattern
6244 tSCC zRs6000_ParamList[] =
6245 "stdio.h\0unistd.h\0";
6247 * Machine/OS name selection pattern
6249 #define apzRs6000_ParamMachs (const char**)NULL
6252 * content selection pattern - do fix if pattern found
6254 tSCC zRs6000_ParamSelect0[] =
6255 "rename\\(const char \\*old, const char \\*new\\)";
6257 #define RS6000_PARAM_TEST_CT 1
6258 static tTestDesc aRs6000_ParamTests[] = {
6259 { TT_EGREP, zRs6000_ParamSelect0, (regex_t*)NULL }, };
6262 * Fix Command Arguments for Rs6000_Param
6264 static const char* apzRs6000_ParamPatch[] = {
6266 "rename(const char *_old, const char *_new)",
6269 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6271 * Description of Solaris___Restrict fix
6273 tSCC zSolaris___RestrictName[] =
6274 "solaris___restrict";
6277 * File name selection pattern
6279 tSCC zSolaris___RestrictList[] =
6280 "sys/feature_tests.h\0";
6282 * Machine/OS name selection pattern
6284 tSCC* apzSolaris___RestrictMachs[] = {
6286 (const char*)NULL };
6289 * content selection pattern - do fix if pattern found
6291 tSCC zSolaris___RestrictSelect0[] =
6292 "#define[ \t]*_RESTRICT_KYWD[ \t]*restrict";
6294 #define SOLARIS___RESTRICT_TEST_CT 1
6295 static tTestDesc aSolaris___RestrictTests[] = {
6296 { TT_EGREP, zSolaris___RestrictSelect0, (regex_t*)NULL }, };
6299 * Fix Command Arguments for Solaris___Restrict
6301 static const char* apzSolaris___RestrictPatch[] = {
6303 "#ifdef __cplusplus\n\
6304 #define\t_RESTRICT_KYWD\t__restrict\n\
6310 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6312 * Description of Solaris_Complex fix
6314 tSCC zSolaris_ComplexName[] =
6318 * File name selection pattern
6320 tSCC zSolaris_ComplexList[] =
6323 * Machine/OS name selection pattern
6325 tSCC* apzSolaris_ComplexMachs[] = {
6327 (const char*)NULL };
6330 * content selection pattern - do fix if pattern found
6332 tSCC zSolaris_ComplexSelect0[] =
6333 "#define[ \t]_Complex_I[ \t]_Complex_I";
6335 #define SOLARIS_COMPLEX_TEST_CT 1
6336 static tTestDesc aSolaris_ComplexTests[] = {
6337 { TT_EGREP, zSolaris_ComplexSelect0, (regex_t*)NULL }, };
6340 * Fix Command Arguments for Solaris_Complex
6342 static const char* apzSolaris_ComplexPatch[] = { sed_cmd_z,
6343 "-e", "s/#define[ \t]_Complex_I[ \t]_Complex_I/#define\t_Complex_I\t(__extension__ 1.0iF)/",
6344 "-e", "/#define[ \t]_Imaginary_I[ \t]_Imaginary_I/d",
6345 "-e", "/#define[ \t]imaginary[ \t]_Imaginary/d",
6346 "-e", "s/#define[ \t]I[ \t]\\{1,\\}_Imaginary_I/#define\tI\t\t_Complex_I/",
6349 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6351 * Description of Solaris_Complex_Cxx fix
6353 tSCC zSolaris_Complex_CxxName[] =
6354 "solaris_complex_cxx";
6357 * File name selection pattern
6359 tSCC zSolaris_Complex_CxxList[] =
6362 * Machine/OS name selection pattern
6364 tSCC* apzSolaris_Complex_CxxMachs[] = {
6366 (const char*)NULL };
6367 #define SOLARIS_COMPLEX_CXX_TEST_CT 0
6368 #define aSolaris_Complex_CxxTests (tTestDesc*)NULL
6371 * Fix Command Arguments for Solaris_Complex_Cxx
6373 static const char* apzSolaris_Complex_CxxPatch[] = { sed_cmd_z,
6374 "-e", "/#if[ \t]*!defined(__cplusplus)/c\\\n\
6375 #ifdef\t__cplusplus\\\n\
6378 "-e", "/#endif[ \t]*\\/\\* !defined(__cplusplus) \\*\\//c\\\n\
6379 #ifdef\t__cplusplus\\\n\
6384 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6386 * Description of Solaris_Cond_Init fix
6388 tSCC zSolaris_Cond_InitName[] =
6389 "solaris_cond_init";
6392 * File name selection pattern
6394 tSCC zSolaris_Cond_InitList[] =
6397 * Machine/OS name selection pattern
6399 tSCC* apzSolaris_Cond_InitMachs[] = {
6401 (const char*)NULL };
6404 * content selection pattern - do fix if pattern found
6406 tSCC zSolaris_Cond_InitSelect0[] =
6407 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6409 #define SOLARIS_COND_INIT_TEST_CT 1
6410 static tTestDesc aSolaris_Cond_InitTests[] = {
6411 { TT_EGREP, zSolaris_Cond_InitSelect0, (regex_t*)NULL }, };
6414 * Fix Command Arguments for Solaris_Cond_Init
6416 static const char* apzSolaris_Cond_InitPatch[] = {
6419 "^(#define[ \t]+PTHREAD_COND_INITIALIZER[ \t]+\\{.*0)(\\},[ \t]*0\\}.*)$",
6422 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6424 * Description of Solaris_Cxx_Linkage fix
6426 tSCC zSolaris_Cxx_LinkageName[] =
6427 "solaris_cxx_linkage";
6430 * File name selection pattern
6432 tSCC zSolaris_Cxx_LinkageList[] =
6433 "iso/stdlib_iso.h\0";
6435 * Machine/OS name selection pattern
6437 tSCC* apzSolaris_Cxx_LinkageMachs[] = {
6439 (const char*)NULL };
6442 * content selection pattern - do fix if pattern found
6444 tSCC zSolaris_Cxx_LinkageSelect0[] =
6445 "(#if __cplusplus >= 199711L)\n\
6446 (extern \"C\\+\\+\" \\{\n\
6447 )(.*(bsearch|qsort).*)";
6449 #define SOLARIS_CXX_LINKAGE_TEST_CT 1
6450 static tTestDesc aSolaris_Cxx_LinkageTests[] = {
6451 { TT_EGREP, zSolaris_Cxx_LinkageSelect0, (regex_t*)NULL }, };
6454 * Fix Command Arguments for Solaris_Cxx_Linkage
6456 static const char* apzSolaris_Cxx_LinkagePatch[] = {
6462 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6464 * Description of Solaris_Getc_Strict_Stdc fix
6466 tSCC zSolaris_Getc_Strict_StdcName[] =
6467 "solaris_getc_strict_stdc";
6470 * File name selection pattern
6472 tSCC zSolaris_Getc_Strict_StdcList[] =
6473 "iso/stdio_iso.h\0";
6475 * Machine/OS name selection pattern
6477 tSCC* apzSolaris_Getc_Strict_StdcMachs[] = {
6479 (const char*)NULL };
6482 * content selection pattern - do fix if pattern found
6484 tSCC zSolaris_Getc_Strict_StdcSelect0[] =
6485 "(.*&& )!defined\\(_STRICT_STDC\\)(.*)";
6487 #define SOLARIS_GETC_STRICT_STDC_TEST_CT 1
6488 static tTestDesc aSolaris_Getc_Strict_StdcTests[] = {
6489 { TT_EGREP, zSolaris_Getc_Strict_StdcSelect0, (regex_t*)NULL }, };
6492 * Fix Command Arguments for Solaris_Getc_Strict_Stdc
6494 static const char* apzSolaris_Getc_Strict_StdcPatch[] = {
6496 "%1(!defined(_STRICT_STDC) || (__cplusplus >= 199711L))%2",
6499 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6501 * Description of Solaris_Longjmp_Noreturn fix
6503 tSCC zSolaris_Longjmp_NoreturnName[] =
6504 "solaris_longjmp_noreturn";
6507 * File name selection pattern
6509 tSCC zSolaris_Longjmp_NoreturnList[] =
6510 "iso/setjmp_iso.h\0";
6512 * Machine/OS name selection pattern
6514 tSCC* apzSolaris_Longjmp_NoreturnMachs[] = {
6516 (const char*)NULL };
6519 * content selection pattern - do fix if pattern found
6521 tSCC zSolaris_Longjmp_NoreturnSelect0[] =
6522 "(.*longjmp\\(jmp_buf.*[^)]+\\));";
6525 * content bypass pattern - skip fix if pattern found
6527 tSCC zSolaris_Longjmp_NoreturnBypass0[] =
6530 #define SOLARIS_LONGJMP_NORETURN_TEST_CT 2
6531 static tTestDesc aSolaris_Longjmp_NoreturnTests[] = {
6532 { TT_NEGREP, zSolaris_Longjmp_NoreturnBypass0, (regex_t*)NULL },
6533 { TT_EGREP, zSolaris_Longjmp_NoreturnSelect0, (regex_t*)NULL }, };
6536 * Fix Command Arguments for Solaris_Longjmp_Noreturn
6538 static const char* apzSolaris_Longjmp_NoreturnPatch[] = {
6540 "%1 __attribute__ ((__noreturn__));",
6543 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6545 * Description of Solaris_Math_1 fix
6547 tSCC zSolaris_Math_1Name[] =
6551 * File name selection pattern
6553 tSCC zSolaris_Math_1List[] =
6556 * Machine/OS name selection pattern
6558 #define apzSolaris_Math_1Machs (const char**)NULL
6561 * content selection pattern - do fix if pattern found
6563 tSCC zSolaris_Math_1Select0[] =
6564 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6567 * content bypass pattern - skip fix if pattern found
6569 tSCC zSolaris_Math_1Bypass0[] =
6572 #define SOLARIS_MATH_1_TEST_CT 2
6573 static tTestDesc aSolaris_Math_1Tests[] = {
6574 { TT_NEGREP, zSolaris_Math_1Bypass0, (regex_t*)NULL },
6575 { TT_EGREP, zSolaris_Math_1Select0, (regex_t*)NULL }, };
6578 * Fix Command Arguments for Solaris_Math_1
6580 static const char* apzSolaris_Math_1Patch[] = {
6582 "#define\tHUGE_VA%1\t(__builtin_huge_va%2())",
6583 "^#define[ \t]+HUGE_VA([LF]+)[ \t]+__builtin_huge_va([lf]+)",
6586 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6588 * Description of Solaris_Math_2 fix
6590 tSCC zSolaris_Math_2Name[] =
6594 * File name selection pattern
6596 tSCC zSolaris_Math_2List[] =
6599 * Machine/OS name selection pattern
6601 #define apzSolaris_Math_2Machs (const char**)NULL
6604 * content selection pattern - do fix if pattern found
6606 tSCC zSolaris_Math_2Select0[] =
6607 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6610 * content bypass pattern - skip fix if pattern found
6612 tSCC zSolaris_Math_2Bypass0[] =
6615 #define SOLARIS_MATH_2_TEST_CT 2
6616 static tTestDesc aSolaris_Math_2Tests[] = {
6617 { TT_NEGREP, zSolaris_Math_2Bypass0, (regex_t*)NULL },
6618 { TT_EGREP, zSolaris_Math_2Select0, (regex_t*)NULL }, };
6621 * Fix Command Arguments for Solaris_Math_2
6623 static const char* apzSolaris_Math_2Patch[] = {
6625 "#define\tINFINITY\t(__builtin_inff())",
6626 "^#define[ \t]+INFINITY[ \t]+__builtin_infinity",
6629 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6631 * Description of Solaris_Math_3 fix
6633 tSCC zSolaris_Math_3Name[] =
6637 * File name selection pattern
6639 tSCC zSolaris_Math_3List[] =
6642 * Machine/OS name selection pattern
6644 #define apzSolaris_Math_3Machs (const char**)NULL
6647 * content selection pattern - do fix if pattern found
6649 tSCC zSolaris_Math_3Select0[] =
6650 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6653 * content bypass pattern - skip fix if pattern found
6655 tSCC zSolaris_Math_3Bypass0[] =
6658 #define SOLARIS_MATH_3_TEST_CT 2
6659 static tTestDesc aSolaris_Math_3Tests[] = {
6660 { TT_NEGREP, zSolaris_Math_3Bypass0, (regex_t*)NULL },
6661 { TT_EGREP, zSolaris_Math_3Select0, (regex_t*)NULL }, };
6664 * Fix Command Arguments for Solaris_Math_3
6666 static const char* apzSolaris_Math_3Patch[] = {
6668 "#define\tNAN\t\t(__builtin_nanf(\"\"))",
6669 "^#define[ \t]+NAN[ \t]+__builtin_nan",
6672 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6674 * Description of Solaris_Math_4 fix
6676 tSCC zSolaris_Math_4Name[] =
6680 * File name selection pattern
6682 tSCC zSolaris_Math_4List[] =
6685 * Machine/OS name selection pattern
6687 #define apzSolaris_Math_4Machs (const char**)NULL
6690 * content selection pattern - do fix if pattern found
6692 tSCC zSolaris_Math_4Select0[] =
6693 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6696 * content bypass pattern - skip fix if pattern found
6698 tSCC zSolaris_Math_4Bypass0[] =
6701 #define SOLARIS_MATH_4_TEST_CT 2
6702 static tTestDesc aSolaris_Math_4Tests[] = {
6703 { TT_NEGREP, zSolaris_Math_4Bypass0, (regex_t*)NULL },
6704 { TT_EGREP, zSolaris_Math_4Select0, (regex_t*)NULL }, };
6707 * Fix Command Arguments for Solaris_Math_4
6709 static const char* apzSolaris_Math_4Patch[] = {
6711 "#define\tfpclassify(x) \\\n\
6712 __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, (x))",
6713 "^#define[ \t]+fpclassify\\(x\\)[ \t]+__builtin_fpclassify\\(x\\)",
6716 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6718 * Description of Solaris_Math_8 fix
6720 tSCC zSolaris_Math_8Name[] =
6724 * File name selection pattern
6726 tSCC zSolaris_Math_8List[] =
6729 * Machine/OS name selection pattern
6731 #define apzSolaris_Math_8Machs (const char**)NULL
6734 * content selection pattern - do fix if pattern found
6736 tSCC zSolaris_Math_8Select0[] =
6737 "@\\(#\\)math_c99\\.h[ \t]+1\\.[0-9]+[ \t]+[0-9/]+ SMI";
6740 * content bypass pattern - skip fix if pattern found
6742 tSCC zSolaris_Math_8Bypass0[] =
6745 #define SOLARIS_MATH_8_TEST_CT 2
6746 static tTestDesc aSolaris_Math_8Tests[] = {
6747 { TT_NEGREP, zSolaris_Math_8Bypass0, (regex_t*)NULL },
6748 { TT_EGREP, zSolaris_Math_8Select0, (regex_t*)NULL }, };
6751 * Fix Command Arguments for Solaris_Math_8
6753 static const char* apzSolaris_Math_8Patch[] = {
6755 "#define\tsignbit(x)\t(sizeof(x) == sizeof(float) \\\n\
6756 \t\t\t ? __builtin_signbitf(x) \\\n\
6757 \t\t\t : sizeof(x) == sizeof(long double) \\\n\
6758 \t\t\t ? __builtin_signbitl(x) \\\n\
6759 \t\t\t : __builtin_signbit(x))",
6760 "^#define[ \t]+signbit\\(x\\)[ \t]+__builtin_signbit\\(x\\)",
6763 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6765 * Description of Solaris_Math_9 fix
6767 tSCC zSolaris_Math_9Name[] =
6771 * File name selection pattern
6773 tSCC zSolaris_Math_9List[] =
6776 * Machine/OS name selection pattern
6778 #define apzSolaris_Math_9Machs (const char**)NULL
6781 * content selection pattern - do fix if pattern found
6783 tSCC zSolaris_Math_9Select0[] =
6784 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6787 * content bypass pattern - skip fix if pattern found
6789 tSCC zSolaris_Math_9Bypass0[] =
6792 #define SOLARIS_MATH_9_TEST_CT 2
6793 static tTestDesc aSolaris_Math_9Tests[] = {
6794 { TT_NEGREP, zSolaris_Math_9Bypass0, (regex_t*)NULL },
6795 { TT_EGREP, zSolaris_Math_9Select0, (regex_t*)NULL }, };
6798 * Fix Command Arguments for Solaris_Math_9
6800 static const char* apzSolaris_Math_9Patch[] = {
6802 "#define\t%1(x, y)%2__builtin_%1(x, y)",
6803 "^#define[ \t]+([a-z]+)\\(x, y\\)([ \t]+)\\(\\(x\\) __builtin_[a-z]+\\(y\\)\\)",
6806 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6808 * Description of Solaris_Math_10 fix
6810 tSCC zSolaris_Math_10Name[] =
6814 * File name selection pattern
6816 tSCC zSolaris_Math_10List[] =
6819 * Machine/OS name selection pattern
6821 #define apzSolaris_Math_10Machs (const char**)NULL
6824 * content selection pattern - do fix if pattern found
6826 tSCC zSolaris_Math_10Select0[] =
6827 "@\\(#\\)math_c99.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6829 #define SOLARIS_MATH_10_TEST_CT 1
6830 static tTestDesc aSolaris_Math_10Tests[] = {
6831 { TT_EGREP, zSolaris_Math_10Select0, (regex_t*)NULL }, };
6834 * Fix Command Arguments for Solaris_Math_10
6836 static const char* apzSolaris_Math_10Patch[] = {
6838 "#define\tisinf(x) __builtin_isinf(x)",
6839 "^#define[ \t]+isinf\\(x\\)[ \t]+__extension__\\([ \t]*\\\\\n\
6840 [ \t]*\\{[ \t]*__typeof\\(x\\)[ \t]*__x_i[ \t]*=[ \t]*\\(x\\);[ \t]*\\\\\n\
6841 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*INFINITY[ \t]*\\|\\|[ \t]*\\\\\n\
6842 [ \t]*__x_i[ \t]*==[ \t]*\\(__typeof\\(__x_i\\)\\)[ \t]*\\(-INFINITY\\);[ \t]*\\}\\)",
6845 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6847 * Description of Solaris_Mutex_Init_2 fix
6849 tSCC zSolaris_Mutex_Init_2Name[] =
6850 "solaris_mutex_init_2";
6853 * File name selection pattern
6855 tSCC zSolaris_Mutex_Init_2List[] =
6858 * Machine/OS name selection pattern
6860 tSCC* apzSolaris_Mutex_Init_2Machs[] = {
6861 "*-*-solaris2.[0-9]",
6862 "*-*-solaris2.[0-9][!0-9]*",
6863 (const char*)NULL };
6866 * content selection pattern - do fix if pattern found
6868 tSCC zSolaris_Mutex_Init_2Select0[] =
6869 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6871 #define SOLARIS_MUTEX_INIT_2_TEST_CT 1
6872 static tTestDesc aSolaris_Mutex_Init_2Tests[] = {
6873 { TT_EGREP, zSolaris_Mutex_Init_2Select0, (regex_t*)NULL }, };
6876 * Fix Command Arguments for Solaris_Mutex_Init_2
6878 static const char* apzSolaris_Mutex_Init_2Patch[] = {
6880 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6885 "(^#define[ \t]+PTHREAD_(MUTEX|COND)_INITIALIZER[ \t]+(|/*.**/[ \t]*\\\\\n\
6886 [ \t]*)\\{.*),[ \t]*0\\}(|[ \t].*)$",
6889 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6891 * Description of Solaris_Pow_Int_Overload fix
6893 tSCC zSolaris_Pow_Int_OverloadName[] =
6894 "solaris_pow_int_overload";
6897 * File name selection pattern
6899 tSCC zSolaris_Pow_Int_OverloadList[] =
6902 * Machine/OS name selection pattern
6904 tSCC* apzSolaris_Pow_Int_OverloadMachs[] = {
6906 (const char*)NULL };
6909 * content selection pattern - do fix if pattern found
6911 tSCC zSolaris_Pow_Int_OverloadSelect0[] =
6912 "^[ \t]*inline [a-z ]* pow\\([^()]*, int [^()]*\\) *\\{[^{}]*\n\
6915 #define SOLARIS_POW_INT_OVERLOAD_TEST_CT 1
6916 static tTestDesc aSolaris_Pow_Int_OverloadTests[] = {
6917 { TT_EGREP, zSolaris_Pow_Int_OverloadSelect0, (regex_t*)NULL }, };
6920 * Fix Command Arguments for Solaris_Pow_Int_Overload
6922 static const char* apzSolaris_Pow_Int_OverloadPatch[] = {
6924 "#ifndef __GXX_EXPERIMENTAL_CXX0X__\n\
6929 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6931 * Description of Solaris_Rwlock_Init_1 fix
6933 tSCC zSolaris_Rwlock_Init_1Name[] =
6934 "solaris_rwlock_init_1";
6937 * File name selection pattern
6939 tSCC zSolaris_Rwlock_Init_1List[] =
6942 * Machine/OS name selection pattern
6944 tSCC* apzSolaris_Rwlock_Init_1Machs[] = {
6946 (const char*)NULL };
6949 * content selection pattern - do fix if pattern found
6951 tSCC zSolaris_Rwlock_Init_1Select0[] =
6952 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6954 #define SOLARIS_RWLOCK_INIT_1_TEST_CT 1
6955 static tTestDesc aSolaris_Rwlock_Init_1Tests[] = {
6956 { TT_EGREP, zSolaris_Rwlock_Init_1Select0, (regex_t*)NULL }, };
6959 * Fix Command Arguments for Solaris_Rwlock_Init_1
6961 static const char* apzSolaris_Rwlock_Init_1Patch[] = {
6963 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
6966 %1{0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}\n\
6968 "(^#define[ \t]+PTHREAD_RWLOCK_INITIALIZER[ \t]+)\\{0, 0, 0, \\{0, 0, 0\\}, \\{0, 0\\}, \\{0, 0\\}\\}[ \t]*$",
6971 /* * * * * * * * * * * * * * * * * * * * * * * * * *
6973 * Description of Solaris_Once_Init_1 fix
6975 tSCC zSolaris_Once_Init_1Name[] =
6976 "solaris_once_init_1";
6979 * File name selection pattern
6981 tSCC zSolaris_Once_Init_1List[] =
6984 * Machine/OS name selection pattern
6986 tSCC* apzSolaris_Once_Init_1Machs[] = {
6988 (const char*)NULL };
6991 * content selection pattern - do fix if pattern found
6993 tSCC zSolaris_Once_Init_1Select0[] =
6994 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
6996 #define SOLARIS_ONCE_INIT_1_TEST_CT 1
6997 static tTestDesc aSolaris_Once_Init_1Tests[] = {
6998 { TT_EGREP, zSolaris_Once_Init_1Select0, (regex_t*)NULL }, };
7001 * Fix Command Arguments for Solaris_Once_Init_1
7003 static const char* apzSolaris_Once_Init_1Patch[] = {
7006 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{)([^}]+)(\\})[ \t]*$",
7009 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7011 * Description of Solaris_Once_Init_2 fix
7013 tSCC zSolaris_Once_Init_2Name[] =
7014 "solaris_once_init_2";
7017 * File name selection pattern
7019 tSCC zSolaris_Once_Init_2List[] =
7022 * Machine/OS name selection pattern
7024 tSCC* apzSolaris_Once_Init_2Machs[] = {
7025 "*-*-solaris2.[0-9]",
7026 "*-*-solaris2.[0-9][!0-9]*",
7027 (const char*)NULL };
7030 * content selection pattern - do fix if pattern found
7032 tSCC zSolaris_Once_Init_2Select0[] =
7033 "@\\(#\\)pthread.h[ \t]+1.[0-9]+[ \t]+[0-9/]+ SMI";
7035 #define SOLARIS_ONCE_INIT_2_TEST_CT 1
7036 static tTestDesc aSolaris_Once_Init_2Tests[] = {
7037 { TT_EGREP, zSolaris_Once_Init_2Select0, (regex_t*)NULL }, };
7040 * Fix Command Arguments for Solaris_Once_Init_2
7042 static const char* apzSolaris_Once_Init_2Patch[] = {
7044 "#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)\n\
7047 %1{0}, {0}, {0}, {%3}%4\n\
7049 "(^#define[ \t]+PTHREAD_ONCE_INIT[ \t]+\\{\\{)(0, 0, 0, )(PTHREAD_[A-Z_]+)(\\}\\})[ \t]*$",
7052 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7054 * Description of Solaris_Int_Const fix
7056 tSCC zSolaris_Int_ConstName[] =
7057 "solaris_int_const";
7060 * File name selection pattern
7062 tSCC zSolaris_Int_ConstList[] =
7063 "sys/int_const.h\0";
7065 * Machine/OS name selection pattern
7067 tSCC* apzSolaris_Int_ConstMachs[] = {
7069 (const char*)NULL };
7072 * content selection pattern - do fix if pattern found
7074 tSCC zSolaris_Int_ConstSelect0[] =
7075 "^#define[ \t]+UINT8_C\\(c\\)[ \t]+__CONCAT__.*\n\
7077 #define[ \t]+UINT16_C\\(c\\)[ \t]+__CONCAT__.*";
7079 #define SOLARIS_INT_CONST_TEST_CT 1
7080 static tTestDesc aSolaris_Int_ConstTests[] = {
7081 { TT_EGREP, zSolaris_Int_ConstSelect0, (regex_t*)NULL }, };
7084 * Fix Command Arguments for Solaris_Int_Const
7086 static const char* apzSolaris_Int_ConstPatch[] = {
7088 "#define\tUINT8_C(c)\t(c)\n\
7090 #define\tUINT16_C(c)\t(c)",
7093 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7095 * Description of Solaris_Int_Limits_1 fix
7097 tSCC zSolaris_Int_Limits_1Name[] =
7098 "solaris_int_limits_1";
7101 * File name selection pattern
7103 tSCC zSolaris_Int_Limits_1List[] =
7104 "sys/int_limits.h\0";
7106 * Machine/OS name selection pattern
7108 tSCC* apzSolaris_Int_Limits_1Machs[] = {
7110 (const char*)NULL };
7113 * content selection pattern - do fix if pattern found
7115 tSCC zSolaris_Int_Limits_1Select0[] =
7116 "^#define[ \t]+UINT8_MAX[ \t]+\\(255U\\)\n\
7117 #define[ \t]+UINT16_MAX[ \t]+\\(65535U\\)";
7119 #define SOLARIS_INT_LIMITS_1_TEST_CT 1
7120 static tTestDesc aSolaris_Int_Limits_1Tests[] = {
7121 { TT_EGREP, zSolaris_Int_Limits_1Select0, (regex_t*)NULL }, };
7124 * Fix Command Arguments for Solaris_Int_Limits_1
7126 static const char* apzSolaris_Int_Limits_1Patch[] = {
7128 "#define\tUINT8_MAX\t(255)\n\
7129 #define\tUINT16_MAX\t(65535)",
7132 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7134 * Description of Solaris_Int_Limits_2 fix
7136 tSCC zSolaris_Int_Limits_2Name[] =
7137 "solaris_int_limits_2";
7140 * File name selection pattern
7142 tSCC zSolaris_Int_Limits_2List[] =
7143 "sys/int_limits.h\0";
7145 * Machine/OS name selection pattern
7147 tSCC* apzSolaris_Int_Limits_2Machs[] = {
7149 (const char*)NULL };
7152 * content selection pattern - do fix if pattern found
7154 tSCC zSolaris_Int_Limits_2Select0[] =
7155 "^#define[ \t]+(INT|UINT)_FAST16_(MAX|MIN)[ \t](INT|UINT)16.*";
7157 #define SOLARIS_INT_LIMITS_2_TEST_CT 1
7158 static tTestDesc aSolaris_Int_Limits_2Tests[] = {
7159 { TT_EGREP, zSolaris_Int_Limits_2Select0, (regex_t*)NULL }, };
7162 * Fix Command Arguments for Solaris_Int_Limits_2
7164 static const char* apzSolaris_Int_Limits_2Patch[] = {
7166 "#define\t%1_FAST16_%2 %132_%2",
7169 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7171 * Description of Solaris_Int_Limits_3 fix
7173 tSCC zSolaris_Int_Limits_3Name[] =
7174 "solaris_int_limits_3";
7177 * File name selection pattern
7179 tSCC zSolaris_Int_Limits_3List[] =
7180 "sys/int_limits.h\0";
7182 * Machine/OS name selection pattern
7184 tSCC* apzSolaris_Int_Limits_3Machs[] = {
7186 (const char*)NULL };
7189 * content selection pattern - do fix if pattern found
7191 tSCC zSolaris_Int_Limits_3Select0[] =
7192 "^#define[ \t]+SIZE_MAX[ \t]+4294967295UL";
7194 #define SOLARIS_INT_LIMITS_3_TEST_CT 1
7195 static tTestDesc aSolaris_Int_Limits_3Tests[] = {
7196 { TT_EGREP, zSolaris_Int_Limits_3Select0, (regex_t*)NULL }, };
7199 * Fix Command Arguments for Solaris_Int_Limits_3
7201 static const char* apzSolaris_Int_Limits_3Patch[] = {
7203 "#define\tSIZE_MAX\t4294967295U",
7206 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7208 * Description of Solaris_Int_Types fix
7210 tSCC zSolaris_Int_TypesName[] =
7211 "solaris_int_types";
7214 * File name selection pattern
7216 tSCC zSolaris_Int_TypesList[] =
7217 "sys/int_types.h\0";
7219 * Machine/OS name selection pattern
7221 #define apzSolaris_Int_TypesMachs (const char**)NULL
7224 * content selection pattern - do fix if pattern found
7226 tSCC zSolaris_Int_TypesSelect0[] =
7227 "__STDC__ - 0 == 0";
7230 * content bypass pattern - skip fix if pattern found
7232 tSCC zSolaris_Int_TypesBypass0[] =
7235 #define SOLARIS_INT_TYPES_TEST_CT 2
7236 static tTestDesc aSolaris_Int_TypesTests[] = {
7237 { TT_NEGREP, zSolaris_Int_TypesBypass0, (regex_t*)NULL },
7238 { TT_EGREP, zSolaris_Int_TypesSelect0, (regex_t*)NULL }, };
7241 * Fix Command Arguments for Solaris_Int_Types
7243 static const char* apzSolaris_Int_TypesPatch[] = {
7245 "(defined(_STDC_C99) || !defined(_STRICT_STDC) || defined(__GNUC__))",
7248 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7250 * Description of Solaris_Posix_Spawn_Restrict fix
7252 tSCC zSolaris_Posix_Spawn_RestrictName[] =
7253 "solaris_posix_spawn_restrict";
7256 * File name selection pattern
7258 tSCC zSolaris_Posix_Spawn_RestrictList[] =
7261 * Machine/OS name selection pattern
7263 tSCC* apzSolaris_Posix_Spawn_RestrictMachs[] = {
7265 (const char*)NULL };
7268 * content selection pattern - do fix if pattern found
7270 tSCC zSolaris_Posix_Spawn_RestrictSelect0[] =
7271 "(.*[ \t]+)([a-z]+)\\[_RESTRICT_KYWD\\](.*)";
7273 #define SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT 1
7274 static tTestDesc aSolaris_Posix_Spawn_RestrictTests[] = {
7275 { TT_EGREP, zSolaris_Posix_Spawn_RestrictSelect0, (regex_t*)NULL }, };
7278 * Fix Command Arguments for Solaris_Posix_Spawn_Restrict
7280 static const char* apzSolaris_Posix_Spawn_RestrictPatch[] = {
7282 "%1*_RESTRICT_KYWD %2%3",
7285 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7287 * Description of Solaris_Std___Filbuf fix
7289 tSCC zSolaris_Std___FilbufName[] =
7290 "solaris_std___filbuf";
7293 * File name selection pattern
7295 tSCC zSolaris_Std___FilbufList[] =
7298 * Machine/OS name selection pattern
7300 tSCC* apzSolaris_Std___FilbufMachs[] = {
7302 (const char*)NULL };
7305 * content selection pattern - do fix if pattern found
7307 tSCC zSolaris_Std___FilbufSelect0[] =
7308 "(using std::perror;\n\
7312 * content bypass pattern - skip fix if pattern found
7314 tSCC zSolaris_Std___FilbufBypass0[] =
7315 "using std::__filbuf";
7317 #define SOLARIS_STD___FILBUF_TEST_CT 2
7318 static tTestDesc aSolaris_Std___FilbufTests[] = {
7319 { TT_NEGREP, zSolaris_Std___FilbufBypass0, (regex_t*)NULL },
7320 { TT_EGREP, zSolaris_Std___FilbufSelect0, (regex_t*)NULL }, };
7323 * Fix Command Arguments for Solaris_Std___Filbuf
7325 static const char* apzSolaris_Std___FilbufPatch[] = {
7328 using std::__filbuf;\n\
7329 using std::__flsbuf;\n\
7334 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7336 * Description of Solaris_Stdio_Tag fix
7338 tSCC zSolaris_Stdio_TagName[] =
7339 "solaris_stdio_tag";
7342 * File name selection pattern
7344 tSCC zSolaris_Stdio_TagList[] =
7347 * Machine/OS name selection pattern
7349 #define apzSolaris_Stdio_TagMachs (const char**)NULL
7352 * content selection pattern - do fix if pattern found
7354 tSCC zSolaris_Stdio_TagSelect0[] =
7355 "__cplusplus < 54321L";
7358 * content bypass pattern - skip fix if pattern found
7360 tSCC zSolaris_Stdio_TagBypass0[] =
7363 #define SOLARIS_STDIO_TAG_TEST_CT 2
7364 static tTestDesc aSolaris_Stdio_TagTests[] = {
7365 { TT_NEGREP, zSolaris_Stdio_TagBypass0, (regex_t*)NULL },
7366 { TT_EGREP, zSolaris_Stdio_TagSelect0, (regex_t*)NULL }, };
7369 * Fix Command Arguments for Solaris_Stdio_Tag
7371 static const char* apzSolaris_Stdio_TagPatch[] = { sed_cmd_z,
7372 "-e", "s/defined(__cplusplus) && (__cplusplus < 54321L)/0/",
7375 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7377 * Description of Solaris_Sys_Va_List fix
7379 tSCC zSolaris_Sys_Va_ListName[] =
7380 "solaris_sys_va_list";
7383 * File name selection pattern
7385 tSCC zSolaris_Sys_Va_ListList[] =
7388 * Machine/OS name selection pattern
7390 tSCC* apzSolaris_Sys_Va_ListMachs[] = {
7391 "*-*-solaris2.[89]",
7392 (const char*)NULL };
7395 * content selection pattern - do fix if pattern found
7397 tSCC zSolaris_Sys_Va_ListSelect0[] =
7399 typedef void \\*__va_list;\n\
7401 typedef char \\*__va_list;\n\
7404 #define SOLARIS_SYS_VA_LIST_TEST_CT 1
7405 static tTestDesc aSolaris_Sys_Va_ListTests[] = {
7406 { TT_EGREP, zSolaris_Sys_Va_ListSelect0, (regex_t*)NULL }, };
7409 * Fix Command Arguments for Solaris_Sys_Va_List
7411 static const char* apzSolaris_Sys_Va_ListPatch[] = {
7414 typedef __builtin_va_list __va_list;\n\
7420 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7422 * Description of Statsswtch fix
7424 tSCC zStatsswtchName[] =
7428 * File name selection pattern
7430 tSCC zStatsswtchList[] =
7433 * Machine/OS name selection pattern
7435 #define apzStatsswtchMachs (const char**)NULL
7438 * content selection pattern - do fix if pattern found
7440 tSCC zStatsswtchSelect0[] =
7443 #define STATSSWTCH_TEST_CT 1
7444 static tTestDesc aStatsswtchTests[] = {
7445 { TT_EGREP, zStatsswtchSelect0, (regex_t*)NULL }, };
7448 * Fix Command Arguments for Statsswtch
7450 static const char* apzStatsswtchPatch[] = {
7455 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7457 * Description of Stdio_Stdarg_H fix
7459 tSCC zStdio_Stdarg_HName[] =
7463 * File name selection pattern
7465 tSCC zStdio_Stdarg_HList[] =
7468 * Machine/OS name selection pattern
7470 tSCC* apzStdio_Stdarg_HMachs[] = {
7471 "*-*-solaris2.1[0-9]*",
7472 (const char*)NULL };
7475 * content bypass pattern - skip fix if pattern found
7477 tSCC zStdio_Stdarg_HBypass0[] =
7478 "include.*(stdarg.h|machine/ansi.h)";
7480 #define STDIO_STDARG_H_TEST_CT 1
7481 static tTestDesc aStdio_Stdarg_HTests[] = {
7482 { TT_NEGREP, zStdio_Stdarg_HBypass0, (regex_t*)NULL }, };
7485 * Fix Command Arguments for Stdio_Stdarg_H
7487 static const char* apzStdio_Stdarg_HPatch[] = {
7489 "#define __need___va_list\n\
7490 #include <stdarg.h>\n",
7493 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7495 * Description of Stdio_Va_List fix
7497 tSCC zStdio_Va_ListName[] =
7501 * File name selection pattern
7503 tSCC zStdio_Va_ListList[] =
7504 "stdio.h\0internal/stdio_core.h\0internal/wchar_core.h\0";
7506 * Machine/OS name selection pattern
7508 tSCC* apzStdio_Va_ListMachs[] = {
7509 "*-*-solaris2.1[0-9]*",
7510 (const char*)NULL };
7513 * content bypass pattern - skip fix if pattern found
7515 tSCC zStdio_Va_ListBypass0[] =
7516 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7518 #define STDIO_VA_LIST_TEST_CT 1
7519 static tTestDesc aStdio_Va_ListTests[] = {
7520 { TT_NEGREP, zStdio_Va_ListBypass0, (regex_t*)NULL }, };
7523 * Fix Command Arguments for Stdio_Va_List
7525 static const char* apzStdio_Va_ListPatch[] = { sed_cmd_z,
7526 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7527 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7528 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7529 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7530 s@ va_list@ __not_va_list__@\n\
7531 s@\\*va_list@*__not_va_list__@\n\
7532 s@ __va_list)@ __gnuc_va_list)@\n\
7533 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7534 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7535 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7536 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7537 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7538 s@VA_LIST@DUMMY_VA_LIST@\n\
7539 s@_Va_LIST@_VA_LIST@",
7542 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7544 * Description of Stdio_Va_List_Clients fix
7546 tSCC zStdio_Va_List_ClientsName[] =
7547 "stdio_va_list_clients";
7550 * File name selection pattern
7552 tSCC zStdio_Va_List_ClientsList[] =
7553 "com_err.h\0cps.h\0curses.h\0krb5.h\0lc_core.h\0pfmt.h\0wchar.h\0curses_colr/curses.h\0";
7555 * Machine/OS name selection pattern
7557 #define apzStdio_Va_List_ClientsMachs (const char**)NULL
7560 * content bypass pattern - skip fix if pattern found
7562 tSCC zStdio_Va_List_ClientsBypass0[] =
7563 "__gnuc_va_list|_BSD_VA_LIST_|__DJ_va_list|_G_va_list";
7564 tSCC zStdio_Va_List_ClientsBypass1[] =
7565 "include <stdarg\\.h>|#ifdef va_start";
7567 #define STDIO_VA_LIST_CLIENTS_TEST_CT 2
7568 static tTestDesc aStdio_Va_List_ClientsTests[] = {
7569 { TT_NEGREP, zStdio_Va_List_ClientsBypass0, (regex_t*)NULL },
7570 { TT_NEGREP, zStdio_Va_List_ClientsBypass1, (regex_t*)NULL }, };
7573 * Fix Command Arguments for Stdio_Va_List_Clients
7575 static const char* apzStdio_Va_List_ClientsPatch[] = { sed_cmd_z,
7576 "-e", "s@[ \t]va_list\\([ \t)]\\)@ __gnuc_va_list\\1@\n\
7577 s@(va_list)&@(__gnuc_va_list)\\&@\n\
7578 s@ _VA_LIST_));@ __gnuc_va_list));@\n\
7579 s@ __VA_LIST__));@ __gnuc_va_list));@\n\
7580 s@ va_list@ __not_va_list__@\n\
7581 s@\\*va_list@*__not_va_list__@\n\
7582 s@ __va_list)@ __gnuc_va_list)@\n\
7583 s@typedef[ \t]\\(.*\\)[ \t]va_list[ \t]*;@typedef \\1 __not_va_list__;@\n\
7584 s@typedef[ \t]*__va_list__@typedef __gnuc_va_list@\n\
7585 s@GNUC_VA_LIST@GNUC_Va_LIST@\n\
7586 s@_VA_LIST_DEFINED@_Va_LIST_DEFINED@\n\
7587 s@_NEED___VA_LIST@_NEED___Va_LIST@\n\
7588 s@VA_LIST@DUMMY_VA_LIST@\n\
7589 s@_Va_LIST@_VA_LIST@",
7592 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7594 * Description of Strict_Ansi_Not fix
7596 tSCC zStrict_Ansi_NotName[] =
7600 * File name selection pattern
7602 #define zStrict_Ansi_NotList (char*)NULL
7604 * Machine/OS name selection pattern
7606 #define apzStrict_Ansi_NotMachs (const char**)NULL
7609 * content selection pattern - do fix if pattern found
7611 tSCC zStrict_Ansi_NotSelect0[] =
7612 "^([ \t]*#[ \t]*if.*)(!__STDC__|__STDC__[ \t]*==[ \t]*0|__STDC__[ \t]*!=[ \t]*1|__STDC__[ \t]*-[ \t]*0[ \t]*==[ \t]*0)";
7615 * content bypass pattern - skip fix if pattern found
7617 tSCC zStrict_Ansi_NotBypass0[] =
7618 "GNU and MIPS C compilers define __STDC__ differently";
7619 tSCC zStrict_Ansi_NotBypass1[] =
7620 "__SCO_VERSION__.*__STDC__ != 1";
7623 * perform the C function call test
7625 tSCC zStrict_Ansi_NotFTst0[] = "stdc_0_in_system_headers";
7627 #define STRICT_ANSI_NOT_TEST_CT 4
7628 static tTestDesc aStrict_Ansi_NotTests[] = {
7629 { TT_FUNCTION, zStrict_Ansi_NotFTst0, 0 /* unused */ },
7630 { TT_NEGREP, zStrict_Ansi_NotBypass0, (regex_t*)NULL },
7631 { TT_NEGREP, zStrict_Ansi_NotBypass1, (regex_t*)NULL },
7632 { TT_EGREP, zStrict_Ansi_NotSelect0, (regex_t*)NULL }, };
7635 * Fix Command Arguments for Strict_Ansi_Not
7637 static const char* apzStrict_Ansi_NotPatch[] = {
7639 "%1 !defined(__STRICT_ANSI__)",
7642 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7644 * Description of Strict_Ansi_Not_Ctd fix
7646 tSCC zStrict_Ansi_Not_CtdName[] =
7647 "strict_ansi_not_ctd";
7650 * File name selection pattern
7652 tSCC zStrict_Ansi_Not_CtdList[] =
7653 "math.h\0limits.h\0stdio.h\0signal.h\0stdlib.h\0sys/signal.h\0time.h\0";
7655 * Machine/OS name selection pattern
7657 #define apzStrict_Ansi_Not_CtdMachs (const char**)NULL
7660 * content selection pattern - do fix if pattern found
7662 tSCC zStrict_Ansi_Not_CtdSelect0[] =
7663 "^([ \t]*(\\(|&&|\\|\\|)([ \t(]*!*[ \t]*defined\\([a-zA-Z_0-9]+\\)[ \t]*[|&][|&])*[ \t(]*)(__STDC__[ \t]*(|-[ \t]*0[ \t]*)==[ \t]*0)";
7666 * perform the C function call test
7668 tSCC zStrict_Ansi_Not_CtdFTst0[] = "stdc_0_in_system_headers";
7670 #define STRICT_ANSI_NOT_CTD_TEST_CT 2
7671 static tTestDesc aStrict_Ansi_Not_CtdTests[] = {
7672 { TT_FUNCTION, zStrict_Ansi_Not_CtdFTst0, 0 /* unused */ },
7673 { TT_EGREP, zStrict_Ansi_Not_CtdSelect0, (regex_t*)NULL }, };
7676 * Fix Command Arguments for Strict_Ansi_Not_Ctd
7678 static const char* apzStrict_Ansi_Not_CtdPatch[] = {
7680 "%1 !defined(__STRICT_ANSI__)",
7683 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7685 * Description of Strict_Ansi_Only fix
7687 tSCC zStrict_Ansi_OnlyName[] =
7691 * File name selection pattern
7693 #define zStrict_Ansi_OnlyList (char*)NULL
7695 * Machine/OS name selection pattern
7697 #define apzStrict_Ansi_OnlyMachs (const char**)NULL
7700 * content selection pattern - do fix if pattern found
7702 tSCC zStrict_Ansi_OnlySelect0[] =
7703 "^([ \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)";
7706 * perform the C function call test
7708 tSCC zStrict_Ansi_OnlyFTst0[] = "stdc_0_in_system_headers";
7710 #define STRICT_ANSI_ONLY_TEST_CT 2
7711 static tTestDesc aStrict_Ansi_OnlyTests[] = {
7712 { TT_FUNCTION, zStrict_Ansi_OnlyFTst0, 0 /* unused */ },
7713 { TT_EGREP, zStrict_Ansi_OnlySelect0, (regex_t*)NULL }, };
7716 * Fix Command Arguments for Strict_Ansi_Only
7718 static const char* apzStrict_Ansi_OnlyPatch[] = {
7720 "%1 defined(__STRICT_ANSI__)",
7723 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7725 * Description of Struct_File fix
7727 tSCC zStruct_FileName[] =
7731 * File name selection pattern
7733 tSCC zStruct_FileList[] =
7736 * Machine/OS name selection pattern
7738 #define apzStruct_FileMachs (const char**)NULL
7741 * content selection pattern - do fix if pattern found
7743 tSCC zStruct_FileSelect0[] =
7744 "^.*xdrstdio_create.*struct __file_s";
7746 #define STRUCT_FILE_TEST_CT 1
7747 static tTestDesc aStruct_FileTests[] = {
7748 { TT_EGREP, zStruct_FileSelect0, (regex_t*)NULL }, };
7751 * Fix Command Arguments for Struct_File
7753 static const char* apzStruct_FilePatch[] = {
7755 "struct __file_s;\n\
7759 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7761 * Description of Struct_Sockaddr fix
7763 tSCC zStruct_SockaddrName[] =
7767 * File name selection pattern
7769 tSCC zStruct_SockaddrList[] =
7772 * Machine/OS name selection pattern
7774 #define apzStruct_SockaddrMachs (const char**)NULL
7777 * content selection pattern - do fix if pattern found
7779 tSCC zStruct_SockaddrSelect0[] =
7780 "^.*authdes_create.*struct sockaddr[^_]";
7783 * content bypass pattern - skip fix if pattern found
7785 tSCC zStruct_SockaddrBypass0[] =
7787 tSCC zStruct_SockaddrBypass1[] =
7788 "struct sockaddr;\n";
7790 #define STRUCT_SOCKADDR_TEST_CT 3
7791 static tTestDesc aStruct_SockaddrTests[] = {
7792 { TT_NEGREP, zStruct_SockaddrBypass0, (regex_t*)NULL },
7793 { TT_NEGREP, zStruct_SockaddrBypass1, (regex_t*)NULL },
7794 { TT_EGREP, zStruct_SockaddrSelect0, (regex_t*)NULL }, };
7797 * Fix Command Arguments for Struct_Sockaddr
7799 static const char* apzStruct_SockaddrPatch[] = {
7801 "struct sockaddr;\n\
7805 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7807 * Description of Sun_Auth_Proto fix
7809 tSCC zSun_Auth_ProtoName[] =
7813 * File name selection pattern
7815 tSCC zSun_Auth_ProtoList[] =
7816 "rpc/auth.h\0rpc/clnt.h\0rpc/svc.h\0rpc/xdr.h\0";
7818 * Machine/OS name selection pattern
7820 #define apzSun_Auth_ProtoMachs (const char**)NULL
7823 * content selection pattern - do fix if pattern found
7825 tSCC zSun_Auth_ProtoSelect0[] =
7826 "\\(\\*[a-z][a-z_]*\\)\\(\\)";
7829 * content bypass pattern - skip fix if pattern found
7831 tSCC zSun_Auth_ProtoBypass0[] =
7834 #define SUN_AUTH_PROTO_TEST_CT 2
7835 static tTestDesc aSun_Auth_ProtoTests[] = {
7836 { TT_NEGREP, zSun_Auth_ProtoBypass0, (regex_t*)NULL },
7837 { TT_EGREP, zSun_Auth_ProtoSelect0, (regex_t*)NULL }, };
7840 * Fix Command Arguments for Sun_Auth_Proto
7842 static const char* apzSun_Auth_ProtoPatch[] = {
7844 "#ifdef __cplusplus\n\
7849 "(.*\\(\\*[a-z][a-z_]*\\))\\(\\);(.*)",
7852 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7854 * Description of Sun_Bogus_Ifdef fix
7856 tSCC zSun_Bogus_IfdefName[] =
7860 * File name selection pattern
7862 tSCC zSun_Bogus_IfdefList[] =
7863 "hsfs/hsfs_spec.h\0hsfs/iso_spec.h\0";
7865 * Machine/OS name selection pattern
7867 #define apzSun_Bogus_IfdefMachs (const char**)NULL
7870 * content selection pattern - do fix if pattern found
7872 tSCC zSun_Bogus_IfdefSelect0[] =
7873 "#ifdef(.*\\|\\|.*)";
7875 #define SUN_BOGUS_IFDEF_TEST_CT 1
7876 static tTestDesc aSun_Bogus_IfdefTests[] = {
7877 { TT_EGREP, zSun_Bogus_IfdefSelect0, (regex_t*)NULL }, };
7880 * Fix Command Arguments for Sun_Bogus_Ifdef
7882 static const char* apzSun_Bogus_IfdefPatch[] = {
7887 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7889 * Description of Sun_Catmacro fix
7891 tSCC zSun_CatmacroName[] =
7895 * File name selection pattern
7897 tSCC zSun_CatmacroList[] =
7898 "pixrect/memvar.h\0";
7900 * Machine/OS name selection pattern
7902 #define apzSun_CatmacroMachs (const char**)NULL
7905 * content selection pattern - do fix if pattern found
7907 tSCC zSun_CatmacroSelect0[] =
7908 "^#define[ \t]+CAT\\(a,b\\).*";
7910 #define SUN_CATMACRO_TEST_CT 1
7911 static tTestDesc aSun_CatmacroTests[] = {
7912 { TT_EGREP, zSun_CatmacroSelect0, (regex_t*)NULL }, };
7915 * Fix Command Arguments for Sun_Catmacro
7917 static const char* apzSun_CatmacroPatch[] = {
7920 # define CAT(a,b) a##b\n\
7926 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7928 * Description of Sun_Malloc fix
7930 tSCC zSun_MallocName[] =
7934 * File name selection pattern
7936 tSCC zSun_MallocList[] =
7939 * Machine/OS name selection pattern
7941 #define apzSun_MallocMachs (const char**)NULL
7944 * content bypass pattern - skip fix if pattern found
7946 tSCC zSun_MallocBypass0[] =
7947 "_CLASSIC_ANSI_TYPES";
7949 #define SUN_MALLOC_TEST_CT 1
7950 static tTestDesc aSun_MallocTests[] = {
7951 { TT_NEGREP, zSun_MallocBypass0, (regex_t*)NULL }, };
7954 * Fix Command Arguments for Sun_Malloc
7956 static const char* apzSun_MallocPatch[] = { sed_cmd_z,
7957 "-e", "s/typedef[ \t]char \\*\tmalloc_t/typedef void \\*\tmalloc_t/g",
7958 "-e", "s/int[ \t][ \t]*free/void\tfree/g",
7959 "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
7960 "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
7961 "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
7964 /* * * * * * * * * * * * * * * * * * * * * * * * * *
7966 * Description of Sun_Rusers_Semi fix
7968 tSCC zSun_Rusers_SemiName[] =
7972 * File name selection pattern
7974 tSCC zSun_Rusers_SemiList[] =
7975 "rpcsvc/rusers.h\0";
7977 * Machine/OS name selection pattern
7979 #define apzSun_Rusers_SemiMachs (const char**)NULL
7982 * content selection pattern - do fix if pattern found
7984 tSCC zSun_Rusers_SemiSelect0[] =
7987 #define SUN_RUSERS_SEMI_TEST_CT 1
7988 static tTestDesc aSun_Rusers_SemiTests[] = {
7989 { TT_EGREP, zSun_Rusers_SemiSelect0, (regex_t*)NULL }, };
7992 * Fix Command Arguments for Sun_Rusers_Semi
7994 static const char* apzSun_Rusers_SemiPatch[] = { sed_cmd_z,
7995 "-e", "/^struct/,/^};/s/_cnt$/_cnt;/",
7998 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8000 * Description of Sun_Signal fix
8002 tSCC zSun_SignalName[] =
8006 * File name selection pattern
8008 tSCC zSun_SignalList[] =
8009 "sys/signal.h\0signal.h\0";
8011 * Machine/OS name selection pattern
8013 #define apzSun_SignalMachs (const char**)NULL
8016 * content selection pattern - do fix if pattern found
8018 tSCC zSun_SignalSelect0[] =
8019 "^void\t\\(\\*signal\\(\\)\\)\\(\\);.*";
8021 #define SUN_SIGNAL_TEST_CT 1
8022 static tTestDesc aSun_SignalTests[] = {
8023 { TT_EGREP, zSun_SignalSelect0, (regex_t*)NULL }, };
8026 * Fix Command Arguments for Sun_Signal
8028 static const char* apzSun_SignalPatch[] = {
8030 "#ifdef __cplusplus\n\
8031 void\t(*signal(...))(...);\n\
8037 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8039 * Description of Sunos_Strlen fix
8041 tSCC zSunos_StrlenName[] =
8045 * File name selection pattern
8047 tSCC zSunos_StrlenList[] =
8050 * Machine/OS name selection pattern
8052 #define apzSunos_StrlenMachs (const char**)NULL
8055 * content selection pattern - do fix if pattern found
8057 tSCC zSunos_StrlenSelect0[] =
8058 "int[ \t]*strlen\\(\\);(.*)";
8060 #define SUNOS_STRLEN_TEST_CT 1
8061 static tTestDesc aSunos_StrlenTests[] = {
8062 { TT_EGREP, zSunos_StrlenSelect0, (regex_t*)NULL }, };
8065 * Fix Command Arguments for Sunos_Strlen
8067 static const char* apzSunos_StrlenPatch[] = {
8069 "__SIZE_TYPE__ strlen();%1",
8072 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8074 * Description of Svr4_Disable_Opt fix
8076 tSCC zSvr4_Disable_OptName[] =
8080 * File name selection pattern
8082 tSCC zSvr4_Disable_OptList[] =
8085 * Machine/OS name selection pattern
8087 #define apzSvr4_Disable_OptMachs (const char**)NULL
8090 * content selection pattern - do fix if pattern found
8092 tSCC zSvr4_Disable_OptSelect0[] =
8093 "#define.*__std_hdr_";
8095 #define SVR4_DISABLE_OPT_TEST_CT 1
8096 static tTestDesc aSvr4_Disable_OptTests[] = {
8097 { TT_EGREP, zSvr4_Disable_OptSelect0, (regex_t*)NULL }, };
8100 * Fix Command Arguments for Svr4_Disable_Opt
8102 static const char* apzSvr4_Disable_OptPatch[] = { sed_cmd_z,
8103 "-e", "/#define.*__std_hdr_/d",
8106 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8108 * Description of Svr4_Getcwd fix
8110 tSCC zSvr4_GetcwdName[] =
8114 * File name selection pattern
8116 tSCC zSvr4_GetcwdList[] =
8117 "stdlib.h\0unistd.h\0prototypes.h\0";
8119 * Machine/OS name selection pattern
8121 #define apzSvr4_GetcwdMachs (const char**)NULL
8124 * content selection pattern - do fix if pattern found
8126 tSCC zSvr4_GetcwdSelect0[] =
8127 "getcwd\\(char \\*, int\\)";
8129 #define SVR4_GETCWD_TEST_CT 1
8130 static tTestDesc aSvr4_GetcwdTests[] = {
8131 { TT_EGREP, zSvr4_GetcwdSelect0, (regex_t*)NULL }, };
8134 * Fix Command Arguments for Svr4_Getcwd
8136 static const char* apzSvr4_GetcwdPatch[] = {
8138 "getcwd(char *, size_t)",
8141 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8143 * Description of Svr4_Profil fix
8145 tSCC zSvr4_ProfilName[] =
8149 * File name selection pattern
8151 tSCC zSvr4_ProfilList[] =
8152 "stdlib.h\0unistd.h\0";
8154 * Machine/OS name selection pattern
8156 #define apzSvr4_ProfilMachs (const char**)NULL
8159 * content selection pattern - do fix if pattern found
8161 tSCC zSvr4_ProfilSelect0[] =
8162 "profil\\(unsigned short \\*, unsigned int, unsigned int, unsigned int\\)";
8165 * content bypass pattern - skip fix if pattern found
8167 tSCC zSvr4_ProfilBypass0[] =
8170 #define SVR4_PROFIL_TEST_CT 2
8171 static tTestDesc aSvr4_ProfilTests[] = {
8172 { TT_NEGREP, zSvr4_ProfilBypass0, (regex_t*)NULL },
8173 { TT_EGREP, zSvr4_ProfilSelect0, (regex_t*)NULL }, };
8176 * Fix Command Arguments for Svr4_Profil
8178 static const char* apzSvr4_ProfilPatch[] = {
8180 "profil(unsigned short *, size_t, int, unsigned int)",
8183 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8185 * Description of Svr4_Sighandler_Type fix
8187 tSCC zSvr4_Sighandler_TypeName[] =
8188 "svr4_sighandler_type";
8191 * File name selection pattern
8193 tSCC zSvr4_Sighandler_TypeList[] =
8196 * Machine/OS name selection pattern
8198 #define apzSvr4_Sighandler_TypeMachs (const char**)NULL
8201 * content selection pattern - do fix if pattern found
8203 tSCC zSvr4_Sighandler_TypeSelect0[] =
8204 "void *\\(\\*\\)\\(\\)";
8206 #define SVR4_SIGHANDLER_TYPE_TEST_CT 1
8207 static tTestDesc aSvr4_Sighandler_TypeTests[] = {
8208 { TT_EGREP, zSvr4_Sighandler_TypeSelect0, (regex_t*)NULL }, };
8211 * Fix Command Arguments for Svr4_Sighandler_Type
8213 static const char* apzSvr4_Sighandler_TypePatch[] = {
8218 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8220 * Description of Svr4_Undeclared_Getrnge fix
8222 tSCC zSvr4_Undeclared_GetrngeName[] =
8223 "svr4_undeclared_getrnge";
8226 * File name selection pattern
8228 tSCC zSvr4_Undeclared_GetrngeList[] =
8231 * Machine/OS name selection pattern
8233 #define apzSvr4_Undeclared_GetrngeMachs (const char**)NULL
8236 * content selection pattern - do fix if pattern found
8238 tSCC zSvr4_Undeclared_GetrngeSelect0[] =
8242 * content bypass pattern - skip fix if pattern found
8244 tSCC zSvr4_Undeclared_GetrngeBypass0[] =
8245 "static void getrnge";
8247 #define SVR4_UNDECLARED_GETRNGE_TEST_CT 2
8248 static tTestDesc aSvr4_Undeclared_GetrngeTests[] = {
8249 { TT_NEGREP, zSvr4_Undeclared_GetrngeBypass0, (regex_t*)NULL },
8250 { TT_EGREP, zSvr4_Undeclared_GetrngeSelect0, (regex_t*)NULL }, };
8253 * Fix Command Arguments for Svr4_Undeclared_Getrnge
8255 static const char* apzSvr4_Undeclared_GetrngePatch[] = {
8258 static int getrnge ();",
8259 "^static int[ \t]+size;",
8262 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8264 * Description of Sysv68_String fix
8266 tSCC zSysv68_StringName[] =
8270 * File name selection pattern
8272 tSCC zSysv68_StringList[] =
8273 "testing.h\0string.h\0";
8275 * Machine/OS name selection pattern
8277 #define apzSysv68_StringMachs (const char**)NULL
8280 * content bypass pattern - skip fix if pattern found
8282 tSCC zSysv68_StringBypass0[] =
8283 "_CLASSIC_ANSI_TYPES";
8285 #define SYSV68_STRING_TEST_CT 1
8286 static tTestDesc aSysv68_StringTests[] = {
8287 { TT_NEGREP, zSysv68_StringBypass0, (regex_t*)NULL }, };
8290 * Fix Command Arguments for Sysv68_String
8292 static const char* apzSysv68_StringPatch[] = { sed_cmd_z,
8293 "-e", "s/extern[ \t]*int[ \t]*strlen();/extern unsigned int strlen();/",
8294 "-e", "s/extern[ \t]*int[ \t]*ffs[ \t]*(long);/extern int ffs(int);/",
8295 "-e", "s/strdup(char \\*s1);/strdup(const char *s1);/",
8296 "-e", "/^extern char$/N",
8297 "-e", "s/^extern char\\(\\n\t\\*memccpy(),\\)$/extern void\\1/",
8298 "-e", "/^extern int$/N",
8299 "-e", "s/^extern int\\(\\n\tstrlen(),\\)/extern size_t\\1/",
8300 "-e", "/^\tstrncmp(),$/N",
8301 "-e", "s/^\\(\tstrncmp()\\),\\n\\(\tstrlen(),\\)$/\\1;\\\n\
8302 extern unsigned int\\\n\
8306 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8308 * Description of Sysz_Stdlib_For_Sun fix
8310 tSCC zSysz_Stdlib_For_SunName[] =
8311 "sysz_stdlib_for_sun";
8314 * File name selection pattern
8316 tSCC zSysz_Stdlib_For_SunList[] =
8319 * Machine/OS name selection pattern
8321 #define apzSysz_Stdlib_For_SunMachs (const char**)NULL
8324 * content selection pattern - do fix if pattern found
8326 tSCC zSysz_Stdlib_For_SunSelect0[] =
8327 "char[ \t]*\\*[ \t]*(calloc|malloc|realloc|bsearch)[ \t]*\\(";
8330 * content bypass pattern - skip fix if pattern found
8332 tSCC zSysz_Stdlib_For_SunBypass0[] =
8333 "_CLASSIC_ANSI_TYPES";
8335 #define SYSZ_STDLIB_FOR_SUN_TEST_CT 2
8336 static tTestDesc aSysz_Stdlib_For_SunTests[] = {
8337 { TT_NEGREP, zSysz_Stdlib_For_SunBypass0, (regex_t*)NULL },
8338 { TT_EGREP, zSysz_Stdlib_For_SunSelect0, (regex_t*)NULL }, };
8341 * Fix Command Arguments for Sysz_Stdlib_For_Sun
8343 static const char* apzSysz_Stdlib_For_SunPatch[] = {
8348 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8350 * Description of Thread_Keyword fix
8352 tSCC zThread_KeywordName[] =
8356 * File name selection pattern
8358 tSCC zThread_KeywordList[] =
8359 "pthread.h\0bits/sigthread.h\0";
8361 * Machine/OS name selection pattern
8363 #define apzThread_KeywordMachs (const char**)NULL
8366 * content selection pattern - do fix if pattern found
8368 tSCC zThread_KeywordSelect0[] =
8369 "([* ])__thread([,)])";
8371 #define THREAD_KEYWORD_TEST_CT 1
8372 static tTestDesc aThread_KeywordTests[] = {
8373 { TT_EGREP, zThread_KeywordSelect0, (regex_t*)NULL }, };
8376 * Fix Command Arguments for Thread_Keyword
8378 static const char* apzThread_KeywordPatch[] = {
8383 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8385 * Description of Tinfo_Cplusplus fix
8387 tSCC zTinfo_CplusplusName[] =
8391 * File name selection pattern
8393 tSCC zTinfo_CplusplusList[] =
8396 * Machine/OS name selection pattern
8398 #define apzTinfo_CplusplusMachs (const char**)NULL
8401 * content selection pattern - do fix if pattern found
8403 tSCC zTinfo_CplusplusSelect0[] =
8406 #define TINFO_CPLUSPLUS_TEST_CT 1
8407 static tTestDesc aTinfo_CplusplusTests[] = {
8408 { TT_EGREP, zTinfo_CplusplusSelect0, (regex_t*)NULL }, };
8411 * Fix Command Arguments for Tinfo_Cplusplus
8413 static const char* apzTinfo_CplusplusPatch[] = {
8418 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8420 * Description of Ultrix_Const fix
8422 tSCC zUltrix_ConstName[] =
8426 * File name selection pattern
8428 tSCC zUltrix_ConstList[] =
8431 * Machine/OS name selection pattern
8433 #define apzUltrix_ConstMachs (const char**)NULL
8436 * content selection pattern - do fix if pattern found
8438 tSCC zUltrix_ConstSelect0[] =
8439 "perror\\( char \\*";
8441 #define ULTRIX_CONST_TEST_CT 1
8442 static tTestDesc aUltrix_ConstTests[] = {
8443 { TT_EGREP, zUltrix_ConstSelect0, (regex_t*)NULL }, };
8446 * Fix Command Arguments for Ultrix_Const
8448 static const char* apzUltrix_ConstPatch[] = {
8451 "([ \t*](perror|fputs|fwrite|scanf|fscanf)\\(.*)[ \t]+(char|void) \\*__",
8454 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8456 * Description of Ultrix_Const2 fix
8458 tSCC zUltrix_Const2Name[] =
8462 * File name selection pattern
8464 tSCC zUltrix_Const2List[] =
8467 * Machine/OS name selection pattern
8469 #define apzUltrix_Const2Machs (const char**)NULL
8472 * content selection pattern - do fix if pattern found
8474 tSCC zUltrix_Const2Select0[] =
8475 "\\*fopen\\( char \\*";
8477 #define ULTRIX_CONST2_TEST_CT 1
8478 static tTestDesc aUltrix_Const2Tests[] = {
8479 { TT_EGREP, zUltrix_Const2Select0, (regex_t*)NULL }, };
8482 * Fix Command Arguments for Ultrix_Const2
8484 static const char* apzUltrix_Const2Patch[] = {
8486 "%1( const char *%3, const char *",
8487 "([ \t*](fopen|sscanf|popen|tempnam))\\([ \t]*char[ \t]*\\*([^,]*),[ \t]*char[ \t]*\\*[ \t]*",
8490 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8492 * Description of Va_I960_Macro fix
8494 tSCC zVa_I960_MacroName[] =
8498 * File name selection pattern
8500 tSCC zVa_I960_MacroList[] =
8501 "arch/i960/archI960.h\0";
8503 * Machine/OS name selection pattern
8505 #define apzVa_I960_MacroMachs (const char**)NULL
8508 * content selection pattern - do fix if pattern found
8510 tSCC zVa_I960_MacroSelect0[] =
8511 "__(vsiz|vali|vpad|alignof__)";
8513 #define VA_I960_MACRO_TEST_CT 1
8514 static tTestDesc aVa_I960_MacroTests[] = {
8515 { TT_EGREP, zVa_I960_MacroSelect0, (regex_t*)NULL }, };
8518 * Fix Command Arguments for Va_I960_Macro
8520 static const char* apzVa_I960_MacroPatch[] = {
8525 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8527 * Description of Vms_Define_Can_Use_Extern_Prefix fix
8529 tSCC zVms_Define_Can_Use_Extern_PrefixName[] =
8530 "vms_define_can_use_extern_prefix";
8533 * File name selection pattern
8535 tSCC zVms_Define_Can_Use_Extern_PrefixList[] =
8536 "rtldef/decc$types.h\0";
8538 * Machine/OS name selection pattern
8540 tSCC* apzVms_Define_Can_Use_Extern_PrefixMachs[] = {
8542 (const char*)NULL };
8545 * content selection pattern - do fix if pattern found
8547 tSCC zVms_Define_Can_Use_Extern_PrefixSelect0[] =
8549 #[ \t]*if defined\\(__DECCXX\\)\n\
8550 #[ \t]*define __CAN_USE_EXTERN_PREFIX 1\n";
8552 #define VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT 1
8553 static tTestDesc aVms_Define_Can_Use_Extern_PrefixTests[] = {
8554 { TT_EGREP, zVms_Define_Can_Use_Extern_PrefixSelect0, (regex_t*)NULL }, };
8557 * Fix Command Arguments for Vms_Define_Can_Use_Extern_Prefix
8559 static const char* apzVms_Define_Can_Use_Extern_PrefixPatch[] = {
8561 "%0# elif defined (__GNUC__)\n\
8562 #\tdefine __CAN_USE_EXTERN_PREFIX 1\n",
8565 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8567 * Description of Vms_Use_Pragma_Extern_Model fix
8569 tSCC zVms_Use_Pragma_Extern_ModelName[] =
8570 "vms_use_pragma_extern_model";
8573 * File name selection pattern
8575 #define zVms_Use_Pragma_Extern_ModelList (char*)NULL
8577 * Machine/OS name selection pattern
8579 tSCC* apzVms_Use_Pragma_Extern_ModelMachs[] = {
8581 (const char*)NULL };
8584 * content selection pattern - do fix if pattern found
8586 tSCC zVms_Use_Pragma_Extern_ModelSelect0[] =
8587 "#if defined\\(__DECC\\) \\|\\| defined\\(__DECCXX\\)\n\
8588 # pragma extern_model __save\n";
8590 #define VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT 1
8591 static tTestDesc aVms_Use_Pragma_Extern_ModelTests[] = {
8592 { TT_EGREP, zVms_Use_Pragma_Extern_ModelSelect0, (regex_t*)NULL }, };
8595 * Fix Command Arguments for Vms_Use_Pragma_Extern_Model
8597 static const char* apzVms_Use_Pragma_Extern_ModelPatch[] = {
8599 "#if defined(__DECC) || defined(__DECCXX) || defined(__GNUC__)\n\
8600 # pragma extern_model __save\n",
8603 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8605 * Description of Vms_Disable_Decc_String_Builtins fix
8607 tSCC zVms_Disable_Decc_String_BuiltinsName[] =
8608 "vms_disable_decc_string_builtins";
8611 * File name selection pattern
8613 tSCC zVms_Disable_Decc_String_BuiltinsList[] =
8614 "rtldef/string.h\0";
8616 * Machine/OS name selection pattern
8618 tSCC* apzVms_Disable_Decc_String_BuiltinsMachs[] = {
8620 (const char*)NULL };
8623 * content selection pattern - do fix if pattern found
8625 tSCC zVms_Disable_Decc_String_BuiltinsSelect0[] =
8626 "#if !defined\\(__VAX\\)\n";
8628 #define VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT 1
8629 static tTestDesc aVms_Disable_Decc_String_BuiltinsTests[] = {
8630 { TT_EGREP, zVms_Disable_Decc_String_BuiltinsSelect0, (regex_t*)NULL }, };
8633 * Fix Command Arguments for Vms_Disable_Decc_String_Builtins
8635 static const char* apzVms_Disable_Decc_String_BuiltinsPatch[] = {
8637 "#if !defined(__VAX) && !defined(__GNUC__)\n",
8640 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8642 * Description of Void_Null fix
8644 tSCC zVoid_NullName[] =
8648 * File name selection pattern
8650 tSCC zVoid_NullList[] =
8651 "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";
8653 * Machine/OS name selection pattern
8655 #define apzVoid_NullMachs (const char**)NULL
8658 * content selection pattern - do fix if pattern found
8660 tSCC zVoid_NullSelect0[] =
8661 "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
8664 * content bypass pattern - skip fix if pattern found
8666 tSCC zVoid_NullBypass0[] =
8668 tSCC zVoid_NullBypass1[] =
8671 #define VOID_NULL_TEST_CT 3
8672 static tTestDesc aVoid_NullTests[] = {
8673 { TT_NEGREP, zVoid_NullBypass0, (regex_t*)NULL },
8674 { TT_NEGREP, zVoid_NullBypass1, (regex_t*)NULL },
8675 { TT_EGREP, zVoid_NullSelect0, (regex_t*)NULL }, };
8678 * Fix Command Arguments for Void_Null
8680 static const char* apzVoid_NullPatch[] = {
8685 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8687 * Description of Vxworks_Gcc_Problem fix
8689 tSCC zVxworks_Gcc_ProblemName[] =
8690 "vxworks_gcc_problem";
8693 * File name selection pattern
8695 tSCC zVxworks_Gcc_ProblemList[] =
8696 "types/vxTypesBase.h\0";
8698 * Machine/OS name selection pattern
8700 #define apzVxworks_Gcc_ProblemMachs (const char**)NULL
8703 * content selection pattern - do fix if pattern found
8705 tSCC zVxworks_Gcc_ProblemSelect0[] =
8706 "__GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__";
8708 #define VXWORKS_GCC_PROBLEM_TEST_CT 1
8709 static tTestDesc aVxworks_Gcc_ProblemTests[] = {
8710 { TT_EGREP, zVxworks_Gcc_ProblemSelect0, (regex_t*)NULL }, };
8713 * Fix Command Arguments for Vxworks_Gcc_Problem
8715 static const char* apzVxworks_Gcc_ProblemPatch[] = { sed_cmd_z,
8716 "-e", "s/#ifdef __GNUC_TYPEOF_FEATURE_BROKEN_USE_DEFAULT_UNTIL_FIXED__/#if 1/",
8717 "-e", "/[ \t]size_t/i\\\n\
8718 #ifndef _GCC_SIZE_T\\\n\
8719 #define _GCC_SIZE_T\n",
8720 "-e", "/[ \t]size_t/a\\\n\
8722 "-e", "/[ \t]ptrdiff_t/i\\\n\
8723 #ifndef _GCC_PTRDIFF_T\\\n\
8724 #define _GCC_PTRDIFF_T\n",
8725 "-e", "/[ \t]ptrdiff_t/a\\\n\
8727 "-e", "/[ \t]wchar_t/i\\\n\
8728 #ifndef _GCC_WCHAR_T\\\n\
8729 #define _GCC_WCHAR_T\n",
8730 "-e", "/[ \t]wchar_t/a\\\n\
8734 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8736 * Description of Vxworks_Needs_Vxtypes fix
8738 tSCC zVxworks_Needs_VxtypesName[] =
8739 "vxworks_needs_vxtypes";
8742 * File name selection pattern
8744 tSCC zVxworks_Needs_VxtypesList[] =
8747 * Machine/OS name selection pattern
8749 #define apzVxworks_Needs_VxtypesMachs (const char**)NULL
8752 * content selection pattern - do fix if pattern found
8754 tSCC zVxworks_Needs_VxtypesSelect0[] =
8755 "uint_t([ \t]+_clocks_per_sec)";
8757 #define VXWORKS_NEEDS_VXTYPES_TEST_CT 1
8758 static tTestDesc aVxworks_Needs_VxtypesTests[] = {
8759 { TT_EGREP, zVxworks_Needs_VxtypesSelect0, (regex_t*)NULL }, };
8762 * Fix Command Arguments for Vxworks_Needs_Vxtypes
8764 static const char* apzVxworks_Needs_VxtypesPatch[] = {
8769 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8771 * Description of Vxworks_Needs_Vxworks fix
8773 tSCC zVxworks_Needs_VxworksName[] =
8774 "vxworks_needs_vxworks";
8777 * File name selection pattern
8779 tSCC zVxworks_Needs_VxworksList[] =
8782 * Machine/OS name selection pattern
8784 #define apzVxworks_Needs_VxworksMachs (const char**)NULL
8787 * content selection pattern - do fix if pattern found
8789 tSCC zVxworks_Needs_VxworksSelect0[] =
8790 "#[ \t]define[ \t]+__INCstath";
8793 * perform the 'test' shell command - do fix on success
8795 tSCC zVxworks_Needs_VxworksTest0[] =
8796 " -r types/vxTypesOld.h";
8797 tSCC zVxworks_Needs_VxworksTest1[] =
8798 " -n \"`egrep '#include' $file`\"";
8799 tSCC zVxworks_Needs_VxworksTest2[] =
8800 " -n \"`egrep ULONG $file`\"";
8802 #define VXWORKS_NEEDS_VXWORKS_TEST_CT 4
8803 static tTestDesc aVxworks_Needs_VxworksTests[] = {
8804 { TT_TEST, zVxworks_Needs_VxworksTest0, 0 /* unused */ },
8805 { TT_TEST, zVxworks_Needs_VxworksTest1, 0 /* unused */ },
8806 { TT_TEST, zVxworks_Needs_VxworksTest2, 0 /* unused */ },
8807 { TT_EGREP, zVxworks_Needs_VxworksSelect0, (regex_t*)NULL }, };
8810 * Fix Command Arguments for Vxworks_Needs_Vxworks
8812 static const char* apzVxworks_Needs_VxworksPatch[] = { sed_cmd_z,
8813 "-e", "/#[ \t]define[ \t][ \t]*__INCstath/a\\\n\
8814 #include <types/vxTypesOld.h>\n",
8817 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8819 * Description of Vxworks_Time fix
8821 tSCC zVxworks_TimeName[] =
8825 * File name selection pattern
8827 tSCC zVxworks_TimeList[] =
8830 * Machine/OS name selection pattern
8832 #define apzVxworks_TimeMachs (const char**)NULL
8835 * content selection pattern - do fix if pattern found
8837 tSCC zVxworks_TimeSelect0[] =
8838 "#[ \t]*define[ \t]+VOIDFUNCPTR[ \t].*";
8841 * perform the 'test' shell command - do fix on success
8843 tSCC zVxworks_TimeTest0[] =
8846 #define VXWORKS_TIME_TEST_CT 2
8847 static tTestDesc aVxworks_TimeTests[] = {
8848 { TT_TEST, zVxworks_TimeTest0, 0 /* unused */ },
8849 { TT_EGREP, zVxworks_TimeSelect0, (regex_t*)NULL }, };
8852 * Fix Command Arguments for Vxworks_Time
8854 static const char* apzVxworks_TimePatch[] = {
8856 "#ifndef __gcc_VOIDFUNCPTR_defined\n\
8857 #ifdef __cplusplus\n\
8858 typedef void (*__gcc_VOIDFUNCPTR) (...);\n\
8860 typedef void (*__gcc_VOIDFUNCPTR) ();\n\
8862 #define __gcc_VOIDFUNCPTR_defined\n\
8864 #define VOIDFUNCPTR __gcc_VOIDFUNCPTR",
8867 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8869 * Description of X11_Class fix
8871 tSCC zX11_ClassName[] =
8875 * File name selection pattern
8877 tSCC zX11_ClassList[] =
8880 * Machine/OS name selection pattern
8882 #define apzX11_ClassMachs (const char**)NULL
8885 * content selection pattern - do fix if pattern found
8887 tSCC zX11_ClassSelect0[] =
8888 "^([ \t]*char \\*)class;(.*)";
8891 * content bypass pattern - skip fix if pattern found
8893 tSCC zX11_ClassBypass0[] =
8896 #define X11_CLASS_TEST_CT 2
8897 static tTestDesc aX11_ClassTests[] = {
8898 { TT_NEGREP, zX11_ClassBypass0, (regex_t*)NULL },
8899 { TT_EGREP, zX11_ClassSelect0, (regex_t*)NULL }, };
8902 * Fix Command Arguments for X11_Class
8904 static const char* apzX11_ClassPatch[] = {
8906 "#ifdef __cplusplus\n\
8913 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8915 * Description of X11_Class_Usage fix
8917 tSCC zX11_Class_UsageName[] =
8921 * File name selection pattern
8923 tSCC zX11_Class_UsageList[] =
8924 "Xm/BaseClassI.h\0";
8926 * Machine/OS name selection pattern
8928 #define apzX11_Class_UsageMachs (const char**)NULL
8931 * content selection pattern - do fix if pattern found
8933 tSCC zX11_Class_UsageSelect0[] =
8937 * content bypass pattern - skip fix if pattern found
8939 tSCC zX11_Class_UsageBypass0[] =
8942 #define X11_CLASS_USAGE_TEST_CT 2
8943 static tTestDesc aX11_Class_UsageTests[] = {
8944 { TT_NEGREP, zX11_Class_UsageBypass0, (regex_t*)NULL },
8945 { TT_EGREP, zX11_Class_UsageSelect0, (regex_t*)NULL }, };
8948 * Fix Command Arguments for X11_Class_Usage
8950 static const char* apzX11_Class_UsagePatch[] = {
8955 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8957 * Description of X11_New fix
8959 tSCC zX11_NewName[] =
8963 * File name selection pattern
8965 tSCC zX11_NewList[] =
8968 * Machine/OS name selection pattern
8970 #define apzX11_NewMachs (const char**)NULL
8973 * content bypass pattern - skip fix if pattern found
8975 tSCC zX11_NewBypass0[] =
8978 #define X11_NEW_TEST_CT 1
8979 static tTestDesc aX11_NewTests[] = {
8980 { TT_NEGREP, zX11_NewBypass0, (regex_t*)NULL }, };
8983 * Fix Command Arguments for X11_New
8985 static const char* apzX11_NewPatch[] = { sed_cmd_z,
8986 "-e", "/Widget\told, new;/i\\\n\
8987 #ifdef __cplusplus\\\n\
8988 \\\tWidget\told, c_new;\\\n\
8990 "-e", "/Widget\told, new;/a\\\n\
8992 "-e", "s/Widget new,/Widget c_new,/g",
8995 /* * * * * * * * * * * * * * * * * * * * * * * * * *
8997 * Description of X11_Sprintf fix
8999 tSCC zX11_SprintfName[] =
9003 * File name selection pattern
9005 tSCC zX11_SprintfList[] =
9006 "X11/Xmu.h\0X11/Xmu/Xmu.h\0";
9008 * Machine/OS name selection pattern
9010 #define apzX11_SprintfMachs (const char**)NULL
9013 * content selection pattern - do fix if pattern found
9015 tSCC zX11_SprintfSelect0[] =
9016 "^extern char \\*\tsprintf\\(\\);$";
9018 #define X11_SPRINTF_TEST_CT 1
9019 static tTestDesc aX11_SprintfTests[] = {
9020 { TT_EGREP, zX11_SprintfSelect0, (regex_t*)NULL }, };
9023 * Fix Command Arguments for X11_Sprintf
9025 static const char* apzX11_SprintfPatch[] = {
9027 "#ifndef __STDC__\n\
9029 #endif /* !defined __STDC__ */",
9033 /* * * * * * * * * * * * * * * * * * * * * * * * * *
9037 #define REGEX_COUNT 264
9038 #define MACH_LIST_SIZE_LIMIT 181
9039 #define FIX_COUNT 222
9042 * Enumerate the fixes
9045 AAB_AIX_STDIO_FIXIDX,
9046 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
9047 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
9048 AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
9049 AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
9050 AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
9051 AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
9052 AAB_SUN_MEMCPY_FIXIDX,
9054 AIX_NET_IF_ARP_FIXIDX,
9055 AIX_ONCE_INIT_1_FIXIDX,
9056 AIX_ONCE_INIT_2_FIXIDX,
9058 AIX_STDINT_1_FIXIDX,
9059 AIX_STDINT_2_FIXIDX,
9060 AIX_STDINT_3_FIXIDX,
9061 AIX_STDINT_4_FIXIDX,
9062 AIX_STDINT_5_FIXIDX,
9063 AIX_SYSMACHINE_FIXIDX,
9064 AIX_SYSWAIT_2_FIXIDX,
9065 AIX_VOLATILE_FIXIDX,
9066 ALPHA___ASSERT_FIXIDX,
9067 ALPHA___EXTERN_PREFIX_FIXIDX,
9068 ALPHA___EXTERN_PREFIX_STANDARDS_FIXIDX,
9069 ALPHA___EXTERN_PREFIX_SYS_STAT_FIXIDX,
9070 ALPHA_ASSERT_FIXIDX,
9071 ALPHA_BAD_LVAL_FIXIDX,
9072 ALPHA_GETOPT_FIXIDX,
9073 ALPHA_IF_SEMICOLON_FIXIDX,
9074 ALPHA_PARENS_FIXIDX,
9075 ALPHA_PTHREAD_FIXIDX,
9076 ALPHA_PTHREAD_GCC_FIXIDX,
9077 ALPHA_PTHREAD_INIT_FIXIDX,
9079 AVOID_BOOL_DEFINE_FIXIDX,
9080 AVOID_BOOL_TYPE_FIXIDX,
9081 AVOID_WCHAR_T_TYPE_FIXIDX,
9082 BAD_STRUCT_TERM_FIXIDX,
9084 BROKEN_ASSERT_STDIO_FIXIDX,
9085 BROKEN_ASSERT_STDLIB_FIXIDX,
9088 BSD_STDIO_ATTRS_CONFLICT_FIXIDX,
9089 CTRL_QUOTES_DEF_FIXIDX,
9090 CTRL_QUOTES_USE_FIXIDX,
9092 DARWIN_EXTERNC_FIXIDX,
9093 DARWIN_GCC4_BREAKAGE_FIXIDX,
9094 DARWIN_PRIVATE_EXTERN_FIXIDX,
9095 DARWIN_STDINT_1_FIXIDX,
9096 DARWIN_STDINT_2_FIXIDX,
9097 DARWIN_STDINT_3_FIXIDX,
9098 DARWIN_STDINT_4_FIXIDX,
9099 DARWIN_STDINT_5_FIXIDX,
9100 DARWIN_STDINT_6_FIXIDX,
9101 DARWIN_STDINT_7_FIXIDX,
9102 DEC_INTERN_ASM_FIXIDX,
9103 DJGPP_WCHAR_H_FIXIDX,
9105 FREEBSD_GCC3_BREAKAGE_FIXIDX,
9106 FREEBSD_GCC4_BREAKAGE_FIXIDX,
9107 GLIBC_C99_INLINE_1_FIXIDX,
9108 GLIBC_C99_INLINE_1A_FIXIDX,
9109 GLIBC_C99_INLINE_2_FIXIDX,
9110 GLIBC_C99_INLINE_3_FIXIDX,
9111 GLIBC_C99_INLINE_4_FIXIDX,
9112 GLIBC_MUTEX_INIT_FIXIDX,
9113 GLIBC_STDINT_FIXIDX,
9114 GLIBC_STRNCPY_FIXIDX,
9115 GLIBC_TGMATH_FIXIDX,
9119 HPPA_HPUX_FP_MACROS_FIXIDX,
9120 HPUX10_CPP_POW_INLINE_FIXIDX,
9121 HPUX11_CPP_POW_INLINE_FIXIDX,
9122 HPUX10_CTYPE_DECLARATIONS1_FIXIDX,
9123 HPUX10_CTYPE_DECLARATIONS2_FIXIDX,
9124 HPUX10_STDIO_DECLARATIONS_FIXIDX,
9126 HPUX11_FABSF_FIXIDX,
9127 HPUX11_PTHREAD_CONST_FIXIDX,
9128 HPUX11_SIZE_T_FIXIDX,
9129 HPUX11_SNPRINTF_FIXIDX,
9130 HPUX11_VSNPRINTF_FIXIDX,
9131 HPUX8_BOGUS_INLINES_FIXIDX,
9132 HPUX_CTYPE_MACROS_FIXIDX,
9134 HPUX_LONG_DOUBLE_FIXIDX,
9135 HPUX_LONG_DOUBLE_2_FIXIDX,
9136 HPUX_SYSTIME_FIXIDX,
9137 HPUX_SPU_INFO_FIXIDX,
9138 HPUX11_EXTERN_SENDFILE_FIXIDX,
9139 HPUX11_EXTERN_SENDPATH_FIXIDX,
9140 HPUX_EXTERN_ERRNO_FIXIDX,
9141 HPUX_PTHREAD_INITIALIZERS_FIXIDX,
9142 HPUX_C99_INTPTR_FIXIDX,
9143 HPUX_C99_INTTYPES_FIXIDX,
9144 HPUX_C99_INTTYPES2_FIXIDX,
9145 HPUX_STDINT_LEAST_FAST_FIXIDX,
9146 HPUX_INTTYPE_INT8_T_FIXIDX,
9147 HPUX_IMAGINARY_I_FIXIDX,
9148 HUGE_VAL_HEX_FIXIDX,
9149 HUGE_VALF_HEX_FIXIDX,
9150 HUGE_VALL_HEX_FIXIDX,
9151 INT_ABORT_FREE_AND_EXIT_FIXIDX,
9152 IO_QUOTES_DEF_FIXIDX,
9153 IO_QUOTES_USE_FIXIDX,
9154 IP_MISSING_SEMI_FIXIDX,
9155 IRIX___RESTRICT_FIXIDX,
9156 IRIX___GENERIC1_FIXIDX,
9157 IRIX___GENERIC2_FIXIDX,
9158 IRIX_ASM_APOSTROPHE_FIXIDX,
9159 IRIX_COMPLEX_FIXIDX,
9160 IRIX_LIMITS_CONST_FIXIDX,
9161 IRIX_PTHREAD_INIT_FIXIDX,
9162 IRIX_SOCKLEN_T_FIXIDX,
9163 IRIX_STDINT_C99_MODE_FIXIDX,
9164 IRIX_STDINT_C99_TYPES_FIXIDX,
9165 IRIX_STDINT_C99_MACROS_FIXIDX,
9166 IRIX_STDIO_VA_LIST_FIXIDX,
9167 IRIX_WCSFTIME_FIXIDX,
9168 KANDR_CONCAT_FIXIDX,
9169 LINUX_IA64_UCONTEXT_FIXIDX,
9170 LYNXOS_NO_WARNING_IN_SYS_TIME_H_FIXIDX,
9171 LYNXOS_MISSING_PUTENV_FIXIDX,
9172 MACHINE_ANSI_H_VA_LIST_FIXIDX,
9173 MACHINE_NAME_FIXIDX,
9174 MATH_EXCEPTION_FIXIDX,
9175 MATH_HUGE_VAL_FROM_DBL_MAX_FIXIDX,
9176 NESTED_AUTH_DES_FIXIDX,
9177 NETBSD_C99_INLINE_1_FIXIDX,
9178 NETBSD_C99_INLINE_2_FIXIDX,
9179 NETBSD_EXTRA_SEMICOLON_FIXIDX,
9180 NEWLIB_STDINT_1_FIXIDX,
9181 NEWLIB_STDINT_2_FIXIDX,
9182 NEXT_MATH_PREFIX_FIXIDX,
9183 NEXT_TEMPLATE_FIXIDX,
9184 NEXT_VOLITILE_FIXIDX,
9185 NEXT_WAIT_UNION_FIXIDX,
9186 NODEENT_SYNTAX_FIXIDX,
9187 OPENBSD_NULL_DEFINITION_FIXIDX,
9188 OBSTACK_LVALUE_CAST_FIXIDX,
9189 OPENBSD_VA_START_FIXIDX,
9190 OSF_NAMESPACE_A_FIXIDX,
9191 OSF_NAMESPACE_C_FIXIDX,
9192 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_FIXIDX,
9193 READ_RET_TYPE_FIXIDX,
9194 RPC_XDR_LVALUE_CAST_A_FIXIDX,
9195 RPC_XDR_LVALUE_CAST_B_FIXIDX,
9196 RS6000_DOUBLE_FIXIDX,
9197 RS6000_FCHMOD_FIXIDX,
9198 RS6000_PARAM_FIXIDX,
9199 SOLARIS___RESTRICT_FIXIDX,
9200 SOLARIS_COMPLEX_FIXIDX,
9201 SOLARIS_COMPLEX_CXX_FIXIDX,
9202 SOLARIS_COND_INIT_FIXIDX,
9203 SOLARIS_CXX_LINKAGE_FIXIDX,
9204 SOLARIS_GETC_STRICT_STDC_FIXIDX,
9205 SOLARIS_LONGJMP_NORETURN_FIXIDX,
9206 SOLARIS_MATH_1_FIXIDX,
9207 SOLARIS_MATH_2_FIXIDX,
9208 SOLARIS_MATH_3_FIXIDX,
9209 SOLARIS_MATH_4_FIXIDX,
9210 SOLARIS_MATH_8_FIXIDX,
9211 SOLARIS_MATH_9_FIXIDX,
9212 SOLARIS_MATH_10_FIXIDX,
9213 SOLARIS_MUTEX_INIT_2_FIXIDX,
9214 SOLARIS_POW_INT_OVERLOAD_FIXIDX,
9215 SOLARIS_RWLOCK_INIT_1_FIXIDX,
9216 SOLARIS_ONCE_INIT_1_FIXIDX,
9217 SOLARIS_ONCE_INIT_2_FIXIDX,
9218 SOLARIS_INT_CONST_FIXIDX,
9219 SOLARIS_INT_LIMITS_1_FIXIDX,
9220 SOLARIS_INT_LIMITS_2_FIXIDX,
9221 SOLARIS_INT_LIMITS_3_FIXIDX,
9222 SOLARIS_INT_TYPES_FIXIDX,
9223 SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
9224 SOLARIS_STD___FILBUF_FIXIDX,
9225 SOLARIS_STDIO_TAG_FIXIDX,
9226 SOLARIS_SYS_VA_LIST_FIXIDX,
9228 STDIO_STDARG_H_FIXIDX,
9229 STDIO_VA_LIST_FIXIDX,
9230 STDIO_VA_LIST_CLIENTS_FIXIDX,
9231 STRICT_ANSI_NOT_FIXIDX,
9232 STRICT_ANSI_NOT_CTD_FIXIDX,
9233 STRICT_ANSI_ONLY_FIXIDX,
9235 STRUCT_SOCKADDR_FIXIDX,
9236 SUN_AUTH_PROTO_FIXIDX,
9237 SUN_BOGUS_IFDEF_FIXIDX,
9238 SUN_CATMACRO_FIXIDX,
9240 SUN_RUSERS_SEMI_FIXIDX,
9242 SUNOS_STRLEN_FIXIDX,
9243 SVR4_DISABLE_OPT_FIXIDX,
9246 SVR4_SIGHANDLER_TYPE_FIXIDX,
9247 SVR4_UNDECLARED_GETRNGE_FIXIDX,
9248 SYSV68_STRING_FIXIDX,
9249 SYSZ_STDLIB_FOR_SUN_FIXIDX,
9250 THREAD_KEYWORD_FIXIDX,
9251 TINFO_CPLUSPLUS_FIXIDX,
9252 ULTRIX_CONST_FIXIDX,
9253 ULTRIX_CONST2_FIXIDX,
9254 VA_I960_MACRO_FIXIDX,
9255 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_FIXIDX,
9256 VMS_USE_PRAGMA_EXTERN_MODEL_FIXIDX,
9257 VMS_DISABLE_DECC_STRING_BUILTINS_FIXIDX,
9259 VXWORKS_GCC_PROBLEM_FIXIDX,
9260 VXWORKS_NEEDS_VXTYPES_FIXIDX,
9261 VXWORKS_NEEDS_VXWORKS_FIXIDX,
9262 VXWORKS_TIME_FIXIDX,
9264 X11_CLASS_USAGE_FIXIDX,
9269 tFixDesc fixDescList[ FIX_COUNT ] = {
9270 { zAab_Aix_StdioName, zAab_Aix_StdioList,
9271 apzAab_Aix_StdioMachs,
9272 AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9273 aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
9275 { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
9276 apzAab_Darwin7_9_Long_Double_FuncsMachs,
9277 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9278 aAab_Darwin7_9_Long_Double_FuncsTests, apzAab_Darwin7_9_Long_Double_FuncsPatch, 0 },
9280 { zAab_Darwin7_9_Long_Double_Funcs_2Name, zAab_Darwin7_9_Long_Double_Funcs_2List,
9281 apzAab_Darwin7_9_Long_Double_Funcs_2Machs,
9282 AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9283 aAab_Darwin7_9_Long_Double_Funcs_2Tests, apzAab_Darwin7_9_Long_Double_Funcs_2Patch, 0 },
9285 { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
9286 apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
9287 AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9288 aAab_Fd_Zero_Asm_Posix_Types_HTests, apzAab_Fd_Zero_Asm_Posix_Types_HPatch, 0 },
9290 { zAab_Fd_Zero_Gnu_Types_HName, zAab_Fd_Zero_Gnu_Types_HList,
9291 apzAab_Fd_Zero_Gnu_Types_HMachs,
9292 AAB_FD_ZERO_GNU_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9293 aAab_Fd_Zero_Gnu_Types_HTests, apzAab_Fd_Zero_Gnu_Types_HPatch, 0 },
9295 { zAab_Fd_Zero_Selectbits_HName, zAab_Fd_Zero_Selectbits_HList,
9296 apzAab_Fd_Zero_Selectbits_HMachs,
9297 AAB_FD_ZERO_SELECTBITS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9298 aAab_Fd_Zero_Selectbits_HTests, apzAab_Fd_Zero_Selectbits_HPatch, 0 },
9300 { zAab_Solaris_Sys_Varargs_HName, zAab_Solaris_Sys_Varargs_HList,
9301 apzAab_Solaris_Sys_Varargs_HMachs,
9302 AAB_SOLARIS_SYS_VARARGS_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9303 aAab_Solaris_Sys_Varargs_HTests, apzAab_Solaris_Sys_Varargs_HPatch, 0 },
9305 { zAab_Sun_MemcpyName, zAab_Sun_MemcpyList,
9306 apzAab_Sun_MemcpyMachs,
9307 AAB_SUN_MEMCPY_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
9308 aAab_Sun_MemcpyTests, apzAab_Sun_MemcpyPatch, 0 },
9310 { zAix_ComplexName, zAix_ComplexList,
9311 apzAix_ComplexMachs,
9312 AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9313 aAix_ComplexTests, apzAix_ComplexPatch, 0 },
9315 { zAix_Net_If_ArpName, zAix_Net_If_ArpList,
9316 apzAix_Net_If_ArpMachs,
9317 AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9318 aAix_Net_If_ArpTests, apzAix_Net_If_ArpPatch, 0 },
9320 { zAix_Once_Init_1Name, zAix_Once_Init_1List,
9321 apzAix_Once_Init_1Machs,
9322 AIX_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9323 aAix_Once_Init_1Tests, apzAix_Once_Init_1Patch, 0 },
9325 { zAix_Once_Init_2Name, zAix_Once_Init_2List,
9326 apzAix_Once_Init_2Machs,
9327 AIX_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9328 aAix_Once_Init_2Tests, apzAix_Once_Init_2Patch, 0 },
9330 { zAix_PthreadName, zAix_PthreadList,
9331 apzAix_PthreadMachs,
9332 AIX_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9333 aAix_PthreadTests, apzAix_PthreadPatch, 0 },
9335 { zAix_Stdint_1Name, zAix_Stdint_1List,
9336 apzAix_Stdint_1Machs,
9337 AIX_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9338 aAix_Stdint_1Tests, apzAix_Stdint_1Patch, 0 },
9340 { zAix_Stdint_2Name, zAix_Stdint_2List,
9341 apzAix_Stdint_2Machs,
9342 AIX_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9343 aAix_Stdint_2Tests, apzAix_Stdint_2Patch, 0 },
9345 { zAix_Stdint_3Name, zAix_Stdint_3List,
9346 apzAix_Stdint_3Machs,
9347 AIX_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9348 aAix_Stdint_3Tests, apzAix_Stdint_3Patch, 0 },
9350 { zAix_Stdint_4Name, zAix_Stdint_4List,
9351 apzAix_Stdint_4Machs,
9352 AIX_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9353 aAix_Stdint_4Tests, apzAix_Stdint_4Patch, 0 },
9355 { zAix_Stdint_5Name, zAix_Stdint_5List,
9356 apzAix_Stdint_5Machs,
9357 AIX_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9358 aAix_Stdint_5Tests, apzAix_Stdint_5Patch, 0 },
9360 { zAix_SysmachineName, zAix_SysmachineList,
9361 apzAix_SysmachineMachs,
9362 AIX_SYSMACHINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9363 aAix_SysmachineTests, apzAix_SysmachinePatch, 0 },
9365 { zAix_Syswait_2Name, zAix_Syswait_2List,
9366 apzAix_Syswait_2Machs,
9367 AIX_SYSWAIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9368 aAix_Syswait_2Tests, apzAix_Syswait_2Patch, 0 },
9370 { zAix_VolatileName, zAix_VolatileList,
9371 apzAix_VolatileMachs,
9372 AIX_VOLATILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9373 aAix_VolatileTests, apzAix_VolatilePatch, 0 },
9375 { zAlpha___AssertName, zAlpha___AssertList,
9376 apzAlpha___AssertMachs,
9377 ALPHA___ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9378 aAlpha___AssertTests, apzAlpha___AssertPatch, 0 },
9380 { zAlpha___Extern_PrefixName, zAlpha___Extern_PrefixList,
9381 apzAlpha___Extern_PrefixMachs,
9382 ALPHA___EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9383 aAlpha___Extern_PrefixTests, apzAlpha___Extern_PrefixPatch, 0 },
9385 { zAlpha___Extern_Prefix_StandardsName, zAlpha___Extern_Prefix_StandardsList,
9386 apzAlpha___Extern_Prefix_StandardsMachs,
9387 ALPHA___EXTERN_PREFIX_STANDARDS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9388 aAlpha___Extern_Prefix_StandardsTests, apzAlpha___Extern_Prefix_StandardsPatch, 0 },
9390 { zAlpha___Extern_Prefix_Sys_StatName, zAlpha___Extern_Prefix_Sys_StatList,
9391 apzAlpha___Extern_Prefix_Sys_StatMachs,
9392 ALPHA___EXTERN_PREFIX_SYS_STAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9393 aAlpha___Extern_Prefix_Sys_StatTests, apzAlpha___Extern_Prefix_Sys_StatPatch, 0 },
9395 { zAlpha_AssertName, zAlpha_AssertList,
9396 apzAlpha_AssertMachs,
9397 ALPHA_ASSERT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9398 aAlpha_AssertTests, apzAlpha_AssertPatch, 0 },
9400 { zAlpha_Bad_LvalName, zAlpha_Bad_LvalList,
9401 apzAlpha_Bad_LvalMachs,
9402 ALPHA_BAD_LVAL_TEST_CT, FD_MACH_ONLY,
9403 aAlpha_Bad_LvalTests, apzAlpha_Bad_LvalPatch, 0 },
9405 { zAlpha_GetoptName, zAlpha_GetoptList,
9406 apzAlpha_GetoptMachs,
9407 ALPHA_GETOPT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9408 aAlpha_GetoptTests, apzAlpha_GetoptPatch, 0 },
9410 { zAlpha_If_SemicolonName, zAlpha_If_SemicolonList,
9411 apzAlpha_If_SemicolonMachs,
9412 ALPHA_IF_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9413 aAlpha_If_SemicolonTests, apzAlpha_If_SemicolonPatch, 0 },
9415 { zAlpha_ParensName, zAlpha_ParensList,
9416 apzAlpha_ParensMachs,
9417 ALPHA_PARENS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9418 aAlpha_ParensTests, apzAlpha_ParensPatch, 0 },
9420 { zAlpha_PthreadName, zAlpha_PthreadList,
9421 apzAlpha_PthreadMachs,
9422 ALPHA_PTHREAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9423 aAlpha_PthreadTests, apzAlpha_PthreadPatch, 0 },
9425 { zAlpha_Pthread_GccName, zAlpha_Pthread_GccList,
9426 apzAlpha_Pthread_GccMachs,
9427 ALPHA_PTHREAD_GCC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9428 aAlpha_Pthread_GccTests, apzAlpha_Pthread_GccPatch, 0 },
9430 { zAlpha_Pthread_InitName, zAlpha_Pthread_InitList,
9431 apzAlpha_Pthread_InitMachs,
9432 ALPHA_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY,
9433 aAlpha_Pthread_InitTests, apzAlpha_Pthread_InitPatch, 0 },
9435 { zAlpha_SbrkName, zAlpha_SbrkList,
9437 ALPHA_SBRK_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9438 aAlpha_SbrkTests, apzAlpha_SbrkPatch, 0 },
9440 { zAvoid_Bool_DefineName, zAvoid_Bool_DefineList,
9441 apzAvoid_Bool_DefineMachs,
9442 AVOID_BOOL_DEFINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9443 aAvoid_Bool_DefineTests, apzAvoid_Bool_DefinePatch, 0 },
9445 { zAvoid_Bool_TypeName, zAvoid_Bool_TypeList,
9446 apzAvoid_Bool_TypeMachs,
9447 AVOID_BOOL_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9448 aAvoid_Bool_TypeTests, apzAvoid_Bool_TypePatch, 0 },
9450 { zAvoid_Wchar_T_TypeName, zAvoid_Wchar_T_TypeList,
9451 apzAvoid_Wchar_T_TypeMachs,
9452 AVOID_WCHAR_T_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9453 aAvoid_Wchar_T_TypeTests, apzAvoid_Wchar_T_TypePatch, 0 },
9455 { zBad_Struct_TermName, zBad_Struct_TermList,
9456 apzBad_Struct_TermMachs,
9457 BAD_STRUCT_TERM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9458 aBad_Struct_TermTests, apzBad_Struct_TermPatch, 0 },
9460 { zBadquoteName, zBadquoteList,
9462 BADQUOTE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9463 aBadquoteTests, apzBadquotePatch, 0 },
9465 { zBroken_Assert_StdioName, zBroken_Assert_StdioList,
9466 apzBroken_Assert_StdioMachs,
9467 BROKEN_ASSERT_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9468 aBroken_Assert_StdioTests, apzBroken_Assert_StdioPatch, 0 },
9470 { zBroken_Assert_StdlibName, zBroken_Assert_StdlibList,
9471 apzBroken_Assert_StdlibMachs,
9472 BROKEN_ASSERT_STDLIB_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9473 aBroken_Assert_StdlibTests, apzBroken_Assert_StdlibPatch, 0 },
9475 { zBroken_CabsName, zBroken_CabsList,
9476 apzBroken_CabsMachs,
9477 BROKEN_CABS_TEST_CT, FD_MACH_ONLY,
9478 aBroken_CabsTests, apzBroken_CabsPatch, 0 },
9480 { zBroken_NanName, zBroken_NanList,
9482 BROKEN_NAN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9483 aBroken_NanTests, apzBroken_NanPatch, 0 },
9485 { zBsd_Stdio_Attrs_ConflictName, zBsd_Stdio_Attrs_ConflictList,
9486 apzBsd_Stdio_Attrs_ConflictMachs,
9487 BSD_STDIO_ATTRS_CONFLICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9488 aBsd_Stdio_Attrs_ConflictTests, apzBsd_Stdio_Attrs_ConflictPatch, 0 },
9490 { zCtrl_Quotes_DefName, zCtrl_Quotes_DefList,
9491 apzCtrl_Quotes_DefMachs,
9492 CTRL_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9493 aCtrl_Quotes_DefTests, apzCtrl_Quotes_DefPatch, 0 },
9495 { zCtrl_Quotes_UseName, zCtrl_Quotes_UseList,
9496 apzCtrl_Quotes_UseMachs,
9497 CTRL_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9498 aCtrl_Quotes_UseTests, apzCtrl_Quotes_UsePatch, 0 },
9500 { zCxx_UnreadyName, zCxx_UnreadyList,
9501 apzCxx_UnreadyMachs,
9502 CXX_UNREADY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9503 aCxx_UnreadyTests, apzCxx_UnreadyPatch, 0 },
9505 { zDarwin_ExterncName, zDarwin_ExterncList,
9506 apzDarwin_ExterncMachs,
9507 DARWIN_EXTERNC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9508 aDarwin_ExterncTests, apzDarwin_ExterncPatch, 0 },
9510 { zDarwin_Gcc4_BreakageName, zDarwin_Gcc4_BreakageList,
9511 apzDarwin_Gcc4_BreakageMachs,
9512 DARWIN_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9513 aDarwin_Gcc4_BreakageTests, apzDarwin_Gcc4_BreakagePatch, 0 },
9515 { zDarwin_Private_ExternName, zDarwin_Private_ExternList,
9516 apzDarwin_Private_ExternMachs,
9517 DARWIN_PRIVATE_EXTERN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9518 aDarwin_Private_ExternTests, apzDarwin_Private_ExternPatch, 0 },
9520 { zDarwin_Stdint_1Name, zDarwin_Stdint_1List,
9521 apzDarwin_Stdint_1Machs,
9522 DARWIN_STDINT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9523 aDarwin_Stdint_1Tests, apzDarwin_Stdint_1Patch, 0 },
9525 { zDarwin_Stdint_2Name, zDarwin_Stdint_2List,
9526 apzDarwin_Stdint_2Machs,
9527 DARWIN_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9528 aDarwin_Stdint_2Tests, apzDarwin_Stdint_2Patch, 0 },
9530 { zDarwin_Stdint_3Name, zDarwin_Stdint_3List,
9531 apzDarwin_Stdint_3Machs,
9532 DARWIN_STDINT_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9533 aDarwin_Stdint_3Tests, apzDarwin_Stdint_3Patch, 0 },
9535 { zDarwin_Stdint_4Name, zDarwin_Stdint_4List,
9536 apzDarwin_Stdint_4Machs,
9537 DARWIN_STDINT_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9538 aDarwin_Stdint_4Tests, apzDarwin_Stdint_4Patch, 0 },
9540 { zDarwin_Stdint_5Name, zDarwin_Stdint_5List,
9541 apzDarwin_Stdint_5Machs,
9542 DARWIN_STDINT_5_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9543 aDarwin_Stdint_5Tests, apzDarwin_Stdint_5Patch, 0 },
9545 { zDarwin_Stdint_6Name, zDarwin_Stdint_6List,
9546 apzDarwin_Stdint_6Machs,
9547 DARWIN_STDINT_6_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9548 aDarwin_Stdint_6Tests, apzDarwin_Stdint_6Patch, 0 },
9550 { zDarwin_Stdint_7Name, zDarwin_Stdint_7List,
9551 apzDarwin_Stdint_7Machs,
9552 DARWIN_STDINT_7_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9553 aDarwin_Stdint_7Tests, apzDarwin_Stdint_7Patch, 0 },
9555 { zDec_Intern_AsmName, zDec_Intern_AsmList,
9556 apzDec_Intern_AsmMachs,
9557 DEC_INTERN_ASM_TEST_CT, FD_MACH_ONLY,
9558 aDec_Intern_AsmTests, apzDec_Intern_AsmPatch, 0 },
9560 { zDjgpp_Wchar_HName, zDjgpp_Wchar_HList,
9561 apzDjgpp_Wchar_HMachs,
9562 DJGPP_WCHAR_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9563 aDjgpp_Wchar_HTests, apzDjgpp_Wchar_HPatch, 0 },
9565 { zEcd_CursorName, zEcd_CursorList,
9567 ECD_CURSOR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9568 aEcd_CursorTests, apzEcd_CursorPatch, 0 },
9570 { zFreebsd_Gcc3_BreakageName, zFreebsd_Gcc3_BreakageList,
9571 apzFreebsd_Gcc3_BreakageMachs,
9572 FREEBSD_GCC3_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9573 aFreebsd_Gcc3_BreakageTests, apzFreebsd_Gcc3_BreakagePatch, 0 },
9575 { zFreebsd_Gcc4_BreakageName, zFreebsd_Gcc4_BreakageList,
9576 apzFreebsd_Gcc4_BreakageMachs,
9577 FREEBSD_GCC4_BREAKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9578 aFreebsd_Gcc4_BreakageTests, apzFreebsd_Gcc4_BreakagePatch, 0 },
9580 { zGlibc_C99_Inline_1Name, zGlibc_C99_Inline_1List,
9581 apzGlibc_C99_Inline_1Machs,
9582 GLIBC_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9583 aGlibc_C99_Inline_1Tests, apzGlibc_C99_Inline_1Patch, 0 },
9585 { zGlibc_C99_Inline_1aName, zGlibc_C99_Inline_1aList,
9586 apzGlibc_C99_Inline_1aMachs,
9587 GLIBC_C99_INLINE_1A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9588 aGlibc_C99_Inline_1aTests, apzGlibc_C99_Inline_1aPatch, 0 },
9590 { zGlibc_C99_Inline_2Name, zGlibc_C99_Inline_2List,
9591 apzGlibc_C99_Inline_2Machs,
9592 GLIBC_C99_INLINE_2_TEST_CT, FD_MACH_ONLY,
9593 aGlibc_C99_Inline_2Tests, apzGlibc_C99_Inline_2Patch, 0 },
9595 { zGlibc_C99_Inline_3Name, zGlibc_C99_Inline_3List,
9596 apzGlibc_C99_Inline_3Machs,
9597 GLIBC_C99_INLINE_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9598 aGlibc_C99_Inline_3Tests, apzGlibc_C99_Inline_3Patch, 0 },
9600 { zGlibc_C99_Inline_4Name, zGlibc_C99_Inline_4List,
9601 apzGlibc_C99_Inline_4Machs,
9602 GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9603 aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
9605 { zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
9606 apzGlibc_Mutex_InitMachs,
9607 GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,
9608 aGlibc_Mutex_InitTests, apzGlibc_Mutex_InitPatch, 0 },
9610 { zGlibc_StdintName, zGlibc_StdintList,
9611 apzGlibc_StdintMachs,
9612 GLIBC_STDINT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9613 aGlibc_StdintTests, apzGlibc_StdintPatch, 0 },
9615 { zGlibc_StrncpyName, zGlibc_StrncpyList,
9616 apzGlibc_StrncpyMachs,
9617 GLIBC_STRNCPY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9618 aGlibc_StrncpyTests, apzGlibc_StrncpyPatch, 0 },
9620 { zGlibc_TgmathName, zGlibc_TgmathList,
9621 apzGlibc_TgmathMachs,
9622 GLIBC_TGMATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9623 aGlibc_TgmathTests, apzGlibc_TgmathPatch, 0 },
9625 { zGnu_TypesName, zGnu_TypesList,
9627 GNU_TYPES_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
9628 aGnu_TypesTests, apzGnu_TypesPatch, 0 },
9630 { zHp_InlineName, zHp_InlineList,
9632 HP_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9633 aHp_InlineTests, apzHp_InlinePatch, 0 },
9635 { zHp_SysfileName, zHp_SysfileList,
9637 HP_SYSFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9638 aHp_SysfileTests, apzHp_SysfilePatch, 0 },
9640 { zHppa_Hpux_Fp_MacrosName, zHppa_Hpux_Fp_MacrosList,
9641 apzHppa_Hpux_Fp_MacrosMachs,
9642 HPPA_HPUX_FP_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9643 aHppa_Hpux_Fp_MacrosTests, apzHppa_Hpux_Fp_MacrosPatch, 0 },
9645 { zHpux10_Cpp_Pow_InlineName, zHpux10_Cpp_Pow_InlineList,
9646 apzHpux10_Cpp_Pow_InlineMachs,
9647 HPUX10_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9648 aHpux10_Cpp_Pow_InlineTests, apzHpux10_Cpp_Pow_InlinePatch, 0 },
9650 { zHpux11_Cpp_Pow_InlineName, zHpux11_Cpp_Pow_InlineList,
9651 apzHpux11_Cpp_Pow_InlineMachs,
9652 HPUX11_CPP_POW_INLINE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9653 aHpux11_Cpp_Pow_InlineTests, apzHpux11_Cpp_Pow_InlinePatch, 0 },
9655 { zHpux10_Ctype_Declarations1Name, zHpux10_Ctype_Declarations1List,
9656 apzHpux10_Ctype_Declarations1Machs,
9657 HPUX10_CTYPE_DECLARATIONS1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9658 aHpux10_Ctype_Declarations1Tests, apzHpux10_Ctype_Declarations1Patch, 0 },
9660 { zHpux10_Ctype_Declarations2Name, zHpux10_Ctype_Declarations2List,
9661 apzHpux10_Ctype_Declarations2Machs,
9662 HPUX10_CTYPE_DECLARATIONS2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9663 aHpux10_Ctype_Declarations2Tests, apzHpux10_Ctype_Declarations2Patch, 0 },
9665 { zHpux10_Stdio_DeclarationsName, zHpux10_Stdio_DeclarationsList,
9666 apzHpux10_Stdio_DeclarationsMachs,
9667 HPUX10_STDIO_DECLARATIONS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9668 aHpux10_Stdio_DeclarationsTests, apzHpux10_Stdio_DeclarationsPatch, 0 },
9670 { zHpux11_AbsName, zHpux11_AbsList,
9672 HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9673 aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
9675 { zHpux11_FabsfName, zHpux11_FabsfList,
9676 apzHpux11_FabsfMachs,
9677 HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9678 aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
9680 { zHpux11_Pthread_ConstName, zHpux11_Pthread_ConstList,
9681 apzHpux11_Pthread_ConstMachs,
9682 HPUX11_PTHREAD_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9683 aHpux11_Pthread_ConstTests, apzHpux11_Pthread_ConstPatch, 0 },
9685 { zHpux11_Size_TName, zHpux11_Size_TList,
9686 apzHpux11_Size_TMachs,
9687 HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9688 aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
9690 { zHpux11_SnprintfName, zHpux11_SnprintfList,
9691 apzHpux11_SnprintfMachs,
9692 HPUX11_SNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9693 aHpux11_SnprintfTests, apzHpux11_SnprintfPatch, 0 },
9695 { zHpux11_VsnprintfName, zHpux11_VsnprintfList,
9696 apzHpux11_VsnprintfMachs,
9697 HPUX11_VSNPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9698 aHpux11_VsnprintfTests, apzHpux11_VsnprintfPatch, 0 },
9700 { zHpux8_Bogus_InlinesName, zHpux8_Bogus_InlinesList,
9701 apzHpux8_Bogus_InlinesMachs,
9702 HPUX8_BOGUS_INLINES_TEST_CT, FD_MACH_ONLY,
9703 aHpux8_Bogus_InlinesTests, apzHpux8_Bogus_InlinesPatch, 0 },
9705 { zHpux_Ctype_MacrosName, zHpux_Ctype_MacrosList,
9706 apzHpux_Ctype_MacrosMachs,
9707 HPUX_CTYPE_MACROS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9708 aHpux_Ctype_MacrosTests, apzHpux_Ctype_MacrosPatch, 0 },
9710 { zHpux_HtonlName, zHpux_HtonlList,
9712 HPUX_HTONL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9713 aHpux_HtonlTests, apzHpux_HtonlPatch, 0 },
9715 { zHpux_Long_DoubleName, zHpux_Long_DoubleList,
9716 apzHpux_Long_DoubleMachs,
9717 HPUX_LONG_DOUBLE_TEST_CT, FD_MACH_ONLY,
9718 aHpux_Long_DoubleTests, apzHpux_Long_DoublePatch, 0 },
9720 { zHpux_Long_Double_2Name, zHpux_Long_Double_2List,
9721 apzHpux_Long_Double_2Machs,
9722 HPUX_LONG_DOUBLE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9723 aHpux_Long_Double_2Tests, apzHpux_Long_Double_2Patch, 0 },
9725 { zHpux_SystimeName, zHpux_SystimeList,
9726 apzHpux_SystimeMachs,
9727 HPUX_SYSTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9728 aHpux_SystimeTests, apzHpux_SystimePatch, 0 },
9730 { zHpux_Spu_InfoName, zHpux_Spu_InfoList,
9731 apzHpux_Spu_InfoMachs,
9732 HPUX_SPU_INFO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9733 aHpux_Spu_InfoTests, apzHpux_Spu_InfoPatch, 0 },
9735 { zHpux11_Extern_SendfileName, zHpux11_Extern_SendfileList,
9736 apzHpux11_Extern_SendfileMachs,
9737 HPUX11_EXTERN_SENDFILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9738 aHpux11_Extern_SendfileTests, apzHpux11_Extern_SendfilePatch, 0 },
9740 { zHpux11_Extern_SendpathName, zHpux11_Extern_SendpathList,
9741 apzHpux11_Extern_SendpathMachs,
9742 HPUX11_EXTERN_SENDPATH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9743 aHpux11_Extern_SendpathTests, apzHpux11_Extern_SendpathPatch, 0 },
9745 { zHpux_Extern_ErrnoName, zHpux_Extern_ErrnoList,
9746 apzHpux_Extern_ErrnoMachs,
9747 HPUX_EXTERN_ERRNO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9748 aHpux_Extern_ErrnoTests, apzHpux_Extern_ErrnoPatch, 0 },
9750 { zHpux_Pthread_InitializersName, zHpux_Pthread_InitializersList,
9751 apzHpux_Pthread_InitializersMachs,
9752 HPUX_PTHREAD_INITIALIZERS_TEST_CT, FD_MACH_ONLY,
9753 aHpux_Pthread_InitializersTests, apzHpux_Pthread_InitializersPatch, 0 },
9755 { zHpux_C99_IntptrName, zHpux_C99_IntptrList,
9756 apzHpux_C99_IntptrMachs,
9757 HPUX_C99_INTPTR_TEST_CT, FD_MACH_ONLY,
9758 aHpux_C99_IntptrTests, apzHpux_C99_IntptrPatch, 0 },
9760 { zHpux_C99_InttypesName, zHpux_C99_InttypesList,
9761 apzHpux_C99_InttypesMachs,
9762 HPUX_C99_INTTYPES_TEST_CT, FD_MACH_ONLY,
9763 aHpux_C99_InttypesTests, apzHpux_C99_InttypesPatch, 0 },
9765 { zHpux_C99_Inttypes2Name, zHpux_C99_Inttypes2List,
9766 apzHpux_C99_Inttypes2Machs,
9767 HPUX_C99_INTTYPES2_TEST_CT, FD_MACH_ONLY,
9768 aHpux_C99_Inttypes2Tests, apzHpux_C99_Inttypes2Patch, 0 },
9770 { zHpux_Stdint_Least_FastName, zHpux_Stdint_Least_FastList,
9771 apzHpux_Stdint_Least_FastMachs,
9772 HPUX_STDINT_LEAST_FAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9773 aHpux_Stdint_Least_FastTests, apzHpux_Stdint_Least_FastPatch, 0 },
9775 { zHpux_Inttype_Int8_TName, zHpux_Inttype_Int8_TList,
9776 apzHpux_Inttype_Int8_TMachs,
9777 HPUX_INTTYPE_INT8_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9778 aHpux_Inttype_Int8_TTests, apzHpux_Inttype_Int8_TPatch, 0 },
9780 { zHpux_Imaginary_IName, zHpux_Imaginary_IList,
9781 apzHpux_Imaginary_IMachs,
9782 HPUX_IMAGINARY_I_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9783 aHpux_Imaginary_ITests, apzHpux_Imaginary_IPatch, 0 },
9785 { zHuge_Val_HexName, zHuge_Val_HexList,
9786 apzHuge_Val_HexMachs,
9787 HUGE_VAL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9788 aHuge_Val_HexTests, apzHuge_Val_HexPatch, 0 },
9790 { zHuge_Valf_HexName, zHuge_Valf_HexList,
9791 apzHuge_Valf_HexMachs,
9792 HUGE_VALF_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9793 aHuge_Valf_HexTests, apzHuge_Valf_HexPatch, 0 },
9795 { zHuge_Vall_HexName, zHuge_Vall_HexList,
9796 apzHuge_Vall_HexMachs,
9797 HUGE_VALL_HEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9798 aHuge_Vall_HexTests, apzHuge_Vall_HexPatch, 0 },
9800 { zInt_Abort_Free_And_ExitName, zInt_Abort_Free_And_ExitList,
9801 apzInt_Abort_Free_And_ExitMachs,
9802 INT_ABORT_FREE_AND_EXIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9803 aInt_Abort_Free_And_ExitTests, apzInt_Abort_Free_And_ExitPatch, 0 },
9805 { zIo_Quotes_DefName, zIo_Quotes_DefList,
9806 apzIo_Quotes_DefMachs,
9807 IO_QUOTES_DEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9808 aIo_Quotes_DefTests, apzIo_Quotes_DefPatch, 0 },
9810 { zIo_Quotes_UseName, zIo_Quotes_UseList,
9811 apzIo_Quotes_UseMachs,
9812 IO_QUOTES_USE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9813 aIo_Quotes_UseTests, apzIo_Quotes_UsePatch, 0 },
9815 { zIp_Missing_SemiName, zIp_Missing_SemiList,
9816 apzIp_Missing_SemiMachs,
9817 IP_MISSING_SEMI_TEST_CT, FD_MACH_ONLY,
9818 aIp_Missing_SemiTests, apzIp_Missing_SemiPatch, 0 },
9820 { zIrix___RestrictName, zIrix___RestrictList,
9821 apzIrix___RestrictMachs,
9822 IRIX___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9823 aIrix___RestrictTests, apzIrix___RestrictPatch, 0 },
9825 { zIrix___Generic1Name, zIrix___Generic1List,
9826 apzIrix___Generic1Machs,
9827 IRIX___GENERIC1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9828 aIrix___Generic1Tests, apzIrix___Generic1Patch, 0 },
9830 { zIrix___Generic2Name, zIrix___Generic2List,
9831 apzIrix___Generic2Machs,
9832 IRIX___GENERIC2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9833 aIrix___Generic2Tests, apzIrix___Generic2Patch, 0 },
9835 { zIrix_Asm_ApostropheName, zIrix_Asm_ApostropheList,
9836 apzIrix_Asm_ApostropheMachs,
9837 IRIX_ASM_APOSTROPHE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9838 aIrix_Asm_ApostropheTests, apzIrix_Asm_ApostrophePatch, 0 },
9840 { zIrix_ComplexName, zIrix_ComplexList,
9841 apzIrix_ComplexMachs,
9842 IRIX_COMPLEX_TEST_CT, FD_MACH_ONLY,
9843 aIrix_ComplexTests, apzIrix_ComplexPatch, 0 },
9845 { zIrix_Limits_ConstName, zIrix_Limits_ConstList,
9846 apzIrix_Limits_ConstMachs,
9847 IRIX_LIMITS_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9848 aIrix_Limits_ConstTests, apzIrix_Limits_ConstPatch, 0 },
9850 { zIrix_Pthread_InitName, zIrix_Pthread_InitList,
9851 apzIrix_Pthread_InitMachs,
9852 IRIX_PTHREAD_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9853 aIrix_Pthread_InitTests, apzIrix_Pthread_InitPatch, 0 },
9855 { zIrix_Socklen_TName, zIrix_Socklen_TList,
9856 apzIrix_Socklen_TMachs,
9857 IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9858 aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
9860 { zIrix_Stdint_C99_ModeName, zIrix_Stdint_C99_ModeList,
9861 apzIrix_Stdint_C99_ModeMachs,
9862 IRIX_STDINT_C99_MODE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9863 aIrix_Stdint_C99_ModeTests, apzIrix_Stdint_C99_ModePatch, 0 },
9865 { zIrix_Stdint_C99_TypesName, zIrix_Stdint_C99_TypesList,
9866 apzIrix_Stdint_C99_TypesMachs,
9867 IRIX_STDINT_C99_TYPES_TEST_CT, FD_MACH_ONLY,
9868 aIrix_Stdint_C99_TypesTests, apzIrix_Stdint_C99_TypesPatch, 0 },
9870 { zIrix_Stdint_C99_MacrosName, zIrix_Stdint_C99_MacrosList,
9871 apzIrix_Stdint_C99_MacrosMachs,
9872 IRIX_STDINT_C99_MACROS_TEST_CT, FD_MACH_ONLY,
9873 aIrix_Stdint_C99_MacrosTests, apzIrix_Stdint_C99_MacrosPatch, 0 },
9875 { zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
9876 apzIrix_Stdio_Va_ListMachs,
9877 IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9878 aIrix_Stdio_Va_ListTests, apzIrix_Stdio_Va_ListPatch, 0 },
9880 { zIrix_WcsftimeName, zIrix_WcsftimeList,
9881 apzIrix_WcsftimeMachs,
9882 IRIX_WCSFTIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9883 aIrix_WcsftimeTests, apzIrix_WcsftimePatch, 0 },
9885 { zKandr_ConcatName, zKandr_ConcatList,
9886 apzKandr_ConcatMachs,
9887 KANDR_CONCAT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9888 aKandr_ConcatTests, apzKandr_ConcatPatch, 0 },
9890 { zLinux_Ia64_UcontextName, zLinux_Ia64_UcontextList,
9891 apzLinux_Ia64_UcontextMachs,
9892 LINUX_IA64_UCONTEXT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9893 aLinux_Ia64_UcontextTests, apzLinux_Ia64_UcontextPatch, 0 },
9895 { zLynxos_No_Warning_In_Sys_Time_HName, zLynxos_No_Warning_In_Sys_Time_HList,
9896 apzLynxos_No_Warning_In_Sys_Time_HMachs,
9897 LYNXOS_NO_WARNING_IN_SYS_TIME_H_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9898 aLynxos_No_Warning_In_Sys_Time_HTests, apzLynxos_No_Warning_In_Sys_Time_HPatch, 0 },
9900 { zLynxos_Missing_PutenvName, zLynxos_Missing_PutenvList,
9901 apzLynxos_Missing_PutenvMachs,
9902 LYNXOS_MISSING_PUTENV_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9903 aLynxos_Missing_PutenvTests, apzLynxos_Missing_PutenvPatch, 0 },
9905 { zMachine_Ansi_H_Va_ListName, zMachine_Ansi_H_Va_ListList,
9906 apzMachine_Ansi_H_Va_ListMachs,
9907 MACHINE_ANSI_H_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9908 aMachine_Ansi_H_Va_ListTests, apzMachine_Ansi_H_Va_ListPatch, 0 },
9910 { zMachine_NameName, zMachine_NameList,
9911 apzMachine_NameMachs,
9912 MACHINE_NAME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9913 aMachine_NameTests, apzMachine_NamePatch, 0 },
9915 { zMath_ExceptionName, zMath_ExceptionList,
9916 apzMath_ExceptionMachs,
9917 MATH_EXCEPTION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9918 aMath_ExceptionTests, apzMath_ExceptionPatch, 0 },
9920 { zMath_Huge_Val_From_Dbl_MaxName, zMath_Huge_Val_From_Dbl_MaxList,
9921 apzMath_Huge_Val_From_Dbl_MaxMachs,
9922 MATH_HUGE_VAL_FROM_DBL_MAX_TEST_CT, FD_MACH_ONLY | FD_SHELL_SCRIPT,
9923 aMath_Huge_Val_From_Dbl_MaxTests, apzMath_Huge_Val_From_Dbl_MaxPatch, 0 },
9925 { zNested_Auth_DesName, zNested_Auth_DesList,
9926 apzNested_Auth_DesMachs,
9927 NESTED_AUTH_DES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9928 aNested_Auth_DesTests, apzNested_Auth_DesPatch, 0 },
9930 { zNetbsd_C99_Inline_1Name, zNetbsd_C99_Inline_1List,
9931 apzNetbsd_C99_Inline_1Machs,
9932 NETBSD_C99_INLINE_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9933 aNetbsd_C99_Inline_1Tests, apzNetbsd_C99_Inline_1Patch, 0 },
9935 { zNetbsd_C99_Inline_2Name, zNetbsd_C99_Inline_2List,
9936 apzNetbsd_C99_Inline_2Machs,
9937 NETBSD_C99_INLINE_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9938 aNetbsd_C99_Inline_2Tests, apzNetbsd_C99_Inline_2Patch, 0 },
9940 { zNetbsd_Extra_SemicolonName, zNetbsd_Extra_SemicolonList,
9941 apzNetbsd_Extra_SemicolonMachs,
9942 NETBSD_EXTRA_SEMICOLON_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9943 aNetbsd_Extra_SemicolonTests, apzNetbsd_Extra_SemicolonPatch, 0 },
9945 { zNewlib_Stdint_1Name, zNewlib_Stdint_1List,
9946 apzNewlib_Stdint_1Machs,
9947 NEWLIB_STDINT_1_TEST_CT, FD_MACH_ONLY,
9948 aNewlib_Stdint_1Tests, apzNewlib_Stdint_1Patch, 0 },
9950 { zNewlib_Stdint_2Name, zNewlib_Stdint_2List,
9951 apzNewlib_Stdint_2Machs,
9952 NEWLIB_STDINT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9953 aNewlib_Stdint_2Tests, apzNewlib_Stdint_2Patch, 0 },
9955 { zNext_Math_PrefixName, zNext_Math_PrefixList,
9956 apzNext_Math_PrefixMachs,
9957 NEXT_MATH_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9958 aNext_Math_PrefixTests, apzNext_Math_PrefixPatch, 0 },
9960 { zNext_TemplateName, zNext_TemplateList,
9961 apzNext_TemplateMachs,
9962 NEXT_TEMPLATE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9963 aNext_TemplateTests, apzNext_TemplatePatch, 0 },
9965 { zNext_VolitileName, zNext_VolitileList,
9966 apzNext_VolitileMachs,
9967 NEXT_VOLITILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9968 aNext_VolitileTests, apzNext_VolitilePatch, 0 },
9970 { zNext_Wait_UnionName, zNext_Wait_UnionList,
9971 apzNext_Wait_UnionMachs,
9972 NEXT_WAIT_UNION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9973 aNext_Wait_UnionTests, apzNext_Wait_UnionPatch, 0 },
9975 { zNodeent_SyntaxName, zNodeent_SyntaxList,
9976 apzNodeent_SyntaxMachs,
9977 NODEENT_SYNTAX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9978 aNodeent_SyntaxTests, apzNodeent_SyntaxPatch, 0 },
9980 { zOpenbsd_Null_DefinitionName, zOpenbsd_Null_DefinitionList,
9981 apzOpenbsd_Null_DefinitionMachs,
9982 OPENBSD_NULL_DEFINITION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9983 aOpenbsd_Null_DefinitionTests, apzOpenbsd_Null_DefinitionPatch, 0 },
9985 { zObstack_Lvalue_CastName, zObstack_Lvalue_CastList,
9986 apzObstack_Lvalue_CastMachs,
9987 OBSTACK_LVALUE_CAST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9988 aObstack_Lvalue_CastTests, apzObstack_Lvalue_CastPatch, 0 },
9990 { zOpenbsd_Va_StartName, zOpenbsd_Va_StartList,
9991 apzOpenbsd_Va_StartMachs,
9992 OPENBSD_VA_START_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9993 aOpenbsd_Va_StartTests, apzOpenbsd_Va_StartPatch, 0 },
9995 { zOsf_Namespace_AName, zOsf_Namespace_AList,
9996 apzOsf_Namespace_AMachs,
9997 OSF_NAMESPACE_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
9998 aOsf_Namespace_ATests, apzOsf_Namespace_APatch, 0 },
10000 { zOsf_Namespace_CName, zOsf_Namespace_CList,
10001 apzOsf_Namespace_CMachs,
10002 OSF_NAMESPACE_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10003 aOsf_Namespace_CTests, apzOsf_Namespace_CPatch, 0 },
10005 { zPthread_Incomplete_Struct_ArgumentName, zPthread_Incomplete_Struct_ArgumentList,
10006 apzPthread_Incomplete_Struct_ArgumentMachs,
10007 PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10008 aPthread_Incomplete_Struct_ArgumentTests, apzPthread_Incomplete_Struct_ArgumentPatch, 0 },
10010 { zRead_Ret_TypeName, zRead_Ret_TypeList,
10011 apzRead_Ret_TypeMachs,
10012 READ_RET_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10013 aRead_Ret_TypeTests, apzRead_Ret_TypePatch, 0 },
10015 { zRpc_Xdr_Lvalue_Cast_AName, zRpc_Xdr_Lvalue_Cast_AList,
10016 apzRpc_Xdr_Lvalue_Cast_AMachs,
10017 RPC_XDR_LVALUE_CAST_A_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10018 aRpc_Xdr_Lvalue_Cast_ATests, apzRpc_Xdr_Lvalue_Cast_APatch, 0 },
10020 { zRpc_Xdr_Lvalue_Cast_BName, zRpc_Xdr_Lvalue_Cast_BList,
10021 apzRpc_Xdr_Lvalue_Cast_BMachs,
10022 RPC_XDR_LVALUE_CAST_B_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10023 aRpc_Xdr_Lvalue_Cast_BTests, apzRpc_Xdr_Lvalue_Cast_BPatch, 0 },
10025 { zRs6000_DoubleName, zRs6000_DoubleList,
10026 apzRs6000_DoubleMachs,
10027 RS6000_DOUBLE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10028 aRs6000_DoubleTests, apzRs6000_DoublePatch, 0 },
10030 { zRs6000_FchmodName, zRs6000_FchmodList,
10031 apzRs6000_FchmodMachs,
10032 RS6000_FCHMOD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10033 aRs6000_FchmodTests, apzRs6000_FchmodPatch, 0 },
10035 { zRs6000_ParamName, zRs6000_ParamList,
10036 apzRs6000_ParamMachs,
10037 RS6000_PARAM_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10038 aRs6000_ParamTests, apzRs6000_ParamPatch, 0 },
10040 { zSolaris___RestrictName, zSolaris___RestrictList,
10041 apzSolaris___RestrictMachs,
10042 SOLARIS___RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10043 aSolaris___RestrictTests, apzSolaris___RestrictPatch, 0 },
10045 { zSolaris_ComplexName, zSolaris_ComplexList,
10046 apzSolaris_ComplexMachs,
10047 SOLARIS_COMPLEX_TEST_CT, FD_MACH_ONLY,
10048 aSolaris_ComplexTests, apzSolaris_ComplexPatch, 0 },
10050 { zSolaris_Complex_CxxName, zSolaris_Complex_CxxList,
10051 apzSolaris_Complex_CxxMachs,
10052 SOLARIS_COMPLEX_CXX_TEST_CT, FD_MACH_ONLY,
10053 aSolaris_Complex_CxxTests, apzSolaris_Complex_CxxPatch, 0 },
10055 { zSolaris_Cond_InitName, zSolaris_Cond_InitList,
10056 apzSolaris_Cond_InitMachs,
10057 SOLARIS_COND_INIT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10058 aSolaris_Cond_InitTests, apzSolaris_Cond_InitPatch, 0 },
10060 { zSolaris_Cxx_LinkageName, zSolaris_Cxx_LinkageList,
10061 apzSolaris_Cxx_LinkageMachs,
10062 SOLARIS_CXX_LINKAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10063 aSolaris_Cxx_LinkageTests, apzSolaris_Cxx_LinkagePatch, 0 },
10065 { zSolaris_Getc_Strict_StdcName, zSolaris_Getc_Strict_StdcList,
10066 apzSolaris_Getc_Strict_StdcMachs,
10067 SOLARIS_GETC_STRICT_STDC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10068 aSolaris_Getc_Strict_StdcTests, apzSolaris_Getc_Strict_StdcPatch, 0 },
10070 { zSolaris_Longjmp_NoreturnName, zSolaris_Longjmp_NoreturnList,
10071 apzSolaris_Longjmp_NoreturnMachs,
10072 SOLARIS_LONGJMP_NORETURN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10073 aSolaris_Longjmp_NoreturnTests, apzSolaris_Longjmp_NoreturnPatch, 0 },
10075 { zSolaris_Math_1Name, zSolaris_Math_1List,
10076 apzSolaris_Math_1Machs,
10077 SOLARIS_MATH_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10078 aSolaris_Math_1Tests, apzSolaris_Math_1Patch, 0 },
10080 { zSolaris_Math_2Name, zSolaris_Math_2List,
10081 apzSolaris_Math_2Machs,
10082 SOLARIS_MATH_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10083 aSolaris_Math_2Tests, apzSolaris_Math_2Patch, 0 },
10085 { zSolaris_Math_3Name, zSolaris_Math_3List,
10086 apzSolaris_Math_3Machs,
10087 SOLARIS_MATH_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10088 aSolaris_Math_3Tests, apzSolaris_Math_3Patch, 0 },
10090 { zSolaris_Math_4Name, zSolaris_Math_4List,
10091 apzSolaris_Math_4Machs,
10092 SOLARIS_MATH_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10093 aSolaris_Math_4Tests, apzSolaris_Math_4Patch, 0 },
10095 { zSolaris_Math_8Name, zSolaris_Math_8List,
10096 apzSolaris_Math_8Machs,
10097 SOLARIS_MATH_8_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10098 aSolaris_Math_8Tests, apzSolaris_Math_8Patch, 0 },
10100 { zSolaris_Math_9Name, zSolaris_Math_9List,
10101 apzSolaris_Math_9Machs,
10102 SOLARIS_MATH_9_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10103 aSolaris_Math_9Tests, apzSolaris_Math_9Patch, 0 },
10105 { zSolaris_Math_10Name, zSolaris_Math_10List,
10106 apzSolaris_Math_10Machs,
10107 SOLARIS_MATH_10_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10108 aSolaris_Math_10Tests, apzSolaris_Math_10Patch, 0 },
10110 { zSolaris_Mutex_Init_2Name, zSolaris_Mutex_Init_2List,
10111 apzSolaris_Mutex_Init_2Machs,
10112 SOLARIS_MUTEX_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10113 aSolaris_Mutex_Init_2Tests, apzSolaris_Mutex_Init_2Patch, 0 },
10115 { zSolaris_Pow_Int_OverloadName, zSolaris_Pow_Int_OverloadList,
10116 apzSolaris_Pow_Int_OverloadMachs,
10117 SOLARIS_POW_INT_OVERLOAD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10118 aSolaris_Pow_Int_OverloadTests, apzSolaris_Pow_Int_OverloadPatch, 0 },
10120 { zSolaris_Rwlock_Init_1Name, zSolaris_Rwlock_Init_1List,
10121 apzSolaris_Rwlock_Init_1Machs,
10122 SOLARIS_RWLOCK_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10123 aSolaris_Rwlock_Init_1Tests, apzSolaris_Rwlock_Init_1Patch, 0 },
10125 { zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
10126 apzSolaris_Once_Init_1Machs,
10127 SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10128 aSolaris_Once_Init_1Tests, apzSolaris_Once_Init_1Patch, 0 },
10130 { zSolaris_Once_Init_2Name, zSolaris_Once_Init_2List,
10131 apzSolaris_Once_Init_2Machs,
10132 SOLARIS_ONCE_INIT_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10133 aSolaris_Once_Init_2Tests, apzSolaris_Once_Init_2Patch, 0 },
10135 { zSolaris_Int_ConstName, zSolaris_Int_ConstList,
10136 apzSolaris_Int_ConstMachs,
10137 SOLARIS_INT_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10138 aSolaris_Int_ConstTests, apzSolaris_Int_ConstPatch, 0 },
10140 { zSolaris_Int_Limits_1Name, zSolaris_Int_Limits_1List,
10141 apzSolaris_Int_Limits_1Machs,
10142 SOLARIS_INT_LIMITS_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10143 aSolaris_Int_Limits_1Tests, apzSolaris_Int_Limits_1Patch, 0 },
10145 { zSolaris_Int_Limits_2Name, zSolaris_Int_Limits_2List,
10146 apzSolaris_Int_Limits_2Machs,
10147 SOLARIS_INT_LIMITS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10148 aSolaris_Int_Limits_2Tests, apzSolaris_Int_Limits_2Patch, 0 },
10150 { zSolaris_Int_Limits_3Name, zSolaris_Int_Limits_3List,
10151 apzSolaris_Int_Limits_3Machs,
10152 SOLARIS_INT_LIMITS_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10153 aSolaris_Int_Limits_3Tests, apzSolaris_Int_Limits_3Patch, 0 },
10155 { zSolaris_Int_TypesName, zSolaris_Int_TypesList,
10156 apzSolaris_Int_TypesMachs,
10157 SOLARIS_INT_TYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10158 aSolaris_Int_TypesTests, apzSolaris_Int_TypesPatch, 0 },
10160 { zSolaris_Posix_Spawn_RestrictName, zSolaris_Posix_Spawn_RestrictList,
10161 apzSolaris_Posix_Spawn_RestrictMachs,
10162 SOLARIS_POSIX_SPAWN_RESTRICT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10163 aSolaris_Posix_Spawn_RestrictTests, apzSolaris_Posix_Spawn_RestrictPatch, 0 },
10165 { zSolaris_Std___FilbufName, zSolaris_Std___FilbufList,
10166 apzSolaris_Std___FilbufMachs,
10167 SOLARIS_STD___FILBUF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10168 aSolaris_Std___FilbufTests, apzSolaris_Std___FilbufPatch, 0 },
10170 { zSolaris_Stdio_TagName, zSolaris_Stdio_TagList,
10171 apzSolaris_Stdio_TagMachs,
10172 SOLARIS_STDIO_TAG_TEST_CT, FD_MACH_ONLY,
10173 aSolaris_Stdio_TagTests, apzSolaris_Stdio_TagPatch, 0 },
10175 { zSolaris_Sys_Va_ListName, zSolaris_Sys_Va_ListList,
10176 apzSolaris_Sys_Va_ListMachs,
10177 SOLARIS_SYS_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10178 aSolaris_Sys_Va_ListTests, apzSolaris_Sys_Va_ListPatch, 0 },
10180 { zStatsswtchName, zStatsswtchList,
10181 apzStatsswtchMachs,
10182 STATSSWTCH_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10183 aStatsswtchTests, apzStatsswtchPatch, 0 },
10185 { zStdio_Stdarg_HName, zStdio_Stdarg_HList,
10186 apzStdio_Stdarg_HMachs,
10187 STDIO_STDARG_H_TEST_CT, FD_MACH_IFNOT | FD_SUBROUTINE,
10188 aStdio_Stdarg_HTests, apzStdio_Stdarg_HPatch, 0 },
10190 { zStdio_Va_ListName, zStdio_Va_ListList,
10191 apzStdio_Va_ListMachs,
10192 STDIO_VA_LIST_TEST_CT, FD_MACH_IFNOT,
10193 aStdio_Va_ListTests, apzStdio_Va_ListPatch, 0 },
10195 { zStdio_Va_List_ClientsName, zStdio_Va_List_ClientsList,
10196 apzStdio_Va_List_ClientsMachs,
10197 STDIO_VA_LIST_CLIENTS_TEST_CT, FD_MACH_ONLY,
10198 aStdio_Va_List_ClientsTests, apzStdio_Va_List_ClientsPatch, 0 },
10200 { zStrict_Ansi_NotName, zStrict_Ansi_NotList,
10201 apzStrict_Ansi_NotMachs,
10202 STRICT_ANSI_NOT_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10203 aStrict_Ansi_NotTests, apzStrict_Ansi_NotPatch, 0 },
10205 { zStrict_Ansi_Not_CtdName, zStrict_Ansi_Not_CtdList,
10206 apzStrict_Ansi_Not_CtdMachs,
10207 STRICT_ANSI_NOT_CTD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10208 aStrict_Ansi_Not_CtdTests, apzStrict_Ansi_Not_CtdPatch, 0 },
10210 { zStrict_Ansi_OnlyName, zStrict_Ansi_OnlyList,
10211 apzStrict_Ansi_OnlyMachs,
10212 STRICT_ANSI_ONLY_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10213 aStrict_Ansi_OnlyTests, apzStrict_Ansi_OnlyPatch, 0 },
10215 { zStruct_FileName, zStruct_FileList,
10216 apzStruct_FileMachs,
10217 STRUCT_FILE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10218 aStruct_FileTests, apzStruct_FilePatch, 0 },
10220 { zStruct_SockaddrName, zStruct_SockaddrList,
10221 apzStruct_SockaddrMachs,
10222 STRUCT_SOCKADDR_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10223 aStruct_SockaddrTests, apzStruct_SockaddrPatch, 0 },
10225 { zSun_Auth_ProtoName, zSun_Auth_ProtoList,
10226 apzSun_Auth_ProtoMachs,
10227 SUN_AUTH_PROTO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10228 aSun_Auth_ProtoTests, apzSun_Auth_ProtoPatch, 0 },
10230 { zSun_Bogus_IfdefName, zSun_Bogus_IfdefList,
10231 apzSun_Bogus_IfdefMachs,
10232 SUN_BOGUS_IFDEF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10233 aSun_Bogus_IfdefTests, apzSun_Bogus_IfdefPatch, 0 },
10235 { zSun_CatmacroName, zSun_CatmacroList,
10236 apzSun_CatmacroMachs,
10237 SUN_CATMACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10238 aSun_CatmacroTests, apzSun_CatmacroPatch, 0 },
10240 { zSun_MallocName, zSun_MallocList,
10241 apzSun_MallocMachs,
10242 SUN_MALLOC_TEST_CT, FD_MACH_ONLY,
10243 aSun_MallocTests, apzSun_MallocPatch, 0 },
10245 { zSun_Rusers_SemiName, zSun_Rusers_SemiList,
10246 apzSun_Rusers_SemiMachs,
10247 SUN_RUSERS_SEMI_TEST_CT, FD_MACH_ONLY,
10248 aSun_Rusers_SemiTests, apzSun_Rusers_SemiPatch, 0 },
10250 { zSun_SignalName, zSun_SignalList,
10251 apzSun_SignalMachs,
10252 SUN_SIGNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10253 aSun_SignalTests, apzSun_SignalPatch, 0 },
10255 { zSunos_StrlenName, zSunos_StrlenList,
10256 apzSunos_StrlenMachs,
10257 SUNOS_STRLEN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10258 aSunos_StrlenTests, apzSunos_StrlenPatch, 0 },
10260 { zSvr4_Disable_OptName, zSvr4_Disable_OptList,
10261 apzSvr4_Disable_OptMachs,
10262 SVR4_DISABLE_OPT_TEST_CT, FD_MACH_ONLY,
10263 aSvr4_Disable_OptTests, apzSvr4_Disable_OptPatch, 0 },
10265 { zSvr4_GetcwdName, zSvr4_GetcwdList,
10266 apzSvr4_GetcwdMachs,
10267 SVR4_GETCWD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10268 aSvr4_GetcwdTests, apzSvr4_GetcwdPatch, 0 },
10270 { zSvr4_ProfilName, zSvr4_ProfilList,
10271 apzSvr4_ProfilMachs,
10272 SVR4_PROFIL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10273 aSvr4_ProfilTests, apzSvr4_ProfilPatch, 0 },
10275 { zSvr4_Sighandler_TypeName, zSvr4_Sighandler_TypeList,
10276 apzSvr4_Sighandler_TypeMachs,
10277 SVR4_SIGHANDLER_TYPE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10278 aSvr4_Sighandler_TypeTests, apzSvr4_Sighandler_TypePatch, 0 },
10280 { zSvr4_Undeclared_GetrngeName, zSvr4_Undeclared_GetrngeList,
10281 apzSvr4_Undeclared_GetrngeMachs,
10282 SVR4_UNDECLARED_GETRNGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10283 aSvr4_Undeclared_GetrngeTests, apzSvr4_Undeclared_GetrngePatch, 0 },
10285 { zSysv68_StringName, zSysv68_StringList,
10286 apzSysv68_StringMachs,
10287 SYSV68_STRING_TEST_CT, FD_MACH_ONLY,
10288 aSysv68_StringTests, apzSysv68_StringPatch, 0 },
10290 { zSysz_Stdlib_For_SunName, zSysz_Stdlib_For_SunList,
10291 apzSysz_Stdlib_For_SunMachs,
10292 SYSZ_STDLIB_FOR_SUN_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10293 aSysz_Stdlib_For_SunTests, apzSysz_Stdlib_For_SunPatch, 0 },
10295 { zThread_KeywordName, zThread_KeywordList,
10296 apzThread_KeywordMachs,
10297 THREAD_KEYWORD_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10298 aThread_KeywordTests, apzThread_KeywordPatch, 0 },
10300 { zTinfo_CplusplusName, zTinfo_CplusplusList,
10301 apzTinfo_CplusplusMachs,
10302 TINFO_CPLUSPLUS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10303 aTinfo_CplusplusTests, apzTinfo_CplusplusPatch, 0 },
10305 { zUltrix_ConstName, zUltrix_ConstList,
10306 apzUltrix_ConstMachs,
10307 ULTRIX_CONST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10308 aUltrix_ConstTests, apzUltrix_ConstPatch, 0 },
10310 { zUltrix_Const2Name, zUltrix_Const2List,
10311 apzUltrix_Const2Machs,
10312 ULTRIX_CONST2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10313 aUltrix_Const2Tests, apzUltrix_Const2Patch, 0 },
10315 { zVa_I960_MacroName, zVa_I960_MacroList,
10316 apzVa_I960_MacroMachs,
10317 VA_I960_MACRO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10318 aVa_I960_MacroTests, apzVa_I960_MacroPatch, 0 },
10320 { zVms_Define_Can_Use_Extern_PrefixName, zVms_Define_Can_Use_Extern_PrefixList,
10321 apzVms_Define_Can_Use_Extern_PrefixMachs,
10322 VMS_DEFINE_CAN_USE_EXTERN_PREFIX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10323 aVms_Define_Can_Use_Extern_PrefixTests, apzVms_Define_Can_Use_Extern_PrefixPatch, 0 },
10325 { zVms_Use_Pragma_Extern_ModelName, zVms_Use_Pragma_Extern_ModelList,
10326 apzVms_Use_Pragma_Extern_ModelMachs,
10327 VMS_USE_PRAGMA_EXTERN_MODEL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10328 aVms_Use_Pragma_Extern_ModelTests, apzVms_Use_Pragma_Extern_ModelPatch, 0 },
10330 { zVms_Disable_Decc_String_BuiltinsName, zVms_Disable_Decc_String_BuiltinsList,
10331 apzVms_Disable_Decc_String_BuiltinsMachs,
10332 VMS_DISABLE_DECC_STRING_BUILTINS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10333 aVms_Disable_Decc_String_BuiltinsTests, apzVms_Disable_Decc_String_BuiltinsPatch, 0 },
10335 { zVoid_NullName, zVoid_NullList,
10337 VOID_NULL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10338 aVoid_NullTests, apzVoid_NullPatch, 0 },
10340 { zVxworks_Gcc_ProblemName, zVxworks_Gcc_ProblemList,
10341 apzVxworks_Gcc_ProblemMachs,
10342 VXWORKS_GCC_PROBLEM_TEST_CT, FD_MACH_ONLY,
10343 aVxworks_Gcc_ProblemTests, apzVxworks_Gcc_ProblemPatch, 0 },
10345 { zVxworks_Needs_VxtypesName, zVxworks_Needs_VxtypesList,
10346 apzVxworks_Needs_VxtypesMachs,
10347 VXWORKS_NEEDS_VXTYPES_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10348 aVxworks_Needs_VxtypesTests, apzVxworks_Needs_VxtypesPatch, 0 },
10350 { zVxworks_Needs_VxworksName, zVxworks_Needs_VxworksList,
10351 apzVxworks_Needs_VxworksMachs,
10352 VXWORKS_NEEDS_VXWORKS_TEST_CT, FD_MACH_ONLY,
10353 aVxworks_Needs_VxworksTests, apzVxworks_Needs_VxworksPatch, 0 },
10355 { zVxworks_TimeName, zVxworks_TimeList,
10356 apzVxworks_TimeMachs,
10357 VXWORKS_TIME_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10358 aVxworks_TimeTests, apzVxworks_TimePatch, 0 },
10360 { zX11_ClassName, zX11_ClassList,
10362 X11_CLASS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10363 aX11_ClassTests, apzX11_ClassPatch, 0 },
10365 { zX11_Class_UsageName, zX11_Class_UsageList,
10366 apzX11_Class_UsageMachs,
10367 X11_CLASS_USAGE_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10368 aX11_Class_UsageTests, apzX11_Class_UsagePatch, 0 },
10370 { zX11_NewName, zX11_NewList,
10372 X11_NEW_TEST_CT, FD_MACH_ONLY,
10373 aX11_NewTests, apzX11_NewPatch, 0 },
10375 { zX11_SprintfName, zX11_SprintfList,
10376 apzX11_SprintfMachs,
10377 X11_SPRINTF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
10378 aX11_SprintfTests, apzX11_SprintfPatch, 0 }